@zensoftbr/zenerpclient 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/catalog/person/PersonCompact.js +14 -0
- package/dist/cjs/api/catalog/person/PersonCompact.js.map +1 -0
- package/dist/cjs/api/catalog/person/PersonService.js +10 -10
- package/dist/cjs/api/catalog/person/PersonService.js.map +1 -1
- package/dist/cjs/api/catalog/person/person.module.js +3 -3
- package/dist/cjs/api/catalog/person/person.module.js.map +1 -1
- package/dist/cjs/api/fiscal/br/FiscalBrService.js +1 -0
- package/dist/cjs/api/fiscal/br/FiscalBrService.js.map +1 -1
- package/dist/cjs/api/sale/QuoteItem.js +1 -0
- package/dist/cjs/api/sale/QuoteItem.js.map +1 -1
- package/dist/cjs/api/supply/production/ArgsProductionOrderOpCreate.js.map +1 -1
- package/dist/cjs/api/supply/production/ArgsProductionStepOpCreate.js +11 -0
- package/dist/cjs/api/supply/production/ArgsProductionStepOpCreate.js.map +1 -0
- package/dist/cjs/api/supply/production/ProductionOrder.js +3 -4
- package/dist/cjs/api/supply/production/ProductionOrder.js.map +1 -1
- package/dist/cjs/api/supply/production/ProductionService.js +30 -0
- package/dist/cjs/api/supply/production/ProductionService.js.map +1 -1
- package/dist/cjs/api/supply/production/ProductionStep.js +1 -0
- package/dist/cjs/api/supply/production/ProductionStep.js.map +1 -1
- package/dist/cjs/api/supply/purchase/ProposalRequest.js +16 -0
- package/dist/cjs/api/supply/purchase/ProposalRequest.js.map +1 -0
- package/dist/cjs/api/supply/purchase/PurchaseService.js +21 -0
- package/dist/cjs/api/supply/purchase/PurchaseService.js.map +1 -1
- package/dist/cjs/api/supply/purchase/QuoteItem.js +1 -0
- package/dist/cjs/api/supply/purchase/QuoteItem.js.map +1 -1
- package/dist/cjs/api/supply/purchase/purchase.module.js +3 -1
- package/dist/cjs/api/supply/purchase/purchase.module.js.map +1 -1
- package/dist/cjs/api/system/report/ReportService.js +1 -0
- package/dist/cjs/api/system/report/ReportService.js.map +1 -1
- package/dist/cjs/components/ControlCatalogProductProductProfile.js +9 -1
- package/dist/cjs/components/ControlCatalogProductProductProfile.js.map +1 -1
- package/dist/cjs/components/ControlSelect.js +21 -12
- package/dist/cjs/components/ControlSelect.js.map +1 -1
- package/dist/cjs/components/ControlSelectAbstract.js +3 -3
- package/dist/cjs/components/ControlSelectAbstract.js.map +1 -1
- package/dist/cjs/components/components.js +0 -2
- package/dist/cjs/components/components.js.map +1 -1
- package/dist/cjs/index.js +3 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/catalog/person/PersonCompact.js +10 -0
- package/dist/esm/api/catalog/person/PersonCompact.js.map +1 -0
- package/dist/esm/api/catalog/person/PersonService.js +10 -10
- package/dist/esm/api/catalog/person/PersonService.js.map +1 -1
- package/dist/esm/api/catalog/person/person.module.js +1 -1
- package/dist/esm/api/catalog/person/person.module.js.map +1 -1
- package/dist/esm/api/fiscal/br/FiscalBrService.js +1 -0
- package/dist/esm/api/fiscal/br/FiscalBrService.js.map +1 -1
- package/dist/esm/api/sale/QuoteItem.js +1 -0
- package/dist/esm/api/sale/QuoteItem.js.map +1 -1
- package/dist/esm/api/supply/production/ArgsProductionOrderOpCreate.js.map +1 -1
- package/dist/esm/api/supply/production/ArgsProductionStepOpCreate.js +7 -0
- package/dist/esm/api/supply/production/ArgsProductionStepOpCreate.js.map +1 -0
- package/dist/esm/api/supply/production/ProductionOrder.js +3 -4
- package/dist/esm/api/supply/production/ProductionOrder.js.map +1 -1
- package/dist/esm/api/supply/production/ProductionService.js +30 -0
- package/dist/esm/api/supply/production/ProductionService.js.map +1 -1
- package/dist/esm/api/supply/production/ProductionStep.js +1 -0
- package/dist/esm/api/supply/production/ProductionStep.js.map +1 -1
- package/dist/esm/api/supply/purchase/ProposalRequest.js +12 -0
- package/dist/esm/api/supply/purchase/ProposalRequest.js.map +1 -0
- package/dist/esm/api/supply/purchase/PurchaseService.js +21 -0
- package/dist/esm/api/supply/purchase/PurchaseService.js.map +1 -1
- package/dist/esm/api/supply/purchase/QuoteItem.js +1 -0
- package/dist/esm/api/supply/purchase/QuoteItem.js.map +1 -1
- package/dist/esm/api/supply/purchase/purchase.module.js +1 -0
- package/dist/esm/api/supply/purchase/purchase.module.js.map +1 -1
- package/dist/esm/api/system/report/ReportService.js +1 -0
- package/dist/esm/api/system/report/ReportService.js.map +1 -1
- package/dist/esm/components/AsyncIteratorZen.js +94 -0
- package/dist/esm/components/AsyncIteratorZen.js.map +1 -0
- package/dist/esm/components/ControlCatalogCategory.js +40 -0
- package/dist/esm/components/ControlCatalogCategory.js.map +1 -0
- package/dist/esm/components/ControlCatalogCompanyCompany.js +41 -0
- package/dist/esm/components/ControlCatalogCompanyCompany.js.map +1 -0
- package/dist/esm/components/ControlCatalogCompanySociety.js +41 -0
- package/dist/esm/components/ControlCatalogCompanySociety.js.map +1 -0
- package/dist/esm/components/ControlCatalogLocationCity.js +40 -0
- package/dist/esm/components/ControlCatalogLocationCity.js.map +1 -0
- package/dist/esm/components/ControlCatalogLocationCountry.js +43 -0
- package/dist/esm/components/ControlCatalogLocationCountry.js.map +1 -0
- package/dist/esm/components/ControlCatalogLocationState.js +41 -0
- package/dist/esm/components/ControlCatalogLocationState.js.map +1 -0
- package/dist/esm/components/ControlCatalogPersonPerson.js +49 -0
- package/dist/esm/components/ControlCatalogPersonPerson.js.map +1 -0
- package/dist/esm/components/ControlCatalogPersonPersonAddress.js +60 -0
- package/dist/esm/components/ControlCatalogPersonPersonAddress.js.map +1 -0
- package/dist/esm/components/ControlCatalogPersonPersonGroup.js +40 -0
- package/dist/esm/components/ControlCatalogPersonPersonGroup.js.map +1 -0
- package/dist/esm/components/ControlCatalogProductCodeConversionList.js +40 -0
- package/dist/esm/components/ControlCatalogProductCodeConversionList.js.map +1 -0
- package/dist/esm/components/ControlCatalogProductDimension.js +40 -0
- package/dist/esm/components/ControlCatalogProductDimension.js.map +1 -0
- package/dist/esm/components/ControlCatalogProductProduct.js +52 -0
- package/dist/esm/components/ControlCatalogProductProduct.js.map +1 -0
- package/dist/esm/components/ControlCatalogProductProductPacking.js +75 -0
- package/dist/esm/components/ControlCatalogProductProductPacking.js.map +1 -0
- package/dist/esm/components/ControlCatalogProductProductProfile.js +49 -0
- package/dist/esm/components/ControlCatalogProductProductProfile.js.map +1 -0
- package/dist/esm/components/ControlCatalogProductProductVariant.js +41 -0
- package/dist/esm/components/ControlCatalogProductProductVariant.js.map +1 -0
- package/dist/esm/components/ControlCatalogProductUnit.js +41 -0
- package/dist/esm/components/ControlCatalogProductUnit.js.map +1 -0
- package/dist/esm/components/ControlCheckBox.js +39 -0
- package/dist/esm/components/ControlCheckBox.js.map +1 -0
- package/dist/esm/components/ControlColor.js +50 -0
- package/dist/esm/components/ControlColor.js.map +1 -0
- package/dist/esm/components/ControlCommercialContractContract.js +40 -0
- package/dist/esm/components/ControlCommercialContractContract.js.map +1 -0
- package/dist/esm/components/ControlCommercialContractContractIndex.js +41 -0
- package/dist/esm/components/ControlCommercialContractContractIndex.js.map +1 -0
- package/dist/esm/components/ControlCommercialContractContractItem.js +41 -0
- package/dist/esm/components/ControlCommercialContractContractItem.js.map +1 -0
- package/dist/esm/components/ControlCommercialContractContractProfile.js +41 -0
- package/dist/esm/components/ControlCommercialContractContractProfile.js.map +1 -0
- package/dist/esm/components/ControlCommercialPaymentType.js +40 -0
- package/dist/esm/components/ControlCommercialPaymentType.js.map +1 -0
- package/dist/esm/components/ControlCommercialPriceList.js +41 -0
- package/dist/esm/components/ControlCommercialPriceList.js.map +1 -0
- package/dist/esm/components/ControlDatetime.js +68 -0
- package/dist/esm/components/ControlDatetime.js.map +1 -0
- package/dist/esm/components/ControlFinancialAccountingAccount.js +42 -0
- package/dist/esm/components/ControlFinancialAccountingAccount.js.map +1 -0
- package/dist/esm/components/ControlFinancialAccountingAccountCategory.js +40 -0
- package/dist/esm/components/ControlFinancialAccountingAccountCategory.js.map +1 -0
- package/dist/esm/components/ControlFinancialAccountingAccountChart.js +41 -0
- package/dist/esm/components/ControlFinancialAccountingAccountChart.js.map +1 -0
- package/dist/esm/components/ControlFinancialAccountingAccountFiscalYear.js +46 -0
- package/dist/esm/components/ControlFinancialAccountingAccountFiscalYear.js.map +1 -0
- package/dist/esm/components/ControlFinancialAccountingResultCenter.js +42 -0
- package/dist/esm/components/ControlFinancialAccountingResultCenter.js.map +1 -0
- package/dist/esm/components/ControlFinancialAccountingResultCenterChart.js +41 -0
- package/dist/esm/components/ControlFinancialAccountingResultCenterChart.js.map +1 -0
- package/dist/esm/components/ControlFinancialBillingWallet.js +40 -0
- package/dist/esm/components/ControlFinancialBillingWallet.js.map +1 -0
- package/dist/esm/components/ControlFinancialCreditCreditLine.js +40 -0
- package/dist/esm/components/ControlFinancialCreditCreditLine.js.map +1 -0
- package/dist/esm/components/ControlFinancialCurrency.js +40 -0
- package/dist/esm/components/ControlFinancialCurrency.js.map +1 -0
- package/dist/esm/components/ControlFinancialPayable.js +41 -0
- package/dist/esm/components/ControlFinancialPayable.js.map +1 -0
- package/dist/esm/components/ControlFinancialReceivable.js +41 -0
- package/dist/esm/components/ControlFinancialReceivable.js.map +1 -0
- package/dist/esm/components/ControlFiscalFiscalProfileOperation.js +41 -0
- package/dist/esm/components/ControlFiscalFiscalProfileOperation.js.map +1 -0
- package/dist/esm/components/ControlFiscalFiscalProfilePerson.js +39 -0
- package/dist/esm/components/ControlFiscalFiscalProfilePerson.js.map +1 -0
- package/dist/esm/components/ControlFiscalFiscalProfileProduct.js +41 -0
- package/dist/esm/components/ControlFiscalFiscalProfileProduct.js.map +1 -0
- package/dist/esm/components/ControlFiscalFiscalRegion.js +40 -0
- package/dist/esm/components/ControlFiscalFiscalRegion.js.map +1 -0
- package/dist/esm/components/ControlFiscalIncomingInvoice.js +51 -0
- package/dist/esm/components/ControlFiscalIncomingInvoice.js.map +1 -0
- package/dist/esm/components/ControlFiscalInvoiceSeries.js +40 -0
- package/dist/esm/components/ControlFiscalInvoiceSeries.js.map +1 -0
- package/dist/esm/components/ControlFiscalTaxationTax.js +40 -0
- package/dist/esm/components/ControlFiscalTaxationTax.js.map +1 -0
- package/dist/esm/components/ControlFiscalTaxationTaxationOperation.js +41 -0
- package/dist/esm/components/ControlFiscalTaxationTaxationOperation.js.map +1 -0
- package/dist/esm/components/ControlFiscalVolume.js +40 -0
- package/dist/esm/components/ControlFiscalVolume.js.map +1 -0
- package/dist/esm/components/ControlHideAndSeek.js +57 -0
- package/dist/esm/components/ControlHideAndSeek.js.map +1 -0
- package/dist/esm/components/ControlInput.js +64 -0
- package/dist/esm/components/ControlInput.js.map +1 -0
- package/dist/esm/components/ControlInputNumber.js +98 -0
- package/dist/esm/components/ControlInputNumber.js.map +1 -0
- package/dist/esm/components/ControlMaterialAddress.js +40 -0
- package/dist/esm/components/ControlMaterialAddress.js.map +1 -0
- package/dist/esm/components/ControlMaterialAddressProfile.js +40 -0
- package/dist/esm/components/ControlMaterialAddressProfile.js.map +1 -0
- package/dist/esm/components/ControlMaterialHandlintUnit.js +40 -0
- package/dist/esm/components/ControlMaterialHandlintUnit.js.map +1 -0
- package/dist/esm/components/ControlMaterialIncomingList.js +44 -0
- package/dist/esm/components/ControlMaterialIncomingList.js.map +1 -0
- package/dist/esm/components/ControlMaterialIncomingRequest.js +44 -0
- package/dist/esm/components/ControlMaterialIncomingRequest.js.map +1 -0
- package/dist/esm/components/ControlMaterialInventory.js +40 -0
- package/dist/esm/components/ControlMaterialInventory.js.map +1 -0
- package/dist/esm/components/ControlMaterialLot.js +40 -0
- package/dist/esm/components/ControlMaterialLot.js.map +1 -0
- package/dist/esm/components/ControlMaterialOutgoingList.js +40 -0
- package/dist/esm/components/ControlMaterialOutgoingList.js.map +1 -0
- package/dist/esm/components/ControlMaterialPickingOrder.js +40 -0
- package/dist/esm/components/ControlMaterialPickingOrder.js.map +1 -0
- package/dist/esm/components/ControlMaterialPickingProfile.js +41 -0
- package/dist/esm/components/ControlMaterialPickingProfile.js.map +1 -0
- package/dist/esm/components/ControlMaterialQuality.js +40 -0
- package/dist/esm/components/ControlMaterialQuality.js.map +1 -0
- package/dist/esm/components/ControlMaterialReservation.js +40 -0
- package/dist/esm/components/ControlMaterialReservation.js.map +1 -0
- package/dist/esm/components/ControlMaterialReservationTarget.js +42 -0
- package/dist/esm/components/ControlMaterialReservationTarget.js.map +1 -0
- package/dist/esm/components/ControlMaterialSerial.js +40 -0
- package/dist/esm/components/ControlMaterialSerial.js.map +1 -0
- package/dist/esm/components/ControlMaterialStockCluster.js +41 -0
- package/dist/esm/components/ControlMaterialStockCluster.js.map +1 -0
- package/dist/esm/components/ControlMaterialStockType.js +46 -0
- package/dist/esm/components/ControlMaterialStockType.js.map +1 -0
- package/dist/esm/components/ControlMaterialWarehouse.js +40 -0
- package/dist/esm/components/ControlMaterialWarehouse.js.map +1 -0
- package/dist/esm/components/ControlSalePriceFormation.js +41 -0
- package/dist/esm/components/ControlSalePriceFormation.js.map +1 -0
- package/dist/esm/components/ControlSalePriceList.js +41 -0
- package/dist/esm/components/ControlSalePriceList.js.map +1 -0
- package/dist/esm/components/ControlSaleSale.js +44 -0
- package/dist/esm/components/ControlSaleSale.js.map +1 -0
- package/dist/esm/components/ControlSaleSaleProfile.js +41 -0
- package/dist/esm/components/ControlSaleSaleProfile.js.map +1 -0
- package/dist/esm/components/ControlSelect.js +76 -0
- package/dist/esm/components/ControlSelect.js.map +1 -0
- package/dist/esm/components/ControlSelectAbstract.js +494 -0
- package/dist/esm/components/ControlSelectAbstract.js.map +1 -0
- package/dist/esm/components/ControlSelectZen.js +120 -0
- package/dist/esm/components/ControlSelectZen.js.map +1 -0
- package/dist/esm/components/ControlShippingShipment.js +39 -0
- package/dist/esm/components/ControlShippingShipment.js.map +1 -0
- package/dist/esm/components/ControlSupplyProductionOperationType.js +40 -0
- package/dist/esm/components/ControlSupplyProductionOperationType.js.map +1 -0
- package/dist/esm/components/ControlSupplyProductionProductionOrder.js +44 -0
- package/dist/esm/components/ControlSupplyProductionProductionOrder.js.map +1 -0
- package/dist/esm/components/ControlSupplyProductionProductionProfile.js +41 -0
- package/dist/esm/components/ControlSupplyProductionProductionProfile.js.map +1 -0
- package/dist/esm/components/ControlSupplyProductionProductionStep.js +44 -0
- package/dist/esm/components/ControlSupplyProductionProductionStep.js.map +1 -0
- package/dist/esm/components/ControlSupplyPurchasePriceList.js +41 -0
- package/dist/esm/components/ControlSupplyPurchasePriceList.js.map +1 -0
- package/dist/esm/components/ControlSupplyPurchasePurchase.js +54 -0
- package/dist/esm/components/ControlSupplyPurchasePurchase.js.map +1 -0
- package/dist/esm/components/ControlSupplyPurchasePurchaseItem.js +52 -0
- package/dist/esm/components/ControlSupplyPurchasePurchaseItem.js.map +1 -0
- package/dist/esm/components/ControlSupplyPurchasePurchaseProfile.js +41 -0
- package/dist/esm/components/ControlSupplyPurchasePurchaseProfile.js.map +1 -0
- package/dist/esm/components/ControlSupplyPurchaseQuoteItem.js +49 -0
- package/dist/esm/components/ControlSupplyPurchaseQuoteItem.js.map +1 -0
- package/dist/esm/components/ControlSvg.js +28 -0
- package/dist/esm/components/ControlSvg.js.map +1 -0
- package/dist/esm/components/ControlSwitch.js +41 -0
- package/dist/esm/components/ControlSwitch.js.map +1 -0
- package/dist/esm/components/ControlSwitches.js +57 -0
- package/dist/esm/components/ControlSwitches.js.map +1 -0
- package/dist/esm/components/ControlSystemAutomationAgent.js +40 -0
- package/dist/esm/components/ControlSystemAutomationAgent.js.map +1 -0
- package/dist/esm/components/ControlSystemDataDataSource.js +40 -0
- package/dist/esm/components/ControlSystemDataDataSource.js.map +1 -0
- package/dist/esm/components/ControlSystemImageImage.js +41 -0
- package/dist/esm/components/ControlSystemImageImage.js.map +1 -0
- package/dist/esm/components/ControlSystemIntegrationQueue.js +40 -0
- package/dist/esm/components/ControlSystemIntegrationQueue.js.map +1 -0
- package/dist/esm/components/ControlSystemIntegrationTopic.js +40 -0
- package/dist/esm/components/ControlSystemIntegrationTopic.js.map +1 -0
- package/dist/esm/components/ControlSystemMailMailerConfig.js +41 -0
- package/dist/esm/components/ControlSystemMailMailerConfig.js.map +1 -0
- package/dist/esm/components/ControlSystemPrintingPrinter.js +41 -0
- package/dist/esm/components/ControlSystemPrintingPrinter.js.map +1 -0
- package/dist/esm/components/ControlSystemReportReport.js +40 -0
- package/dist/esm/components/ControlSystemReportReport.js.map +1 -0
- package/dist/esm/components/ControlSystemSecurityAccessPoint.js +41 -0
- package/dist/esm/components/ControlSystemSecurityAccessPoint.js.map +1 -0
- package/dist/esm/components/ControlSystemSecurityAccessProfile.js +41 -0
- package/dist/esm/components/ControlSystemSecurityAccessProfile.js.map +1 -0
- package/dist/esm/components/ControlSystemSecurityGroup.js +43 -0
- package/dist/esm/components/ControlSystemSecurityGroup.js.map +1 -0
- package/dist/esm/components/ControlSystemSecurityKeyStore.js +40 -0
- package/dist/esm/components/ControlSystemSecurityKeyStore.js.map +1 -0
- package/dist/esm/components/ControlSystemSecurityRole.js +40 -0
- package/dist/esm/components/ControlSystemSecurityRole.js.map +1 -0
- package/dist/esm/components/ControlSystemSecurityUser.js +40 -0
- package/dist/esm/components/ControlSystemSecurityUser.js.map +1 -0
- package/dist/esm/components/ControlSystemWorkflowWorkflow.js +42 -0
- package/dist/esm/components/ControlSystemWorkflowWorkflow.js.map +1 -0
- package/dist/esm/components/ControlSystemWorkflowWorkflowNode.js +42 -0
- package/dist/esm/components/ControlSystemWorkflowWorkflowNode.js.map +1 -0
- package/dist/esm/components/ControlTag.js +50 -0
- package/dist/esm/components/ControlTag.js.map +1 -0
- package/dist/esm/components/ControlTags.js +103 -0
- package/dist/esm/components/ControlTags.js.map +1 -0
- package/dist/esm/components/ControlTagsView.js +55 -0
- package/dist/esm/components/ControlTagsView.js.map +1 -0
- package/dist/esm/components/ControlTemplate.js +25 -0
- package/dist/esm/components/ControlTemplate.js.map +1 -0
- package/dist/esm/components/ControlTextArea.js +4 -0
- package/dist/esm/components/ControlTextArea.js.map +1 -0
- package/dist/esm/components/StringUtils.js +18 -0
- package/dist/esm/components/StringUtils.js.map +1 -0
- package/dist/esm/components/Tags.js +47 -0
- package/dist/esm/components/Tags.js.map +1 -0
- package/dist/esm/components/components.js +209 -0
- package/dist/esm/components/components.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/iife/zenerpclient.js +1 -1
- package/dist/iife/zenerpclient.js.map +1 -1
- package/dist/types/api/catalog/person/PersonCompact.d.ts +9 -0
- package/dist/types/api/catalog/person/PersonService.d.ts +3 -3
- package/dist/types/api/catalog/person/person.module.d.ts +1 -1
- package/dist/types/api/sale/QuoteItem.d.ts +1 -0
- package/dist/types/api/supply/production/ArgsProductionStepOpCreate.d.ts +7 -0
- package/dist/types/api/supply/production/ProductionOrder.d.ts +4 -5
- package/dist/types/api/supply/production/ProductionService.d.ts +6 -0
- package/dist/types/api/supply/production/ProductionStep.d.ts +1 -0
- package/dist/types/api/supply/purchase/ProposalRequest.d.ts +14 -0
- package/dist/types/api/supply/purchase/PurchaseService.d.ts +3 -0
- package/dist/types/api/supply/purchase/QuoteItem.d.ts +1 -0
- package/dist/types/api/supply/purchase/purchase.module.d.ts +1 -0
- package/dist/types/components/ControlCheckBox.d.ts +2 -2
- package/dist/types/components/ControlColor.d.ts +1 -1
- package/dist/types/components/ControlDatetime.d.ts +3 -3
- package/dist/types/components/ControlSelect.d.ts +1 -1
- package/dist/types/components/ControlSelectAbstract.d.ts +2 -2
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var zenerpclient=function(e){"use strict";class t extends Error{}class n extends t{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class i extends t{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class s extends t{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class o extends t{}class a extends t{constructor(e){super(`Invalid unit ${e}`)}}class r extends t{}class c extends t{constructor(){super("Zone is an abstract class")}}const l="numeric",p="short",h="long",u={year:l,month:l,day:l},d={year:l,month:p,day:l},y={year:l,month:p,day:l,weekday:p},m={year:l,month:h,day:l},f={year:l,month:h,day:l,weekday:h},g={hour:l,minute:l},b={hour:l,minute:l,second:l},O={hour:l,minute:l,second:l,timeZoneName:p},w={hour:l,minute:l,second:l,timeZoneName:h},S={hour:l,minute:l,hourCycle:"h23"},T={hour:l,minute:l,second:l,hourCycle:"h23"},J={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:p},P={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:h},v={year:l,month:l,day:l,hour:l,minute:l},E={year:l,month:l,day:l,hour:l,minute:l,second:l},R={year:l,month:p,day:l,hour:l,minute:l},j={year:l,month:p,day:l,hour:l,minute:l,second:l},$={year:l,month:p,day:l,weekday:p,hour:l,minute:l},I={year:l,month:h,day:l,hour:l,minute:l,timeZoneName:p},C={year:l,month:h,day:l,hour:l,minute:l,second:l,timeZoneName:p},N={year:l,month:h,day:l,weekday:h,hour:l,minute:l,timeZoneName:h},k={year:l,month:h,day:l,weekday:h,hour:l,minute:l,second:l,timeZoneName:h};class D{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(e,t){throw new c}formatOffset(e,t){throw new c}offset(e){throw new c}equals(e){throw new c}get isValid(){throw new c}}let L=null;class U extends D{static get instance(){return null===L&&(L=new U),L}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ye(e,t,n)}formatOffset(e,t){return Xe(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let G={};const q={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let x={};class A extends D{static create(e){return x[e]||(x[e]=new A(e)),x[e]}static resetCache(){x={},G={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=A.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ye(e,t,n,this.name)}formatOffset(e,t){return Xe(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(i=this.name,G[i]||(G[i]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),G[i]);var i;let[s,o,a,r,c,l,p]=n.formatToParts?function(e,t){const n=e.formatToParts(t),i=[];for(let e=0;e<n.length;e++){const{type:t,value:s}=n[e],o=q[t];"era"===t?i[o]=s:je(o)||(i[o]=parseInt(s,10))}return i}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,o,a,r,c,l,p]=i;return[a,s,o,r,c,l,p]}(n,t);"BC"===r&&(s=1-Math.abs(s));let h=+t;const u=h%1e3;return h-=u>=0?u:1e3+u,(_e({year:s,month:o,day:a,hour:24===c?0:c,minute:l,second:p,millisecond:0})-h)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let B={};let F={};function V(e,t={}){const n=JSON.stringify([e,t]);let i=F[n];return i||(i=new Intl.DateTimeFormat(e,t),F[n]=i),i}let M={};let _={};let W=null;let z={};function Z(e,t,n,i){const s=e.listingMode();return"error"===s?null:"en"===s?n(t):i(t)}class Y{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:i,floor:s,...o}=n;if(!t||Object.keys(o).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let i=M[n];return i||(i=new Intl.NumberFormat(e,t),M[n]=i),i}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Ge(this.floor?Math.floor(e):Be(e,3),this.padTo)}}class H{constructor(e,t,n){let i;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&A.create(n).valid?(i=n,this.dt=e):(i="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||i,this.dtf=V(t,s)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class K{constructor(e,t,n){this.opts={style:"long",...n},!t&&Ce()&&(this.rtf=function(e,t={}){const{base:n,...i}=t,s=JSON.stringify([e,i]);let o=_[s];return o||(o=new Intl.RelativeTimeFormat(e,t),_[s]=o),o}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${s[e][0]}`;case-1:return n?"yesterday":`last ${s[e][0]}`;case 0:return n?"today":`this ${s[e][0]}`}}const a=Object.is(t,-0)||t<0,r=Math.abs(t),c=1===r,l=s[e],p=i?c?l[1]:l[2]||l[1]:c?s[e][0]:e;return a?`${r} ${p} ago`:`in ${r} ${p}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const Q={firstDay:1,minimalDays:4,weekend:[6,7]};class X{static fromOpts(e){return X.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,i,s=!1){const o=e||ue.defaultLocale,a=o||(s?"en-US":W||(W=(new Intl.DateTimeFormat).resolvedOptions().locale,W)),r=t||ue.defaultNumberingSystem,c=n||ue.defaultOutputCalendar,l=Le(i)||ue.defaultWeekSettings;return new X(a,r,c,l,o)}static resetCache(){W=null,F={},M={},_={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:i}={}){return X.create(e,t,n,i)}constructor(e,t,n,i,s){const[o,a,r]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,i;try{t=V(e).resolvedOptions(),i=e}catch(s){const o=e.substring(0,n);t=V(o).resolvedOptions(),i=o}const{numberingSystem:s,calendar:o}=t;return[i,s,o]}}(e);this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||r||null,this.weekSettings=i,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?X.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Le(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Z(this,e,st,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=function(e){const t=[];for(let n=1;n<=12;n++){const i=pi.utc(2009,n,1);t.push(e(i))}return t}((e=>this.extract(e,n,"month")))),this.monthsCache[i][e]}))}weekdays(e,t=!1){return Z(this,e,ct,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=function(e){const t=[];for(let n=1;n<=7;n++){const i=pi.utc(2016,11,13+n);t.push(e(i))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[i][e]}))}meridiems(){return Z(this,void 0,(()=>lt),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[pi.utc(2016,11,13,9),pi.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return Z(this,e,dt,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[pi.utc(-40,1,1),pi.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const i=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return i?i.value:null}numberFormatter(e={}){return new Y(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new H(e,this.intl,t)}relFormatter(e={}){return new K(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let i=B[n];return i||(i=new Intl.ListFormat(e,t),B[n]=i),i}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Ne()?function(e){let t=z[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,z[e]=t}return t}(this.locale):Q}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ee=null;class te extends D{static get utcInstance(){return null===ee&&(ee=new te(0)),ee}static instance(e){return 0===e?te.utcInstance:new te(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new te(He(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Xe(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Xe(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Xe(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class ne extends D{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ie(e,t){if(je(e)||null===e)return t;if(e instanceof D)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?U.instance:"utc"===n||"gmt"===n?te.utcInstance:te.parseSpecifier(n)||A.create(e)}return $e(e)?te.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new ne(e)}let se,oe=()=>Date.now(),ae="system",re=null,ce=null,le=null,pe=60,he=null;class ue{static get now(){return oe}static set now(e){oe=e}static set defaultZone(e){ae=e}static get defaultZone(){return ie(ae,U.instance)}static get defaultLocale(){return re}static set defaultLocale(e){re=e}static get defaultNumberingSystem(){return ce}static set defaultNumberingSystem(e){ce=e}static get defaultOutputCalendar(){return le}static set defaultOutputCalendar(e){le=e}static get defaultWeekSettings(){return he}static set defaultWeekSettings(e){he=Le(e)}static get twoDigitCutoffYear(){return pe}static set twoDigitCutoffYear(e){pe=e%100}static get throwOnInvalid(){return se}static set throwOnInvalid(e){se=e}static resetCaches(){X.resetCache(),A.resetCache()}}class de{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ye=[0,31,59,90,120,151,181,212,243,273,304,334],me=[0,31,60,91,121,152,182,213,244,274,305,335];function fe(e,t){return new de("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ge(e,t,n){const i=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return 0===s?7:s}function be(e,t,n){return n+(Fe(e)?me:ye)[t-1]}function Oe(e,t){const n=Fe(e)?me:ye,i=n.findIndex((e=>e<t));return{month:i+1,day:t-n[i]}}function we(e,t){return(e-t+7)%7+1}function Se(e,t=4,n=1){const{year:i,month:s,day:o}=e,a=be(i,s,o),r=we(ge(i,s,o),n);let c,l=Math.floor((a-r+14-t)/7);return l<1?(c=i-1,l=ze(c,t,n)):l>ze(i,t,n)?(c=i+1,l=1):c=i,{weekYear:c,weekNumber:l,weekday:r,...et(e)}}function Te(e,t=4,n=1){const{weekYear:i,weekNumber:s,weekday:o}=e,a=we(ge(i,1,t),n),r=Ve(i);let c,l=7*s+o-a-7+t;l<1?(c=i-1,l+=Ve(c)):l>r?(c=i+1,l-=Ve(i)):c=i;const{month:p,day:h}=Oe(c,l);return{year:c,month:p,day:h,...et(e)}}function Je(e){const{year:t,month:n,day:i}=e;return{year:t,ordinal:be(t,n,i),...et(e)}}function Pe(e){const{year:t,ordinal:n}=e,{month:i,day:s}=Oe(t,n);return{year:t,month:i,day:s,...et(e)}}function ve(e,t){if(!je(e.localWeekday)||!je(e.localWeekNumber)||!je(e.localWeekYear)){if(!je(e.weekday)||!je(e.weekNumber)||!je(e.weekYear))throw new o("Cannot mix locale-based week fields with ISO-based week fields");return je(e.localWeekday)||(e.weekday=e.localWeekday),je(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),je(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Ee(e){const t=Ie(e.year),n=Ue(e.month,1,12),i=Ue(e.day,1,Me(e.year,e.month));return t?n?!i&&fe("day",e.day):fe("month",e.month):fe("year",e.year)}function Re(e){const{hour:t,minute:n,second:i,millisecond:s}=e,o=Ue(t,0,23)||24===t&&0===n&&0===i&&0===s,a=Ue(n,0,59),r=Ue(i,0,59),c=Ue(s,0,999);return o?a?r?!c&&fe("millisecond",s):fe("second",i):fe("minute",n):fe("hour",t)}function je(e){return void 0===e}function $e(e){return"number"==typeof e}function Ie(e){return"number"==typeof e&&e%1==0}function Ce(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Ne(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function ke(e,t,n){if(0!==e.length)return e.reduce(((e,i)=>{const s=[t(i),i];return e&&n(e[0],s[0])===e[0]?e:s}),null)[1]}function De(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Le(e){if(null==e)return null;if("object"!=typeof e)throw new r("Week settings must be an object");if(!Ue(e.firstDay,1,7)||!Ue(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!Ue(e,1,7))))throw new r("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ue(e,t,n){return Ie(e)&&e>=t&&e<=n}function Ge(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function qe(e){return je(e)||null===e||""===e?void 0:parseInt(e,10)}function xe(e){return je(e)||null===e||""===e?void 0:parseFloat(e)}function Ae(e){if(!je(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Be(e,t,n=!1){const i=10**t;return(n?Math.trunc:Math.round)(e*i)/i}function Fe(e){return e%4==0&&(e%100!=0||e%400==0)}function Ve(e){return Fe(e)?366:365}function Me(e,t){const n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?Fe(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function _e(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function We(e,t,n){return-we(ge(e,1,t),n)+t-1}function ze(e,t=4,n=1){const i=We(e,t,n),s=We(e+1,t,n);return(Ve(e)-i+s)/7}function Ze(e){return e>99?e:e>ue.twoDigitCutoffYear?1900+e:2e3+e}function Ye(e,t,n,i=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);const a={timeZoneName:t,...o},r=new Intl.DateTimeFormat(n,a).formatToParts(s).find((e=>"timezonename"===e.type.toLowerCase()));return r?r.value:null}function He(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const i=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-i:i)}function Ke(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new r(`Invalid unit value ${e}`);return t}function Qe(e,t){const n={};for(const i in e)if(De(e,i)){const s=e[i];if(null==s)continue;n[t(i)]=Ke(s)}return n}function Xe(e,t){const n=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${Ge(n,2)}:${Ge(i,2)}`;case"narrow":return`${s}${n}${i>0?`:${i}`:""}`;case"techie":return`${s}${Ge(n,2)}${Ge(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function et(e){return function(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}(e,["hour","minute","second","millisecond"])}const tt=["January","February","March","April","May","June","July","August","September","October","November","December"],nt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],it=["J","F","M","A","M","J","J","A","S","O","N","D"];function st(e){switch(e){case"narrow":return[...it];case"short":return[...nt];case"long":return[...tt];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ot=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],at=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],rt=["M","T","W","T","F","S","S"];function ct(e){switch(e){case"narrow":return[...rt];case"short":return[...at];case"long":return[...ot];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const lt=["AM","PM"],pt=["Before Christ","Anno Domini"],ht=["BC","AD"],ut=["B","A"];function dt(e){switch(e){case"narrow":return[...ut];case"short":return[...ht];case"long":return[...pt];default:return null}}function yt(e,t){let n="";for(const i of e)i.literal?n+=i.val:n+=t(i.val);return n}const mt={D:u,DD:d,DDD:m,DDDD:f,t:g,tt:b,ttt:O,tttt:w,T:S,TT:T,TTT:J,TTTT:P,f:v,ff:R,fff:I,ffff:N,F:E,FF:j,FFF:C,FFFF:k};class ft{static create(e,t={}){return new ft(e,t)}static parseFormat(e){let t=null,n="",i=!1;const s=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);"'"===a?(n.length>0&&s.push({literal:i||/^\s+$/.test(n),val:n}),t=null,n="",i=!i):i||a===t?n+=a:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&s.push({literal:i||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(e){return mt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Ge(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(t,n)=>this.loc.extract(e,t,n),o=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=()=>n?function(e){return lt[e.hour<12?0:1]}(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),r=(t,i)=>n?function(e,t){return st(t)[e.month-1]}(e,t):s(i?{month:t}:{month:t,day:"numeric"},"month"),c=(t,i)=>n?function(e,t){return ct(t)[e.weekday-1]}(e,t):s(i?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=ft.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},p=t=>n?function(e,t){return dt(t)[e.year<0?0:1]}(e,t):s({era:t},"era");return yt(ft.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return i?s({day:"numeric"},"day"):this.num(e.day);case"dd":return i?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return i?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return r("short",!0);case"LLLL":return r("long",!0);case"LLLLL":return r("narrow",!0);case"M":return i?s({month:"numeric"},"month"):this.num(e.month);case"MM":return i?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return r("short",!1);case"MMMM":return r("long",!1);case"MMMMM":return r("narrow",!1);case"y":return i?s({year:"numeric"},"year"):this.num(e.year);case"yy":return i?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return p("short");case"GG":return p("long");case"GGGGG":return p("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}}))}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=ft.parseFormat(t),s=i.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return yt(i,(e=>t=>{const i=n(t);return i?this.num(e.get(i),t.length):t})(e.shiftTo(...s.map(n).filter((e=>e)))))}}const gt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function bt(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function Ot(...e){return t=>e.reduce((([e,n,i],s)=>{const[o,a,r]=s(t,i);return[{...e,...o},a||n,r]}),[{},null,1]).slice(0,2)}function wt(e,...t){if(null==e)return[null,null];for(const[n,i]of t){const t=n.exec(e);if(t)return i(t)}return[null,null]}function St(...e){return(t,n)=>{const i={};let s;for(s=0;s<e.length;s++)i[e[s]]=qe(t[n+s]);return[i,null,n+s]}}const Tt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Jt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Pt=RegExp(`${Jt.source}${`(?:${Tt.source}?(?:\\[(${gt.source})\\])?)?`}`),vt=RegExp(`(?:T${Pt.source})?`),Et=St("weekYear","weekNumber","weekDay"),Rt=St("year","ordinal"),jt=RegExp(`${Jt.source} ?(?:${Tt.source}|(${gt.source}))?`),$t=RegExp(`(?: ${jt.source})?`);function It(e,t,n){const i=e[t];return je(i)?n:qe(i)}function Ct(e,t){return[{hours:It(e,t,0),minutes:It(e,t+1,0),seconds:It(e,t+2,0),milliseconds:Ae(e[t+3])},null,t+4]}function Nt(e,t){const n=!e[t]&&!e[t+1],i=He(e[t+1],e[t+2]);return[{},n?null:te.instance(i),t+3]}function kt(e,t){return[{},e[t]?A.create(e[t]):null,t+1]}const Dt=RegExp(`^T?${Jt.source}$`),Lt=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ut(e){const[t,n,i,s,o,a,r,c,l]=e,p="-"===t[0],h=c&&"-"===c[0],u=(e,t=!1)=>void 0!==e&&(t||e&&p)?-e:e;return[{years:u(xe(n)),months:u(xe(i)),weeks:u(xe(s)),days:u(xe(o)),hours:u(xe(a)),minutes:u(xe(r)),seconds:u(xe(c),"-0"===c),milliseconds:u(Ae(l),h)}]}const Gt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qt(e,t,n,i,s,o,a){const r={year:2===t.length?Ze(qe(t)):qe(t),month:nt.indexOf(n)+1,day:qe(i),hour:qe(s),minute:qe(o)};return a&&(r.second=qe(a)),e&&(r.weekday=e.length>3?ot.indexOf(e)+1:at.indexOf(e)+1),r}const xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function At(e){const[,t,n,i,s,o,a,r,c,l,p,h]=e,u=qt(t,s,i,n,o,a,r);let d;return d=c?Gt[c]:l?0:He(p,h),[u,new te(d)]}const Bt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ft=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Vt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Mt(e){const[,t,n,i,s,o,a,r]=e;return[qt(t,s,i,n,o,a,r),te.utcInstance]}function _t(e){const[,t,n,i,s,o,a,r]=e;return[qt(t,r,n,i,s,o,a),te.utcInstance]}const Wt=bt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,vt),zt=bt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,vt),Zt=bt(/(\d{4})-?(\d{3})/,vt),Yt=bt(Pt),Ht=Ot((function(e,t){return[{year:It(e,t),month:It(e,t+1,1),day:It(e,t+2,1)},null,t+3]}),Ct,Nt,kt),Kt=Ot(Et,Ct,Nt,kt),Qt=Ot(Rt,Ct,Nt,kt),Xt=Ot(Ct,Nt,kt);const en=Ot(Ct);const tn=bt(/(\d{4})-(\d\d)-(\d\d)/,$t),nn=bt(jt),sn=Ot(Ct,Nt,kt);const on="Invalid Duration",an={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},rn={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...an},cn=365.2425,ln=30.436875,pn={years:{quarters:4,months:12,weeks:52.1775,days:cn,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:ln,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...an},hn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],un=hn.slice(0).reverse();function dn(e,t,n=!1){const i={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new fn(i)}function yn(e,t){let n=t.milliseconds??0;for(const i of un.slice(1))t[i]&&(n+=t[i]*e[i].milliseconds);return n}function mn(e,t){const n=yn(e,t)<0?-1:1;hn.reduceRight(((i,s)=>{if(je(t[s]))return i;if(i){const o=t[i]*n,a=e[s][i],r=Math.floor(o/a);t[s]+=r*n,t[i]-=r*a*n}return s}),null),hn.reduce(((n,i)=>{if(je(t[i]))return n;if(n){const s=t[n]%1;t[n]-=s,t[i]+=s*e[n][i]}return i}),null)}class fn{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?pn:rn;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||X.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return fn.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new r("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new fn({values:Qe(e,fn.normalizeUnit),loc:X.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if($e(e))return fn.fromMillis(e);if(fn.isDuration(e))return e;if("object"==typeof e)return fn.fromObject(e);throw new r(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return wt(e,[Lt,Ut])}(e);return n?fn.fromObject(n,t):fn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return wt(e,[Dt,en])}(e);return n?fn.fromObject(n,t):fn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new r("need to specify a reason the Duration is invalid");const n=e instanceof de?e:new de(e,t);if(ue.throwOnInvalid)throw new s(n);return new fn({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new a(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?ft.create(this.loc,n).formatDurationFromString(this,e):on}toHuman(e={}){if(!this.isValid)return on;const t=hn.map((t=>{const n=this.values[t];return je(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=Be(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1};return pi.fromMillis(t,{zone:"UTC"}).toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?yn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=fn.fromDurationLike(e),n={};for(const e of hn)(De(t.values,e)||De(this.values,e))&&(n[e]=t.get(e)+this.get(e));return dn(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=fn.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Ke(e(this.values[n],n));return dn(this,{values:t},!0)}get(e){return this[fn.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return dn(this,{values:{...this.values,...Qe(e,fn.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:i}={}){return dn(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:i,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return mn(this.matrix,e),dn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return dn(this,{values:function(e){const t={};for(const[n,i]of Object.entries(e))0!==i&&(t[n]=i);return t}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>fn.normalizeUnit(e)));const t={},n={},i=this.toObject();let s;for(const o of hn)if(e.indexOf(o)>=0){s=o;let e=0;for(const t in n)e+=this.matrix[t][o]*n[t],n[t]=0;$e(i[o])&&(e+=i[o]);const a=Math.trunc(e);t[o]=a,n[o]=(1e3*e-1e3*a)/1e3}else $e(i[o])&&(n[o]=i[o]);for(const e in n)0!==n[e]&&(t[s]+=e===s?n[e]:n[e]/this.matrix[s][e]);return mn(this.matrix,t),dn(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return dn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const i of hn)if(t=this.values[i],n=e.values[i],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const gn="Invalid Interval";class bn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new r("need to specify a reason the Interval is invalid");const n=e instanceof de?e:new de(e,t);if(ue.throwOnInvalid)throw new i(n);return new bn({invalid:n})}static fromDateTimes(e,t){const n=hi(e),i=hi(t),s=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?bn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:bn.invalid("missing or invalid end"):bn.invalid("missing or invalid start")}(n,i);return null==s?new bn({start:n,end:i}):s}static after(e,t){const n=fn.fromDurationLike(t),i=hi(e);return bn.fromDateTimes(i,i.plus(n))}static before(e,t){const n=fn.fromDurationLike(t),i=hi(e);return bn.fromDateTimes(i.minus(n),i)}static fromISO(e,t){const[n,i]=(e||"").split("/",2);if(n&&i){let e,s,o,a;try{e=pi.fromISO(n,t),s=e.isValid}catch(i){s=!1}try{o=pi.fromISO(i,t),a=o.isValid}catch(i){a=!1}if(s&&a)return bn.fromDateTimes(e,o);if(s){const n=fn.fromISO(i,t);if(n.isValid)return bn.after(e,n)}else if(a){const e=fn.fromISO(n,t);if(e.isValid)return bn.before(o,e)}}return bn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let i;return i=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,i=i.startOf(e,t),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?bn.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(hi).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),n=[];let{s:i}=this,s=0;for(;i<this.e;){const e=t[s]||this.e,o=+e>+this.e?this.e:e;n.push(bn.fromDateTimes(i,o)),i=o,s+=1}return n}splitBy(e){const t=fn.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:i}=this,s=1;const o=[];for(;i<this.e;){const e=this.start.plus(t.mapUnits((e=>e*s)));n=+e>+this.e?this.e:e,o.push(bn.fromDateTimes(i,n)),i=n,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:bn.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return bn.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const i=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s).sort(((e,t)=>e.time-t.time));for(const e of o)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!=+e.time&&i.push(bn.fromDateTimes(t,e.time)),t=null);return bn.merge(i)}difference(...e){return bn.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:gn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=u,t={}){return this.isValid?ft.create(this.s.loc.clone(t),e).formatInterval(this):gn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:gn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:gn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:gn}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:gn}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):fn.invalid(this.invalidReason)}mapEndpoints(e){return bn.fromDateTimes(e(this.s),e(this.e))}}let On=class{static hasDST(e=ue.defaultZone){const t=pi.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return A.isValidZone(e)}static normalizeZone(e){return ie(e,ue.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||X.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||X.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||X.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||X.create(t,n,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||X.create(t,n,s)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||X.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||X.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return X.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return X.create(t,null,"gregory").eras(e)}static features(){return{relative:Ce(),localeWeek:Ne()}}};function wn(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(t)-n(e);return Math.floor(fn.fromMillis(i).as("days"))}function Sn(e,t,n,i){let[s,o,a,r]=function(e,t,n){const i=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=wn(e,t);return(n-n%7)/7}],["days",wn]],s={},o=e;let a,r;for(const[c,l]of i)n.indexOf(c)>=0&&(a=c,s[c]=l(e,t),r=o.plus(s),r>t?(s[c]--,(e=o.plus(s))>t&&(r=e,s[c]--,e=o.plus(s))):e=r);return[e,s,r,a]}(e,t,n);const c=t-s,l=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===l.length&&(a<t&&(a=s.plus({[r]:1})),a!==s&&(o[r]=(o[r]||0)+c/(a-s)));const p=fn.fromObject(o,i);return l.length>0?fn.fromMillis(c,i).shiftTo(...l).plus(p):p}const Tn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Jn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Pn=Tn.hanidec.replace(/[\[|\]]/g,"").split("");function vn({numberingSystem:e},t=""){return new RegExp(`${Tn[e||"latn"]}${t}`)}const En="missing Intl.DateTimeFormat.formatToParts support";function Rn(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(-1!==e[n].search(Tn.hanidec))t+=Pn.indexOf(e[n]);else for(const e in Jn){const[n,s]=Jn[e];i>=n&&i<=s&&(t+=i-n)}}return parseInt(t,10)}return t}(e))}}const jn=`[ ${String.fromCharCode(160)}]`,$n=new RegExp(jn,"g");function In(e){return e.replace(/\./g,"\\.?").replace($n,jn)}function Cn(e){return e.replace(/\./g,"").replace($n," ").toLowerCase()}function Nn(e,t){return null===e?null:{regex:RegExp(e.map(In).join("|")),deser:([n])=>e.findIndex((e=>Cn(n)===Cn(e)))+t}}function kn(e,t){return{regex:e,deser:([,e,t])=>He(e,t),groups:t}}function Dn(e){return{regex:e,deser:([e])=>e}}const Ln={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Un=null;function Gn(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=xn(ft.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}function qn(e,t,n){const i=Gn(ft.parseFormat(n),e),s=i.map((t=>function(e,t){const n=vn(t),i=vn(t,"{2}"),s=vn(t,"{3}"),o=vn(t,"{4}"),a=vn(t,"{6}"),r=vn(t,"{1,2}"),c=vn(t,"{1,3}"),l=vn(t,"{1,6}"),p=vn(t,"{1,9}"),h=vn(t,"{2,4}"),u=vn(t,"{4,6}"),d=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},y=(y=>{if(e.literal)return d(y);switch(y.val){case"G":return Nn(t.eras("short"),0);case"GG":return Nn(t.eras("long"),0);case"y":return Rn(l);case"yy":case"kk":return Rn(h,Ze);case"yyyy":case"kkkk":return Rn(o);case"yyyyy":return Rn(u);case"yyyyyy":return Rn(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Rn(r);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Rn(i);case"MMM":return Nn(t.months("short",!0),1);case"MMMM":return Nn(t.months("long",!0),1);case"LLL":return Nn(t.months("short",!1),1);case"LLLL":return Nn(t.months("long",!1),1);case"o":case"S":return Rn(c);case"ooo":case"SSS":return Rn(s);case"u":return Dn(p);case"uu":return Dn(r);case"uuu":case"E":case"c":return Rn(n);case"a":return Nn(t.meridiems(),0);case"EEE":return Nn(t.weekdays("short",!1),1);case"EEEE":return Nn(t.weekdays("long",!1),1);case"ccc":return Nn(t.weekdays("short",!0),1);case"cccc":return Nn(t.weekdays("long",!0),1);case"Z":case"ZZ":return kn(new RegExp(`([+-]${r.source})(?::(${i.source}))?`),2);case"ZZZ":return kn(new RegExp(`([+-]${r.source})(${i.source})?`),2);case"z":return Dn(/[a-z_+-/]{1,256}?/i);case" ":return Dn(/[^\S\n\r]/);default:return d(y)}})(e)||{invalidReason:En};return y.token=e,y}(t,e))),a=s.find((e=>e.invalidReason));if(a)return{input:t,tokens:i,invalidReason:a.invalidReason};{const[e,n]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(s),a=RegExp(e,"i"),[r,c]=function(e,t,n){const i=e.match(t);if(i){const e={};let t=1;for(const s in n)if(De(n,s)){const o=n[s],a=o.groups?o.groups+1:1;!o.literal&&o.token&&(e[o.token.val[0]]=o.deser(i.slice(t,t+a))),t+=a}return[i,e]}return[i,{}]}(t,a,n),[l,p,h]=c?function(e){let t,n=null;return je(e.z)||(n=A.create(e.z)),je(e.Z)||(n||(n=new te(e.Z)),t=e.Z),je(e.q)||(e.M=3*(e.q-1)+1),je(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),je(e.u)||(e.S=Ae(e.u)),[Object.keys(e).reduce(((t,n)=>{const i=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return i&&(t[i]=e[n]),t}),{}),n,t]}(c):[null,null,void 0];if(De(c,"a")&&De(c,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:i,regex:a,rawMatches:r,matches:c,result:l,zone:p,specificOffset:h}}}function xn(e,t){if(!e)return null;const n=ft.create(t,e).dtFormatter((Un||(Un=pi.fromMillis(1555555555555)),Un)),i=n.formatToParts(),s=n.resolvedOptions();return i.map((t=>function(e,t,n){const{type:i,value:s}=e;if("literal"===i){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[i];let a=i;"hour"===i&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let r=Ln[a];if("object"==typeof r&&(r=r[o]),r)return{literal:!1,val:r}}(t,e,s)))}const An="Invalid DateTime",Bn=864e13;function Fn(e){return new de("unsupported zone",`the zone "${e.name}" is not supported`)}function Vn(e){return null===e.weekData&&(e.weekData=Se(e.c)),e.weekData}function Mn(e){return null===e.localWeekData&&(e.localWeekData=Se(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function _n(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new pi({...n,...t,old:n})}function Wn(e,t,n){let i=e-60*t*1e3;const s=n.offset(i);if(t===s)return[i,t];i-=60*(s-t)*1e3;const o=n.offset(i);return s===o?[i,s]:[e-60*Math.min(s,o)*1e3,Math.max(s,o)]}function zn(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Zn(e,t,n){return Wn(_e(e),t,n)}function Yn(e,t){const n=e.o,i=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o={...e.c,year:i,month:s,day:Math.min(e.c.day,Me(i,s))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=fn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),r=_e(o);let[c,l]=Wn(r,n,e.zone);return 0!==a&&(c+=a,l=e.zone.offset(c)),{ts:c,o:l}}function Hn(e,t,n,i,s,o){const{setZone:a,zone:r}=n;if(e&&0!==Object.keys(e).length||t){const i=t||r,s=pi.fromObject(e,{...n,zone:i,specificOffset:o});return a?s:s.setZone(r)}return pi.invalid(new de("unparsable",`the input "${s}" can't be parsed as ${i}`))}function Kn(e,t,n=!0){return e.isValid?ft.create(X.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Qn(e,t){const n=e.c.year>9999||e.c.year<0;let i="";return n&&e.c.year>=0&&(i+="+"),i+=Ge(e.c.year,n?6:4),t?(i+="-",i+=Ge(e.c.month),i+="-",i+=Ge(e.c.day)):(i+=Ge(e.c.month),i+=Ge(e.c.day)),i}function Xn(e,t,n,i,s,o){let a=Ge(e.c.hour);return t?(a+=":",a+=Ge(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=":")):a+=Ge(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=Ge(e.c.second),0===e.c.millisecond&&i||(a+=".",a+=Ge(e.c.millisecond,3))),s&&(e.isOffsetFixed&&0===e.offset&&!o?a+="Z":e.o<0?(a+="-",a+=Ge(Math.trunc(-e.o/60)),a+=":",a+=Ge(Math.trunc(-e.o%60))):(a+="+",a+=Ge(Math.trunc(e.o/60)),a+=":",a+=Ge(Math.trunc(e.o%60)))),o&&(a+="["+e.zone.ianaName+"]"),a}const ei={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ti={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ni={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ii=["year","month","day","hour","minute","second","millisecond"],si=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],oi=["year","ordinal","hour","minute","second","millisecond"];function ai(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new a(e);return t}(e)}}function ri(e,t){const n=ie(t.zone,ue.defaultZone),i=X.fromObject(t),s=ue.now();let o,a;if(je(e.year))o=s;else{for(const t of ii)je(e[t])&&(e[t]=ei[t]);const t=Ee(e)||Re(e);if(t)return pi.invalid(t);const i=n.offset(s);[o,a]=Zn(e,i,n)}return new pi({ts:o,zone:n,loc:i,o:a})}function ci(e,t,n){const i=!!je(n.round)||n.round,s=(e,s)=>{e=Be(e,i||n.calendary?0:2,!0);return t.loc.clone(n).relFormatter(n).format(e,s)},o=i=>n.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(n.unit)return s(o(n.unit),n.unit);for(const e of n.units){const t=o(e);if(Math.abs(t)>=1)return s(t,e)}return s(e>t?-0:0,n.units[n.units.length-1])}function li(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class pi{constructor(e){const t=e.zone||ue.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new de("invalid input"):null)||(t.isValid?null:Fn(t));this.ts=je(e.ts)?ue.now():e.ts;let i=null,s=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[i,s]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);i=zn(this.ts,e),n=Number.isNaN(i.year)?new de("invalid input"):null,i=n?null:i,s=n?null:e}}this._zone=t,this.loc=e.loc||X.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=s,this.isLuxonDateTime=!0}static now(){return new pi({})}static local(){const[e,t]=li(arguments),[n,i,s,o,a,r,c]=t;return ri({year:n,month:i,day:s,hour:o,minute:a,second:r,millisecond:c},e)}static utc(){const[e,t]=li(arguments),[n,i,s,o,a,r,c]=t;return e.zone=te.utcInstance,ri({year:n,month:i,day:s,hour:o,minute:a,second:r,millisecond:c},e)}static fromJSDate(e,t={}){const n=(i=e,"[object Date]"===Object.prototype.toString.call(i)?e.valueOf():NaN);var i;if(Number.isNaN(n))return pi.invalid("invalid input");const s=ie(t.zone,ue.defaultZone);return s.isValid?new pi({ts:n,zone:s,loc:X.fromObject(t)}):pi.invalid(Fn(s))}static fromMillis(e,t={}){if($e(e))return e<-Bn||e>Bn?pi.invalid("Timestamp out of range"):new pi({ts:e,zone:ie(t.zone,ue.defaultZone),loc:X.fromObject(t)});throw new r(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if($e(e))return new pi({ts:1e3*e,zone:ie(t.zone,ue.defaultZone),loc:X.fromObject(t)});throw new r("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=ie(t.zone,ue.defaultZone);if(!n.isValid)return pi.invalid(Fn(n));const i=X.fromObject(t),s=Qe(e,ai),{minDaysInFirstWeek:a,startOfWeek:r}=ve(s,i),c=ue.now(),l=je(t.specificOffset)?n.offset(c):t.specificOffset,p=!je(s.ordinal),h=!je(s.year),u=!je(s.month)||!je(s.day),d=h||u,y=s.weekYear||s.weekNumber;if((d||p)&&y)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&p)throw new o("Can't mix ordinal dates with month/day");const m=y||s.weekday&&!d;let f,g,b=zn(c,l);m?(f=si,g=ti,b=Se(b,a,r)):p?(f=oi,g=ni,b=Je(b)):(f=ii,g=ei);let O=!1;for(const e of f){je(s[e])?s[e]=O?g[e]:b[e]:O=!0}const w=m?function(e,t=4,n=1){const i=Ie(e.weekYear),s=Ue(e.weekNumber,1,ze(e.weekYear,t,n)),o=Ue(e.weekday,1,7);return i?s?!o&&fe("weekday",e.weekday):fe("week",e.weekNumber):fe("weekYear",e.weekYear)}(s,a,r):p?function(e){const t=Ie(e.year),n=Ue(e.ordinal,1,Ve(e.year));return t?!n&&fe("ordinal",e.ordinal):fe("year",e.year)}(s):Ee(s),S=w||Re(s);if(S)return pi.invalid(S);const T=m?Te(s,a,r):p?Pe(s):s,[J,P]=Zn(T,l,n),v=new pi({ts:J,zone:n,o:P,loc:i});return s.weekday&&d&&e.weekday!==v.weekday?pi.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${v.toISO()}`):v}static fromISO(e,t={}){const[n,i]=function(e){return wt(e,[Wt,Ht],[zt,Kt],[Zt,Qt],[Yt,Xt])}(e);return Hn(n,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,i]=function(e){return wt(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[xt,At])}(e);return Hn(n,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,i]=function(e){return wt(e,[Bt,Mt],[Ft,Mt],[Vt,_t])}(e);return Hn(n,i,t,"HTTP",t)}static fromFormat(e,t,n={}){if(je(e)||je(t))throw new r("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:s=null}=n,o=X.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0}),[a,c,l,p]=function(e,t,n){const{result:i,zone:s,specificOffset:o,invalidReason:a}=qn(e,t,n);return[i,s,o,a]}(o,e,t);return p?pi.invalid(p):Hn(a,c,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return pi.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,i]=function(e){return wt(e,[tn,Ht],[nn,sn])}(e);return Hn(n,i,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new r("need to specify a reason the DateTime is invalid");const i=e instanceof de?e:new de(e,t);if(ue.throwOnInvalid)throw new n(i);return new pi({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=xn(e,X.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return Gn(ft.parseFormat(e),X.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Vn(this).weekYear:NaN}get weekNumber(){return this.isValid?Vn(this).weekNumber:NaN}get weekday(){return this.isValid?Vn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Mn(this).weekday:NaN}get localWeekNumber(){return this.isValid?Mn(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Mn(this).weekYear:NaN}get ordinal(){return this.isValid?Je(this.c).ordinal:NaN}get monthShort(){return this.isValid?On.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?On.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?On.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?On.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=_e(this.c),i=this.zone.offset(n-e),s=this.zone.offset(n+e),o=this.zone.offset(n-i*t),a=this.zone.offset(n-s*t);if(o===a)return[this];const r=n-o*t,c=n-a*t,l=zn(r,o),p=zn(c,a);return l.hour===p.hour&&l.minute===p.minute&&l.second===p.second&&l.millisecond===p.millisecond?[_n(this,{ts:r}),_n(this,{ts:c})]:[this]}get isInLeapYear(){return Fe(this.year)}get daysInMonth(){return Me(this.year,this.month)}get daysInYear(){return this.isValid?Ve(this.year):NaN}get weeksInWeekYear(){return this.isValid?ze(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ze(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:i}=ft.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(te.instance(e),t)}toLocal(){return this.setZone(ue.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=ie(e,ue.defaultZone)).equals(this.zone))return this;if(e.isValid){let i=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[i]=Zn(n,t,e)}return _n(this,{ts:i,zone:e})}return pi.invalid(Fn(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return _n(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Qe(e,ai),{minDaysInFirstWeek:n,startOfWeek:i}=ve(t,this.loc),s=!je(t.weekYear)||!je(t.weekNumber)||!je(t.weekday),a=!je(t.ordinal),r=!je(t.year),c=!je(t.month)||!je(t.day),l=r||c,p=t.weekYear||t.weekNumber;if((l||a)&&p)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new o("Can't mix ordinal dates with month/day");let h;s?h=Te({...Se(this.c,n,i),...t},n,i):je(t.ordinal)?(h={...this.toObject(),...t},je(t.day)&&(h.day=Math.min(Me(h.year,h.month),h.day))):h=Pe({...Je(this.c),...t});const[u,d]=Zn(h,this.o,this.zone);return _n(this,{ts:u,o:d})}plus(e){if(!this.isValid)return this;return _n(this,Yn(this,fn.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return _n(this,Yn(this,fn.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},i=fn.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===i)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===i){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?ft.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):An}toLocaleString(e=u,t={}){return this.isValid?ft.create(this.loc.clone(t),e).formatDateTime(this):An}toLocaleParts(e={}){return this.isValid?ft.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const o="extended"===e;let a=Qn(this,o);return a+="T",a+=Xn(this,o,t,n,i,s),a}toISODate({format:e="extended"}={}){return this.isValid?Qn(this,"extended"===e):null}toISOWeekDate(){return Kn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:s=!1,format:o="extended"}={}){if(!this.isValid)return null;return(i?"T":"")+Xn(this,"extended"===o,t,e,n,s)}toRFC2822(){return Kn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Kn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Qn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(t||e)&&(n&&(i+=" "),t?i+="z":e&&(i+="ZZ")),Kn(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():An}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return fn.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(r=t,Array.isArray(r)?r:[r]).map(fn.normalizeUnit),o=e.valueOf()>this.valueOf(),a=Sn(o?this:e,o?e:this,s,i);var r;return o?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(pi.now(),e,t)}until(e){return this.isValid?bn.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const i=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(t,n)<=i&&i<=s.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||pi.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let i=["years","months","days","hours","minutes","seconds"],s=e.unit;return Array.isArray(e.unit)&&(i=e.unit,s=void 0),ci(t,this.plus(n),{...e,numeric:"always",units:i,unit:s})}toRelativeCalendar(e={}){return this.isValid?ci(e.base||pi.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(pi.isDateTime))throw new r("min requires all arguments be DateTimes");return ke(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(pi.isDateTime))throw new r("max requires all arguments be DateTimes");return ke(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:i=null,numberingSystem:s=null}=n;return qn(X.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return pi.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return u}static get DATE_MED(){return d}static get DATE_MED_WITH_WEEKDAY(){return y}static get DATE_FULL(){return m}static get DATE_HUGE(){return f}static get TIME_SIMPLE(){return g}static get TIME_WITH_SECONDS(){return b}static get TIME_WITH_SHORT_OFFSET(){return O}static get TIME_WITH_LONG_OFFSET(){return w}static get TIME_24_SIMPLE(){return S}static get TIME_24_WITH_SECONDS(){return T}static get TIME_24_WITH_SHORT_OFFSET(){return J}static get TIME_24_WITH_LONG_OFFSET(){return P}static get DATETIME_SHORT(){return v}static get DATETIME_SHORT_WITH_SECONDS(){return E}static get DATETIME_MED(){return R}static get DATETIME_MED_WITH_SECONDS(){return j}static get DATETIME_MED_WITH_WEEKDAY(){return $}static get DATETIME_FULL(){return I}static get DATETIME_FULL_WITH_SECONDS(){return C}static get DATETIME_HUGE(){return N}static get DATETIME_HUGE_WITH_SECONDS(){return k}}function hi(e){if(pi.isDateTime(e))return e;if(e&&e.valueOf&&$e(e.valueOf()))return pi.fromJSDate(e);if(e&&"object"==typeof e)return pi.fromObject(e);throw new r(`Unknown datetime argument: ${e}, of type ${typeof e}`)}class ui{#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}get locale(){return this.#e}get timeZone(){return this.#t}getResource(e,t){if(!e)return null;const n=e.startsWith("@@:")?e.substring(3):e,i=t??n,s=this.#n[n];return s||i}format(e,...t){const n=this.getResource(e);if(!n)return"";const i=[],s=n.replace(/\{(\d+)\}/g,((e,n)=>(i[n]=!0,n<t.length?t[n]:e))),o=[];for(let e=0;e<t.length;e++)i[e]||o.push(t[e]);return s+(o.length?` [${o.join(", ")}]`:"")}formatCurrency(e,t){if(null==e)return null;try{return new Intl.NumberFormat(this.#e,{style:"currency",currency:t??this.getResource("/@system/default/currency")??void 0}).format(e).replace(String.fromCharCode(160)," ")}catch{return e.toString()}}formatDate(e){if(!e)return null;try{let t;return t=e instanceof Date?pi.fromJSDate(e).setLocale(this.#e):pi.fromISO(e).setLocale(this.#e),t.startOf("day").toLocaleString({year:"2-digit",month:"numeric",day:"numeric"})}catch(t){return e.toString()}}formatDateTime(e){if(!e)return null;try{let t;return t=e instanceof Date?pi.fromJSDate(e).setLocale(this.#e):pi.fromISO(e).setLocale(this.#e),t.toLocaleString({year:"2-digit",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}catch{return e.toString()}}formatNumber(e,t){if(null==e)return null;try{return new Intl.NumberFormat(t?.locale??this.#e,{style:"decimal",minimumFractionDigits:t?.digits??t?.minDigits??0,maximumFractionDigits:t?.digits??t?.maxDigits??20}).format(e)||e.toString()}catch{return e.toString()}}formatQuantity(e,t){return this.formatNumber(e,t)}formatTime(e){if(null==e)return null;try{let t;return t=e instanceof Date?pi.fromJSDate(e).setLocale(this.#e):pi.fromISO(e).setLocale(this.#e),t.toLocaleString(pi.TIME_24_WITH_SECONDS)}catch{return e.toString()}}formatUnitValue(e){return this.formatNumber(e,{minDigits:2,maxDigits:8})}formatValue(e){return this.formatNumber(e,{digits:2})}formatWeight(e){return this.formatNumber(e,{minDigits:3,maxDigits:6})}localizeNode(e){e instanceof HTMLElement&&Array.from(e.attributes).forEach((t=>{const n=t.value.replace(/@@:([\\/@\\.\\-\\+\\#\w]+)/g,((e,t)=>this.getResource(t)??""));n!==t.value&&e.setAttribute(t.name,n)}));const t=e instanceof HTMLTemplateElement?e.content:e;for(const e of t.childNodes){if(!e.hasChildNodes()&&e.textContent){const t=e.textContent.replace(/@@:([\\/@\\.\\-\\+\\#\w]+)/g,((e,t)=>this.getResource(t)??""));t!==e.textContent&&(e.textContent=t)}t.hasChildNodes()&&this.localizeNode(e)}}observeNode(e){this.localizeNode(e);new MutationObserver((e=>{e.forEach((e=>{if("childList"===e.type)for(const t of e.addedNodes)this.localizeNode(t)}))})).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}}class di{#i;constructor(e){this.#i=e}async fetch(e,t){return this.#i.fetch(e,t)}async fetchBlob(e,t){const n=await this.#i.fetch(e,t);return await this.handleResponse(n),n.blob()}async fetchJson(e,t){const n=await this.#i.fetch(e,t);await this.handleResponse(n);const i=await n.text();return null==i||""===i?null:JSON.parse(i)}async fetchJsonRequired(e,t){const n=await this.fetchJson(e,t);if(null==n)throw new Error(`Not found: ${e}`);return n}async fetchOk(e,t){const n=await this.#i.fetch(e,t);return await this.handleResponse(n),n}async fetchText(e,t){const n=await this.#i.fetch(e,t);return await this.handleResponse(n),n.text()}async handleResponse(e){if(!e.ok){const t=await e.text();let n=null;try{const e=JSON.parse(t);n=new Error(e.message??t)}catch(i){n=new Error(`${e.status} ${t}`)}throw n}}}class yi{#s;#o;#a;#r=!1;#c;#l;constructor(e,t){this.#s=e,this.#o=t,this.#a=function(e){try{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(globalThis.atob(t).split("").map((function(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`})).join(""));return JSON.parse(n)}catch(t){throw new Error("Error parsing token "+e)}}(t)}async close(){}async fetch(e,t){const n=`${this.#s}${e}`,i=t??{},s=`Bearer ${this.#o}`;return i.headers instanceof Headers?i.headers.append("Authorization",s):Array.isArray(i.headers)?i.headers.push(["Authorization",s]):i.headers?i.headers.Authorization=s:i.headers={Authorization:s},this.#r&&console.debug(`${i.method??"GET"} ${e}`),fetch(n,i)}get i18n(){return this.#c||(this.#c=(async()=>async function(e){const t=await e.web.fetchJson("/system/resources");return new ui(e.language,e.timeZone,t)}(this))()),this.#c}get jti(){return this.#a.jti}get jwt(){return this.#o}get language(){return this.#a.locale}get timeZone(){return this.#a.timeZone}get user(){return this.#a.sub}get web(){return this.#l||(this.#l=new di(this)),this.#l}}function mi(e,t,n){if(!e)throw new Error("Missing argument: host");if(!t)throw new Error("Missing argument: token");return e.toLowerCase().startsWith("http")||(e=`https://${e}.zenerp.app.br:8443`),new yi(e,t)}var fi=Object.freeze({__proto__:null,AuthService:class{#p;constructor(e){this.#p=e}async login(e){return this.#p.web.fetchJson("/auth/login",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async logout(){return this.#p.web.fetchJson("/auth/logout",{method:"POST"})}async me(){return this.#p.web.fetchJson("/auth/me",{method:"GET"})}async passwordRecover(e){const t=new URLSearchParams;return e&&t.set("username",String(e)),this.#p.web.fetchJson(`/auth/passwordRecover?${t.toString()}`,{method:"POST"})}async passwordReset(e,t){const n=new URLSearchParams;return e&&n.set("resetToken",String(e)),t&&n.set("newPassword",String(t)),this.#p.web.fetchJson(`/auth/passwordReset?${n.toString()}`,{method:"POST"})}async refresh(e){const t=new URLSearchParams;return e&&t.set("refreshToken",String(e)),this.#p.web.fetchJson(`/auth/refresh?${t.toString()}`,{method:"POST"})}async register(e){return this.#p.web.fetchJson("/auth/register",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},TokenResponse:class{accessToken;refreshToken}});var gi=Object.freeze({__proto__:null,Company:class{id;code;person;locale;timeZone;society;fiscalRegion;fiscalProfileCompany;currency;stockCluster;warehouse;priceList;image;creditLine;mailerConfig;tags;properties},CompanyService:class{#p;constructor(e){this.#p=e}async companyCreate(e){return this.#p.web.fetchJson("/catalog/company/company",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async companyDelete(e){return this.#p.web.fetchJson(`/catalog/company/company/${e}`,{method:"DELETE"})}async companyOpGetActive(){return this.#p.web.fetchJson("/catalog/company/companyOpGetActive",{method:"POST"})}async companyOpSetActive(e){return this.#p.web.fetchJson(`/catalog/company/companyOpSetActive/${e}`,{method:"POST"})}async companyRead(e){return this.#p.web.fetchJson(`/catalog/company/company?${e}`,{method:"GET"})}async companyReadById(e){return this.#p.web.fetchJson(`/catalog/company/company/${e}`,{method:"GET"})}async companyUpdate(e){return this.#p.web.fetchJson("/catalog/company/company",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async societyCreate(e){return this.#p.web.fetchJson("/catalog/company/society",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async societyDelete(e){return this.#p.web.fetchJson(`/catalog/company/society/${e}`,{method:"DELETE"})}async societyRead(e){return this.#p.web.fetchJson(`/catalog/company/society?${e}`,{method:"GET"})}async societyReadById(e){return this.#p.web.fetchJson(`/catalog/company/society/${e}`,{method:"GET"})}async societyUpdate(e){return this.#p.web.fetchJson("/catalog/company/society",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Society:class{id;code;description;tags;properties}});var bi=Object.freeze({__proto__:null,City:class{id;name;state;tags;properties},CityBasic:class{id;name;stateId;stateCode;stateName;countryId;countryCodeA2;countryCodeA3;countryCodeN;countryName;tags},Country:class{id;name;codeA2;codeA3;codeN;tags;properties},Geocode:class{latitude;longitude},LocationService:class{#p;constructor(e){this.#p=e}async cityCreate(e){return this.#p.web.fetchJson("/catalog/location/city",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async cityDelete(e){return this.#p.web.fetchJson(`/catalog/location/city/${e}`,{method:"DELETE"})}async cityOpFind(e){return this.#p.web.fetchJson("/catalog/location/cityOpFind",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async cityRead(e){return this.#p.web.fetchJson(`/catalog/location/city?${e}`,{method:"GET"})}async cityReadById(e){return this.#p.web.fetchJson(`/catalog/location/city/${e}`,{method:"GET"})}async cityUpdate(e){return this.#p.web.fetchJson("/catalog/location/city",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async countryCreate(e){return this.#p.web.fetchJson("/catalog/location/country",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async countryDelete(e){return this.#p.web.fetchJson(`/catalog/location/country/${e}`,{method:"DELETE"})}async countryRead(e){return this.#p.web.fetchJson(`/catalog/location/country?${e}`,{method:"GET"})}async countryReadById(e){return this.#p.web.fetchJson(`/catalog/location/country/${e}`,{method:"GET"})}async countryUpdate(e){return this.#p.web.fetchJson("/catalog/location/country",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async geocodeRead(e){const t=new URLSearchParams;return e&&t.set("address",String(e)),this.#p.web.fetchJson(`/catalog/location/geocode?${t.toString()}`,{method:"GET"})}async stateCreate(e){return this.#p.web.fetchJson("/catalog/location/state",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stateDelete(e){return this.#p.web.fetchJson(`/catalog/location/state/${e}`,{method:"DELETE"})}async stateRead(e){return this.#p.web.fetchJson(`/catalog/location/state?${e}`,{method:"GET"})}async stateReadById(e){return this.#p.web.fetchJson(`/catalog/location/state/${e}`,{method:"GET"})}async stateUpdate(e){return this.#p.web.fetchJson("/catalog/location/state",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async zipcodeRead(e,t){const n=new URLSearchParams;return e&&n.set("country",String(e)),t&&n.set("zipcode",String(t)),this.#p.web.fetchJson(`/catalog/location/zipcode?${n.toString()}`,{method:"GET"})}},State:class{id;code;name;country;tags;properties},Zipcode:class{zipcode;street;complement;district;city;state;country}});var Oi=Object.freeze({__proto__:null,Person:class{id;type;name;fantasyName;nationality;documentType;documentNumber;document2Type;document2Number;zipcode;street;number;complement;district;city;email;phone;comments;codeConversionList;priceListCost;priceListRetail;fiscalProfilePerson;personGroup;category1;category2;category3;category4;category5;personSalesperson;personShipping;tags;properties},PersonAddress:class{id;person;description;zipcode;street;number;complement;district;city;tags;properties},PersonBasic:class{id;type;name;fantasyName;documentType;documentNumber;tags},PersonComment:class{id;person;comments;tags;properties},PersonContact:class{id;person;type;description;tags;properties},PersonDocument:class{id;person;type;number;tags;properties},PersonGroup:class{id;code;description;priceListRetail;tags;properties},PersonService:class{#p;constructor(e){this.#p=e}async personAddressCreate(e){return this.#p.web.fetchJson("/catalog/person/personAddress",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personAddressDelete(e){return this.#p.web.fetchJson(`/catalog/person/personAddress/${e}`,{method:"DELETE"})}async personAddressOpSetDefault(e){return this.#p.web.fetchJson(`/catalog/person/personAddressOpSetDefault/${e}`,{method:"POST"})}async personAddressRead(e){return this.#p.web.fetchJson(`/catalog/person/personAddress?${e}`,{method:"GET"})}async personAddressReadById(e){return this.#p.web.fetchJson(`/catalog/person/personAddress/${e}`,{method:"GET"})}async personAddressUpdate(e){return this.#p.web.fetchJson("/catalog/person/personAddress",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personBasicRead(e){return this.#p.web.fetchJson(`/catalog/person/personBasic?${e}`,{method:"GET"})}async personBasicReadById(e){return this.#p.web.fetchJson(`/catalog/person/personBasic/${e}`,{method:"GET"})}async personCommentCreate(e){return this.#p.web.fetchJson("/catalog/person/personComment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personCommentDelete(e){return this.#p.web.fetchJson(`/catalog/person/personComment/${e}`,{method:"DELETE"})}async personCommentRead(e){return this.#p.web.fetchJson(`/catalog/person/personComment?${e}`,{method:"GET"})}async personCommentReadById(e){return this.#p.web.fetchJson(`/catalog/person/personComment/${e}`,{method:"GET"})}async personCommentUpdate(e){return this.#p.web.fetchJson("/catalog/person/personComment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personContactCreate(e){return this.#p.web.fetchJson("/catalog/person/personContact",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personContactDelete(e){return this.#p.web.fetchJson(`/catalog/person/personContact/${e}`,{method:"DELETE"})}async personContactRead(e){return this.#p.web.fetchJson(`/catalog/person/personContact?${e}`,{method:"GET"})}async personContactReadById(e){return this.#p.web.fetchJson(`/catalog/person/personContact/${e}`,{method:"GET"})}async personContactUpdate(e){return this.#p.web.fetchJson("/catalog/person/personContact",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personCreate(e){return this.#p.web.fetchJson("/catalog/person/person",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personDelete(e){return this.#p.web.fetchJson(`/catalog/person/person/${e}`,{method:"DELETE"})}async personDocumentCreate(e){return this.#p.web.fetchJson("/catalog/person/personDocument",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personDocumentDelete(e){return this.#p.web.fetchJson(`/catalog/person/personDocument/${e}`,{method:"DELETE"})}async personDocumentRead(e){return this.#p.web.fetchJson(`/catalog/person/personDocument?${e}`,{method:"GET"})}async personDocumentReadById(e){return this.#p.web.fetchJson(`/catalog/person/personDocument/${e}`,{method:"GET"})}async personDocumentUpdate(e){return this.#p.web.fetchJson("/catalog/person/personDocument",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personGroupCreate(e){return this.#p.web.fetchJson("/catalog/person/personGroup",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personGroupDelete(e){return this.#p.web.fetchJson(`/catalog/person/personGroup/${e}`,{method:"DELETE"})}async personGroupRead(e){return this.#p.web.fetchJson(`/catalog/person/personGroup?${e}`,{method:"GET"})}async personGroupReadById(e){return this.#p.web.fetchJson(`/catalog/person/personGroup/${e}`,{method:"GET"})}async personGroupUpdate(e){return this.#p.web.fetchJson("/catalog/person/personGroup",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personOpReadFromPersonDirectory(e,t){const n=new URLSearchParams;return e&&n.set("documentType",String(e)),t&&n.set("documentNumber",String(t)),this.#p.web.fetchJson(`/catalog/person/personOpReadFromPersonDirectory?${n.toString()}`,{method:"POST"})}async personRead(e){return this.#p.web.fetchJson(`/catalog/person/person?${e}`,{method:"GET"})}async personReadById(e){return this.#p.web.fetchJson(`/catalog/person/person/${e}`,{method:"GET"})}async personUpdate(e){return this.#p.web.fetchJson("/catalog/person/person",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var wi=Object.freeze({__proto__:null,CodeConversion:class{id;codeConversionList;productPacking;unit;code;tags;properties},CodeConversionList:class{id;code;description;tags;properties},Dimension:class{id;code;description;standardUnit;tags},Product:class{id;productProfile;type;code;description;complement;keywords;unit;fiscalProfileProduct;variant;barcode;lengthCm;widthCm;heightCm;volumeM3;netWeightKg;grossWeightKg;category1;category2;category3;category4;category5;tags;properties},ProductKitComponent:class{id;product;productPacking;quantity;tags;properties},ProductPacking:class{id;product;variant;code;complement;barcode;units;lengthCm;widthCm;heightCm;volumeM3;netWeightKg;grossWeightKg;tags;properties},ProductProfile:class{id;code;description;unit;tags;properties},ProductService:class{#p;constructor(e){this.#p=e}async codeConversionCreate(e){return this.#p.web.fetchJson("/catalog/product/codeConversion",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async codeConversionDelete(e){return this.#p.web.fetchJson(`/catalog/product/codeConversion/${e}`,{method:"DELETE"})}async codeConversionListCreate(e){return this.#p.web.fetchJson("/catalog/product/codeConversionList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async codeConversionListDelete(e){return this.#p.web.fetchJson(`/catalog/product/codeConversionList/${e}`,{method:"DELETE"})}async codeConversionListRead(e){return this.#p.web.fetchJson(`/catalog/product/codeConversionList?${e}`,{method:"GET"})}async codeConversionListReadById(e){return this.#p.web.fetchJson(`/catalog/product/codeConversionList/${e}`,{method:"GET"})}async codeConversionListUpdate(e){return this.#p.web.fetchJson("/catalog/product/codeConversionList",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async codeConversionRead(e){return this.#p.web.fetchJson(`/catalog/product/codeConversion?${e}`,{method:"GET"})}async codeConversionReadById(e){return this.#p.web.fetchJson(`/catalog/product/codeConversion/${e}`,{method:"GET"})}async codeConversionUpdate(e){return this.#p.web.fetchJson("/catalog/product/codeConversion",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dimensionCreate(e){return this.#p.web.fetchJson("/catalog/product/dimension",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dimensionDelete(e){return this.#p.web.fetchJson(`/catalog/product/dimension/${e}`,{method:"DELETE"})}async dimensionRead(e){return this.#p.web.fetchJson(`/catalog/product/dimension?${e}`,{method:"GET"})}async dimensionReadById(e){return this.#p.web.fetchJson(`/catalog/product/dimension/${e}`,{method:"GET"})}async dimensionUpdate(e){return this.#p.web.fetchJson("/catalog/product/dimension",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productCreate(e){return this.#p.web.fetchJson("/catalog/product/product",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productDelete(e){return this.#p.web.fetchJson(`/catalog/product/product/${e}`,{method:"DELETE"})}async productKitComponentCreate(e){return this.#p.web.fetchJson("/catalog/product/productKitComponent",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productKitComponentDelete(e){return this.#p.web.fetchJson(`/catalog/product/productKitComponent/${e}`,{method:"DELETE"})}async productKitComponentRead(e){return this.#p.web.fetchJson(`/catalog/product/productKitComponent?${e}`,{method:"GET"})}async productKitComponentReadById(e){return this.#p.web.fetchJson(`/catalog/product/productKitComponent/${e}`,{method:"GET"})}async productKitComponentUpdate(e){return this.#p.web.fetchJson("/catalog/product/productKitComponent",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productOpClone(e,t){return this.#p.web.fetchJson(`/catalog/product/productOpClone/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async productOpConvertToUnit(e,t,n){const i=new URLSearchParams;return t&&i.set("unitId",String(t)),n&&i.set("quantity",String(n)),this.#p.web.fetchJson(`/catalog/product/productOpConvertToUnit/${e}?${i.toString()}`,{method:"POST"})}async productPackingCreate(e){return this.#p.web.fetchJson("/catalog/product/productPacking",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productPackingDelete(e){return this.#p.web.fetchJson(`/catalog/product/productPacking/${e}`,{method:"DELETE"})}async productPackingOpConvertToUnit(e,t,n){const i=new URLSearchParams;return t&&i.set("unitId",String(t)),n&&i.set("quantity",String(n)),this.#p.web.fetchJson(`/catalog/product/productPackingOpConvertToUnit/${e}?${i.toString()}`,{method:"POST"})}async productPackingRead(e){return this.#p.web.fetchJson(`/catalog/product/productPacking?${e}`,{method:"GET"})}async productPackingReadById(e){return this.#p.web.fetchJson(`/catalog/product/productPacking/${e}`,{method:"GET"})}async productPackingUpdate(e){return this.#p.web.fetchJson("/catalog/product/productPacking",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productProfileCreate(e){return this.#p.web.fetchJson("/catalog/product/productProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productProfileDelete(e){return this.#p.web.fetchJson(`/catalog/product/productProfile/${e}`,{method:"DELETE"})}async productProfileRead(e){return this.#p.web.fetchJson(`/catalog/product/productProfile?${e}`,{method:"GET"})}async productProfileReadById(e){return this.#p.web.fetchJson(`/catalog/product/productProfile/${e}`,{method:"GET"})}async productProfileUpdate(e){return this.#p.web.fetchJson("/catalog/product/productProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productRead(e){return this.#p.web.fetchJson(`/catalog/product/product?${e}`,{method:"GET"})}async productReadById(e){return this.#p.web.fetchJson(`/catalog/product/product/${e}`,{method:"GET"})}async productUnitConversionCreate(e){return this.#p.web.fetchJson("/catalog/product/productUnitConversion",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productUnitConversionDelete(e){return this.#p.web.fetchJson(`/catalog/product/productUnitConversion/${e}`,{method:"DELETE"})}async productUnitConversionRead(e){return this.#p.web.fetchJson(`/catalog/product/productUnitConversion?${e}`,{method:"GET"})}async productUnitConversionReadById(e){return this.#p.web.fetchJson(`/catalog/product/productUnitConversion/${e}`,{method:"GET"})}async productUnitConversionUpdate(e){return this.#p.web.fetchJson("/catalog/product/productUnitConversion",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productUpdate(e){return this.#p.web.fetchJson("/catalog/product/product",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productVariantCreate(e){return this.#p.web.fetchJson("/catalog/product/productVariant",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productVariantDelete(e){return this.#p.web.fetchJson(`/catalog/product/productVariant/${e}`,{method:"DELETE"})}async productVariantRead(e){return this.#p.web.fetchJson(`/catalog/product/productVariant?${e}`,{method:"GET"})}async productVariantReadById(e){return this.#p.web.fetchJson(`/catalog/product/productVariant/${e}`,{method:"GET"})}async productVariantUpdate(e){return this.#p.web.fetchJson("/catalog/product/productVariant",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async unitCreate(e){return this.#p.web.fetchJson("/catalog/product/unit",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async unitDelete(e){return this.#p.web.fetchJson(`/catalog/product/unit/${e}`,{method:"DELETE"})}async unitRead(e){return this.#p.web.fetchJson(`/catalog/product/unit?${e}`,{method:"GET"})}async unitReadById(e){return this.#p.web.fetchJson(`/catalog/product/unit/${e}`,{method:"GET"})}async unitUpdate(e){return this.#p.web.fetchJson("/catalog/product/unit",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},ProductUnitConversion:class{id;product;productPacking;unit;conversionFactor;scale;tags;properties},ProductVariant:class{id;code;description;tags;properties},Unit:class{id;dimension;code;description;conversionFactor;tags}});var Si=Object.freeze({__proto__:null,CatalogService:class{#p;constructor(e){this.#p=e}async categoryCreate(e){return this.#p.web.fetchJson("/catalog/category",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async categoryDelete(e){return this.#p.web.fetchJson(`/catalog/category/${e}`,{method:"DELETE"})}async categoryRead(e){return this.#p.web.fetchJson(`/catalog/category?${e}`,{method:"GET"})}async categoryReadById(e){return this.#p.web.fetchJson(`/catalog/category/${e}`,{method:"GET"})}async categoryUpdate(e){return this.#p.web.fetchJson("/catalog/category",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Category:class{id;category;code;description;tags;properties},company:gi,location:bi,person:Oi,product:wi});var Ti=Object.freeze({__proto__:null,Contract:class{id;status;company;contractProfile;workflow;workpiece;person;code;dateStart;dateEnd;billingCycle;billingInterval;billingGraceDays;billingLastDate;billingNextDate;contractIndex;contractIndexValue;adjustmentCycle;adjustmentInterval;adjustmentLastDate;adjustmentNextDate;totalValue;tags;properties},ContractBilling:class{id;status;contractItem;date;value;tags;properties},ContractIndex:class{id;code;description;value;tags;properties},ContractItem:class{id;contract;description;quantity;unitValue;totalValue;tags;properties},ContractProfile:class{id;code;description;workflow;tags;properties},ContractService:class{#p;constructor(e){this.#p=e}async contractBillingCreate(e){return this.#p.web.fetchJson("/commercial/contract/contractBilling",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractBillingDelete(e){return this.#p.web.fetchJson(`/commercial/contract/contractBilling/${e}`,{method:"DELETE"})}async contractBillingOpApprove(e){return this.#p.web.fetchJson(`/commercial/contract/contractBillingOpApprove/${e}`,{method:"POST"})}async contractBillingOpApproveRevert(e){return this.#p.web.fetchJson(`/commercial/contract/contractBillingOpApproveRevert/${e}`,{method:"POST"})}async contractBillingOpCreate(e){const t=new URLSearchParams;return e&&t.set("contractId",String(e)),this.#p.web.fetchJson(`/commercial/contract/contractBillingOpCreate?${t.toString()}`,{method:"POST"})}async contractBillingOpCreateInvoice(e){return this.#p.web.fetchJson("/commercial/contract/contractBillingOpCreateInvoice",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractBillingOpCreateRevert(e){const t=new URLSearchParams;return e&&t.set("contractId",String(e)),this.#p.web.fetchJson(`/commercial/contract/contractBillingOpCreateRevert?${t.toString()}`,{method:"POST"})}async contractBillingOpPrepare(e){return this.#p.web.fetchJson(`/commercial/contract/contractBillingOpPrepare/${e}`,{method:"POST"})}async contractBillingOpPrepareRevert(e){return this.#p.web.fetchJson(`/commercial/contract/contractBillingOpPrepareRevert/${e}`,{method:"POST"})}async contractBillingRead(e){return this.#p.web.fetchJson(`/commercial/contract/contractBilling?${e}`,{method:"GET"})}async contractBillingReadById(e){return this.#p.web.fetchJson(`/commercial/contract/contractBilling/${e}`,{method:"GET"})}async contractBillingUpdate(e){return this.#p.web.fetchJson("/commercial/contract/contractBilling",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractCreate(e){return this.#p.web.fetchJson("/commercial/contract/contract",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractDelete(e){return this.#p.web.fetchJson(`/commercial/contract/contract/${e}`,{method:"DELETE"})}async contractIndexCreate(e){return this.#p.web.fetchJson("/commercial/contract/contractIndex",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractIndexDelete(e){return this.#p.web.fetchJson(`/commercial/contract/contractIndex/${e}`,{method:"DELETE"})}async contractIndexRead(e){return this.#p.web.fetchJson(`/commercial/contract/contractIndex?${e}`,{method:"GET"})}async contractIndexReadById(e){return this.#p.web.fetchJson(`/commercial/contract/contractIndex/${e}`,{method:"GET"})}async contractIndexUpdate(e){return this.#p.web.fetchJson("/commercial/contract/contractIndex",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractItemCreate(e){return this.#p.web.fetchJson("/commercial/contract/contractItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractItemDelete(e){return this.#p.web.fetchJson(`/commercial/contract/contractItem/${e}`,{method:"DELETE"})}async contractItemRead(e){return this.#p.web.fetchJson(`/commercial/contract/contractItem?${e}`,{method:"GET"})}async contractItemReadById(e){return this.#p.web.fetchJson(`/commercial/contract/contractItem/${e}`,{method:"GET"})}async contractItemUpdate(e){return this.#p.web.fetchJson("/commercial/contract/contractItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractOpAdjust(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpAdjust/${e}`,{method:"POST"})}async contractOpApprove(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpApprove/${e}`,{method:"POST"})}async contractOpApproveRevert(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpApproveRevert/${e}`,{method:"POST"})}async contractOpCancel(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpCancel/${e}`,{method:"POST"})}async contractOpCancelRevert(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpCancelRevert/${e}`,{method:"POST"})}async contractOpCreate(e){return this.#p.web.fetchJson("/commercial/contract/contractOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractOpPrepare(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpPrepare/${e}`,{method:"POST"})}async contractOpPrepareRevert(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpPrepareRevert/${e}`,{method:"POST"})}async contractProfileCreate(e){return this.#p.web.fetchJson("/commercial/contract/contractProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractProfileDelete(e){return this.#p.web.fetchJson(`/commercial/contract/contractProfile/${e}`,{method:"DELETE"})}async contractProfileRead(e){return this.#p.web.fetchJson(`/commercial/contract/contractProfile?${e}`,{method:"GET"})}async contractProfileReadById(e){return this.#p.web.fetchJson(`/commercial/contract/contractProfile/${e}`,{method:"GET"})}async contractProfileUpdate(e){return this.#p.web.fetchJson("/commercial/contract/contractProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractRead(e){return this.#p.web.fetchJson(`/commercial/contract/contract?${e}`,{method:"GET"})}async contractReadById(e){return this.#p.web.fetchJson(`/commercial/contract/contract/${e}`,{method:"GET"})}async contractUpdate(e){return this.#p.web.fetchJson("/commercial/contract/contract",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Ji=Object.freeze({__proto__:null,CommercialService:class{#p;constructor(e){this.#p=e}async priceListChangeRequestCreate(e){return this.#p.web.fetchJson("/commercial/priceListChangeRequest",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListChangeRequestDelete(e){return this.#p.web.fetchJson(`/commercial/priceListChangeRequest/${e}`,{method:"DELETE"})}async priceListChangeRequestOpApprove(e){return this.#p.web.fetchJson(`/commercial/priceListChangeRequestOpApprove/${e}`,{method:"POST"})}async priceListChangeRequestOpReject(e){return this.#p.web.fetchJson(`/commercial/priceListChangeRequestOpReject/${e}`,{method:"POST"})}async priceListChangeRequestRead(e){return this.#p.web.fetchJson(`/commercial/priceListChangeRequest?${e}`,{method:"GET"})}async priceListChangeRequestReadById(e){return this.#p.web.fetchJson(`/commercial/priceListChangeRequest/${e}`,{method:"GET"})}async priceListOpFind(e,t,n,i){const s=new URLSearchParams;return t&&s.set("productId",String(t)),n&&s.set("productPackingId",String(n)),i&&s.set("currencyId",String(i)),this.#p.web.fetchJson(`/commercial/priceListOpFind/${e}?${s.toString()}`,{method:"POST"})}async priceListTransformationCreate(e){return this.#p.web.fetchJson("/commercial/priceListTransformation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListTransformationDelete(e){return this.#p.web.fetchJson(`/commercial/priceListTransformation/${e}`,{method:"DELETE"})}async priceListTransformationOpCalculate(e){return this.#p.web.fetchJson(`/commercial/priceListTransformationOpCalculate/${e}`,{method:"POST"})}async priceListTransformationRead(e){return this.#p.web.fetchJson(`/commercial/priceListTransformation?${e}`,{method:"GET"})}async priceListTransformationReadById(e){return this.#p.web.fetchJson(`/commercial/priceListTransformation/${e}`,{method:"GET"})}async priceListTransformationUpdate(e){return this.#p.web.fetchJson("/commercial/priceListTransformation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},PriceList:class{id;type;code;description;notBefore;notAfter;currency;variationRateLow;variationRateHigh;tags;properties},PriceListChangeRequest:class{id;status;date;priceList;product;productPacking;currency;unitValue;tags;properties},PriceListItem:class{id;priceList;product;productPacking;currency;unitValue;variationRateLow;variationRateHigh;tags;properties},PriceListTransformation:class{id;priceListSource;priceListDestination;priceFormation;tags;properties},contract:Ti});var Pi=Object.freeze({__proto__:null,Account:class{id;accountChart;code;level;type;description;fullDescription;tags;properties},AccountCategory:class{id;code;description;tags;properties},AccountChart:class{id;code;description;mask;tags;properties},AccountComplement:class{id;resultCenter;person},AccountConversion:class{id;accountConversionChart;accountSource;accountDestination},AccountConversionChart:class{id;accountChartSource;accountChartDestination;tags},AccountDefault:class{id;accountChart;accountCategory;person;product;tax;channelCode;wallet;account;tags;properties},AccountFiscalYear:class{fiscalYear;id;accountChart;code;level;type;description;fullDescription;tags;properties},AccountingService:class{#p;constructor(e){this.#p=e}async accountCategoryCreate(e){return this.#p.web.fetchJson("/financial/accounting/accountCategory",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountCategoryDelete(e){return this.#p.web.fetchJson(`/financial/accounting/accountCategory/${e}`,{method:"DELETE"})}async accountCategoryRead(e){return this.#p.web.fetchJson(`/financial/accounting/accountCategory?${e}`,{method:"GET"})}async accountCategoryReadById(e){return this.#p.web.fetchJson(`/financial/accounting/accountCategory/${e}`,{method:"GET"})}async accountCategoryUpdate(e){return this.#p.web.fetchJson("/financial/accounting/accountCategory",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountChartCreate(e){return this.#p.web.fetchJson("/financial/accounting/accountChart",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountChartDelete(e){return this.#p.web.fetchJson(`/financial/accounting/accountChart/${e}`,{method:"DELETE"})}async accountChartOpClone(e){return this.#p.web.fetchJson(`/financial/accounting/accountChartOpClone/${e}`,{method:"POST"})}async accountChartOpImport(e,t){return this.#p.web.fetchJson(`/financial/accounting/accountChartOpImport/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async accountChartOpLevelCreate(e,t,n){const i=new URLSearchParams;return t&&i.set("level",String(t)),n&&i.set("digits",String(n)),this.#p.web.fetchJson(`/financial/accounting/accountChartOpLevelCreate/${e}?${i.toString()}`,{method:"POST"})}async accountChartOpLevelDelete(e,t){const n=new URLSearchParams;return t&&n.set("level",String(t)),this.#p.web.fetchJson(`/financial/accounting/accountChartOpLevelDelete/${e}?${n.toString()}`,{method:"POST"})}async accountChartOpLevelUpdate(e,t,n){const i=new URLSearchParams;return t&&i.set("level",String(t)),n&&i.set("digits",String(n)),this.#p.web.fetchJson(`/financial/accounting/accountChartOpLevelUpdate/${e}?${i.toString()}`,{method:"POST"})}async accountChartOpNextShortCode(e){return this.#p.web.fetchJson(`/financial/accounting/accountChartOpNextShortCode/${e}`,{method:"POST"})}async accountChartRead(e){return this.#p.web.fetchJson(`/financial/accounting/accountChart?${e}`,{method:"GET"})}async accountChartReadById(e){return this.#p.web.fetchJson(`/financial/accounting/accountChart/${e}`,{method:"GET"})}async accountChartUpdate(e){return this.#p.web.fetchJson("/financial/accounting/accountChart",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountConversionChartCreate(e){return this.#p.web.fetchJson("/financial/accounting/accountConversionChart",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountConversionChartDelete(e){return this.#p.web.fetchJson(`/financial/accounting/accountConversionChart/${e}`,{method:"DELETE"})}async accountConversionChartRead(e){return this.#p.web.fetchJson(`/financial/accounting/accountConversionChart?${e}`,{method:"GET"})}async accountConversionChartReadById(e){return this.#p.web.fetchJson(`/financial/accounting/accountConversionChart/${e}`,{method:"GET"})}async accountConversionChartUpdate(e){return this.#p.web.fetchJson("/financial/accounting/accountConversionChart",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountConversionCreate(e){return this.#p.web.fetchJson("/financial/accounting/accountConversion",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountConversionDelete(e){return this.#p.web.fetchJson(`/financial/accounting/accountConversion/${e}`,{method:"DELETE"})}async accountConversionRead(e){return this.#p.web.fetchJson(`/financial/accounting/accountConversion?${e}`,{method:"GET"})}async accountConversionReadById(e){return this.#p.web.fetchJson(`/financial/accounting/accountConversion/${e}`,{method:"GET"})}async accountConversionUpdate(e){return this.#p.web.fetchJson("/financial/accounting/accountConversion",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountCreate(e){return this.#p.web.fetchJson("/financial/accounting/account",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountDefaultCreate(e){return this.#p.web.fetchJson("/financial/accounting/accountDefault",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountDefaultDelete(e){return this.#p.web.fetchJson(`/financial/accounting/accountDefault/${e}`,{method:"DELETE"})}async accountDefaultOpRead(e){return this.#p.web.fetchJson("/financial/accounting/accountDefaultOpRead",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountDefaultRead(e){return this.#p.web.fetchJson(`/financial/accounting/accountDefault?${e}`,{method:"GET"})}async accountDefaultReadById(e){return this.#p.web.fetchJson(`/financial/accounting/accountDefault/${e}`,{method:"GET"})}async accountDefaultUpdate(e){return this.#p.web.fetchJson("/financial/accounting/accountDefault",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountDelete(e){return this.#p.web.fetchJson(`/financial/accounting/account/${e}`,{method:"DELETE"})}async accountFiscalYearRead(e){return this.#p.web.fetchJson(`/financial/accounting/accountFiscalYear?${e}`,{method:"GET"})}async accountRead(e){return this.#p.web.fetchJson(`/financial/accounting/account?${e}`,{method:"GET"})}async accountReadById(e){return this.#p.web.fetchJson(`/financial/accounting/account/${e}`,{method:"GET"})}async accountUpdate(e){return this.#p.web.fetchJson("/financial/accounting/account",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async assetInventoryCurrentRead(e){return this.#p.web.fetchJson(`/financial/accounting/assetInventoryCurrent?${e}`,{method:"GET"})}async assetInventoryRead(e){return this.#p.web.fetchJson(`/financial/accounting/assetInventory?${e}`,{method:"GET"})}async assetTagRead(e){return this.#p.web.fetchJson(`/financial/accounting/assetTag?${e}`,{method:"GET"})}async assetTagReadById(e){return this.#p.web.fetchJson(`/financial/accounting/assetTag/${e}`,{method:"GET"})}async fiscalYearOpClose(e){return this.#p.web.fetchJson(`/financial/accounting/fiscalYearOpClose/${e}`,{method:"POST"})}async journalEntryCreate(e){return this.#p.web.fetchJson("/financial/accounting/journalEntry",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async journalEntryDelete(e){return this.#p.web.fetchJson(`/financial/accounting/journalEntry/${e}`,{method:"DELETE"})}async journalEntryOpCreate(e){return this.#p.web.fetchJson("/financial/accounting/journalEntryOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async journalEntryOpPublish(e){return this.#p.web.fetchJson(`/financial/accounting/journalEntryOpPublish/${e}`,{method:"POST"})}async journalEntryOpPublishRevert(e){return this.#p.web.fetchJson(`/financial/accounting/journalEntryOpPublishRevert/${e}`,{method:"POST"})}async journalEntryOpUpdate(e){return this.#p.web.fetchJson("/financial/accounting/journalEntryOpUpdate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async journalEntryRead(e){return this.#p.web.fetchJson(`/financial/accounting/journalEntry?${e}`,{method:"GET"})}async journalEntryReadById(e){return this.#p.web.fetchJson(`/financial/accounting/journalEntry/${e}`,{method:"GET"})}async journalEntryUpdate(e){return this.#p.web.fetchJson("/financial/accounting/journalEntry",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async journalItemCreate(e){return this.#p.web.fetchJson("/financial/accounting/journalItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async journalItemDelete(e){return this.#p.web.fetchJson(`/financial/accounting/journalItem/${e}`,{method:"DELETE"})}async journalItemRead(e){return this.#p.web.fetchJson(`/financial/accounting/journalItem?${e}`,{method:"GET"})}async journalItemReadById(e){return this.#p.web.fetchJson(`/financial/accounting/journalItem/${e}`,{method:"GET"})}async journalItemUpdate(e){return this.#p.web.fetchJson("/financial/accounting/journalItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async ledgerItemBalanceRead(e){return this.#p.web.fetchJson(`/financial/accounting/ledgerItemBalance?${e}`,{method:"GET"})}async ledgerItemRead(e){return this.#p.web.fetchJson(`/financial/accounting/ledgerItem?${e}`,{method:"GET"})}async ledgerItemReadById(e){return this.#p.web.fetchJson(`/financial/accounting/ledgerItem/${e}`,{method:"GET"})}async resultCenterChartCreate(e){return this.#p.web.fetchJson("/financial/accounting/resultCenterChart",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async resultCenterChartDelete(e){return this.#p.web.fetchJson(`/financial/accounting/resultCenterChart/${e}`,{method:"DELETE"})}async resultCenterChartOpLevelCreate(e,t,n){const i=new URLSearchParams;return t&&i.set("level",String(t)),n&&i.set("digits",String(n)),this.#p.web.fetchJson(`/financial/accounting/resultCenterChartOpLevelCreate/${e}?${i.toString()}`,{method:"POST"})}async resultCenterChartOpLevelDelete(e,t){const n=new URLSearchParams;return t&&n.set("level",String(t)),this.#p.web.fetchJson(`/financial/accounting/resultCenterChartOpLevelDelete/${e}?${n.toString()}`,{method:"POST"})}async resultCenterChartOpLevelUpdate(e,t,n){const i=new URLSearchParams;return t&&i.set("level",String(t)),n&&i.set("digits",String(n)),this.#p.web.fetchJson(`/financial/accounting/resultCenterChartOpLevelUpdate/${e}?${i.toString()}`,{method:"POST"})}async resultCenterChartRead(e){return this.#p.web.fetchJson(`/financial/accounting/resultCenterChart?${e}`,{method:"GET"})}async resultCenterChartReadById(e){return this.#p.web.fetchJson(`/financial/accounting/resultCenterChart/${e}`,{method:"GET"})}async resultCenterChartUpdate(e){return this.#p.web.fetchJson("/financial/accounting/resultCenterChart",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async resultCenterCreate(e){return this.#p.web.fetchJson("/financial/accounting/resultCenter",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async resultCenterDelete(e){return this.#p.web.fetchJson(`/financial/accounting/resultCenter/${e}`,{method:"DELETE"})}async resultCenterRead(e){return this.#p.web.fetchJson(`/financial/accounting/resultCenter?${e}`,{method:"GET"})}async resultCenterReadById(e){return this.#p.web.fetchJson(`/financial/accounting/resultCenter/${e}`,{method:"GET"})}async resultCenterUpdate(e){return this.#p.web.fetchJson("/financial/accounting/resultCenter",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},AssetInventory:class{id;stockCluster;productPacking;assetTag;lotId;transactionId;dateTime;description;quantity;totalValue;quantityBalance;totalValueBalance},AssetInventoryCurrent:class{id;stockCluster;productPacking;assetTag;lotId;transactionId;dateTime;description;quantity;totalValue;quantityBalance;totalValueBalance},AssetTag:class{id;fiscalProfileProduct;account;accountComplement},JournalEntry:class{id;company;status;date;source;description;tags;properties;credits;debits;value},JournalItem:class{id;journalEntry;account;accountComplement;value;sign;description},LedgerItem:class{id;journalEntry;company;fiscalYear;date;account;accountComplement;accountCounterpart;value;sign;description;previousBalance;balance},LedgerItemBalance:class{company;fiscalYear;account;accountComplement;value},ResultCenter:class{id;resultCenterChart;code;level;type;description;fullDescription;tags},ResultCenterChart:class{id;code;description;mask;tags}});var vi=Object.freeze({__proto__:null,Batch:class{id;datetime;quantity;file;tags;properties},BatchRequest:class{status;wallet;id;datetime;quantity;file;tags;properties},BatchResponse:class{status;wallet;id;datetime;quantity;file;tags;properties},BillingService:class{#p;constructor(e){this.#p=e}async batchRequestCreate(e){return this.#p.web.fetchJson("/financial/billing/batchRequest",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async batchRequestDelete(e){return this.#p.web.fetchJson(`/financial/billing/batchRequest/${e}`,{method:"DELETE"})}async batchRequestOpAddInstructions(e,t){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpAddInstructions/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async batchRequestOpApprove(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpApprove/${e}`,{method:"POST"})}async batchRequestOpApproveRevert(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpApproveRevert/${e}`,{method:"POST"})}async batchRequestOpCreateFile(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpCreateFile/${e}`,{method:"POST"})}async batchRequestOpPrepare(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpPrepare/${e}`,{method:"POST"})}async batchRequestOpPrepareRevert(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpPrepareRevert/${e}`,{method:"POST"})}async batchRequestOpSend(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpSend/${e}`,{method:"POST"})}async batchRequestOpSendRevert(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpSendRevert/${e}`,{method:"POST"})}async batchRequestRead(e){return this.#p.web.fetchJson(`/financial/billing/batchRequest?${e}`,{method:"GET"})}async batchRequestReadById(e){return this.#p.web.fetchJson(`/financial/billing/batchRequest/${e}`,{method:"GET"})}async batchRequestUpdate(e){return this.#p.web.fetchJson("/financial/billing/batchRequest",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async batchResponseDelete(e){return this.#p.web.fetchJson(`/financial/billing/batchResponse/${e}`,{method:"DELETE"})}async batchResponseOpApprove(e){return this.#p.web.fetchJson(`/financial/billing/batchResponseOpApprove/${e}`,{method:"POST"})}async batchResponseOpApproveRevert(e){return this.#p.web.fetchJson(`/financial/billing/batchResponseOpApproveRevert/${e}`,{method:"POST"})}async batchResponseOpCreate(e){return this.#p.web.fetchJson("/financial/billing/batchResponseOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async batchResponseOpPrepare(e){return this.#p.web.fetchJson(`/financial/billing/batchResponseOpPrepare/${e}`,{method:"POST"})}async batchResponseOpPrepareRevert(e){return this.#p.web.fetchJson(`/financial/billing/batchResponseOpPrepareRevert/${e}`,{method:"POST"})}async batchResponseOpProcess(e){return this.#p.web.fetchJson(`/financial/billing/batchResponseOpProcess/${e}`,{method:"POST"})}async batchResponseRead(e){return this.#p.web.fetchJson(`/financial/billing/batchResponse?${e}`,{method:"GET"})}async batchResponseReadById(e){return this.#p.web.fetchJson(`/financial/billing/batchResponse/${e}`,{method:"GET"})}async instructionRequestDelete(e){return this.#p.web.fetchJson(`/financial/billing/instructionRequest/${e}`,{method:"DELETE"})}async instructionRequestOpAddToBatch(e,t){const n=new URLSearchParams;return t&&n.set("batchId",String(t)),this.#p.web.fetchJson(`/financial/billing/instructionRequestOpAddToBatch/${e}?${n.toString()}`,{method:"POST"})}async instructionRequestOpCreate(e){return this.#p.web.fetchJson("/financial/billing/instructionRequestOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async instructionRequestOpCreateChangeDueDate(e,t){const n=new URLSearchParams;return e&&n.set("billingTitleId",String(e)),t&&n.set("dueDate",String(t)),this.#p.web.fetchJson(`/financial/billing/instructionRequestOpCreateChangeDueDate?${n.toString()}`,{method:"POST"})}async instructionRequestOpCreateRegister(e,t){const n=new URLSearchParams;return e&&n.set("billingTitleId",String(e)),t&&n.set("walletId",String(t)),this.#p.web.fetchJson(`/financial/billing/instructionRequestOpCreateRegister?${n.toString()}`,{method:"POST"})}async instructionRequestOpCreateUnregister(e){const t=new URLSearchParams;return e&&t.set("billingTitleId",String(e)),this.#p.web.fetchJson(`/financial/billing/instructionRequestOpCreateUnregister?${t.toString()}`,{method:"POST"})}async instructionRequestOpRemoveFromBatch(e){return this.#p.web.fetchJson(`/financial/billing/instructionRequestOpRemoveFromBatch/${e}`,{method:"POST"})}async instructionRequestRead(e){return this.#p.web.fetchJson(`/financial/billing/instructionRequest?${e}`,{method:"GET"})}async instructionRequestReadById(e){return this.#p.web.fetchJson(`/financial/billing/instructionRequest/${e}`,{method:"GET"})}async instructionRequestUpdate(e){return this.#p.web.fetchJson("/financial/billing/instructionRequest",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async instructionResponseCreate(e){return this.#p.web.fetchJson("/financial/billing/instructionResponse",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async instructionResponseDelete(e){return this.#p.web.fetchJson(`/financial/billing/instructionResponse/${e}`,{method:"DELETE"})}async instructionResponseOpIgnore(e){return this.#p.web.fetchJson(`/financial/billing/instructionResponseOpIgnore/${e}`,{method:"POST"})}async instructionResponseOpIgnoreRevert(e){return this.#p.web.fetchJson(`/financial/billing/instructionResponseOpIgnoreRevert/${e}`,{method:"POST"})}async instructionResponseOpProcess(e){return this.#p.web.fetchJson(`/financial/billing/instructionResponseOpProcess/${e}`,{method:"POST"})}async instructionResponseRead(e){return this.#p.web.fetchJson(`/financial/billing/instructionResponse?${e}`,{method:"GET"})}async instructionResponseReadById(e){return this.#p.web.fetchJson(`/financial/billing/instructionResponse/${e}`,{method:"GET"})}async instructionResponseUpdate(e){return this.#p.web.fetchJson("/financial/billing/instructionResponse",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async walletCreate(e){return this.#p.web.fetchJson("/financial/billing/wallet",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async walletDelete(e){return this.#p.web.fetchJson(`/financial/billing/wallet/${e}`,{method:"DELETE"})}async walletOpGetSequence(e){return this.#p.web.fetchJson(`/financial/billing/walletOpGetSequence/${e}`,{method:"POST"})}async walletRead(e){return this.#p.web.fetchJson(`/financial/billing/wallet?${e}`,{method:"GET"})}async walletReadById(e){return this.#p.web.fetchJson(`/financial/billing/wallet/${e}`,{method:"GET"})}async walletUpdate(e){return this.#p.web.fetchJson("/financial/billing/wallet",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Instruction:class{id;billingTitle;wallet;date;tags;properties},InstructionRequest:class{status;type;batch;id;billingTitle;wallet;date;tags;properties},InstructionResponse:class{status;type;batch;id;billingTitle;wallet;date;tags;properties},Wallet:class{id;company;code;description;type;batchLastSequence;bankNumberLastSequence;interestRateMonth;lateFee;tags;properties}});var Ei=Object.freeze({__proto__:null,CreditLine:class{id;code;description;tags;properties},CreditLineItem:class{id;creditLine;personGroup;person;value;tags;properties},CreditService:class{#p;constructor(e){this.#p=e}async creditLineCreate(e){return this.#p.web.fetchJson("/financial/credit/creditLine",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async creditLineDelete(e){return this.#p.web.fetchJson(`/financial/credit/creditLine/${e}`,{method:"DELETE"})}async creditLineItemCreate(e){return this.#p.web.fetchJson("/financial/credit/creditLineItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async creditLineItemDelete(e){return this.#p.web.fetchJson(`/financial/credit/creditLineItem/${e}`,{method:"DELETE"})}async creditLineItemRead(e){return this.#p.web.fetchJson(`/financial/credit/creditLineItem?${e}`,{method:"GET"})}async creditLineItemReadById(e){return this.#p.web.fetchJson(`/financial/credit/creditLineItem/${e}`,{method:"GET"})}async creditLineItemUpdate(e){return this.#p.web.fetchJson("/financial/credit/creditLineItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async creditLineRead(e){return this.#p.web.fetchJson(`/financial/credit/creditLine?${e}`,{method:"GET"})}async creditLineReadById(e){return this.#p.web.fetchJson(`/financial/credit/creditLine/${e}`,{method:"GET"})}async creditLineUpdate(e){return this.#p.web.fetchJson("/financial/credit/creditLine",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Ri=Object.freeze({__proto__:null,AccountStatement:class{id;status;company;account;fitid;date;description;value;tags;properties},TreasuryService:class{#p;constructor(e){this.#p=e}async accountStatementCreate(e){return this.#p.web.fetchJson("/financial/treasury/accountStatement",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountStatementDelete(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatement/${e}`,{method:"DELETE"})}async accountStatementOpConsolidate(e,t){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpConsolidate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async accountStatementOpConsolidateRevert(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpConsolidateRevert/${e}`,{method:"POST"})}async accountStatementOpIdentify(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpIdentify/${e}`,{method:"POST"})}async accountStatementOpIdentifyRevert(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpIdentifyRevert/${e}`,{method:"POST"})}async accountStatementOpIgnore(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpIgnore/${e}`,{method:"POST"})}async accountStatementOpIgnoreRevert(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpIgnoreRevert/${e}`,{method:"POST"})}async accountStatementOpSettle(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpSettle/${e}`,{method:"POST"})}async accountStatementOpSettleRevert(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpSettleRevert/${e}`,{method:"POST"})}async accountStatementRead(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatement?${e}`,{method:"GET"})}async accountStatementReadById(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatement/${e}`,{method:"GET"})}async accountStatementUpdate(e){return this.#p.web.fetchJson("/financial/treasury/accountStatement",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async expenseOpCreate(e){return this.#p.web.fetchJson("/financial/treasury/expenseOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async revenueOpCreate(e){return this.#p.web.fetchJson("/financial/treasury/revenueOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var ji=Object.freeze({__proto__:null,BillingTitle:class{id;status;source;company;person;payer;type;code;description;barcode;installment;date;issueDate;dueDate;value;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;balance;account;accountComplement;accountCounterpart;accountComplementCounterpart;wallet;tags;properties},Currency:class{id;code;symbol;tags},CurrencyExchangeRate:class{id;source;destination;date;exchangeRate},FinancialService:class{#p;constructor(e){this.#p=e}async currencyCreate(e){return this.#p.web.fetchJson("/financial/currency",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async currencyDelete(e){return this.#p.web.fetchJson(`/financial/currency/${e}`,{method:"DELETE"})}async currencyExchangeRateCreate(e){return this.#p.web.fetchJson("/financial/currencyExchangeRate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async currencyExchangeRateDelete(e){return this.#p.web.fetchJson(`/financial/currencyExchangeRate/${e}`,{method:"DELETE"})}async currencyExchangeRateOpConvert(e,t,n,i){const s=new URLSearchParams;return e&&s.set("sourceId",String(e)),t&&s.set("destinationId",String(t)),n&&s.set("date",String(n)),i&&s.set("value",String(i)),this.#p.web.fetchJson(`/financial/currencyExchangeRateOpConvert?${s.toString()}`,{method:"POST"})}async currencyExchangeRateOpGetExchangeRate(e,t,n){const i=new URLSearchParams;return e&&i.set("sourceId",String(e)),t&&i.set("destinationId",String(t)),n&&i.set("date",String(n)),this.#p.web.fetchJson(`/financial/currencyExchangeRateOpGetExchangeRate?${i.toString()}`,{method:"POST"})}async currencyExchangeRateRead(e){return this.#p.web.fetchJson(`/financial/currencyExchangeRate?${e}`,{method:"GET"})}async currencyExchangeRateReadById(e){return this.#p.web.fetchJson(`/financial/currencyExchangeRate/${e}`,{method:"GET"})}async currencyExchangeRateUpdate(e){return this.#p.web.fetchJson("/financial/currencyExchangeRate",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async currencyOpReadByCode(e){const t=new URLSearchParams;return e&&t.set("code",String(e)),this.#p.web.fetchJson(`/financial/currencyOpReadByCode?${t.toString()}`,{method:"POST"})}async currencyRead(e){return this.#p.web.fetchJson(`/financial/currency?${e}`,{method:"GET"})}async currencyReadById(e){return this.#p.web.fetchJson(`/financial/currency/${e}`,{method:"GET"})}async currencyUpdate(e){return this.#p.web.fetchJson("/financial/currency",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async payableCreate(e){return this.#p.web.fetchJson("/financial/payable",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async payableDelete(e){return this.#p.web.fetchJson(`/financial/payable/${e}`,{method:"DELETE"})}async payableOpApprove(e){return this.#p.web.fetchJson(`/financial/payableOpApprove/${e}`,{method:"POST"})}async payableOpApproveRevert(e){return this.#p.web.fetchJson(`/financial/payableOpApproveRevert/${e}`,{method:"POST"})}async payableOpRepeat(e,t){return this.#p.web.fetchJson(`/financial/payableOpRepeat/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async payableOpSettle(e){return this.#p.web.fetchJson("/financial/payableOpSettle",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async payableOpUpdate(e,t){return this.#p.web.fetchJson(`/financial/payableOpUpdate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async payableOpUpdatePrepared(e){return this.#p.web.fetchJson("/financial/payableOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async payableRead(e){return this.#p.web.fetchJson(`/financial/payable?${e}`,{method:"GET"})}async payableReadById(e){return this.#p.web.fetchJson(`/financial/payable/${e}`,{method:"GET"})}async payableSettlementBillingTitleRead(e){return this.#p.web.fetchJson(`/financial/payableSettlementBillingTitle?${e}`,{method:"GET"})}async payableSettlementBillingTitleReadById(e){return this.#p.web.fetchJson(`/financial/payableSettlementBillingTitle/${e}`,{method:"GET"})}async payableSettlementDelete(e){return this.#p.web.fetchJson(`/financial/payableSettlement/${e}`,{method:"DELETE"})}async payableSettlementMethodRead(e){return this.#p.web.fetchJson(`/financial/payableSettlementMethod?${e}`,{method:"GET"})}async payableSettlementMethodReadById(e){return this.#p.web.fetchJson(`/financial/payableSettlementMethod/${e}`,{method:"GET"})}async payableSettlementRead(e){return this.#p.web.fetchJson(`/financial/payableSettlement?${e}`,{method:"GET"})}async payableSettlementReadById(e){return this.#p.web.fetchJson(`/financial/payableSettlement/${e}`,{method:"GET"})}async payableUpdate(e){return this.#p.web.fetchJson("/financial/payable",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async receivableCreate(e){return this.#p.web.fetchJson("/financial/receivable",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async receivableDelete(e){return this.#p.web.fetchJson(`/financial/receivable/${e}`,{method:"DELETE"})}async receivableOpApprove(e){return this.#p.web.fetchJson(`/financial/receivableOpApprove/${e}`,{method:"POST"})}async receivableOpApproveRevert(e){return this.#p.web.fetchJson(`/financial/receivableOpApproveRevert/${e}`,{method:"POST"})}async receivableOpRepeat(e,t){return this.#p.web.fetchJson(`/financial/receivableOpRepeat/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async receivableOpSend(e){return this.#p.web.fetchJson("/financial/receivableOpSend",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async receivableOpSettle(e){return this.#p.web.fetchJson("/financial/receivableOpSettle",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async receivableOpUpdate(e,t){return this.#p.web.fetchJson(`/financial/receivableOpUpdate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async receivableOpUpdatePrepared(e){return this.#p.web.fetchJson("/financial/receivableOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async receivableRead(e){return this.#p.web.fetchJson(`/financial/receivable?${e}`,{method:"GET"})}async receivableReadById(e){return this.#p.web.fetchJson(`/financial/receivable/${e}`,{method:"GET"})}async receivableSettlementBillingTitleRead(e){return this.#p.web.fetchJson(`/financial/receivableSettlementBillingTitle?${e}`,{method:"GET"})}async receivableSettlementBillingTitleReadById(e){return this.#p.web.fetchJson(`/financial/receivableSettlementBillingTitle/${e}`,{method:"GET"})}async receivableSettlementDelete(e){return this.#p.web.fetchJson(`/financial/receivableSettlement/${e}`,{method:"DELETE"})}async receivableSettlementMethodRead(e){return this.#p.web.fetchJson(`/financial/receivableSettlementMethod?${e}`,{method:"GET"})}async receivableSettlementMethodReadById(e){return this.#p.web.fetchJson(`/financial/receivableSettlementMethod/${e}`,{method:"GET"})}async receivableSettlementRead(e){return this.#p.web.fetchJson(`/financial/receivableSettlement?${e}`,{method:"GET"})}async receivableSettlementReadById(e){return this.#p.web.fetchJson(`/financial/receivableSettlement/${e}`,{method:"GET"})}async receivableUpdate(e){return this.#p.web.fetchJson("/financial/receivable",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Payable:class{incomingInvoice;id;status;source;company;person;payer;type;code;description;barcode;installment;date;issueDate;dueDate;value;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;balance;account;accountComplement;accountCounterpart;accountComplementCounterpart;wallet;tags;properties},PayableSettlement:class{id;company;flow;person;date;settlementDate;billingTitleCount;entryCount;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;value;journalEntry;tags;properties},PayableSettlementBillingTitle:class{id;settlement;billingTitle;type;account;accountComplement;value},PayableSettlementMethod:class{id;settlement;type;account;accountComplement;value;billingTitle},Receivable:class{outgoingInvoice;id;status;source;company;person;payer;type;code;description;barcode;installment;date;issueDate;dueDate;value;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;balance;account;accountComplement;accountCounterpart;accountComplementCounterpart;wallet;tags;properties},ReceivableSettlement:class{id;company;flow;person;date;settlementDate;billingTitleCount;entryCount;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;value;journalEntry;tags;properties},ReceivableSettlementBillingTitle:class{id;settlement;billingTitle;type;account;accountComplement;value},ReceivableSettlementMethod:class{id;settlement;type;account;accountComplement;value;billingTitle},Settlement:class{id;company;flow;person;date;settlementDate;billingTitleCount;entryCount;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;value;journalEntry;tags;properties},SettlementBillingTitle:class{id;settlement;billingTitle;type;account;accountComplement;value},SettlementMethod:class{id;settlement;type;account;accountComplement;value;billingTitle},accounting:Pi,billing:vi,credit:Ei,treasury:Ri});var $i=Object.freeze({__proto__:null,Dfe:class{id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeNfeProcIn:class{status;incomingInvoice;number;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeNfeProcOut:class{status;outgoingInvoice;number;fileDanfe;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeProcEventoNFeIn:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeProcEventoNFeOut:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeProcInutNFe:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeResEvento:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeResNFeIn:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},FiscalBrService:class{#p;constructor(e){this.#p=e}async dfeNfeProcInCreate(e){return this.#p.web.fetchJson("/fiscal/br/dfeNfeProcIn",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dfeNfeProcInDelete(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcIn/${e}`,{method:"DELETE"})}async dfeNfeProcInOpIncomingInvoiceCreate(e,t){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcInOpIncomingInvoiceCreate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async dfeNfeProcInOpIncomingInvoiceCreateRevert(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcInOpIncomingInvoiceCreateRevert/${e}`,{method:"POST"})}async dfeNfeProcInRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcIn?${e}`,{method:"GET"})}async dfeNfeProcInReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcIn/${e}`,{method:"GET"})}async dfeNfeProcOutDelete(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOut/${e}`,{method:"DELETE"})}async dfeNfeProcOutOpCancel(e,t){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpCancel/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async dfeNfeProcOutOpConfirm(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpConfirm/${e}`,{method:"POST"})}async dfeNfeProcOutOpCorrect(e,t){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpCorrect/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async dfeNfeProcOutOpCreate(e){const t=new URLSearchParams;return e&&t.set("invoiceId",String(e)),this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpCreate?${t.toString()}`,{method:"POST"})}async dfeNfeProcOutOpDownload(e){return this.#p.web.fetchBlob("/fiscal/br/dfeNfeProcOutOpDownload",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async dfeNfeProcOutOpOutgoingInvoiceCreate(e,t){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpOutgoingInvoiceCreate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async dfeNfeProcOutOpSign(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpSign/${e}`,{method:"POST"})}async dfeNfeProcOutOpSignRevert(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpSignRevert/${e}`,{method:"POST"})}async dfeNfeProcOutOpTransmit(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpTransmit/${e}`,{method:"POST"})}async dfeNfeProcOutOpUpload(e){return this.#p.web.fetchJson("/fiscal/br/dfeNfeProcOutOpUpload",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dfeNfeProcOutRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOut?${e}`,{method:"GET"})}async dfeNfeProcOutReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOut/${e}`,{method:"GET"})}async dfeOpReadContent(e){return this.#p.web.fetchBlob(`/fiscal/br/dfeOpReadContent/${e}`,{method:"POST"})}async dfeProcEventoNFeInRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeProcEventoNFeIn?${e}`,{method:"GET"})}async dfeProcEventoNFeInReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeProcEventoNFeIn/${e}`,{method:"GET"})}async dfeProcEventoNFeOutRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeProcEventoNFeOut?${e}`,{method:"GET"})}async dfeProcEventoNFeOutReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeProcEventoNFeOut/${e}`,{method:"GET"})}async dfeProcInutNFeCreate(e){return this.#p.web.fetchJson("/fiscal/br/dfeProcInutNFe",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dfeProcInutNFeRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeProcInutNFe?${e}`,{method:"GET"})}async dfeProcInutNFeReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeProcInutNFe/${e}`,{method:"GET"})}async dfeRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfe?${e}`,{method:"GET"})}async dfeReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfe/${e}`,{method:"GET"})}async dfeResEventoRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeResEvento?${e}`,{method:"GET"})}async dfeResEventoReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeResEvento/${e}`,{method:"GET"})}async dfeResNFeInOpManifest(e,t){const n=new URLSearchParams;return t&&n.set("status",String(t)),this.#p.web.fetchJson(`/fiscal/br/dfeResNFeInOpManifest/${e}?${n.toString()}`,{method:"POST"})}async dfeResNFeInRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeResNFeIn?${e}`,{method:"GET"})}async dfeResNFeInReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeResNFeIn/${e}`,{method:"GET"})}async documentSefazOpFetch(e){return this.#p.web.fetchJson("/fiscal/br/documentSefazOpFetch",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async spedOpExport(e){return this.#p.web.fetchBlob("/fiscal/br/spedOpExport",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},TaxIBPT:class{id;uf;codigo;ex;tipo;nacionalfederal;importadosfederal;estadual;municipal}});var Ii=Object.freeze({__proto__:null,Tax:class{id;fiscalRegion;code;type;tags;properties},Taxation:class{id;source;tax;taxType;grossBaseValueExpression;grossBaseValue;grossBaseValueVariationRate;baseValue;taxRate;grossTaxValue;taxAdjustmentExpression;taxAdjustmentValue;taxValue;compensationRate;compensationValue;tags;properties},TaxationOperation:class{id;fiscalRegion;flow;code;description;tags;properties},TaxationRule:class{id;flow;fiscalProfileCompany;fiscalProfilePerson;fiscalProfileProduct;fiscalProfileOperation;taxationOperation;tags;properties},TaxationService:class{#p;constructor(e){this.#p=e}async taxCreate(e){return this.#p.web.fetchJson("/fiscal/taxation/tax",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxDelete(e){return this.#p.web.fetchJson(`/fiscal/taxation/tax/${e}`,{method:"DELETE"})}async taxOpReadByCode(e,t){const n=new URLSearchParams;return e&&n.set("fiscalRegionCode",String(e)),t&&n.set("code",String(t)),this.#p.web.fetchJson(`/fiscal/taxation/taxOpReadByCode?${n.toString()}`,{method:"POST"})}async taxRead(e){return this.#p.web.fetchJson(`/fiscal/taxation/tax?${e}`,{method:"GET"})}async taxReadById(e){return this.#p.web.fetchJson(`/fiscal/taxation/tax/${e}`,{method:"GET"})}async taxUpdate(e){return this.#p.web.fetchJson("/fiscal/taxation/tax",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxationCreate(e){return this.#p.web.fetchJson("/fiscal/taxation/taxation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxationDelete(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxation/${e}`,{method:"DELETE"})}async taxationOperationCreate(e){return this.#p.web.fetchJson("/fiscal/taxation/taxationOperation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxationOperationDelete(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxationOperation/${e}`,{method:"DELETE"})}async taxationOperationOpReadByCode(e,t){const n=new URLSearchParams;return e&&n.set("fiscalRegionCode",String(e)),t&&n.set("code",String(t)),this.#p.web.fetchJson(`/fiscal/taxation/taxationOperationOpReadByCode?${n.toString()}`,{method:"POST"})}async taxationOperationRead(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxationOperation?${e}`,{method:"GET"})}async taxationOperationReadById(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxationOperation/${e}`,{method:"GET"})}async taxationOperationUpdate(e){return this.#p.web.fetchJson("/fiscal/taxation/taxationOperation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxationRead(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxation?${e}`,{method:"GET"})}async taxationReadById(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxation/${e}`,{method:"GET"})}async taxationRuleCreate(e){return this.#p.web.fetchJson("/fiscal/taxation/taxationRule",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxationRuleDelete(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxationRule/${e}`,{method:"DELETE"})}async taxationRuleRead(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxationRule?${e}`,{method:"GET"})}async taxationRuleReadById(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxationRule/${e}`,{method:"GET"})}async taxationRuleUpdate(e){return this.#p.web.fetchJson("/fiscal/taxation/taxationRule",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxationUpdate(e){return this.#p.web.fetchJson("/fiscal/taxation/taxation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Ci=Object.freeze({__proto__:null,FiscalProfileOperation:class{id;fiscalRegion;code;description;tags;properties},FiscalProfilePerson:class{id;fiscalRegion;description;tags;properties},FiscalProfileProduct:class{id;fiscalRegion;description;tags;properties},FiscalRegion:class{id;code;tags},FiscalService:class{#p;constructor(e){this.#p=e}async fiscalProfileOperationCreate(e){return this.#p.web.fetchJson("/fiscal/fiscalProfileOperation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalProfileOperationDelete(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfileOperation/${e}`,{method:"DELETE"})}async fiscalProfileOperationOpReadByCode(e,t){const n=new URLSearchParams;return e&&n.set("fiscalRegionCode",String(e)),t&&n.set("code",String(t)),this.#p.web.fetchJson(`/fiscal/fiscalProfileOperationOpReadByCode?${n.toString()}`,{method:"POST"})}async fiscalProfileOperationRead(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfileOperation?${e}`,{method:"GET"})}async fiscalProfileOperationReadById(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfileOperation/${e}`,{method:"GET"})}async fiscalProfileOperationUpdate(e){return this.#p.web.fetchJson("/fiscal/fiscalProfileOperation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalProfilePersonCreate(e){return this.#p.web.fetchJson("/fiscal/fiscalProfilePerson",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalProfilePersonDelete(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfilePerson/${e}`,{method:"DELETE"})}async fiscalProfilePersonRead(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfilePerson?${e}`,{method:"GET"})}async fiscalProfilePersonReadById(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfilePerson/${e}`,{method:"GET"})}async fiscalProfilePersonUpdate(e){return this.#p.web.fetchJson("/fiscal/fiscalProfilePerson",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalProfileProductCreate(e){return this.#p.web.fetchJson("/fiscal/fiscalProfileProduct",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalProfileProductDelete(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfileProduct/${e}`,{method:"DELETE"})}async fiscalProfileProductRead(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfileProduct?${e}`,{method:"GET"})}async fiscalProfileProductReadById(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfileProduct/${e}`,{method:"GET"})}async fiscalProfileProductUpdate(e){return this.#p.web.fetchJson("/fiscal/fiscalProfileProduct",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalRegionCreate(e){return this.#p.web.fetchJson("/fiscal/fiscalRegion",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalRegionDelete(e){return this.#p.web.fetchJson(`/fiscal/fiscalRegion/${e}`,{method:"DELETE"})}async fiscalRegionOpReadByCode(e){const t=new URLSearchParams;return e&&t.set("code",String(e)),this.#p.web.fetchJson(`/fiscal/fiscalRegionOpReadByCode?${t.toString()}`,{method:"POST"})}async fiscalRegionRead(e){return this.#p.web.fetchJson(`/fiscal/fiscalRegion?${e}`,{method:"GET"})}async fiscalRegionReadById(e){return this.#p.web.fetchJson(`/fiscal/fiscalRegion/${e}`,{method:"GET"})}async fiscalRegionUpdate(e){return this.#p.web.fetchJson("/fiscal/fiscalRegion",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalYearCreate(e){return this.#p.web.fetchJson("/fiscal/fiscalYear",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalYearDelete(e){return this.#p.web.fetchJson(`/fiscal/fiscalYear/${e}`,{method:"DELETE"})}async fiscalYearOpPartialClosure(e,t){const n=new URLSearchParams;return t&&n.set("date",String(t)),this.#p.web.fetchJson(`/fiscal/fiscalYearOpPartialClosure/${e}?${n.toString()}`,{method:"POST"})}async fiscalYearOpPartialClosureRevert(e,t){const n=new URLSearchParams;return t&&n.set("date",String(t)),this.#p.web.fetchJson(`/fiscal/fiscalYearOpPartialClosureRevert/${e}?${n.toString()}`,{method:"POST"})}async fiscalYearOpPublish(e){return this.#p.web.fetchJson(`/fiscal/fiscalYearOpPublish/${e}`,{method:"POST"})}async fiscalYearOpPublishRevert(e){return this.#p.web.fetchJson(`/fiscal/fiscalYearOpPublishRevert/${e}`,{method:"POST"})}async fiscalYearOpRead(e,t){const n=new URLSearchParams;return e&&n.set("companyId",String(e)),t&&n.set("date",String(t)),this.#p.web.fetchJson(`/fiscal/fiscalYearOpRead?${n.toString()}`,{method:"POST"})}async fiscalYearRead(e){return this.#p.web.fetchJson(`/fiscal/fiscalYear?${e}`,{method:"GET"})}async fiscalYearReadById(e){return this.#p.web.fetchJson(`/fiscal/fiscalYear/${e}`,{method:"GET"})}async fiscalYearUpdate(e){return this.#p.web.fetchJson("/fiscal/fiscalYear",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceCreate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoice",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceDelete(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoice/${e}`,{method:"DELETE"})}async incomingInvoiceItemCreate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoiceItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceItemDelete(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceItem/${e}`,{method:"DELETE"})}async incomingInvoiceItemRead(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceItem?${e}`,{method:"GET"})}async incomingInvoiceItemReadById(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceItem/${e}`,{method:"GET"})}async incomingInvoiceItemUpdate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoiceItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceOpApprove(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpApprove/${e}`,{method:"POST"})}async incomingInvoiceOpApproveDivergences(e,t){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpApproveDivergences/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async incomingInvoiceOpApproveRevert(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpApproveRevert/${e}`,{method:"POST"})}async incomingInvoiceOpCreate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoiceOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceOpCreateFromIncomingList(e){return this.#p.web.fetchJson("/fiscal/incomingInvoiceOpCreateFromIncomingList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceOpPrepare(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpPrepare/${e}`,{method:"POST"})}async incomingInvoiceOpPrepareRevert(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpPrepareRevert/${e}`,{method:"POST"})}async incomingInvoiceOpReject(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpReject/${e}`,{method:"POST"})}async incomingInvoiceOpRejectRevert(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpRejectRevert/${e}`,{method:"POST"})}async incomingInvoiceOpReturn(e,t){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpReturn/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async incomingInvoiceOpTaxationCalc(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpTaxationCalc/${e}`,{method:"POST"})}async incomingInvoiceOpUpdatePrepared(e){return this.#p.web.fetchJson("/fiscal/incomingInvoiceOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoicePaymentCreate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoicePayment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoicePaymentDelete(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoicePayment/${e}`,{method:"DELETE"})}async incomingInvoicePaymentRead(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoicePayment?${e}`,{method:"GET"})}async incomingInvoicePaymentReadById(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoicePayment/${e}`,{method:"GET"})}async incomingInvoicePaymentUpdate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoicePayment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceRead(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoice?${e}`,{method:"GET"})}async incomingInvoiceReadById(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoice/${e}`,{method:"GET"})}async incomingInvoiceUpdate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoice",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async invoiceItemAccountingCreate(e){return this.#p.web.fetchJson("/fiscal/invoiceItemAccounting",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async invoiceItemAccountingDelete(e){return this.#p.web.fetchJson(`/fiscal/invoiceItemAccounting/${e}`,{method:"DELETE"})}async invoiceItemAccountingRead(e){return this.#p.web.fetchJson(`/fiscal/invoiceItemAccounting?${e}`,{method:"GET"})}async invoiceItemAccountingReadById(e){return this.#p.web.fetchJson(`/fiscal/invoiceItemAccounting/${e}`,{method:"GET"})}async invoiceItemAccountingUpdate(e){return this.#p.web.fetchJson("/fiscal/invoiceItemAccounting",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async invoiceReferenceCreate(e){return this.#p.web.fetchJson("/fiscal/invoiceReference",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async invoiceReferenceDelete(e){return this.#p.web.fetchJson(`/fiscal/invoiceReference/${e}`,{method:"DELETE"})}async invoiceReferenceRead(e){return this.#p.web.fetchJson(`/fiscal/invoiceReference?${e}`,{method:"GET"})}async invoiceReferenceReadById(e){return this.#p.web.fetchJson(`/fiscal/invoiceReference/${e}`,{method:"GET"})}async invoiceReferenceUpdate(e){return this.#p.web.fetchJson("/fiscal/invoiceReference",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async invoiceSeriesCreate(e){return this.#p.web.fetchJson("/fiscal/invoiceSeries",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async invoiceSeriesDelete(e){return this.#p.web.fetchJson(`/fiscal/invoiceSeries/${e}`,{method:"DELETE"})}async invoiceSeriesOpGetNextNumber(e){return this.#p.web.fetchJson(`/fiscal/invoiceSeriesOpGetNextNumber/${e}`,{method:"POST"})}async invoiceSeriesOpUpdateLastNumber(e,t){const n=new URLSearchParams;return t&&n.set("lastNumber",String(t)),this.#p.web.fetchJson(`/fiscal/invoiceSeriesOpUpdateLastNumber/${e}?${n.toString()}`,{method:"POST"})}async invoiceSeriesRead(e){return this.#p.web.fetchJson(`/fiscal/invoiceSeries?${e}`,{method:"GET"})}async invoiceSeriesReadById(e){return this.#p.web.fetchJson(`/fiscal/invoiceSeries/${e}`,{method:"GET"})}async invoiceSeriesUpdate(e){return this.#p.web.fetchJson("/fiscal/invoiceSeries",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceCreate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoice",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceDelete(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoice/${e}`,{method:"DELETE"})}async outgoingInvoiceItemCreate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoiceItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceItemDelete(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceItem/${e}`,{method:"DELETE"})}async outgoingInvoiceItemRead(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceItem?${e}`,{method:"GET"})}async outgoingInvoiceItemReadById(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceItem/${e}`,{method:"GET"})}async outgoingInvoiceItemUpdate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoiceItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceOpApprove(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpApprove/${e}`,{method:"POST"})}async outgoingInvoiceOpApproveRevert(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpApproveRevert/${e}`,{method:"POST"})}async outgoingInvoiceOpCancel(e,t){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpCancel/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async outgoingInvoiceOpCreate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoiceOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceOpDiscount(e,t){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpDiscount/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async outgoingInvoiceOpPrepare(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpPrepare/${e}`,{method:"POST"})}async outgoingInvoiceOpPrepareRevert(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpPrepareRevert/${e}`,{method:"POST"})}async outgoingInvoiceOpReturn(e,t){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpReturn/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async outgoingInvoiceOpTaxationCalc(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpTaxationCalc/${e}`,{method:"POST"})}async outgoingInvoiceOpUpdatePrepared(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoiceOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoicePaymentCreate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoicePayment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoicePaymentDelete(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoicePayment/${e}`,{method:"DELETE"})}async outgoingInvoicePaymentRead(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoicePayment?${e}`,{method:"GET"})}async outgoingInvoicePaymentReadById(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoicePayment/${e}`,{method:"GET"})}async outgoingInvoicePaymentUpdate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoicePayment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceRead(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoice?${e}`,{method:"GET"})}async outgoingInvoiceReadById(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoice/${e}`,{method:"GET"})}async outgoingInvoiceUpdate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoice",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},FiscalYear:class{id;company;description;dateStart;dateEnd;notBefore;accountChart;resultCenterChart;status},IncomingInvoice:class{status;incomingList;id;source;company;fiscalProfileOperation;workflow;workpiece;person;personAddressShipping;fiscalProfilePerson;returned;invoiceSeries;number;date;issueDate;shippingDateTime;grossWeightKg;netWeightKg;volumeM3;totalValue;personSalesperson;personShipping;freightType;journalEntry;tags;properties},IncomingInvoiceItem:class{incomingInvoice;incomingRequest;OTHER_VALUES_FREIGHT;OTHER_VALUES_INSURANCE;OTHER_VALUES_OTHER;id;accountingType;productPacking;taxationRule;taxationOperation;quantity;unit;physicalProductPacking;physicalQuantity;netWeightKg;grossWeightKg;unitValue;productValue;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;assetTag;account;accountComplement;tags;properties},IncomingInvoicePayment:class{id;invoice;type;account;accountComplement;dueDate;value;tags;properties},Invoice:class{id;source;company;fiscalProfileOperation;workflow;workpiece;person;personAddressShipping;fiscalProfilePerson;returned;invoiceSeries;number;date;issueDate;shippingDateTime;grossWeightKg;netWeightKg;volumeM3;totalValue;personSalesperson;personShipping;freightType;journalEntry;tags;properties},InvoiceItem:class{OTHER_VALUES_FREIGHT;OTHER_VALUES_INSURANCE;OTHER_VALUES_OTHER;id;accountingType;productPacking;taxationRule;taxationOperation;quantity;unit;physicalProductPacking;physicalQuantity;netWeightKg;grossWeightKg;unitValue;productValue;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;assetTag;account;accountComplement;tags;properties},InvoiceItemAccounting:class{id;invoiceItem;type;sign;account;accountComplement;value;tags;properties},InvoicePayment:class{id;invoice;type;account;accountComplement;dueDate;value;tags;properties},InvoiceReference:class{id;invoice;invoiceReference},InvoiceSeries:class{id;company;code;description;tags;properties;lastNumber},OutgoingInvoice:class{status;outgoingList;shipment;id;source;company;fiscalProfileOperation;workflow;workpiece;person;personAddressShipping;fiscalProfilePerson;returned;invoiceSeries;number;date;issueDate;shippingDateTime;grossWeightKg;netWeightKg;volumeM3;totalValue;personSalesperson;personShipping;freightType;journalEntry;tags;properties},OutgoingInvoiceItem:class{outgoingInvoice;OTHER_VALUES_FREIGHT;OTHER_VALUES_INSURANCE;OTHER_VALUES_OTHER;id;accountingType;productPacking;taxationRule;taxationOperation;quantity;unit;physicalProductPacking;physicalQuantity;netWeightKg;grossWeightKg;unitValue;productValue;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;assetTag;account;accountComplement;tags;properties},OutgoingInvoicePayment:class{id;invoice;type;account;accountComplement;dueDate;value;tags;properties},br:$i,taxation:Ii});var Ni=Object.freeze({__proto__:null,IncomingShipping:class{id;company;date;tags;status;comments},LogisticService:class{#p;constructor(e){this.#p=e}async shippingCreate(e){return this.#p.web.fetchJson("/logistic/shipping",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async shippingDelete(e){return this.#p.web.fetchJson(`/logistic/shipping/${e}`,{method:"DELETE"})}async shippingItemCreate(e){return this.#p.web.fetchJson("/logistic/shippingItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async shippingItemDelete(e){return this.#p.web.fetchJson(`/logistic/shippingItem/${e}`,{method:"DELETE"})}async shippingItemRead(e){return this.#p.web.fetchJson(`/logistic/shippingItem?${e}`,{method:"GET"})}async shippingItemReadById(e){return this.#p.web.fetchJson(`/logistic/shippingItem/${e}`,{method:"GET"})}async shippingItemUpdate(e){return this.#p.web.fetchJson("/logistic/shippingItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async shippingOpApprove(e){return this.#p.web.fetchJson(`/logistic/shippingOpApprove/${e}`,{method:"POST"})}async shippingRead(e){return this.#p.web.fetchJson(`/logistic/shipping?${e}`,{method:"GET"})}async shippingReadById(e){return this.#p.web.fetchJson(`/logistic/shipping/${e}`,{method:"GET"})}async shippingUpdate(e){return this.#p.web.fetchJson("/logistic/shipping",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},ShippingItem:class{id;shipping;purchaseItem;quantity}});var ki=Object.freeze({__proto__:null,Address:class{id;warehouse;addressProfile;code;status;tags;properties},AddressProfile:class{id;code;tags;properties},HandlingUnit:class{id;code;tags;properties},IncomingList:class{id;company;status;person;date;tags;properties},IncomingListItem:class{id;incomingList;stockCluster;address;depositor;productPacking;quality;lot;serial;expirationDate;handlingUnit;type;quantity;netWeightKg;grossWeightKg;volumeM3;productPackingInvoice;tags;properties},IncomingRequest:class{id;company;warehouse;status;person;date;code;description;netWeightKg;grossWeightKg;volumeM3;tags;properties},IncomingRequestItem:class{id;status;incomingRequest;productPacking;quantity;netWeightKg;grossWeightKg;volumeM3;servedQuantity;reservedQuantity},Inventory:class{id;company;status;date;description;pointInTime;journalEntry;tags;properties},InventoryAdjustment:class{id;inventory;stockCluster;address;productPacking;depositor;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;properties},InventoryCheck:class{id;inventory;stockCluster;address;productPacking;depositor;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;properties},InventoryStock:class{id;inventory;stockCluster;address;productPacking;depositor;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;properties},Lot:class{id;code;date;tags;properties},MaterialService:class{#p;constructor(e){this.#p=e}async addressCreate(e){return this.#p.web.fetchJson("/material/address",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async addressDelete(e){return this.#p.web.fetchJson(`/material/address/${e}`,{method:"DELETE"})}async addressProfileCreate(e){return this.#p.web.fetchJson("/material/addressProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async addressProfileDelete(e){return this.#p.web.fetchJson(`/material/addressProfile/${e}`,{method:"DELETE"})}async addressProfileRead(e){return this.#p.web.fetchJson(`/material/addressProfile?${e}`,{method:"GET"})}async addressProfileReadById(e){return this.#p.web.fetchJson(`/material/addressProfile/${e}`,{method:"GET"})}async addressProfileUpdate(e){return this.#p.web.fetchJson("/material/addressProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async addressRead(e){return this.#p.web.fetchJson(`/material/address?${e}`,{method:"GET"})}async addressReadById(e){return this.#p.web.fetchJson(`/material/address/${e}`,{method:"GET"})}async addressUpdate(e){return this.#p.web.fetchJson("/material/address",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async handlingUnitCreate(e){return this.#p.web.fetchJson("/material/handlingUnit",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async handlingUnitDelete(e){return this.#p.web.fetchJson(`/material/handlingUnit/${e}`,{method:"DELETE"})}async handlingUnitRead(e){return this.#p.web.fetchJson(`/material/handlingUnit?${e}`,{method:"GET"})}async handlingUnitReadById(e){return this.#p.web.fetchJson(`/material/handlingUnit/${e}`,{method:"GET"})}async handlingUnitUpdate(e){return this.#p.web.fetchJson("/material/handlingUnit",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingListCreate(e){return this.#p.web.fetchJson("/material/incomingList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingListDelete(e){return this.#p.web.fetchJson(`/material/incomingList/${e}`,{method:"DELETE"})}async incomingListItemCreate(e){return this.#p.web.fetchJson("/material/incomingListItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingListItemDelete(e){return this.#p.web.fetchJson(`/material/incomingListItem/${e}`,{method:"DELETE"})}async incomingListItemRead(e){return this.#p.web.fetchJson(`/material/incomingListItem?${e}`,{method:"GET"})}async incomingListItemReadById(e){return this.#p.web.fetchJson(`/material/incomingListItem/${e}`,{method:"GET"})}async incomingListItemUpdate(e){return this.#p.web.fetchJson("/material/incomingListItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingListOpImportFromOutgoingList(e,t){return this.#p.web.fetchJson(`/material/incomingListOpImportFromOutgoingList/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async incomingListOpPrepare(e){return this.#p.web.fetchJson(`/material/incomingListOpPrepare/${e}`,{method:"POST"})}async incomingListOpPrepareRevert(e){return this.#p.web.fetchJson(`/material/incomingListOpPrepareRevert/${e}`,{method:"POST"})}async incomingListRead(e){return this.#p.web.fetchJson(`/material/incomingList?${e}`,{method:"GET"})}async incomingListReadById(e){return this.#p.web.fetchJson(`/material/incomingList/${e}`,{method:"GET"})}async incomingListUpdate(e){return this.#p.web.fetchJson("/material/incomingList",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingRequestItemRead(e){return this.#p.web.fetchJson(`/material/incomingRequestItem?${e}`,{method:"GET"})}async incomingRequestItemReadById(e){return this.#p.web.fetchJson(`/material/incomingRequestItem/${e}`,{method:"GET"})}async incomingRequestRead(e){return this.#p.web.fetchJson(`/material/incomingRequest?${e}`,{method:"GET"})}async incomingRequestReadById(e){return this.#p.web.fetchJson(`/material/incomingRequest/${e}`,{method:"GET"})}async inventoryAdjustmentCreate(e){return this.#p.web.fetchJson("/material/inventoryAdjustment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryAdjustmentDelete(e){return this.#p.web.fetchJson(`/material/inventoryAdjustment/${e}`,{method:"DELETE"})}async inventoryAdjustmentOpCreate(e,t,n){const i=new URLSearchParams;return t&&i.set("stockId",String(t)),n&&i.set("quantity",String(n)),this.#p.web.fetchJson(`/material/inventoryAdjustmentOpCreate/${e}?${i.toString()}`,{method:"POST"})}async inventoryAdjustmentRead(e){return this.#p.web.fetchJson(`/material/inventoryAdjustment?${e}`,{method:"GET"})}async inventoryAdjustmentReadById(e){return this.#p.web.fetchJson(`/material/inventoryAdjustment/${e}`,{method:"GET"})}async inventoryAdjustmentUpdate(e){return this.#p.web.fetchJson("/material/inventoryAdjustment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryCheckCreate(e){return this.#p.web.fetchJson("/material/inventoryCheck",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryCheckDelete(e){return this.#p.web.fetchJson(`/material/inventoryCheck/${e}`,{method:"DELETE"})}async inventoryCheckRead(e){return this.#p.web.fetchJson(`/material/inventoryCheck?${e}`,{method:"GET"})}async inventoryCheckReadById(e){return this.#p.web.fetchJson(`/material/inventoryCheck/${e}`,{method:"GET"})}async inventoryCheckUpdate(e){return this.#p.web.fetchJson("/material/inventoryCheck",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryCreate(e){return this.#p.web.fetchJson("/material/inventory",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryDelete(e){return this.#p.web.fetchJson(`/material/inventory/${e}`,{method:"DELETE"})}async inventoryOpApprove(e){return this.#p.web.fetchJson(`/material/inventoryOpApprove/${e}`,{method:"POST"})}async inventoryOpApproveRevert(e){return this.#p.web.fetchJson(`/material/inventoryOpApproveRevert/${e}`,{method:"POST"})}async inventoryOpFinish(e){return this.#p.web.fetchJson(`/material/inventoryOpFinish/${e}`,{method:"POST"})}async inventoryOpFinishRevert(e){return this.#p.web.fetchJson(`/material/inventoryOpFinishRevert/${e}`,{method:"POST"})}async inventoryOpPrepare(e){return this.#p.web.fetchJson(`/material/inventoryOpPrepare/${e}`,{method:"POST"})}async inventoryOpPrepareRevert(e){return this.#p.web.fetchJson(`/material/inventoryOpPrepareRevert/${e}`,{method:"POST"})}async inventoryOpProcess(e){return this.#p.web.fetchJson(`/material/inventoryOpProcess/${e}`,{method:"POST"})}async inventoryOpProcessRevert(e){return this.#p.web.fetchJson(`/material/inventoryOpProcessRevert/${e}`,{method:"POST"})}async inventoryOpStart(e){return this.#p.web.fetchJson(`/material/inventoryOpStart/${e}`,{method:"POST"})}async inventoryOpStartRevert(e){return this.#p.web.fetchJson(`/material/inventoryOpStartRevert/${e}`,{method:"POST"})}async inventoryRead(e){return this.#p.web.fetchJson(`/material/inventory?${e}`,{method:"GET"})}async inventoryReadById(e){return this.#p.web.fetchJson(`/material/inventory/${e}`,{method:"GET"})}async inventoryStockCreate(e){return this.#p.web.fetchJson("/material/inventoryStock",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryStockDelete(e){return this.#p.web.fetchJson(`/material/inventoryStock/${e}`,{method:"DELETE"})}async inventoryStockOpCreate(e,t){const n=new URLSearchParams;return t&&n.set("stockId",String(t)),this.#p.web.fetchJson(`/material/inventoryStockOpCreate/${e}?${n.toString()}`,{method:"POST"})}async inventoryStockRead(e){return this.#p.web.fetchJson(`/material/inventoryStock?${e}`,{method:"GET"})}async inventoryStockReadById(e){return this.#p.web.fetchJson(`/material/inventoryStock/${e}`,{method:"GET"})}async inventoryStockUpdate(e){return this.#p.web.fetchJson("/material/inventoryStock",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryUpdate(e){return this.#p.web.fetchJson("/material/inventory",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async lotCreate(e){return this.#p.web.fetchJson("/material/lot",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async lotDelete(e){return this.#p.web.fetchJson(`/material/lot/${e}`,{method:"DELETE"})}async lotRead(e){return this.#p.web.fetchJson(`/material/lot?${e}`,{method:"GET"})}async lotReadById(e){return this.#p.web.fetchJson(`/material/lot/${e}`,{method:"GET"})}async lotUpdate(e){return this.#p.web.fetchJson("/material/lot",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async movingOrderCreate(e){return this.#p.web.fetchJson("/material/movingOrder",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async movingOrderDelete(e){return this.#p.web.fetchJson(`/material/movingOrder/${e}`,{method:"DELETE"})}async movingOrderItemDelete(e){return this.#p.web.fetchJson(`/material/movingOrderItem/${e}`,{method:"DELETE"})}async movingOrderItemOpFinish(e){return this.#p.web.fetchJson(`/material/movingOrderItemOpFinish/${e}`,{method:"POST"})}async movingOrderItemOpLoad(e,t){return this.#p.web.fetchJson(`/material/movingOrderItemOpLoad/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async movingOrderItemOpStart(e){return this.#p.web.fetchJson(`/material/movingOrderItemOpStart/${e}`,{method:"POST"})}async movingOrderItemOpStartRevert(e){return this.#p.web.fetchJson(`/material/movingOrderItemOpStartRevert/${e}`,{method:"POST"})}async movingOrderItemRead(e){return this.#p.web.fetchJson(`/material/movingOrderItem?${e}`,{method:"GET"})}async movingOrderItemReadById(e){return this.#p.web.fetchJson(`/material/movingOrderItem/${e}`,{method:"GET"})}async movingOrderItemUpdate(e){return this.#p.web.fetchJson("/material/movingOrderItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async movingOrderOpAllocateStock(e,t){return this.#p.web.fetchJson(`/material/movingOrderOpAllocateStock/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async movingOrderOpApprove(e){return this.#p.web.fetchJson(`/material/movingOrderOpApprove/${e}`,{method:"POST"})}async movingOrderOpApproveRevert(e){return this.#p.web.fetchJson(`/material/movingOrderOpApproveRevert/${e}`,{method:"POST"})}async movingOrderOpFinish(e){return this.#p.web.fetchJson(`/material/movingOrderOpFinish/${e}`,{method:"POST"})}async movingOrderOpPrepare(e){return this.#p.web.fetchJson(`/material/movingOrderOpPrepare/${e}`,{method:"POST"})}async movingOrderOpPrepareRevert(e){return this.#p.web.fetchJson(`/material/movingOrderOpPrepareRevert/${e}`,{method:"POST"})}async movingOrderOpStart(e){return this.#p.web.fetchJson(`/material/movingOrderOpStart/${e}`,{method:"POST"})}async movingOrderOpStartRevert(e){return this.#p.web.fetchJson(`/material/movingOrderOpStartRevert/${e}`,{method:"POST"})}async movingOrderOpUnload(e,t){const n=new URLSearchParams;return t&&n.set("userId",String(t)),this.#p.web.fetchJson(`/material/movingOrderOpUnload/${e}?${n.toString()}`,{method:"POST"})}async movingOrderRead(e){return this.#p.web.fetchJson(`/material/movingOrder?${e}`,{method:"GET"})}async movingOrderReadById(e){return this.#p.web.fetchJson(`/material/movingOrder/${e}`,{method:"GET"})}async movingOrderUpdate(e){return this.#p.web.fetchJson("/material/movingOrder",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingListDelete(e){return this.#p.web.fetchJson(`/material/outgoingList/${e}`,{method:"DELETE"})}async outgoingListOpCreateFromReservation(e,t){return this.#p.web.fetchJson(`/material/outgoingListOpCreateFromReservation/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async outgoingListOpMerge(e){return this.#p.web.fetchJson("/material/outgoingListOpMerge",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingListOpOutgoingInvoiceCreate(e,t){return this.#p.web.fetchJson(`/material/outgoingListOpOutgoingInvoiceCreate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async outgoingListOpOutgoingInvoiceCreateRevert(e){return this.#p.web.fetchJson(`/material/outgoingListOpOutgoingInvoiceCreateRevert/${e}`,{method:"POST"})}async outgoingListOpPacked(e){return this.#p.web.fetchJson(`/material/outgoingListOpPacked/${e}`,{method:"POST"})}async outgoingListOpPackedRevert(e){return this.#p.web.fetchJson(`/material/outgoingListOpPackedRevert/${e}`,{method:"POST"})}async outgoingListOpVolumeCreateAuto(e,t){return this.#p.web.fetchJson(`/material/outgoingListOpVolumeCreateAuto/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async outgoingListRead(e){return this.#p.web.fetchJson(`/material/outgoingList?${e}`,{method:"GET"})}async outgoingListReadById(e){return this.#p.web.fetchJson(`/material/outgoingList/${e}`,{method:"GET"})}async pickingOrderCreate(e){return this.#p.web.fetchJson("/material/pickingOrder",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingOrderDelete(e){return this.#p.web.fetchJson(`/material/pickingOrder/${e}`,{method:"DELETE"})}async pickingOrderItemCreate(e){return this.#p.web.fetchJson("/material/pickingOrderItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingOrderItemDelete(e){return this.#p.web.fetchJson(`/material/pickingOrderItem/${e}`,{method:"DELETE"})}async pickingOrderItemRead(e){return this.#p.web.fetchJson(`/material/pickingOrderItem?${e}`,{method:"GET"})}async pickingOrderItemReadById(e){return this.#p.web.fetchJson(`/material/pickingOrderItem/${e}`,{method:"GET"})}async pickingOrderItemUpdate(e){return this.#p.web.fetchJson("/material/pickingOrderItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingOrderOpApprove(e){return this.#p.web.fetchJson(`/material/pickingOrderOpApprove/${e}`,{method:"POST"})}async pickingOrderOpApproveRevert(e){return this.#p.web.fetchJson(`/material/pickingOrderOpApproveRevert/${e}`,{method:"POST"})}async pickingOrderOpCreate(e){return this.#p.web.fetchJson("/material/pickingOrderOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingOrderOpDistribute(e,t,n,i){const s=new URLSearchParams;return t&&s.set("outgoingListId",String(t)),n&&s.set("stockId",String(n)),i&&s.set("quantity",String(i)),this.#p.web.fetchJson(`/material/pickingOrderOpDistribute/${e}?${s.toString()}`,{method:"POST"})}async pickingOrderOpDistributeAuto(e){return this.#p.web.fetchJson(`/material/pickingOrderOpDistributeAuto/${e}`,{method:"POST"})}async pickingOrderOpDistributeRevert(e){return this.#p.web.fetchJson(`/material/pickingOrderOpDistributeRevert/${e}`,{method:"POST"})}async pickingOrderOpFinish(e){return this.#p.web.fetchJson(`/material/pickingOrderOpFinish/${e}`,{method:"POST"})}async pickingOrderOpGroup(e){return this.#p.web.fetchJson("/material/pickingOrderOpGroup",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingOrderOpGroupRevert(e){return this.#p.web.fetchJson(`/material/pickingOrderOpGroupRevert/${e}`,{method:"POST"})}async pickingOrderOpPrepare(e){return this.#p.web.fetchJson(`/material/pickingOrderOpPrepare/${e}`,{method:"POST"})}async pickingOrderOpPrepareRevert(e){return this.#p.web.fetchJson(`/material/pickingOrderOpPrepareRevert/${e}`,{method:"POST"})}async pickingOrderOpReservationFinish(e){return this.#p.web.fetchJson(`/material/pickingOrderOpReservationFinish/${e}`,{method:"POST"})}async pickingOrderOpReservationFinishRevert(e){return this.#p.web.fetchJson(`/material/pickingOrderOpReservationFinishRevert/${e}`,{method:"POST"})}async pickingOrderOpUngroup(e){return this.#p.web.fetchJson(`/material/pickingOrderOpUngroup/${e}`,{method:"POST"})}async pickingOrderOpUngroupDivergent(e){return this.#p.web.fetchJson(`/material/pickingOrderOpUngroupDivergent/${e}`,{method:"POST"})}async pickingOrderOpUngroupRevert(e){return this.#p.web.fetchJson(`/material/pickingOrderOpUngroupRevert/${e}`,{method:"POST"})}async pickingOrderRead(e){return this.#p.web.fetchJson(`/material/pickingOrder?${e}`,{method:"GET"})}async pickingOrderReadById(e){return this.#p.web.fetchJson(`/material/pickingOrder/${e}`,{method:"GET"})}async pickingOrderUpdate(e){return this.#p.web.fetchJson("/material/pickingOrder",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingProfileCreate(e){return this.#p.web.fetchJson("/material/pickingProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingProfileDelete(e){return this.#p.web.fetchJson(`/material/pickingProfile/${e}`,{method:"DELETE"})}async pickingProfileRead(e){return this.#p.web.fetchJson(`/material/pickingProfile?${e}`,{method:"GET"})}async pickingProfileReadById(e){return this.#p.web.fetchJson(`/material/pickingProfile/${e}`,{method:"GET"})}async pickingProfileUpdate(e){return this.#p.web.fetchJson("/material/pickingProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async qualityCreate(e){return this.#p.web.fetchJson("/material/quality",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async qualityDelete(e){return this.#p.web.fetchJson(`/material/quality/${e}`,{method:"DELETE"})}async qualityRead(e){return this.#p.web.fetchJson(`/material/quality?${e}`,{method:"GET"})}async qualityReadById(e){return this.#p.web.fetchJson(`/material/quality/${e}`,{method:"GET"})}async qualityUpdate(e){return this.#p.web.fetchJson("/material/quality",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async reservationCreate(e){return this.#p.web.fetchJson("/material/reservation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async reservationDelete(e){return this.#p.web.fetchJson(`/material/reservation/${e}`,{method:"DELETE"})}async reservationItemRead(e){return this.#p.web.fetchJson(`/material/reservationItem?${e}`,{method:"GET"})}async reservationItemReadById(e){return this.#p.web.fetchJson(`/material/reservationItem/${e}`,{method:"GET"})}async reservationOpAllocate(e,t){return this.#p.web.fetchJson(`/material/reservationOpAllocate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async reservationOpAllocateAuto(e){return this.#p.web.fetchJson(`/material/reservationOpAllocateAuto/${e}`,{method:"POST"})}async reservationOpAllocateAutoRevert(e){return this.#p.web.fetchJson(`/material/reservationOpAllocateAutoRevert/${e}`,{method:"POST"})}async reservationOpAllocateRevert(e,t){return this.#p.web.fetchJson(`/material/reservationOpAllocateRevert/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async reservationOpAllocateStock(e,t,n){const i=new URLSearchParams;return t&&i.set("stockId",String(t)),n&&i.set("quantity",String(n)),this.#p.web.fetchJson(`/material/reservationOpAllocateStock/${e}?${i.toString()}`,{method:"POST"})}async reservationOpAllocateStockRevert(e,t,n){const i=new URLSearchParams;return t&&i.set("stockId",String(t)),n&&i.set("quantity",String(n)),this.#p.web.fetchJson(`/material/reservationOpAllocateStockRevert/${e}?${i.toString()}`,{method:"POST"})}async reservationOpApprove(e){return this.#p.web.fetchJson(`/material/reservationOpApprove/${e}`,{method:"POST"})}async reservationOpApproveRevert(e){return this.#p.web.fetchJson(`/material/reservationOpApproveRevert/${e}`,{method:"POST"})}async reservationOpFinish(e){return this.#p.web.fetchJson(`/material/reservationOpFinish/${e}`,{method:"POST"})}async reservationOpFinishDivergent(e){return this.#p.web.fetchJson(`/material/reservationOpFinishDivergent/${e}`,{method:"POST"})}async reservationOpFinishRevert(e){return this.#p.web.fetchJson(`/material/reservationOpFinishRevert/${e}`,{method:"POST"})}async reservationOpPrepare(e){return this.#p.web.fetchJson(`/material/reservationOpPrepare/${e}`,{method:"POST"})}async reservationOpPrepareRevert(e){return this.#p.web.fetchJson(`/material/reservationOpPrepareRevert/${e}`,{method:"POST"})}async reservationOpStart(e){return this.#p.web.fetchJson(`/material/reservationOpStart/${e}`,{method:"POST"})}async reservationOpStartRevert(e){return this.#p.web.fetchJson(`/material/reservationOpStartRevert/${e}`,{method:"POST"})}async reservationRead(e){return this.#p.web.fetchJson(`/material/reservation?${e}`,{method:"GET"})}async reservationReadById(e){return this.#p.web.fetchJson(`/material/reservation/${e}`,{method:"GET"})}async reservationTargetCreate(e){return this.#p.web.fetchJson("/material/reservationTarget",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async reservationTargetDelete(e){return this.#p.web.fetchJson(`/material/reservationTarget/${e}`,{method:"DELETE"})}async reservationTargetRead(e){return this.#p.web.fetchJson(`/material/reservationTarget?${e}`,{method:"GET"})}async reservationTargetReadById(e){return this.#p.web.fetchJson(`/material/reservationTarget/${e}`,{method:"GET"})}async reservationTargetUpdate(e){return this.#p.web.fetchJson("/material/reservationTarget",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async reservationUpdate(e){return this.#p.web.fetchJson("/material/reservation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async serialCreate(e){return this.#p.web.fetchJson("/material/serial",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async serialDelete(e){return this.#p.web.fetchJson(`/material/serial/${e}`,{method:"DELETE"})}async serialRead(e){return this.#p.web.fetchJson(`/material/serial?${e}`,{method:"GET"})}async serialReadById(e){return this.#p.web.fetchJson(`/material/serial/${e}`,{method:"GET"})}async serialUpdate(e){return this.#p.web.fetchJson("/material/serial",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockAvailabilityRead(e){return this.#p.web.fetchJson(`/material/stockAvailability?${e}`,{method:"GET"})}async stockClusterCreate(e){return this.#p.web.fetchJson("/material/stockCluster",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockClusterDelete(e){return this.#p.web.fetchJson(`/material/stockCluster/${e}`,{method:"DELETE"})}async stockClusterRead(e){return this.#p.web.fetchJson(`/material/stockCluster?${e}`,{method:"GET"})}async stockClusterReadById(e){return this.#p.web.fetchJson(`/material/stockCluster/${e}`,{method:"GET"})}async stockClusterUpdate(e){return this.#p.web.fetchJson("/material/stockCluster",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockManagementCreate(e){return this.#p.web.fetchJson("/material/stockManagement",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockManagementDelete(e){return this.#p.web.fetchJson(`/material/stockManagement/${e}`,{method:"DELETE"})}async stockManagementItemCreate(e){return this.#p.web.fetchJson("/material/stockManagementItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockManagementItemDelete(e){return this.#p.web.fetchJson(`/material/stockManagementItem/${e}`,{method:"DELETE"})}async stockManagementItemRead(e){return this.#p.web.fetchJson(`/material/stockManagementItem?${e}`,{method:"GET"})}async stockManagementItemReadById(e){return this.#p.web.fetchJson(`/material/stockManagementItem/${e}`,{method:"GET"})}async stockManagementItemUpdate(e){return this.#p.web.fetchJson("/material/stockManagementItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockManagementOpImport(e){return this.#p.web.fetchJson("/material/stockManagementOpImport",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockManagementOpUpdateAverageDailyConsumption(e){return this.#p.web.fetchJson("/material/stockManagementOpUpdateAverageDailyConsumption",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockManagementRead(e){return this.#p.web.fetchJson(`/material/stockManagement?${e}`,{method:"GET"})}async stockManagementReadById(e){return this.#p.web.fetchJson(`/material/stockManagement/${e}`,{method:"GET"})}async stockManagementUpdate(e){return this.#p.web.fetchJson("/material/stockManagement",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockOpBarcode(e){return this.#p.web.fetchJson("/material/stockOpBarcode",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockOpUpdate(e,t){return this.#p.web.fetchJson(`/material/stockOpUpdate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async stockPointRead(e,t){const n=new URLSearchParams;return e&&n.set("dateTime",String(e)),this.#p.web.fetchJson(`/material/stockPoint?${t}?${n.toString()}`,{method:"GET"})}async stockRead(e){return this.#p.web.fetchJson(`/material/stock?${e}`,{method:"GET"})}async stockReadById(e){return this.#p.web.fetchJson(`/material/stock/${e}`,{method:"GET"})}async stockTransactionOpRevert(e){return this.#p.web.fetchJson(`/material/stockTransactionOpRevert/${e}`,{method:"POST"})}async stockTransactionRead(e){return this.#p.web.fetchJson(`/material/stockTransaction?${e}`,{method:"GET"})}async stockTransactionReadById(e){return this.#p.web.fetchJson(`/material/stockTransaction/${e}`,{method:"GET"})}async volumeCreate(e){return this.#p.web.fetchJson("/material/volume",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async volumeDelete(e){return this.#p.web.fetchJson(`/material/volume/${e}`,{method:"DELETE"})}async volumeItemCreate(e){return this.#p.web.fetchJson("/material/volumeItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async volumeItemDelete(e){return this.#p.web.fetchJson(`/material/volumeItem/${e}`,{method:"DELETE"})}async volumeItemRead(e){return this.#p.web.fetchJson(`/material/volumeItem?${e}`,{method:"GET"})}async volumeItemReadById(e){return this.#p.web.fetchJson(`/material/volumeItem/${e}`,{method:"GET"})}async volumeOpCheck(e,t){return this.#p.web.fetchJson(`/material/volumeOpCheck/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async volumeOpCheckRevert(e){return this.#p.web.fetchJson(`/material/volumeOpCheckRevert/${e}`,{method:"POST"})}async volumeOpCreate(e){return this.#p.web.fetchJson("/material/volumeOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async volumeOpHandlingUnitSet(e,t){const n=new URLSearchParams;return t&&n.set("handlingUnitId",String(t)),this.#p.web.fetchJson(`/material/volumeOpHandlingUnitSet/${e}?${n.toString()}`,{method:"POST"})}async volumeRead(e){return this.#p.web.fetchJson(`/material/volume?${e}`,{method:"GET"})}async volumeReadById(e){return this.#p.web.fetchJson(`/material/volume/${e}`,{method:"GET"})}async volumeUpdate(e){return this.#p.web.fetchJson("/material/volume",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async warehouseCreate(e){return this.#p.web.fetchJson("/material/warehouse",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async warehouseDelete(e){return this.#p.web.fetchJson(`/material/warehouse/${e}`,{method:"DELETE"})}async warehouseRead(e){return this.#p.web.fetchJson(`/material/warehouse?${e}`,{method:"GET"})}async warehouseReadById(e){return this.#p.web.fetchJson(`/material/warehouse/${e}`,{method:"GET"})}async warehouseUpdate(e){return this.#p.web.fetchJson("/material/warehouse",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},MovingOrder:class{id;company;status;date;tags;properties},MovingOrderItem:class{id;movingOrder;status;address;stock;quantity;quantityLoaded;quantityUnloaded;user;tags;properties},OutgoingList:class{id;company;status;source;date;person;reservation;shipment;invoiceSeries;number;tags;properties},PickingOrder:class{id;company;status;source;pickingProfile;person;reservation;outgoingList;movingOrder;date;description;netWeightKg;grossWeightKg;volumeM3;shipment;pickingOrderGroup;tags;properties},PickingOrderItem:class{id;pickingOrder;stockCluster;productPacking;quantity},PickingProfile:class{id;code;description;tags;properties},Quality:class{id;code;description;punctuation;tags;properties},Reservation:class{id;company;status;person;code;date;tags;properties},ReservationItem:class{id;reservation;stockCluster;warehouse;address;depositor;productPacking;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;netWeightKg;grossWeightKg;volumeM3;value},ReservationTarget:class{id;reservation;stockCluster;productPacking;quantity;reservedQuantity},Schedule:class{id},Serial:class{id;code;tags;properties},Stock:class{id;stockCluster;warehouse;address;code;depositor;productPacking;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;netWeightKg;grossWeightKg;volumeM3;reservation;movingOrderId;status},StockAvailability:class{id;type;subtype;stockCluster;company;productPacking;date;schedule;quantity},StockCluster:class{id;code;description;assetValuationMethod;priceListCost;priceListRetail;tags;properties},StockData:class{id;stockCluster;address;depositor;productPacking;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;netWeightKg;grossWeightKg;volumeM3;reservation;movingOrderId;status},StockManagement:class{id;code;tags;properties},StockManagementItem:class{id;stockManagement;productPacking;averageDailyConsumption;replenishmentTimeDays;safetyStockPercentage;minimumStock;replenishmentMinimum;replenishmentBatch;acquisitionType;person;tags;properties},StockTransaction:class{dateTime;sourceId;transaction;flow;reversal;description;balance;id;stockCluster;warehouse;address;code;depositor;productPacking;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;netWeightKg;grossWeightKg;volumeM3;reservation;movingOrderId;status},Volume:class{id;outgoingList;shipment;code;lengthCm;widthCm;heightCm;netWeightKg;grossWeightKg;volumeM3;handlingUnit;checked;loaded;tags;properties},VolumeItem:class{id;volume;productPacking;quantity},Warehouse:class{id;code;tags;properties}});var Di=Object.freeze({__proto__:null,PriceFormation:class{id;code;description;tags;properties},PriceFormationItem:class{id;priceFormation;code;description;type;expression;tags;properties},PriceFormationSimulation:class{id;value;items},PriceFormationSimulationItem:class{id;code;description;type;expression;value},PriceListRetail:class{id;type;code;description;notBefore;notAfter;currency;variationRateLow;variationRateHigh;tags;properties},PriceListRetailItem:class{id;priceList;product;productPacking;currency;unitValue;variationRateLow;variationRateHigh;tags;properties},Quote:class{id;status;company;saleProfile;workflow;workpiece;person;fiscalProfilePerson;code;date;availabilityDate;personSalesperson;totalValue;tags;properties},QuoteItem:class{id;status;quote;productPacking;quantity;tags;properties},QuoteItemProposal:class{id;status;quoteItem;productPacking;quantity;currency;unitValue;totalValue;availabilityDate;tags;properties},Sale:class{id;status;company;saleProfile;fiscalProfileOperation;workflow;workpiece;person;personAddressShipping;code;date;availabilityDate;personSalesperson;freightType;personShipping;priceList;currency;totalValue;pickingOrder;shipment;outgoingInvoice;quote;tags;properties},SaleItem:class{id;sale;productPacking;fiscalProfileProduct;taxationRule;taxationOperation;priceListValue;quantity;servedQuantity;unitValue;currency;costUnitValue;productValue;discountType;discountAmount;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;account;accountComplement;schedule;tags;properties},SalePayment:class{id;sale;type;account;accountComplement;term;value;tags;properties},SaleProfile:class{id;code;description;fiscalProfileOperation;workflow;warehouse;invoiceSeriesTag;pickingProfile;tags;properties},SaleService:class{#p;constructor(e){this.#p=e}async priceFormationCreate(e){return this.#p.web.fetchJson("/sale/priceFormation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceFormationDelete(e){return this.#p.web.fetchJson(`/sale/priceFormation/${e}`,{method:"DELETE"})}async priceFormationItemCreate(e){return this.#p.web.fetchJson("/sale/priceFormationItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceFormationItemDelete(e){return this.#p.web.fetchJson(`/sale/priceFormationItem/${e}`,{method:"DELETE"})}async priceFormationItemRead(e){return this.#p.web.fetchJson(`/sale/priceFormationItem?${e}`,{method:"GET"})}async priceFormationItemReadById(e){return this.#p.web.fetchJson(`/sale/priceFormationItem/${e}`,{method:"GET"})}async priceFormationItemUpdate(e){return this.#p.web.fetchJson("/sale/priceFormationItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceFormationOpCalculate(e,t){return this.#p.web.fetchJson(`/sale/priceFormationOpCalculate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async priceFormationOpClone(e){return this.#p.web.fetchJson(`/sale/priceFormationOpClone/${e}`,{method:"POST"})}async priceFormationOpSimulation(e,t){return this.#p.web.fetchJson(`/sale/priceFormationOpSimulation/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async priceFormationRead(e){return this.#p.web.fetchJson(`/sale/priceFormation?${e}`,{method:"GET"})}async priceFormationReadById(e){return this.#p.web.fetchJson(`/sale/priceFormation/${e}`,{method:"GET"})}async priceFormationUpdate(e){return this.#p.web.fetchJson("/sale/priceFormation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListCreate(e){return this.#p.web.fetchJson("/sale/priceList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListDelete(e){return this.#p.web.fetchJson(`/sale/priceList/${e}`,{method:"DELETE"})}async priceListItemCreate(e){return this.#p.web.fetchJson("/sale/priceListItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListItemDelete(e){return this.#p.web.fetchJson(`/sale/priceListItem/${e}`,{method:"DELETE"})}async priceListItemRead(e){return this.#p.web.fetchJson(`/sale/priceListItem?${e}`,{method:"GET"})}async priceListItemReadById(e){return this.#p.web.fetchJson(`/sale/priceListItem/${e}`,{method:"GET"})}async priceListItemUpdate(e){return this.#p.web.fetchJson("/sale/priceListItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListRead(e){return this.#p.web.fetchJson(`/sale/priceList?${e}`,{method:"GET"})}async priceListReadById(e){return this.#p.web.fetchJson(`/sale/priceList/${e}`,{method:"GET"})}async priceListUpdate(e){return this.#p.web.fetchJson("/sale/priceList",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteCreate(e){return this.#p.web.fetchJson("/sale/quote",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteDelete(e){return this.#p.web.fetchJson(`/sale/quote/${e}`,{method:"DELETE"})}async quoteItemCreate(e){return this.#p.web.fetchJson("/sale/quoteItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteItemDelete(e){return this.#p.web.fetchJson(`/sale/quoteItem/${e}`,{method:"DELETE"})}async quoteItemOpReject(e){return this.#p.web.fetchJson(`/sale/quoteItemOpReject/${e}`,{method:"POST"})}async quoteItemOpRejectRevert(e){return this.#p.web.fetchJson(`/sale/quoteItemOpRejectRevert/${e}`,{method:"POST"})}async quoteItemProposalCreate(e){return this.#p.web.fetchJson("/sale/quoteItemProposal",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteItemProposalDelete(e){return this.#p.web.fetchJson(`/sale/quoteItemProposal/${e}`,{method:"DELETE"})}async quoteItemProposalOpApprove(e){return this.#p.web.fetchJson(`/sale/quoteItemProposalOpApprove/${e}`,{method:"POST"})}async quoteItemProposalOpApproveRevert(e){return this.#p.web.fetchJson(`/sale/quoteItemProposalOpApproveRevert/${e}`,{method:"POST"})}async quoteItemProposalOpReject(e){return this.#p.web.fetchJson(`/sale/quoteItemProposalOpReject/${e}`,{method:"POST"})}async quoteItemProposalOpRejectRevert(e){return this.#p.web.fetchJson(`/sale/quoteItemProposalOpRejectRevert/${e}`,{method:"POST"})}async quoteItemProposalRead(e){return this.#p.web.fetchJson(`/sale/quoteItemProposal?${e}`,{method:"GET"})}async quoteItemProposalReadById(e){return this.#p.web.fetchJson(`/sale/quoteItemProposal/${e}`,{method:"GET"})}async quoteItemProposalUpdate(e){return this.#p.web.fetchJson("/sale/quoteItemProposal",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteItemRead(e){return this.#p.web.fetchJson(`/sale/quoteItem?${e}`,{method:"GET"})}async quoteItemReadById(e){return this.#p.web.fetchJson(`/sale/quoteItem/${e}`,{method:"GET"})}async quoteItemUpdate(e){return this.#p.web.fetchJson("/sale/quoteItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteOpApprove(e){return this.#p.web.fetchJson(`/sale/quoteOpApprove/${e}`,{method:"POST"})}async quoteOpApproveRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpApproveRevert/${e}`,{method:"POST"})}async quoteOpCancel(e){return this.#p.web.fetchJson(`/sale/quoteOpCancel/${e}`,{method:"POST"})}async quoteOpCancelRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpCancelRevert/${e}`,{method:"POST"})}async quoteOpCreate(e){return this.#p.web.fetchJson("/sale/quoteOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteOpFill(e){return this.#p.web.fetchJson(`/sale/quoteOpFill/${e}`,{method:"POST"})}async quoteOpFillRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpFillRevert/${e}`,{method:"POST"})}async quoteOpPrepare(e){return this.#p.web.fetchJson(`/sale/quoteOpPrepare/${e}`,{method:"POST"})}async quoteOpPrepareRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpPrepareRevert/${e}`,{method:"POST"})}async quoteOpReject(e){return this.#p.web.fetchJson(`/sale/quoteOpReject/${e}`,{method:"POST"})}async quoteOpRejectRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpRejectRevert/${e}`,{method:"POST"})}async quoteOpStart(e){return this.#p.web.fetchJson(`/sale/quoteOpStart/${e}`,{method:"POST"})}async quoteOpStartRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpStartRevert/${e}`,{method:"POST"})}async quoteOpSubmit(e){return this.#p.web.fetchJson(`/sale/quoteOpSubmit/${e}`,{method:"POST"})}async quoteOpSubmitRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpSubmitRevert/${e}`,{method:"POST"})}async quoteRead(e){return this.#p.web.fetchJson(`/sale/quote?${e}`,{method:"GET"})}async quoteReadById(e){return this.#p.web.fetchJson(`/sale/quote/${e}`,{method:"GET"})}async quoteUpdate(e){return this.#p.web.fetchJson("/sale/quote",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleCreate(e){return this.#p.web.fetchJson("/sale/sale",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleDelete(e){return this.#p.web.fetchJson(`/sale/sale/${e}`,{method:"DELETE"})}async saleItemCreate(e){return this.#p.web.fetchJson("/sale/saleItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleItemDelete(e){return this.#p.web.fetchJson(`/sale/saleItem/${e}`,{method:"DELETE"})}async saleItemOpUpdatePrepared(e){return this.#p.web.fetchJson("/sale/saleItemOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleItemRead(e){return this.#p.web.fetchJson(`/sale/saleItem?${e}`,{method:"GET"})}async saleItemReadById(e){return this.#p.web.fetchJson(`/sale/saleItem/${e}`,{method:"GET"})}async saleItemUpdate(e){return this.#p.web.fetchJson("/sale/saleItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleOpApprove(e){return this.#p.web.fetchJson(`/sale/saleOpApprove/${e}`,{method:"POST"})}async saleOpApproveRevert(e){return this.#p.web.fetchJson(`/sale/saleOpApproveRevert/${e}`,{method:"POST"})}async saleOpApproveUnconditionally(e){return this.#p.web.fetchJson(`/sale/saleOpApproveUnconditionally/${e}`,{method:"POST"})}async saleOpCancel(e,t){return this.#p.web.fetchJson(`/sale/saleOpCancel/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async saleOpCancelRevert(e){return this.#p.web.fetchJson(`/sale/saleOpCancelRevert/${e}`,{method:"POST"})}async saleOpClone(e){return this.#p.web.fetchJson(`/sale/saleOpClone/${e}`,{method:"POST"})}async saleOpCreate(e){return this.#p.web.fetchJson("/sale/saleOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleOpFinishRevert(e){return this.#p.web.fetchJson(`/sale/saleOpFinishRevert/${e}`,{method:"POST"})}async saleOpForwardAuto(e,t){return this.#p.web.fetchJson(`/sale/saleOpForwardAuto/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async saleOpMerge(e){return this.#p.web.fetchJson("/sale/saleOpMerge",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleOpMergeRevert(e){return this.#p.web.fetchJson(`/sale/saleOpMergeRevert/${e}`,{method:"POST"})}async saleOpPickingOrderCreate(e,t){return this.#p.web.fetchJson(`/sale/saleOpPickingOrderCreate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async saleOpPickingOrderCreateRevert(e,t){const n=new URLSearchParams;return t&&n.set("pickingOrderId",String(t)),this.#p.web.fetchJson(`/sale/saleOpPickingOrderCreateRevert/${e}?${n.toString()}`,{method:"POST"})}async saleOpPrepare(e){return this.#p.web.fetchJson(`/sale/saleOpPrepare/${e}`,{method:"POST"})}async saleOpPrepareRevert(e){return this.#p.web.fetchJson(`/sale/saleOpPrepareRevert/${e}`,{method:"POST"})}async saleOpShipmentAssign(e,t){const n=new URLSearchParams;return t&&n.set("shipmentId",String(t)),this.#p.web.fetchJson(`/sale/saleOpShipmentAssign/${e}?${n.toString()}`,{method:"POST"})}async saleOpShipmentAssignRevert(e){return this.#p.web.fetchJson(`/sale/saleOpShipmentAssignRevert/${e}`,{method:"POST"})}async saleOpSplit(e,t){return this.#p.web.fetchJson(`/sale/saleOpSplit/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async saleOpTaxationCalc(e){return this.#p.web.fetchJson(`/sale/saleOpTaxationCalc/${e}`,{method:"POST"})}async saleOpUpdatePrepared(e){return this.#p.web.fetchJson("/sale/saleOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async salePaymentCreate(e){return this.#p.web.fetchJson("/sale/salePayment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async salePaymentDelete(e){return this.#p.web.fetchJson(`/sale/salePayment/${e}`,{method:"DELETE"})}async salePaymentRead(e){return this.#p.web.fetchJson(`/sale/salePayment?${e}`,{method:"GET"})}async salePaymentReadById(e){return this.#p.web.fetchJson(`/sale/salePayment/${e}`,{method:"GET"})}async salePaymentUpdate(e){return this.#p.web.fetchJson("/sale/salePayment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleProfileCreate(e){return this.#p.web.fetchJson("/sale/saleProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleProfileDelete(e){return this.#p.web.fetchJson(`/sale/saleProfile/${e}`,{method:"DELETE"})}async saleProfileRead(e){return this.#p.web.fetchJson(`/sale/saleProfile?${e}`,{method:"GET"})}async saleProfileReadById(e){return this.#p.web.fetchJson(`/sale/saleProfile/${e}`,{method:"GET"})}async saleProfileUpdate(e){return this.#p.web.fetchJson("/sale/saleProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleRead(e){return this.#p.web.fetchJson(`/sale/sale?${e}`,{method:"GET"})}async saleReadById(e){return this.#p.web.fetchJson(`/sale/sale/${e}`,{method:"GET"})}async saleUpdate(e){return this.#p.web.fetchJson("/sale/sale",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Li=Object.freeze({__proto__:null,Shipment:class{id;company;status;person;date;netWeightKg;grossWeightKg;volumeM3;tags;properties},ShippingService:class{#p;constructor(e){this.#p=e}async shipmentCreate(e){return this.#p.web.fetchJson("/shipping/shipment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async shipmentDelete(e){return this.#p.web.fetchJson(`/shipping/shipment/${e}`,{method:"DELETE"})}async shipmentOpApprove(e){return this.#p.web.fetchJson(`/shipping/shipmentOpApprove/${e}`,{method:"POST"})}async shipmentOpApproveRevert(e){return this.#p.web.fetchJson(`/shipping/shipmentOpApproveRevert/${e}`,{method:"POST"})}async shipmentOpCheckFinish(e){return this.#p.web.fetchJson(`/shipping/shipmentOpCheckFinish/${e}`,{method:"POST"})}async shipmentOpCheckFinishRevert(e){return this.#p.web.fetchJson(`/shipping/shipmentOpCheckFinishRevert/${e}`,{method:"POST"})}async shipmentOpCheckIgnore(e){return this.#p.web.fetchJson(`/shipping/shipmentOpCheckIgnore/${e}`,{method:"POST"})}async shipmentOpCheckStart(e){return this.#p.web.fetchJson(`/shipping/shipmentOpCheckStart/${e}`,{method:"POST"})}async shipmentOpCheckStartRevert(e){return this.#p.web.fetchJson(`/shipping/shipmentOpCheckStartRevert/${e}`,{method:"POST"})}async shipmentOpFinish(e){return this.#p.web.fetchJson(`/shipping/shipmentOpFinish/${e}`,{method:"POST"})}async shipmentOpFinishRevert(e){return this.#p.web.fetchJson(`/shipping/shipmentOpFinishRevert/${e}`,{method:"POST"})}async shipmentOpLoadIgnore(e){return this.#p.web.fetchJson(`/shipping/shipmentOpLoadIgnore/${e}`,{method:"POST"})}async shipmentOpLoadStart(e){return this.#p.web.fetchJson(`/shipping/shipmentOpLoadStart/${e}`,{method:"POST"})}async shipmentOpLoadStartRevert(e){return this.#p.web.fetchJson(`/shipping/shipmentOpLoadStartRevert/${e}`,{method:"POST"})}async shipmentOpLoadVolume(e,t){const n=new URLSearchParams;return t&&n.set("volumeId",String(t)),this.#p.web.fetchJson(`/shipping/shipmentOpLoadVolume/${e}?${n.toString()}`,{method:"POST"})}async shipmentOpOutgoingInvoiceBind(e,t){const n=new URLSearchParams;return t&&n.set("outgoingInvoiceId",String(t)),this.#p.web.fetchJson(`/shipping/shipmentOpOutgoingInvoiceBind/${e}?${n.toString()}`,{method:"POST"})}async shipmentOpOutgoingInvoiceBindRevert(e,t){const n=new URLSearchParams;return t&&n.set("outgoingInvoiceId",String(t)),this.#p.web.fetchJson(`/shipping/shipmentOpOutgoingInvoiceBindRevert/${e}?${n.toString()}`,{method:"POST"})}async shipmentOpPrepare(e){return this.#p.web.fetchJson(`/shipping/shipmentOpPrepare/${e}`,{method:"POST"})}async shipmentOpPrepareRevert(e){return this.#p.web.fetchJson(`/shipping/shipmentOpPrepareRevert/${e}`,{method:"POST"})}async shipmentRead(e){return this.#p.web.fetchJson(`/shipping/shipment?${e}`,{method:"GET"})}async shipmentReadById(e){return this.#p.web.fetchJson(`/shipping/shipment/${e}`,{method:"GET"})}async shipmentUpdate(e){return this.#p.web.fetchJson("/shipping/shipment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Ui=Object.freeze({__proto__:null,Bom:class{id;code;description;productPacking;quantity;tags;properties},BomItem:class{id;bom;productPacking;lotQuantity;type;quantity;tags;properties},Operation:class{id;productionOrder;operationType;quantity;unitValue;totalValue;tags;properties},OperationType:class{id;productionProfile;code;tags;properties},OperationTypeAccount:class{id;operationType;accountChart;account},ProductionBatch:class{id;status;productionStep;date;reservation;incomingList;journalEntry;tags;properties},ProductionOrder:class{id;status;productionProfile;company;workflow;workpiece;date;availabilityDate;productPacking;quantity;servedQuantity;tags;properties},ProductionProfile:class{id;code;tags;properties},ProductionService:class{#p;constructor(e){this.#p=e}async bomCreate(e){return this.#p.web.fetchJson("/supply/production/bom",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async bomDelete(e){return this.#p.web.fetchJson(`/supply/production/bom/${e}`,{method:"DELETE"})}async bomItemCreate(e){return this.#p.web.fetchJson("/supply/production/bomItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async bomItemDelete(e){return this.#p.web.fetchJson(`/supply/production/bomItem/${e}`,{method:"DELETE"})}async bomItemRead(e){return this.#p.web.fetchJson(`/supply/production/bomItem?${e}`,{method:"GET"})}async bomItemReadById(e){return this.#p.web.fetchJson(`/supply/production/bomItem/${e}`,{method:"GET"})}async bomItemUpdate(e){return this.#p.web.fetchJson("/supply/production/bomItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async bomOpClone(e){return this.#p.web.fetchJson(`/supply/production/bomOpClone/${e}`,{method:"POST"})}async bomRead(e){return this.#p.web.fetchJson(`/supply/production/bom?${e}`,{method:"GET"})}async bomReadById(e){return this.#p.web.fetchJson(`/supply/production/bom/${e}`,{method:"GET"})}async bomUpdate(e){return this.#p.web.fetchJson("/supply/production/bom",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async operationCreate(e){return this.#p.web.fetchJson("/supply/production/operation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async operationDelete(e){return this.#p.web.fetchJson(`/supply/production/operation/${e}`,{method:"DELETE"})}async operationRead(e){return this.#p.web.fetchJson(`/supply/production/operation?${e}`,{method:"GET"})}async operationReadById(e){return this.#p.web.fetchJson(`/supply/production/operation/${e}`,{method:"GET"})}async operationTypeAccountCreate(e){return this.#p.web.fetchJson("/supply/production/operationTypeAccount",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async operationTypeAccountDelete(e){return this.#p.web.fetchJson(`/supply/production/operationTypeAccount/${e}`,{method:"DELETE"})}async operationTypeAccountRead(e){return this.#p.web.fetchJson(`/supply/production/operationTypeAccount?${e}`,{method:"GET"})}async operationTypeAccountReadById(e){return this.#p.web.fetchJson(`/supply/production/operationTypeAccount/${e}`,{method:"GET"})}async operationTypeAccountUpdate(e){return this.#p.web.fetchJson("/supply/production/operationTypeAccount",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async operationTypeCreate(e){return this.#p.web.fetchJson("/supply/production/operationType",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async operationTypeDelete(e){return this.#p.web.fetchJson(`/supply/production/operationType/${e}`,{method:"DELETE"})}async operationTypeRead(e){return this.#p.web.fetchJson(`/supply/production/operationType?${e}`,{method:"GET"})}async operationTypeReadById(e){return this.#p.web.fetchJson(`/supply/production/operationType/${e}`,{method:"GET"})}async operationTypeUpdate(e){return this.#p.web.fetchJson("/supply/production/operationType",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async operationUpdate(e){return this.#p.web.fetchJson("/supply/production/operation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionBatchCreate(e){return this.#p.web.fetchJson("/supply/production/productionBatch",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionBatchDelete(e){return this.#p.web.fetchJson(`/supply/production/productionBatch/${e}`,{method:"DELETE"})}async productionBatchOpApprove(e){return this.#p.web.fetchJson(`/supply/production/productionBatchOpApprove/${e}`,{method:"POST"})}async productionBatchOpApproveRevert(e){return this.#p.web.fetchJson(`/supply/production/productionBatchOpApproveRevert/${e}`,{method:"POST"})}async productionBatchOpPrepare(e){return this.#p.web.fetchJson(`/supply/production/productionBatchOpPrepare/${e}`,{method:"POST"})}async productionBatchOpPrepareRevert(e){return this.#p.web.fetchJson(`/supply/production/productionBatchOpPrepareRevert/${e}`,{method:"POST"})}async productionBatchRead(e){return this.#p.web.fetchJson(`/supply/production/productionBatch?${e}`,{method:"GET"})}async productionBatchReadById(e){return this.#p.web.fetchJson(`/supply/production/productionBatch/${e}`,{method:"GET"})}async productionBatchUpdate(e){return this.#p.web.fetchJson("/supply/production/productionBatch",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionOrderCreate(e){return this.#p.web.fetchJson("/supply/production/productionOrder",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionOrderDelete(e){return this.#p.web.fetchJson(`/supply/production/productionOrder/${e}`,{method:"DELETE"})}async productionOrderOpApprove(e){return this.#p.web.fetchJson(`/supply/production/productionOrderOpApprove/${e}`,{method:"POST"})}async productionOrderOpApproveRevert(e){return this.#p.web.fetchJson(`/supply/production/productionOrderOpApproveRevert/${e}`,{method:"POST"})}async productionOrderOpCreate(e){return this.#p.web.fetchJson("/supply/production/productionOrderOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionOrderOpFinish(e){return this.#p.web.fetchJson(`/supply/production/productionOrderOpFinish/${e}`,{method:"POST"})}async productionOrderOpFinishRevert(e){return this.#p.web.fetchJson(`/supply/production/productionOrderOpFinishRevert/${e}`,{method:"POST"})}async productionOrderOpPrepare(e){return this.#p.web.fetchJson(`/supply/production/productionOrderOpPrepare/${e}`,{method:"POST"})}async productionOrderOpPrepareRevert(e){return this.#p.web.fetchJson(`/supply/production/productionOrderOpPrepareRevert/${e}`,{method:"POST"})}async productionOrderRead(e){return this.#p.web.fetchJson(`/supply/production/productionOrder?${e}`,{method:"GET"})}async productionOrderReadById(e){return this.#p.web.fetchJson(`/supply/production/productionOrder/${e}`,{method:"GET"})}async productionOrderUpdate(e){return this.#p.web.fetchJson("/supply/production/productionOrder",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionProfileCreate(e){return this.#p.web.fetchJson("/supply/production/productionProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionProfileDelete(e){return this.#p.web.fetchJson(`/supply/production/productionProfile/${e}`,{method:"DELETE"})}async productionProfileRead(e){return this.#p.web.fetchJson(`/supply/production/productionProfile?${e}`,{method:"GET"})}async productionProfileReadById(e){return this.#p.web.fetchJson(`/supply/production/productionProfile/${e}`,{method:"GET"})}async productionProfileUpdate(e){return this.#p.web.fetchJson("/supply/production/productionProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionStepConsumptionCreate(e){return this.#p.web.fetchJson("/supply/production/productionStepConsumption",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionStepConsumptionDelete(e){return this.#p.web.fetchJson(`/supply/production/productionStepConsumption/${e}`,{method:"DELETE"})}async productionStepConsumptionOpCalculate(e){return this.#p.web.fetchJson(`/supply/production/productionStepConsumptionOpCalculate/${e}`,{method:"POST"})}async productionStepConsumptionRead(e){return this.#p.web.fetchJson(`/supply/production/productionStepConsumption?${e}`,{method:"GET"})}async productionStepConsumptionReadById(e){return this.#p.web.fetchJson(`/supply/production/productionStepConsumption/${e}`,{method:"GET"})}async productionStepConsumptionUpdate(e){return this.#p.web.fetchJson("/supply/production/productionStepConsumption",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionStepCreate(e){return this.#p.web.fetchJson("/supply/production/productionStep",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionStepDelete(e){return this.#p.web.fetchJson(`/supply/production/productionStep/${e}`,{method:"DELETE"})}async productionStepProductionCreate(e){return this.#p.web.fetchJson("/supply/production/productionStepProduction",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionStepProductionDelete(e){return this.#p.web.fetchJson(`/supply/production/productionStepProduction/${e}`,{method:"DELETE"})}async productionStepProductionRead(e){return this.#p.web.fetchJson(`/supply/production/productionStepProduction?${e}`,{method:"GET"})}async productionStepProductionReadById(e){return this.#p.web.fetchJson(`/supply/production/productionStepProduction/${e}`,{method:"GET"})}async productionStepProductionUpdate(e){return this.#p.web.fetchJson("/supply/production/productionStepProduction",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionStepRead(e){return this.#p.web.fetchJson(`/supply/production/productionStep?${e}`,{method:"GET"})}async productionStepReadById(e){return this.#p.web.fetchJson(`/supply/production/productionStep/${e}`,{method:"GET"})}async productionStepUpdate(e){return this.#p.web.fetchJson("/supply/production/productionStep",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},ProductionStep:class{id;status;productionOrder;workflow;workpiece;productPacking;quantity;servedQuantity;tags;properties},ProductionStepConsumption:class{id;productionStep;productPacking;quantity;servedQuantity;tags;properties},ProductionStepProduction:class{id;productionStep;productPacking;quantity;weight;servedQuantity;tags;properties}});var Gi=Object.freeze({__proto__:null,PriceListCost:class{id;type;code;description;notBefore;notAfter;currency;variationRateLow;variationRateHigh;tags;properties},PriceListCostItem:class{id;priceList;product;productPacking;currency;unitValue;variationRateLow;variationRateHigh;tags;properties},Proposal:class{id;status;quote;person;date;totalValue;tags;properties},ProposalItem:class{id;status;proposal;quoteItem;availabilityDate;productPacking;fiscalProfileProduct;unit;quantity;internalQuantity;approvedQuantity;currency;unitValue;taxationRule;taxationOperation;productValue;discountType;discountAmount;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;tags;properties},Purchase:class{id;status;company;purchaseProfile;fiscalProfileOperation;workflow;workpiece;warehouse;person;personAddressShipping;code;date;availabilityDate;freightType;priceList;currency;totalValue;incomingRequest;quote;purchaseSource;tags;properties},PurchaseItem:class{id;purchase;productPacking;fiscalProfileProduct;taxationRule;taxationOperation;priceListValue;unit;quantity;internalQuantity;servedQuantity;unitValue;currency;productValue;discountType;discountAmount;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;account;accountComplement;tags;properties},PurchasePayment:class{id;purchase;type;account;accountComplement;term;value;tags;properties},PurchaseProfile:class{id;code;description;fiscalProfileOperation;workflow;tags;properties},PurchaseService:class{#p;constructor(e){this.#p=e}async priceListCreate(e){return this.#p.web.fetchJson("/supply/purchase/priceList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListDelete(e){return this.#p.web.fetchJson(`/supply/purchase/priceList/${e}`,{method:"DELETE"})}async priceListItemCreate(e){return this.#p.web.fetchJson("/supply/purchase/priceListItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListItemDelete(e){return this.#p.web.fetchJson(`/supply/purchase/priceListItem/${e}`,{method:"DELETE"})}async priceListItemRead(e){return this.#p.web.fetchJson(`/supply/purchase/priceListItem?${e}`,{method:"GET"})}async priceListItemReadById(e){return this.#p.web.fetchJson(`/supply/purchase/priceListItem/${e}`,{method:"GET"})}async priceListItemUpdate(e){return this.#p.web.fetchJson("/supply/purchase/priceListItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListRead(e){return this.#p.web.fetchJson(`/supply/purchase/priceList?${e}`,{method:"GET"})}async priceListReadById(e){return this.#p.web.fetchJson(`/supply/purchase/priceList/${e}`,{method:"GET"})}async priceListUpdate(e){return this.#p.web.fetchJson("/supply/purchase/priceList",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async proposalCreate(e){return this.#p.web.fetchJson("/supply/purchase/proposal",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async proposalDelete(e){return this.#p.web.fetchJson(`/supply/purchase/proposal/${e}`,{method:"DELETE"})}async proposalItemCreate(e){return this.#p.web.fetchJson("/supply/purchase/proposalItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async proposalItemDelete(e){return this.#p.web.fetchJson(`/supply/purchase/proposalItem/${e}`,{method:"DELETE"})}async proposalItemOpApprove(e,t){return this.#p.web.fetchJson(`/supply/purchase/proposalItemOpApprove/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async proposalItemOpApproveRevert(e){return this.#p.web.fetchJson(`/supply/purchase/proposalItemOpApproveRevert/${e}`,{method:"POST"})}async proposalItemOpDisapprove(e,t){return this.#p.web.fetchJson(`/supply/purchase/proposalItemOpDisapprove/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async proposalItemOpDisapproveRevert(e){return this.#p.web.fetchJson(`/supply/purchase/proposalItemOpDisapproveRevert/${e}`,{method:"POST"})}async proposalItemRead(e){return this.#p.web.fetchJson(`/supply/purchase/proposalItem?${e}`,{method:"GET"})}async proposalItemReadById(e){return this.#p.web.fetchJson(`/supply/purchase/proposalItem/${e}`,{method:"GET"})}async proposalItemUpdate(e){return this.#p.web.fetchJson("/supply/purchase/proposalItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async proposalOpCancel(e){return this.#p.web.fetchJson(`/supply/purchase/proposalOpCancel/${e}`,{method:"POST"})}async proposalOpCancelRevert(e){return this.#p.web.fetchJson(`/supply/purchase/proposalOpCancelRevert/${e}`,{method:"POST"})}async proposalOpPrepare(e){return this.#p.web.fetchJson(`/supply/purchase/proposalOpPrepare/${e}`,{method:"POST"})}async proposalOpPrepareRevert(e){return this.#p.web.fetchJson(`/supply/purchase/proposalOpPrepareRevert/${e}`,{method:"POST"})}async proposalRead(e){return this.#p.web.fetchJson(`/supply/purchase/proposal?${e}`,{method:"GET"})}async proposalReadById(e){return this.#p.web.fetchJson(`/supply/purchase/proposal/${e}`,{method:"GET"})}async proposalUpdate(e){return this.#p.web.fetchJson("/supply/purchase/proposal",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseCreate(e){return this.#p.web.fetchJson("/supply/purchase/purchase",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseDelete(e){return this.#p.web.fetchJson(`/supply/purchase/purchase/${e}`,{method:"DELETE"})}async purchaseItemCreate(e){return this.#p.web.fetchJson("/supply/purchase/purchaseItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseItemDelete(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseItem/${e}`,{method:"DELETE"})}async purchaseItemRead(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseItem?${e}`,{method:"GET"})}async purchaseItemReadById(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseItem/${e}`,{method:"GET"})}async purchaseItemUpdate(e){return this.#p.web.fetchJson("/supply/purchase/purchaseItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseOpApprove(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpApprove/${e}`,{method:"POST"})}async purchaseOpApproveRevert(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpApproveRevert/${e}`,{method:"POST"})}async purchaseOpApproveUnconditionally(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpApproveUnconditionally/${e}`,{method:"POST"})}async purchaseOpCancel(e,t){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpCancel/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async purchaseOpCancelRevert(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpCancelRevert/${e}`,{method:"POST"})}async purchaseOpClone(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpClone/${e}`,{method:"POST"})}async purchaseOpCreate(e){return this.#p.web.fetchJson("/supply/purchase/purchaseOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseOpFinish(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpFinish/${e}`,{method:"POST"})}async purchaseOpFinishRevert(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpFinishRevert/${e}`,{method:"POST"})}async purchaseOpMerge(e){return this.#p.web.fetchJson("/supply/purchase/purchaseOpMerge",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseOpPrepare(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpPrepare/${e}`,{method:"POST"})}async purchaseOpPrepareRevert(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpPrepareRevert/${e}`,{method:"POST"})}async purchaseOpSplit(e,t){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpSplit/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async purchaseOpTaxationCalc(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpTaxationCalc/${e}`,{method:"POST"})}async purchaseOpUpdatePrepared(e){return this.#p.web.fetchJson("/supply/purchase/purchaseOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchasePaymentCreate(e){return this.#p.web.fetchJson("/supply/purchase/purchasePayment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchasePaymentDelete(e){return this.#p.web.fetchJson(`/supply/purchase/purchasePayment/${e}`,{method:"DELETE"})}async purchasePaymentRead(e){return this.#p.web.fetchJson(`/supply/purchase/purchasePayment?${e}`,{method:"GET"})}async purchasePaymentReadById(e){return this.#p.web.fetchJson(`/supply/purchase/purchasePayment/${e}`,{method:"GET"})}async purchasePaymentUpdate(e){return this.#p.web.fetchJson("/supply/purchase/purchasePayment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseProfileCreate(e){return this.#p.web.fetchJson("/supply/purchase/purchaseProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseProfileDelete(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseProfile/${e}`,{method:"DELETE"})}async purchaseProfileRead(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseProfile?${e}`,{method:"GET"})}async purchaseProfileReadById(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseProfile/${e}`,{method:"GET"})}async purchaseProfileUpdate(e){return this.#p.web.fetchJson("/supply/purchase/purchaseProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseRead(e){return this.#p.web.fetchJson(`/supply/purchase/purchase?${e}`,{method:"GET"})}async purchaseReadById(e){return this.#p.web.fetchJson(`/supply/purchase/purchase/${e}`,{method:"GET"})}async purchaseUpdate(e){return this.#p.web.fetchJson("/supply/purchase/purchase",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteCreate(e){return this.#p.web.fetchJson("/supply/purchase/quote",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteDelete(e){return this.#p.web.fetchJson(`/supply/purchase/quote/${e}`,{method:"DELETE"})}async quoteItemCreate(e){return this.#p.web.fetchJson("/supply/purchase/quoteItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteItemDelete(e){return this.#p.web.fetchJson(`/supply/purchase/quoteItem/${e}`,{method:"DELETE"})}async quoteItemRead(e){return this.#p.web.fetchJson(`/supply/purchase/quoteItem?${e}`,{method:"GET"})}async quoteItemReadById(e){return this.#p.web.fetchJson(`/supply/purchase/quoteItem/${e}`,{method:"GET"})}async quoteItemUpdate(e){return this.#p.web.fetchJson("/supply/purchase/quoteItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteOpApprove(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpApprove/${e}`,{method:"POST"})}async quoteOpApproveRevert(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpApproveRevert/${e}`,{method:"POST"})}async quoteOpCancel(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpCancel/${e}`,{method:"POST"})}async quoteOpCancelRevert(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpCancelRevert/${e}`,{method:"POST"})}async quoteOpCreate(e){return this.#p.web.fetchJson("/supply/purchase/quoteOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteOpFinish(e,t){return this.#p.web.fetchJson(`/supply/purchase/quoteOpFinish/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async quoteOpFinishRevert(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpFinishRevert/${e}`,{method:"POST"})}async quoteOpPrepare(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpPrepare/${e}`,{method:"POST"})}async quoteOpPrepareRevert(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpPrepareRevert/${e}`,{method:"POST"})}async quoteRead(e){return this.#p.web.fetchJson(`/supply/purchase/quote?${e}`,{method:"GET"})}async quoteReadById(e){return this.#p.web.fetchJson(`/supply/purchase/quote/${e}`,{method:"GET"})}async quoteUpdate(e){return this.#p.web.fetchJson("/supply/purchase/quote",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Quote:class{id;status;company;fiscalProfileOperation;workflow;workpiece;code;date;availabilityDate;tags;properties},QuoteItem:class{id;quote;productPacking;unit;quantity;internalQuantity;approvedQuantity;tags;properties}}),qi=Object.freeze({__proto__:null,production:Ui,purchase:Gi});var xi=Object.freeze({__proto__:null,AuditService:class{#p;constructor(e){this.#p=e}async logCreate(e){return this.#p.web.fetchJson("/system/audit/log",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async logOpDeleteExpired(){return this.#p.web.fetchJson("/system/audit/logOpDeleteExpired",{method:"POST"})}async logRead(e){return this.#p.web.fetchJson(`/system/audit/log?${e}`,{method:"GET"})}async logReadById(e){return this.#p.web.fetchJson(`/system/audit/log/${e}`,{method:"GET"})}async sourceOpReadByEntity(e,t){const n=new URLSearchParams;return e&&n.set("entity",String(e)),t&&n.set("entityId",String(t)),this.#p.web.fetchJson(`/system/audit/sourceOpReadByEntity?${n.toString()}`,{method:"POST"})}async sourceRead(e){return this.#p.web.fetchJson(`/system/audit/source?${e}`,{method:"GET"})}async sourceReadById(e){return this.#p.web.fetchJson(`/system/audit/source/${e}`,{method:"GET"})}async userLogCreate(e){return this.#p.web.fetchJson("/system/audit/userLog",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userLogDelete(e){return this.#p.web.fetchJson(`/system/audit/userLog/${e}`,{method:"DELETE"})}async userLogRead(e){return this.#p.web.fetchJson(`/system/audit/userLog?${e}`,{method:"GET"})}async userLogReadById(e){return this.#p.web.fetchJson(`/system/audit/userLog/${e}`,{method:"GET"})}async userLogUpdate(e){return this.#p.web.fetchJson("/system/audit/userLog",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Log:class{id;session;dateTime;level;operation;source;contentType;content;expiration;system;tags;properties},Source:class{id;entity;entityId;dateTime;session}});var Ai=Object.freeze({__proto__:null,Agent:class{id;description;uri;tags;properties},AutomationService:class{#p;constructor(e){this.#p=e}async agentCreate(e){return this.#p.web.fetchJson("/system/automation/agent",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async agentDelete(e){return this.#p.web.fetchJson(`/system/automation/agent/${e}`,{method:"DELETE"})}async agentOpExecute(e,t){return this.#p.web.fetchJson(`/system/automation/agentOpExecute/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async agentRead(e){return this.#p.web.fetchJson(`/system/automation/agent?${e}`,{method:"GET"})}async agentReadById(e){return this.#p.web.fetchJson(`/system/automation/agent/${e}`,{method:"GET"})}async agentUpdate(e){return this.#p.web.fetchJson("/system/automation/agent",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async scheduleCreate(e){return this.#p.web.fetchJson("/system/automation/schedule",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async scheduleDelete(e){return this.#p.web.fetchJson(`/system/automation/schedule/${e}`,{method:"DELETE"})}async scheduleOpExecute(e){return this.#p.web.fetchJson(`/system/automation/scheduleOpExecute/${e}`,{method:"POST"})}async scheduleRead(e){return this.#p.web.fetchJson(`/system/automation/schedule?${e}`,{method:"GET"})}async scheduleReadById(e){return this.#p.web.fetchJson(`/system/automation/schedule/${e}`,{method:"GET"})}async scheduleUpdate(e){return this.#p.web.fetchJson("/system/automation/schedule",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async watcherCreate(e){return this.#p.web.fetchJson("/system/automation/watcher",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async watcherDelete(e){return this.#p.web.fetchJson(`/system/automation/watcher/${e}`,{method:"DELETE"})}async watcherRead(e){return this.#p.web.fetchJson(`/system/automation/watcher?${e}`,{method:"GET"})}async watcherReadById(e){return this.#p.web.fetchJson(`/system/automation/watcher/${e}`,{method:"GET"})}async watcherUpdate(e){return this.#p.web.fetchJson("/system/automation/watcher",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Schedule:class{id;code;description;type;expression;nextRun;lastRun;agent;tags;properties},Watcher:class{id;event;uri;tags;properties}});var Bi=Object.freeze({__proto__:null,DataService:class{#p;constructor(e){this.#p=e}async dataSourceCreate(e){return this.#p.web.fetchJson("/system/data/dataSource",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dataSourceDelete(e){return this.#p.web.fetchJson(`/system/data/dataSource/${e}`,{method:"DELETE"})}async dataSourceFieldRead(e){return this.#p.web.fetchJson(`/system/data/dataSourceField?${e}`,{method:"GET"})}async dataSourceFieldReadById(e){return this.#p.web.fetchJson(`/system/data/dataSourceField/${e}`,{method:"GET"})}async dataSourceFieldUpdate(e){return this.#p.web.fetchJson("/system/data/dataSourceField",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dataSourceOpRead(e){return this.#p.web.fetchJson("/system/data/dataSourceOpRead",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dataSourceParameterCreate(e){return this.#p.web.fetchJson("/system/data/dataSourceParameter",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dataSourceParameterDelete(e){return this.#p.web.fetchJson(`/system/data/dataSourceParameter/${e}`,{method:"DELETE"})}async dataSourceParameterRead(e){return this.#p.web.fetchJson(`/system/data/dataSourceParameter?${e}`,{method:"GET"})}async dataSourceParameterReadById(e){return this.#p.web.fetchJson(`/system/data/dataSourceParameter/${e}`,{method:"GET"})}async dataSourceParameterUpdate(e){return this.#p.web.fetchJson("/system/data/dataSourceParameter",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dataSourceRead(e){return this.#p.web.fetchJson(`/system/data/dataSource?${e}`,{method:"GET"})}async dataSourceReadById(e){return this.#p.web.fetchJson(`/system/data/dataSource/${e}`,{method:"GET"})}async dataSourceUpdate(e){return this.#p.web.fetchJson("/system/data/dataSource",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},DataSource:class{id;code;type;sql;accessPoint;tags;properties},DataSourceField:class{id;dataSource;name;accessPoint;tags;properties},DataSourceParameter:class{id;dataSource;name;type;tags;properties}});var Fi=Object.freeze({__proto__:null,File:class{id;source;code;description;content;contentType;url;size;accessible;tags;properties},FileService:class{#p;constructor(e){this.#p=e}async fileCreate(e){return this.#p.web.fetchJson("/system/file/file",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fileDelete(e){return this.#p.web.fetchJson(`/system/file/file/${e}`,{method:"DELETE"})}async fileOpReadContent(e){return this.#p.web.fetchBlob(`/system/file/fileOpReadContent/${e}`,{method:"POST"})}async fileRead(e){return this.#p.web.fetchJson(`/system/file/file?${e}`,{method:"GET"})}async fileReadById(e){return this.#p.web.fetchJson(`/system/file/file/${e}`,{method:"GET"})}async fileUpdate(e){return this.#p.web.fetchJson("/system/file/file",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Vi=Object.freeze({__proto__:null,FrontendService:class{#p;constructor(e){this.#p=e}async injectsRead(){return this.#p.web.fetchJson("/system/frontend/injects",{method:"GET"})}async injectsUpdate(e){return this.#p.web.fetchJson("/system/frontend/injects",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async menuRead(){return this.#p.web.fetchJson("/system/frontend/menu",{method:"GET"})}async menuUpdate(e){return this.#p.web.fetchJson("/system/frontend/menu",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async resourcesRead(){return this.#p.web.fetchJson("/system/frontend/resources",{method:"GET"})}async resourcesUpdate(e){return this.#p.web.fetchJson("/system/frontend/resources",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Inject:class{key;selector;position;uri},Menu:class{label;accessPoint;icon;path;tags;children}});var Mi=Object.freeze({__proto__:null,Image:class{id;source;code;description;content;contentType;url;size;width;height;tags;properties},ImageService:class{#p;constructor(e){this.#p=e}async imageCreate(e){return this.#p.web.fetchJson("/system/image/image",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async imageDelete(e){return this.#p.web.fetchJson(`/system/image/image/${e}`,{method:"DELETE"})}async imageRead(e){return this.#p.web.fetchJson(`/system/image/image?${e}`,{method:"GET"})}async imageReadById(e){return this.#p.web.fetchJson(`/system/image/image/${e}`,{method:"GET"})}async imageUpdate(e){return this.#p.web.fetchJson("/system/image/image",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var _i=Object.freeze({__proto__:null,IntegrationService:class{#p;constructor(e){this.#p=e}async messageDelete(e){return this.#p.web.fetchJson(`/system/integration/message/${e}`,{method:"DELETE"})}async messageOpPost(e){return this.#p.web.fetchJson("/system/integration/messageOpPost",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async messageOpTransfer(e,t){const n=new URLSearchParams;return t&&n.set("queueCode",String(t)),this.#p.web.fetchJson(`/system/integration/messageOpTransfer/${e}?${n.toString()}`,{method:"POST"})}async messageRead(e){return this.#p.web.fetchJson(`/system/integration/message?${e}`,{method:"GET"})}async messageReadById(e){return this.#p.web.fetchJson(`/system/integration/message/${e}`,{method:"GET"})}async queueCreate(e){return this.#p.web.fetchJson("/system/integration/queue",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async queueDelete(e){return this.#p.web.fetchJson(`/system/integration/queue/${e}`,{method:"DELETE"})}async queueOpDeleteExpiredMessages(e){const t=new URLSearchParams;return e&&t.set("queueCode",String(e)),this.#p.web.fetchJson(`/system/integration/queueOpDeleteExpiredMessages?${t.toString()}`,{method:"POST"})}async queueOpReadMessage(e,t){const n=new URLSearchParams;return e&&n.set("queueCode",String(e)),t&&n.set("maxMessages",String(t)),this.#p.web.fetchJson(`/system/integration/queueOpReadMessage?${n.toString()}`,{method:"POST"})}async queueOpReadMessageTimeout(e,t,n){const i=new URLSearchParams;return e&&i.set("queueCode",String(e)),t&&i.set("maxMessages",String(t)),n&&i.set("timeoutS",String(n)),this.#p.web.fetchJson(`/system/integration/queueOpReadMessageTimeout?${i.toString()}`,{method:"POST"})}async queueRead(e){return this.#p.web.fetchJson(`/system/integration/queue?${e}`,{method:"GET"})}async queueReadById(e){return this.#p.web.fetchJson(`/system/integration/queue/${e}`,{method:"GET"})}async queueUpdate(e){return this.#p.web.fetchJson("/system/integration/queue",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async subscriptionCreate(e){return this.#p.web.fetchJson("/system/integration/subscription",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async subscriptionDelete(e){return this.#p.web.fetchJson(`/system/integration/subscription/${e}`,{method:"DELETE"})}async subscriptionRead(e){return this.#p.web.fetchJson(`/system/integration/subscription?${e}`,{method:"GET"})}async subscriptionReadById(e){return this.#p.web.fetchJson(`/system/integration/subscription/${e}`,{method:"GET"})}async subscriptionUpdate(e){return this.#p.web.fetchJson("/system/integration/subscription",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async topicCreate(e){return this.#p.web.fetchJson("/system/integration/topic",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async topicDelete(e){return this.#p.web.fetchJson(`/system/integration/topic/${e}`,{method:"DELETE"})}async topicOpPublish(e){return this.#p.web.fetchJson("/system/integration/topicOpPublish",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async topicRead(e){return this.#p.web.fetchJson(`/system/integration/topic?${e}`,{method:"GET"})}async topicReadById(e){return this.#p.web.fetchJson(`/system/integration/topic/${e}`,{method:"GET"})}async topicUpdate(e){return this.#p.web.fetchJson("/system/integration/topic",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Message:class{id;queue;subject;content;dateTime;size;exclusivityExpiration;reads},Publication:class{dateTime;operation;contentType;content;tags;properties},Queue:class{id;code;exclusivityTimeS;retentionPeriodS;maxSizeKB;longReadWaitS;maxReads;deadQueue;tags;properties},Subscription:class{id;topic;protocol;target;queue;agent;tags;properties},Topic:class{id;code;tags;properties}});var Wi=Object.freeze({__proto__:null,Address:class{address;description},Attachment:class{identifier;bytes;mimeType},MailService:class{#p;constructor(e){this.#p=e}async mailerConfigCreate(e){return this.#p.web.fetchJson("/system/mail/mailerConfig",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async mailerConfigDelete(e){return this.#p.web.fetchJson(`/system/mail/mailerConfig/${e}`,{method:"DELETE"})}async mailerConfigRead(e){return this.#p.web.fetchJson(`/system/mail/mailerConfig?${e}`,{method:"GET"})}async mailerConfigReadById(e){return this.#p.web.fetchJson(`/system/mail/mailerConfig/${e}`,{method:"GET"})}async mailerConfigUpdate(e){return this.#p.web.fetchJson("/system/mail/mailerConfig",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async messageOpSend(e,t,n){const i=new URLSearchParams;return e&&i.set("mailerConfigId",String(e)),t&&i.set("mailerConfigCode",String(t)),this.#p.web.fetchJson(`/system/mail/messageOpSend?${i.toString()}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})}},MailerConfig:class{id;code;description;tags;properties},Message:class{from;repplyTo;to;cc;bcc;subject;content;mimeType;attachments;source}});var zi=Object.freeze({__proto__:null,Printer:class{id;status;code;description;jobs;tags;properties},PrinterJob:class{id;printer;status;dateTime;description;type;tags;properties},PrinterJobData:class{data;id;printer;status;dateTime;description;type;tags;properties},PrintingService:class{#p;constructor(e){this.#p=e}async printerCreate(e){return this.#p.web.fetchJson("/system/printing/printer",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async printerDelete(e){return this.#p.web.fetchJson(`/system/printing/printer/${e}`,{method:"DELETE"})}async printerJobCreate(e){return this.#p.web.fetchJson("/system/printing/printerJob",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async printerJobDataReadById(e){return this.#p.web.fetchJson(`/system/printing/printerJobData/${e}`,{method:"GET"})}async printerJobDelete(e){return this.#p.web.fetchJson(`/system/printing/printerJob/${e}`,{method:"DELETE"})}async printerJobOpFetch(e){return this.#p.web.fetchJson(`/system/printing/printerJobOpFetch/${e}`,{method:"POST"})}async printerJobOpPrinted(e){return this.#p.web.fetchJson(`/system/printing/printerJobOpPrinted/${e}`,{method:"POST"})}async printerJobOpUnlock(e){return this.#p.web.fetchJson(`/system/printing/printerJobOpUnlock/${e}`,{method:"POST"})}async printerJobRead(e){return this.#p.web.fetchJson(`/system/printing/printerJob?${e}`,{method:"GET"})}async printerJobReadById(e){return this.#p.web.fetchJson(`/system/printing/printerJob/${e}`,{method:"GET"})}async printerOpPause(e){return this.#p.web.fetchJson(`/system/printing/printerOpPause/${e}`,{method:"POST"})}async printerOpPauseRevert(e){return this.#p.web.fetchJson(`/system/printing/printerOpPauseRevert/${e}`,{method:"POST"})}async printerOpPrintTestPage(e){return this.#p.web.fetchJson(`/system/printing/printerOpPrintTestPage/${e}`,{method:"POST"})}async printerOpPrinterJobFetch(e){return this.#p.web.fetchJson(`/system/printing/printerOpPrinterJobFetch/${e}`,{method:"POST"})}async printerRead(e){return this.#p.web.fetchJson(`/system/printing/printer?${e}`,{method:"GET"})}async printerReadById(e){return this.#p.web.fetchJson(`/system/printing/printer/${e}`,{method:"GET"})}async printerUpdate(e){return this.#p.web.fetchJson("/system/printing/printer",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Zi=Object.freeze({__proto__:null,Report:class{id;code;type;delegate;tags;properties},ReportService:class{#p;constructor(e){this.#p=e}async reportCreate(e){return this.#p.web.fetchJson("/system/report/report",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async reportDelete(e){return this.#p.web.fetchJson(`/system/report/report/${e}`,{method:"DELETE"})}async reportOpClone(e,t){const n=new URLSearchParams;return t&&n.set("newCode",String(t)),this.#p.web.fetchJson(`/system/report/reportOpClone/${e}?${n.toString()}`,{method:"POST"})}async reportOpGenerate(e){return this.#p.web.fetchBlob("/system/report/reportOpGenerate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async reportOpPrint(e){return this.#p.web.fetchJson("/system/report/reportOpPrint",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async reportRead(e){return this.#p.web.fetchJson(`/system/report/report?${e}`,{method:"GET"})}async reportReadById(e){return this.#p.web.fetchJson(`/system/report/report/${e}`,{method:"GET"})}async reportTemplateOpUpdate(e,t){return this.#p.web.fetchJson(`/system/report/reportTemplateOpUpdate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async reportTemplateRead(e){return this.#p.web.fetchJson(`/system/report/reportTemplate?${e}`,{method:"GET"})}async reportTemplateReadById(e){return this.#p.web.fetchJson(`/system/report/reportTemplate/${e}`,{method:"GET"})}async reportUpdate(e){return this.#p.web.fetchJson("/system/report/report",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},ReportTemplate:class{id;code;type;template;tags;properties}});var Yi=Object.freeze({__proto__:null,AccessPoint:class{id;code;description;tags;properties},AccessProfile:class{id;code;description;tags;properties},Grant:class{id;grantor;recipient},Group:class{status;id;type;code;description;tags;properties},KeyStore:class{id;type;description;content;password;tags;properties},Role:class{id;type;code;description;tags;properties},RoleAccessPoint:class{id;role;accessPoint},SecurityService:class{#p;constructor(e){this.#p=e}async accessPointCreate(e){return this.#p.web.fetchJson("/system/security/accessPoint",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accessPointDelete(e){return this.#p.web.fetchJson(`/system/security/accessPoint/${e}`,{method:"DELETE"})}async accessPointOpValidate(e){const t=new URLSearchParams;return e&&t.set("code",String(e)),this.#p.web.fetchJson(`/system/security/accessPointOpValidate?${t.toString()}`,{method:"POST"})}async accessPointRead(e){return this.#p.web.fetchJson(`/system/security/accessPoint?${e}`,{method:"GET"})}async accessPointReadById(e){return this.#p.web.fetchJson(`/system/security/accessPoint/${e}`,{method:"GET"})}async accessPointUpdate(e){return this.#p.web.fetchJson("/system/security/accessPoint",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accessProfileCreate(e){return this.#p.web.fetchJson("/system/security/accessProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accessProfileDelete(e){return this.#p.web.fetchJson(`/system/security/accessProfile/${e}`,{method:"DELETE"})}async accessProfileRead(e){return this.#p.web.fetchJson(`/system/security/accessProfile?${e}`,{method:"GET"})}async accessProfileReadById(e){return this.#p.web.fetchJson(`/system/security/accessProfile/${e}`,{method:"GET"})}async accessProfileUpdate(e){return this.#p.web.fetchJson("/system/security/accessProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async grantCreate(e){return this.#p.web.fetchJson("/system/security/grant",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async grantDelete(e){return this.#p.web.fetchJson(`/system/security/grant/${e}`,{method:"DELETE"})}async grantRead(e){return this.#p.web.fetchJson(`/system/security/grant?${e}`,{method:"GET"})}async grantReadById(e){return this.#p.web.fetchJson(`/system/security/grant/${e}`,{method:"GET"})}async groupCreate(e){return this.#p.web.fetchJson("/system/security/group",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async groupDelete(e){return this.#p.web.fetchJson(`/system/security/group/${e}`,{method:"DELETE"})}async groupOpClone(e,t){return this.#p.web.fetchJson(`/system/security/groupOpClone/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async groupRead(e){return this.#p.web.fetchJson(`/system/security/group?${e}`,{method:"GET"})}async groupReadById(e){return this.#p.web.fetchJson(`/system/security/group/${e}`,{method:"GET"})}async groupUpdate(e){return this.#p.web.fetchJson("/system/security/group",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async keyStoreCreate(e){return this.#p.web.fetchJson("/system/security/keyStore",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async keyStoreDelete(e){return this.#p.web.fetchJson(`/system/security/keyStore/${e}`,{method:"DELETE"})}async keyStoreOpReadContent(e){return this.#p.web.fetchBlob(`/system/security/keyStoreOpReadContent/${e}`,{method:"POST"})}async keyStoreRead(e){return this.#p.web.fetchJson(`/system/security/keyStore?${e}`,{method:"GET"})}async keyStoreReadById(e){return this.#p.web.fetchJson(`/system/security/keyStore/${e}`,{method:"GET"})}async keyStoreUpdate(e){return this.#p.web.fetchJson("/system/security/keyStore",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async roleAccessPointCreate(e){return this.#p.web.fetchJson("/system/security/roleAccessPoint",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async roleAccessPointDelete(e){return this.#p.web.fetchJson(`/system/security/roleAccessPoint/${e}`,{method:"DELETE"})}async roleAccessPointRead(e){return this.#p.web.fetchJson(`/system/security/roleAccessPoint?${e}`,{method:"GET"})}async roleAccessPointReadById(e){return this.#p.web.fetchJson(`/system/security/roleAccessPoint/${e}`,{method:"GET"})}async roleRead(e){return this.#p.web.fetchJson(`/system/security/role?${e}`,{method:"GET"})}async roleReadById(e){return this.#p.web.fetchJson(`/system/security/role/${e}`,{method:"GET"})}async sessionContext(){return this.#p.web.fetchJson("/system/security/sessionContext",{method:"GET"})}async sessionDelete(e){return this.#p.web.fetchJson(`/system/security/session/${e}`,{method:"DELETE"})}async sessionOpGetCurrent(){return this.#p.web.fetchJson("/system/security/sessionOpGetCurrent",{method:"GET"})}async sessionRead(e){return this.#p.web.fetchJson(`/system/security/session?${e}`,{method:"GET"})}async sessionReadById(e){return this.#p.web.fetchJson(`/system/security/session/${e}`,{method:"GET"})}async tokenOpInvalidate(e){return this.#p.web.fetchJson("/system/security/tokenOpInvalidate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async tokenOpInvalidateCurrent(){return this.#p.web.fetchJson("/system/security/tokenOpInvalidateCurrent",{method:"POST"})}async tokenOpRenew(){return this.#p.web.fetchJson("/system/security/tokenOpRenew",{method:"POST"})}async tokenOpRequest(e){return this.#p.web.fetchJson("/system/security/tokenOpRequest",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async tokenOpRequestPermanent(e){return this.#p.web.fetchJson("/system/security/tokenOpRequestPermanent",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userCreate(e){return this.#p.web.fetchJson("/system/security/user",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userDelete(e){return this.#p.web.fetchJson(`/system/security/user/${e}`,{method:"DELETE"})}async userOpActivate(e){return this.#p.web.fetchJson(`/system/security/userOpActivate/${e}`,{method:"POST"})}async userOpAuthenticate(e){return this.#p.web.fetchJson("/system/security/userOpAuthenticate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpChangeEmail(e){return this.#p.web.fetchJson("/system/security/userOpChangeEmail",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpChangeEmailConfirmation(e){return this.#p.web.fetchJson("/system/security/userOpChangeEmailConfirmation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpChangePassword(e){return this.#p.web.fetchJson("/system/security/userOpChangePassword",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpChangePasswordThird(e,t){return this.#p.web.fetchJson(`/system/security/userOpChangePasswordThird/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async userOpCreate(e){return this.#p.web.fetchJson("/system/security/userOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpCreateConfirmation(e){return this.#p.web.fetchJson("/system/security/userOpCreateConfirmation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpCreateResend(e){return this.#p.web.fetchJson("/system/security/userOpCreateResend",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpGrantOptionAdd(e){return this.#p.web.fetchJson(`/system/security/userOpGrantOptionAdd/${e}`,{method:"POST"})}async userOpGrantOptionRemove(e){return this.#p.web.fetchJson(`/system/security/userOpGrantOptionRemove/${e}`,{method:"POST"})}async userOpInactivate(e){return this.#p.web.fetchJson(`/system/security/userOpInactivate/${e}`,{method:"POST"})}async userOpResetPassword(e){return this.#p.web.fetchJson("/system/security/userOpResetPassword",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpResetPasswordConfirmation(e){return this.#p.web.fetchJson("/system/security/userOpResetPasswordConfirmation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpUnlock(e){return this.#p.web.fetchJson(`/system/security/userOpUnlock/${e}`,{method:"POST"})}async userOpUpdate(e){return this.#p.web.fetchJson("/system/security/userOpUpdate",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userPermissionRead(e){return this.#p.web.fetchJson(`/system/security/userPermission?${e}`,{method:"GET"})}async userRead(e){return this.#p.web.fetchJson(`/system/security/user?${e}`,{method:"GET"})}async userReadById(e){return this.#p.web.fetchJson(`/system/security/user/${e}`,{method:"GET"})}async userUpdate(e){return this.#p.web.fetchJson("/system/security/user",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Session:class{id;status;user;dateTime;expiration;properties},SessionContext:class{session;company},User:class{status;accessProfile;id;type;code;description;tags;properties},UserPermission:class{user;accessPoint;access}});var Hi=Object.freeze({__proto__:null,StorageService:class{#p;constructor(e){this.#p=e}async get(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/?${t.toString()}`,{method:"GET"})}async getNumber(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/number?${t.toString()}`,{method:"GET"})}async getString(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/string?${t.toString()}`,{method:"GET"})}async put(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/?${n.toString()}`,{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async putNumber(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),t&&n.set("value",String(t)),this.#p.web.fetchJson(`/system/storage/number?${n.toString()}`,{method:"PUT"})}async putString(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),t&&n.set("value",String(t)),this.#p.web.fetchJson(`/system/storage/string?${n.toString()}`,{method:"PUT"})}async remove(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/?${t.toString()}`,{method:"DELETE"})}async userGet(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/user?${t.toString()}`,{method:"GET"})}async userGetNumber(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/user/number?${t.toString()}`,{method:"GET"})}async userGetString(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/user/string?${t.toString()}`,{method:"GET"})}async userPut(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/user?${n.toString()}`,{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async userPutNumber(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),t&&n.set("value",String(t)),this.#p.web.fetchJson(`/system/storage/user/number?${n.toString()}`,{method:"PUT"})}async userPutString(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),t&&n.set("value",String(t)),this.#p.web.fetchJson(`/system/storage/user/string?${n.toString()}`,{method:"PUT"})}async userRemove(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/user?${t.toString()}`,{method:"DELETE"})}}});var Ki=Object.freeze({__proto__:null,Workflow:class{id;status;code;description;tags;properties},WorkflowConnector:class{id;workflowNode;type;workflowNodeTarget;accessPoint;tags;properties},WorkflowNode:class{id;workflow;type;code;description;tags;properties},WorkflowService:class{#p;constructor(e){this.#p=e}async workflowConnectorCreate(e){return this.#p.web.fetchJson("/system/workflow/workflowConnector",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workflowConnectorDelete(e){return this.#p.web.fetchJson(`/system/workflow/workflowConnector/${e}`,{method:"DELETE"})}async workflowConnectorRead(e){return this.#p.web.fetchJson(`/system/workflow/workflowConnector?${e}`,{method:"GET"})}async workflowConnectorReadById(e){return this.#p.web.fetchJson(`/system/workflow/workflowConnector/${e}`,{method:"GET"})}async workflowConnectorUpdate(e){return this.#p.web.fetchJson("/system/workflow/workflowConnector",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workflowCreate(e){return this.#p.web.fetchJson("/system/workflow/workflow",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workflowDelete(e){return this.#p.web.fetchJson(`/system/workflow/workflow/${e}`,{method:"DELETE"})}async workflowNodeCreate(e){return this.#p.web.fetchJson("/system/workflow/workflowNode",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workflowNodeDelete(e){return this.#p.web.fetchJson(`/system/workflow/workflowNode/${e}`,{method:"DELETE"})}async workflowNodeRead(e){return this.#p.web.fetchJson(`/system/workflow/workflowNode?${e}`,{method:"GET"})}async workflowNodeReadById(e){return this.#p.web.fetchJson(`/system/workflow/workflowNode/${e}`,{method:"GET"})}async workflowNodeUpdate(e){return this.#p.web.fetchJson("/system/workflow/workflowNode",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workflowOpApprove(e){return this.#p.web.fetchJson(`/system/workflow/workflowOpApprove/${e}`,{method:"POST"})}async workflowOpApproveRevert(e){return this.#p.web.fetchJson(`/system/workflow/workflowOpApproveRevert/${e}`,{method:"POST"})}async workflowOpCreateOrUpdate(e){return this.#p.web.fetchJson("/system/workflow/workflowOpCreateOrUpdate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workflowOpDisable(e){return this.#p.web.fetchJson(`/system/workflow/workflowOpDisable/${e}`,{method:"POST"})}async workflowOpDisableRevert(e){return this.#p.web.fetchJson(`/system/workflow/workflowOpDisableRevert/${e}`,{method:"POST"})}async workflowOpPrepare(e){return this.#p.web.fetchJson(`/system/workflow/workflowOpPrepare/${e}`,{method:"POST"})}async workflowOpPrepareRevert(e){return this.#p.web.fetchJson(`/system/workflow/workflowOpPrepareRevert/${e}`,{method:"POST"})}async workflowRead(e){return this.#p.web.fetchJson(`/system/workflow/workflow?${e}`,{method:"GET"})}async workflowReadById(e){return this.#p.web.fetchJson(`/system/workflow/workflow/${e}`,{method:"GET"})}async workflowUpdate(e){return this.#p.web.fetchJson("/system/workflow/workflow",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workpieceNodeRead(e){return this.#p.web.fetchJson(`/system/workflow/workpieceNode?${e}`,{method:"GET"})}async workpieceNodeReadById(e){return this.#p.web.fetchJson(`/system/workflow/workpieceNode/${e}`,{method:"GET"})}async workpieceOpForward(e,t){const n=new URLSearchParams;return t&&n.set("workflowNodeId",String(t)),this.#p.web.fetchJson(`/system/workflow/workpieceOpForward/${e}?${n.toString()}`,{method:"POST"})}async workpieceOpRevert(e,t){const n=new URLSearchParams;return t&&n.set("workflowNodeId",String(t)),this.#p.web.fetchJson(`/system/workflow/workpieceOpRevert/${e}?${n.toString()}`,{method:"POST"})}async workpieceRead(e){return this.#p.web.fetchJson(`/system/workflow/workpiece?${e}`,{method:"GET"})}async workpieceReadById(e){return this.#p.web.fetchJson(`/system/workflow/workpiece/${e}`,{method:"GET"})}},Workpiece:class{id;source;status;workflow;workflowNode;tags;properties},WorkpieceNode:class{id;workpiece;workflowNode;dateTimeStart;dateTimeEnd;status;user;tags;properties}});var Qi=Object.freeze({__proto__:null,Info:class{dateTime;identity;status;version},Status:class{id;entity;code;description;accessPoint;tags;properties},SystemService:class{#p;constructor(e){this.#p=e}async checkAuth(){return this.#p.web.fetchJson("/system/checkAuth",{method:"GET"})}async customPropertiesOpSet(e){return this.#p.web.fetchJson("/system/customPropertiesOpSet",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async customTagsOpSet(e,t){const n=new URLSearchParams;return e&&n.set("entity",String(e)),t&&n.set("tag",String(t)),this.#p.web.fetchJson(`/system/customTagsOpSet?${n.toString()}`,{method:"POST"})}async databaseOpOptimize(){return this.#p.web.fetchJson("/system/databaseOpOptimize",{method:"POST"})}async infoRead(){return this.#p.web.fetchJson("/system/info",{method:"GET"})}async lockOpAcquire(e,t,n){const i=new URLSearchParams;return e&&i.set("id",String(e)),t&&i.set("waitTime",String(t)),n&&i.set("leaseTime",String(n)),this.#p.web.fetchJson(`/system/lockOpAcquire?${i.toString()}`,{method:"POST"})}async lockOpExtend(e,t,n){const i=new URLSearchParams;return e&&i.set("id",String(e)),t&&i.set("lockToken",String(t)),n&&i.set("leaseTime",String(n)),this.#p.web.fetchJson(`/system/lockOpExtend?${i.toString()}`,{method:"POST"})}async lockOpRelease(e,t){const n=new URLSearchParams;return e&&n.set("id",String(e)),t&&n.set("lockToken",String(t)),this.#p.web.fetchJson(`/system/lockOpRelease?${n.toString()}`,{method:"POST"})}async metricsRead(){return this.#p.web.fetchJson("/system/metrics",{method:"GET"})}async resourcesRead(){return this.#p.web.fetchJson("/system/resources",{method:"GET"})}async statusCreate(e){return this.#p.web.fetchJson("/system/status",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async statusDelete(e){return this.#p.web.fetchJson(`/system/status/${e}`,{method:"DELETE"})}async statusRead(e){return this.#p.web.fetchJson(`/system/status?${e}`,{method:"GET"})}async statusReadById(e){return this.#p.web.fetchJson(`/system/status/${e}`,{method:"GET"})}async statusUpdate(e){return this.#p.web.fetchJson("/system/status",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async testCreate(e){return this.#p.web.fetchJson("/system/test",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async testRead(){return this.#p.web.fetchJson("/system/test",{method:"GET"})}},Test:class{bigDecimalProp;booleanProp;byteArrayProp;integerProp;localDateProp;localDateTimeProp;longProp;stringProp;zonedDateTimeProp},audit:xi,automation:Ai,data:Bi,file:Fi,frontend:Vi,image:Mi,integration:_i,mail:Wi,printing:zi,report:Zi,security:Yi,storage:Hi,workflow:Ki}),Xi=Object.freeze({__proto__:null,auth:fi,catalog:Si,commercial:Ji,financial:ji,fiscal:Ci,logistic:Ni,material:ki,sale:Di,shipping:Li,supply:qi,system:Qi});return e.api=Xi,e.connect=async function(e,t,n,i){if(!e)throw new Error("Missing argument: host");if(!t)throw new Error("Missing argument: user");e.toLowerCase().startsWith("http")||(e=`https://${e}.zenerp.app.br:8443`);const s=await fetch(`${e}/system/security/tokenOpRequest`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t,password:n,properties:i})});if(!s.ok){const e=await s.json(),t=new Error(e.message);throw t.stackTrace=e.stackTrace,t}return mi(e,await s.text())},e.createFromToken=mi,e}({});
|
|
1
|
+
var zenerpclient=function(t){"use strict";var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},n(t,e)};function e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}function o(t,n,e,o){return new(e||(e=Promise))((function(i,r){function c(t){try{u(o.next(t))}catch(t){r(t)}}function s(t){try{u(o.throw(t))}catch(t){r(t)}}function u(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(c,s)}u((o=o.apply(t,n||[])).next())}))}function i(t,n){var e,o,i,r,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(u){return function(s){if(e)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(c=0)),c;)try{if(e=1,o&&(i=2&s[0]?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return c.label++,{value:s[1],done:!1};case 5:c.label++,o=s[1],s=[0];continue;case 7:s=c.ops.pop(),c.trys.pop();continue;default:if(!(i=c.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){c=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){c.label=s[1];break}if(6===s[0]&&c.label<i[1]){c.label=i[1],i=s;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(s);break}i[2]&&c.ops.pop(),c.trys.pop();continue}s=n.call(t,c)}catch(t){s=[6,t],o=0}finally{e=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function r(t,n,e){if(e||2===arguments.length)for(var o,i=0,r=n.length;i<r;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return t.concat(o||Array.prototype.slice.call(n))}function c(t,n,e,o){if("a"===e&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!o:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?o:"a"===e?o.call(t):o?o.value:n.get(t)}function s(t,n,e,o,i){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?i.call(t,e):i?i.value=e:n.set(t,e),e}"function"==typeof SuppressedError&&SuppressedError;class u extends Error{}class a extends u{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class p extends u{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class h extends u{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class f extends u{}class d extends u{constructor(t){super(`Invalid unit ${t}`)}}class l extends u{}class m extends u{constructor(){super("Zone is an abstract class")}}const v="numeric",y="short",g="long",b={year:v,month:v,day:v},w={year:v,month:y,day:v},O={year:v,month:y,day:v,weekday:y},S={year:v,month:g,day:v},J={year:v,month:g,day:v,weekday:g},T={hour:v,minute:v},P={hour:v,minute:v,second:v},E={hour:v,minute:v,second:v,timeZoneName:y},j={hour:v,minute:v,second:v,timeZoneName:g},I={hour:v,minute:v,hourCycle:"h23"},R={hour:v,minute:v,second:v,hourCycle:"h23"},N={hour:v,minute:v,second:v,hourCycle:"h23",timeZoneName:y},k={hour:v,minute:v,second:v,hourCycle:"h23",timeZoneName:g},x={year:v,month:v,day:v,hour:v,minute:v},C={year:v,month:v,day:v,hour:v,minute:v,second:v},L={year:v,month:y,day:v,hour:v,minute:v},_={year:v,month:y,day:v,hour:v,minute:v,second:v},D={year:v,month:y,day:v,weekday:y,hour:v,minute:v},U={year:v,month:g,day:v,hour:v,minute:v,timeZoneName:y},A={year:v,month:g,day:v,hour:v,minute:v,second:v,timeZoneName:y},G={year:v,month:g,day:v,weekday:g,hour:v,minute:v,timeZoneName:g},q={year:v,month:g,day:v,weekday:g,hour:v,minute:v,second:v,timeZoneName:g};class F{get type(){throw new m}get name(){throw new m}get ianaName(){return this.name}get isUniversal(){throw new m}offsetName(t,n){throw new m}formatOffset(t,n){throw new m}offset(t){throw new m}equals(t){throw new m}get isValid(){throw new m}}let M=null;class B extends F{static get instance(){return null===M&&(M=new B),M}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:e}){return en(t,n,e)}formatOffset(t,n){return sn(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let Z={};const V={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let W={};class z extends F{static create(t){return W[t]||(W[t]=new z(t)),W[t]}static resetCache(){W={},Z={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=z.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:e}){return en(t,n,e,this.name)}formatOffset(t,n){return sn(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const e=(o=this.name,Z[o]||(Z[o]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Z[o]);var o;let[i,r,c,s,u,a,p]=e.formatToParts?function(t,n){const e=t.formatToParts(n),o=[];for(let t=0;t<e.length;t++){const{type:n,value:i}=e[t],r=V[n];"era"===n?o[r]=i:_t(r)||(o[r]=parseInt(i,10))}return o}(e,n):function(t,n){const e=t.format(n).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(e),[,i,r,c,s,u,a,p]=o;return[c,i,r,s,u,a,p]}(e,n);"BC"===s&&(i=1-Math.abs(i));let h=+n;const f=h%1e3;return h-=f>=0?f:1e3+f,(Qt({year:i,month:r,day:c,hour:24===u?0:u,minute:a,second:p,millisecond:0})-h)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let $={};let H={};function Y(t,n={}){const e=JSON.stringify([t,n]);let o=H[e];return o||(o=new Intl.DateTimeFormat(t,n),H[e]=o),o}let K={};let Q={};let X=null;let tt={};function nt(t,n,e,o){const i=t.listingMode();return"error"===i?null:"en"===i?e(n):o(n)}class et{constructor(t,n,e){this.padTo=e.padTo||0,this.floor=e.floor||!1;const{padTo:o,floor:i,...r}=e;if(!n||Object.keys(r).length>0){const n={useGrouping:!1,...e};e.padTo>0&&(n.minimumIntegerDigits=e.padTo),this.inf=function(t,n={}){const e=JSON.stringify([t,n]);let o=K[e];return o||(o=new Intl.NumberFormat(t,n),K[e]=o),o}(t,n)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}return Zt(this.floor?Math.floor(t):$t(t,3),this.padTo)}}class ot{constructor(t,n,e){let o;if(this.opts=e,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const n=t.offset/60*-1,e=n>=0?`Etc/GMT+${n}`:`Etc/GMT${n}`;0!==t.offset&&z.create(e).valid?(o=e,this.dt=t):(o="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,o=t.zone.name):(o="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i={...this.opts};i.timeZone=i.timeZone||o,this.dtf=Y(n,i)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:n}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class it{constructor(t,n,e){this.opts={style:"long",...e},!n&&At()&&(this.rtf=function(t,n={}){const{base:e,...o}=n,i=JSON.stringify([t,o]);let r=Q[i];return r||(r=new Intl.RelativeTimeFormat(t,n),Q[i]=r),r}(t,e))}format(t,n){return this.rtf?this.rtf.format(t,n):function(t,n,e="always",o=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===e&&r){const e="days"===t;switch(n){case 1:return e?"tomorrow":`next ${i[t][0]}`;case-1:return e?"yesterday":`last ${i[t][0]}`;case 0:return e?"today":`this ${i[t][0]}`}}const c=Object.is(n,-0)||n<0,s=Math.abs(n),u=1===s,a=i[t],p=o?u?a[1]:a[2]||a[1]:u?i[t][0]:t;return c?`${s} ${p} ago`:`in ${s} ${p}`}(n,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const rt={firstDay:1,minimalDays:4,weekend:[6,7]};class ct{static fromOpts(t){return ct.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,e,o,i=!1){const r=t||bt.defaultLocale,c=r||(i?"en-US":X||(X=(new Intl.DateTimeFormat).resolvedOptions().locale,X)),s=n||bt.defaultNumberingSystem,u=e||bt.defaultOutputCalendar,a=Mt(o)||bt.defaultWeekSettings;return new ct(c,s,u,a,r)}static resetCache(){X=null,H={},K={},Q={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:e,weekSettings:o}={}){return ct.create(t,n,e,o)}constructor(t,n,e,o,i){const[r,c,s]=function(t){const n=t.indexOf("-x-");-1!==n&&(t=t.substring(0,n));const e=t.indexOf("-u-");if(-1===e)return[t];{let n,o;try{n=Y(t).resolvedOptions(),o=t}catch(i){const r=t.substring(0,e);n=Y(r).resolvedOptions(),o=r}const{numberingSystem:i,calendar:r}=n;return[o,i,r]}}(t);this.locale=r,this.numberingSystem=n||c||null,this.outputCalendar=e||s||null,this.weekSettings=o,this.intl=function(t,n,e){return e||n?(t.includes("-u-")||(t+="-u"),e&&(t+=`-ca-${e}`),n&&(t+=`-nu-${n}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&n?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?ct.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,Mt(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return nt(this,t,fn,(()=>{const e=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=function(t){const n=[];for(let e=1;e<=12;e++){const o=go.utc(2009,e,1);n.push(t(o))}return n}((t=>this.extract(t,e,"month")))),this.monthsCache[o][t]}))}weekdays(t,n=!1){return nt(this,t,vn,(()=>{const e=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=function(t){const n=[];for(let e=1;e<=7;e++){const o=go.utc(2016,11,13+e);n.push(t(o))}return n}((t=>this.extract(t,e,"weekday")))),this.weekdaysCache[o][t]}))}meridiems(){return nt(this,void 0,(()=>yn),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[go.utc(2016,11,13,9),go.utc(2016,11,13,19)].map((n=>this.extract(n,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return nt(this,t,On,(()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[go.utc(-40,1,1),go.utc(2017,1,1)].map((t=>this.extract(t,n,"era")))),this.eraCache[t]}))}extract(t,n,e){const o=this.dtFormatter(t,n).formatToParts().find((t=>t.type.toLowerCase()===e));return o?o.value:null}numberFormatter(t={}){return new et(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new ot(t,this.intl,n)}relFormatter(t={}){return new it(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,n={}){const e=JSON.stringify([t,n]);let o=$[e];return o||(o=new Intl.ListFormat(t,n),$[e]=o),o}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Gt()?function(t){let n=tt[t];if(!n){const e=new Intl.Locale(t);n="getWeekInfo"in e?e.getWeekInfo():e.weekInfo,tt[t]=n}return n}(this.locale):rt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let st=null;class ut extends F{static get utcInstance(){return null===st&&(st=new ut(0)),st}static instance(t){return 0===t?ut.utcInstance:new ut(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new ut(on(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${sn(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${sn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return sn(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class at extends F{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function pt(t,n){if(_t(t)||null===t)return n;if(t instanceof F)return t;if("string"==typeof t){const e=t.toLowerCase();return"default"===e?n:"local"===e||"system"===e?B.instance:"utc"===e||"gmt"===e?ut.utcInstance:ut.parseSpecifier(e)||z.create(t)}return Dt(t)?ut.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new at(t)}let ht,ft=()=>Date.now(),dt="system",lt=null,mt=null,vt=null,yt=60,gt=null;class bt{static get now(){return ft}static set now(t){ft=t}static set defaultZone(t){dt=t}static get defaultZone(){return pt(dt,B.instance)}static get defaultLocale(){return lt}static set defaultLocale(t){lt=t}static get defaultNumberingSystem(){return mt}static set defaultNumberingSystem(t){mt=t}static get defaultOutputCalendar(){return vt}static set defaultOutputCalendar(t){vt=t}static get defaultWeekSettings(){return gt}static set defaultWeekSettings(t){gt=Mt(t)}static get twoDigitCutoffYear(){return yt}static set twoDigitCutoffYear(t){yt=t%100}static get throwOnInvalid(){return ht}static set throwOnInvalid(t){ht=t}static resetCaches(){ct.resetCache(),z.resetCache()}}class wt{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Ot=[0,31,59,90,120,151,181,212,243,273,304,334],St=[0,31,60,91,121,152,182,213,244,274,305,335];function Jt(t,n){return new wt("unit out of range",`you specified ${n} (of type ${typeof n}) as a ${t}, which is invalid`)}function Tt(t,n,e){const o=new Date(Date.UTC(t,n-1,e));t<100&&t>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const i=o.getUTCDay();return 0===i?7:i}function Pt(t,n,e){return e+(Ht(t)?St:Ot)[n-1]}function Et(t,n){const e=Ht(t)?St:Ot,o=e.findIndex((t=>t<n));return{month:o+1,day:n-e[o]}}function jt(t,n){return(t-n+7)%7+1}function It(t,n=4,e=1){const{year:o,month:i,day:r}=t,c=Pt(o,i,r),s=jt(Tt(o,i,r),e);let u,a=Math.floor((c-s+14-n)/7);return a<1?(u=o-1,a=tn(u,n,e)):a>tn(o,n,e)?(u=o+1,a=1):u=o,{weekYear:u,weekNumber:a,weekday:s,...un(t)}}function Rt(t,n=4,e=1){const{weekYear:o,weekNumber:i,weekday:r}=t,c=jt(Tt(o,1,n),e),s=Yt(o);let u,a=7*i+r-c-7+n;a<1?(u=o-1,a+=Yt(u)):a>s?(u=o+1,a-=Yt(o)):u=o;const{month:p,day:h}=Et(u,a);return{year:u,month:p,day:h,...un(t)}}function Nt(t){const{year:n,month:e,day:o}=t;return{year:n,ordinal:Pt(n,e,o),...un(t)}}function kt(t){const{year:n,ordinal:e}=t,{month:o,day:i}=Et(n,e);return{year:n,month:o,day:i,...un(t)}}function xt(t,n){if(!_t(t.localWeekday)||!_t(t.localWeekNumber)||!_t(t.localWeekYear)){if(!_t(t.weekday)||!_t(t.weekNumber)||!_t(t.weekYear))throw new f("Cannot mix locale-based week fields with ISO-based week fields");return _t(t.localWeekday)||(t.weekday=t.localWeekday),_t(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),_t(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:n.getMinDaysInFirstWeek(),startOfWeek:n.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Ct(t){const n=Ut(t.year),e=Bt(t.month,1,12),o=Bt(t.day,1,Kt(t.year,t.month));return n?e?!o&&Jt("day",t.day):Jt("month",t.month):Jt("year",t.year)}function Lt(t){const{hour:n,minute:e,second:o,millisecond:i}=t,r=Bt(n,0,23)||24===n&&0===e&&0===o&&0===i,c=Bt(e,0,59),s=Bt(o,0,59),u=Bt(i,0,999);return r?c?s?!u&&Jt("millisecond",i):Jt("second",o):Jt("minute",e):Jt("hour",n)}function _t(t){return void 0===t}function Dt(t){return"number"==typeof t}function Ut(t){return"number"==typeof t&&t%1==0}function At(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function Gt(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function qt(t,n,e){if(0!==t.length)return t.reduce(((t,o)=>{const i=[n(o),o];return t&&e(t[0],i[0])===t[0]?t:i}),null)[1]}function Ft(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function Mt(t){if(null==t)return null;if("object"!=typeof t)throw new l("Week settings must be an object");if(!Bt(t.firstDay,1,7)||!Bt(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!Bt(t,1,7))))throw new l("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Bt(t,n,e){return Ut(t)&&t>=n&&t<=e}function Zt(t,n=2){let e;return e=t<0?"-"+(""+-t).padStart(n,"0"):(""+t).padStart(n,"0"),e}function Vt(t){return _t(t)||null===t||""===t?void 0:parseInt(t,10)}function Wt(t){return _t(t)||null===t||""===t?void 0:parseFloat(t)}function zt(t){if(!_t(t)&&null!==t&&""!==t){const n=1e3*parseFloat("0."+t);return Math.floor(n)}}function $t(t,n,e=!1){const o=10**n;return(e?Math.trunc:Math.round)(t*o)/o}function Ht(t){return t%4==0&&(t%100!=0||t%400==0)}function Yt(t){return Ht(t)?366:365}function Kt(t,n){const e=function(t,n){return t-n*Math.floor(t/n)}(n-1,12)+1;return 2===e?Ht(t+(n-e)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][e-1]}function Qt(t){let n=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(n=new Date(n),n.setUTCFullYear(t.year,t.month-1,t.day)),+n}function Xt(t,n,e){return-jt(Tt(t,1,n),e)+n-1}function tn(t,n=4,e=1){const o=Xt(t,n,e),i=Xt(t+1,n,e);return(Yt(t)-o+i)/7}function nn(t){return t>99?t:t>bt.twoDigitCutoffYear?1900+t:2e3+t}function en(t,n,e,o=null){const i=new Date(t),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(r.timeZone=o);const c={timeZoneName:n,...r},s=new Intl.DateTimeFormat(e,c).formatToParts(i).find((t=>"timezonename"===t.type.toLowerCase()));return s?s.value:null}function on(t,n){let e=parseInt(t,10);Number.isNaN(e)&&(e=0);const o=parseInt(n,10)||0;return 60*e+(e<0||Object.is(e,-0)?-o:o)}function rn(t){const n=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(n))throw new l(`Invalid unit value ${t}`);return n}function cn(t,n){const e={};for(const o in t)if(Ft(t,o)){const i=t[o];if(null==i)continue;e[n(o)]=rn(i)}return e}function sn(t,n){const e=Math.trunc(Math.abs(t/60)),o=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(n){case"short":return`${i}${Zt(e,2)}:${Zt(o,2)}`;case"narrow":return`${i}${e}${o>0?`:${o}`:""}`;case"techie":return`${i}${Zt(e,2)}${Zt(o,2)}`;default:throw new RangeError(`Value format ${n} is out of range for property format`)}}function un(t){return function(t,n){return n.reduce(((n,e)=>(n[e]=t[e],n)),{})}(t,["hour","minute","second","millisecond"])}const an=["January","February","March","April","May","June","July","August","September","October","November","December"],pn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],hn=["J","F","M","A","M","J","J","A","S","O","N","D"];function fn(t){switch(t){case"narrow":return[...hn];case"short":return[...pn];case"long":return[...an];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const dn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ln=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],mn=["M","T","W","T","F","S","S"];function vn(t){switch(t){case"narrow":return[...mn];case"short":return[...ln];case"long":return[...dn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const yn=["AM","PM"],gn=["Before Christ","Anno Domini"],bn=["BC","AD"],wn=["B","A"];function On(t){switch(t){case"narrow":return[...wn];case"short":return[...bn];case"long":return[...gn];default:return null}}function Sn(t,n){let e="";for(const o of t)o.literal?e+=o.val:e+=n(o.val);return e}const Jn={D:b,DD:w,DDD:S,DDDD:J,t:T,tt:P,ttt:E,tttt:j,T:I,TT:R,TTT:N,TTTT:k,f:x,ff:L,fff:U,ffff:G,F:C,FF:_,FFF:A,FFFF:q};class Tn{static create(t,n={}){return new Tn(t,n)}static parseFormat(t){let n=null,e="",o=!1;const i=[];for(let r=0;r<t.length;r++){const c=t.charAt(r);"'"===c?(e.length>0&&i.push({literal:o||/^\s+$/.test(e),val:e}),n=null,e="",o=!o):o||c===n?e+=c:(e.length>0&&i.push({literal:/^\s+$/.test(e),val:e}),e=c,n=c)}return e.length>0&&i.push({literal:o||/^\s+$/.test(e),val:e}),i}static macroTokenToFormatOpts(t){return Jn[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return Zt(t,n);const e={...this.opts};return n>0&&(e.padTo=n),this.loc.numberFormatter(e).format(t)}formatDateTimeFromString(t,n){const e="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(n,e)=>this.loc.extract(t,n,e),r=n=>t.isOffsetFixed&&0===t.offset&&n.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,n.format):"",c=()=>e?function(t){return yn[t.hour<12?0:1]}(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(n,o)=>e?function(t,n){return fn(n)[t.month-1]}(t,n):i(o?{month:n}:{month:n,day:"numeric"},"month"),u=(n,o)=>e?function(t,n){return vn(n)[t.weekday-1]}(t,n):i(o?{weekday:n}:{weekday:n,month:"long",day:"numeric"},"weekday"),a=n=>{const e=Tn.macroTokenToFormatOpts(n);return e?this.formatWithSystemDefault(t,e):n},p=n=>e?function(t,n){return On(n)[t.year<0?0:1]}(t,n):i({era:n},"era");return Sn(Tn.parseFormat(n),(n=>{switch(n){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return o?i({day:"numeric"},"day"):this.num(t.day);case"dd":return o?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return o?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return o?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return o?i({month:"numeric"},"month"):this.num(t.month);case"MM":return o?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return o?i({year:"numeric"},"year"):this.num(t.year);case"yy":return o?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return o?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return o?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return p("short");case"GG":return p("long");case"GGGGG":return p("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return a(n)}}))}formatDurationFromString(t,n){const e=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=Tn.parseFormat(n),i=o.reduce(((t,{literal:n,val:e})=>n?t:t.concat(e)),[]);return Sn(o,(t=>n=>{const o=e(n);return o?this.num(t.get(o),n.length):n})(t.shiftTo(...i.map(e).filter((t=>t)))))}}const Pn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function En(...t){const n=t.reduce(((t,n)=>t+n.source),"");return RegExp(`^${n}$`)}function jn(...t){return n=>t.reduce((([t,e,o],i)=>{const[r,c,s]=i(n,o);return[{...t,...r},c||e,s]}),[{},null,1]).slice(0,2)}function In(t,...n){if(null==t)return[null,null];for(const[e,o]of n){const n=e.exec(t);if(n)return o(n)}return[null,null]}function Rn(...t){return(n,e)=>{const o={};let i;for(i=0;i<t.length;i++)o[t[i]]=Vt(n[e+i]);return[o,null,e+i]}}const Nn=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,kn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,xn=RegExp(`${kn.source}${`(?:${Nn.source}?(?:\\[(${Pn.source})\\])?)?`}`),Cn=RegExp(`(?:T${xn.source})?`),Ln=Rn("weekYear","weekNumber","weekDay"),_n=Rn("year","ordinal"),Dn=RegExp(`${kn.source} ?(?:${Nn.source}|(${Pn.source}))?`),Un=RegExp(`(?: ${Dn.source})?`);function An(t,n,e){const o=t[n];return _t(o)?e:Vt(o)}function Gn(t,n){return[{hours:An(t,n,0),minutes:An(t,n+1,0),seconds:An(t,n+2,0),milliseconds:zt(t[n+3])},null,n+4]}function qn(t,n){const e=!t[n]&&!t[n+1],o=on(t[n+1],t[n+2]);return[{},e?null:ut.instance(o),n+3]}function Fn(t,n){return[{},t[n]?z.create(t[n]):null,n+1]}const Mn=RegExp(`^T?${kn.source}$`),Bn=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Zn(t){const[n,e,o,i,r,c,s,u,a]=t,p="-"===n[0],h=u&&"-"===u[0],f=(t,n=!1)=>void 0!==t&&(n||t&&p)?-t:t;return[{years:f(Wt(e)),months:f(Wt(o)),weeks:f(Wt(i)),days:f(Wt(r)),hours:f(Wt(c)),minutes:f(Wt(s)),seconds:f(Wt(u),"-0"===u),milliseconds:f(zt(a),h)}]}const Vn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Wn(t,n,e,o,i,r,c){const s={year:2===n.length?nn(Vt(n)):Vt(n),month:pn.indexOf(e)+1,day:Vt(o),hour:Vt(i),minute:Vt(r)};return c&&(s.second=Vt(c)),t&&(s.weekday=t.length>3?dn.indexOf(t)+1:ln.indexOf(t)+1),s}const zn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function $n(t){const[,n,e,o,i,r,c,s,u,a,p,h]=t,f=Wn(n,i,o,e,r,c,s);let d;return d=u?Vn[u]:a?0:on(p,h),[f,new ut(d)]}const Hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Yn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Kn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Qn(t){const[,n,e,o,i,r,c,s]=t;return[Wn(n,i,o,e,r,c,s),ut.utcInstance]}function Xn(t){const[,n,e,o,i,r,c,s]=t;return[Wn(n,s,e,o,i,r,c),ut.utcInstance]}const te=En(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Cn),ne=En(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Cn),ee=En(/(\d{4})-?(\d{3})/,Cn),oe=En(xn),ie=jn((function(t,n){return[{year:An(t,n),month:An(t,n+1,1),day:An(t,n+2,1)},null,n+3]}),Gn,qn,Fn),re=jn(Ln,Gn,qn,Fn),ce=jn(_n,Gn,qn,Fn),se=jn(Gn,qn,Fn);const ue=jn(Gn);const ae=En(/(\d{4})-(\d\d)-(\d\d)/,Un),pe=En(Dn),he=jn(Gn,qn,Fn);const fe="Invalid Duration",de={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},le={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...de},me=365.2425,ve=30.436875,ye={years:{quarters:4,months:12,weeks:52.1775,days:me,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:ve,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...de},ge=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],be=ge.slice(0).reverse();function we(t,n,e=!1){const o={values:e?n.values:{...t.values,...n.values||{}},loc:t.loc.clone(n.loc),conversionAccuracy:n.conversionAccuracy||t.conversionAccuracy,matrix:n.matrix||t.matrix};return new Je(o)}function Oe(t,n){let e=n.milliseconds??0;for(const o of be.slice(1))n[o]&&(e+=n[o]*t[o].milliseconds);return e}function Se(t,n){const e=Oe(t,n)<0?-1:1;ge.reduceRight(((o,i)=>{if(_t(n[i]))return o;if(o){const r=n[o]*e,c=t[i][o],s=Math.floor(r/c);n[i]+=s*e,n[o]-=s*c*e}return i}),null),ge.reduce(((e,o)=>{if(_t(n[o]))return e;if(e){const i=n[e]%1;n[e]-=i,n[o]+=i*t[e][o]}return o}),null)}class Je{constructor(t){const n="longterm"===t.conversionAccuracy||!1;let e=n?ye:le;t.matrix&&(e=t.matrix),this.values=t.values,this.loc=t.loc||ct.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e,this.isLuxonDuration=!0}static fromMillis(t,n){return Je.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(null==t||"object"!=typeof t)throw new l("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new Je({values:cn(t,Je.normalizeUnit),loc:ct.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Dt(t))return Je.fromMillis(t);if(Je.isDuration(t))return t;if("object"==typeof t)return Je.fromObject(t);throw new l(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[e]=function(t){return In(t,[Bn,Zn])}(t);return e?Je.fromObject(e,n):Je.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[e]=function(t){return In(t,[Mn,ue])}(t);return e?Je.fromObject(e,n):Je.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new l("need to specify a reason the Duration is invalid");const e=t instanceof wt?t:new wt(t,n);if(bt.throwOnInvalid)throw new h(e);return new Je({invalid:e})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!n)throw new d(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const e={...n,floor:!1!==n.round&&!1!==n.floor};return this.isValid?Tn.create(this.loc,e).formatDurationFromString(this,t):fe}toHuman(t={}){if(!this.isValid)return fe;const n=ge.map((n=>{const e=this.values[n];return _t(e)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(e)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=$t(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1};return go.fromMillis(n,{zone:"UTC"}).toISOTime(t)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Oe(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Je.fromDurationLike(t),e={};for(const t of ge)(Ft(n.values,t)||Ft(this.values,t))&&(e[t]=n.get(t)+this.get(t));return we(this,{values:e},!0)}minus(t){if(!this.isValid)return this;const n=Je.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const e of Object.keys(this.values))n[e]=rn(t(this.values[e],e));return we(this,{values:n},!0)}get(t){return this[Je.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return we(this,{values:{...this.values,...cn(t,Je.normalizeUnit)}})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:e,matrix:o}={}){return we(this,{loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:o,conversionAccuracy:e})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Se(this.matrix,t),we(this,{values:t},!0)}rescale(){if(!this.isValid)return this;return we(this,{values:function(t){const n={};for(const[e,o]of Object.entries(t))0!==o&&(n[e]=o);return n}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>Je.normalizeUnit(t)));const n={},e={},o=this.toObject();let i;for(const r of ge)if(t.indexOf(r)>=0){i=r;let t=0;for(const n in e)t+=this.matrix[n][r]*e[n],e[n]=0;Dt(o[r])&&(t+=o[r]);const c=Math.trunc(t);n[r]=c,e[r]=(1e3*t-1e3*c)/1e3}else Dt(o[r])&&(e[r]=o[r]);for(const t in e)0!==e[t]&&(n[i]+=t===i?e[t]:e[t]/this.matrix[i][t]);return Se(this.matrix,n),we(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=0===this.values[n]?0:-this.values[n];return we(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const o of ge)if(n=this.values[o],e=t.values[o],!(void 0===n||0===n?void 0===e||0===e:n===e))return!1;var n,e;return!0}}const Te="Invalid Interval";class Pe{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new l("need to specify a reason the Interval is invalid");const e=t instanceof wt?t:new wt(t,n);if(bt.throwOnInvalid)throw new p(e);return new Pe({invalid:e})}static fromDateTimes(t,n){const e=bo(t),o=bo(n),i=function(t,n){return t&&t.isValid?n&&n.isValid?n<t?Pe.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${n.toISO()}`):null:Pe.invalid("missing or invalid end"):Pe.invalid("missing or invalid start")}(e,o);return null==i?new Pe({start:e,end:o}):i}static after(t,n){const e=Je.fromDurationLike(n),o=bo(t);return Pe.fromDateTimes(o,o.plus(e))}static before(t,n){const e=Je.fromDurationLike(n),o=bo(t);return Pe.fromDateTimes(o.minus(e),o)}static fromISO(t,n){const[e,o]=(t||"").split("/",2);if(e&&o){let t,i,r,c;try{t=go.fromISO(e,n),i=t.isValid}catch(o){i=!1}try{r=go.fromISO(o,n),c=r.isValid}catch(o){c=!1}if(i&&c)return Pe.fromDateTimes(t,r);if(i){const e=Je.fromISO(o,n);if(e.isValid)return Pe.after(t,e)}else if(c){const t=Je.fromISO(e,n);if(t.isValid)return Pe.before(r,t)}}return Pe.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const e=this.start.startOf(t,n);let o;return o=n?.useLocaleWeeks?this.end.reconfigure({locale:e.locale}):this.end,o=o.startOf(t,n),Math.floor(o.diff(e,t).get(t))+(o.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&(this.s<=t&&this.e>t)}set({start:t,end:n}={}){return this.isValid?Pe.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(bo).filter((t=>this.contains(t))).sort(((t,n)=>t.toMillis()-n.toMillis())),e=[];let{s:o}=this,i=0;for(;o<this.e;){const t=n[i]||this.e,r=+t>+this.e?this.e:t;e.push(Pe.fromDateTimes(o,r)),o=r,i+=1}return e}splitBy(t){const n=Je.fromDurationLike(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];let e,{s:o}=this,i=1;const r=[];for(;o<this.e;){const t=this.start.plus(n.mapUnits((t=>t*i)));e=+t>+this.e?this.e:t,r.push(Pe.fromDateTimes(o,e)),o=e,i+=1}return r}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&(this.s<=t.s&&this.e>=t.e)}equals(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,e=this.e<t.e?this.e:t.e;return n>=e?null:Pe.fromDateTimes(n,e)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,e=this.e>t.e?this.e:t.e;return Pe.fromDateTimes(n,e)}static merge(t){const[n,e]=t.sort(((t,n)=>t.s-n.s)).reduce((([t,n],e)=>n?n.overlaps(e)||n.abutsStart(e)?[t,n.union(e)]:[t.concat([n]),e]:[t,e]),[[],null]);return e&&n.push(e),n}static xor(t){let n=null,e=0;const o=[],i=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),r=Array.prototype.concat(...i).sort(((t,n)=>t.time-n.time));for(const t of r)e+="s"===t.type?1:-1,1===e?n=t.time:(n&&+n!=+t.time&&o.push(Pe.fromDateTimes(n,t.time)),n=null);return Pe.merge(o)}difference(...t){return Pe.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Te}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=b,n={}){return this.isValid?Tn.create(this.s.loc.clone(n),t).formatInterval(this):Te}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Te}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Te}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Te}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Te}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Je.invalid(this.invalidReason)}mapEndpoints(t){return Pe.fromDateTimes(t(this.s),t(this.e))}}let Ee=class{static hasDST(t=bt.defaultZone){const n=go.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return z.isValidZone(t)}static normalizeZone(t){return pt(t,bt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||ct.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||ct.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||ct.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:e=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||ct.create(n,e,i)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:e=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||ct.create(n,e,i)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:e=null,locObj:o=null}={}){return(o||ct.create(n,e,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:e=null,locObj:o=null}={}){return(o||ct.create(n,e,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return ct.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return ct.create(n,null,"gregory").eras(t)}static features(){return{relative:At(),localeWeek:Gt()}}};function je(t,n){const e=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=e(n)-e(t);return Math.floor(Je.fromMillis(o).as("days"))}function Ie(t,n,e,o){let[i,r,c,s]=function(t,n,e){const o=[["years",(t,n)=>n.year-t.year],["quarters",(t,n)=>n.quarter-t.quarter+4*(n.year-t.year)],["months",(t,n)=>n.month-t.month+12*(n.year-t.year)],["weeks",(t,n)=>{const e=je(t,n);return(e-e%7)/7}],["days",je]],i={},r=t;let c,s;for(const[u,a]of o)e.indexOf(u)>=0&&(c=u,i[u]=a(t,n),s=r.plus(i),s>n?(i[u]--,(t=r.plus(i))>n&&(s=t,i[u]--,t=r.plus(i))):t=s);return[t,i,s,c]}(t,n,e);const u=n-i,a=e.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===a.length&&(c<n&&(c=i.plus({[s]:1})),c!==i&&(r[s]=(r[s]||0)+u/(c-i)));const p=Je.fromObject(r,o);return a.length>0?Je.fromMillis(u,o).shiftTo(...a).plus(p):p}const Re={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Ne={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ke=Re.hanidec.replace(/[\[|\]]/g,"").split("");function xe({numberingSystem:t},n=""){return new RegExp(`${Re[t||"latn"]}${n}`)}const Ce="missing Intl.DateTimeFormat.formatToParts support";function Le(t,n=(t=>t)){return{regex:t,deser:([t])=>n(function(t){let n=parseInt(t,10);if(isNaN(n)){n="";for(let e=0;e<t.length;e++){const o=t.charCodeAt(e);if(-1!==t[e].search(Re.hanidec))n+=ke.indexOf(t[e]);else for(const t in Ne){const[e,i]=Ne[t];o>=e&&o<=i&&(n+=o-e)}}return parseInt(n,10)}return n}(t))}}const _e=`[ ${String.fromCharCode(160)}]`,De=new RegExp(_e,"g");function Ue(t){return t.replace(/\./g,"\\.?").replace(De,_e)}function Ae(t){return t.replace(/\./g,"").replace(De," ").toLowerCase()}function Ge(t,n){return null===t?null:{regex:RegExp(t.map(Ue).join("|")),deser:([e])=>t.findIndex((t=>Ae(e)===Ae(t)))+n}}function qe(t,n){return{regex:t,deser:([,t,n])=>on(t,n),groups:n}}function Fe(t){return{regex:t,deser:([t])=>t}}const Me={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Be=null;function Ze(t,n){return Array.prototype.concat(...t.map((t=>function(t,n){if(t.literal)return t;const e=We(Tn.macroTokenToFormatOpts(t.val),n);return null==e||e.includes(void 0)?t:e}(t,n))))}function Ve(t,n,e){const o=Ze(Tn.parseFormat(e),t),i=o.map((n=>function(t,n){const e=xe(n),o=xe(n,"{2}"),i=xe(n,"{3}"),r=xe(n,"{4}"),c=xe(n,"{6}"),s=xe(n,"{1,2}"),u=xe(n,"{1,3}"),a=xe(n,"{1,6}"),p=xe(n,"{1,9}"),h=xe(n,"{2,4}"),f=xe(n,"{4,6}"),d=t=>{return{regex:RegExp((n=t.val,n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var n},l=(l=>{if(t.literal)return d(l);switch(l.val){case"G":return Ge(n.eras("short"),0);case"GG":return Ge(n.eras("long"),0);case"y":return Le(a);case"yy":case"kk":return Le(h,nn);case"yyyy":case"kkkk":return Le(r);case"yyyyy":return Le(f);case"yyyyyy":return Le(c);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Le(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Le(o);case"MMM":return Ge(n.months("short",!0),1);case"MMMM":return Ge(n.months("long",!0),1);case"LLL":return Ge(n.months("short",!1),1);case"LLLL":return Ge(n.months("long",!1),1);case"o":case"S":return Le(u);case"ooo":case"SSS":return Le(i);case"u":return Fe(p);case"uu":return Fe(s);case"uuu":case"E":case"c":return Le(e);case"a":return Ge(n.meridiems(),0);case"EEE":return Ge(n.weekdays("short",!1),1);case"EEEE":return Ge(n.weekdays("long",!1),1);case"ccc":return Ge(n.weekdays("short",!0),1);case"cccc":return Ge(n.weekdays("long",!0),1);case"Z":case"ZZ":return qe(new RegExp(`([+-]${s.source})(?::(${o.source}))?`),2);case"ZZZ":return qe(new RegExp(`([+-]${s.source})(${o.source})?`),2);case"z":return Fe(/[a-z_+-/]{1,256}?/i);case" ":return Fe(/[^\S\n\r]/);default:return d(l)}})(t)||{invalidReason:Ce};return l.token=t,l}(n,t))),r=i.find((t=>t.invalidReason));if(r)return{input:n,tokens:o,invalidReason:r.invalidReason};{const[t,e]=function(t){return[`^${t.map((t=>t.regex)).reduce(((t,n)=>`${t}(${n.source})`),"")}$`,t]}(i),r=RegExp(t,"i"),[c,s]=function(t,n,e){const o=t.match(n);if(o){const t={};let n=1;for(const i in e)if(Ft(e,i)){const r=e[i],c=r.groups?r.groups+1:1;!r.literal&&r.token&&(t[r.token.val[0]]=r.deser(o.slice(n,n+c))),n+=c}return[o,t]}return[o,{}]}(n,r,e),[u,a,p]=s?function(t){let n,e=null;return _t(t.z)||(e=z.create(t.z)),_t(t.Z)||(e||(e=new ut(t.Z)),n=t.Z),_t(t.q)||(t.M=3*(t.q-1)+1),_t(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),_t(t.u)||(t.S=zt(t.u)),[Object.keys(t).reduce(((n,e)=>{const o=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(e);return o&&(n[o]=t[e]),n}),{}),e,n]}(s):[null,null,void 0];if(Ft(s,"a")&&Ft(s,"H"))throw new f("Can't include meridiem when specifying 24-hour format");return{input:n,tokens:o,regex:r,rawMatches:c,matches:s,result:u,zone:a,specificOffset:p}}}function We(t,n){if(!t)return null;const e=Tn.create(n,t).dtFormatter((Be||(Be=go.fromMillis(1555555555555)),Be)),o=e.formatToParts(),i=e.resolvedOptions();return o.map((n=>function(t,n,e){const{type:o,value:i}=t;if("literal"===o){const t=/^\s+$/.test(i);return{literal:!t,val:t?" ":i}}const r=n[o];let c=o;"hour"===o&&(c=null!=n.hour12?n.hour12?"hour12":"hour24":null!=n.hourCycle?"h11"===n.hourCycle||"h12"===n.hourCycle?"hour12":"hour24":e.hour12?"hour12":"hour24");let s=Me[c];if("object"==typeof s&&(s=s[r]),s)return{literal:!1,val:s}}(n,t,i)))}const ze="Invalid DateTime",$e=864e13;function He(t){return new wt("unsupported zone",`the zone "${t.name}" is not supported`)}function Ye(t){return null===t.weekData&&(t.weekData=It(t.c)),t.weekData}function Ke(t){return null===t.localWeekData&&(t.localWeekData=It(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Qe(t,n){const e={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new go({...e,...n,old:e})}function Xe(t,n,e){let o=t-60*n*1e3;const i=e.offset(o);if(n===i)return[o,n];o-=60*(i-n)*1e3;const r=e.offset(o);return i===r?[o,i]:[t-60*Math.min(i,r)*1e3,Math.max(i,r)]}function to(t,n){const e=new Date(t+=60*n*1e3);return{year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate(),hour:e.getUTCHours(),minute:e.getUTCMinutes(),second:e.getUTCSeconds(),millisecond:e.getUTCMilliseconds()}}function no(t,n,e){return Xe(Qt(t),n,e)}function eo(t,n){const e=t.o,o=t.c.year+Math.trunc(n.years),i=t.c.month+Math.trunc(n.months)+3*Math.trunc(n.quarters),r={...t.c,year:o,month:i,day:Math.min(t.c.day,Kt(o,i))+Math.trunc(n.days)+7*Math.trunc(n.weeks)},c=Je.fromObject({years:n.years-Math.trunc(n.years),quarters:n.quarters-Math.trunc(n.quarters),months:n.months-Math.trunc(n.months),weeks:n.weeks-Math.trunc(n.weeks),days:n.days-Math.trunc(n.days),hours:n.hours,minutes:n.minutes,seconds:n.seconds,milliseconds:n.milliseconds}).as("milliseconds"),s=Qt(r);let[u,a]=Xe(s,e,t.zone);return 0!==c&&(u+=c,a=t.zone.offset(u)),{ts:u,o:a}}function oo(t,n,e,o,i,r){const{setZone:c,zone:s}=e;if(t&&0!==Object.keys(t).length||n){const o=n||s,i=go.fromObject(t,{...e,zone:o,specificOffset:r});return c?i:i.setZone(s)}return go.invalid(new wt("unparsable",`the input "${i}" can't be parsed as ${o}`))}function io(t,n,e=!0){return t.isValid?Tn.create(ct.create("en-US"),{allowZ:e,forceSimple:!0}).formatDateTimeFromString(t,n):null}function ro(t,n){const e=t.c.year>9999||t.c.year<0;let o="";return e&&t.c.year>=0&&(o+="+"),o+=Zt(t.c.year,e?6:4),n?(o+="-",o+=Zt(t.c.month),o+="-",o+=Zt(t.c.day)):(o+=Zt(t.c.month),o+=Zt(t.c.day)),o}function co(t,n,e,o,i,r){let c=Zt(t.c.hour);return n?(c+=":",c+=Zt(t.c.minute),0===t.c.millisecond&&0===t.c.second&&e||(c+=":")):c+=Zt(t.c.minute),0===t.c.millisecond&&0===t.c.second&&e||(c+=Zt(t.c.second),0===t.c.millisecond&&o||(c+=".",c+=Zt(t.c.millisecond,3))),i&&(t.isOffsetFixed&&0===t.offset&&!r?c+="Z":t.o<0?(c+="-",c+=Zt(Math.trunc(-t.o/60)),c+=":",c+=Zt(Math.trunc(-t.o%60))):(c+="+",c+=Zt(Math.trunc(t.o/60)),c+=":",c+=Zt(Math.trunc(t.o%60)))),r&&(c+="["+t.zone.ianaName+"]"),c}const so={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},uo={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ao={ordinal:1,hour:0,minute:0,second:0,millisecond:0},po=["year","month","day","hour","minute","second","millisecond"],ho=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],fo=["year","ordinal","hour","minute","second","millisecond"];function lo(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(t){const n={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!n)throw new d(t);return n}(t)}}function mo(t,n){const e=pt(n.zone,bt.defaultZone),o=ct.fromObject(n),i=bt.now();let r,c;if(_t(t.year))r=i;else{for(const n of po)_t(t[n])&&(t[n]=so[n]);const n=Ct(t)||Lt(t);if(n)return go.invalid(n);const o=e.offset(i);[r,c]=no(t,o,e)}return new go({ts:r,zone:e,loc:o,o:c})}function vo(t,n,e){const o=!!_t(e.round)||e.round,i=(t,i)=>{t=$t(t,o||e.calendary?0:2,!0);return n.loc.clone(e).relFormatter(e).format(t,i)},r=o=>e.calendary?n.hasSame(t,o)?0:n.startOf(o).diff(t.startOf(o),o).get(o):n.diff(t,o).get(o);if(e.unit)return i(r(e.unit),e.unit);for(const t of e.units){const n=r(t);if(Math.abs(n)>=1)return i(n,t)}return i(t>n?-0:0,e.units[e.units.length-1])}function yo(t){let n,e={};return t.length>0&&"object"==typeof t[t.length-1]?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class go{constructor(t){const n=t.zone||bt.defaultZone;let e=t.invalid||(Number.isNaN(t.ts)?new wt("invalid input"):null)||(n.isValid?null:He(n));this.ts=_t(t.ts)?bt.now():t.ts;let o=null,i=null;if(!e){if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[o,i]=[t.old.c,t.old.o];else{const t=n.offset(this.ts);o=to(this.ts,t),e=Number.isNaN(o.year)?new wt("invalid input"):null,o=e?null:o,i=e?null:t}}this._zone=n,this.loc=t.loc||ct.create(),this.invalid=e,this.weekData=null,this.localWeekData=null,this.c=o,this.o=i,this.isLuxonDateTime=!0}static now(){return new go({})}static local(){const[t,n]=yo(arguments),[e,o,i,r,c,s,u]=n;return mo({year:e,month:o,day:i,hour:r,minute:c,second:s,millisecond:u},t)}static utc(){const[t,n]=yo(arguments),[e,o,i,r,c,s,u]=n;return t.zone=ut.utcInstance,mo({year:e,month:o,day:i,hour:r,minute:c,second:s,millisecond:u},t)}static fromJSDate(t,n={}){const e=(o=t,"[object Date]"===Object.prototype.toString.call(o)?t.valueOf():NaN);var o;if(Number.isNaN(e))return go.invalid("invalid input");const i=pt(n.zone,bt.defaultZone);return i.isValid?new go({ts:e,zone:i,loc:ct.fromObject(n)}):go.invalid(He(i))}static fromMillis(t,n={}){if(Dt(t))return t<-$e||t>$e?go.invalid("Timestamp out of range"):new go({ts:t,zone:pt(n.zone,bt.defaultZone),loc:ct.fromObject(n)});throw new l(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Dt(t))return new go({ts:1e3*t,zone:pt(n.zone,bt.defaultZone),loc:ct.fromObject(n)});throw new l("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const e=pt(n.zone,bt.defaultZone);if(!e.isValid)return go.invalid(He(e));const o=ct.fromObject(n),i=cn(t,lo),{minDaysInFirstWeek:r,startOfWeek:c}=xt(i,o),s=bt.now(),u=_t(n.specificOffset)?e.offset(s):n.specificOffset,a=!_t(i.ordinal),p=!_t(i.year),h=!_t(i.month)||!_t(i.day),d=p||h,l=i.weekYear||i.weekNumber;if((d||a)&&l)throw new f("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&a)throw new f("Can't mix ordinal dates with month/day");const m=l||i.weekday&&!d;let v,y,g=to(s,u);m?(v=ho,y=uo,g=It(g,r,c)):a?(v=fo,y=ao,g=Nt(g)):(v=po,y=so);let b=!1;for(const t of v){_t(i[t])?i[t]=b?y[t]:g[t]:b=!0}const w=m?function(t,n=4,e=1){const o=Ut(t.weekYear),i=Bt(t.weekNumber,1,tn(t.weekYear,n,e)),r=Bt(t.weekday,1,7);return o?i?!r&&Jt("weekday",t.weekday):Jt("week",t.weekNumber):Jt("weekYear",t.weekYear)}(i,r,c):a?function(t){const n=Ut(t.year),e=Bt(t.ordinal,1,Yt(t.year));return n?!e&&Jt("ordinal",t.ordinal):Jt("year",t.year)}(i):Ct(i),O=w||Lt(i);if(O)return go.invalid(O);const S=m?Rt(i,r,c):a?kt(i):i,[J,T]=no(S,u,e),P=new go({ts:J,zone:e,o:T,loc:o});return i.weekday&&d&&t.weekday!==P.weekday?go.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${P.toISO()}`):P}static fromISO(t,n={}){const[e,o]=function(t){return In(t,[te,ie],[ne,re],[ee,ce],[oe,se])}(t);return oo(e,o,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[e,o]=function(t){return In(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[zn,$n])}(t);return oo(e,o,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[e,o]=function(t){return In(t,[Hn,Qn],[Yn,Qn],[Kn,Xn])}(t);return oo(e,o,n,"HTTP",n)}static fromFormat(t,n,e={}){if(_t(t)||_t(n))throw new l("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:i=null}=e,r=ct.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),[c,s,u,a]=function(t,n,e){const{result:o,zone:i,specificOffset:r,invalidReason:c}=Ve(t,n,e);return[o,i,r,c]}(r,t,n);return a?go.invalid(a):oo(c,s,e,`format ${n}`,t,u)}static fromString(t,n,e={}){return go.fromFormat(t,n,e)}static fromSQL(t,n={}){const[e,o]=function(t){return In(t,[ae,ie],[pe,he])}(t);return oo(e,o,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new l("need to specify a reason the DateTime is invalid");const e=t instanceof wt?t:new wt(t,n);if(bt.throwOnInvalid)throw new a(e);return new go({invalid:e})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const e=We(t,ct.fromObject(n));return e?e.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,n={}){return Ze(Tn.parseFormat(t),ct.fromObject(n)).map((t=>t.val)).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ye(this).weekYear:NaN}get weekNumber(){return this.isValid?Ye(this).weekNumber:NaN}get weekday(){return this.isValid?Ye(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ke(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ke(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ke(this).weekYear:NaN}get ordinal(){return this.isValid?Nt(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ee.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ee.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ee.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ee.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,e=Qt(this.c),o=this.zone.offset(e-t),i=this.zone.offset(e+t),r=this.zone.offset(e-o*n),c=this.zone.offset(e-i*n);if(r===c)return[this];const s=e-r*n,u=e-c*n,a=to(s,r),p=to(u,c);return a.hour===p.hour&&a.minute===p.minute&&a.second===p.second&&a.millisecond===p.millisecond?[Qe(this,{ts:s}),Qe(this,{ts:u})]:[this]}get isInLeapYear(){return Ht(this.year)}get daysInMonth(){return Kt(this.year,this.month)}get daysInYear(){return this.isValid?Yt(this.year):NaN}get weeksInWeekYear(){return this.isValid?tn(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?tn(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:e,calendar:o}=Tn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:e,outputCalendar:o}}toUTC(t=0,n={}){return this.setZone(ut.instance(t),n)}toLocal(){return this.setZone(bt.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:e=!1}={}){if((t=pt(t,bt.defaultZone)).equals(this.zone))return this;if(t.isValid){let o=this.ts;if(n||e){const n=t.offset(this.ts),e=this.toObject();[o]=no(e,n,t)}return Qe(this,{ts:o,zone:t})}return go.invalid(He(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:e}={}){return Qe(this,{loc:this.loc.clone({locale:t,numberingSystem:n,outputCalendar:e})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=cn(t,lo),{minDaysInFirstWeek:e,startOfWeek:o}=xt(n,this.loc),i=!_t(n.weekYear)||!_t(n.weekNumber)||!_t(n.weekday),r=!_t(n.ordinal),c=!_t(n.year),s=!_t(n.month)||!_t(n.day),u=c||s,a=n.weekYear||n.weekNumber;if((u||r)&&a)throw new f("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&r)throw new f("Can't mix ordinal dates with month/day");let p;i?p=Rt({...It(this.c,e,o),...n},e,o):_t(n.ordinal)?(p={...this.toObject(),...n},_t(n.day)&&(p.day=Math.min(Kt(p.year,p.month),p.day))):p=kt({...Nt(this.c),...n});const[h,d]=no(p,this.o,this.zone);return Qe(this,{ts:h,o:d})}plus(t){if(!this.isValid)return this;return Qe(this,eo(this,Je.fromDurationLike(t)))}minus(t){if(!this.isValid)return this;return Qe(this,eo(this,Je.fromDurationLike(t).negate()))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const e={},o=Je.normalizeUnit(t);switch(o){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===o)if(n){const t=this.loc.getStartOfWeek(),{weekday:n}=this;n<t&&(e.weekNumber=this.weekNumber-1),e.weekday=t}else e.weekday=1;if("quarters"===o){const t=Math.ceil(this.month/3);e.month=3*(t-1)+1}return this.set(e)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?Tn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):ze}toLocaleString(t=b,n={}){return this.isValid?Tn.create(this.loc.clone(n),t).formatDateTime(this):ze}toLocaleParts(t={}){return this.isValid?Tn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:e=!1,includeOffset:o=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const r="extended"===t;let c=ro(this,r);return c+="T",c+=co(this,r,n,e,o,i),c}toISODate({format:t="extended"}={}){return this.isValid?ro(this,"extended"===t):null}toISOWeekDate(){return io(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:e=!0,includePrefix:o=!1,extendedZone:i=!1,format:r="extended"}={}){if(!this.isValid)return null;return(o?"T":"")+co(this,"extended"===r,n,t,e,i)}toRFC2822(){return io(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return io(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ro(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:e=!0}={}){let o="HH:mm:ss.SSS";return(n||t)&&(e&&(o+=" "),n?o+="z":t&&(o+="ZZ")),io(this,o,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():ze}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",e={}){if(!this.isValid||!t.isValid)return Je.invalid("created by diffing an invalid DateTime");const o={locale:this.locale,numberingSystem:this.numberingSystem,...e},i=(s=n,Array.isArray(s)?s:[s]).map(Je.normalizeUnit),r=t.valueOf()>this.valueOf(),c=Ie(r?this:t,r?t:this,i,o);var s;return r?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(go.now(),t,n)}until(t){return this.isValid?Pe.fromDateTimes(this,t):this}hasSame(t,n,e){if(!this.isValid)return!1;const o=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n,e)<=o&&o<=i.endOf(n,e)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||go.fromObject({},{zone:this.zone}),e=t.padding?this<n?-t.padding:t.padding:0;let o=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(o=t.unit,i=void 0),vo(n,this.plus(e),{...t,numeric:"always",units:o,unit:i})}toRelativeCalendar(t={}){return this.isValid?vo(t.base||go.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(go.isDateTime))throw new l("min requires all arguments be DateTimes");return qt(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(go.isDateTime))throw new l("max requires all arguments be DateTimes");return qt(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,n,e={}){const{locale:o=null,numberingSystem:i=null}=e;return Ve(ct.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),t,n)}static fromStringExplain(t,n,e={}){return go.fromFormatExplain(t,n,e)}static get DATE_SHORT(){return b}static get DATE_MED(){return w}static get DATE_MED_WITH_WEEKDAY(){return O}static get DATE_FULL(){return S}static get DATE_HUGE(){return J}static get TIME_SIMPLE(){return T}static get TIME_WITH_SECONDS(){return P}static get TIME_WITH_SHORT_OFFSET(){return E}static get TIME_WITH_LONG_OFFSET(){return j}static get TIME_24_SIMPLE(){return I}static get TIME_24_WITH_SECONDS(){return R}static get TIME_24_WITH_SHORT_OFFSET(){return N}static get TIME_24_WITH_LONG_OFFSET(){return k}static get DATETIME_SHORT(){return x}static get DATETIME_SHORT_WITH_SECONDS(){return C}static get DATETIME_MED(){return L}static get DATETIME_MED_WITH_SECONDS(){return _}static get DATETIME_MED_WITH_WEEKDAY(){return D}static get DATETIME_FULL(){return U}static get DATETIME_FULL_WITH_SECONDS(){return A}static get DATETIME_HUGE(){return G}static get DATETIME_HUGE_WITH_SECONDS(){return q}}function bo(t){if(go.isDateTime(t))return t;if(t&&t.valueOf&&Dt(t.valueOf()))return go.fromJSDate(t);if(t&&"object"==typeof t)return go.fromObject(t);throw new l(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var wo,Oo,So,Jo,To=function(){function t(t,n,e){wo.set(this,void 0),Oo.set(this,void 0),So.set(this,void 0),s(this,wo,t,"f"),s(this,Oo,n,"f"),s(this,So,e,"f")}return Object.defineProperty(t.prototype,"locale",{get:function(){return c(this,wo,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeZone",{get:function(){return c(this,Oo,"f")},enumerable:!1,configurable:!0}),t.prototype.getResource=function(t,n){if(!t)return null;var e=t.startsWith("@@:")?t.substring(3):t,o=null!=n?n:e,i=c(this,So,"f")[e];return i||o},t.prototype.format=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];var o=this.getResource(t);if(!o)return"";for(var i=[],r=o.replace(/\{(\d+)\}/g,(function(t,e){return i[e]=!0,e<n.length?n[e]:t})),c=[],s=0;s<n.length;s++)i[s]||c.push(n[s]);return r+(c.length?" [".concat(c.join(", "),"]"):"")},t.prototype.formatCurrency=function(t,n){var e;if(null==t)return null;try{return new Intl.NumberFormat(c(this,wo,"f"),{style:"currency",currency:null!==(e=null!=n?n:this.getResource("/@system/default/currency"))&&void 0!==e?e:void 0}).format(t).replace(String.fromCharCode(160)," ")}catch(n){return t.toString()}},t.prototype.formatDate=function(t){if(!t)return null;try{return(t instanceof Date?go.fromJSDate(t).setLocale(c(this,wo,"f")):go.fromISO(t).setLocale(c(this,wo,"f"))).startOf("day").toLocaleString({year:"2-digit",month:"numeric",day:"numeric"})}catch(n){return t.toString()}},t.prototype.formatDateTime=function(t){if(!t)return null;try{return(t instanceof Date?go.fromJSDate(t).setLocale(c(this,wo,"f")):go.fromISO(t).setLocale(c(this,wo,"f"))).toLocaleString({year:"2-digit",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}catch(n){return t.toString()}},t.prototype.formatNumber=function(t,n){var e,o,i,r,s;if(null==t)return null;try{return new Intl.NumberFormat(null!==(e=null==n?void 0:n.locale)&&void 0!==e?e:c(this,wo,"f"),{style:"decimal",minimumFractionDigits:null!==(i=null!==(o=null==n?void 0:n.digits)&&void 0!==o?o:null==n?void 0:n.minDigits)&&void 0!==i?i:0,maximumFractionDigits:null!==(s=null!==(r=null==n?void 0:n.digits)&&void 0!==r?r:null==n?void 0:n.maxDigits)&&void 0!==s?s:20}).format(t)||t.toString()}catch(n){return t.toString()}},t.prototype.formatQuantity=function(t,n){return this.formatNumber(t,n)},t.prototype.formatTime=function(t){if(null==t)return null;try{return(t instanceof Date?go.fromJSDate(t).setLocale(c(this,wo,"f")):go.fromISO(t).setLocale(c(this,wo,"f"))).toLocaleString(go.TIME_24_WITH_SECONDS)}catch(n){return t.toString()}},t.prototype.formatUnitValue=function(t){return this.formatNumber(t,{minDigits:2,maxDigits:8})},t.prototype.formatValue=function(t){return this.formatNumber(t,{digits:2})},t.prototype.formatWeight=function(t){return this.formatNumber(t,{minDigits:3,maxDigits:6})},t.prototype.localizeNode=function(t){var n=this;t instanceof HTMLElement&&Array.from(t.attributes).forEach((function(e){var o=e.value.replace(/@@:([\\/@\\.\\-\\+\\#\w]+)/g,(function(t,e){var o;return null!==(o=n.getResource(e))&&void 0!==o?o:""}));o!==e.value&&t.setAttribute(e.name,o)}));for(var e=t instanceof HTMLTemplateElement?t.content:t,o=0,i=e.childNodes;o<i.length;o++){var r=i[o];if(!r.hasChildNodes()&&r.textContent){var c=r.textContent.replace(/@@:([\\/@\\.\\-\\+\\#\w]+)/g,(function(t,e){var o;return null!==(o=n.getResource(e))&&void 0!==o?o:""}));c!==r.textContent&&(r.textContent=c)}e.hasChildNodes()&&this.localizeNode(r)}},t.prototype.observeNode=function(t){var n=this;this.localizeNode(t),new MutationObserver((function(t){t.forEach((function(t){if("childList"===t.type)for(var e=0,o=t.addedNodes;e<o.length;e++){var i=o[e];n.localizeNode(i)}}))})).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})},t}();function Po(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){switch(e.label){case 0:return[4,t.web.fetchJson("/system/resources")];case 1:return n=e.sent(),[2,new To(t.language,t.timeZone,n)]}}))}))}wo=new WeakMap,Oo=new WeakMap,So=new WeakMap;var Eo,jo,Io,Ro,No,ko,xo=function(){function t(t){Jo.set(this,void 0),s(this,Jo,t,"f")}return t.prototype.fetch=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Jo,"f").fetch(t,n)]}))}))},t.prototype.fetchBlob=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){switch(o.label){case 0:return[4,c(this,Jo,"f").fetch(t,n)];case 1:return e=o.sent(),[4,this.handleResponse(e)];case 2:return o.sent(),[2,e.blob()]}}))}))},t.prototype.fetchJson=function(t,n){return o(this,void 0,void 0,(function(){var e,o;return i(this,(function(i){switch(i.label){case 0:return[4,c(this,Jo,"f").fetch(t,n)];case 1:return e=i.sent(),[4,this.handleResponse(e)];case 2:return i.sent(),[4,e.text()];case 3:return[2,null==(o=i.sent())||""===o?null:JSON.parse(o)]}}))}))},t.prototype.fetchJsonRequired=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){switch(o.label){case 0:return[4,this.fetchJson(t,n)];case 1:if(null==(e=o.sent()))throw new Error("Not found: ".concat(t));return[2,e]}}))}))},t.prototype.fetchOk=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){switch(o.label){case 0:return[4,c(this,Jo,"f").fetch(t,n)];case 1:return e=o.sent(),[4,this.handleResponse(e)];case 2:return o.sent(),[2,e]}}))}))},t.prototype.fetchText=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){switch(o.label){case 0:return[4,c(this,Jo,"f").fetch(t,n)];case 1:return e=o.sent(),[4,this.handleResponse(e)];case 2:return o.sent(),[2,e.text()]}}))}))},t.prototype.handleResponse=function(t){return o(this,void 0,void 0,(function(){var n,e,o,r;return i(this,(function(i){switch(i.label){case 0:return t.ok?[3,2]:[4,t.text()];case 1:n=i.sent(),e=null;try{o=JSON.parse(n),e=new Error(null!==(r=o.message)&&void 0!==r?r:n)}catch(o){e=new Error("".concat(t.status," ").concat(n))}throw e;case 2:return[2]}}))}))},t}();Jo=new WeakMap;var Co,Lo=function(){function t(t,n){Eo.set(this,void 0),jo.set(this,void 0),Io.set(this,void 0),Ro.set(this,!1),No.set(this,void 0),ko.set(this,void 0),s(this,Eo,t,"f"),s(this,jo,n,"f"),s(this,Io,function(t){try{var n=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),e=decodeURIComponent(globalThis.atob(n).split("").map((function(t){return"%".concat("00".concat(t.charCodeAt(0).toString(16)).slice(-2))})).join(""));return JSON.parse(e)}catch(n){throw new Error("Error parsing token "+t)}}(n),"f")}return t.prototype.close=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2]}))}))},t.prototype.fetch=function(t,n){return o(this,void 0,void 0,(function(){var e,o,r,s;return i(this,(function(i){return e="".concat(c(this,Eo,"f")).concat(t),o=null!=n?n:{},r="Bearer ".concat(c(this,jo,"f")),o.headers instanceof Headers?o.headers.append("Authorization",r):Array.isArray(o.headers)?o.headers.push(["Authorization",r]):o.headers?o.headers.Authorization=r:o.headers={Authorization:r},c(this,Ro,"f")&&console.debug("".concat(null!==(s=o.method)&&void 0!==s?s:"GET"," ").concat(t)),[2,fetch(e,o)]}))}))},Object.defineProperty(t.prototype,"i18n",{get:function(){var t=this;return c(this,No,"f")||s(this,No,o(t,void 0,void 0,(function(){return i(this,(function(t){return[2,Po(this)]}))})),"f"),c(this,No,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jti",{get:function(){return c(this,Io,"f").jti},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jwt",{get:function(){return c(this,jo,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"language",{get:function(){return c(this,Io,"f").locale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeZone",{get:function(){return c(this,Io,"f").timeZone},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"user",{get:function(){return c(this,Io,"f").sub},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"web",{get:function(){return c(this,ko,"f")||s(this,ko,new xo(this),"f"),c(this,ko,"f")},enumerable:!1,configurable:!0}),t}();function _o(t,n,e){if(!t)throw new Error("Missing argument: host");if(!n)throw new Error("Missing argument: token");return t.toLowerCase().startsWith("http")||(t="https://".concat(t,".zenerp.app.br:8443")),new Lo(t,n)}Eo=new WeakMap,jo=new WeakMap,Io=new WeakMap,Ro=new WeakMap,No=new WeakMap,ko=new WeakMap;var Do=function(){function t(t){Co.set(this,void 0),s(this,Co,t,"f")}return t.prototype.login=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Co,"f").web.fetchJson("/auth/login",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.logout=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,Co,"f").web.fetchJson("/auth/logout",{method:"POST"})]}))}))},t.prototype.me=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,Co,"f").web.fetchJson("/auth/me",{method:"GET"})]}))}))},t.prototype.passwordRecover=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("username",String(t)),[2,c(this,Co,"f").web.fetchJson("/auth/passwordRecover?".concat(n.toString()),{method:"POST"})]}))}))},t.prototype.passwordReset=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("resetToken",String(t)),n&&e.set("newPassword",String(n)),[2,c(this,Co,"f").web.fetchJson("/auth/passwordReset?".concat(e.toString()),{method:"POST"})]}))}))},t.prototype.refresh=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("refreshToken",String(t)),[2,c(this,Co,"f").web.fetchJson("/auth/refresh?".concat(n.toString()),{method:"POST"})]}))}))},t.prototype.register=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Co,"f").web.fetchJson("/auth/register",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Co=new WeakMap;var Uo,Ao=function(){},Go=Object.freeze({__proto__:null,AuthService:Do,TokenResponse:Ao}),qo=function(){function t(t){Uo.set(this,void 0),s(this,Uo,t,"f")}return t.prototype.companyCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Uo,"f").web.fetchJson("/catalog/company/company",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.companyDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Uo,"f").web.fetchJson("/catalog/company/company/".concat(t),{method:"DELETE"})]}))}))},t.prototype.companyOpGetActive=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,Uo,"f").web.fetchJson("/catalog/company/companyOpGetActive",{method:"POST"})]}))}))},t.prototype.companyOpSetActive=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Uo,"f").web.fetchJson("/catalog/company/companyOpSetActive/".concat(t),{method:"POST"})]}))}))},t.prototype.companyRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Uo,"f").web.fetchJson("/catalog/company/company?".concat(t),{method:"GET"})]}))}))},t.prototype.companyReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Uo,"f").web.fetchJson("/catalog/company/company/".concat(t),{method:"GET"})]}))}))},t.prototype.companyUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Uo,"f").web.fetchJson("/catalog/company/company",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.societyCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Uo,"f").web.fetchJson("/catalog/company/society",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.societyDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Uo,"f").web.fetchJson("/catalog/company/society/".concat(t),{method:"DELETE"})]}))}))},t.prototype.societyRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Uo,"f").web.fetchJson("/catalog/company/society?".concat(t),{method:"GET"})]}))}))},t.prototype.societyReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Uo,"f").web.fetchJson("/catalog/company/society/".concat(t),{method:"GET"})]}))}))},t.prototype.societyUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Uo,"f").web.fetchJson("/catalog/company/society",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Uo=new WeakMap;var Fo,Mo=function(){},Bo=function(){},Zo=Object.freeze({__proto__:null,Company:Mo,CompanyService:qo,Society:Bo}),Vo=function(){function t(t){Fo.set(this,void 0),s(this,Fo,t,"f")}return t.prototype.cityCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/city",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.cityDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/city/".concat(t),{method:"DELETE"})]}))}))},t.prototype.cityOpFind=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/cityOpFind",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.cityRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/city?".concat(t),{method:"GET"})]}))}))},t.prototype.cityReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/city/".concat(t),{method:"GET"})]}))}))},t.prototype.cityUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/city",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.countryCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/country",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.countryDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/country/".concat(t),{method:"DELETE"})]}))}))},t.prototype.countryRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/country?".concat(t),{method:"GET"})]}))}))},t.prototype.countryReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/country/".concat(t),{method:"GET"})]}))}))},t.prototype.countryUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/country",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.geocodeRead=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("address",String(t)),[2,c(this,Fo,"f").web.fetchJson("/catalog/location/geocode?".concat(n.toString()),{method:"GET"})]}))}))},t.prototype.stateCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/state",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.stateDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/state/".concat(t),{method:"DELETE"})]}))}))},t.prototype.stateRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/state?".concat(t),{method:"GET"})]}))}))},t.prototype.stateReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/state/".concat(t),{method:"GET"})]}))}))},t.prototype.stateUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Fo,"f").web.fetchJson("/catalog/location/state",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.zipcodeRead=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("country",String(t)),n&&e.set("zipcode",String(n)),[2,c(this,Fo,"f").web.fetchJson("/catalog/location/zipcode?".concat(e.toString()),{method:"GET"})]}))}))},t}();Fo=new WeakMap;var Wo,zo=function(){},$o=function(){},Ho=function(){},Yo=function(){},Ko=function(){},Qo=function(){},Xo=Object.freeze({__proto__:null,City:zo,CityBasic:$o,Country:Ho,Geocode:Yo,LocationService:Vo,State:Ko,Zipcode:Qo}),ti=function(){function t(t){Wo.set(this,void 0),s(this,Wo,t,"f")}return t.prototype.personAddressCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personAddress",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.personAddressDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personAddress/".concat(t),{method:"DELETE"})]}))}))},t.prototype.personAddressOpSetDefault=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personAddressOpSetDefault/".concat(t),{method:"POST"})]}))}))},t.prototype.personAddressRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personAddress?".concat(t),{method:"GET"})]}))}))},t.prototype.personAddressReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personAddress/".concat(t),{method:"GET"})]}))}))},t.prototype.personAddressUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personAddress",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.personCommentCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personComment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.personCommentDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personComment/".concat(t),{method:"DELETE"})]}))}))},t.prototype.personCommentRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personComment?".concat(t),{method:"GET"})]}))}))},t.prototype.personCommentReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personComment/".concat(t),{method:"GET"})]}))}))},t.prototype.personCommentUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personComment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.personCompactRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personCompact?".concat(t),{method:"GET"})]}))}))},t.prototype.personCompactReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personCompact/".concat(t),{method:"GET"})]}))}))},t.prototype.personContactCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personContact",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.personContactDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personContact/".concat(t),{method:"DELETE"})]}))}))},t.prototype.personContactRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personContact?".concat(t),{method:"GET"})]}))}))},t.prototype.personContactReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personContact/".concat(t),{method:"GET"})]}))}))},t.prototype.personContactUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personContact",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.personCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/person",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.personDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/person/".concat(t),{method:"DELETE"})]}))}))},t.prototype.personDocumentCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personDocument",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.personDocumentDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personDocument/".concat(t),{method:"DELETE"})]}))}))},t.prototype.personDocumentRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personDocument?".concat(t),{method:"GET"})]}))}))},t.prototype.personDocumentReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personDocument/".concat(t),{method:"GET"})]}))}))},t.prototype.personDocumentUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personDocument",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.personGroupCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personGroup",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.personGroupDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personGroup/".concat(t),{method:"DELETE"})]}))}))},t.prototype.personGroupRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personGroup?".concat(t),{method:"GET"})]}))}))},t.prototype.personGroupReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personGroup/".concat(t),{method:"GET"})]}))}))},t.prototype.personGroupUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personGroup",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.personOpReadFromPersonDirectory=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("documentType",String(t)),n&&e.set("documentNumber",String(n)),[2,c(this,Wo,"f").web.fetchJson("/catalog/person/personOpReadFromPersonDirectory?".concat(e.toString()),{method:"POST"})]}))}))},t.prototype.personRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/person?".concat(t),{method:"GET"})]}))}))},t.prototype.personReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/person/".concat(t),{method:"GET"})]}))}))},t.prototype.personUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Wo,"f").web.fetchJson("/catalog/person/person",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Wo=new WeakMap;var ni,ei=function(){},oi=function(){},ii=function(){},ri=function(){},ci=function(){},si=function(){},ui=function(){},ai=Object.freeze({__proto__:null,Person:ei,PersonAddress:oi,PersonComment:ii,PersonCompact:ri,PersonContact:ci,PersonDocument:si,PersonGroup:ui,PersonService:ti}),pi=function(){function t(t){ni.set(this,void 0),s(this,ni,t,"f")}return t.prototype.codeConversionCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/codeConversion",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.codeConversionDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/codeConversion/".concat(t),{method:"DELETE"})]}))}))},t.prototype.codeConversionListCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/codeConversionList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.codeConversionListDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/codeConversionList/".concat(t),{method:"DELETE"})]}))}))},t.prototype.codeConversionListRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/codeConversionList?".concat(t),{method:"GET"})]}))}))},t.prototype.codeConversionListReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/codeConversionList/".concat(t),{method:"GET"})]}))}))},t.prototype.codeConversionListUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/codeConversionList",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.codeConversionRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/codeConversion?".concat(t),{method:"GET"})]}))}))},t.prototype.codeConversionReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/codeConversion/".concat(t),{method:"GET"})]}))}))},t.prototype.codeConversionUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/codeConversion",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.dimensionCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/dimension",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.dimensionDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/dimension/".concat(t),{method:"DELETE"})]}))}))},t.prototype.dimensionRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/dimension?".concat(t),{method:"GET"})]}))}))},t.prototype.dimensionReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/dimension/".concat(t),{method:"GET"})]}))}))},t.prototype.dimensionUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/dimension",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/product",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/product/".concat(t),{method:"DELETE"})]}))}))},t.prototype.productKitComponentCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productKitComponent",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productKitComponentDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productKitComponent/".concat(t),{method:"DELETE"})]}))}))},t.prototype.productKitComponentRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productKitComponent?".concat(t),{method:"GET"})]}))}))},t.prototype.productKitComponentReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productKitComponent/".concat(t),{method:"GET"})]}))}))},t.prototype.productKitComponentUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productKitComponent",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productOpClone=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productOpClone/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.productOpConvertToUnit=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,n&&o.set("unitId",String(n)),e&&o.set("quantity",String(e)),[2,c(this,ni,"f").web.fetchJson("/catalog/product/productOpConvertToUnit/".concat(t,"?").concat(o.toString()),{method:"POST"})]}))}))},t.prototype.productPackingCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productPacking",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productPackingDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productPacking/".concat(t),{method:"DELETE"})]}))}))},t.prototype.productPackingOpConvertToUnit=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,n&&o.set("unitId",String(n)),e&&o.set("quantity",String(e)),[2,c(this,ni,"f").web.fetchJson("/catalog/product/productPackingOpConvertToUnit/".concat(t,"?").concat(o.toString()),{method:"POST"})]}))}))},t.prototype.productPackingRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productPacking?".concat(t),{method:"GET"})]}))}))},t.prototype.productPackingReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productPacking/".concat(t),{method:"GET"})]}))}))},t.prototype.productPackingUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productPacking",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productProfileCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productProfileDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productProfile/".concat(t),{method:"DELETE"})]}))}))},t.prototype.productProfileRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productProfile?".concat(t),{method:"GET"})]}))}))},t.prototype.productProfileReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productProfile/".concat(t),{method:"GET"})]}))}))},t.prototype.productProfileUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/product?".concat(t),{method:"GET"})]}))}))},t.prototype.productReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/product/".concat(t),{method:"GET"})]}))}))},t.prototype.productUnitConversionCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productUnitConversion",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productUnitConversionDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productUnitConversion/".concat(t),{method:"DELETE"})]}))}))},t.prototype.productUnitConversionRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productUnitConversion?".concat(t),{method:"GET"})]}))}))},t.prototype.productUnitConversionReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productUnitConversion/".concat(t),{method:"GET"})]}))}))},t.prototype.productUnitConversionUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productUnitConversion",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/product",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productVariantCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productVariant",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productVariantDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productVariant/".concat(t),{method:"DELETE"})]}))}))},t.prototype.productVariantRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productVariant?".concat(t),{method:"GET"})]}))}))},t.prototype.productVariantReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productVariant/".concat(t),{method:"GET"})]}))}))},t.prototype.productVariantUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/productVariant",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.unitCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/unit",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.unitDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/unit/".concat(t),{method:"DELETE"})]}))}))},t.prototype.unitRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/unit?".concat(t),{method:"GET"})]}))}))},t.prototype.unitReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/unit/".concat(t),{method:"GET"})]}))}))},t.prototype.unitUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ni,"f").web.fetchJson("/catalog/product/unit",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();ni=new WeakMap;var hi,fi=function(){},di=function(){},li=function(){},mi=function(){},vi=function(){},yi=function(){},gi=function(){},bi=function(){},wi=function(){},Oi=function(){},Si=Object.freeze({__proto__:null,CodeConversion:fi,CodeConversionList:di,Dimension:li,Product:mi,ProductKitComponent:vi,ProductPacking:yi,ProductProfile:gi,ProductService:pi,ProductUnitConversion:bi,ProductVariant:wi,Unit:Oi}),Ji=function(){function t(t){hi.set(this,void 0),s(this,hi,t,"f")}return t.prototype.categoryCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,hi,"f").web.fetchJson("/catalog/category",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.categoryDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,hi,"f").web.fetchJson("/catalog/category/".concat(t),{method:"DELETE"})]}))}))},t.prototype.categoryRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,hi,"f").web.fetchJson("/catalog/category?".concat(t),{method:"GET"})]}))}))},t.prototype.categoryReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,hi,"f").web.fetchJson("/catalog/category/".concat(t),{method:"GET"})]}))}))},t.prototype.categoryUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,hi,"f").web.fetchJson("/catalog/category",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();hi=new WeakMap;var Ti,Pi=function(){},Ei=Object.freeze({__proto__:null,CatalogService:Ji,Category:Pi,company:Zo,location:Xo,person:ai,product:Si}),ji=function(){function t(t){Ti.set(this,void 0),s(this,Ti,t,"f")}return t.prototype.contractBillingCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractBilling",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.contractBillingDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractBilling/".concat(t),{method:"DELETE"})]}))}))},t.prototype.contractBillingOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractBillingOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.contractBillingOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractBillingOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.contractBillingOpCreate=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("contractId",String(t)),[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractBillingOpCreate?".concat(n.toString()),{method:"POST"})]}))}))},t.prototype.contractBillingOpCreateInvoice=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractBillingOpCreateInvoice",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.contractBillingOpCreateRevert=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("contractId",String(t)),[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractBillingOpCreateRevert?".concat(n.toString()),{method:"POST"})]}))}))},t.prototype.contractBillingOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractBillingOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.contractBillingOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractBillingOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.contractBillingRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractBilling?".concat(t),{method:"GET"})]}))}))},t.prototype.contractBillingReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractBilling/".concat(t),{method:"GET"})]}))}))},t.prototype.contractBillingUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractBilling",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.contractCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contract",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.contractDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contract/".concat(t),{method:"DELETE"})]}))}))},t.prototype.contractIndexCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractIndex",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.contractIndexDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractIndex/".concat(t),{method:"DELETE"})]}))}))},t.prototype.contractIndexRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractIndex?".concat(t),{method:"GET"})]}))}))},t.prototype.contractIndexReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractIndex/".concat(t),{method:"GET"})]}))}))},t.prototype.contractIndexUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractIndex",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.contractItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.contractItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.contractItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractItem?".concat(t),{method:"GET"})]}))}))},t.prototype.contractItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractItem/".concat(t),{method:"GET"})]}))}))},t.prototype.contractItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.contractOpAdjust=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractOpAdjust/".concat(t),{method:"POST"})]}))}))},t.prototype.contractOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.contractOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.contractOpCancel=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractOpCancel/".concat(t),{method:"POST"})]}))}))},t.prototype.contractOpCancelRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractOpCancelRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.contractOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.contractOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.contractOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.contractProfileCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.contractProfileDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractProfile/".concat(t),{method:"DELETE"})]}))}))},t.prototype.contractProfileRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractProfile?".concat(t),{method:"GET"})]}))}))},t.prototype.contractProfileReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractProfile/".concat(t),{method:"GET"})]}))}))},t.prototype.contractProfileUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contractProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.contractRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contract?".concat(t),{method:"GET"})]}))}))},t.prototype.contractReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contract/".concat(t),{method:"GET"})]}))}))},t.prototype.contractUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ti,"f").web.fetchJson("/commercial/contract/contract",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Ti=new WeakMap;var Ii,Ri=function(){},Ni=function(){},ki=function(){},xi=function(){},Ci=function(){},Li=Object.freeze({__proto__:null,Contract:Ri,ContractBilling:Ni,ContractIndex:ki,ContractItem:xi,ContractProfile:Ci,ContractService:ji}),_i=function(){function t(t){Ii.set(this,void 0),s(this,Ii,t,"f")}return t.prototype.priceListChangeRequestCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListChangeRequest",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.priceListChangeRequestDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListChangeRequest/".concat(t),{method:"DELETE"})]}))}))},t.prototype.priceListChangeRequestOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListChangeRequestOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.priceListChangeRequestOpReject=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListChangeRequestOpReject/".concat(t),{method:"POST"})]}))}))},t.prototype.priceListChangeRequestRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListChangeRequest?".concat(t),{method:"GET"})]}))}))},t.prototype.priceListChangeRequestReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListChangeRequest/".concat(t),{method:"GET"})]}))}))},t.prototype.priceListOpFind=function(t,n,e,r){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,n&&o.set("productId",String(n)),e&&o.set("productPackingId",String(e)),r&&o.set("currencyId",String(r)),[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListOpFind/".concat(t,"?").concat(o.toString()),{method:"POST"})]}))}))},t.prototype.priceListTransformationCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListTransformation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.priceListTransformationDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListTransformation/".concat(t),{method:"DELETE"})]}))}))},t.prototype.priceListTransformationOpCalculate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListTransformationOpCalculate/".concat(t),{method:"POST"})]}))}))},t.prototype.priceListTransformationRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListTransformation?".concat(t),{method:"GET"})]}))}))},t.prototype.priceListTransformationReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListTransformation/".concat(t),{method:"GET"})]}))}))},t.prototype.priceListTransformationUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ii,"f").web.fetchJson("/commercial/priceListTransformation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Ii=new WeakMap;var Di,Ui=function(){},Ai=function(){},Gi=function(){},qi=function(){},Fi=Object.freeze({__proto__:null,CommercialService:_i,PriceList:Ui,PriceListChangeRequest:Ai,PriceListItem:Gi,PriceListTransformation:qi,contract:Li}),Mi=function(){function t(t){Di.set(this,void 0),s(this,Di,t,"f")}return t.prototype.accountCategoryCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountCategory",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountCategoryDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountCategory/".concat(t),{method:"DELETE"})]}))}))},t.prototype.accountCategoryRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountCategory?".concat(t),{method:"GET"})]}))}))},t.prototype.accountCategoryReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountCategory/".concat(t),{method:"GET"})]}))}))},t.prototype.accountCategoryUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountCategory",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountChartCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountChart",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountChartDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountChart/".concat(t),{method:"DELETE"})]}))}))},t.prototype.accountChartOpClone=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountChartOpClone/".concat(t),{method:"POST"})]}))}))},t.prototype.accountChartOpImport=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountChartOpImport/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.accountChartOpLevelCreate=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,n&&o.set("level",String(n)),e&&o.set("digits",String(e)),[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountChartOpLevelCreate/".concat(t,"?").concat(o.toString()),{method:"POST"})]}))}))},t.prototype.accountChartOpLevelDelete=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("level",String(n)),[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountChartOpLevelDelete/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.accountChartOpLevelUpdate=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,n&&o.set("level",String(n)),e&&o.set("digits",String(e)),[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountChartOpLevelUpdate/".concat(t,"?").concat(o.toString()),{method:"POST"})]}))}))},t.prototype.accountChartOpNextShortCode=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountChartOpNextShortCode/".concat(t),{method:"POST"})]}))}))},t.prototype.accountChartRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountChart?".concat(t),{method:"GET"})]}))}))},t.prototype.accountChartReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountChart/".concat(t),{method:"GET"})]}))}))},t.prototype.accountChartUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountChart",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountConversionChartCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountConversionChart",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountConversionChartDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountConversionChart/".concat(t),{method:"DELETE"})]}))}))},t.prototype.accountConversionChartRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountConversionChart?".concat(t),{method:"GET"})]}))}))},t.prototype.accountConversionChartReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountConversionChart/".concat(t),{method:"GET"})]}))}))},t.prototype.accountConversionChartUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountConversionChart",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountConversionCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountConversion",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountConversionDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountConversion/".concat(t),{method:"DELETE"})]}))}))},t.prototype.accountConversionRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountConversion?".concat(t),{method:"GET"})]}))}))},t.prototype.accountConversionReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountConversion/".concat(t),{method:"GET"})]}))}))},t.prototype.accountConversionUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountConversion",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/account",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountDefaultCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountDefault",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountDefaultDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountDefault/".concat(t),{method:"DELETE"})]}))}))},t.prototype.accountDefaultOpRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountDefaultOpRead",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountDefaultRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountDefault?".concat(t),{method:"GET"})]}))}))},t.prototype.accountDefaultReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountDefault/".concat(t),{method:"GET"})]}))}))},t.prototype.accountDefaultUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountDefault",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/account/".concat(t),{method:"DELETE"})]}))}))},t.prototype.accountFiscalYearRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/accountFiscalYear?".concat(t),{method:"GET"})]}))}))},t.prototype.accountRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/account?".concat(t),{method:"GET"})]}))}))},t.prototype.accountReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/account/".concat(t),{method:"GET"})]}))}))},t.prototype.accountUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/account",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.assetInventoryCurrentRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/assetInventoryCurrent?".concat(t),{method:"GET"})]}))}))},t.prototype.assetInventoryRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/assetInventory?".concat(t),{method:"GET"})]}))}))},t.prototype.assetTagRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/assetTag?".concat(t),{method:"GET"})]}))}))},t.prototype.assetTagReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/assetTag/".concat(t),{method:"GET"})]}))}))},t.prototype.fiscalYearOpClose=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/fiscalYearOpClose/".concat(t),{method:"POST"})]}))}))},t.prototype.journalEntryCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalEntry",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.journalEntryDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalEntry/".concat(t),{method:"DELETE"})]}))}))},t.prototype.journalEntryOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalEntryOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.journalEntryOpPublish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalEntryOpPublish/".concat(t),{method:"POST"})]}))}))},t.prototype.journalEntryOpPublishRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalEntryOpPublishRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.journalEntryOpUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalEntryOpUpdate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.journalEntryRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalEntry?".concat(t),{method:"GET"})]}))}))},t.prototype.journalEntryReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalEntry/".concat(t),{method:"GET"})]}))}))},t.prototype.journalEntryUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalEntry",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.journalItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.journalItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.journalItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalItem?".concat(t),{method:"GET"})]}))}))},t.prototype.journalItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalItem/".concat(t),{method:"GET"})]}))}))},t.prototype.journalItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/journalItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.ledgerItemBalanceRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/ledgerItemBalance?".concat(t),{method:"GET"})]}))}))},t.prototype.ledgerItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/ledgerItem?".concat(t),{method:"GET"})]}))}))},t.prototype.ledgerItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/ledgerItem/".concat(t),{method:"GET"})]}))}))},t.prototype.resultCenterChartCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenterChart",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.resultCenterChartDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenterChart/".concat(t),{method:"DELETE"})]}))}))},t.prototype.resultCenterChartOpLevelCreate=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,n&&o.set("level",String(n)),e&&o.set("digits",String(e)),[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenterChartOpLevelCreate/".concat(t,"?").concat(o.toString()),{method:"POST"})]}))}))},t.prototype.resultCenterChartOpLevelDelete=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("level",String(n)),[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenterChartOpLevelDelete/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.resultCenterChartOpLevelUpdate=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,n&&o.set("level",String(n)),e&&o.set("digits",String(e)),[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenterChartOpLevelUpdate/".concat(t,"?").concat(o.toString()),{method:"POST"})]}))}))},t.prototype.resultCenterChartRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenterChart?".concat(t),{method:"GET"})]}))}))},t.prototype.resultCenterChartReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenterChart/".concat(t),{method:"GET"})]}))}))},t.prototype.resultCenterChartUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenterChart",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.resultCenterCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenter",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.resultCenterDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenter/".concat(t),{method:"DELETE"})]}))}))},t.prototype.resultCenterRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenter?".concat(t),{method:"GET"})]}))}))},t.prototype.resultCenterReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenter/".concat(t),{method:"GET"})]}))}))},t.prototype.resultCenterUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Di,"f").web.fetchJson("/financial/accounting/resultCenter",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Di=new WeakMap;var Bi,Zi=function(){},Vi=function(){},Wi=function(){},zi=function(){},$i=function(){},Hi=function(){},Yi=function(){},Ki=function(){},Qi=function(){},Xi=function(){},tr=function(){},nr=function(){},er=function(){},or=function(){},ir=function(){},rr=function(){},cr=function(){},sr=Object.freeze({__proto__:null,Account:Zi,AccountCategory:Vi,AccountChart:Wi,AccountComplement:zi,AccountConversion:$i,AccountConversionChart:Hi,AccountDefault:Yi,AccountFiscalYear:Ki,AccountingService:Mi,AssetInventory:Qi,AssetInventoryCurrent:Xi,AssetTag:tr,JournalEntry:nr,JournalItem:er,LedgerItem:or,LedgerItemBalance:ir,ResultCenter:rr,ResultCenterChart:cr}),ur=function(){function t(t){Bi.set(this,void 0),s(this,Bi,t,"f")}return t.prototype.batchRequestCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequest",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.batchRequestDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequest/".concat(t),{method:"DELETE"})]}))}))},t.prototype.batchRequestOpAddInstructions=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequestOpAddInstructions/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.batchRequestOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequestOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.batchRequestOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequestOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.batchRequestOpCreateFile=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequestOpCreateFile/".concat(t),{method:"POST"})]}))}))},t.prototype.batchRequestOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequestOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.batchRequestOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequestOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.batchRequestOpSend=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequestOpSend/".concat(t),{method:"POST"})]}))}))},t.prototype.batchRequestOpSendRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequestOpSendRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.batchRequestRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequest?".concat(t),{method:"GET"})]}))}))},t.prototype.batchRequestReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequest/".concat(t),{method:"GET"})]}))}))},t.prototype.batchRequestUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchRequest",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.batchResponseDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchResponse/".concat(t),{method:"DELETE"})]}))}))},t.prototype.batchResponseOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchResponseOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.batchResponseOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchResponseOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.batchResponseOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchResponseOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.batchResponseOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchResponseOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.batchResponseOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchResponseOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.batchResponseOpProcess=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchResponseOpProcess/".concat(t),{method:"POST"})]}))}))},t.prototype.batchResponseRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchResponse?".concat(t),{method:"GET"})]}))}))},t.prototype.batchResponseReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/batchResponse/".concat(t),{method:"GET"})]}))}))},t.prototype.instructionRequestDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionRequest/".concat(t),{method:"DELETE"})]}))}))},t.prototype.instructionRequestOpAddToBatch=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("batchId",String(n)),[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionRequestOpAddToBatch/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.instructionRequestOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionRequestOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.instructionRequestOpCreateChangeDueDate=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("billingTitleId",String(t)),n&&e.set("dueDate",String(n)),[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionRequestOpCreateChangeDueDate?".concat(e.toString()),{method:"POST"})]}))}))},t.prototype.instructionRequestOpCreateRegister=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("billingTitleId",String(t)),n&&e.set("walletId",String(n)),[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionRequestOpCreateRegister?".concat(e.toString()),{method:"POST"})]}))}))},t.prototype.instructionRequestOpCreateUnregister=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("billingTitleId",String(t)),[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionRequestOpCreateUnregister?".concat(n.toString()),{method:"POST"})]}))}))},t.prototype.instructionRequestOpRemoveFromBatch=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionRequestOpRemoveFromBatch/".concat(t),{method:"POST"})]}))}))},t.prototype.instructionRequestRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionRequest?".concat(t),{method:"GET"})]}))}))},t.prototype.instructionRequestReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionRequest/".concat(t),{method:"GET"})]}))}))},t.prototype.instructionRequestUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionRequest",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.instructionResponseCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionResponse",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.instructionResponseDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionResponse/".concat(t),{method:"DELETE"})]}))}))},t.prototype.instructionResponseOpIgnore=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionResponseOpIgnore/".concat(t),{method:"POST"})]}))}))},t.prototype.instructionResponseOpIgnoreRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionResponseOpIgnoreRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.instructionResponseOpProcess=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionResponseOpProcess/".concat(t),{method:"POST"})]}))}))},t.prototype.instructionResponseRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionResponse?".concat(t),{method:"GET"})]}))}))},t.prototype.instructionResponseReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionResponse/".concat(t),{method:"GET"})]}))}))},t.prototype.instructionResponseUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/instructionResponse",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.walletCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/wallet",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.walletDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/wallet/".concat(t),{method:"DELETE"})]}))}))},t.prototype.walletOpGetSequence=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/walletOpGetSequence/".concat(t),{method:"POST"})]}))}))},t.prototype.walletRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/wallet?".concat(t),{method:"GET"})]}))}))},t.prototype.walletReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/wallet/".concat(t),{method:"GET"})]}))}))},t.prototype.walletUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bi,"f").web.fetchJson("/financial/billing/wallet",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Bi=new WeakMap;var ar,pr=function(){},hr=function(){},fr=function(){},dr=function(){},lr=function(){},mr=function(){},vr=function(){},yr=Object.freeze({__proto__:null,Batch:pr,BatchRequest:hr,BatchResponse:fr,BillingService:ur,Instruction:dr,InstructionRequest:lr,InstructionResponse:mr,Wallet:vr}),gr=function(){function t(t){ar.set(this,void 0),s(this,ar,t,"f")}return t.prototype.creditLineCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ar,"f").web.fetchJson("/financial/credit/creditLine",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.creditLineDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ar,"f").web.fetchJson("/financial/credit/creditLine/".concat(t),{method:"DELETE"})]}))}))},t.prototype.creditLineItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ar,"f").web.fetchJson("/financial/credit/creditLineItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.creditLineItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ar,"f").web.fetchJson("/financial/credit/creditLineItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.creditLineItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ar,"f").web.fetchJson("/financial/credit/creditLineItem?".concat(t),{method:"GET"})]}))}))},t.prototype.creditLineItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ar,"f").web.fetchJson("/financial/credit/creditLineItem/".concat(t),{method:"GET"})]}))}))},t.prototype.creditLineItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ar,"f").web.fetchJson("/financial/credit/creditLineItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.creditLineRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ar,"f").web.fetchJson("/financial/credit/creditLine?".concat(t),{method:"GET"})]}))}))},t.prototype.creditLineReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ar,"f").web.fetchJson("/financial/credit/creditLine/".concat(t),{method:"GET"})]}))}))},t.prototype.creditLineUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ar,"f").web.fetchJson("/financial/credit/creditLine",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();ar=new WeakMap;var br,wr=function(){},Or=function(){},Sr=Object.freeze({__proto__:null,CreditLine:wr,CreditLineItem:Or,CreditService:gr}),Jr=function(){function t(t){br.set(this,void 0),s(this,br,t,"f")}return t.prototype.accountStatementCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatement",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accountStatementDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatement/".concat(t),{method:"DELETE"})]}))}))},t.prototype.accountStatementOpConsolidate=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatementOpConsolidate/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.accountStatementOpConsolidateRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatementOpConsolidateRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.accountStatementOpIdentify=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatementOpIdentify/".concat(t),{method:"POST"})]}))}))},t.prototype.accountStatementOpIdentifyRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatementOpIdentifyRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.accountStatementOpIgnore=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatementOpIgnore/".concat(t),{method:"POST"})]}))}))},t.prototype.accountStatementOpIgnoreRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatementOpIgnoreRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.accountStatementOpSettle=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatementOpSettle/".concat(t),{method:"POST"})]}))}))},t.prototype.accountStatementOpSettleRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatementOpSettleRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.accountStatementRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatement?".concat(t),{method:"GET"})]}))}))},t.prototype.accountStatementReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatement/".concat(t),{method:"GET"})]}))}))},t.prototype.accountStatementUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/accountStatement",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.expenseOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/expenseOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.revenueOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,br,"f").web.fetchJson("/financial/treasury/revenueOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();br=new WeakMap;var Tr,Pr=function(){},Er=Object.freeze({__proto__:null,AccountStatement:Pr,TreasuryService:Jr}),jr=function(){function t(t){Tr.set(this,void 0),s(this,Tr,t,"f")}return t.prototype.currencyCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/currency",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.currencyDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/currency/".concat(t),{method:"DELETE"})]}))}))},t.prototype.currencyExchangeRateCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/currencyExchangeRate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.currencyExchangeRateDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/currencyExchangeRate/".concat(t),{method:"DELETE"})]}))}))},t.prototype.currencyExchangeRateOpConvert=function(t,n,e,r){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,t&&o.set("sourceId",String(t)),n&&o.set("destinationId",String(n)),e&&o.set("date",String(e)),r&&o.set("value",String(r)),[2,c(this,Tr,"f").web.fetchJson("/financial/currencyExchangeRateOpConvert?".concat(o.toString()),{method:"POST"})]}))}))},t.prototype.currencyExchangeRateOpGetExchangeRate=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,t&&o.set("sourceId",String(t)),n&&o.set("destinationId",String(n)),e&&o.set("date",String(e)),[2,c(this,Tr,"f").web.fetchJson("/financial/currencyExchangeRateOpGetExchangeRate?".concat(o.toString()),{method:"POST"})]}))}))},t.prototype.currencyExchangeRateRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/currencyExchangeRate?".concat(t),{method:"GET"})]}))}))},t.prototype.currencyExchangeRateReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/currencyExchangeRate/".concat(t),{method:"GET"})]}))}))},t.prototype.currencyExchangeRateUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/currencyExchangeRate",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.currencyOpReadByCode=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("code",String(t)),[2,c(this,Tr,"f").web.fetchJson("/financial/currencyOpReadByCode?".concat(n.toString()),{method:"POST"})]}))}))},t.prototype.currencyRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/currency?".concat(t),{method:"GET"})]}))}))},t.prototype.currencyReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/currency/".concat(t),{method:"GET"})]}))}))},t.prototype.currencyUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/currency",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.payableCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payable",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.payableDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payable/".concat(t),{method:"DELETE"})]}))}))},t.prototype.payableOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.payableOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.payableOpRepeat=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableOpRepeat/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.payableOpSettle=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableOpSettle",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.payableOpUpdate=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableOpUpdate/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.payableOpUpdatePrepared=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.payableRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payable?".concat(t),{method:"GET"})]}))}))},t.prototype.payableReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payable/".concat(t),{method:"GET"})]}))}))},t.prototype.payableSettlementBillingTitleRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableSettlementBillingTitle?".concat(t),{method:"GET"})]}))}))},t.prototype.payableSettlementBillingTitleReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableSettlementBillingTitle/".concat(t),{method:"GET"})]}))}))},t.prototype.payableSettlementDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableSettlement/".concat(t),{method:"DELETE"})]}))}))},t.prototype.payableSettlementMethodRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableSettlementMethod?".concat(t),{method:"GET"})]}))}))},t.prototype.payableSettlementMethodReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableSettlementMethod/".concat(t),{method:"GET"})]}))}))},t.prototype.payableSettlementRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableSettlement?".concat(t),{method:"GET"})]}))}))},t.prototype.payableSettlementReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payableSettlement/".concat(t),{method:"GET"})]}))}))},t.prototype.payableUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/payable",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.receivableCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivable",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.receivableDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivable/".concat(t),{method:"DELETE"})]}))}))},t.prototype.receivableOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.receivableOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.receivableOpRepeat=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableOpRepeat/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.receivableOpSend=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableOpSend",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.receivableOpSettle=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableOpSettle",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.receivableOpUpdate=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableOpUpdate/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.receivableOpUpdatePrepared=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.receivableRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivable?".concat(t),{method:"GET"})]}))}))},t.prototype.receivableReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivable/".concat(t),{method:"GET"})]}))}))},t.prototype.receivableSettlementBillingTitleRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableSettlementBillingTitle?".concat(t),{method:"GET"})]}))}))},t.prototype.receivableSettlementBillingTitleReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableSettlementBillingTitle/".concat(t),{method:"GET"})]}))}))},t.prototype.receivableSettlementDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableSettlement/".concat(t),{method:"DELETE"})]}))}))},t.prototype.receivableSettlementMethodRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableSettlementMethod?".concat(t),{method:"GET"})]}))}))},t.prototype.receivableSettlementMethodReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableSettlementMethod/".concat(t),{method:"GET"})]}))}))},t.prototype.receivableSettlementRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableSettlement?".concat(t),{method:"GET"})]}))}))},t.prototype.receivableSettlementReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivableSettlement/".concat(t),{method:"GET"})]}))}))},t.prototype.receivableUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tr,"f").web.fetchJson("/financial/receivable",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Tr=new WeakMap;var Ir,Rr=function(){},Nr=function(){},kr=function(){},xr=function(){},Cr=function(){},Lr=function(){},_r=function(){},Dr=function(){},Ur=function(){},Ar=function(){},Gr=function(){},qr=function(){},Fr=function(){},Mr=function(){},Br=Object.freeze({__proto__:null,BillingTitle:Rr,Currency:Nr,CurrencyExchangeRate:kr,FinancialService:jr,Payable:xr,PayableSettlement:Cr,PayableSettlementBillingTitle:Lr,PayableSettlementMethod:_r,Receivable:Dr,ReceivableSettlement:Ur,ReceivableSettlementBillingTitle:Ar,ReceivableSettlementMethod:Gr,Settlement:qr,SettlementBillingTitle:Fr,SettlementMethod:Mr,accounting:sr,billing:yr,credit:Sr,treasury:Er}),Zr=function(){function t(t){Ir.set(this,void 0),s(this,Ir,t,"f")}return t.prototype.dfeNfeProcInCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcIn",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.dfeNfeProcInDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcIn/".concat(t),{method:"DELETE"})]}))}))},t.prototype.dfeNfeProcInOpIncomingInvoiceCreate=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcInOpIncomingInvoiceCreate/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.dfeNfeProcInOpIncomingInvoiceCreateRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcInOpIncomingInvoiceCreateRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.dfeNfeProcInRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcIn?".concat(t),{method:"GET"})]}))}))},t.prototype.dfeNfeProcInReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcIn/".concat(t),{method:"GET"})]}))}))},t.prototype.dfeNfeProcOutDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcOut/".concat(t),{method:"DELETE"})]}))}))},t.prototype.dfeNfeProcOutOpCancel=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcOutOpCancel/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.dfeNfeProcOutOpConfirm=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcOutOpConfirm/".concat(t),{method:"POST"})]}))}))},t.prototype.dfeNfeProcOutOpCorrect=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcOutOpCorrect/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.dfeNfeProcOutOpCreate=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("invoiceId",String(t)),[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcOutOpCreate?".concat(n.toString()),{method:"POST"})]}))}))},t.prototype.dfeNfeProcOutOpDownload=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchBlob("/fiscal/br/dfeNfeProcOutOpDownload",{method:"POST",headers:{"content-type":"application/json",accept:"application/zip"},body:JSON.stringify(t)})]}))}))},t.prototype.dfeNfeProcOutOpOutgoingInvoiceCreate=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcOutOpOutgoingInvoiceCreate/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.dfeNfeProcOutOpSign=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcOutOpSign/".concat(t),{method:"POST"})]}))}))},t.prototype.dfeNfeProcOutOpSignRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcOutOpSignRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.dfeNfeProcOutOpTransmit=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcOutOpTransmit/".concat(t),{method:"POST"})]}))}))},t.prototype.dfeNfeProcOutOpUpload=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcOutOpUpload",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.dfeNfeProcOutRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcOut?".concat(t),{method:"GET"})]}))}))},t.prototype.dfeNfeProcOutReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeNfeProcOut/".concat(t),{method:"GET"})]}))}))},t.prototype.dfeOpReadContent=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchBlob("/fiscal/br/dfeOpReadContent/".concat(t),{method:"POST"})]}))}))},t.prototype.dfeProcEventoNFeInRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeProcEventoNFeIn?".concat(t),{method:"GET"})]}))}))},t.prototype.dfeProcEventoNFeInReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeProcEventoNFeIn/".concat(t),{method:"GET"})]}))}))},t.prototype.dfeProcEventoNFeOutRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeProcEventoNFeOut?".concat(t),{method:"GET"})]}))}))},t.prototype.dfeProcEventoNFeOutReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeProcEventoNFeOut/".concat(t),{method:"GET"})]}))}))},t.prototype.dfeProcInutNFeCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeProcInutNFe",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.dfeProcInutNFeRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeProcInutNFe?".concat(t),{method:"GET"})]}))}))},t.prototype.dfeProcInutNFeReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeProcInutNFe/".concat(t),{method:"GET"})]}))}))},t.prototype.dfeRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfe?".concat(t),{method:"GET"})]}))}))},t.prototype.dfeReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfe/".concat(t),{method:"GET"})]}))}))},t.prototype.dfeResEventoRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeResEvento?".concat(t),{method:"GET"})]}))}))},t.prototype.dfeResEventoReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeResEvento/".concat(t),{method:"GET"})]}))}))},t.prototype.dfeResNFeInOpManifest=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("status",String(n)),[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeResNFeInOpManifest/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.dfeResNFeInRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeResNFeIn?".concat(t),{method:"GET"})]}))}))},t.prototype.dfeResNFeInReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/dfeResNFeIn/".concat(t),{method:"GET"})]}))}))},t.prototype.documentSefazOpFetch=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchJson("/fiscal/br/documentSefazOpFetch",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.spedOpExport=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ir,"f").web.fetchBlob("/fiscal/br/spedOpExport",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Ir=new WeakMap;var Vr,Wr=function(){},zr=function(){},$r=function(){},Hr=function(){},Yr=function(){},Kr=function(){},Qr=function(){},Xr=function(){},tc=function(){},nc=Object.freeze({__proto__:null,Dfe:Wr,DfeNfeProcIn:zr,DfeNfeProcOut:$r,DfeProcEventoNFeIn:Hr,DfeProcEventoNFeOut:Yr,DfeProcInutNFe:Kr,DfeResEvento:Qr,DfeResNFeIn:Xr,FiscalBrService:Zr,TaxIBPT:tc}),ec=function(){function t(t){Vr.set(this,void 0),s(this,Vr,t,"f")}return t.prototype.taxCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/tax",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.taxDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/tax/".concat(t),{method:"DELETE"})]}))}))},t.prototype.taxOpReadByCode=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("fiscalRegionCode",String(t)),n&&e.set("code",String(n)),[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxOpReadByCode?".concat(e.toString()),{method:"POST"})]}))}))},t.prototype.taxRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/tax?".concat(t),{method:"GET"})]}))}))},t.prototype.taxReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/tax/".concat(t),{method:"GET"})]}))}))},t.prototype.taxUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/tax",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.taxationCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.taxationDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxation/".concat(t),{method:"DELETE"})]}))}))},t.prototype.taxationOperationCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxationOperation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.taxationOperationDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxationOperation/".concat(t),{method:"DELETE"})]}))}))},t.prototype.taxationOperationOpReadByCode=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("fiscalRegionCode",String(t)),n&&e.set("code",String(n)),[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxationOperationOpReadByCode?".concat(e.toString()),{method:"POST"})]}))}))},t.prototype.taxationOperationRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxationOperation?".concat(t),{method:"GET"})]}))}))},t.prototype.taxationOperationReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxationOperation/".concat(t),{method:"GET"})]}))}))},t.prototype.taxationOperationUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxationOperation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.taxationRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxation?".concat(t),{method:"GET"})]}))}))},t.prototype.taxationReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxation/".concat(t),{method:"GET"})]}))}))},t.prototype.taxationRuleCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxationRule",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.taxationRuleDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxationRule/".concat(t),{method:"DELETE"})]}))}))},t.prototype.taxationRuleRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxationRule?".concat(t),{method:"GET"})]}))}))},t.prototype.taxationRuleReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxationRule/".concat(t),{method:"GET"})]}))}))},t.prototype.taxationRuleUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxationRule",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.taxationUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Vr,"f").web.fetchJson("/fiscal/taxation/taxation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Vr=new WeakMap;var oc,ic=function(){},rc=function(){},cc=function(){},sc=function(){},uc=Object.freeze({__proto__:null,Tax:ic,Taxation:rc,TaxationOperation:cc,TaxationRule:sc,TaxationService:ec}),ac=function(){function t(t){oc.set(this,void 0),s(this,oc,t,"f")}return t.prototype.fiscalProfileOperationCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfileOperation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.fiscalProfileOperationDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfileOperation/".concat(t),{method:"DELETE"})]}))}))},t.prototype.fiscalProfileOperationOpReadByCode=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("fiscalRegionCode",String(t)),n&&e.set("code",String(n)),[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfileOperationOpReadByCode?".concat(e.toString()),{method:"POST"})]}))}))},t.prototype.fiscalProfileOperationRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfileOperation?".concat(t),{method:"GET"})]}))}))},t.prototype.fiscalProfileOperationReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfileOperation/".concat(t),{method:"GET"})]}))}))},t.prototype.fiscalProfileOperationUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfileOperation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.fiscalProfilePersonCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfilePerson",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.fiscalProfilePersonDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfilePerson/".concat(t),{method:"DELETE"})]}))}))},t.prototype.fiscalProfilePersonRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfilePerson?".concat(t),{method:"GET"})]}))}))},t.prototype.fiscalProfilePersonReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfilePerson/".concat(t),{method:"GET"})]}))}))},t.prototype.fiscalProfilePersonUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfilePerson",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.fiscalProfileProductCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfileProduct",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.fiscalProfileProductDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfileProduct/".concat(t),{method:"DELETE"})]}))}))},t.prototype.fiscalProfileProductRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfileProduct?".concat(t),{method:"GET"})]}))}))},t.prototype.fiscalProfileProductReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfileProduct/".concat(t),{method:"GET"})]}))}))},t.prototype.fiscalProfileProductUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalProfileProduct",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.fiscalRegionCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalRegion",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.fiscalRegionDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalRegion/".concat(t),{method:"DELETE"})]}))}))},t.prototype.fiscalRegionOpReadByCode=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("code",String(t)),[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalRegionOpReadByCode?".concat(n.toString()),{method:"POST"})]}))}))},t.prototype.fiscalRegionRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalRegion?".concat(t),{method:"GET"})]}))}))},t.prototype.fiscalRegionReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalRegion/".concat(t),{method:"GET"})]}))}))},t.prototype.fiscalRegionUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalRegion",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.fiscalYearCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalYear",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.fiscalYearDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalYear/".concat(t),{method:"DELETE"})]}))}))},t.prototype.fiscalYearOpPartialClosure=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("date",String(n)),[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalYearOpPartialClosure/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.fiscalYearOpPartialClosureRevert=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("date",String(n)),[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalYearOpPartialClosureRevert/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.fiscalYearOpPublish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalYearOpPublish/".concat(t),{method:"POST"})]}))}))},t.prototype.fiscalYearOpPublishRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalYearOpPublishRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.fiscalYearOpRead=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("companyId",String(t)),n&&e.set("date",String(n)),[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalYearOpRead?".concat(e.toString()),{method:"POST"})]}))}))},t.prototype.fiscalYearRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalYear?".concat(t),{method:"GET"})]}))}))},t.prototype.fiscalYearReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalYear/".concat(t),{method:"GET"})]}))}))},t.prototype.fiscalYearUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/fiscalYear",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingInvoiceCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoice",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingInvoiceDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoice/".concat(t),{method:"DELETE"})]}))}))},t.prototype.incomingInvoiceItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingInvoiceItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.incomingInvoiceItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceItem?".concat(t),{method:"GET"})]}))}))},t.prototype.incomingInvoiceItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceItem/".concat(t),{method:"GET"})]}))}))},t.prototype.incomingInvoiceItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingInvoiceOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.incomingInvoiceOpApproveDivergences=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceOpApproveDivergences/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.incomingInvoiceOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.incomingInvoiceOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingInvoiceOpCreateFromIncomingList=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceOpCreateFromIncomingList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingInvoiceOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.incomingInvoiceOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.incomingInvoiceOpReject=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceOpReject/".concat(t),{method:"POST"})]}))}))},t.prototype.incomingInvoiceOpRejectRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceOpRejectRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.incomingInvoiceOpReturn=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceOpReturn/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.incomingInvoiceOpTaxationCalc=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceOpTaxationCalc/".concat(t),{method:"POST"})]}))}))},t.prototype.incomingInvoiceOpUpdatePrepared=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoiceOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingInvoicePaymentCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoicePayment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingInvoicePaymentDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoicePayment/".concat(t),{method:"DELETE"})]}))}))},t.prototype.incomingInvoicePaymentRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoicePayment?".concat(t),{method:"GET"})]}))}))},t.prototype.incomingInvoicePaymentReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoicePayment/".concat(t),{method:"GET"})]}))}))},t.prototype.incomingInvoicePaymentUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoicePayment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingInvoiceRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoice?".concat(t),{method:"GET"})]}))}))},t.prototype.incomingInvoiceReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoice/".concat(t),{method:"GET"})]}))}))},t.prototype.incomingInvoiceUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/incomingInvoice",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.invoiceItemAccountingCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceItemAccounting",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.invoiceItemAccountingDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceItemAccounting/".concat(t),{method:"DELETE"})]}))}))},t.prototype.invoiceItemAccountingRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceItemAccounting?".concat(t),{method:"GET"})]}))}))},t.prototype.invoiceItemAccountingReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceItemAccounting/".concat(t),{method:"GET"})]}))}))},t.prototype.invoiceItemAccountingUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceItemAccounting",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.invoiceReferenceCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceReference",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.invoiceReferenceDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceReference/".concat(t),{method:"DELETE"})]}))}))},t.prototype.invoiceReferenceRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceReference?".concat(t),{method:"GET"})]}))}))},t.prototype.invoiceReferenceReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceReference/".concat(t),{method:"GET"})]}))}))},t.prototype.invoiceReferenceUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceReference",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.invoiceSeriesCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceSeries",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.invoiceSeriesDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceSeries/".concat(t),{method:"DELETE"})]}))}))},t.prototype.invoiceSeriesOpGetNextNumber=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceSeriesOpGetNextNumber/".concat(t),{method:"POST"})]}))}))},t.prototype.invoiceSeriesOpUpdateLastNumber=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("lastNumber",String(n)),[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceSeriesOpUpdateLastNumber/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.invoiceSeriesRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceSeries?".concat(t),{method:"GET"})]}))}))},t.prototype.invoiceSeriesReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceSeries/".concat(t),{method:"GET"})]}))}))},t.prototype.invoiceSeriesUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/invoiceSeries",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.outgoingInvoiceCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoice",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.outgoingInvoiceDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoice/".concat(t),{method:"DELETE"})]}))}))},t.prototype.outgoingInvoiceItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.outgoingInvoiceItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.outgoingInvoiceItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceItem?".concat(t),{method:"GET"})]}))}))},t.prototype.outgoingInvoiceItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceItem/".concat(t),{method:"GET"})]}))}))},t.prototype.outgoingInvoiceItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.outgoingInvoiceOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.outgoingInvoiceOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.outgoingInvoiceOpCancel=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceOpCancel/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.outgoingInvoiceOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.outgoingInvoiceOpDiscount=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceOpDiscount/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.outgoingInvoiceOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.outgoingInvoiceOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.outgoingInvoiceOpReturn=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceOpReturn/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.outgoingInvoiceOpTaxationCalc=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceOpTaxationCalc/".concat(t),{method:"POST"})]}))}))},t.prototype.outgoingInvoiceOpUpdatePrepared=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoiceOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.outgoingInvoicePaymentCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoicePayment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.outgoingInvoicePaymentDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoicePayment/".concat(t),{method:"DELETE"})]}))}))},t.prototype.outgoingInvoicePaymentRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoicePayment?".concat(t),{method:"GET"})]}))}))},t.prototype.outgoingInvoicePaymentReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoicePayment/".concat(t),{method:"GET"})]}))}))},t.prototype.outgoingInvoicePaymentUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoicePayment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.outgoingInvoiceRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoice?".concat(t),{method:"GET"})]}))}))},t.prototype.outgoingInvoiceReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoice/".concat(t),{method:"GET"})]}))}))},t.prototype.outgoingInvoiceUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,oc,"f").web.fetchJson("/fiscal/outgoingInvoice",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();oc=new WeakMap;var pc,hc=function(){},fc=function(){},dc=function(){},lc=function(){},mc=function(){},vc=function(){},yc=function(){},gc=function(){},bc=function(){},wc=function(){},Oc=function(){},Sc=function(){},Jc=function(){},Tc=function(){},Pc=function(){},Ec=function(){},jc=function(){},Ic=Object.freeze({__proto__:null,FiscalProfileOperation:hc,FiscalProfilePerson:fc,FiscalProfileProduct:dc,FiscalRegion:lc,FiscalService:ac,FiscalYear:mc,IncomingInvoice:vc,IncomingInvoiceItem:yc,IncomingInvoicePayment:gc,Invoice:bc,InvoiceItem:wc,InvoiceItemAccounting:Oc,InvoicePayment:Sc,InvoiceReference:Jc,InvoiceSeries:Tc,OutgoingInvoice:Pc,OutgoingInvoiceItem:Ec,OutgoingInvoicePayment:jc,br:nc,taxation:uc}),Rc=function(){function t(t){pc.set(this,void 0),s(this,pc,t,"f")}return t.prototype.shippingCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pc,"f").web.fetchJson("/logistic/shipping",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.shippingDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pc,"f").web.fetchJson("/logistic/shipping/".concat(t),{method:"DELETE"})]}))}))},t.prototype.shippingItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pc,"f").web.fetchJson("/logistic/shippingItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.shippingItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pc,"f").web.fetchJson("/logistic/shippingItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.shippingItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pc,"f").web.fetchJson("/logistic/shippingItem?".concat(t),{method:"GET"})]}))}))},t.prototype.shippingItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pc,"f").web.fetchJson("/logistic/shippingItem/".concat(t),{method:"GET"})]}))}))},t.prototype.shippingItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pc,"f").web.fetchJson("/logistic/shippingItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.shippingOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pc,"f").web.fetchJson("/logistic/shippingOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.shippingRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pc,"f").web.fetchJson("/logistic/shipping?".concat(t),{method:"GET"})]}))}))},t.prototype.shippingReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pc,"f").web.fetchJson("/logistic/shipping/".concat(t),{method:"GET"})]}))}))},t.prototype.shippingUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pc,"f").web.fetchJson("/logistic/shipping",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();pc=new WeakMap;var Nc,kc=function(){},xc=function(){},Cc=Object.freeze({__proto__:null,IncomingShipping:kc,LogisticService:Rc,ShippingItem:xc}),Lc=function(){function t(t){Nc.set(this,void 0),s(this,Nc,t,"f")}return t.prototype.addressCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/address",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.addressDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/address/".concat(t),{method:"DELETE"})]}))}))},t.prototype.addressProfileCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/addressProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.addressProfileDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/addressProfile/".concat(t),{method:"DELETE"})]}))}))},t.prototype.addressProfileRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/addressProfile?".concat(t),{method:"GET"})]}))}))},t.prototype.addressProfileReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/addressProfile/".concat(t),{method:"GET"})]}))}))},t.prototype.addressProfileUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/addressProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.addressRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/address?".concat(t),{method:"GET"})]}))}))},t.prototype.addressReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/address/".concat(t),{method:"GET"})]}))}))},t.prototype.addressUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/address",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.handlingUnitCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/handlingUnit",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.handlingUnitDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/handlingUnit/".concat(t),{method:"DELETE"})]}))}))},t.prototype.handlingUnitRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/handlingUnit?".concat(t),{method:"GET"})]}))}))},t.prototype.handlingUnitReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/handlingUnit/".concat(t),{method:"GET"})]}))}))},t.prototype.handlingUnitUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/handlingUnit",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingListCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingListDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingList/".concat(t),{method:"DELETE"})]}))}))},t.prototype.incomingListItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingListItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingListItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingListItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.incomingListItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingListItem?".concat(t),{method:"GET"})]}))}))},t.prototype.incomingListItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingListItem/".concat(t),{method:"GET"})]}))}))},t.prototype.incomingListItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingListItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingListOpImportFromOutgoingList=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingListOpImportFromOutgoingList/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.incomingListOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingListOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.incomingListOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingListOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.incomingListRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingList?".concat(t),{method:"GET"})]}))}))},t.prototype.incomingListReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingList/".concat(t),{method:"GET"})]}))}))},t.prototype.incomingListUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingList",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.incomingRequestItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingRequestItem?".concat(t),{method:"GET"})]}))}))},t.prototype.incomingRequestItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingRequestItem/".concat(t),{method:"GET"})]}))}))},t.prototype.incomingRequestRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingRequest?".concat(t),{method:"GET"})]}))}))},t.prototype.incomingRequestReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/incomingRequest/".concat(t),{method:"GET"})]}))}))},t.prototype.inventoryAdjustmentCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryAdjustment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.inventoryAdjustmentDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryAdjustment/".concat(t),{method:"DELETE"})]}))}))},t.prototype.inventoryAdjustmentOpCreate=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,n&&o.set("stockId",String(n)),e&&o.set("quantity",String(e)),[2,c(this,Nc,"f").web.fetchJson("/material/inventoryAdjustmentOpCreate/".concat(t,"?").concat(o.toString()),{method:"POST"})]}))}))},t.prototype.inventoryAdjustmentRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryAdjustment?".concat(t),{method:"GET"})]}))}))},t.prototype.inventoryAdjustmentReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryAdjustment/".concat(t),{method:"GET"})]}))}))},t.prototype.inventoryAdjustmentUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryAdjustment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.inventoryCheckCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryCheck",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.inventoryCheckDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryCheck/".concat(t),{method:"DELETE"})]}))}))},t.prototype.inventoryCheckRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryCheck?".concat(t),{method:"GET"})]}))}))},t.prototype.inventoryCheckReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryCheck/".concat(t),{method:"GET"})]}))}))},t.prototype.inventoryCheckUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryCheck",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.inventoryCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventory",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.inventoryDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventory/".concat(t),{method:"DELETE"})]}))}))},t.prototype.inventoryOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.inventoryOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.inventoryOpFinish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryOpFinish/".concat(t),{method:"POST"})]}))}))},t.prototype.inventoryOpFinishRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryOpFinishRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.inventoryOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.inventoryOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.inventoryOpProcess=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryOpProcess/".concat(t),{method:"POST"})]}))}))},t.prototype.inventoryOpProcessRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryOpProcessRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.inventoryOpStart=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryOpStart/".concat(t),{method:"POST"})]}))}))},t.prototype.inventoryOpStartRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryOpStartRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.inventoryRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventory?".concat(t),{method:"GET"})]}))}))},t.prototype.inventoryReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventory/".concat(t),{method:"GET"})]}))}))},t.prototype.inventoryStockCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryStock",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.inventoryStockDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryStock/".concat(t),{method:"DELETE"})]}))}))},t.prototype.inventoryStockOpCreate=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("stockId",String(n)),[2,c(this,Nc,"f").web.fetchJson("/material/inventoryStockOpCreate/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.inventoryStockRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryStock?".concat(t),{method:"GET"})]}))}))},t.prototype.inventoryStockReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryStock/".concat(t),{method:"GET"})]}))}))},t.prototype.inventoryStockUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventoryStock",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.inventoryUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/inventory",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.lotCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/lot",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.lotDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/lot/".concat(t),{method:"DELETE"})]}))}))},t.prototype.lotRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/lot?".concat(t),{method:"GET"})]}))}))},t.prototype.lotReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/lot/".concat(t),{method:"GET"})]}))}))},t.prototype.lotUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/lot",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.movingOrderCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrder",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.movingOrderDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrder/".concat(t),{method:"DELETE"})]}))}))},t.prototype.movingOrderItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.movingOrderItemOpFinish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderItemOpFinish/".concat(t),{method:"POST"})]}))}))},t.prototype.movingOrderItemOpLoad=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderItemOpLoad/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.movingOrderItemOpStart=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderItemOpStart/".concat(t),{method:"POST"})]}))}))},t.prototype.movingOrderItemOpStartRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderItemOpStartRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.movingOrderItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderItem?".concat(t),{method:"GET"})]}))}))},t.prototype.movingOrderItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderItem/".concat(t),{method:"GET"})]}))}))},t.prototype.movingOrderItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.movingOrderOpAllocateStock=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderOpAllocateStock/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.movingOrderOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.movingOrderOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.movingOrderOpFinish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderOpFinish/".concat(t),{method:"POST"})]}))}))},t.prototype.movingOrderOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.movingOrderOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.movingOrderOpStart=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderOpStart/".concat(t),{method:"POST"})]}))}))},t.prototype.movingOrderOpStartRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderOpStartRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.movingOrderOpUnload=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("userId",String(n)),[2,c(this,Nc,"f").web.fetchJson("/material/movingOrderOpUnload/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.movingOrderRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrder?".concat(t),{method:"GET"})]}))}))},t.prototype.movingOrderReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrder/".concat(t),{method:"GET"})]}))}))},t.prototype.movingOrderUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/movingOrder",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.outgoingListDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/outgoingList/".concat(t),{method:"DELETE"})]}))}))},t.prototype.outgoingListOpCreateFromReservation=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Nc,"f").web.fetchJson("/material/outgoingListOpCreateFromReservation/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.outgoingListOpMerge=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/outgoingListOpMerge",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.outgoingListOpOutgoingInvoiceCreate=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Nc,"f").web.fetchJson("/material/outgoingListOpOutgoingInvoiceCreate/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.outgoingListOpOutgoingInvoiceCreateRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/outgoingListOpOutgoingInvoiceCreateRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.outgoingListOpPacked=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/outgoingListOpPacked/".concat(t),{method:"POST"})]}))}))},t.prototype.outgoingListOpPackedRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/outgoingListOpPackedRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.outgoingListOpVolumeCreateAuto=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Nc,"f").web.fetchJson("/material/outgoingListOpVolumeCreateAuto/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.outgoingListRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/outgoingList?".concat(t),{method:"GET"})]}))}))},t.prototype.outgoingListReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/outgoingList/".concat(t),{method:"GET"})]}))}))},t.prototype.pickingOrderCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrder",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.pickingOrderDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrder/".concat(t),{method:"DELETE"})]}))}))},t.prototype.pickingOrderItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.pickingOrderItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.pickingOrderItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderItem?".concat(t),{method:"GET"})]}))}))},t.prototype.pickingOrderItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderItem/".concat(t),{method:"GET"})]}))}))},t.prototype.pickingOrderItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.pickingOrderOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.pickingOrderOpDistribute=function(t,n,e,r){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,n&&o.set("outgoingListId",String(n)),e&&o.set("stockId",String(e)),r&&o.set("quantity",String(r)),[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpDistribute/".concat(t,"?").concat(o.toString()),{method:"POST"})]}))}))},t.prototype.pickingOrderOpDistributeAuto=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpDistributeAuto/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderOpDistributeRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpDistributeRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderOpFinish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpFinish/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderOpGroup=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpGroup",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.pickingOrderOpGroupRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpGroupRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderOpReservationFinish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpReservationFinish/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderOpReservationFinishRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpReservationFinishRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderOpUngroup=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpUngroup/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderOpUngroupDivergent=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpUngroupDivergent/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderOpUngroupRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrderOpUngroupRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.pickingOrderRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrder?".concat(t),{method:"GET"})]}))}))},t.prototype.pickingOrderReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrder/".concat(t),{method:"GET"})]}))}))},t.prototype.pickingOrderUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingOrder",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.pickingProfileCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.pickingProfileDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingProfile/".concat(t),{method:"DELETE"})]}))}))},t.prototype.pickingProfileRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingProfile?".concat(t),{method:"GET"})]}))}))},t.prototype.pickingProfileReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingProfile/".concat(t),{method:"GET"})]}))}))},t.prototype.pickingProfileUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/pickingProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.qualityCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/quality",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.qualityDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/quality/".concat(t),{method:"DELETE"})]}))}))},t.prototype.qualityRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/quality?".concat(t),{method:"GET"})]}))}))},t.prototype.qualityReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/quality/".concat(t),{method:"GET"})]}))}))},t.prototype.qualityUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/quality",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.reservationCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.reservationDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservation/".concat(t),{method:"DELETE"})]}))}))},t.prototype.reservationItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationItem?".concat(t),{method:"GET"})]}))}))},t.prototype.reservationItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationItem/".concat(t),{method:"GET"})]}))}))},t.prototype.reservationOpAllocate=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpAllocate/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.reservationOpAllocateAuto=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpAllocateAuto/".concat(t),{method:"POST"})]}))}))},t.prototype.reservationOpAllocateAutoRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpAllocateAutoRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.reservationOpAllocateRevert=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpAllocateRevert/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.reservationOpAllocateStock=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,n&&o.set("stockId",String(n)),e&&o.set("quantity",String(e)),[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpAllocateStock/".concat(t,"?").concat(o.toString()),{method:"POST"})]}))}))},t.prototype.reservationOpAllocateStockRevert=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,n&&o.set("stockId",String(n)),e&&o.set("quantity",String(e)),[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpAllocateStockRevert/".concat(t,"?").concat(o.toString()),{method:"POST"})]}))}))},t.prototype.reservationOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.reservationOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.reservationOpFinish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpFinish/".concat(t),{method:"POST"})]}))}))},t.prototype.reservationOpFinishDivergent=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpFinishDivergent/".concat(t),{method:"POST"})]}))}))},t.prototype.reservationOpFinishRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpFinishRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.reservationOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.reservationOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.reservationOpStart=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpStart/".concat(t),{method:"POST"})]}))}))},t.prototype.reservationOpStartRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationOpStartRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.reservationRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservation?".concat(t),{method:"GET"})]}))}))},t.prototype.reservationReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservation/".concat(t),{method:"GET"})]}))}))},t.prototype.reservationTargetCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationTarget",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.reservationTargetDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationTarget/".concat(t),{method:"DELETE"})]}))}))},t.prototype.reservationTargetRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationTarget?".concat(t),{method:"GET"})]}))}))},t.prototype.reservationTargetReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationTarget/".concat(t),{method:"GET"})]}))}))},t.prototype.reservationTargetUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservationTarget",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.reservationUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/reservation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.serialCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/serial",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.serialDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/serial/".concat(t),{method:"DELETE"})]}))}))},t.prototype.serialRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/serial?".concat(t),{method:"GET"})]}))}))},t.prototype.serialReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/serial/".concat(t),{method:"GET"})]}))}))},t.prototype.serialUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/serial",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.stockAvailabilityRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockAvailability?".concat(t),{method:"GET"})]}))}))},t.prototype.stockClusterCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockCluster",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.stockClusterDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockCluster/".concat(t),{method:"DELETE"})]}))}))},t.prototype.stockClusterRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockCluster?".concat(t),{method:"GET"})]}))}))},t.prototype.stockClusterReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockCluster/".concat(t),{method:"GET"})]}))}))},t.prototype.stockClusterUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockCluster",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.stockManagementCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockManagement",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.stockManagementDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockManagement/".concat(t),{method:"DELETE"})]}))}))},t.prototype.stockManagementItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockManagementItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.stockManagementItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockManagementItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.stockManagementItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockManagementItem?".concat(t),{method:"GET"})]}))}))},t.prototype.stockManagementItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockManagementItem/".concat(t),{method:"GET"})]}))}))},t.prototype.stockManagementItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockManagementItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.stockManagementOpImport=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockManagementOpImport",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.stockManagementOpUpdateAverageDailyConsumption=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockManagementOpUpdateAverageDailyConsumption",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.stockManagementRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockManagement?".concat(t),{method:"GET"})]}))}))},t.prototype.stockManagementReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockManagement/".concat(t),{method:"GET"})]}))}))},t.prototype.stockManagementUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockManagement",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.stockOpBarcode=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockOpBarcode",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.stockOpUpdate=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Nc,"f").web.fetchJson("/material/stockOpUpdate/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.stockPointRead=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("dateTime",String(t)),[2,c(this,Nc,"f").web.fetchJson("/material/stockPoint?".concat(n,"?").concat(e.toString()),{method:"GET"})]}))}))},t.prototype.stockRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stock?".concat(t),{method:"GET"})]}))}))},t.prototype.stockReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stock/".concat(t),{method:"GET"})]}))}))},t.prototype.stockTransactionOpRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockTransactionOpRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.stockTransactionRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockTransaction?".concat(t),{method:"GET"})]}))}))},t.prototype.stockTransactionReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/stockTransaction/".concat(t),{method:"GET"})]}))}))},t.prototype.volumeCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/volume",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.volumeDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/volume/".concat(t),{method:"DELETE"})]}))}))},t.prototype.volumeItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/volumeItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.volumeItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/volumeItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.volumeItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/volumeItem?".concat(t),{method:"GET"})]}))}))},t.prototype.volumeItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/volumeItem/".concat(t),{method:"GET"})]}))}))},t.prototype.volumeOpCheck=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,Nc,"f").web.fetchJson("/material/volumeOpCheck/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.volumeOpCheckRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/volumeOpCheckRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.volumeOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/volumeOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.volumeOpHandlingUnitSet=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("handlingUnitId",String(n)),[2,c(this,Nc,"f").web.fetchJson("/material/volumeOpHandlingUnitSet/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.volumeRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/volume?".concat(t),{method:"GET"})]}))}))},t.prototype.volumeReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/volume/".concat(t),{method:"GET"})]}))}))},t.prototype.volumeUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/volume",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.warehouseCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/warehouse",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.warehouseDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/warehouse/".concat(t),{method:"DELETE"})]}))}))},t.prototype.warehouseRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/warehouse?".concat(t),{method:"GET"})]}))}))},t.prototype.warehouseReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/warehouse/".concat(t),{method:"GET"})]}))}))},t.prototype.warehouseUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nc,"f").web.fetchJson("/material/warehouse",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Nc=new WeakMap;var _c,Dc=function(){},Uc=function(){},Ac=function(){},Gc=function(){},qc=function(){},Fc=function(){},Mc=function(){},Bc=function(){},Zc=function(){},Vc=function(){},Wc=function(){},zc=function(){},$c=function(){},Hc=function(){},Yc=function(){},Kc=function(){},Qc=function(){},Xc=function(){},ts=function(){},ns=function(){},es=function(){},os=function(){},is=function(){},rs=function(){},cs=function(){},ss=function(){},us=function(){},as=function(){},ps=function(){},hs=function(){},fs=function(){},ds=function(){},ls=function(){},ms=function(){},vs=Object.freeze({__proto__:null,Address:Dc,AddressProfile:Uc,HandlingUnit:Ac,IncomingList:Gc,IncomingListItem:qc,IncomingRequest:Fc,IncomingRequestItem:Mc,Inventory:Bc,InventoryAdjustment:Zc,InventoryCheck:Vc,InventoryStock:Wc,Lot:zc,MaterialService:Lc,MovingOrder:$c,MovingOrderItem:Hc,OutgoingList:Yc,PickingOrder:Kc,PickingOrderItem:Qc,PickingProfile:Xc,Quality:ts,Reservation:ns,ReservationItem:es,ReservationTarget:os,Schedule:is,Serial:rs,Stock:cs,StockAvailability:ss,StockCluster:us,StockData:as,StockManagement:ps,StockManagementItem:hs,StockTransaction:fs,Volume:ds,VolumeItem:ls,Warehouse:ms}),ys=function(){function t(t){_c.set(this,void 0),s(this,_c,t,"f")}return t.prototype.priceFormationCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.priceFormationDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormation/".concat(t),{method:"DELETE"})]}))}))},t.prototype.priceFormationItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormationItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.priceFormationItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormationItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.priceFormationItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormationItem?".concat(t),{method:"GET"})]}))}))},t.prototype.priceFormationItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormationItem/".concat(t),{method:"GET"})]}))}))},t.prototype.priceFormationItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormationItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.priceFormationOpCalculate=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormationOpCalculate/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.priceFormationOpClone=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormationOpClone/".concat(t),{method:"POST"})]}))}))},t.prototype.priceFormationOpSimulation=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormationOpSimulation/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.priceFormationRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormation?".concat(t),{method:"GET"})]}))}))},t.prototype.priceFormationReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormation/".concat(t),{method:"GET"})]}))}))},t.prototype.priceFormationUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceFormation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.priceListCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.priceListDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceList/".concat(t),{method:"DELETE"})]}))}))},t.prototype.priceListItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceListItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.priceListItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceListItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.priceListItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceListItem?".concat(t),{method:"GET"})]}))}))},t.prototype.priceListItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceListItem/".concat(t),{method:"GET"})]}))}))},t.prototype.priceListItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceListItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.priceListRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceList?".concat(t),{method:"GET"})]}))}))},t.prototype.priceListReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceList/".concat(t),{method:"GET"})]}))}))},t.prototype.priceListUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/priceList",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.quoteCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quote",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.quoteDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quote/".concat(t),{method:"DELETE"})]}))}))},t.prototype.quoteItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.quoteItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.quoteItemOpReject=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItemOpReject/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteItemOpRejectRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItemOpRejectRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteItemProposalCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItemProposal",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.quoteItemProposalDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItemProposal/".concat(t),{method:"DELETE"})]}))}))},t.prototype.quoteItemProposalOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItemProposalOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteItemProposalOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItemProposalOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteItemProposalOpReject=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItemProposalOpReject/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteItemProposalOpRejectRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItemProposalOpRejectRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteItemProposalRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItemProposal?".concat(t),{method:"GET"})]}))}))},t.prototype.quoteItemProposalReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItemProposal/".concat(t),{method:"GET"})]}))}))},t.prototype.quoteItemProposalUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItemProposal",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.quoteItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItem?".concat(t),{method:"GET"})]}))}))},t.prototype.quoteItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItem/".concat(t),{method:"GET"})]}))}))},t.prototype.quoteItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.quoteOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpCancel=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpCancel/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpCancelRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpCancelRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.quoteOpFill=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpFill/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpFillRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpFillRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpReject=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpReject/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpRejectRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpRejectRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpStart=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpStart/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpStartRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpStartRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpSubmit=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpSubmit/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpSubmitRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quoteOpSubmitRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quote?".concat(t),{method:"GET"})]}))}))},t.prototype.quoteReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quote/".concat(t),{method:"GET"})]}))}))},t.prototype.quoteUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/quote",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.saleCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/sale",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.saleDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/sale/".concat(t),{method:"DELETE"})]}))}))},t.prototype.saleItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.saleItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.saleItemOpUpdatePrepared=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleItemOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.saleItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleItem?".concat(t),{method:"GET"})]}))}))},t.prototype.saleItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleItem/".concat(t),{method:"GET"})]}))}))},t.prototype.saleItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.saleOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.saleOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.saleOpApproveUnconditionally=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpApproveUnconditionally/".concat(t),{method:"POST"})]}))}))},t.prototype.saleOpCancel=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpCancel/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.saleOpCancelRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpCancelRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.saleOpClone=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpClone/".concat(t),{method:"POST"})]}))}))},t.prototype.saleOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.saleOpFinishRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpFinishRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.saleOpForwardAuto=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpForwardAuto/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.saleOpMerge=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpMerge",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.saleOpMergeRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpMergeRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.saleOpPickingOrderCreate=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpPickingOrderCreate/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.saleOpPickingOrderCreateRevert=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("pickingOrderId",String(n)),[2,c(this,_c,"f").web.fetchJson("/sale/saleOpPickingOrderCreateRevert/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.saleOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.saleOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.saleOpShipmentAssign=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("shipmentId",String(n)),[2,c(this,_c,"f").web.fetchJson("/sale/saleOpShipmentAssign/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.saleOpShipmentAssignRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpShipmentAssignRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.saleOpSplit=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpSplit/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.saleOpTaxationCalc=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpTaxationCalc/".concat(t),{method:"POST"})]}))}))},t.prototype.saleOpUpdatePrepared=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.salePaymentCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/salePayment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.salePaymentDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/salePayment/".concat(t),{method:"DELETE"})]}))}))},t.prototype.salePaymentRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/salePayment?".concat(t),{method:"GET"})]}))}))},t.prototype.salePaymentReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/salePayment/".concat(t),{method:"GET"})]}))}))},t.prototype.salePaymentUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/salePayment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.saleProfileCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.saleProfileDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleProfile/".concat(t),{method:"DELETE"})]}))}))},t.prototype.saleProfileRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleProfile?".concat(t),{method:"GET"})]}))}))},t.prototype.saleProfileReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleProfile/".concat(t),{method:"GET"})]}))}))},t.prototype.saleProfileUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/saleProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.saleRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/sale?".concat(t),{method:"GET"})]}))}))},t.prototype.saleReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/sale/".concat(t),{method:"GET"})]}))}))},t.prototype.saleUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,_c,"f").web.fetchJson("/sale/sale",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();_c=new WeakMap;var gs,bs=function(){},ws=function(){},Os=function(){},Ss=function(){},Js=function(){},Ts=function(){},Ps=function(){},Es=function(){},js=function(){},Is=function(){},Rs=function(){},Ns=function(){},ks=function(){},xs=Object.freeze({__proto__:null,PriceFormation:bs,PriceFormationItem:ws,PriceFormationSimulation:Os,PriceFormationSimulationItem:Ss,PriceListRetail:Js,PriceListRetailItem:Ts,Quote:Ps,QuoteItem:Es,QuoteItemProposal:js,Sale:Is,SaleItem:Rs,SalePayment:Ns,SaleProfile:ks,SaleService:ys}),Cs=function(){function t(t){gs.set(this,void 0),s(this,gs,t,"f")}return t.prototype.shipmentCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.shipmentDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipment/".concat(t),{method:"DELETE"})]}))}))},t.prototype.shipmentOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpCheckFinish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpCheckFinish/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpCheckFinishRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpCheckFinishRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpCheckIgnore=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpCheckIgnore/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpCheckStart=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpCheckStart/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpCheckStartRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpCheckStartRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpFinish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpFinish/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpFinishRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpFinishRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpLoadIgnore=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpLoadIgnore/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpLoadStart=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpLoadStart/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpLoadStartRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpLoadStartRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpLoadVolume=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("volumeId",String(n)),[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpLoadVolume/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.shipmentOpOutgoingInvoiceBind=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("outgoingInvoiceId",String(n)),[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpOutgoingInvoiceBind/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.shipmentOpOutgoingInvoiceBindRevert=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("outgoingInvoiceId",String(n)),[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpOutgoingInvoiceBindRevert/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.shipmentOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipmentOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.shipmentRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipment?".concat(t),{method:"GET"})]}))}))},t.prototype.shipmentReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipment/".concat(t),{method:"GET"})]}))}))},t.prototype.shipmentUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gs,"f").web.fetchJson("/shipping/shipment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();gs=new WeakMap;var Ls,_s=function(){},Ds=Object.freeze({__proto__:null,Shipment:_s,ShippingService:Cs}),Us=function(){function t(t){Ls.set(this,void 0),s(this,Ls,t,"f")}return t.prototype.bomCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/bom",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.bomDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/bom/".concat(t),{method:"DELETE"})]}))}))},t.prototype.bomItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/bomItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.bomItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/bomItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.bomItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/bomItem?".concat(t),{method:"GET"})]}))}))},t.prototype.bomItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/bomItem/".concat(t),{method:"GET"})]}))}))},t.prototype.bomItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/bomItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.bomOpClone=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/bomOpClone/".concat(t),{method:"POST"})]}))}))},t.prototype.bomRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/bom?".concat(t),{method:"GET"})]}))}))},t.prototype.bomReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/bom/".concat(t),{method:"GET"})]}))}))},t.prototype.bomUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/bom",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.operationCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.operationDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operation/".concat(t),{method:"DELETE"})]}))}))},t.prototype.operationRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operation?".concat(t),{method:"GET"})]}))}))},t.prototype.operationReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operation/".concat(t),{method:"GET"})]}))}))},t.prototype.operationTypeAccountCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operationTypeAccount",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.operationTypeAccountDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operationTypeAccount/".concat(t),{method:"DELETE"})]}))}))},t.prototype.operationTypeAccountRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operationTypeAccount?".concat(t),{method:"GET"})]}))}))},t.prototype.operationTypeAccountReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operationTypeAccount/".concat(t),{method:"GET"})]}))}))},t.prototype.operationTypeAccountUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operationTypeAccount",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.operationTypeCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operationType",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.operationTypeDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operationType/".concat(t),{method:"DELETE"})]}))}))},t.prototype.operationTypeRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operationType?".concat(t),{method:"GET"})]}))}))},t.prototype.operationTypeReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operationType/".concat(t),{method:"GET"})]}))}))},t.prototype.operationTypeUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operationType",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.operationUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/operation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionBatchCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionBatch",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionBatchDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionBatch/".concat(t),{method:"DELETE"})]}))}))},t.prototype.productionBatchOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionBatchOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.productionBatchOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionBatchOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.productionBatchOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionBatchOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.productionBatchOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionBatchOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.productionBatchRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionBatch?".concat(t),{method:"GET"})]}))}))},t.prototype.productionBatchReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionBatch/".concat(t),{method:"GET"})]}))}))},t.prototype.productionBatchUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionBatch",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionOrderCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionOrder",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionOrderDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionOrder/".concat(t),{method:"DELETE"})]}))}))},t.prototype.productionOrderOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionOrderOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.productionOrderOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionOrderOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.productionOrderOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionOrderOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionOrderOpFinish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionOrderOpFinish/".concat(t),{method:"POST"})]}))}))},t.prototype.productionOrderOpFinishRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionOrderOpFinishRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.productionOrderOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionOrderOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.productionOrderOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionOrderOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.productionOrderRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionOrder?".concat(t),{method:"GET"})]}))}))},t.prototype.productionOrderReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionOrder/".concat(t),{method:"GET"})]}))}))},t.prototype.productionOrderUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionOrder",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionProfileCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionProfileDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionProfile/".concat(t),{method:"DELETE"})]}))}))},t.prototype.productionProfileRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionProfile?".concat(t),{method:"GET"})]}))}))},t.prototype.productionProfileReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionProfile/".concat(t),{method:"GET"})]}))}))},t.prototype.productionProfileUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionStepConsumptionCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepConsumption",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionStepConsumptionDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepConsumption/".concat(t),{method:"DELETE"})]}))}))},t.prototype.productionStepConsumptionOpCalculate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepConsumptionOpCalculate/".concat(t),{method:"POST"})]}))}))},t.prototype.productionStepConsumptionRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepConsumption?".concat(t),{method:"GET"})]}))}))},t.prototype.productionStepConsumptionReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepConsumption/".concat(t),{method:"GET"})]}))}))},t.prototype.productionStepConsumptionUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepConsumption",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionStepCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStep",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionStepDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStep/".concat(t),{method:"DELETE"})]}))}))},t.prototype.productionStepOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionStepOpFinish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepOpFinish/".concat(t),{method:"POST"})]}))}))},t.prototype.productionStepOpFinishRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepOpFinishRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.productionStepOpStart=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepOpStart/".concat(t),{method:"POST"})]}))}))},t.prototype.productionStepOpStartRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepOpStartRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.productionStepProductionCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepProduction",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionStepProductionDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepProduction/".concat(t),{method:"DELETE"})]}))}))},t.prototype.productionStepProductionRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepProduction?".concat(t),{method:"GET"})]}))}))},t.prototype.productionStepProductionReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepProduction/".concat(t),{method:"GET"})]}))}))},t.prototype.productionStepProductionUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStepProduction",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.productionStepRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStep?".concat(t),{method:"GET"})]}))}))},t.prototype.productionStepReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStep/".concat(t),{method:"GET"})]}))}))},t.prototype.productionStepUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ls,"f").web.fetchJson("/supply/production/productionStep",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Ls=new WeakMap;var As,Gs=function(){},qs=function(){},Fs=function(){},Ms=function(){},Bs=function(){},Zs=function(){},Vs=function(){},Ws=function(){},zs=function(){},$s=function(){},Hs=function(){},Ys=Object.freeze({__proto__:null,Bom:Gs,BomItem:qs,Operation:Fs,OperationType:Ms,OperationTypeAccount:Bs,ProductionBatch:Zs,ProductionOrder:Vs,ProductionProfile:Ws,ProductionService:Us,ProductionStep:zs,ProductionStepConsumption:$s,ProductionStepProduction:Hs}),Ks=function(){function t(t){As.set(this,void 0),s(this,As,t,"f")}return t.prototype.priceListCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/priceList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.priceListDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/priceList/".concat(t),{method:"DELETE"})]}))}))},t.prototype.priceListItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/priceListItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.priceListItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/priceListItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.priceListItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/priceListItem?".concat(t),{method:"GET"})]}))}))},t.prototype.priceListItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/priceListItem/".concat(t),{method:"GET"})]}))}))},t.prototype.priceListItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/priceListItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.priceListRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/priceList?".concat(t),{method:"GET"})]}))}))},t.prototype.priceListReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/priceList/".concat(t),{method:"GET"})]}))}))},t.prototype.priceListUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/priceList",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.proposalCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposal",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.proposalDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposal/".concat(t),{method:"DELETE"})]}))}))},t.prototype.proposalItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.proposalItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.proposalItemOpApprove=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalItemOpApprove/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.proposalItemOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalItemOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.proposalItemOpDisapprove=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalItemOpDisapprove/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.proposalItemOpDisapproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalItemOpDisapproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.proposalItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalItem?".concat(t),{method:"GET"})]}))}))},t.prototype.proposalItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalItem/".concat(t),{method:"GET"})]}))}))},t.prototype.proposalItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.proposalOpCancel=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalOpCancel/".concat(t),{method:"POST"})]}))}))},t.prototype.proposalOpCancelRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalOpCancelRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.proposalOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.proposalOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.proposalRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposal?".concat(t),{method:"GET"})]}))}))},t.prototype.proposalReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposal/".concat(t),{method:"GET"})]}))}))},t.prototype.proposalRequestReadById=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("token",String(n)),[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalRequest/".concat(t,"?").concat(e.toString()),{method:"GET"})]}))}))},t.prototype.proposalRequestUpdate=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("token",String(n)),[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposalRequest?".concat(e.toString()),{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.proposalUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/proposal",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.purchaseCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchase",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.purchaseDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchase/".concat(t),{method:"DELETE"})]}))}))},t.prototype.purchaseItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.purchaseItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.purchaseItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseItem?".concat(t),{method:"GET"})]}))}))},t.prototype.purchaseItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseItem/".concat(t),{method:"GET"})]}))}))},t.prototype.purchaseItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.purchaseOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.purchaseOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.purchaseOpApproveUnconditionally=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpApproveUnconditionally/".concat(t),{method:"POST"})]}))}))},t.prototype.purchaseOpCancel=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpCancel/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.purchaseOpCancelRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpCancelRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.purchaseOpClone=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpClone/".concat(t),{method:"POST"})]}))}))},t.prototype.purchaseOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.purchaseOpFinish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpFinish/".concat(t),{method:"POST"})]}))}))},t.prototype.purchaseOpFinishRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpFinishRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.purchaseOpMerge=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpMerge",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.purchaseOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.purchaseOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.purchaseOpSplit=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpSplit/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.purchaseOpTaxationCalc=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpTaxationCalc/".concat(t),{method:"POST"})]}))}))},t.prototype.purchaseOpUpdatePrepared=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.purchasePaymentCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchasePayment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.purchasePaymentDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchasePayment/".concat(t),{method:"DELETE"})]}))}))},t.prototype.purchasePaymentRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchasePayment?".concat(t),{method:"GET"})]}))}))},t.prototype.purchasePaymentReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchasePayment/".concat(t),{method:"GET"})]}))}))},t.prototype.purchasePaymentUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchasePayment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.purchaseProfileCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.purchaseProfileDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseProfile/".concat(t),{method:"DELETE"})]}))}))},t.prototype.purchaseProfileRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseProfile?".concat(t),{method:"GET"})]}))}))},t.prototype.purchaseProfileReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseProfile/".concat(t),{method:"GET"})]}))}))},t.prototype.purchaseProfileUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchaseProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.purchaseRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchase?".concat(t),{method:"GET"})]}))}))},t.prototype.purchaseReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchase/".concat(t),{method:"GET"})]}))}))},t.prototype.purchaseUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/purchase",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.quoteCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quote",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.quoteDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quote/".concat(t),{method:"DELETE"})]}))}))},t.prototype.quoteItemCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.quoteItemDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteItem/".concat(t),{method:"DELETE"})]}))}))},t.prototype.quoteItemRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteItem?".concat(t),{method:"GET"})]}))}))},t.prototype.quoteItemReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteItem/".concat(t),{method:"GET"})]}))}))},t.prototype.quoteItemUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.quoteOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpCancel=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteOpCancel/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpCancelRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteOpCancelRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.quoteOpFinish=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteOpFinish/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.quoteOpFinishRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteOpFinishRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quoteOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.quoteRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quote?".concat(t),{method:"GET"})]}))}))},t.prototype.quoteReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quote/".concat(t),{method:"GET"})]}))}))},t.prototype.quoteUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,As,"f").web.fetchJson("/supply/purchase/quote",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();As=new WeakMap;var Qs,Xs=function(){},tu=function(){},nu=function(){},eu=function(){},ou=function(){},iu=function(){},ru=function(){},cu=function(){},su=function(){},uu=function(){},au=function(){},pu=Object.freeze({__proto__:null,PriceListCost:Xs,PriceListCostItem:tu,Proposal:nu,ProposalItem:eu,ProposalRequest:ou,Purchase:iu,PurchaseItem:ru,PurchasePayment:cu,PurchaseProfile:su,PurchaseService:Ks,Quote:uu,QuoteItem:au}),hu=Object.freeze({__proto__:null,production:Ys,purchase:pu}),fu=function(){function t(t){Qs.set(this,void 0),s(this,Qs,t,"f")}return t.prototype.logCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Qs,"f").web.fetchJson("/system/audit/log",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.logOpDeleteExpired=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,Qs,"f").web.fetchJson("/system/audit/logOpDeleteExpired",{method:"POST"})]}))}))},t.prototype.logRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Qs,"f").web.fetchJson("/system/audit/log?".concat(t),{method:"GET"})]}))}))},t.prototype.logReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Qs,"f").web.fetchJson("/system/audit/log/".concat(t),{method:"GET"})]}))}))},t.prototype.sourceOpReadByEntity=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("entity",String(t)),n&&e.set("entityId",String(n)),[2,c(this,Qs,"f").web.fetchJson("/system/audit/sourceOpReadByEntity?".concat(e.toString()),{method:"POST"})]}))}))},t.prototype.sourceRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Qs,"f").web.fetchJson("/system/audit/source?".concat(t),{method:"GET"})]}))}))},t.prototype.sourceReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Qs,"f").web.fetchJson("/system/audit/source/".concat(t),{method:"GET"})]}))}))},t.prototype.userLogCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Qs,"f").web.fetchJson("/system/audit/userLog",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userLogDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Qs,"f").web.fetchJson("/system/audit/userLog/".concat(t),{method:"DELETE"})]}))}))},t.prototype.userLogRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Qs,"f").web.fetchJson("/system/audit/userLog?".concat(t),{method:"GET"})]}))}))},t.prototype.userLogReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Qs,"f").web.fetchJson("/system/audit/userLog/".concat(t),{method:"GET"})]}))}))},t.prototype.userLogUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Qs,"f").web.fetchJson("/system/audit/userLog",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Qs=new WeakMap;var du,lu=function(){},mu=function(){},vu=Object.freeze({__proto__:null,AuditService:fu,Log:lu,Source:mu}),yu=function(){function t(t){du.set(this,void 0),s(this,du,t,"f")}return t.prototype.agentCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/agent",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.agentDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/agent/".concat(t),{method:"DELETE"})]}))}))},t.prototype.agentOpExecute=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,du,"f").web.fetchJson("/system/automation/agentOpExecute/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.agentRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/agent?".concat(t),{method:"GET"})]}))}))},t.prototype.agentReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/agent/".concat(t),{method:"GET"})]}))}))},t.prototype.agentUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/agent",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.scheduleCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/schedule",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.scheduleDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/schedule/".concat(t),{method:"DELETE"})]}))}))},t.prototype.scheduleOpExecute=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/scheduleOpExecute/".concat(t),{method:"POST"})]}))}))},t.prototype.scheduleRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/schedule?".concat(t),{method:"GET"})]}))}))},t.prototype.scheduleReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/schedule/".concat(t),{method:"GET"})]}))}))},t.prototype.scheduleUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/schedule",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.watcherCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/watcher",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.watcherDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/watcher/".concat(t),{method:"DELETE"})]}))}))},t.prototype.watcherRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/watcher?".concat(t),{method:"GET"})]}))}))},t.prototype.watcherReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/watcher/".concat(t),{method:"GET"})]}))}))},t.prototype.watcherUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,du,"f").web.fetchJson("/system/automation/watcher",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();du=new WeakMap;var gu,bu=function(){},wu=function(){},Ou=function(){},Su=Object.freeze({__proto__:null,Agent:bu,AutomationService:yu,Schedule:wu,Watcher:Ou}),Ju=function(){function t(t){gu.set(this,void 0),s(this,gu,t,"f")}return t.prototype.dataSourceCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSource",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.dataSourceDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSource/".concat(t),{method:"DELETE"})]}))}))},t.prototype.dataSourceFieldRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSourceField?".concat(t),{method:"GET"})]}))}))},t.prototype.dataSourceFieldReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSourceField/".concat(t),{method:"GET"})]}))}))},t.prototype.dataSourceFieldUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSourceField",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.dataSourceOpRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSourceOpRead",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.dataSourceParameterCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSourceParameter",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.dataSourceParameterDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSourceParameter/".concat(t),{method:"DELETE"})]}))}))},t.prototype.dataSourceParameterRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSourceParameter?".concat(t),{method:"GET"})]}))}))},t.prototype.dataSourceParameterReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSourceParameter/".concat(t),{method:"GET"})]}))}))},t.prototype.dataSourceParameterUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSourceParameter",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.dataSourceRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSource?".concat(t),{method:"GET"})]}))}))},t.prototype.dataSourceReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSource/".concat(t),{method:"GET"})]}))}))},t.prototype.dataSourceUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,gu,"f").web.fetchJson("/system/data/dataSource",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();gu=new WeakMap;var Tu,Pu=function(){},Eu=function(){},ju=function(){},Iu=Object.freeze({__proto__:null,DataService:Ju,DataSource:Pu,DataSourceField:Eu,DataSourceParameter:ju}),Ru=function(){function t(t){Tu.set(this,void 0),s(this,Tu,t,"f")}return t.prototype.fileCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tu,"f").web.fetchJson("/system/file/file",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.fileDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tu,"f").web.fetchJson("/system/file/file/".concat(t),{method:"DELETE"})]}))}))},t.prototype.fileOpReadContent=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tu,"f").web.fetchBlob("/system/file/fileOpReadContent/".concat(t),{method:"POST"})]}))}))},t.prototype.fileRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tu,"f").web.fetchJson("/system/file/file?".concat(t),{method:"GET"})]}))}))},t.prototype.fileReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tu,"f").web.fetchJson("/system/file/file/".concat(t),{method:"GET"})]}))}))},t.prototype.fileUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Tu,"f").web.fetchJson("/system/file/file",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Tu=new WeakMap;var Nu,ku=function(){},xu=Object.freeze({__proto__:null,File:ku,FileService:Ru}),Cu=function(){function t(t){Nu.set(this,void 0),s(this,Nu,t,"f")}return t.prototype.injectsRead=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,Nu,"f").web.fetchJson("/system/frontend/injects",{method:"GET"})]}))}))},t.prototype.injectsUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nu,"f").web.fetchJson("/system/frontend/injects",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.menuRead=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,Nu,"f").web.fetchJson("/system/frontend/menu",{method:"GET"})]}))}))},t.prototype.menuUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nu,"f").web.fetchJson("/system/frontend/menu",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.resourcesRead=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,Nu,"f").web.fetchJson("/system/frontend/resources",{method:"GET"})]}))}))},t.prototype.resourcesUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Nu,"f").web.fetchJson("/system/frontend/resources",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Nu=new WeakMap;var Lu,_u=function(){},Du=function(){},Uu=Object.freeze({__proto__:null,FrontendService:Cu,Inject:_u,Menu:Du}),Au=function(){function t(t){Lu.set(this,void 0),s(this,Lu,t,"f")}return t.prototype.imageCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Lu,"f").web.fetchJson("/system/image/image",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.imageDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Lu,"f").web.fetchJson("/system/image/image/".concat(t),{method:"DELETE"})]}))}))},t.prototype.imageRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Lu,"f").web.fetchJson("/system/image/image?".concat(t),{method:"GET"})]}))}))},t.prototype.imageReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Lu,"f").web.fetchJson("/system/image/image/".concat(t),{method:"GET"})]}))}))},t.prototype.imageUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Lu,"f").web.fetchJson("/system/image/image",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Lu=new WeakMap;var Gu,qu=function(){},Fu=Object.freeze({__proto__:null,Image:qu,ImageService:Au}),Mu=function(){function t(t){Gu.set(this,void 0),s(this,Gu,t,"f")}return t.prototype.messageDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/message/".concat(t),{method:"DELETE"})]}))}))},t.prototype.messageOpPost=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/messageOpPost",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.messageOpTransfer=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("queueCode",String(n)),[2,c(this,Gu,"f").web.fetchJson("/system/integration/messageOpTransfer/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.messageRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/message?".concat(t),{method:"GET"})]}))}))},t.prototype.messageReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/message/".concat(t),{method:"GET"})]}))}))},t.prototype.queueCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/queue",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.queueDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/queue/".concat(t),{method:"DELETE"})]}))}))},t.prototype.queueOpDeleteExpiredMessages=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("queueCode",String(t)),[2,c(this,Gu,"f").web.fetchJson("/system/integration/queueOpDeleteExpiredMessages?".concat(n.toString()),{method:"POST"})]}))}))},t.prototype.queueOpReadMessage=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("queueCode",String(t)),n&&e.set("maxMessages",String(n)),[2,c(this,Gu,"f").web.fetchJson("/system/integration/queueOpReadMessage?".concat(e.toString()),{method:"POST"})]}))}))},t.prototype.queueOpReadMessageTimeout=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,t&&o.set("queueCode",String(t)),n&&o.set("maxMessages",String(n)),e&&o.set("timeoutS",String(e)),[2,c(this,Gu,"f").web.fetchJson("/system/integration/queueOpReadMessageTimeout?".concat(o.toString()),{method:"POST"})]}))}))},t.prototype.queueRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/queue?".concat(t),{method:"GET"})]}))}))},t.prototype.queueReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/queue/".concat(t),{method:"GET"})]}))}))},t.prototype.queueUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/queue",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.subscriptionCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/subscription",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.subscriptionDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/subscription/".concat(t),{method:"DELETE"})]}))}))},t.prototype.subscriptionRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/subscription?".concat(t),{method:"GET"})]}))}))},t.prototype.subscriptionReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/subscription/".concat(t),{method:"GET"})]}))}))},t.prototype.subscriptionUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/subscription",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.topicCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/topic",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.topicDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/topic/".concat(t),{method:"DELETE"})]}))}))},t.prototype.topicOpPublish=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/topicOpPublish",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.topicRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/topic?".concat(t),{method:"GET"})]}))}))},t.prototype.topicReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/topic/".concat(t),{method:"GET"})]}))}))},t.prototype.topicUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Gu,"f").web.fetchJson("/system/integration/topic",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Gu=new WeakMap;var Bu,Zu=function(){},Vu=function(){},Wu=function(){},zu=function(){},$u=function(){},Hu=Object.freeze({__proto__:null,IntegrationService:Mu,Message:Zu,Publication:Vu,Queue:Wu,Subscription:zu,Topic:$u}),Yu=function(){function t(t){Bu.set(this,void 0),s(this,Bu,t,"f")}return t.prototype.mailerConfigCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bu,"f").web.fetchJson("/system/mail/mailerConfig",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.mailerConfigDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bu,"f").web.fetchJson("/system/mail/mailerConfig/".concat(t),{method:"DELETE"})]}))}))},t.prototype.mailerConfigRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bu,"f").web.fetchJson("/system/mail/mailerConfig?".concat(t),{method:"GET"})]}))}))},t.prototype.mailerConfigReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bu,"f").web.fetchJson("/system/mail/mailerConfig/".concat(t),{method:"GET"})]}))}))},t.prototype.mailerConfigUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Bu,"f").web.fetchJson("/system/mail/mailerConfig",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.messageOpSend=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,t&&o.set("mailerConfigId",String(t)),n&&o.set("mailerConfigCode",String(n)),[2,c(this,Bu,"f").web.fetchJson("/system/mail/messageOpSend?".concat(o.toString()),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})]}))}))},t}();Bu=new WeakMap;var Ku,Qu=function(){},Xu=function(){},ta=function(){},na=function(){},ea=Object.freeze({__proto__:null,Address:Qu,Attachment:Xu,MailService:Yu,MailerConfig:ta,Message:na}),oa=function(){function t(t){Ku.set(this,void 0),s(this,Ku,t,"f")}return t.prototype.printerCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printer",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.printerDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printer/".concat(t),{method:"DELETE"})]}))}))},t.prototype.printerJobCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printerJob",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.printerJobDataReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printerJobData/".concat(t),{method:"GET"})]}))}))},t.prototype.printerJobDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printerJob/".concat(t),{method:"DELETE"})]}))}))},t.prototype.printerJobOpFetch=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printerJobOpFetch/".concat(t),{method:"POST"})]}))}))},t.prototype.printerJobOpPrinted=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printerJobOpPrinted/".concat(t),{method:"POST"})]}))}))},t.prototype.printerJobOpUnlock=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printerJobOpUnlock/".concat(t),{method:"POST"})]}))}))},t.prototype.printerJobRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printerJob?".concat(t),{method:"GET"})]}))}))},t.prototype.printerJobReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printerJob/".concat(t),{method:"GET"})]}))}))},t.prototype.printerOpPause=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printerOpPause/".concat(t),{method:"POST"})]}))}))},t.prototype.printerOpPauseRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printerOpPauseRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.printerOpPrintTestPage=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printerOpPrintTestPage/".concat(t),{method:"POST"})]}))}))},t.prototype.printerOpPrinterJobFetch=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printerOpPrinterJobFetch/".concat(t),{method:"POST"})]}))}))},t.prototype.printerRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printer?".concat(t),{method:"GET"})]}))}))},t.prototype.printerReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printer/".concat(t),{method:"GET"})]}))}))},t.prototype.printerUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ku,"f").web.fetchJson("/system/printing/printer",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();Ku=new WeakMap;var ia,ra=function(){},ca=function(){},sa=function(){},ua=Object.freeze({__proto__:null,Printer:ra,PrinterJob:ca,PrinterJobData:sa,PrintingService:oa}),aa=function(){function t(t){ia.set(this,void 0),s(this,ia,t,"f")}return t.prototype.reportCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ia,"f").web.fetchJson("/system/report/report",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.reportDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ia,"f").web.fetchJson("/system/report/report/".concat(t),{method:"DELETE"})]}))}))},t.prototype.reportOpClone=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("newCode",String(n)),[2,c(this,ia,"f").web.fetchJson("/system/report/reportOpClone/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.reportOpGenerate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ia,"f").web.fetchBlob("/system/report/reportOpGenerate",{method:"POST",headers:{"content-type":"application/json",accept:"application/pdf"},body:JSON.stringify(t)})]}))}))},t.prototype.reportOpPrint=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ia,"f").web.fetchJson("/system/report/reportOpPrint",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.reportRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ia,"f").web.fetchJson("/system/report/report?".concat(t),{method:"GET"})]}))}))},t.prototype.reportReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ia,"f").web.fetchJson("/system/report/report/".concat(t),{method:"GET"})]}))}))},t.prototype.reportTemplateOpUpdate=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,ia,"f").web.fetchJson("/system/report/reportTemplateOpUpdate/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.reportTemplateRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ia,"f").web.fetchJson("/system/report/reportTemplate?".concat(t),{method:"GET"})]}))}))},t.prototype.reportTemplateReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ia,"f").web.fetchJson("/system/report/reportTemplate/".concat(t),{method:"GET"})]}))}))},t.prototype.reportUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,ia,"f").web.fetchJson("/system/report/report",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();ia=new WeakMap;var pa,ha=function(){},fa=function(){},da=Object.freeze({__proto__:null,Report:ha,ReportService:aa,ReportTemplate:fa}),la=function(){function t(t){pa.set(this,void 0),s(this,pa,t,"f")}return t.prototype.accessPointCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/accessPoint",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accessPointDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/accessPoint/".concat(t),{method:"DELETE"})]}))}))},t.prototype.accessPointOpValidate=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("code",String(t)),[2,c(this,pa,"f").web.fetchJson("/system/security/accessPointOpValidate?".concat(n.toString()),{method:"POST"})]}))}))},t.prototype.accessPointRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/accessPoint?".concat(t),{method:"GET"})]}))}))},t.prototype.accessPointReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/accessPoint/".concat(t),{method:"GET"})]}))}))},t.prototype.accessPointUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/accessPoint",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accessProfileCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/accessProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.accessProfileDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/accessProfile/".concat(t),{method:"DELETE"})]}))}))},t.prototype.accessProfileRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/accessProfile?".concat(t),{method:"GET"})]}))}))},t.prototype.accessProfileReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/accessProfile/".concat(t),{method:"GET"})]}))}))},t.prototype.accessProfileUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/accessProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.grantCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/grant",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.grantDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/grant/".concat(t),{method:"DELETE"})]}))}))},t.prototype.grantRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/grant?".concat(t),{method:"GET"})]}))}))},t.prototype.grantReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/grant/".concat(t),{method:"GET"})]}))}))},t.prototype.groupCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/group",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.groupDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/group/".concat(t),{method:"DELETE"})]}))}))},t.prototype.groupOpClone=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,pa,"f").web.fetchJson("/system/security/groupOpClone/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.groupRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/group?".concat(t),{method:"GET"})]}))}))},t.prototype.groupReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/group/".concat(t),{method:"GET"})]}))}))},t.prototype.groupUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/group",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.keyStoreCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/keyStore",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.keyStoreDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/keyStore/".concat(t),{method:"DELETE"})]}))}))},t.prototype.keyStoreOpReadContent=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchBlob("/system/security/keyStoreOpReadContent/".concat(t),{method:"POST"})]}))}))},t.prototype.keyStoreRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/keyStore?".concat(t),{method:"GET"})]}))}))},t.prototype.keyStoreReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/keyStore/".concat(t),{method:"GET"})]}))}))},t.prototype.keyStoreUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/keyStore",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.roleAccessPointCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/roleAccessPoint",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.roleAccessPointDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/roleAccessPoint/".concat(t),{method:"DELETE"})]}))}))},t.prototype.roleAccessPointRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/roleAccessPoint?".concat(t),{method:"GET"})]}))}))},t.prototype.roleAccessPointReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/roleAccessPoint/".concat(t),{method:"GET"})]}))}))},t.prototype.roleRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/role?".concat(t),{method:"GET"})]}))}))},t.prototype.roleReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/role/".concat(t),{method:"GET"})]}))}))},t.prototype.sessionContext=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,pa,"f").web.fetchJson("/system/security/sessionContext",{method:"GET"})]}))}))},t.prototype.sessionDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/session/".concat(t),{method:"DELETE"})]}))}))},t.prototype.sessionOpGetCurrent=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,pa,"f").web.fetchJson("/system/security/sessionOpGetCurrent",{method:"GET"})]}))}))},t.prototype.sessionRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/session?".concat(t),{method:"GET"})]}))}))},t.prototype.sessionReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/session/".concat(t),{method:"GET"})]}))}))},t.prototype.tokenOpInvalidate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/tokenOpInvalidate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.tokenOpInvalidateCurrent=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,pa,"f").web.fetchJson("/system/security/tokenOpInvalidateCurrent",{method:"POST"})]}))}))},t.prototype.tokenOpRenew=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,pa,"f").web.fetchJson("/system/security/tokenOpRenew",{method:"POST"})]}))}))},t.prototype.tokenOpRequest=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/tokenOpRequest",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.tokenOpRequestPermanent=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/tokenOpRequestPermanent",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/user",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/user/".concat(t),{method:"DELETE"})]}))}))},t.prototype.userOpActivate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpActivate/".concat(t),{method:"POST"})]}))}))},t.prototype.userOpAuthenticate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpAuthenticate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userOpChangeEmail=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpChangeEmail",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userOpChangeEmailConfirmation=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpChangeEmailConfirmation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userOpChangePassword=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpChangePassword",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userOpChangePasswordThird=function(t,n){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpChangePasswordThird/".concat(t),{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.userOpCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userOpCreateConfirmation=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpCreateConfirmation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userOpCreateResend=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpCreateResend",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userOpGrantOptionAdd=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpGrantOptionAdd/".concat(t),{method:"POST"})]}))}))},t.prototype.userOpGrantOptionRemove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpGrantOptionRemove/".concat(t),{method:"POST"})]}))}))},t.prototype.userOpInactivate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpInactivate/".concat(t),{method:"POST"})]}))}))},t.prototype.userOpResetPassword=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpResetPassword",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userOpResetPasswordConfirmation=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpResetPasswordConfirmation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userOpUnlock=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpUnlock/".concat(t),{method:"POST"})]}))}))},t.prototype.userOpUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userOpUpdate",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.userPermissionRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/userPermission?".concat(t),{method:"GET"})]}))}))},t.prototype.userRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/user?".concat(t),{method:"GET"})]}))}))},t.prototype.userReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/user/".concat(t),{method:"GET"})]}))}))},t.prototype.userUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,pa,"f").web.fetchJson("/system/security/user",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t}();pa=new WeakMap;var ma,va=function(){},ya=function(){},ga=function(){},ba=function(){},wa=function(){},Oa=function(){},Sa=function(){},Ja=function(){},Ta=function(){},Pa=function(){},Ea=function(){},ja=Object.freeze({__proto__:null,AccessPoint:va,AccessProfile:ya,Grant:ga,Group:ba,KeyStore:wa,Role:Oa,RoleAccessPoint:Sa,SecurityService:la,Session:Ja,SessionContext:Ta,User:Pa,UserPermission:Ea}),Ia=function(){function t(t){ma.set(this,void 0),s(this,ma,t,"f")}return t.prototype.get=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("key",String(t)),[2,c(this,ma,"f").web.fetchJson("/system/storage/?".concat(n.toString()),{method:"GET"})]}))}))},t.prototype.getNumber=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("key",String(t)),[2,c(this,ma,"f").web.fetchJson("/system/storage/number?".concat(n.toString()),{method:"GET"})]}))}))},t.prototype.getString=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("key",String(t)),[2,c(this,ma,"f").web.fetchJson("/system/storage/string?".concat(n.toString()),{method:"GET"})]}))}))},t.prototype.put=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("key",String(t)),[2,c(this,ma,"f").web.fetchJson("/system/storage/?".concat(e.toString()),{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.putNumber=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("key",String(t)),n&&e.set("value",String(n)),[2,c(this,ma,"f").web.fetchJson("/system/storage/number?".concat(e.toString()),{method:"PUT"})]}))}))},t.prototype.putString=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("key",String(t)),n&&e.set("value",String(n)),[2,c(this,ma,"f").web.fetchJson("/system/storage/string?".concat(e.toString()),{method:"PUT"})]}))}))},t.prototype.remove=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("key",String(t)),[2,c(this,ma,"f").web.fetchJson("/system/storage/?".concat(n.toString()),{method:"DELETE"})]}))}))},t.prototype.userGet=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("key",String(t)),[2,c(this,ma,"f").web.fetchJson("/system/storage/user?".concat(n.toString()),{method:"GET"})]}))}))},t.prototype.userGetNumber=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("key",String(t)),[2,c(this,ma,"f").web.fetchJson("/system/storage/user/number?".concat(n.toString()),{method:"GET"})]}))}))},t.prototype.userGetString=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("key",String(t)),[2,c(this,ma,"f").web.fetchJson("/system/storage/user/string?".concat(n.toString()),{method:"GET"})]}))}))},t.prototype.userPut=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("key",String(t)),[2,c(this,ma,"f").web.fetchJson("/system/storage/user?".concat(e.toString()),{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})]}))}))},t.prototype.userPutNumber=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("key",String(t)),n&&e.set("value",String(n)),[2,c(this,ma,"f").web.fetchJson("/system/storage/user/number?".concat(e.toString()),{method:"PUT"})]}))}))},t.prototype.userPutString=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("key",String(t)),n&&e.set("value",String(n)),[2,c(this,ma,"f").web.fetchJson("/system/storage/user/string?".concat(e.toString()),{method:"PUT"})]}))}))},t.prototype.userRemove=function(t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){return n=new URLSearchParams,t&&n.set("key",String(t)),[2,c(this,ma,"f").web.fetchJson("/system/storage/user?".concat(n.toString()),{method:"DELETE"})]}))}))},t}();ma=new WeakMap;var Ra,Na=Object.freeze({__proto__:null,StorageService:Ia}),ka=function(){function t(t){Ra.set(this,void 0),s(this,Ra,t,"f")}return t.prototype.workflowConnectorCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowConnector",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.workflowConnectorDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowConnector/".concat(t),{method:"DELETE"})]}))}))},t.prototype.workflowConnectorRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowConnector?".concat(t),{method:"GET"})]}))}))},t.prototype.workflowConnectorReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowConnector/".concat(t),{method:"GET"})]}))}))},t.prototype.workflowConnectorUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowConnector",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.workflowCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflow",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.workflowDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflow/".concat(t),{method:"DELETE"})]}))}))},t.prototype.workflowNodeCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowNode",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.workflowNodeDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowNode/".concat(t),{method:"DELETE"})]}))}))},t.prototype.workflowNodeRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowNode?".concat(t),{method:"GET"})]}))}))},t.prototype.workflowNodeReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowNode/".concat(t),{method:"GET"})]}))}))},t.prototype.workflowNodeUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowNode",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.workflowOpApprove=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowOpApprove/".concat(t),{method:"POST"})]}))}))},t.prototype.workflowOpApproveRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowOpApproveRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.workflowOpCreateOrUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowOpCreateOrUpdate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.workflowOpDisable=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowOpDisable/".concat(t),{method:"POST"})]}))}))},t.prototype.workflowOpDisableRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowOpDisableRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.workflowOpPrepare=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowOpPrepare/".concat(t),{method:"POST"})]}))}))},t.prototype.workflowOpPrepareRevert=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflowOpPrepareRevert/".concat(t),{method:"POST"})]}))}))},t.prototype.workflowRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflow?".concat(t),{method:"GET"})]}))}))},t.prototype.workflowReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflow/".concat(t),{method:"GET"})]}))}))},t.prototype.workflowUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workflow",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.workpieceNodeRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workpieceNode?".concat(t),{method:"GET"})]}))}))},t.prototype.workpieceNodeReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workpieceNode/".concat(t),{method:"GET"})]}))}))},t.prototype.workpieceOpForward=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("workflowNodeId",String(n)),[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workpieceOpForward/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.workpieceOpRevert=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,n&&e.set("workflowNodeId",String(n)),[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workpieceOpRevert/".concat(t,"?").concat(e.toString()),{method:"POST"})]}))}))},t.prototype.workpieceRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workpiece?".concat(t),{method:"GET"})]}))}))},t.prototype.workpieceReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,Ra,"f").web.fetchJson("/system/workflow/workpiece/".concat(t),{method:"GET"})]}))}))},t}();Ra=new WeakMap;var xa,Ca=function(){},La=function(){},_a=function(){},Da=function(){},Ua=function(){},Aa=Object.freeze({__proto__:null,Workflow:Ca,WorkflowConnector:La,WorkflowNode:_a,WorkflowService:ka,Workpiece:Da,WorkpieceNode:Ua}),Ga=function(){function t(t){xa.set(this,void 0),s(this,xa,t,"f")}return t.prototype.checkAuth=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,xa,"f").web.fetchJson("/system/checkAuth",{method:"GET"})]}))}))},t.prototype.customPropertiesOpSet=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,xa,"f").web.fetchJson("/system/customPropertiesOpSet",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.customTagsOpSet=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("entity",String(t)),n&&e.set("tag",String(n)),[2,c(this,xa,"f").web.fetchJson("/system/customTagsOpSet?".concat(e.toString()),{method:"POST"})]}))}))},t.prototype.databaseOpOptimize=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,xa,"f").web.fetchJson("/system/databaseOpOptimize",{method:"POST"})]}))}))},t.prototype.infoRead=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,xa,"f").web.fetchJson("/system/info",{method:"GET"})]}))}))},t.prototype.lockOpAcquire=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,t&&o.set("id",String(t)),n&&o.set("waitTime",String(n)),e&&o.set("leaseTime",String(e)),[2,c(this,xa,"f").web.fetchJson("/system/lockOpAcquire?".concat(o.toString()),{method:"POST"})]}))}))},t.prototype.lockOpExtend=function(t,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){return o=new URLSearchParams,t&&o.set("id",String(t)),n&&o.set("lockToken",String(n)),e&&o.set("leaseTime",String(e)),[2,c(this,xa,"f").web.fetchJson("/system/lockOpExtend?".concat(o.toString()),{method:"POST"})]}))}))},t.prototype.lockOpRelease=function(t,n){return o(this,void 0,void 0,(function(){var e;return i(this,(function(o){return e=new URLSearchParams,t&&e.set("id",String(t)),n&&e.set("lockToken",String(n)),[2,c(this,xa,"f").web.fetchJson("/system/lockOpRelease?".concat(e.toString()),{method:"POST"})]}))}))},t.prototype.metricsRead=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,xa,"f").web.fetchJson("/system/metrics",{method:"GET"})]}))}))},t.prototype.resourcesRead=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,xa,"f").web.fetchJson("/system/resources",{method:"GET"})]}))}))},t.prototype.statusCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,xa,"f").web.fetchJson("/system/status",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.statusDelete=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,xa,"f").web.fetchJson("/system/status/".concat(t),{method:"DELETE"})]}))}))},t.prototype.statusRead=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,xa,"f").web.fetchJson("/system/status?".concat(t),{method:"GET"})]}))}))},t.prototype.statusReadById=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,xa,"f").web.fetchJson("/system/status/".concat(t),{method:"GET"})]}))}))},t.prototype.statusUpdate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,xa,"f").web.fetchJson("/system/status",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.testCreate=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,c(this,xa,"f").web.fetchJson("/system/test",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})]}))}))},t.prototype.testRead=function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,c(this,xa,"f").web.fetchJson("/system/test",{method:"GET"})]}))}))},t}();xa=new WeakMap;var qa,Fa,Ma=function(){},Ba=function(){},Za=function(){},Va=Object.freeze({__proto__:null,Info:Ma,Status:Ba,SystemService:Ga,Test:Za,audit:vu,automation:Su,data:Iu,file:xu,frontend:Uu,image:Fu,integration:Hu,mail:ea,printing:ua,report:da,security:ja,storage:Na,workflow:Aa}),Wa=Object.freeze({__proto__:null,auth:Go,catalog:Ei,commercial:Fi,financial:Br,fiscal:Ic,logistic:Cc,material:vs,sale:xs,shipping:Ds,supply:hu,system:Va}),za="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function $a(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ha,Ya,Ka,Qa=function(){if(Fa)return qa;Fa=1;var t=NaN,n="[object Symbol]",e=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,r=/^0o[0-7]+$/i,c=parseInt,s="object"==typeof za&&za&&za.Object===Object&&za,u="object"==typeof self&&self&&self.Object===Object&&self,a=s||u||Function("return this")(),p=Object.prototype.toString,h=Math.max,f=Math.min,d=function(){return a.Date.now()};function l(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function m(s){if("number"==typeof s)return s;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&p.call(t)==n}(s))return t;if(l(s)){var u="function"==typeof s.valueOf?s.valueOf():s;s=l(u)?u+"":u}if("string"!=typeof s)return 0===s?s:+s;s=s.replace(e,"");var a=i.test(s);return a||r.test(s)?c(s.slice(2),a?2:8):o.test(s)?t:+s}return qa=function(t,n,e){var o,i,r,c,s,u,a=0,p=!1,v=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(n){var e=o,r=i;return o=i=void 0,a=n,c=t.apply(r,e)}function b(t){var e=t-u;return void 0===u||e>=n||e<0||v&&t-a>=r}function w(){var t=d();if(b(t))return O(t);s=setTimeout(w,function(t){var e=n-(t-u);return v?f(e,r-(t-a)):e}(t))}function O(t){return s=void 0,y&&o?g(t):(o=i=void 0,c)}function S(){var t=d(),e=b(t);if(o=arguments,i=this,u=t,e){if(void 0===s)return function(t){return a=t,s=setTimeout(w,n),p?g(t):c}(u);if(v)return s=setTimeout(w,n),g(u)}return void 0===s&&(s=setTimeout(w,n)),c}return n=m(n)||0,l(e)&&(p=!!e.leading,r=(v="maxWait"in e)?h(m(e.maxWait)||0,n):r,y="trailing"in e?!!e.trailing:y),S.cancel=function(){void 0!==s&&clearTimeout(s),a=0,o=u=i=s=void 0},S.flush=function(){return void 0===s?c:O(d())},S},qa}(),Xa=$a(Qa),tp=function(){function t(){}return t.hash=function(t,n){void 0===t&&(t=""),void 0===n&&(n=31);for(var e=3735928559^n,o=1103547991^n,i=0,r=void 0;i<t.length;i++)r=t.charCodeAt(i),e=Math.imul(e^r,2654435761),o=Math.imul(o^r,1597334677);return e=Math.imul(e^e>>>16,2246822507)^Math.imul(o^o>>>13,3266489909),4294967296*(2097151&(o=Math.imul(o^o>>>16,2246822507)^Math.imul(e^e>>>13,3266489909)))+(e>>>0)},t}(),np=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._lastVisible=!1,n}return e(n,t),n.prototype.connectedCallback=function(){var t=this;this._lastVisible=!1,this.parentElement&&this.parentElement.addEventListener("scroll",this._listener=function(){t.check()}),this.check()},n.prototype.disconnectedCallback=function(){this.parentElement&&this.parentElement.removeEventListener("scroll",this._listener)},n.isVisible=function(t){var n=t.getBoundingClientRect(),e=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(n.bottom<0||n.top-e>=0)},n.prototype.check=function(){var t,e,o=n.isVisible(this);o&&!this._lastVisible&&(this._lastVisible=!0,this.hasAttribute("onshow")&&new Function(null!==(t=this.getAttribute("onshow"))&&void 0!==t?t:"")()),!o&&this._lastVisible&&(this._lastVisible=!1,this.hasAttribute("onhide")&&new Function(null!==(e=this.getAttribute("onhide"))&&void 0!==e?e:"")())},n.whenVisible=function(t){var e=t.parentElement;return new Promise((function(o){var i=!1,r=function(){!i&&n.isVisible(t)&&(i=!0,e.removeEventListener("scroll",r),o())};e.addEventListener("scroll",r)}))},n}(HTMLElement),ep=function(t){function n(){var n=t.call(this)||this;return n._connected=!1,n._closed=!0,n._loading=!1,n._text="",n._textValues=[],n._values=[],n._root=n,n}return e(n,t),Object.defineProperty(n,"observedAttributes",{get:function(){return[]},enumerable:!1,configurable:!0}),n.prototype.connectedCallback=function(){for(var t=this;this._root.lastChild;)this._root.lastChild.remove();this._root.classList.add("ps-select"),this.__core=this._root.appendChild(document.createElement("div")),this.__core.classList.add("ps-select__core"),this.__toggler=this.__core.appendChild(document.createElement("div")),this.__toggler.classList.add("ps-select__toggler"),this.__toggler.classList.add("closed"),this.__toggler.addEventListener("click",(function(){t.hasAttribute("disabled")||t.toggle()})),this.__values=this.__core.appendChild(document.createElement("div")),this.__values.classList.add("ps-select__values"),this.__input=this.__values.appendChild(document.createElement("input")),this.__input.classList.add("ps-select__input"),this.__input.addEventListener("change",(function(t){t.stopPropagation()}));var n=Xa((function(){t.open()}),375);this.__input.addEventListener("input",(function(e){t.hasAttribute("disabled")?e.preventDefault():(t._text=t.__input.value||"",n())})),this.__options=this._root.appendChild(document.createElement("div")),this.__options.classList.add("ps-select__options"),this.__options.classList.add("closed"),this.__options.tabIndex=-1,document.addEventListener("click",(function(n){t._root.contains(n.target)||(t._closed||t.close(),t.__input.value="",t._text="")})),document.addEventListener("focusin",(function(n){t._root.contains(n.target)||(t._closed||t.close(),t.__input.value="",t._text="")})),this._root.addEventListener("scroll",(function(n){t._root.contains(n.target)||(t._closed||t.close(),t.__input.value="",t._text="")})),this._root.addEventListener("keydown",(function(n){t.hasAttribute("disabled")||!n.altKey||n.ctrlKey||n.metaKey||n.shiftKey||"ArrowDown"!==n.key&&"ArrowUp"!==n.key||(n.preventDefault(),t.toggle())})),this.__input.addEventListener("keydown",(function(n){if(!t.hasAttribute("disabled")&&(n.altKey||n.ctrlKey||n.metaKey||n.shiftKey||"ArrowDown"!==n.key||t._closed||(n.preventDefault(),t._focusOptions()),!(n.altKey||n.ctrlKey||n.metaKey||n.shiftKey||"Backspace"!==n.key||""!==t._text)&&t.values.length)){var e=r([],t._values,!0);e.splice(e.length-1,1),t._setValues(e)}})),this.__input.addEventListener("keypress",(function(n){if(!t.hasAttribute("disabled")&&!(n.altKey||n.ctrlKey||n.metaKey||n.shiftKey||"Enter"!==n.key||t._closed)){n.preventDefault();var e=t.__ul.querySelector("li");e&&e.click()}})),this._connected=!0},Object.defineProperty(n.prototype,"root",{get:function(){return this._root},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"connected",{get:function(){return this._connected},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this.hasAttribute("multiple")?this.values:this.values.length?this.values[0]:null},set:function(t){if(this.hasAttribute("multiple"))this.values=t;else{var n=t;this.values=n?[n]:[]}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"values",{get:function(){var t=this;return this._values.map((function(n){return t.toEXT(n)}))},set:function(t){var n,e=this;if(null==t||0===t.length)this._values=[];else{var o=[];t.forEach((function(t){var n=e.toINT(t);o.find((function(t){return 0===e.compare(t,n)}))||o.push(n)})),this._values=o}!this.hasAttribute("multiple")&&this._values.length>1&&(this._values=[this._values[0]]),this.__input.value="",this.__values.querySelectorAll(".ps-select__value").forEach((function(t){return t.remove()})),this._textValues=[];for(var i=function(t){var o=null!==(n=c.getString(c._values[t]))&&void 0!==n?n:"";c._textValues.push(o);var i=tp.hash(o)%20+1,s=c.__values.insertBefore(document.createElement("div"),c.__input);s.classList.add("ps-select__value"),s.classList.add("ps-color-".concat(i),"color-".concat(i)),s.textContent=o;var u=s.appendChild(document.createElement("div"));u.classList.add("ps-select__deleteValue"),u.addEventListener("click",(function(){if(!e.hasAttribute("disabled")){var n=r([],e._values,!0);n.splice(t,1),e._setValues(n)}}))},c=this,s=0;s<this._values.length;s++)i(s)},enumerable:!1,configurable:!0}),n.prototype._setValues=function(t){var n=this;this.values=t?t.map((function(t){return n.toEXT(t)})):[],this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!1}))},n.prototype._focusOptions=function(){var t=this.__ul;t.focus(),t.__select(t.__selected||t.querySelector("li.selected")||t.querySelector("li"))},n.prototype.disconnectedCallback=function(){this._connected=!1},n.prototype.open=function(){return o(this,void 0,void 0,(function(){var t=this;return i(this,(function(n){switch(n.label){case 0:return this.__toggler.classList.remove("closed"),this.__options.classList.remove("closed"),this.__options.style.width="".concat(this._root.offsetWidth),this._closed=!1,setTimeout((function(){t.__options.getBoundingClientRect().bottom>window.innerHeight?t.__options.classList.add("up"):t.__options.classList.remove("up")}),0),[4,this.refreshOptions()];case 1:return n.sent(),[2]}}))}))},n.prototype.close=function(){this.__toggler.classList.add("closed"),this.__options.classList.add("closed");var t=this.__options.querySelector("ul");t&&t.remove(),this._iterator=void 0,this._closed=!0},n.prototype.toggle=function(){var t=this;this._closed?o(t,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.open()];case 1:return t.sent(),this._focusOptions(),[2]}}))})):(this.close(),this.__input.focus())},n.prototype.refreshOptions=function(){return o(this,void 0,void 0,(function(){var t,n,e=this;return i(this,(function(o){switch(o.label){case 0:return this._iterator=this.getIterator(this._text),(t=document.createElement("ul")).tabIndex=-1,(n=t.appendChild(document.createElement("button"))).tabIndex=-1,n.textContent="more",n.addEventListener("click",(function(){return e.fetch()})),np.whenVisible(n).then((function(){e.fetch()})),t.__select=function(n){if(n&&n instanceof HTMLLIElement){var e=t.__selected;e&&e.classList.remove("selected"),n.classList.add("selected"),n.scrollIntoView({behavior:"smooth",block:"nearest"}),t.__selected=n}},t.addEventListener("keydown",(function(n){var o=t.__select,i=t.__selected||t.querySelector("li.selected")||t.querySelector("li"),r=!1;if(!(n.altKey||n.ctrlKey||n.metaKey||n.shiftKey))if(r=!0,"ArrowDown"===n.key)o(i.nextElementSibling);else if("ArrowUp"===n.key)o(i.previousElementSibling);else if("PageDown"===n.key)for(var c=0;c<10;c++)o(i.nextElementSibling);else if("PageUp"===n.key)for(c=0;c<10;c++)o(i.previousElementSibling);else"Enter"===n.key?i.click():"Escape"===n.key?(e.close(),e.__input.focus()):r=!1;r&&(n.preventDefault(),n.stopPropagation())})),this.__ul&&this.__ul.remove(),this.__ul=t,this.__options.appendChild(t),[4,this.fetch()];case 1:return o.sent(),[2]}}))}))},n.prototype.fetch=function(t){return o(this,void 0,void 0,(function(){var n,e,o,c,s,u,a,p,h=this;return i(this,(function(f){switch(f.label){case 0:if(n=this.__ul,e=t||25,this._loading)return[2];this._loading=!0,f.label=1;case 1:f.trys.push([1,,6,7]),(o=n.querySelector("button"))&&o.remove(),c=!1,s=function(t){var e,o;return i(this,(function(t){switch(t.label){case 0:return[4,u._iterator.next()];case 1:return(e=t.sent()).done?(c=!0,[2,"break"]):((o=n.appendChild(document.createElement("li"))).innerHTML=u._highlight(null!==(p=u.getString(e.value))&&void 0!==p?p:"",u._text),o.addEventListener("click",(function(){h.hasAttribute("multiple")?h._setValues(r(r([],h._values,!0),[e.value],!1)):h._setValues([e.value]),h.close(),h.__input.focus()})),[2])}}))},u=this,a=0,f.label=2;case 2:return a<e?[5,s(a)]:[3,5];case 3:if("break"===f.sent())return[3,5];f.label=4;case 4:return a++,[3,2];case 5:return!c&&o&&(n.appendChild(o),np.whenVisible(o).then((function(){h.fetch()}))),[3,7];case 6:return this._loading=!1,[7];case 7:return[2]}}))}))},n.prototype.focus=function(){this.__input.focus()},n.prototype.textValues=function(){return this._textValues},n.prototype._highlight=function(t,n){return t},n}(HTMLElement),op=function(t){function n(n){var e=t.call(this)||this;return e._filter="",e._order="",e._id=(null==n?void 0:n.id)||"id",e}return e(n,t),Object.defineProperty(n,"observedAttributes",{get:function(){return r(r([],ep.observedAttributes,!0),["filter","order"],!1)},enumerable:!1,configurable:!0}),n.prototype.attributeChangedCallback=function(t,n,e){"filter"===t&&(this._filter=e,this.connected&&this.refreshOptions()),"order"===t&&(this._order=e,this.connected&&this.refreshOptions())},n.prototype.getIterator=function(t){return this.getAsyncIteratorZen({text:t,filter:this._filter,order:this._order})},Object.defineProperty(n.prototype,"value",{get:function(){return this.hasAttribute("key1")?this.hasAttribute("multiple")?this.keys:this.keys.length?this.keys[0]:null:this.hasAttribute("multiple")?this.values:this.values.length?this.values[0]:null},set:function(t){if(this.hasAttribute("key1")){this.hasAttribute("multiple")&&(this.keys=t);var n=t;this.keys=n?[n]:[]}else if(this.hasAttribute("multiple"))this.values=t;else{n=t;this.values=n?[n]:[]}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"key",{get:function(){return this.keys.length?this.keys[0]:null},set:function(t){this.keys=null==t?[]:[t]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"keys",{get:function(){var t=this;return this.values.map((function(n){return n[t._id]}))},set:function(t){var n=this;null!=t&&t.length?o(n,void 0,void 0,(function(){var n,e,o,r=this;return i(this,(function(i){switch(i.label){case 0:n=this.getAsyncIteratorZen({filter:t.map((function(t){return"".concat(r._id,'=="').concat(t,'"')})).join(",")}),e=[],i.label=1;case 1:return[4,n.next()];case 2:return(o=i.sent()).done?[3,3]:(e.push(o.value),[3,1]);case 3:return this.values=e,[2]}}))})):this.values=[]},enumerable:!1,configurable:!0}),n.prototype.toEXT=function(t){return t},n.prototype.toINT=function(t){return t},n.prototype.compare=function(t,n){return t[this._id]-n[this._id]},n.prototype.pushFilter=function(t,n,e,o,i){var r=(null!=e?e:"").split(/[ .,]+/).filter((function(t){return t}));r.length&&t.push("(".concat(r.map((function(t){return"".concat(n,"=ilike='").concat(o).concat(t).concat(i,"'")})).join(";"),")"))},n}(ep),ip=function(){function t(t,n){var e,o,i,r;this._buffer=[],this._done=!1,this._exhausted=!1,this._page=0,this._input=t,this._init=n,this._url=new URL("http://host".concat(this._input.toString())),this._fetchSize=null!==(o=null===(e=this._init)||void 0===e?void 0:e.fetchSize)&&void 0!==o?o:50;var c=new URLSearchParams(this._url.search);this._first=parseInt(null!==(i=c.get("first"))&&void 0!==i?i:"0",10),this._max=parseInt(null!==(r=c.get("max"))&&void 0!==r?r:"0",10)}return t.prototype.next=function(){return o(this,void 0,void 0,(function(){var t,n,e,o,r,c,s,u,a,p;return i(this,(function(i){switch(i.label){case 0:return t=null===(a=window._zen)||void 0===a?void 0:a.debug,this._buffer.length?[2,{value:this._buffer.shift(),done:!1}]:this._done?(t&&this._exhausted&&console.warn("Iterator exhausted"),this._exhausted=!0,[2,{value:void 0,done:!0}]):(n=this._fetchSize>0?this._page*this._fetchSize+this._first:this._first,this._max>0&&this._max<=(this._page+1)*this._fetchSize?(e=this._max-n,this._done=!0):e=this._fetchSize,e>0&&e++,(o=new URLSearchParams(this._url.search)).set("first",String(n)),e>0&&o.set("max",String(e)),r="".concat(this._url.pathname,"?").concat(o.toString()),t&&console.debug("".concat(this.constructor.name,", Fetching ").concat(r)),[4,(c=null===(p=window.zen)||void 0===p?void 0:p.ctx.web).fetch(r,this._init)]);case 1:return s=i.sent(),[4,c.handleResponse(s)];case 2:return i.sent(),u=this,[4,s.json()];case 3:return u._buffer=i.sent(),this._page++,this._buffer.length?(0===e||this._buffer.length<e?this._done=!0:this._buffer.pop(),[2,{value:this._buffer.shift(),done:!1}]):(this._done=!0,this._exhausted=!0,[2,{value:void 0,done:!0}])}}))}))},t}(),rp=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/category".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code===t.description?t.code:"".concat(t.code,", ").concat(t.description)):null},n}(op),cp=function(t){function n(){var n=t.call(this)||this;return n._order="person.name",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"person.name",t.text,"%","%"),this.pushFilter(o,"person.fantasyName",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/company/company".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(t.code,", ").concat(null!==(n=t.person.fantasyName)&&void 0!==n?n:t.person.name):null},n}(op),sp=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"description",t.text,"%","%"),o.push("code=ilike=".concat("'".concat(t.text,"'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/company/society".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.description):null},n}(op),up=function(t){function n(){var n=t.call(this)||this;return n._order="name",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"name",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/location/city".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n,e,o;return t?"".concat(t.name,", ").concat(null===(n=t.state)||void 0===n?void 0:n.code,", ").concat(null===(o=null===(e=t.state)||void 0===e?void 0:e.country)||void 0===o?void 0:o.codeA2):null},n}(op),ap=function(t){function n(){var n=t.call(this)||this;return n._order="name",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"name",t.text,"%","%"),o.push("codeA2=ilike=".concat("'".concat(t.text,"'"))),o.push("codeA3=ilike=".concat("'".concat(t.text,"'"))),o.push("codeN==".concat("'".concat(t.text,"'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/location/country".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.name):null},n}(op),pp=function(t){function n(){var n=t.call(this)||this;return n._order="name",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"name",t.text,"%","%"),o.push("code=ilike=".concat("'".concat(t.text,"'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/location/state".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(t.name,", ").concat(null===(n=t.country)||void 0===n?void 0:n.codeA2):null},n}(op),hp=function(t){function n(){var n=t.call(this)||this;return n._order="name",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(e.push("tags!=inactive"),null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"name",t.text,"%","%"),this.pushFilter(o,"fantasyName",t.text,"%","%"),o.push("documentNumber=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/person/person".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.id,", ").concat(t.name).concat(t.fantasyName?", ".concat(t.fantasyName):"").concat(t.documentNumber?", ".concat(t.documentNumber):""):null},n}(op),fp=function(t){function n(){var n=t.call(this)||this;return n._order="street",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"street",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/person/personAddress".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n=[];return n.push(t.id),t.street&&n.push(t.street),t.number&&n.push(t.number),t.complement&&n.push(t.complement),t.district&&n.push(t.district),t.city&&(n.push(t.city.name),n.push(t.city.state.code)),t?n.join(", "):null},n}(op),dp=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/person/personGroup".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description):null},n}(op),lp=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/product/codeConversionList".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description):null},n}(op),mp=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/product/dimension".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description):null},n}(op),vp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(e.push("tags!=inactive"),null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),this.pushFilter(o,"keywords",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/product/product".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description,", ").concat(t.id).concat(t.code?", ".concat(t.code):""):null},n}(op),yp=function(t){function n(){var n=t.call(this)||this;return n._order="product.description,code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(e.push("tags!=inactive;product.tags!=inactive"),null==t?void 0:t.text){var o=[];t.text.startsWith("#")?o.push("code=ilike=".concat("'".concat(t.text.substring(1),"'"))):(Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),o.push("barcode=ilike=".concat("'".concat(t.text,"%'"))),o.push("product.code=ilike=".concat("'".concat(t.text,"'"))),this.pushFilter(o,"complement",t.text,"%","%"),this.pushFilter(o,"product.description",t.text,"%","%"),this.pushFilter(o,"product.complement",t.text,"%","%"),this.pushFilter(o,"product.keywords",t.text,"%","%")),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/product/productPacking".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n=[];return n.push(t.code),n.push(t.product.description),n.push(t.product.unit.code),t.complement&&n.push(t.complement),t.variant&&n.push(t.variant.description),t.units>1&&n.push("x".concat(t.units)),n.join(", ")},n}(op),gp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),o.push("description=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/product/productProfile".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){if(!t)return null;var n=[];return n.push(t.code),t.description!==t.code&&n.push(t.description),n.join(", ")},n}(op),bp=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/product/productVariant".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code?"".concat(t.code,", "):"").concat(t.description):null},n}(op),wp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/catalog/product/unit".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.dimension.code):null},n}(op),Op=function(t){function n(){var n=t.call(this)||this;return Ha.set(n,void 0),Ya.set(n,void 0),Ka.set(n,void 0),s(n,Ha,n,"f"),s(n,Ya,document.createElement("input"),"f"),c(n,Ya,"f").setAttribute("type","checkbox"),c(n,Ya,"f").addEventListener("change",(function(t){t.preventDefault(),t.stopPropagation(),s(n,Ka,c(n,Ya,"f").checked,"f"),n.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!1}))})),s(n,Ka,void 0,"f"),n}return e(n,t),n.prototype.connectedCallback=function(){c(this,Ha,"f").appendChild(c(this,Ya,"f"))},n.prototype.disconnectedCallback=function(){c(this,Ya,"f").remove()},Object.defineProperty(n.prototype,"value",{get:function(){return c(this,Ka,"f")},set:function(t){s(this,Ka,t,"f"),null==t?(c(this,Ya,"f").checked=!1,c(this,Ya,"f").indeterminate=!0):(c(this,Ya,"f").checked=t,c(this,Ya,"f").indeterminate=!1)},enumerable:!1,configurable:!0}),n}(HTMLElement);Ha=new WeakMap,Ya=new WeakMap,Ka=new WeakMap;var Sp=function(t){function n(){var n=t.call(this)||this;return n._root=n,n}return e(n,t),Object.defineProperty(n,"observedAttributes",{get:function(){return["expression"]},enumerable:!1,configurable:!0}),n.prototype.attributeChangedCallback=function(t){"expression"===t&&this.refresh()},n.prototype.connectedCallback=function(){var t=this;this._observer=new MutationObserver((function(n){n.forEach((function(){t.refresh()}))})),this._observer.observe(this,{childList:!0}),this.refresh()},n.prototype.disconnectedCallback=function(){this._observer&&(this._observer.disconnect(),this._observer=void 0)},n.prototype.refresh=function(){var t,n=this,e=this.getAttribute("expression")||(null!==(t=this._root.textContent)&&void 0!==t?t:""),o=tp.hash(e)%20+1;this._root.classList.forEach((function(t){t.startsWith("c-")&&n._root.classList.remove(t)})),this._root.classList.add("c-".concat(o))},n}(HTMLElement),Jp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/commercial/contract/contract".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description||t.code||t.id):null},n}(op),Tp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),o.push("description=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/commercial/contract/contractIndex".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description||t.code||t.id):null},n}(op),Pp=function(t){function n(){var n=t.call(this)||this;return n._order="contract.code,description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("contract.code=ilike=".concat("'".concat(t.text,"%'"))),o.push("description=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/commercial/contract/contractItem".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.contract.code,", ").concat(t.description):null},n}(op),Ep=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),o.push("description=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/commercial/contract/contractProfile".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description||t.code||t.id):null},n}(op),jp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"code",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/commercial/paymentType".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),Ip=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/commercial/priceList".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.description):null},n}(op),Rp=function(t){function n(){var n=t.call(this)||this;n._root=n;var e=function(t){t.stopPropagation(),t.target===n._inputDate&&""!==n._inputDate.value&&""===n._inputTime.value&&(n._inputTime.value=(new Date).toLocaleTimeString());var e=!1;""===n._inputDate.value&&""===n._inputTime.value?(n._value=void 0,e=!0):""!==n._inputDate.value&&""!==n._inputTime.value&&(n._value=new Date("".concat(n._inputDate.value,"T").concat(n._inputTime.value)),e=!0),e&&n.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!1}))};return n._inputDate=document.createElement("input"),n._inputDate.setAttribute("type","date"),n._inputDate.addEventListener("change",e),n._inputTime=document.createElement("input"),n._inputTime.setAttribute("type","time"),n._inputTime.setAttribute("step","1"),n._inputTime.addEventListener("change",e),n._value=void 0,n}return e(n,t),n.prototype.connectedCallback=function(){this._root.appendChild(this._inputDate),this._root.appendChild(this._inputTime)},n.prototype.disconnectedCallback=function(){this._inputDate.remove(),this._inputTime.remove()},Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){if(t){var n=void 0;n=t instanceof Date?t:new Date(t),this._value=n,this._inputDate.value=n.toISOString().substring(0,10),this._inputTime.value=n.toLocaleTimeString()}else this._inputDate.value="",this._inputTime.value=""},enumerable:!1,configurable:!0}),n}(HTMLElement),Np=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"fullDescription",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/financial/accounting/account".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.fullDescription):null},n}(op),kp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"code",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/financial/accounting/accountCategory".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(null==t.description?t.code:null===(n=window.zen)||void 0===n?void 0:n.ctx.i18n.getResource(t.description)):null},n}(op),xp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/financial/accounting/accountChart".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.description):null},n}(op),Cp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"fullDescription",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)?e.push(t.filter):e.push("id==-1"),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/financial/accounting/accountFiscalYear".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.fullDescription):null},n}(op),Lp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/financial/accounting/resultCenter".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.description):null},n}(op),_p=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/financial/accounting/resultCenterChart".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.description):null},n}(op),Dp=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("description=ilike=".concat("'%".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/financial/billing/wallet".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description):null},n}(op),Up=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/financial/credit/creditLine".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),Ap=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/financial/currency".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),Gp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("barcode=ilike=".concat("'".concat(t.text,"%'"))),o.push("code=ilike=".concat("'%".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/financial/payable".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(t.status,", ").concat(t.type,", ").concat(t.code,", ").concat(null!==(n=t.person.fantasyName)&&void 0!==n?n:t.person.name,", $").concat(t.value):null},n}(op),qp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("barcode=ilike=".concat("'".concat(t.text,"%'"))),o.push("code=ilike=".concat("'%".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/financial/receivable".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(t.status,", ").concat(t.type,", ").concat(t.code,", ").concat(null!==(n=t.person.fantasyName)&&void 0!==n?n:t.person.name,", $").concat(t.value):null},n}(op),Fp=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(e.push("tags!=inactive"),null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/fiscal/fiscalProfileOperation".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description):null},n}(op),Mp=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(e.push("tags!=inactive"),null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),n.append("order",(null==t?void 0:t.order)||"description"),new ip("/fiscal/fiscalProfilePerson".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description):null},n}(op),Bp=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(e.push("tags!=inactive"),null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/fiscal/fiscalProfileProduct".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description):null},n}(op),Zp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/fiscal/fiscalRegion".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),Vp=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&(o.push("id==".concat(Number.parseInt(t.text,10))),o.push("number==".concat("'".concat(Number.parseInt(t.text,10),"'")))),this.pushFilter(o,"person.name",t.text,"%","%"),this.pushFilter(o,"person.fantasyName",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/fiscal/incomingInvoice".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n,e;if(!t)return null;var o=[];return o.push("".concat(t.id)),o.push("".concat(t.status)),o.push("".concat(null===(n=window.zen)||void 0===n?void 0:n.ctx.i18n.formatDate(t.date,t.company.locale))),o.push("".concat(t.person.fantasyName||t.person.name)),o.push("".concat(null===(e=window.zen)||void 0===e?void 0:e.ctx.i18n.formatCurrency(t.totalValue,t.company.currency.code))),o.join(", ")},n}(op),Wp=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/fiscal/invoiceSeries".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(null==t.code?"":"".concat(t.code,", ")).concat(t.description):null},n}(op),zp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/fiscal/taxation/tax".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),$p=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/fiscal/taxation/taxationOperation".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.description):null},n}(op),Hp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/volume".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),Yp=function(t){function n(){var n=t.call(this)||this;return n._value=null,n._focus=!1,n._decimalSeparator=parseFloat("1234.5").toLocaleString(navigator.language).replace(/.*4(.*)5.*/,"$1"),n._root=n,n._input=document.createElement("input"),n._input.style.width="100%",n._input.style.height="100%",n._input.addEventListener("change",(function(t){t.stopPropagation(),n.value=n._input.value,n.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!1}))})),n._input.addEventListener("focus",(function(t){n._focus=!0,n._input.value=null!=n._value?n._value.toLocaleString(navigator.language,{useGrouping:!1,maximumFractionDigits:10}):""})),n._input.addEventListener("blur",(function(t){n._focus=!1,n._input.value=null!=n._value?n._value.toLocaleString(navigator.language,{useGrouping:!0,maximumFractionDigits:10}):""})),n}return e(n,t),n.prototype.connectedCallback=function(){for(;this._root.lastChild;)this._root.lastChild.remove();this._root.appendChild(this._input)},Object.defineProperty(n,"observedAttributes",{get:function(){return["disabled","placeholder","readonly"]},enumerable:!1,configurable:!0}),n.prototype.attributeChangedCallback=function(t){var n;this._input.setAttribute(t,null!==(n=this._root.getAttribute(t))&&void 0!==n?n:"")},Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){if(null==t)this._value=null;else if("string"==typeof t||t instanceof String)if(""===t)this._value=null;else{var n=Number(t.replace(/[.,](?=.*[.,])/g,"").replaceAll(",","."));if(Number.isNaN(n))try{n=Number(Function("return ".concat(t.replaceAll(",",".")))())}catch(t){}Number.isNaN(n)?this._value=null:this._value=Math.round(n*Math.pow(10,8))/Math.pow(10,8)}else this._value="number"==typeof t||t instanceof Number?t:null;null==this._value?this._input.value="":this._input.value=this._value.toLocaleString(navigator.language,{useGrouping:!this._focus,maximumFractionDigits:10})},enumerable:!1,configurable:!0}),n}(HTMLElement),Kp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/address".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.warehouse.code,", ").concat(t.code):null},n}(op),Qp=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/addressProfile".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),Xp=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/handlingUnit".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),th=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("company.code=ilike=".concat("'%".concat(t.text,"%'"))),o.push("company.person.name=ilike=".concat("'%".concat(t.text,"%'"))),o.push("company.person.fantasyName=ilike=".concat("'%".concat(t.text,"%'"))),o.push("person.name=ilike=".concat("'%".concat(t.text,"%'"))),o.push("person.fantasyName=ilike=".concat("'%".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/incomingList".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(t.id,", ").concat(t.status,", ").concat(t.date,", ").concat(t.company.code,", ").concat(null!==(n=t.person.fantasyName)&&void 0!==n?n:t.person.name):null},n}(op),nh=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat(t.text,"%")),this.pushFilter(o,"person.name",t.text,"%","%"),this.pushFilter(o,"person.fantasyName",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/incomingRequest".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(null==t.code?t.id:t.code,", ").concat(t.status,", ").concat(t.date,", ").concat(t.person.fantasyName||t.person.name):null},n}(op),eh=function(t){function n(){var n=t.call(this)||this;return n._order="-id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("description=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/inventory".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.id,", ").concat(t.description):null},n}(op),oh=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/lot".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),ih=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("person.name=ilike=".concat("'%".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/outgoingList".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.id,", ").concat(t.status,", ").concat(t.date,", ").concat(t.person.name):null},n}(op),rh=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("description=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/pickingOrder".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.id,", ").concat(t.status).concat(t.description?", ".concat(t.description):null):null},n}(op),ch=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),o.push("description=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/pickingProfile".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description||t.code||t.id):null},n}(op),sh=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/quality".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description):null},n}(op),uh=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/reservation".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),ah=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/reservationTarget".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n,e,o;return t?"".concat(t.productPacking.product.description," ").concat(null!==(e=null===(n=t.productPacking.grid)||void 0===n?void 0:n.code)&&void 0!==e?e:""," ").concat(null!==(o=t.productPacking.units)&&void 0!==o?o:""):null},n}(op),ph=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/serial".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),hh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"description",t.text,"%","%"),o.push("code=ilike=".concat("'".concat(t.text,"'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/stockCluster".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.description):null},n}(op),fh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'%".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")")),e.push("tags!=inactive")}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/stockType".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;if(null==t)return null;var e="/material/stockType/code/".concat(t.code),o=null===(n=window.zen)||void 0===n?void 0:n.ctx.i18n.getResource(e);return o===e?t.code:"".concat(t.code,", ").concat(o)},n}(op),dh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/material/warehouse".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),lh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/sale/priceFormation".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.description):null},n}(op),mh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/sale/priceList".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.description):null},n}(op),vh=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"code",t.text,"","%"),this.pushFilter(o,"person.name",t.text,"%","%"),this.pushFilter(o,"person.fantasyName",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/sale/sale".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.id,", ").concat(t.status,", ").concat(t.person.fantasyName||t.person.name):null},n}(op),yh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),o.push("description=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/sale/saleProfile".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description||t.code||t.id):null},n}(op),gh=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._options=[],n}return e(n,t),n.prototype.connectedCallback=function(){var n=this;null==this._options&&(this._options=[],this.root.querySelectorAll("option").forEach((function(t){var e,o;n._options.push({value:t.value?t.value:(null!==(e=t.textContent)&&void 0!==e?e:"").trim(),text:(null!==(o=t.textContent)&&void 0!==o?o:"").trim()}),t.remove()}))),o(n,void 0,void 0,(function(){var t,n;return i(this,(function(e){for(t=0,n=this._options;t<n.length;t++)n[t];return[2]}))})),t.prototype.connectedCallback.call(this)},n.prototype.getIterator=function(t){var n;n=t?this._options.filter((function(n){return n.text.toLowerCase().includes(t.toLowerCase())})):this._options;var e=0;return{next:function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return e<n.length?[2,{done:!1,value:n[e++]}]:[2,{done:!0,value:null}]}))}))}}},n.prototype.getString=function(t){return null==t?void 0:t.text},n.prototype.toEXT=function(t){return null==t?void 0:t.value},n.prototype.toINT=function(t){return this._options.find((function(n){return n.value===t}))},n.prototype.compare=function(t,n){return t.value===n.value?0:t.value<n.value?-1:1},n}(ep),bh=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),n.append("order",(null==t?void 0:t.order)||"id"),new ip("/shipping/shipment".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(t.id," ").concat(t.status," ").concat(null===(n=window.zen)||void 0===n?void 0:n.ctx.i18n.formatDate(t.date)," ").concat(t.person.name):null},n}(op),wh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/supply/production/operationType".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description||t.code||t.id):null},n}(op),Oh=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/supply/production/productionOrder".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(t.id,", ").concat(t.status,", ").concat(t.date,", ").concat(t.company.code,", ").concat(null!==(n=t.person.fantasyName)&&void 0!==n?n:t.person.name):null},n}(op),Sh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),o.push("description=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/supply/production/productionProfile".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description||t.code||t.id):null},n}(op),Jh=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/supply/production/productionStep".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.id,", ").concat(t.productionOrder.status,", ").concat(t.productionOrder.date):null},n}(op),Th=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/supply/purchase/priceList".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.description):null},n}(op),Ph=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"code",t.text,"","%"),this.pushFilter(o,"person.name",t.text,"%","%"),this.pushFilter(o,"person.fantasyName",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/supply/purchase/purchase".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;if(!t)return null;var e=[];return e.push("".concat(t.id)),t.code&&e.push("".concat(t.code)),e.push("".concat(t.status)),e.push("".concat(null===(n=window.zen)||void 0===n?void 0:n.ctx.i18n.formatDate(t.date))),e.push("".concat(t.person.fantasyName||t.person.name)),e.join(", ")},n}(op),Eh=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/supply/purchase/purchaseItem".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n,e,o;if(!t)return null;var i=[];return i.push("".concat(t.purchase.id)),i.push("".concat(t.purchase.status)),i.push("".concat(null===(n=window.zen)||void 0===n?void 0:n.ctx.i18n.formatDate(t.purchase.availabilityDate))),i.push("".concat(null!==(e=t.purchase.person.fantasyName)&&void 0!==e?e:t.purchase.person.name)),i.push("".concat(t.productPacking.code)),i.push("".concat((null===(o=window.zen)||void 0===o?void 0:o.ctx.i18n.formatNumber(t.quantity))+t.productPacking.product.unit.code)),i.join(", ")},n}(op),jh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),o.push("description=ilike=".concat("'".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/supply/purchase/purchaseProfile".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.description||t.code||t.id):null},n}(op),Ih=function(t){function n(){var n=t.call(this)||this;return n._order="id",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("productPacking.code=ilike=".concat('"'.concat(t.text,'"'))),this.pushFilter(o,"productPacking.product.description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/supply/purchase/quoteItem".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){if(!t)return null;var n=[];return n.push("".concat(t.id)),n.push("".concat(t.productPacking.code)),n.push("".concat(t.productPacking.product.description)),n.push("".concat(t.quantity)),n.join(", ")},n}(op),Rh=function(t){function n(){var n=t.call(this)||this;return n._root=n,n}return e(n,t),Object.defineProperty(n,"observedAttributes",{get:function(){return["data"]},enumerable:!1,configurable:!0}),n.prototype.attributeChangedCallback=function(t,n,e){var o=this;"data"===t&&fetch(e).then((function(t){if(!t.ok)throw new Error(t.statusText);return t.text()})).then((function(t){o._root.innerHTML=t})).catch((function(){o._root.innerHTML=""}))},n}(HTMLElement),Nh=function(t){function n(){var n=t.call(this)||this;return n._value=!1,n._connected=!1,n._root=n,n._root.addEventListener("click",(function(){n.value=!n.value,n.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!1}))})),n}return e(n,t),n.prototype.connectedCallback=function(){this._connected||(this._root.classList.add("ps-switch","ps-switch--off"),this._connected=!0)},Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t,this._value?(this._root.classList.remove("ps-switch--off"),this._root.classList.add("ps-switch--on")):(this._root.classList.remove("ps-switch--on"),this._root.classList.add("ps-switch--off"))},enumerable:!1,configurable:!0}),n}(HTMLElement),kh=function(){function t(t){t?(this._tags=t.split(","),this._tags.sort()):this._tags=[]}return t.from=function(n){return new t(n)},t.prototype.add=function(t){return t?(-1===this._tags.indexOf(t)&&(this._tags.push(t),this._tags.sort()),this):this},t.prototype.remove=function(t){if(!t)return this;var n=this._tags.indexOf(t);return-1!==n&&this._tags.splice(n,1),this},t.prototype.contains=function(t){for(var n=0,e=t.split(",");n<e.length;n++){var o=e[n];if(-1!==this._tags.indexOf(o))return!0}return!1},t.prototype.toString=function(){return this._tags.join(",")},t.prototype.toArray=function(){return r([],this._tags,!0)},t}(),xh=function(t){function n(){var n=t.call(this)||this;return n._value=[],n._root=n,n}return e(n,t),n.prototype.connectedCallback=function(){var t=this;this._root.querySelectorAll("option").forEach((function(n){n.addEventListener("click",(function(){var e,o,i=kh.from(t._value.join(","));n.hasAttribute("checked")?i.remove(null!==(e=n.getAttribute("value"))&&void 0!==e?e:""):i.add(null!==(o=n.getAttribute("value"))&&void 0!==o?o:""),t._value=i.toArray(),t._refresh(),t.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))}))})),this._refresh()},n.prototype.disconnectedCallback=function(){},n.prototype._refresh=function(){var t=kh.from(this._value.join(","));this._root.querySelectorAll("option").forEach((function(n){var e;t.contains(null!==(e=n.getAttribute("value"))&&void 0!==e?e:"")?n.setAttribute("checked",""):n.removeAttribute("checked")}))},Object.defineProperty(n.prototype,"value",{get:function(){return this._value.join(",")},set:function(t){this._value=kh.from(t).toArray(),this._refresh()},enumerable:!1,configurable:!0}),n}(HTMLElement),Ch=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("description=ilike=".concat("'%".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/automation/agent".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.id,", ").concat(t.description):null},n}(op),Lh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'%".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/data/dataSource".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),_h=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"code",t.text,"%","%"),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/image/image".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat("".concat(t.id,", ")).concat(t.code?"".concat(t.code,", "):"").concat(null!==(n=t.description)&&void 0!==n?n:"").concat(", ".concat(t.contentType)):null},n}(op),Dh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'%".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/integration/queue".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),Uh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'%".concat(t.text,"%'"))),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/integration/topic".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),Ah=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/mail/mailerConfig".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(t.code,", ").concat(null===(n=window.zen)||void 0===n?void 0:n.ctx.i18n.getResource(t.description)):null},n}(op),Gh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/printing/printer".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(t.id,", ").concat(null!==(n=t.description)&&void 0!==n?n:t.code):null},n}(op),qh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"code",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/report/report".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code):null},n}(op),Fh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/security/accessPoint".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(t.code,", ").concat(null===(n=window.zen)||void 0===n?void 0:n.ctx.i18n.getResource(t.description)):null},n}(op),Mh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/security/accessProfile".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(t.code,", ").concat(null===(n=window.zen)||void 0===n?void 0:n.ctx.i18n.getResource(t.description)):null},n}(op),Bh=function(t){function n(){var n=t.call(this)||this;return n._order="code",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),o.push("code=ilike=".concat("'".concat(t.text,"%'"))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/security/group".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(t.code,", ").concat(null===(n=window.zen)||void 0===n?void 0:n.ctx.i18n.getResource(t.description)):null},n}(op),Zh=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/security/keyStore".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return null==t?void 0:t.description},n}(op),Vh=function(t){function n(){var n=t.call(this)||this;return n._order="name",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"name",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/security/role".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(null===(n=window.zen)||void 0===n?void 0:n.ctx.i18n.getResource(t.name)):null},n}(op),Wh=function(t){function n(){var n=t.call(this)||this;return n._order="name",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"name",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/security/user".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){var n;return t?"".concat(null===(n=window.zen)||void 0===n?void 0:n.ctx.i18n.getResource(t.name)):null},n}(op),zh=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"code",t.text,"","%"),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.push("status==APPROVED"),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/workflow/workflow".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.code,", ").concat(t.description):null},n}(op),$h=function(t){function n(){var n=t.call(this)||this;return n._order="description",n}return e(n,t),n.prototype.getAsyncIteratorZen=function(t){var n=new URLSearchParams,e=[];if(null==t?void 0:t.text){var o=[];Number(t.text)===Number.parseInt(t.text,10)&&o.push("id==".concat(Number.parseInt(t.text,10))),this.pushFilter(o,"code",t.text,"","%"),this.pushFilter(o,"description",t.text,"%","%"),e.push("(".concat(o.join(","),")"))}return(null==t?void 0:t.filter)&&e.push(t.filter),e.push("workflow.status==APPROVED"),e.length&&n.append("q",e.join(";")),(null==t?void 0:t.order)&&n.append("order",t.order),new ip("/system/workflow/workflowNode".concat(n.toString()?"?".concat(n.toString()):""))},n.prototype.getString=function(t){return t?"".concat(t.workflow.description,", ").concat(t.description):null},n}(op),Hh=function(t){function n(){var n=t.call(this)||this;return n._root=n,n}return e(n,t),Object.defineProperty(n,"observedAttributes",{get:function(){return["expression"]},enumerable:!1,configurable:!0}),n.prototype.attributeChangedCallback=function(t){"expression"===t&&this.refresh()},n.prototype.connectedCallback=function(){var t=this;this._observer=new MutationObserver((function(n){n.forEach((function(){t.refresh()}))})),this._observer.observe(this,{childList:!0}),this.refresh()},n.prototype.disconnectedCallback=function(){this._observer&&(this._observer.disconnect(),this._observer=void 0)},n.prototype.refresh=function(){var t,n=this,e=this.getAttribute("expression")||(null!==(t=this._root.textContent)&&void 0!==t?t:""),o=tp.hash(e)%20+1;this._root.classList.forEach((function(t){(t.startsWith("ps-color-")||t.startsWith("c-"))&&n._root.classList.remove(t)})),this._root.classList.add("ps-color-".concat(o),"c-".concat(o))},n}(HTMLElement),Yh=function(t){function n(){var n=t.call(this)||this;return n._value=[],n._root=n,n._input=document.createElement("input"),n._input.type="text",n._input.addEventListener("change",(function(t){t.stopPropagation()})),n._input.addEventListener("focusout",(function(){n.inputToTag()})),n._input.addEventListener("keydown",(function(t){"Enter"===t.key?n.inputToTag():"Backspace"===t.key&&""===n._input.value&&n._value.length>0&&(n._value.pop(),n.update())})),n._input.addEventListener("input",(function(){var t=n._input.value;t.length>1&&(t.endsWith(" ")||t.endsWith(","))&&n.inputToTag()})),n}return e(n,t),n.prototype.connectedCallback=function(){this._root.appendChild(this._input),this.update()},Object.defineProperty(n,"observedAttributes",{get:function(){return["disabled","placeholder"]},enumerable:!1,configurable:!0}),n.prototype.attributeChangedCallback=function(t,n,e){n!==e&&("placeholder"===t?this._input.setAttribute(t,e):"disabled"===t&&this.setDisabled(this._input,e))},Object.defineProperty(n.prototype,"value",{get:function(){return this._value.join(",")},set:function(t){var n=(t||"").trim().split(",").map((function(t){return t.trim()})).filter((function(t){return""!==t}));this._value=n,this.update()},enumerable:!1,configurable:!0}),n.prototype.setDisabled=function(t,n){var e=this;t.setAttribute("disabled",n),t.childNodes.forEach((function(t){t instanceof HTMLElement&&e.setDisabled(t,n)}))},n.prototype.inputToTag=function(){var t=this._input.value.trim().replace(",","");this._input.value="",t&&-1===this._value.indexOf(t)&&(this._value.push(t),this.update(),this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})))},n.prototype.createTag=function(t){var n=this,e=document.createElement("span"),o=tp.hash(t)%20+1;return e.classList.add("ps-color-".concat(o),"c-".concat(o)),e.innerText=t,e.onclick=function(){n._value.splice(n._value.indexOf(t),1),n.update(),n.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},e},n.prototype.update=function(){this._root.querySelectorAll("span").forEach((function(t){return t.remove()}));for(var t=0,n=this._value;t<n.length;t++){var e=n[t];e&&this._input.before(this.createTag(e))}},n}(HTMLElement),Kh=function(t){function n(){var n=t.call(this)||this;return n._value=[],n._root=n,n}return e(n,t),n.prototype.connectedCallback=function(){var t=this;this._root.textContent&&(this._value=kh.from(this._root.textContent).toArray()),this.update(),this._observer=new MutationObserver((function(n){1===n.length&&1===n[0].addedNodes.length&&3===n[0].addedNodes[0].nodeType&&(t._value=kh.from(t._root.textContent).toArray(),t.update())})),this._observer.observe(this,{childList:!0})},n.prototype.disconnectedCallback=function(){this._observer&&(this._observer.disconnect(),this._observer=void 0)},Object.defineProperty(n.prototype,"value",{get:function(){return this._value.join(",")},enumerable:!1,configurable:!0}),n.prototype.createTag=function(t){var n=document.createElement("span"),e=tp.hash(t)%20+1;return n.classList.add("ps-color-".concat(e),"c-".concat(e)),n.innerText=t,n},n.prototype.update=function(){this._root.textContent="";for(var t=0,n=this._value;t<n.length;t++){var e=n[t];e&&this._root.appendChild(this.createTag(e))}},n}(HTMLElement),Qh=function(t){function n(){var n=t.call(this)||this;return n._value=!1,n._root=n,n}return e(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:!1,configurable:!0}),n}(HTMLElement),Xh=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._hash=0,n}return e(n,t),n.prototype.connectedCallback=function(){var t,n,e=this;this.contentEditable=null!==(t=this.getAttribute("contenteditable"))&&void 0!==t?t:"true",this.tabIndex=Number(null!==(n=this.getAttribute("tabindex"))&&void 0!==n?n:"0"),this._hash=tp.hash(this.innerHTML),this.addEventListener("focusout",(function(){e.dispatchIfChanged()}))},n.prototype.dispatchIfChanged=function(){var t=tp.hash(this.innerHTML);this._hash!==t&&(this._hash=t,this.dispatchEvent(new Event("change")))},Object.defineProperty(n.prototype,"innerHTML",{get:function(){return t.prototype.innerHTML},set:function(n){t.prototype.innerHTML=n,this._hash=tp.hash(this.innerHTML)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return(null!=(t=this.innerHTML)?t:"").replace(/<br>/g,"\n").replace(/<[^>]*>/g,"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'");var t},set:function(t){this.innerHTML=function(t){return(null!=t?t:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\r\n/g,"<br>").replace(/\n/g,"<br>")}(t),this._hash=tp.hash(this.innerHTML)},enumerable:!1,configurable:!0}),n}(HTMLElement);var tf=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(Xh);return t.api=Wa,t.connect=function(t,n,e,r){return o(this,void 0,void 0,(function(){var o,c,s,u;return i(this,(function(i){switch(i.label){case 0:if(!t)throw new Error("Missing argument: host");if(!n)throw new Error("Missing argument: user");return t.toLowerCase().startsWith("http")||(t="https://".concat(t,".zenerp.app.br:8443")),[4,fetch("".concat(t,"/system/security/tokenOpRequest"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:n,password:e,properties:r})})];case 1:return(o=i.sent()).ok?[3,3]:[4,o.json()];case 2:throw c=i.sent(),(s=new Error(c.message)).stackTrace=c.stackTrace,s;case 3:return[4,o.text()];case 4:return u=i.sent(),[2,_o(t,u)]}}))}))},t.createFromToken=_o,t.customElementsDefine=function(){customElements.define("ps-catalog-category",rp),customElements.define("ps-catalog-company-company",cp),customElements.define("ps-catalog-company-society",sp),customElements.define("ps-catalog-location-city",up),customElements.define("ps-catalog-location-country",ap),customElements.define("ps-catalog-location-state",pp),customElements.define("ps-catalog-person-person",hp),customElements.define("ps-catalog-person-personaddress",fp),customElements.define("ps-catalog-person-persongroup",dp),customElements.define("ps-catalog-product-codeconversionlist",lp),customElements.define("ps-catalog-product-dimension",mp),customElements.define("ps-catalog-product-product",vp),customElements.define("ps-catalog-product-productpacking",yp),customElements.define("ps-catalog-product-productprofile",gp),customElements.define("ps-catalog-product-productvariant",bp),customElements.define("ps-catalog-product-unit",wp),customElements.define("ps-checkbox",Op),customElements.define("ps-commercial-contract-contract",Jp),customElements.define("ps-commercial-contract-contractindex",Tp),customElements.define("ps-commercial-contract-contractitem",Pp),customElements.define("ps-commercial-contract-contractprofile",Ep),customElements.define("ps-commercial-paymenttype",jp),customElements.define("ps-commercial-pricelist",Ip),customElements.define("ps-datetime",Rp),customElements.define("ps-financial-accounting-account",Np),customElements.define("ps-financial-accounting-accountcategory",kp),customElements.define("ps-financial-accounting-accountchart",xp),customElements.define("ps-financial-accounting-accountfiscalyear",Cp),customElements.define("ps-financial-accounting-resultcenter",Lp),customElements.define("ps-financial-accounting-resultcenterchart",_p),customElements.define("ps-financial-billing-wallet",Dp),customElements.define("ps-financial-credit-creditline",Up),customElements.define("ps-financial-currency",Ap),customElements.define("ps-financial-payable",Gp),customElements.define("ps-financial-receivable",qp),customElements.define("ps-fiscal-fiscalprofileoperation",Fp),customElements.define("ps-fiscal-fiscalprofileperson",Mp),customElements.define("ps-fiscal-fiscalprofileproduct",Bp),customElements.define("ps-fiscal-fiscalregion",Zp),customElements.define("ps-fiscal-incominginvoice",Vp),customElements.define("ps-fiscal-invoiceseries",Wp),customElements.define("ps-fiscal-taxation-tax",zp),customElements.define("ps-fiscal-taxation-taxationoperation",$p),customElements.define("ps-fiscal-volume",Hp),customElements.define("ps-hide-and-seek",np),customElements.define("ps-material-address",Kp),customElements.define("ps-material-addressprofile",Qp),customElements.define("ps-material-handlingunit",Xp),customElements.define("ps-material-incominglist",th),customElements.define("ps-material-incomingrequest",nh),customElements.define("ps-material-inventory",eh),customElements.define("ps-material-lot",oh),customElements.define("ps-material-outgoinglist",ih),customElements.define("ps-material-pickingorder",rh),customElements.define("ps-material-pickingprofile",ch),customElements.define("ps-material-quality",sh),customElements.define("ps-material-reservation",uh),customElements.define("ps-material-reservationtarget",ah),customElements.define("ps-material-serial",ph),customElements.define("ps-material-stockcluster",hh),customElements.define("ps-material-stocktype",fh),customElements.define("ps-material-warehouse",dh),customElements.define("ps-sale-priceformation",lh),customElements.define("ps-sale-pricelist",mh),customElements.define("ps-sale-sale",vh),customElements.define("ps-sale-saleprofile",yh),customElements.define("ps-select",gh),customElements.define("ps-shipping-shipment",bh),customElements.define("ps-supply-production-operationtype",wh),customElements.define("ps-supply-production-productionorder",Oh),customElements.define("ps-supply-production-productionprofile",Sh),customElements.define("ps-supply-production-productionstep",Jh),customElements.define("ps-supply-purchase-pricelist",Th),customElements.define("ps-supply-purchase-purchase",Ph),customElements.define("ps-supply-purchase-purchaseitem",Eh),customElements.define("ps-supply-purchase-purchaseprofile",jh),customElements.define("ps-supply-purchase-quoteitem",Ih),customElements.define("ps-svg",Rh),customElements.define("ps-switch",Nh),customElements.define("ps-switches",xh),customElements.define("ps-system-automation-agent",Ch),customElements.define("ps-system-data-datasource",Lh),customElements.define("ps-system-image-image",_h),customElements.define("ps-system-integration-queue",Dh),customElements.define("ps-system-integration-topic",Uh),customElements.define("ps-system-mail-mailerconfig",Ah),customElements.define("ps-system-printing-printer",Gh),customElements.define("ps-system-report-report",qh),customElements.define("ps-system-security-accesspoint",Fh),customElements.define("ps-system-security-accessprofile",Mh),customElements.define("ps-system-security-group",Bh),customElements.define("ps-system-security-keystore",Zh),customElements.define("ps-system-security-role",Vh),customElements.define("ps-system-security-user",Wh),customElements.define("ps-system-workflow-workflow",zh),customElements.define("ps-system-workflow-workflownode",$h),customElements.define("ps-tag",Hh),customElements.define("ps-tags",Yh),customElements.define("ps-tags-view",Kh),customElements.define("ps-template",Qh),customElements.define("ps-textarea",tf),customElements.define("z-color",Sp),customElements.define("z-input-number",Yp)},t}({});
|
|
2
2
|
//# sourceMappingURL=zenerpclient.js.map
|