@icure/cardinal-sdk 0.0.0-unspecified
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/Kermit-kermit-core.mjs +267 -0
- package/Kermit-kermit-core.mjs.map +1 -0
- package/Kermit-kermit.mjs +57 -0
- package/Kermit-kermit.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +7044 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/KotlinBigInteger-bignum-serialization-kotlinx.mjs +4 -0
- package/KotlinBigInteger-bignum-serialization-kotlinx.mjs.map +1 -0
- package/KotlinBigInteger-bignum.mjs +5893 -0
- package/KotlinBigInteger-bignum.mjs.map +1 -0
- package/api/AccessLogApi.d.mts +74 -0
- package/api/AccessLogApi.mjs +2 -0
- package/api/AccessLogApi.mjs.map +1 -0
- package/api/AccessLogBasicApi.d.mts +40 -0
- package/api/AccessLogBasicApi.mjs +2 -0
- package/api/AccessLogBasicApi.mjs.map +1 -0
- package/api/AccessLogFlavouredApi.d.mts +41 -0
- package/api/AccessLogFlavouredApi.mjs +2 -0
- package/api/AccessLogFlavouredApi.mjs.map +1 -0
- package/api/AgendaApi.d.mts +28 -0
- package/api/AgendaApi.mjs +2 -0
- package/api/AgendaApi.mjs.map +1 -0
- package/api/ApplicationSettingsApi.d.mts +6 -0
- package/api/ApplicationSettingsApi.mjs +2 -0
- package/api/ApplicationSettingsApi.mjs.map +1 -0
- package/api/CalendarItemApi.d.mts +68 -0
- package/api/CalendarItemApi.mjs +2 -0
- package/api/CalendarItemApi.mjs.map +1 -0
- package/api/CalendarItemBasicApi.d.mts +33 -0
- package/api/CalendarItemBasicApi.mjs +2 -0
- package/api/CalendarItemBasicApi.mjs.map +1 -0
- package/api/CalendarItemFlavouredApi.d.mts +29 -0
- package/api/CalendarItemFlavouredApi.mjs +2 -0
- package/api/CalendarItemFlavouredApi.mjs.map +1 -0
- package/api/CalendarItemTypeApi.d.mts +12 -0
- package/api/CalendarItemTypeApi.mjs +2 -0
- package/api/CalendarItemTypeApi.mjs.map +1 -0
- package/api/CardinalMaintenanceTaskApi.d.mts +10 -0
- package/api/CardinalMaintenanceTaskApi.mjs +2 -0
- package/api/CardinalMaintenanceTaskApi.mjs.map +1 -0
- package/api/ClassificationApi.d.mts +48 -0
- package/api/ClassificationApi.mjs +2 -0
- package/api/ClassificationApi.mjs.map +1 -0
- package/api/ClassificationBasicApi.d.mts +14 -0
- package/api/ClassificationBasicApi.mjs +2 -0
- package/api/ClassificationBasicApi.mjs.map +1 -0
- package/api/ClassificationFlavouredApi.d.mts +22 -0
- package/api/ClassificationFlavouredApi.mjs +2 -0
- package/api/ClassificationFlavouredApi.mjs.map +1 -0
- package/api/CodeApi.d.mts +56 -0
- package/api/CodeApi.mjs +2 -0
- package/api/CodeApi.mjs.map +1 -0
- package/api/ContactApi.d.mts +92 -0
- package/api/ContactApi.mjs +2 -0
- package/api/ContactApi.mjs.map +1 -0
- package/api/ContactBasicApi.d.mts +55 -0
- package/api/ContactBasicApi.mjs +2 -0
- package/api/ContactBasicApi.mjs.map +1 -0
- package/api/ContactFlavouredApi.d.mts +43 -0
- package/api/ContactFlavouredApi.mjs +2 -0
- package/api/ContactFlavouredApi.mjs.map +1 -0
- package/api/CryptoApi.d.mts +13 -0
- package/api/CryptoApi.mjs +2 -0
- package/api/CryptoApi.mjs.map +1 -0
- package/api/DataOwnerApi.d.mts +16 -0
- package/api/DataOwnerApi.mjs +2 -0
- package/api/DataOwnerApi.mjs.map +1 -0
- package/api/DeviceApi.d.mts +39 -0
- package/api/DeviceApi.mjs +2 -0
- package/api/DeviceApi.mjs.map +1 -0
- package/api/DocumentApi.d.mts +90 -0
- package/api/DocumentApi.mjs +2 -0
- package/api/DocumentApi.mjs.map +1 -0
- package/api/DocumentBasicApi.d.mts +35 -0
- package/api/DocumentBasicApi.mjs +2 -0
- package/api/DocumentBasicApi.mjs.map +1 -0
- package/api/DocumentFlavouredApi.d.mts +28 -0
- package/api/DocumentFlavouredApi.mjs +2 -0
- package/api/DocumentFlavouredApi.mjs.map +1 -0
- package/api/DocumentTemplateApi.d.mts +22 -0
- package/api/DocumentTemplateApi.mjs +2 -0
- package/api/DocumentTemplateApi.mjs.map +1 -0
- package/api/EntityReferenceApi.d.mts +5 -0
- package/api/EntityReferenceApi.mjs +2 -0
- package/api/EntityReferenceApi.mjs.map +1 -0
- package/api/EntityTemplateApi.d.mts +24 -0
- package/api/EntityTemplateApi.mjs +2 -0
- package/api/EntityTemplateApi.mjs.map +1 -0
- package/api/FormApi.d.mts +80 -0
- package/api/FormApi.mjs +2 -0
- package/api/FormApi.mjs.map +1 -0
- package/api/FormBasicApi.d.mts +45 -0
- package/api/FormBasicApi.mjs +2 -0
- package/api/FormBasicApi.mjs.map +1 -0
- package/api/FormFlavouredApi.d.mts +30 -0
- package/api/FormFlavouredApi.mjs +2 -0
- package/api/FormFlavouredApi.mjs.map +1 -0
- package/api/FrontEndMigrationApi.d.mts +10 -0
- package/api/FrontEndMigrationApi.mjs +2 -0
- package/api/FrontEndMigrationApi.mjs.map +1 -0
- package/api/GroupApi.d.mts +70 -0
- package/api/GroupApi.mjs +2 -0
- package/api/GroupApi.mjs.map +1 -0
- package/api/HealthElementApi.d.mts +65 -0
- package/api/HealthElementApi.mjs +2 -0
- package/api/HealthElementApi.mjs.map +1 -0
- package/api/HealthElementBasicApi.d.mts +30 -0
- package/api/HealthElementBasicApi.mjs +2 -0
- package/api/HealthElementBasicApi.mjs.map +1 -0
- package/api/HealthElementFlavouredApi.d.mts +25 -0
- package/api/HealthElementFlavouredApi.mjs +2 -0
- package/api/HealthElementFlavouredApi.mjs.map +1 -0
- package/api/HealthcarePartyApi.d.mts +75 -0
- package/api/HealthcarePartyApi.mjs +2 -0
- package/api/HealthcarePartyApi.mjs.map +1 -0
- package/api/InsuranceApi.d.mts +16 -0
- package/api/InsuranceApi.mjs +2 -0
- package/api/InsuranceApi.mjs.map +1 -0
- package/api/InvoiceApi.d.mts +85 -0
- package/api/InvoiceApi.mjs +2 -0
- package/api/InvoiceApi.mjs.map +1 -0
- package/api/InvoiceBasicApi.d.mts +49 -0
- package/api/InvoiceBasicApi.mjs +2 -0
- package/api/InvoiceBasicApi.mjs.map +1 -0
- package/api/InvoiceFlavouredApi.d.mts +59 -0
- package/api/InvoiceFlavouredApi.mjs +2 -0
- package/api/InvoiceFlavouredApi.mjs.map +1 -0
- package/api/KeywordApi.d.mts +14 -0
- package/api/KeywordApi.mjs +2 -0
- package/api/KeywordApi.mjs.map +1 -0
- package/api/MaintenanceTaskApi.d.mts +55 -0
- package/api/MaintenanceTaskApi.mjs +2 -0
- package/api/MaintenanceTaskApi.mjs.map +1 -0
- package/api/MaintenanceTaskBasicApi.d.mts +29 -0
- package/api/MaintenanceTaskBasicApi.mjs +2 -0
- package/api/MaintenanceTaskBasicApi.mjs.map +1 -0
- package/api/MaintenanceTaskFlavouredApi.d.mts +18 -0
- package/api/MaintenanceTaskFlavouredApi.mjs +2 -0
- package/api/MaintenanceTaskFlavouredApi.mjs.map +1 -0
- package/api/MedicalLocationApi.d.mts +17 -0
- package/api/MedicalLocationApi.mjs +2 -0
- package/api/MedicalLocationApi.mjs.map +1 -0
- package/api/MessageApi.d.mts +81 -0
- package/api/MessageApi.mjs +2 -0
- package/api/MessageApi.mjs.map +1 -0
- package/api/MessageBasicApi.d.mts +46 -0
- package/api/MessageBasicApi.mjs +2 -0
- package/api/MessageBasicApi.mjs.map +1 -0
- package/api/MessageFlavouredApi.d.mts +41 -0
- package/api/MessageFlavouredApi.mjs +2 -0
- package/api/MessageFlavouredApi.mjs.map +1 -0
- package/api/PatientApi.d.mts +148 -0
- package/api/PatientApi.mjs +2 -0
- package/api/PatientApi.mjs.map +1 -0
- package/api/PatientBasicApi.d.mts +107 -0
- package/api/PatientBasicApi.mjs +2 -0
- package/api/PatientBasicApi.mjs.map +1 -0
- package/api/PatientFlavouredApi.d.mts +95 -0
- package/api/PatientFlavouredApi.mjs +2 -0
- package/api/PatientFlavouredApi.mjs.map +1 -0
- package/api/PermissionApi.d.mts +4 -0
- package/api/PermissionApi.mjs +2 -0
- package/api/PermissionApi.mjs.map +1 -0
- package/api/PlaceApi.d.mts +13 -0
- package/api/PlaceApi.mjs +2 -0
- package/api/PlaceApi.mjs.map +1 -0
- package/api/ReceiptApi.d.mts +43 -0
- package/api/ReceiptApi.mjs +2 -0
- package/api/ReceiptApi.mjs.map +1 -0
- package/api/ReceiptBasicApi.d.mts +11 -0
- package/api/ReceiptBasicApi.mjs +2 -0
- package/api/ReceiptBasicApi.mjs.map +1 -0
- package/api/ReceiptFlavouredApi.d.mts +13 -0
- package/api/ReceiptFlavouredApi.mjs +2 -0
- package/api/ReceiptFlavouredApi.mjs.map +1 -0
- package/api/RecoveryApi.d.mts +34 -0
- package/api/RecoveryApi.mjs +2 -0
- package/api/RecoveryApi.mjs.map +1 -0
- package/api/RoleApi.d.mts +4 -0
- package/api/RoleApi.mjs +2 -0
- package/api/RoleApi.mjs.map +1 -0
- package/api/ShamirKeysManagerApi.d.mts +12 -0
- package/api/ShamirKeysManagerApi.mjs +2 -0
- package/api/ShamirKeysManagerApi.mjs.map +1 -0
- package/api/SystemApi.d.mts +39 -0
- package/api/SystemApi.mjs +2 -0
- package/api/SystemApi.mjs.map +1 -0
- package/api/TarificationApi.d.mts +27 -0
- package/api/TarificationApi.mjs +2 -0
- package/api/TarificationApi.mjs.map +1 -0
- package/api/TimeTableApi.d.mts +26 -0
- package/api/TimeTableApi.mjs +2 -0
- package/api/TimeTableApi.mjs.map +1 -0
- package/api/TopicApi.d.mts +61 -0
- package/api/TopicApi.mjs +2 -0
- package/api/TopicApi.mjs.map +1 -0
- package/api/TopicBasicApi.d.mts +32 -0
- package/api/TopicBasicApi.mjs +2 -0
- package/api/TopicBasicApi.mjs.map +1 -0
- package/api/TopicFlavouredApi.d.mts +21 -0
- package/api/TopicFlavouredApi.mjs +2 -0
- package/api/TopicFlavouredApi.mjs.map +1 -0
- package/api/UserApi.d.mts +82 -0
- package/api/UserApi.mjs +2 -0
- package/api/UserApi.mjs.map +1 -0
- package/api.d.mts +65 -0
- package/api.mjs +66 -0
- package/api.mjs.map +1 -0
- package/auth/CaptchaOptions.d.mts +27 -0
- package/auth/CaptchaOptions.mjs +37 -0
- package/auth/CaptchaOptions.mjs.map +1 -0
- package/auth.d.mts +1 -0
- package/auth.mjs +2 -0
- package/auth.mjs.map +1 -0
- package/cardinal-sdk-ts.d.mts +389 -0
- package/cardinal-sdk-ts.mjs +139002 -0
- package/cardinal-sdk-ts.mjs.map +1 -0
- package/cardinal-sdk.mjs +319545 -0
- package/cardinal-sdk.mjs.map +1 -0
- package/crypto/CryptoService.d.mts +88 -0
- package/crypto/CryptoService.mjs +29 -0
- package/crypto/CryptoService.mjs.map +1 -0
- package/crypto/CryptoStrategies.d.mts +164 -0
- package/crypto/CryptoStrategies.mjs +88 -0
- package/crypto/CryptoStrategies.mjs.map +1 -0
- package/crypto/entities/AccessLogShareOptions.d.mts +10 -0
- package/crypto/entities/AccessLogShareOptions.mjs +21 -0
- package/crypto/entities/AccessLogShareOptions.mjs.map +1 -0
- package/crypto/entities/CalendarItemShareOptions.d.mts +10 -0
- package/crypto/entities/CalendarItemShareOptions.mjs +21 -0
- package/crypto/entities/CalendarItemShareOptions.mjs.map +1 -0
- package/crypto/entities/ClassificationShareOptions.d.mts +10 -0
- package/crypto/entities/ClassificationShareOptions.mjs +21 -0
- package/crypto/entities/ClassificationShareOptions.mjs.map +1 -0
- package/crypto/entities/ContactShareOptions.d.mts +10 -0
- package/crypto/entities/ContactShareOptions.mjs +21 -0
- package/crypto/entities/ContactShareOptions.mjs.map +1 -0
- package/crypto/entities/DelegateShareOptions.d.mts +9 -0
- package/crypto/entities/DelegateShareOptions.mjs +9 -0
- package/crypto/entities/DelegateShareOptions.mjs.map +1 -0
- package/crypto/entities/DocumentShareOptions.d.mts +10 -0
- package/crypto/entities/DocumentShareOptions.mjs +21 -0
- package/crypto/entities/DocumentShareOptions.mjs.map +1 -0
- package/crypto/entities/EntityAccessInformation.d.mts +8 -0
- package/crypto/entities/EntityAccessInformation.mjs +7 -0
- package/crypto/entities/EntityAccessInformation.mjs.map +1 -0
- package/crypto/entities/EntityWithTypeInfo.d.mts +6 -0
- package/crypto/entities/EntityWithTypeInfo.mjs +7 -0
- package/crypto/entities/EntityWithTypeInfo.mjs.map +1 -0
- package/crypto/entities/FailedRequestDetails.d.mts +11 -0
- package/crypto/entities/FailedRequestDetails.mjs +12 -0
- package/crypto/entities/FailedRequestDetails.mjs.map +1 -0
- package/crypto/entities/FormShareOptions.d.mts +10 -0
- package/crypto/entities/FormShareOptions.mjs +21 -0
- package/crypto/entities/FormShareOptions.mjs.map +1 -0
- package/crypto/entities/HealthElementShareOptions.d.mts +10 -0
- package/crypto/entities/HealthElementShareOptions.mjs +21 -0
- package/crypto/entities/HealthElementShareOptions.mjs.map +1 -0
- package/crypto/entities/InvoiceShareOptions.d.mts +10 -0
- package/crypto/entities/InvoiceShareOptions.mjs +21 -0
- package/crypto/entities/InvoiceShareOptions.mjs.map +1 -0
- package/crypto/entities/MaintenanceTaskShareOptions.d.mts +9 -0
- package/crypto/entities/MaintenanceTaskShareOptions.mjs +18 -0
- package/crypto/entities/MaintenanceTaskShareOptions.mjs.map +1 -0
- package/crypto/entities/MessageShareOptions.d.mts +10 -0
- package/crypto/entities/MessageShareOptions.mjs +21 -0
- package/crypto/entities/MessageShareOptions.mjs.map +1 -0
- package/crypto/entities/PatientShareOptions.d.mts +9 -0
- package/crypto/entities/PatientShareOptions.mjs +18 -0
- package/crypto/entities/PatientShareOptions.mjs.map +1 -0
- package/crypto/entities/ReceiptShareOptions.d.mts +9 -0
- package/crypto/entities/ReceiptShareOptions.mjs +18 -0
- package/crypto/entities/ReceiptShareOptions.mjs.map +1 -0
- package/crypto/entities/RecoveryDataKey.d.mts +10 -0
- package/crypto/entities/RecoveryDataKey.mjs +25 -0
- package/crypto/entities/RecoveryDataKey.mjs.map +1 -0
- package/crypto/entities/RecoveryDataUseFailureReason.d.mts +6 -0
- package/crypto/entities/RecoveryDataUseFailureReason.mjs +9 -0
- package/crypto/entities/RecoveryDataUseFailureReason.mjs.map +1 -0
- package/crypto/entities/RecoveryKeyOptions.d.mts +15 -0
- package/crypto/entities/RecoveryKeyOptions.mjs +18 -0
- package/crypto/entities/RecoveryKeyOptions.mjs.map +1 -0
- package/crypto/entities/RecoveryKeySize.d.mts +4 -0
- package/crypto/entities/RecoveryKeySize.mjs +7 -0
- package/crypto/entities/RecoveryKeySize.mjs.map +1 -0
- package/crypto/entities/RecoveryResult.d.mts +14 -0
- package/crypto/entities/RecoveryResult.mjs +18 -0
- package/crypto/entities/RecoveryResult.mjs.map +1 -0
- package/crypto/entities/SecretIdShareOptions.d.mts +14 -0
- package/crypto/entities/SecretIdShareOptions.mjs +20 -0
- package/crypto/entities/SecretIdShareOptions.mjs.map +1 -0
- package/crypto/entities/SecretIdUseOption.d.mts +23 -0
- package/crypto/entities/SecretIdUseOption.mjs +27 -0
- package/crypto/entities/SecretIdUseOption.mjs.map +1 -0
- package/crypto/entities/ShamirUpdateRequest.d.mts +5 -0
- package/crypto/entities/ShamirUpdateRequest.mjs +8 -0
- package/crypto/entities/ShamirUpdateRequest.mjs.map +1 -0
- package/crypto/entities/ShareAllPatientDataOptions.d.mts +45 -0
- package/crypto/entities/ShareAllPatientDataOptions.mjs +55 -0
- package/crypto/entities/ShareAllPatientDataOptions.mjs.map +1 -0
- package/crypto/entities/ShareMetadataBehaviour.d.mts +5 -0
- package/crypto/entities/ShareMetadataBehaviour.mjs +8 -0
- package/crypto/entities/ShareMetadataBehaviour.mjs.map +1 -0
- package/crypto/entities/TimeTableShareOptions.d.mts +9 -0
- package/crypto/entities/TimeTableShareOptions.mjs +18 -0
- package/crypto/entities/TimeTableShareOptions.mjs.map +1 -0
- package/crypto/entities/TopicShareOptions.d.mts +10 -0
- package/crypto/entities/TopicShareOptions.mjs +21 -0
- package/crypto/entities/TopicShareOptions.mjs.map +1 -0
- package/crypto.d.mts +30 -0
- package/crypto.mjs +31 -0
- package/crypto.mjs.map +1 -0
- package/filters/AccessLogFilters.d.mts +37 -0
- package/filters/AccessLogFilters.mjs +11 -0
- package/filters/AccessLogFilters.mjs.map +1 -0
- package/filters/AgendaFilters.d.mts +9 -0
- package/filters/AgendaFilters.mjs +8 -0
- package/filters/AgendaFilters.mjs.map +1 -0
- package/filters/CalendarItemFilters.d.mts +35 -0
- package/filters/CalendarItemFilters.mjs +15 -0
- package/filters/CalendarItemFilters.mjs.map +1 -0
- package/filters/ClassificationFilters.d.mts +27 -0
- package/filters/ClassificationFilters.mjs +9 -0
- package/filters/ClassificationFilters.mjs.map +1 -0
- package/filters/CodeFilters.d.mts +24 -0
- package/filters/CodeFilters.mjs +11 -0
- package/filters/CodeFilters.mjs.map +1 -0
- package/filters/ContactFilters.d.mts +82 -0
- package/filters/ContactFilters.mjs +31 -0
- package/filters/ContactFilters.mjs.map +1 -0
- package/filters/DeviceFilters.d.mts +9 -0
- package/filters/DeviceFilters.mjs +8 -0
- package/filters/DeviceFilters.mjs.map +1 -0
- package/filters/DocumentFilters.d.mts +32 -0
- package/filters/DocumentFilters.mjs +13 -0
- package/filters/DocumentFilters.mjs.map +1 -0
- package/filters/FormFilters.d.mts +35 -0
- package/filters/FormFilters.mjs +13 -0
- package/filters/FormFilters.mjs.map +1 -0
- package/filters/GroupFilters.d.mts +9 -0
- package/filters/GroupFilters.mjs +8 -0
- package/filters/GroupFilters.mjs.map +1 -0
- package/filters/HealthElementFilters.d.mts +51 -0
- package/filters/HealthElementFilters.mjs +24 -0
- package/filters/HealthElementFilters.mjs.map +1 -0
- package/filters/HealthcarePartyFilters.d.mts +24 -0
- package/filters/HealthcarePartyFilters.mjs +14 -0
- package/filters/HealthcarePartyFilters.mjs.map +1 -0
- package/filters/MaintenanceTaskFilters.d.mts +14 -0
- package/filters/MaintenanceTaskFilters.mjs +12 -0
- package/filters/MaintenanceTaskFilters.mjs.map +1 -0
- package/filters/MedicalLocationFilters.d.mts +8 -0
- package/filters/MedicalLocationFilters.mjs +7 -0
- package/filters/MedicalLocationFilters.mjs.map +1 -0
- package/filters/MessageFilters.d.mts +45 -0
- package/filters/MessageFilters.mjs +23 -0
- package/filters/MessageFilters.mjs.map +1 -0
- package/filters/MetaFilters.d.mts +41 -0
- package/filters/MetaFilters.mjs +11 -0
- package/filters/MetaFilters.mjs.map +1 -0
- package/filters/PatientFilters.d.mts +43 -0
- package/filters/PatientFilters.mjs +30 -0
- package/filters/PatientFilters.mjs.map +1 -0
- package/filters/ServiceFilters.d.mts +64 -0
- package/filters/ServiceFilters.mjs +26 -0
- package/filters/ServiceFilters.mjs.map +1 -0
- package/filters/TimeTableFilters.d.mts +12 -0
- package/filters/TimeTableFilters.mjs +7 -0
- package/filters/TimeTableFilters.mjs.map +1 -0
- package/filters/TopicFilters.d.mts +9 -0
- package/filters/TopicFilters.mjs +8 -0
- package/filters/TopicFilters.mjs.map +1 -0
- package/filters/UserFilters.d.mts +11 -0
- package/filters/UserFilters.mjs +10 -0
- package/filters/UserFilters.mjs.map +1 -0
- package/filters.d.mts +21 -0
- package/filters.mjs +22 -0
- package/filters.mjs.map +1 -0
- package/kerberus/Solution.d.mts +4 -0
- package/kerberus/Solution.mjs +2 -0
- package/kerberus/Solution.mjs.map +1 -0
- package/kerberus.d.mts +1 -0
- package/kerberus.mjs +1089 -0
- package/kerberus.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +16596 -0
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -0
- package/kotlinx-atomicfu.mjs +247 -0
- package/kotlinx-atomicfu.mjs.map +1 -0
- package/kotlinx-coroutines-core.mjs +10583 -0
- package/kotlinx-coroutines-core.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs +202 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +1814 -0
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +6481 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs +4 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +6707 -0
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-protobuf.mjs +4 -0
- package/kotlinx-serialization-kotlinx-serialization-protobuf.mjs.map +1 -0
- package/kryptom-lib.mjs +6792 -0
- package/kryptom-lib.mjs.map +1 -0
- package/ktor-ktor-client-ktor-client-core.mjs.map +1 -0
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.mjs +758 -0
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.mjs.map +1 -0
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-websockets.mjs +4 -0
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-websockets.mjs.map +1 -0
- package/ktor-ktor-http-ktor-http-cio.mjs +1998 -0
- package/ktor-ktor-http-ktor-http-cio.mjs.map +1 -0
- package/ktor-ktor-http.mjs +3355 -0
- package/ktor-ktor-http.mjs.map +1 -0
- package/ktor-ktor-io.mjs +3220 -0
- package/ktor-ktor-io.mjs.map +1 -0
- package/ktor-ktor-shared-ktor-events.mjs +81 -0
- package/ktor-ktor-shared-ktor-events.mjs.map +1 -0
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.mjs +46 -0
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.mjs.map +1 -0
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.mjs +860 -0
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.mjs.map +1 -0
- package/ktor-ktor-shared-ktor-serialization.mjs +374 -0
- package/ktor-ktor-shared-ktor-serialization.mjs.map +1 -0
- package/ktor-ktor-shared-ktor-sse.mjs +4 -0
- package/ktor-ktor-shared-ktor-sse.mjs.map +1 -0
- package/ktor-ktor-shared-ktor-websocket-serialization.mjs +4 -0
- package/ktor-ktor-shared-ktor-websocket-serialization.mjs.map +1 -0
- package/ktor-ktor-shared-ktor-websockets.mjs +2336 -0
- package/ktor-ktor-shared-ktor-websockets.mjs.map +1 -0
- package/ktor-ktor-utils.mjs +2660 -0
- package/ktor-ktor-utils.mjs.map +1 -0
- package/model/AccessLog.d.mts +83 -0
- package/model/AccessLog.mjs +153 -0
- package/model/AccessLog.mjs.map +1 -0
- package/model/Agenda.d.mts +21 -0
- package/model/Agenda.mjs +48 -0
- package/model/Agenda.mjs.map +1 -0
- package/model/ApplicationSettings.d.mts +20 -0
- package/model/ApplicationSettings.mjs +42 -0
- package/model/ApplicationSettings.mjs.map +1 -0
- package/model/BooleanResponse.d.mts +4 -0
- package/model/BooleanResponse.mjs +7 -0
- package/model/BooleanResponse.mjs.map +1 -0
- package/model/CalendarItem.d.mts +140 -0
- package/model/CalendarItem.mjs +261 -0
- package/model/CalendarItem.mjs.map +1 -0
- package/model/CalendarItemType.d.mts +22 -0
- package/model/CalendarItemType.mjs +48 -0
- package/model/CalendarItemType.mjs.map +1 -0
- package/model/Classification.d.mts +74 -0
- package/model/Classification.mjs +135 -0
- package/model/Classification.mjs.map +1 -0
- package/model/Code.d.mts +35 -0
- package/model/Code.mjs +63 -0
- package/model/Code.mjs.map +1 -0
- package/model/Contact.d.mts +122 -0
- package/model/Contact.mjs +207 -0
- package/model/Contact.mjs.map +1 -0
- package/model/CryptoActorStub.d.mts +36 -0
- package/model/CryptoActorStub.mjs +36 -0
- package/model/CryptoActorStub.mjs.map +1 -0
- package/model/CryptoActorStubWithType.d.mts +7 -0
- package/model/CryptoActorStubWithType.mjs +7 -0
- package/model/CryptoActorStubWithType.mjs.map +1 -0
- package/model/DataOwnerRegistrationSuccess.d.mts +6 -0
- package/model/DataOwnerRegistrationSuccess.mjs +9 -0
- package/model/DataOwnerRegistrationSuccess.mjs.map +1 -0
- package/model/DataOwnerType.d.mts +5 -0
- package/model/DataOwnerType.mjs +8 -0
- package/model/DataOwnerType.mjs.map +1 -0
- package/model/DataOwnerWithType.d.mts +21 -0
- package/model/DataOwnerWithType.mjs +25 -0
- package/model/DataOwnerWithType.mjs.map +1 -0
- package/model/DatabaseInitialisation.d.mts +10 -0
- package/model/DatabaseInitialisation.mjs +17 -0
- package/model/DatabaseInitialisation.mjs.map +1 -0
- package/model/Device.d.mts +56 -0
- package/model/Device.mjs +91 -0
- package/model/Device.mjs.map +1 -0
- package/model/Document.d.mts +133 -0
- package/model/Document.mjs +231 -0
- package/model/Document.mjs.map +1 -0
- package/model/DocumentTemplate.d.mts +33 -0
- package/model/DocumentTemplate.mjs +78 -0
- package/model/DocumentTemplate.mjs.map +1 -0
- package/model/EntityReference.d.mts +8 -0
- package/model/EntityReference.mjs +18 -0
- package/model/EntityReference.mjs.map +1 -0
- package/model/EntityTemplate.d.mts +14 -0
- package/model/EntityTemplate.mjs +36 -0
- package/model/EntityTemplate.mjs.map +1 -0
- package/model/Form.d.mts +98 -0
- package/model/Form.mjs +183 -0
- package/model/Form.mjs.map +1 -0
- package/model/FormTemplate.d.mts +28 -0
- package/model/FormTemplate.mjs +69 -0
- package/model/FormTemplate.mjs.map +1 -0
- package/model/FrontEndMigration.d.mts +19 -0
- package/model/FrontEndMigration.mjs +45 -0
- package/model/FrontEndMigration.mjs.map +1 -0
- package/model/Group.d.mts +36 -0
- package/model/Group.mjs +55 -0
- package/model/Group.mjs.map +1 -0
- package/model/GroupDeletionReport.d.mts +6 -0
- package/model/GroupDeletionReport.mjs +11 -0
- package/model/GroupDeletionReport.mjs.map +1 -0
- package/model/HealthElement.d.mts +122 -0
- package/model/HealthElement.mjs +219 -0
- package/model/HealthElement.mjs.map +1 -0
- package/model/HealthcareParty.d.mts +101 -0
- package/model/HealthcareParty.mjs +172 -0
- package/model/HealthcareParty.mjs.map +1 -0
- package/model/IdWithMandatoryRev.d.mts +5 -0
- package/model/IdWithMandatoryRev.mjs +10 -0
- package/model/IdWithMandatoryRev.mjs.map +1 -0
- package/model/IdWithRev.d.mts +5 -0
- package/model/IdWithRev.mjs +12 -0
- package/model/IdWithRev.mjs.map +1 -0
- package/model/IndexingInfo.d.mts +6 -0
- package/model/IndexingInfo.mjs +9 -0
- package/model/IndexingInfo.mjs.map +1 -0
- package/model/Insurance.d.mts +18 -0
- package/model/Insurance.mjs +37 -0
- package/model/Insurance.mjs.map +1 -0
- package/model/Invoice.d.mts +249 -0
- package/model/Invoice.mjs +447 -0
- package/model/Invoice.mjs.map +1 -0
- package/model/Keyword.d.mts +21 -0
- package/model/Keyword.mjs +48 -0
- package/model/Keyword.mjs.map +1 -0
- package/model/ListOfIds.d.mts +4 -0
- package/model/ListOfIds.mjs +9 -0
- package/model/ListOfIds.mjs.map +1 -0
- package/model/ListOfProperties.d.mts +5 -0
- package/model/ListOfProperties.mjs +8 -0
- package/model/ListOfProperties.mjs.map +1 -0
- package/model/MaintenanceTask.d.mts +80 -0
- package/model/MaintenanceTask.mjs +142 -0
- package/model/MaintenanceTask.mjs.map +1 -0
- package/model/MedicalLocation.d.mts +26 -0
- package/model/MedicalLocation.mjs +54 -0
- package/model/MedicalLocation.mjs.map +1 -0
- package/model/Message.d.mts +157 -0
- package/model/Message.mjs +249 -0
- package/model/Message.mjs.map +1 -0
- package/model/PaginatedDocumentKeyIdPair.d.mts +5 -0
- package/model/PaginatedDocumentKeyIdPair.mjs +12 -0
- package/model/PaginatedDocumentKeyIdPair.mjs.map +1 -0
- package/model/PaginatedList.d.mts +6 -0
- package/model/PaginatedList.mjs +11 -0
- package/model/PaginatedList.mjs.map +1 -0
- package/model/Patient.d.mts +299 -0
- package/model/Patient.mjs +512 -0
- package/model/Patient.mjs.map +1 -0
- package/model/Place.d.mts +11 -0
- package/model/Place.mjs +21 -0
- package/model/Place.mjs.map +1 -0
- package/model/PropertyStub.d.mts +29 -0
- package/model/PropertyStub.mjs +45 -0
- package/model/PropertyStub.mjs.map +1 -0
- package/model/PropertyTypeStub.d.mts +6 -0
- package/model/PropertyTypeStub.mjs +11 -0
- package/model/PropertyTypeStub.mjs.map +1 -0
- package/model/PublicKey.d.mts +5 -0
- package/model/PublicKey.mjs +12 -0
- package/model/PublicKey.mjs.map +1 -0
- package/model/Receipt.d.mts +87 -0
- package/model/Receipt.mjs +147 -0
- package/model/Receipt.mjs.map +1 -0
- package/model/RegistrationInformation.d.mts +9 -0
- package/model/RegistrationInformation.mjs +18 -0
- package/model/RegistrationInformation.mjs.map +1 -0
- package/model/RegistrationSuccess.d.mts +6 -0
- package/model/RegistrationSuccess.mjs +9 -0
- package/model/RegistrationSuccess.mjs.map +1 -0
- package/model/Replication.d.mts +13 -0
- package/model/Replication.mjs +24 -0
- package/model/Replication.mjs.map +1 -0
- package/model/ReplicationInfo.d.mts +7 -0
- package/model/ReplicationInfo.mjs +18 -0
- package/model/ReplicationInfo.mjs.map +1 -0
- package/model/Role.d.mts +9 -0
- package/model/Role.mjs +21 -0
- package/model/Role.mjs.map +1 -0
- package/model/Tarification.d.mts +48 -0
- package/model/Tarification.mjs +87 -0
- package/model/Tarification.mjs.map +1 -0
- package/model/TimeTable.d.mts +23 -0
- package/model/TimeTable.mjs +54 -0
- package/model/TimeTable.mjs.map +1 -0
- package/model/Topic.d.mts +90 -0
- package/model/Topic.mjs +153 -0
- package/model/Topic.mjs.map +1 -0
- package/model/TopicRole.d.mts +5 -0
- package/model/TopicRole.mjs +8 -0
- package/model/TopicRole.mjs.map +1 -0
- package/model/User.d.mts +50 -0
- package/model/User.mjs +91 -0
- package/model/User.mjs.map +1 -0
- package/model/UserGroup.d.mts +16 -0
- package/model/UserGroup.mjs +41 -0
- package/model/UserGroup.mjs.map +1 -0
- package/model/base/AppendixType.d.mts +5 -0
- package/model/base/AppendixType.mjs +8 -0
- package/model/base/AppendixType.mjs.map +1 -0
- package/model/base/CodeFlag.d.mts +80 -0
- package/model/base/CodeFlag.mjs +83 -0
- package/model/base/CodeFlag.mjs.map +1 -0
- package/model/base/CodeIdentification.d.mts +10 -0
- package/model/base/CodeIdentification.mjs +3 -0
- package/model/base/CodeIdentification.mjs.map +1 -0
- package/model/base/CodeStub.d.mts +13 -0
- package/model/base/CodeStub.mjs +26 -0
- package/model/base/CodeStub.mjs.map +1 -0
- package/model/base/CryptoActor.d.mts +30 -0
- package/model/base/CryptoActor.mjs +2 -0
- package/model/base/CryptoActor.mjs.map +1 -0
- package/model/base/DataOwner.d.mts +4 -0
- package/model/base/DataOwner.mjs +2 -0
- package/model/base/DataOwner.mjs.map +1 -0
- package/model/base/HasCodes.d.mts +4 -0
- package/model/base/HasCodes.mjs +2 -0
- package/model/base/HasCodes.mjs.map +1 -0
- package/model/base/HasEncryptionMetadata.d.mts +16 -0
- package/model/base/HasEncryptionMetadata.mjs +2 -0
- package/model/base/HasEncryptionMetadata.mjs.map +1 -0
- package/model/base/HasTags.d.mts +4 -0
- package/model/base/HasTags.mjs +2 -0
- package/model/base/HasTags.mjs.map +1 -0
- package/model/base/ICureDocument.d.mts +11 -0
- package/model/base/ICureDocument.mjs +2 -0
- package/model/base/ICureDocument.mjs.map +1 -0
- package/model/base/Identifiable.d.mts +3 -0
- package/model/base/Identifiable.mjs +3 -0
- package/model/base/Identifiable.mjs.map +1 -0
- package/model/base/Identifier.d.mts +12 -0
- package/model/base/Identifier.mjs +29 -0
- package/model/base/Identifier.mjs.map +1 -0
- package/model/base/LinkQualification.d.mts +26 -0
- package/model/base/LinkQualification.mjs +29 -0
- package/model/base/LinkQualification.mjs.map +1 -0
- package/model/base/Named.d.mts +3 -0
- package/model/base/Named.mjs +3 -0
- package/model/base/Named.mjs.map +1 -0
- package/model/base/ParticipantType.d.mts +15 -0
- package/model/base/ParticipantType.mjs +18 -0
- package/model/base/ParticipantType.mjs.map +1 -0
- package/model/base/Person.d.mts +14 -0
- package/model/base/Person.mjs +2 -0
- package/model/base/Person.mjs.map +1 -0
- package/model/base/ReportVersion.d.mts +3 -0
- package/model/base/ReportVersion.mjs +6 -0
- package/model/base/ReportVersion.mjs.map +1 -0
- package/model/base/StoredDocument.d.mts +4 -0
- package/model/base/StoredDocument.mjs +2 -0
- package/model/base/StoredDocument.mjs.map +1 -0
- package/model/base/Versionable.d.mts +4 -0
- package/model/base/Versionable.mjs +2 -0
- package/model/base/Versionable.mjs.map +1 -0
- package/model/couchdb/Basic.d.mts +5 -0
- package/model/couchdb/Basic.mjs +8 -0
- package/model/couchdb/Basic.mjs.map +1 -0
- package/model/couchdb/DatabaseInfo.d.mts +13 -0
- package/model/couchdb/DatabaseInfo.mjs +36 -0
- package/model/couchdb/DatabaseInfo.mjs.map +1 -0
- package/model/couchdb/DesignDocument.d.mts +25 -0
- package/model/couchdb/DesignDocument.mjs +33 -0
- package/model/couchdb/DesignDocument.mjs.map +1 -0
- package/model/couchdb/DocIdentifier.d.mts +5 -0
- package/model/couchdb/DocIdentifier.mjs +12 -0
- package/model/couchdb/DocIdentifier.mjs.map +1 -0
- package/model/couchdb/GroupDatabasesInfo.d.mts +7 -0
- package/model/couchdb/GroupDatabasesInfo.mjs +8 -0
- package/model/couchdb/GroupDatabasesInfo.mjs.map +1 -0
- package/model/couchdb/Remote.d.mts +6 -0
- package/model/couchdb/Remote.mjs +9 -0
- package/model/couchdb/Remote.mjs.map +1 -0
- package/model/couchdb/RemoteAuthentication.d.mts +5 -0
- package/model/couchdb/RemoteAuthentication.mjs +8 -0
- package/model/couchdb/RemoteAuthentication.mjs.map +1 -0
- package/model/couchdb/ReplicationStats.d.mts +12 -0
- package/model/couchdb/ReplicationStats.mjs +33 -0
- package/model/couchdb/ReplicationStats.mjs.map +1 -0
- package/model/couchdb/ReplicatorDocument.d.mts +24 -0
- package/model/couchdb/ReplicatorDocument.mjs +48 -0
- package/model/couchdb/ReplicatorDocument.mjs.map +1 -0
- package/model/couchdb/SortDirection.d.mts +4 -0
- package/model/couchdb/SortDirection.mjs +7 -0
- package/model/couchdb/SortDirection.mjs.map +1 -0
- package/model/couchdb/View.d.mts +5 -0
- package/model/couchdb/View.mjs +10 -0
- package/model/couchdb/View.mjs.map +1 -0
- package/model/data/LabelledOccurence.d.mts +5 -0
- package/model/data/LabelledOccurence.mjs +8 -0
- package/model/data/LabelledOccurence.mjs.map +1 -0
- package/model/embed/AccessLevel.d.mts +4 -0
- package/model/embed/AccessLevel.mjs +7 -0
- package/model/embed/AccessLevel.mjs.map +1 -0
- package/model/embed/Address.d.mts +65 -0
- package/model/embed/Address.mjs +111 -0
- package/model/embed/Address.mjs.map +1 -0
- package/model/embed/AddressType.d.mts +14 -0
- package/model/embed/AddressType.mjs +17 -0
- package/model/embed/AddressType.mjs.map +1 -0
- package/model/embed/AdministrationQuantity.d.mts +7 -0
- package/model/embed/AdministrationQuantity.mjs +14 -0
- package/model/embed/AdministrationQuantity.mjs.map +1 -0
- package/model/embed/AgreementAppendix.d.mts +7 -0
- package/model/embed/AgreementAppendix.mjs +18 -0
- package/model/embed/AgreementAppendix.mjs.map +1 -0
- package/model/embed/Annotation.d.mts +17 -0
- package/model/embed/Annotation.mjs +36 -0
- package/model/embed/Annotation.mjs.map +1 -0
- package/model/embed/AuthenticationClass.d.mts +8 -0
- package/model/embed/AuthenticationClass.mjs +11 -0
- package/model/embed/AuthenticationClass.mjs.map +1 -0
- package/model/embed/CalendarItemTag.d.mts +27 -0
- package/model/embed/CalendarItemTag.mjs +41 -0
- package/model/embed/CalendarItemTag.mjs.map +1 -0
- package/model/embed/CareTeamMember.d.mts +29 -0
- package/model/embed/CareTeamMember.mjs +45 -0
- package/model/embed/CareTeamMember.mjs.map +1 -0
- package/model/embed/CareTeamMemberType.d.mts +5 -0
- package/model/embed/CareTeamMemberType.mjs +8 -0
- package/model/embed/CareTeamMemberType.mjs.map +1 -0
- package/model/embed/CareTeamMembership.d.mts +28 -0
- package/model/embed/CareTeamMembership.mjs +45 -0
- package/model/embed/CareTeamMembership.mjs.map +1 -0
- package/model/embed/Content.d.mts +54 -0
- package/model/embed/Content.mjs +93 -0
- package/model/embed/Content.mjs.map +1 -0
- package/model/embed/ContractChangeType.d.mts +6 -0
- package/model/embed/ContractChangeType.mjs +9 -0
- package/model/embed/ContractChangeType.mjs.map +1 -0
- package/model/embed/DataAttachment.d.mts +6 -0
- package/model/embed/DataAttachment.mjs +15 -0
- package/model/embed/DataAttachment.mjs.map +1 -0
- package/model/embed/DatabaseSynchronization.d.mts +14 -0
- package/model/embed/DatabaseSynchronization.mjs +26 -0
- package/model/embed/DatabaseSynchronization.mjs.map +1 -0
- package/model/embed/DeactivationReason.d.mts +9 -0
- package/model/embed/DeactivationReason.mjs +12 -0
- package/model/embed/DeactivationReason.mjs.map +1 -0
- package/model/embed/Delegation.d.mts +8 -0
- package/model/embed/Delegation.mjs +17 -0
- package/model/embed/Delegation.mjs.map +1 -0
- package/model/embed/DelegationTag.d.mts +22 -0
- package/model/embed/DelegationTag.mjs +25 -0
- package/model/embed/DelegationTag.mjs.map +1 -0
- package/model/embed/DeletedAttachment.d.mts +7 -0
- package/model/embed/DeletedAttachment.mjs +18 -0
- package/model/embed/DeletedAttachment.mjs.map +1 -0
- package/model/embed/DocumentGroup.d.mts +5 -0
- package/model/embed/DocumentGroup.mjs +12 -0
- package/model/embed/DocumentGroup.mjs.map +1 -0
- package/model/embed/DocumentLocation.d.mts +4 -0
- package/model/embed/DocumentLocation.mjs +7 -0
- package/model/embed/DocumentLocation.mjs.map +1 -0
- package/model/embed/DocumentStatus.d.mts +11 -0
- package/model/embed/DocumentStatus.mjs +14 -0
- package/model/embed/DocumentStatus.mjs.map +1 -0
- package/model/embed/DocumentType.d.mts +41 -0
- package/model/embed/DocumentType.mjs +44 -0
- package/model/embed/DocumentType.mjs.map +1 -0
- package/model/embed/Duration.d.mts +6 -0
- package/model/embed/Duration.mjs +11 -0
- package/model/embed/Duration.mjs.map +1 -0
- package/model/embed/Employer.d.mts +7 -0
- package/model/embed/Employer.mjs +11 -0
- package/model/embed/Employer.mjs.map +1 -0
- package/model/embed/EmploymentInfo.d.mts +29 -0
- package/model/embed/EmploymentInfo.mjs +41 -0
- package/model/embed/EmploymentInfo.mjs.map +1 -0
- package/model/embed/Encryptable.d.mts +4 -0
- package/model/embed/Encryptable.mjs +2 -0
- package/model/embed/Encryptable.mjs.map +1 -0
- package/model/embed/Episode.d.mts +30 -0
- package/model/embed/Episode.mjs +51 -0
- package/model/embed/Episode.mjs.map +1 -0
- package/model/embed/FinancialInstitutionInformation.d.mts +36 -0
- package/model/embed/FinancialInstitutionInformation.mjs +63 -0
- package/model/embed/FinancialInstitutionInformation.mjs.map +1 -0
- package/model/embed/FlatRateTarification.d.mts +35 -0
- package/model/embed/FlatRateTarification.mjs +45 -0
- package/model/embed/FlatRateTarification.mjs.map +1 -0
- package/model/embed/FlatRateType.d.mts +6 -0
- package/model/embed/FlatRateType.mjs +9 -0
- package/model/embed/FlatRateType.mjs.map +1 -0
- package/model/embed/FlowItem.d.mts +36 -0
- package/model/embed/FlowItem.mjs +105 -0
- package/model/embed/FlowItem.mjs.map +1 -0
- package/model/embed/FrontEndMigrationStatus.d.mts +6 -0
- package/model/embed/FrontEndMigrationStatus.mjs +9 -0
- package/model/embed/FrontEndMigrationStatus.mjs.map +1 -0
- package/model/embed/Gender.d.mts +9 -0
- package/model/embed/Gender.mjs +12 -0
- package/model/embed/Gender.mjs.map +1 -0
- package/model/embed/GroupType.d.mts +5 -0
- package/model/embed/GroupType.mjs +8 -0
- package/model/embed/GroupType.mjs.map +1 -0
- package/model/embed/HealthcarePartyHistoryStatus.d.mts +8 -0
- package/model/embed/HealthcarePartyHistoryStatus.mjs +9 -0
- package/model/embed/HealthcarePartyHistoryStatus.mjs.map +1 -0
- package/model/embed/HealthcarePartyStatus.d.mts +5 -0
- package/model/embed/HealthcarePartyStatus.mjs +8 -0
- package/model/embed/HealthcarePartyStatus.mjs.map +1 -0
- package/model/embed/IdentityDocumentReader.d.mts +9 -0
- package/model/embed/IdentityDocumentReader.mjs +24 -0
- package/model/embed/IdentityDocumentReader.mjs.map +1 -0
- package/model/embed/Insurability.d.mts +48 -0
- package/model/embed/Insurability.mjs +75 -0
- package/model/embed/Insurability.mjs.map +1 -0
- package/model/embed/InvoiceInterventionType.d.mts +4 -0
- package/model/embed/InvoiceInterventionType.mjs +7 -0
- package/model/embed/InvoiceInterventionType.mjs.map +1 -0
- package/model/embed/InvoiceType.d.mts +8 -0
- package/model/embed/InvoiceType.mjs +11 -0
- package/model/embed/InvoiceType.mjs.map +1 -0
- package/model/embed/InvoicingCode.d.mts +172 -0
- package/model/embed/InvoicingCode.mjs +329 -0
- package/model/embed/InvoicingCode.mjs.map +1 -0
- package/model/embed/KeywordSubword.d.mts +6 -0
- package/model/embed/KeywordSubword.mjs +11 -0
- package/model/embed/KeywordSubword.mjs.map +1 -0
- package/model/embed/Laterality.d.mts +4 -0
- package/model/embed/Laterality.mjs +7 -0
- package/model/embed/Laterality.mjs.map +1 -0
- package/model/embed/LetterValue.d.mts +7 -0
- package/model/embed/LetterValue.mjs +18 -0
- package/model/embed/LetterValue.mjs.map +1 -0
- package/model/embed/Measure.d.mts +16 -0
- package/model/embed/Measure.mjs +38 -0
- package/model/embed/Measure.mjs.map +1 -0
- package/model/embed/MedicalHouseContract.d.mts +126 -0
- package/model/embed/MedicalHouseContract.mjs +213 -0
- package/model/embed/MedicalHouseContract.mjs.map +1 -0
- package/model/embed/Medication.d.mts +55 -0
- package/model/embed/Medication.mjs +131 -0
- package/model/embed/Medication.mjs.map +1 -0
- package/model/embed/Medicinalproduct.d.mts +9 -0
- package/model/embed/Medicinalproduct.mjs +20 -0
- package/model/embed/Medicinalproduct.mjs.map +1 -0
- package/model/embed/MediumType.d.mts +9 -0
- package/model/embed/MediumType.mjs +12 -0
- package/model/embed/MediumType.mjs.map +1 -0
- package/model/embed/MembershipType.d.mts +7 -0
- package/model/embed/MembershipType.mjs +10 -0
- package/model/embed/MembershipType.mjs.map +1 -0
- package/model/embed/MessageAttachment.d.mts +6 -0
- package/model/embed/MessageAttachment.mjs +11 -0
- package/model/embed/MessageAttachment.mjs.map +1 -0
- package/model/embed/MessageReadStatus.d.mts +5 -0
- package/model/embed/MessageReadStatus.mjs +12 -0
- package/model/embed/MessageReadStatus.mjs.map +1 -0
- package/model/embed/MhcSignatureType.d.mts +6 -0
- package/model/embed/MhcSignatureType.mjs +9 -0
- package/model/embed/MhcSignatureType.mjs.map +1 -0
- package/model/embed/ParagraphAgreement.d.mts +28 -0
- package/model/embed/ParagraphAgreement.mjs +71 -0
- package/model/embed/ParagraphAgreement.mjs.map +1 -0
- package/model/embed/Partnership.d.mts +10 -0
- package/model/embed/Partnership.mjs +20 -0
- package/model/embed/Partnership.mjs.map +1 -0
- package/model/embed/PartnershipStatus.d.mts +5 -0
- package/model/embed/PartnershipStatus.mjs +8 -0
- package/model/embed/PartnershipStatus.mjs.map +1 -0
- package/model/embed/PartnershipType.d.mts +40 -0
- package/model/embed/PartnershipType.mjs +43 -0
- package/model/embed/PartnershipType.mjs.map +1 -0
- package/model/embed/PatientHealthCareParty.d.mts +39 -0
- package/model/embed/PatientHealthCareParty.mjs +51 -0
- package/model/embed/PatientHealthCareParty.mjs.map +1 -0
- package/model/embed/PatientHealthCarePartyType.d.mts +10 -0
- package/model/embed/PatientHealthCarePartyType.mjs +13 -0
- package/model/embed/PatientHealthCarePartyType.mjs.map +1 -0
- package/model/embed/Payment.d.mts +7 -0
- package/model/embed/Payment.mjs +14 -0
- package/model/embed/Payment.mjs.map +1 -0
- package/model/embed/PaymentType.d.mts +10 -0
- package/model/embed/PaymentType.mjs +13 -0
- package/model/embed/PaymentType.mjs.map +1 -0
- package/model/embed/Periodicity.d.mts +6 -0
- package/model/embed/Periodicity.mjs +11 -0
- package/model/embed/Periodicity.mjs.map +1 -0
- package/model/embed/PersonName.d.mts +12 -0
- package/model/embed/PersonName.mjs +29 -0
- package/model/embed/PersonName.mjs.map +1 -0
- package/model/embed/PersonNameUse.d.mts +10 -0
- package/model/embed/PersonNameUse.mjs +13 -0
- package/model/embed/PersonNameUse.mjs.map +1 -0
- package/model/embed/PersonalStatus.d.mts +16 -0
- package/model/embed/PersonalStatus.mjs +19 -0
- package/model/embed/PersonalStatus.mjs.map +1 -0
- package/model/embed/PlanOfAction.d.mts +81 -0
- package/model/embed/PlanOfAction.mjs +165 -0
- package/model/embed/PlanOfAction.mjs.map +1 -0
- package/model/embed/Range.d.mts +5 -0
- package/model/embed/Range.mjs +12 -0
- package/model/embed/Range.mjs.map +1 -0
- package/model/embed/ReceiptBlobType.d.mts +9 -0
- package/model/embed/ReceiptBlobType.mjs +12 -0
- package/model/embed/ReceiptBlobType.mjs.map +1 -0
- package/model/embed/ReferenceRange.d.mts +13 -0
- package/model/embed/ReferenceRange.mjs +26 -0
- package/model/embed/ReferenceRange.mjs.map +1 -0
- package/model/embed/ReferralPeriod.d.mts +6 -0
- package/model/embed/ReferralPeriod.mjs +15 -0
- package/model/embed/ReferralPeriod.mjs.map +1 -0
- package/model/embed/RegimenItem.d.mts +12 -0
- package/model/embed/RegimenItem.mjs +23 -0
- package/model/embed/RegimenItem.mjs.map +1 -0
- package/model/embed/Renewal.d.mts +6 -0
- package/model/embed/Renewal.mjs +11 -0
- package/model/embed/Renewal.mjs.map +1 -0
- package/model/embed/Right.d.mts +7 -0
- package/model/embed/Right.mjs +18 -0
- package/model/embed/Right.mjs.map +1 -0
- package/model/embed/RoleConfiguration.d.mts +12 -0
- package/model/embed/RoleConfiguration.mjs +18 -0
- package/model/embed/RoleConfiguration.mjs.map +1 -0
- package/model/embed/SchoolingInfo.d.mts +28 -0
- package/model/embed/SchoolingInfo.mjs +41 -0
- package/model/embed/SchoolingInfo.mjs.map +1 -0
- package/model/embed/SecureDelegation.d.mts +14 -0
- package/model/embed/SecureDelegation.mjs +27 -0
- package/model/embed/SecureDelegation.mjs.map +1 -0
- package/model/embed/SecurityMetadata.d.mts +11 -0
- package/model/embed/SecurityMetadata.mjs +9 -0
- package/model/embed/SecurityMetadata.mjs.map +1 -0
- package/model/embed/Service.d.mts +161 -0
- package/model/embed/Service.mjs +231 -0
- package/model/embed/Service.mjs.map +1 -0
- package/model/embed/ServiceLink.d.mts +4 -0
- package/model/embed/ServiceLink.mjs +9 -0
- package/model/embed/ServiceLink.mjs.map +1 -0
- package/model/embed/SubContact.d.mts +60 -0
- package/model/embed/SubContact.mjs +123 -0
- package/model/embed/SubContact.mjs.map +1 -0
- package/model/embed/Substanceproduct.d.mts +9 -0
- package/model/embed/Substanceproduct.mjs +20 -0
- package/model/embed/Substanceproduct.mjs.map +1 -0
- package/model/embed/Suspension.d.mts +7 -0
- package/model/embed/Suspension.mjs +18 -0
- package/model/embed/Suspension.mjs.map +1 -0
- package/model/embed/SuspensionReason.d.mts +7 -0
- package/model/embed/SuspensionReason.mjs +10 -0
- package/model/embed/SuspensionReason.mjs.map +1 -0
- package/model/embed/TaskStatus.d.mts +6 -0
- package/model/embed/TaskStatus.mjs +9 -0
- package/model/embed/TaskStatus.mjs.map +1 -0
- package/model/embed/Telecom.d.mts +25 -0
- package/model/embed/Telecom.mjs +39 -0
- package/model/embed/Telecom.mjs.map +1 -0
- package/model/embed/TelecomType.d.mts +16 -0
- package/model/embed/TelecomType.mjs +19 -0
- package/model/embed/TelecomType.mjs.map +1 -0
- package/model/embed/TimeSeries.d.mts +10 -0
- package/model/embed/TimeSeries.mjs +27 -0
- package/model/embed/TimeSeries.mjs.map +1 -0
- package/model/embed/TimeTableHour.d.mts +5 -0
- package/model/embed/TimeTableHour.mjs +12 -0
- package/model/embed/TimeTableHour.mjs.map +1 -0
- package/model/embed/TimeTableItem.d.mts +18 -0
- package/model/embed/TimeTableItem.mjs +47 -0
- package/model/embed/TimeTableItem.mjs.map +1 -0
- package/model/embed/TypedValue.d.mts +34 -0
- package/model/embed/TypedValue.mjs +57 -0
- package/model/embed/TypedValue.mjs.map +1 -0
- package/model/embed/TypedValuesType.d.mts +9 -0
- package/model/embed/TypedValuesType.mjs +12 -0
- package/model/embed/TypedValuesType.mjs.map +1 -0
- package/model/embed/UserType.d.mts +6 -0
- package/model/embed/UserType.mjs +9 -0
- package/model/embed/UserType.mjs.map +1 -0
- package/model/embed/Valorisation.d.mts +51 -0
- package/model/embed/Valorisation.mjs +81 -0
- package/model/embed/Valorisation.mjs.map +1 -0
- package/model/embed/Weekday.d.mts +6 -0
- package/model/embed/Weekday.mjs +11 -0
- package/model/embed/Weekday.mjs.map +1 -0
- package/model/embed/form/template/Action.d.mts +8 -0
- package/model/embed/form/template/Action.mjs +14 -0
- package/model/embed/form/template/Action.mjs.map +1 -0
- package/model/embed/form/template/CheckBox.d.mts +25 -0
- package/model/embed/form/template/CheckBox.mjs +56 -0
- package/model/embed/form/template/CheckBox.mjs.map +1 -0
- package/model/embed/form/template/DatePicker.d.mts +25 -0
- package/model/embed/form/template/DatePicker.mjs +56 -0
- package/model/embed/form/template/DatePicker.mjs.map +1 -0
- package/model/embed/form/template/DateTimePicker.d.mts +25 -0
- package/model/embed/form/template/DateTimePicker.mjs +56 -0
- package/model/embed/form/template/DateTimePicker.mjs.map +1 -0
- package/model/embed/form/template/DropdownField.d.mts +25 -0
- package/model/embed/form/template/DropdownField.mjs +56 -0
- package/model/embed/form/template/DropdownField.mjs.map +1 -0
- package/model/embed/form/template/Field.d.mts +11 -0
- package/model/embed/form/template/Field.mjs +2 -0
- package/model/embed/form/template/Field.mjs.map +1 -0
- package/model/embed/form/template/FieldsGroup.d.mts +7 -0
- package/model/embed/form/template/FieldsGroup.mjs +10 -0
- package/model/embed/form/template/FieldsGroup.mjs.map +1 -0
- package/model/embed/form/template/FormTemplateLayout.d.mts +10 -0
- package/model/embed/form/template/FormTemplateLayout.mjs +18 -0
- package/model/embed/form/template/FormTemplateLayout.mjs.map +1 -0
- package/model/embed/form/template/Launcher.d.mts +7 -0
- package/model/embed/form/template/Launcher.mjs +10 -0
- package/model/embed/form/template/Launcher.mjs.map +1 -0
- package/model/embed/form/template/MeasureField.d.mts +25 -0
- package/model/embed/form/template/MeasureField.mjs +56 -0
- package/model/embed/form/template/MeasureField.mjs.map +1 -0
- package/model/embed/form/template/MultipleChoice.d.mts +25 -0
- package/model/embed/form/template/MultipleChoice.mjs +56 -0
- package/model/embed/form/template/MultipleChoice.mjs.map +1 -0
- package/model/embed/form/template/NumberField.d.mts +25 -0
- package/model/embed/form/template/NumberField.mjs +56 -0
- package/model/embed/form/template/NumberField.mjs.map +1 -0
- package/model/embed/form/template/RadioButton.d.mts +25 -0
- package/model/embed/form/template/RadioButton.mjs +56 -0
- package/model/embed/form/template/RadioButton.mjs.map +1 -0
- package/model/embed/form/template/Section.d.mts +8 -0
- package/model/embed/form/template/Section.mjs +13 -0
- package/model/embed/form/template/Section.mjs.map +1 -0
- package/model/embed/form/template/State.d.mts +7 -0
- package/model/embed/form/template/State.mjs +10 -0
- package/model/embed/form/template/State.mjs.map +1 -0
- package/model/embed/form/template/StateToUpdate.d.mts +7 -0
- package/model/embed/form/template/StateToUpdate.mjs +10 -0
- package/model/embed/form/template/StateToUpdate.mjs.map +1 -0
- package/model/embed/form/template/StructureElement.d.mts +3 -0
- package/model/embed/form/template/StructureElement.mjs +2 -0
- package/model/embed/form/template/StructureElement.mjs.map +1 -0
- package/model/embed/form/template/TextField.d.mts +25 -0
- package/model/embed/form/template/TextField.mjs +56 -0
- package/model/embed/form/template/TextField.mjs.map +1 -0
- package/model/embed/form/template/TimePicker.d.mts +25 -0
- package/model/embed/form/template/TimePicker.mjs +56 -0
- package/model/embed/form/template/TimePicker.mjs.map +1 -0
- package/model/embed/form/template/Trigger.d.mts +9 -0
- package/model/embed/form/template/Trigger.mjs +12 -0
- package/model/embed/form/template/Trigger.mjs.map +1 -0
- package/model/enums/UsersStatus.d.mts +5 -0
- package/model/enums/UsersStatus.mjs +8 -0
- package/model/enums/UsersStatus.mjs.map +1 -0
- package/model/enums/UsersType.d.mts +5 -0
- package/model/enums/UsersType.mjs +8 -0
- package/model/enums/UsersType.mjs.map +1 -0
- package/model/filter/predicate/AlwaysPredicate.d.mts +4 -0
- package/model/filter/predicate/AlwaysPredicate.mjs +7 -0
- package/model/filter/predicate/AlwaysPredicate.mjs.map +1 -0
- package/model/filter/predicate/AndPredicate.d.mts +6 -0
- package/model/filter/predicate/AndPredicate.mjs +9 -0
- package/model/filter/predicate/AndPredicate.mjs.map +1 -0
- package/model/filter/predicate/KeyValuePredicate.d.mts +8 -0
- package/model/filter/predicate/KeyValuePredicate.mjs +15 -0
- package/model/filter/predicate/KeyValuePredicate.mjs.map +1 -0
- package/model/filter/predicate/NotPredicate.d.mts +6 -0
- package/model/filter/predicate/NotPredicate.mjs +7 -0
- package/model/filter/predicate/NotPredicate.mjs.map +1 -0
- package/model/filter/predicate/Operator.d.mts +10 -0
- package/model/filter/predicate/Operator.mjs +13 -0
- package/model/filter/predicate/Operator.mjs.map +1 -0
- package/model/filter/predicate/OrPredicate.d.mts +6 -0
- package/model/filter/predicate/OrPredicate.mjs +9 -0
- package/model/filter/predicate/OrPredicate.mjs.map +1 -0
- package/model/filter/predicate/Predicate.d.mts +6 -0
- package/model/filter/predicate/Predicate.mjs +2 -0
- package/model/filter/predicate/Predicate.mjs.map +1 -0
- package/model/requests/RequestedPermission.d.mts +7 -0
- package/model/requests/RequestedPermission.mjs +10 -0
- package/model/requests/RequestedPermission.mjs.map +1 -0
- package/model/sdk/KeyPairUpdateNotification.d.mts +9 -0
- package/model/sdk/KeyPairUpdateNotification.mjs +14 -0
- package/model/sdk/KeyPairUpdateNotification.mjs.map +1 -0
- package/model/security/AlwaysPermissionItem.d.mts +6 -0
- package/model/security/AlwaysPermissionItem.mjs +7 -0
- package/model/security/AlwaysPermissionItem.mjs.map +1 -0
- package/model/security/AuthenticationToken.d.mts +7 -0
- package/model/security/AuthenticationToken.mjs +14 -0
- package/model/security/AuthenticationToken.mjs.map +1 -0
- package/model/security/Enable2faRequest.d.mts +5 -0
- package/model/security/Enable2faRequest.mjs +8 -0
- package/model/security/Enable2faRequest.mjs.map +1 -0
- package/model/security/ExternalJwtSelector.d.mts +7 -0
- package/model/security/ExternalJwtSelector.mjs +18 -0
- package/model/security/ExternalJwtSelector.mjs.map +1 -0
- package/model/security/Operation.d.mts +3 -0
- package/model/security/Operation.mjs +6 -0
- package/model/security/Operation.mjs.map +1 -0
- package/model/security/OperationToken.d.mts +9 -0
- package/model/security/OperationToken.mjs +12 -0
- package/model/security/OperationToken.mjs.map +1 -0
- package/model/security/Permission.d.mts +6 -0
- package/model/security/Permission.mjs +11 -0
- package/model/security/Permission.mjs.map +1 -0
- package/model/security/PermissionItem.d.mts +2 -0
- package/model/security/PermissionItem.mjs +2 -0
- package/model/security/PermissionItem.mjs.map +1 -0
- package/model/security/PermissionType.d.mts +16 -0
- package/model/security/PermissionType.mjs +19 -0
- package/model/security/PermissionType.mjs.map +1 -0
- package/model/security/TokenWithGroup.d.mts +6 -0
- package/model/security/TokenWithGroup.mjs +11 -0
- package/model/security/TokenWithGroup.mjs.map +1 -0
- package/model/specializations/AesExchangeKeyEncryptionKeypairIdentifier.d.mts +1 -0
- package/model/specializations/AesExchangeKeyEncryptionKeypairIdentifier.mjs +3 -0
- package/model/specializations/AesExchangeKeyEncryptionKeypairIdentifier.mjs.map +1 -0
- package/model/specializations/AesExchangeKeyEntryKeyString.d.mts +1 -0
- package/model/specializations/AesExchangeKeyEntryKeyString.mjs +3 -0
- package/model/specializations/AesExchangeKeyEntryKeyString.mjs.map +1 -0
- package/model/specializations/AnyPrimitive.d.mts +1 -0
- package/model/specializations/AnyPrimitive.mjs +3 -0
- package/model/specializations/AnyPrimitive.mjs.map +1 -0
- package/model/specializations/Base64String.d.mts +1 -0
- package/model/specializations/Base64String.mjs +3 -0
- package/model/specializations/Base64String.mjs.map +1 -0
- package/model/specializations/HexString.d.mts +1 -0
- package/model/specializations/HexString.mjs +3 -0
- package/model/specializations/HexString.mjs.map +1 -0
- package/model/specializations/KeypairFingerprintV1String.d.mts +1 -0
- package/model/specializations/KeypairFingerprintV1String.mjs +3 -0
- package/model/specializations/KeypairFingerprintV1String.mjs.map +1 -0
- package/model/specializations/Pkcs8Bytes.d.mts +1 -0
- package/model/specializations/Pkcs8Bytes.mjs +3 -0
- package/model/specializations/Pkcs8Bytes.mjs.map +1 -0
- package/model/specializations/SecureDelegationKeyString.d.mts +1 -0
- package/model/specializations/SecureDelegationKeyString.mjs +3 -0
- package/model/specializations/SecureDelegationKeyString.mjs.map +1 -0
- package/model/specializations/Sha256HexString.d.mts +1 -0
- package/model/specializations/Sha256HexString.mjs +3 -0
- package/model/specializations/Sha256HexString.mjs.map +1 -0
- package/model/specializations/SpkiHexString.d.mts +1 -0
- package/model/specializations/SpkiHexString.mjs +3 -0
- package/model/specializations/SpkiHexString.mjs.map +1 -0
- package/model.d.mts +234 -0
- package/model.mjs +235 -0
- package/model.mjs.map +1 -0
- package/okio-parent-okio.mjs +4 -0
- package/okio-parent-okio.mjs.map +1 -0
- package/options/AuthenticationMethod.d.mts +322 -0
- package/options/AuthenticationMethod.mjs +221 -0
- package/options/AuthenticationMethod.mjs.map +1 -0
- package/options/SdkOptions.d.mts +214 -0
- package/options/SdkOptions.mjs +2 -0
- package/options/SdkOptions.mjs.map +1 -0
- package/options.d.mts +2 -0
- package/options.mjs +3 -0
- package/options.mjs.map +1 -0
- package/package.json +17 -0
- package/sdk/CardinalSdk.d.mts +216 -0
- package/sdk/CardinalSdk.mjs +72 -0
- package/sdk/CardinalSdk.mjs.map +1 -0
- package/sdk.d.mts +1 -0
- package/sdk.mjs +2 -0
- package/sdk.mjs.map +1 -0
- package/storage/StorageFacade.d.mts +85 -0
- package/storage/StorageFacade.mjs +41 -0
- package/storage/StorageFacade.mjs.map +1 -0
- package/storage.d.mts +1 -0
- package/storage.mjs +2 -0
- package/storage.mjs.map +1 -0
- package/subscription/EntitySubscription.d.mts +30 -0
- package/subscription/EntitySubscription.mjs +2 -0
- package/subscription/EntitySubscription.mjs.map +1 -0
- package/subscription/EntitySubscriptionCloseReason.d.mts +5 -0
- package/subscription/EntitySubscriptionCloseReason.mjs +8 -0
- package/subscription/EntitySubscriptionCloseReason.mjs.map +1 -0
- package/subscription/EntitySubscriptionConfiguration.d.mts +16 -0
- package/subscription/EntitySubscriptionConfiguration.mjs +28 -0
- package/subscription/EntitySubscriptionConfiguration.mjs.map +1 -0
- package/subscription/EntitySubscriptionEvent.d.mts +41 -0
- package/subscription/EntitySubscriptionEvent.mjs +45 -0
- package/subscription/EntitySubscriptionEvent.mjs.map +1 -0
- package/subscription/SubscriptionEventType.d.mts +4 -0
- package/subscription/SubscriptionEventType.mjs +7 -0
- package/subscription/SubscriptionEventType.mjs.map +1 -0
- package/subscription.d.mts +5 -0
- package/subscription.mjs +6 -0
- package/subscription.mjs.map +1 -0
- package/utils/CancellablePromise.d.mts +3 -0
- package/utils/CancellablePromise.mjs +2 -0
- package/utils/CancellablePromise.mjs.map +1 -0
- package/utils/DurationMs.d.mts +4 -0
- package/utils/DurationMs.mjs +2 -0
- package/utils/DurationMs.mjs.map +1 -0
- package/utils/Id.d.mts +1 -0
- package/utils/Id.mjs +18 -0
- package/utils/Id.mjs.map +1 -0
- package/utils.d.mts +3 -0
- package/utils.mjs +4 -0
- package/utils.mjs.map +1 -0
package/ktor-ktor-io.mjs
ADDED
|
@@ -0,0 +1,3220 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Companion_instance3fplhgf4ipvld as Companion_instance,
|
|
3
|
+
Unit_instance104q5opgivhr8 as Unit_instance,
|
|
4
|
+
_Result___init__impl__xyqfz81wclroc5pw7j2 as _Result___init__impl__xyqfz8,
|
|
5
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
6
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
7
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
8
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
9
|
+
toString30pk9tzaqopn as toString,
|
|
10
|
+
hashCodeq5arwsb9dgti as hashCode,
|
|
11
|
+
equals2au1ep9vhcato as equals,
|
|
12
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
13
|
+
createFailure8paxfkfa5dc7 as createFailure,
|
|
14
|
+
Result3t1vadv16kmzk as Result,
|
|
15
|
+
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
16
|
+
toString1h6jjoch8cjt8 as toString_0,
|
|
17
|
+
newThrowablezl37abp36p5f as newThrowable,
|
|
18
|
+
stackTraceToString2670q6lbhdojj as stackTraceToString,
|
|
19
|
+
VOID7hggqo3abtya as VOID,
|
|
20
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
21
|
+
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
22
|
+
toLongw1zpgk99d84b as toLong,
|
|
23
|
+
numberToLong1a4cndvg6c52s as numberToLong,
|
|
24
|
+
intercepted2ogpsikxxj4u0 as intercepted,
|
|
25
|
+
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
26
|
+
returnIfSuspended31u0py81m9mma as returnIfSuspended,
|
|
27
|
+
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
28
|
+
Long2qws0ah9gnpki as Long,
|
|
29
|
+
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
30
|
+
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
31
|
+
IllegalStateException_init_$Init$urq27zgixtql as IllegalStateException_init_$Init$,
|
|
32
|
+
captureStack1fzi4aczwc4hg as captureStack,
|
|
33
|
+
replace3le3ie7l9k8aq as replace,
|
|
34
|
+
closeFinally1sadm0w9gt3u4 as closeFinally,
|
|
35
|
+
toString1pkumu07cwy4m as toString_1,
|
|
36
|
+
IllegalStateException_init_$Create$3ib9qa3pip8n4 as IllegalStateException_init_$Create$,
|
|
37
|
+
EmptyCoroutineContext_getInstance2bxophqwsfm9n as EmptyCoroutineContext_getInstance,
|
|
38
|
+
Continuation1aa2oekvx7jm7 as Continuation,
|
|
39
|
+
initMetadataForFunctionReferencen3g5fpj34t8u as initMetadataForFunctionReference,
|
|
40
|
+
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
41
|
+
CancellationException_init_$Create$35hy9ztjr481d as CancellationException_init_$Create$,
|
|
42
|
+
CancellationException3b36o9qz53rgr as CancellationException,
|
|
43
|
+
ArrayList_init_$Create$2qnngtk1et9r9 as ArrayList_init_$Create$,
|
|
44
|
+
listOf1jh22dvmctj1r as listOf,
|
|
45
|
+
StringBuilder_init_$Create$23o1ixl6cos5l as StringBuilder_init_$Create$,
|
|
46
|
+
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
47
|
+
encodeToByteArray22651fhg4p67t as encodeToByteArray,
|
|
48
|
+
AutoCloseable1l5p57f9lp7kv as AutoCloseable,
|
|
49
|
+
_Char___init__impl__6a9atx281r2pd9o601g as _Char___init__impl__6a9atx,
|
|
50
|
+
replaceqbix900hl8kl as replace_0,
|
|
51
|
+
IllegalArgumentException_init_$Create$310sysrobvll9 as IllegalArgumentException_init_$Create$,
|
|
52
|
+
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
53
|
+
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
54
|
+
isCharSequence1ju9jr1w86plq as isCharSequence,
|
|
55
|
+
trim11nh7r46at6sx as trim,
|
|
56
|
+
toByte4i43936u611k as toByte,
|
|
57
|
+
decodeToString1x4faah2liw2p as decodeToString,
|
|
58
|
+
setOf45ia9pnfhe90 as setOf,
|
|
59
|
+
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
60
|
+
Char__toInt_impl_vasixd2xlaiz5u3itpv as Char__toInt_impl_vasixd,
|
|
61
|
+
} from './kotlin-kotlin-stdlib.mjs';
|
|
62
|
+
import {
|
|
63
|
+
CancellableContinuationImpl1cx201opicavg as CancellableContinuationImpl,
|
|
64
|
+
CoroutineScopefcb5f5dwqcas as CoroutineScope,
|
|
65
|
+
launch1c91vkjzdi9sd as launch,
|
|
66
|
+
startCoroutineCancellable18shtfwdieib as startCoroutineCancellable,
|
|
67
|
+
get_job2zvlvce9o9a29 as get_job,
|
|
68
|
+
Job13y4jkazwjho0 as Job,
|
|
69
|
+
cancel1xim2hrvjmwpn as cancel,
|
|
70
|
+
CopyableThrowable1mvc99jcyvivf as CopyableThrowable,
|
|
71
|
+
} from './kotlinx-coroutines-core.mjs';
|
|
72
|
+
import {
|
|
73
|
+
Buffergs925ekssbch as Buffer,
|
|
74
|
+
IOException_init_$Create$13y6ig657l2av as IOException_init_$Create$,
|
|
75
|
+
EOFException_init_$Create$1fcl7h9im3v9r as EOFException_init_$Create$,
|
|
76
|
+
readStringo8i62qxt5m4m as readString,
|
|
77
|
+
readByteString2hnsbql6t4ads as readByteString,
|
|
78
|
+
readString2nvggcfaijfhd as readString_0,
|
|
79
|
+
IOException1wyutdmfe71nu as IOException,
|
|
80
|
+
IOException_init_$Init$2zqugtfkvfigo as IOException_init_$Init$,
|
|
81
|
+
IOException_init_$Create$39p2wsfj1vt0k as IOException_init_$Create$_0,
|
|
82
|
+
readByteArray1fhzfwi2j014k as readByteArray,
|
|
83
|
+
readString3v6duspiz33tv as readString_1,
|
|
84
|
+
writeString33ca4btrgctw7 as writeString,
|
|
85
|
+
IOException_init_$Init$2jjz3fe04l3kq as IOException_init_$Init$_0,
|
|
86
|
+
readByteArray1ri21h2rciakw as readByteArray_0,
|
|
87
|
+
} from './kotlinx-io-kotlinx-io-core.mjs';
|
|
88
|
+
import { atomic$ref$130aurmcwdfdf1 as atomic$ref$1 } from './kotlinx-atomicfu.mjs';
|
|
89
|
+
import { decodeToString2ede220pr5xir as decodeToString_0 } from './kotlinx-io-kotlinx-io-bytestring.mjs';
|
|
90
|
+
//region block: imports
|
|
91
|
+
//endregion
|
|
92
|
+
//region block: pre-declaration
|
|
93
|
+
initMetadataForCompanion(Companion);
|
|
94
|
+
initMetadataForObject(Empty, 'Empty');
|
|
95
|
+
initMetadataForClass(Closed, 'Closed');
|
|
96
|
+
function resume() {
|
|
97
|
+
return this.x1m().u9(Companion_getInstance().u1m_1);
|
|
98
|
+
}
|
|
99
|
+
function resume_0(throwable) {
|
|
100
|
+
var tmp = this.x1m();
|
|
101
|
+
var tmp_0;
|
|
102
|
+
if (throwable == null) {
|
|
103
|
+
tmp_0 = null;
|
|
104
|
+
} else {
|
|
105
|
+
// Inline function 'kotlin.let' call
|
|
106
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
107
|
+
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(throwable));
|
|
108
|
+
tmp_0 = new Result(tmp$ret$2);
|
|
109
|
+
}
|
|
110
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
111
|
+
return tmp.u9(tmp1_elvis_lhs == null ? Companion_getInstance().u1m_1 : tmp1_elvis_lhs.pm_1);
|
|
112
|
+
}
|
|
113
|
+
initMetadataForInterface(Task, 'Task');
|
|
114
|
+
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
115
|
+
initMetadataForClass(Write, 'Write', VOID, VOID, [Task]);
|
|
116
|
+
initMetadataForCoroutine($awaitContentCOROUTINE$0, CoroutineImpl);
|
|
117
|
+
initMetadataForCoroutine($flushCOROUTINE$1, CoroutineImpl);
|
|
118
|
+
initMetadataForCoroutine($flushAndCloseCOROUTINE$2, CoroutineImpl);
|
|
119
|
+
function awaitContent$default(min, $completion, $super) {
|
|
120
|
+
min = min === VOID ? 1 : min;
|
|
121
|
+
return $super === VOID ? this.j1p(min, $completion) : $super.j1p.call(this, min, $completion);
|
|
122
|
+
}
|
|
123
|
+
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
124
|
+
initMetadataForClass(ByteChannel, 'ByteChannel', ByteChannel, VOID, [ByteReadChannel_1], [1, 0]);
|
|
125
|
+
initMetadataForClass(ConcurrentIOException, 'ConcurrentIOException', VOID, IllegalStateException);
|
|
126
|
+
initMetadataForClass(ByteReadChannel$Companion$Empty$1, VOID, VOID, VOID, [ByteReadChannel_1], [1]);
|
|
127
|
+
initMetadataForCompanion(Companion_0);
|
|
128
|
+
initMetadataForCoroutine($readRemainingCOROUTINE$3, CoroutineImpl);
|
|
129
|
+
initMetadataForCoroutine($readPacketCOROUTINE$4, CoroutineImpl);
|
|
130
|
+
initMetadataForCoroutine($discardCOROUTINE$5, CoroutineImpl);
|
|
131
|
+
initMetadataForCoroutine($readAvailableCOROUTINE$7, CoroutineImpl);
|
|
132
|
+
initMetadataForCoroutine($toByteArrayCOROUTINE$9, CoroutineImpl);
|
|
133
|
+
initMetadataForCoroutine($copyToCOROUTINE$10, CoroutineImpl);
|
|
134
|
+
initMetadataForCoroutine($readBufferCOROUTINE$11, CoroutineImpl);
|
|
135
|
+
initMetadataForCoroutine($readUTF8LineToCOROUTINE$12, CoroutineImpl);
|
|
136
|
+
initMetadataForCoroutine($skipIfFoundCOROUTINE$13, CoroutineImpl);
|
|
137
|
+
initMetadataForCoroutine($readUntilCOROUTINE$14, CoroutineImpl);
|
|
138
|
+
initMetadataForCoroutine($peekCOROUTINE$15, CoroutineImpl);
|
|
139
|
+
initMetadataForCoroutine($readByteCOROUTINE$16, CoroutineImpl);
|
|
140
|
+
initMetadataForCoroutine($readUntil$appendPartialMatchCOROUTINE$17, CoroutineImpl);
|
|
141
|
+
initMetadataForCoroutine($flushIfNeededCOROUTINE$18, CoroutineImpl);
|
|
142
|
+
initMetadataForClass(WriterJob, 'WriterJob');
|
|
143
|
+
initMetadataForClass(WriterScope, 'WriterScope', VOID, VOID, [CoroutineScope]);
|
|
144
|
+
initMetadataForClass(NO_CALLBACK$1, VOID, VOID, VOID, [Continuation]);
|
|
145
|
+
initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref, VOID, VOID, [0]);
|
|
146
|
+
initMetadataForLambda(writer$slambda, CoroutineImpl, VOID, [1]);
|
|
147
|
+
initMetadataForCoroutine($writePacketCOROUTINE$19, CoroutineImpl);
|
|
148
|
+
initMetadataForClass(CloseToken, 'CloseToken');
|
|
149
|
+
initMetadataForCoroutine($awaitContentCOROUTINE$20, CoroutineImpl);
|
|
150
|
+
initMetadataForClass(CountedByteReadChannel, 'CountedByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
|
|
151
|
+
initMetadataForClass(ClosedByteChannelException, 'ClosedByteChannelException', ClosedByteChannelException, IOException);
|
|
152
|
+
initMetadataForClass(ClosedReadChannelException, 'ClosedReadChannelException', ClosedReadChannelException, ClosedByteChannelException);
|
|
153
|
+
initMetadataForClass(ClosedWriteChannelException, 'ClosedWriteChannelException', ClosedWriteChannelException, ClosedByteChannelException);
|
|
154
|
+
initMetadataForCompanion(Companion_1);
|
|
155
|
+
initMetadataForClass(LineEndingMode, 'LineEndingMode');
|
|
156
|
+
initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
|
|
157
|
+
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
158
|
+
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
159
|
+
function close() {
|
|
160
|
+
this.vs();
|
|
161
|
+
}
|
|
162
|
+
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
163
|
+
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
164
|
+
initMetadataForClass(ByteArrayPool$1, VOID, VOID, DefaultPool);
|
|
165
|
+
initMetadataForClass(NoPoolImpl, 'NoPoolImpl', VOID, VOID, [ObjectPool]);
|
|
166
|
+
initMetadataForCompanion(Companion_2);
|
|
167
|
+
initMetadataForClass(Charset, 'Charset');
|
|
168
|
+
initMetadataForObject(Charsets, 'Charsets');
|
|
169
|
+
initMetadataForClass(CharsetDecoder, 'CharsetDecoder');
|
|
170
|
+
initMetadataForClass(CharsetEncoder, 'CharsetEncoder');
|
|
171
|
+
initMetadataForClass(CharsetImpl, 'CharsetImpl', VOID, Charset);
|
|
172
|
+
initMetadataForClass(CharsetEncoderImpl, 'CharsetEncoderImpl', VOID, CharsetEncoder);
|
|
173
|
+
initMetadataForClass(CharsetDecoderImpl, 'CharsetDecoderImpl', VOID, CharsetDecoder);
|
|
174
|
+
initMetadataForClass(toKtor$1);
|
|
175
|
+
initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
|
|
176
|
+
//endregion
|
|
177
|
+
function Companion() {
|
|
178
|
+
Companion_instance_0 = this;
|
|
179
|
+
this.t1m_1 = new Closed(null);
|
|
180
|
+
var tmp = this;
|
|
181
|
+
// Inline function 'kotlin.Companion.success' call
|
|
182
|
+
tmp.u1m_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
183
|
+
}
|
|
184
|
+
var Companion_instance_0;
|
|
185
|
+
function Companion_getInstance() {
|
|
186
|
+
if (Companion_instance_0 == null)
|
|
187
|
+
new Companion();
|
|
188
|
+
return Companion_instance_0;
|
|
189
|
+
}
|
|
190
|
+
function Empty() {
|
|
191
|
+
}
|
|
192
|
+
protoOf(Empty).toString = function () {
|
|
193
|
+
return 'Empty';
|
|
194
|
+
};
|
|
195
|
+
protoOf(Empty).hashCode = function () {
|
|
196
|
+
return -231472095;
|
|
197
|
+
};
|
|
198
|
+
protoOf(Empty).equals = function (other) {
|
|
199
|
+
if (this === other)
|
|
200
|
+
return true;
|
|
201
|
+
if (!(other instanceof Empty))
|
|
202
|
+
return false;
|
|
203
|
+
other instanceof Empty || THROW_CCE();
|
|
204
|
+
return true;
|
|
205
|
+
};
|
|
206
|
+
var Empty_instance;
|
|
207
|
+
function Empty_getInstance() {
|
|
208
|
+
return Empty_instance;
|
|
209
|
+
}
|
|
210
|
+
function Closed(cause) {
|
|
211
|
+
this.v1m_1 = cause;
|
|
212
|
+
}
|
|
213
|
+
protoOf(Closed).toString = function () {
|
|
214
|
+
return 'Closed(cause=' + toString(this.v1m_1) + ')';
|
|
215
|
+
};
|
|
216
|
+
protoOf(Closed).hashCode = function () {
|
|
217
|
+
return this.v1m_1 == null ? 0 : hashCode(this.v1m_1);
|
|
218
|
+
};
|
|
219
|
+
protoOf(Closed).equals = function (other) {
|
|
220
|
+
if (this === other)
|
|
221
|
+
return true;
|
|
222
|
+
if (!(other instanceof Closed))
|
|
223
|
+
return false;
|
|
224
|
+
var tmp0_other_with_cast = other instanceof Closed ? other : THROW_CCE();
|
|
225
|
+
if (!equals(this.v1m_1, tmp0_other_with_cast.v1m_1))
|
|
226
|
+
return false;
|
|
227
|
+
return true;
|
|
228
|
+
};
|
|
229
|
+
function Task() {
|
|
230
|
+
}
|
|
231
|
+
function Read(continuation) {
|
|
232
|
+
this.b1n_1 = continuation;
|
|
233
|
+
this.c1n_1 = null;
|
|
234
|
+
if (get_DEVELOPMENT_MODE()) {
|
|
235
|
+
var tmp = this;
|
|
236
|
+
// Inline function 'kotlin.also' call
|
|
237
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.b1n_1), 16));
|
|
238
|
+
stackTraceToString(this_0);
|
|
239
|
+
tmp.c1n_1 = this_0;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
protoOf(Read).x1m = function () {
|
|
243
|
+
return this.b1n_1;
|
|
244
|
+
};
|
|
245
|
+
protoOf(Read).w1m = function () {
|
|
246
|
+
return this.c1n_1;
|
|
247
|
+
};
|
|
248
|
+
protoOf(Read).y1m = function () {
|
|
249
|
+
return 'read';
|
|
250
|
+
};
|
|
251
|
+
function Write(continuation) {
|
|
252
|
+
this.d1n_1 = continuation;
|
|
253
|
+
this.e1n_1 = null;
|
|
254
|
+
if (get_DEVELOPMENT_MODE()) {
|
|
255
|
+
var tmp = this;
|
|
256
|
+
// Inline function 'kotlin.also' call
|
|
257
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.d1n_1), 16));
|
|
258
|
+
stackTraceToString(this_0);
|
|
259
|
+
tmp.e1n_1 = this_0;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
protoOf(Write).x1m = function () {
|
|
263
|
+
return this.d1n_1;
|
|
264
|
+
};
|
|
265
|
+
protoOf(Write).w1m = function () {
|
|
266
|
+
return this.e1n_1;
|
|
267
|
+
};
|
|
268
|
+
protoOf(Write).y1m = function () {
|
|
269
|
+
return 'write';
|
|
270
|
+
};
|
|
271
|
+
function moveFlushToReadBuffer($this) {
|
|
272
|
+
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
273
|
+
$this.i1n_1;
|
|
274
|
+
$this.g1n_1.y1k($this.k1n_1);
|
|
275
|
+
$this.h1n_1 = 0;
|
|
276
|
+
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
277
|
+
var current = $this.j1n_1.kotlinx$atomicfu$value;
|
|
278
|
+
var tmp;
|
|
279
|
+
if (current instanceof Write) {
|
|
280
|
+
tmp = $this.j1n_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
281
|
+
} else {
|
|
282
|
+
tmp = false;
|
|
283
|
+
}
|
|
284
|
+
if (tmp) {
|
|
285
|
+
current.z1m();
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
function closeSlot($this, cause) {
|
|
289
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().t1m_1;
|
|
290
|
+
var continuation = $this.j1n_1.atomicfu$getAndSet(closeContinuation);
|
|
291
|
+
if (isInterface(continuation, Task)) {
|
|
292
|
+
continuation.a1n(cause);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
296
|
+
var l = function (p0) {
|
|
297
|
+
return new ClosedReadChannelException(p0);
|
|
298
|
+
};
|
|
299
|
+
l.callableName = '<init>';
|
|
300
|
+
return l;
|
|
301
|
+
}
|
|
302
|
+
function ClosedWriteChannelException$_init_$ref_ef15ty() {
|
|
303
|
+
var l = function (p0) {
|
|
304
|
+
return new ClosedWriteChannelException(p0);
|
|
305
|
+
};
|
|
306
|
+
l.callableName = '<init>';
|
|
307
|
+
return l;
|
|
308
|
+
}
|
|
309
|
+
function $awaitContentCOROUTINE$0(_this__u8e3s4, min, resultContinuation) {
|
|
310
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
311
|
+
this.v1n_1 = _this__u8e3s4;
|
|
312
|
+
this.w1n_1 = min;
|
|
313
|
+
}
|
|
314
|
+
protoOf($awaitContentCOROUTINE$0).r9 = function () {
|
|
315
|
+
var suspendResult = this.l9_1;
|
|
316
|
+
$sm: do
|
|
317
|
+
try {
|
|
318
|
+
var tmp = this.j9_1;
|
|
319
|
+
switch (tmp) {
|
|
320
|
+
case 0:
|
|
321
|
+
this.k9_1 = 4;
|
|
322
|
+
rethrowCloseCauseIfNeeded_1(this.v1n_1);
|
|
323
|
+
if (this.v1n_1.k1n_1.s().g1(toLong(this.w1n_1)) >= 0)
|
|
324
|
+
return true;
|
|
325
|
+
var tmp_0 = this;
|
|
326
|
+
tmp_0.x1n_1 = this.v1n_1;
|
|
327
|
+
this.y1n_1 = this.x1n_1;
|
|
328
|
+
this.j9_1 = 1;
|
|
329
|
+
continue $sm;
|
|
330
|
+
case 1:
|
|
331
|
+
if (!(numberToLong(this.v1n_1.h1n_1).b3(this.v1n_1.k1n_1.s()).g1(toLong(this.w1n_1)) < 0 && this.v1n_1.m1n_1.kotlinx$atomicfu$value == null)) {
|
|
332
|
+
this.j9_1 = 3;
|
|
333
|
+
continue $sm;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
this.j9_1 = 2;
|
|
337
|
+
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
338
|
+
cancellable.xt();
|
|
339
|
+
var tmp0 = this.y1n_1;
|
|
340
|
+
var tmp1 = new Read(cancellable);
|
|
341
|
+
l$ret$1: do {
|
|
342
|
+
var previous = tmp0.j1n_1.kotlinx$atomicfu$value;
|
|
343
|
+
if (!(previous instanceof Closed)) {
|
|
344
|
+
if (!tmp0.j1n_1.atomicfu$compareAndSet(previous, tmp1)) {
|
|
345
|
+
tmp1.z1m();
|
|
346
|
+
break l$ret$1;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
if (previous instanceof Read) {
|
|
350
|
+
previous.a1n(new ConcurrentIOException(tmp1.y1m(), previous.w1m()));
|
|
351
|
+
} else {
|
|
352
|
+
if (isInterface(previous, Task)) {
|
|
353
|
+
previous.z1m();
|
|
354
|
+
} else {
|
|
355
|
+
if (previous instanceof Closed) {
|
|
356
|
+
tmp1.a1n(previous.v1m_1);
|
|
357
|
+
break l$ret$1;
|
|
358
|
+
} else {
|
|
359
|
+
if (!equals(previous, Empty_instance)) {
|
|
360
|
+
noWhenBranchMatchedException();
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
if (!(numberToLong(this.v1n_1.h1n_1).b3(this.v1n_1.k1n_1.s()).g1(toLong(this.w1n_1)) < 0 && this.v1n_1.m1n_1.kotlinx$atomicfu$value == null)) {
|
|
366
|
+
var current = tmp0.j1n_1.kotlinx$atomicfu$value;
|
|
367
|
+
var tmp_1;
|
|
368
|
+
if (current instanceof Read) {
|
|
369
|
+
tmp_1 = tmp0.j1n_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
370
|
+
} else {
|
|
371
|
+
tmp_1 = false;
|
|
372
|
+
}
|
|
373
|
+
if (tmp_1) {
|
|
374
|
+
current.z1m();
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
while (false);
|
|
379
|
+
suspendResult = returnIfSuspended(cancellable.fu(), this);
|
|
380
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
381
|
+
return suspendResult;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
continue $sm;
|
|
385
|
+
case 2:
|
|
386
|
+
this.j9_1 = 1;
|
|
387
|
+
continue $sm;
|
|
388
|
+
case 3:
|
|
389
|
+
if (this.v1n_1.k1n_1.s().g1(new Long(1048576, 0)) < 0) {
|
|
390
|
+
moveFlushToReadBuffer(this.v1n_1);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
return this.v1n_1.k1n_1.s().g1(toLong(this.w1n_1)) >= 0;
|
|
394
|
+
case 4:
|
|
395
|
+
throw this.m9_1;
|
|
396
|
+
}
|
|
397
|
+
} catch ($p) {
|
|
398
|
+
var e = $p;
|
|
399
|
+
if (this.k9_1 === 4) {
|
|
400
|
+
throw e;
|
|
401
|
+
} else {
|
|
402
|
+
this.j9_1 = this.k9_1;
|
|
403
|
+
this.m9_1 = e;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
while (true);
|
|
407
|
+
};
|
|
408
|
+
function $flushCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
409
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
410
|
+
this.h1o_1 = _this__u8e3s4;
|
|
411
|
+
}
|
|
412
|
+
protoOf($flushCOROUTINE$1).r9 = function () {
|
|
413
|
+
var suspendResult = this.l9_1;
|
|
414
|
+
$sm: do
|
|
415
|
+
try {
|
|
416
|
+
var tmp = this.j9_1;
|
|
417
|
+
switch (tmp) {
|
|
418
|
+
case 0:
|
|
419
|
+
this.k9_1 = 4;
|
|
420
|
+
rethrowCloseCauseIfNeeded_1(this.h1o_1);
|
|
421
|
+
this.h1o_1.k1o();
|
|
422
|
+
if (this.h1o_1.h1n_1 < 1048576)
|
|
423
|
+
return Unit_instance;
|
|
424
|
+
var tmp_0 = this;
|
|
425
|
+
tmp_0.i1o_1 = this.h1o_1;
|
|
426
|
+
this.j1o_1 = this.i1o_1;
|
|
427
|
+
this.j9_1 = 1;
|
|
428
|
+
continue $sm;
|
|
429
|
+
case 1:
|
|
430
|
+
if (!(this.h1o_1.h1n_1 >= 1048576 && this.h1o_1.m1n_1.kotlinx$atomicfu$value == null)) {
|
|
431
|
+
this.j9_1 = 3;
|
|
432
|
+
continue $sm;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
this.j9_1 = 2;
|
|
436
|
+
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
437
|
+
cancellable.xt();
|
|
438
|
+
var tmp0 = this.j1o_1;
|
|
439
|
+
var tmp1 = new Write(cancellable);
|
|
440
|
+
l$ret$1: do {
|
|
441
|
+
var previous = tmp0.j1n_1.kotlinx$atomicfu$value;
|
|
442
|
+
if (!(previous instanceof Closed)) {
|
|
443
|
+
if (!tmp0.j1n_1.atomicfu$compareAndSet(previous, tmp1)) {
|
|
444
|
+
tmp1.z1m();
|
|
445
|
+
break l$ret$1;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
if (previous instanceof Write) {
|
|
449
|
+
previous.a1n(new ConcurrentIOException(tmp1.y1m(), previous.w1m()));
|
|
450
|
+
} else {
|
|
451
|
+
if (isInterface(previous, Task)) {
|
|
452
|
+
previous.z1m();
|
|
453
|
+
} else {
|
|
454
|
+
if (previous instanceof Closed) {
|
|
455
|
+
tmp1.a1n(previous.v1m_1);
|
|
456
|
+
break l$ret$1;
|
|
457
|
+
} else {
|
|
458
|
+
if (!equals(previous, Empty_instance)) {
|
|
459
|
+
noWhenBranchMatchedException();
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
if (!(this.h1o_1.h1n_1 >= 1048576 && this.h1o_1.m1n_1.kotlinx$atomicfu$value == null)) {
|
|
465
|
+
var current = tmp0.j1n_1.kotlinx$atomicfu$value;
|
|
466
|
+
var tmp_1;
|
|
467
|
+
if (current instanceof Write) {
|
|
468
|
+
tmp_1 = tmp0.j1n_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
469
|
+
} else {
|
|
470
|
+
tmp_1 = false;
|
|
471
|
+
}
|
|
472
|
+
if (tmp_1) {
|
|
473
|
+
current.z1m();
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
while (false);
|
|
478
|
+
suspendResult = returnIfSuspended(cancellable.fu(), this);
|
|
479
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
480
|
+
return suspendResult;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
continue $sm;
|
|
484
|
+
case 2:
|
|
485
|
+
this.j9_1 = 1;
|
|
486
|
+
continue $sm;
|
|
487
|
+
case 3:
|
|
488
|
+
return Unit_instance;
|
|
489
|
+
case 4:
|
|
490
|
+
throw this.m9_1;
|
|
491
|
+
}
|
|
492
|
+
} catch ($p) {
|
|
493
|
+
var e = $p;
|
|
494
|
+
if (this.k9_1 === 4) {
|
|
495
|
+
throw e;
|
|
496
|
+
} else {
|
|
497
|
+
this.j9_1 = this.k9_1;
|
|
498
|
+
this.m9_1 = e;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
while (true);
|
|
502
|
+
};
|
|
503
|
+
function $flushAndCloseCOROUTINE$2(_this__u8e3s4, resultContinuation) {
|
|
504
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
505
|
+
this.t1o_1 = _this__u8e3s4;
|
|
506
|
+
}
|
|
507
|
+
protoOf($flushAndCloseCOROUTINE$2).r9 = function () {
|
|
508
|
+
var suspendResult = this.l9_1;
|
|
509
|
+
$sm: do
|
|
510
|
+
try {
|
|
511
|
+
var tmp = this.j9_1;
|
|
512
|
+
switch (tmp) {
|
|
513
|
+
case 0:
|
|
514
|
+
this.k9_1 = 4;
|
|
515
|
+
var tmp_0 = this;
|
|
516
|
+
tmp_0.u1o_1 = this.t1o_1;
|
|
517
|
+
this.v1o_1 = this.u1o_1;
|
|
518
|
+
this.k9_1 = 2;
|
|
519
|
+
var tmp_1 = this;
|
|
520
|
+
tmp_1.x1o_1 = Companion_instance;
|
|
521
|
+
var tmp_2 = this;
|
|
522
|
+
tmp_2.y1o_1 = this.v1o_1;
|
|
523
|
+
this.z1o_1 = this.y1o_1;
|
|
524
|
+
this.j9_1 = 1;
|
|
525
|
+
suspendResult = this.z1o_1.a1p(this);
|
|
526
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
527
|
+
return suspendResult;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
continue $sm;
|
|
531
|
+
case 1:
|
|
532
|
+
var tmp_3 = this;
|
|
533
|
+
this.x1o_1;
|
|
534
|
+
tmp_3.w1o_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
535
|
+
this.k9_1 = 4;
|
|
536
|
+
this.j9_1 = 3;
|
|
537
|
+
continue $sm;
|
|
538
|
+
case 2:
|
|
539
|
+
this.k9_1 = 4;
|
|
540
|
+
var tmp_4 = this.m9_1;
|
|
541
|
+
if (tmp_4 instanceof Error) {
|
|
542
|
+
var e = this.m9_1;
|
|
543
|
+
var tmp_5 = this;
|
|
544
|
+
tmp_5.w1o_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
545
|
+
this.j9_1 = 3;
|
|
546
|
+
continue $sm;
|
|
547
|
+
} else {
|
|
548
|
+
throw this.m9_1;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
case 3:
|
|
552
|
+
this.k9_1 = 4;
|
|
553
|
+
if (!this.t1o_1.m1n_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
554
|
+
return Unit_instance;
|
|
555
|
+
closeSlot(this.t1o_1, null);
|
|
556
|
+
return Unit_instance;
|
|
557
|
+
case 4:
|
|
558
|
+
throw this.m9_1;
|
|
559
|
+
}
|
|
560
|
+
} catch ($p) {
|
|
561
|
+
var e_0 = $p;
|
|
562
|
+
if (this.k9_1 === 4) {
|
|
563
|
+
throw e_0;
|
|
564
|
+
} else {
|
|
565
|
+
this.j9_1 = this.k9_1;
|
|
566
|
+
this.m9_1 = e_0;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
while (true);
|
|
570
|
+
};
|
|
571
|
+
function ByteChannel(autoFlush) {
|
|
572
|
+
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
573
|
+
this.f1n_1 = autoFlush;
|
|
574
|
+
this.g1n_1 = new Buffer();
|
|
575
|
+
this.h1n_1 = 0;
|
|
576
|
+
this.i1n_1 = new Object();
|
|
577
|
+
this.j1n_1 = atomic$ref$1(Empty_instance);
|
|
578
|
+
this.k1n_1 = new Buffer();
|
|
579
|
+
this.l1n_1 = new Buffer();
|
|
580
|
+
this.m1n_1 = atomic$ref$1(null);
|
|
581
|
+
}
|
|
582
|
+
protoOf(ByteChannel).b1p = function () {
|
|
583
|
+
var tmp0_safe_receiver = this.m1n_1.kotlinx$atomicfu$value;
|
|
584
|
+
if (tmp0_safe_receiver == null)
|
|
585
|
+
null;
|
|
586
|
+
else {
|
|
587
|
+
tmp0_safe_receiver.d1p(ClosedReadChannelException$_init_$ref_ix0089());
|
|
588
|
+
}
|
|
589
|
+
if (this.k1n_1.u1j()) {
|
|
590
|
+
moveFlushToReadBuffer(this);
|
|
591
|
+
}
|
|
592
|
+
return this.k1n_1;
|
|
593
|
+
};
|
|
594
|
+
protoOf(ByteChannel).e1p = function () {
|
|
595
|
+
if (this.f1p()) {
|
|
596
|
+
var tmp0_safe_receiver = this.m1n_1.kotlinx$atomicfu$value;
|
|
597
|
+
var tmp;
|
|
598
|
+
if (tmp0_safe_receiver == null) {
|
|
599
|
+
tmp = null;
|
|
600
|
+
} else {
|
|
601
|
+
tmp = tmp0_safe_receiver.d1p(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
602
|
+
}
|
|
603
|
+
if (tmp == null)
|
|
604
|
+
throw new ClosedWriteChannelException();
|
|
605
|
+
}
|
|
606
|
+
return this.l1n_1;
|
|
607
|
+
};
|
|
608
|
+
protoOf(ByteChannel).g1p = function () {
|
|
609
|
+
var tmp0_safe_receiver = this.m1n_1.kotlinx$atomicfu$value;
|
|
610
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1p();
|
|
611
|
+
};
|
|
612
|
+
protoOf(ByteChannel).f1p = function () {
|
|
613
|
+
return !(this.m1n_1.kotlinx$atomicfu$value == null);
|
|
614
|
+
};
|
|
615
|
+
protoOf(ByteChannel).i1p = function () {
|
|
616
|
+
return !(this.g1p() == null) || (this.f1p() && this.h1n_1 === 0 && this.k1n_1.u1j());
|
|
617
|
+
};
|
|
618
|
+
protoOf(ByteChannel).j1p = function (min, $completion) {
|
|
619
|
+
var tmp = new $awaitContentCOROUTINE$0(this, min, $completion);
|
|
620
|
+
tmp.l9_1 = Unit_instance;
|
|
621
|
+
tmp.m9_1 = null;
|
|
622
|
+
return tmp.r9();
|
|
623
|
+
};
|
|
624
|
+
protoOf(ByteChannel).a1p = function ($completion) {
|
|
625
|
+
var tmp = new $flushCOROUTINE$1(this, $completion);
|
|
626
|
+
tmp.l9_1 = Unit_instance;
|
|
627
|
+
tmp.m9_1 = null;
|
|
628
|
+
return tmp.r9();
|
|
629
|
+
};
|
|
630
|
+
protoOf(ByteChannel).k1o = function () {
|
|
631
|
+
if (this.l1n_1.u1j())
|
|
632
|
+
return Unit_instance;
|
|
633
|
+
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
634
|
+
this.i1n_1;
|
|
635
|
+
var count = this.l1n_1.s().l1();
|
|
636
|
+
this.g1n_1.n1l(this.l1n_1);
|
|
637
|
+
this.h1n_1 = this.h1n_1 + count | 0;
|
|
638
|
+
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
639
|
+
var current = this.j1n_1.kotlinx$atomicfu$value;
|
|
640
|
+
var tmp;
|
|
641
|
+
if (current instanceof Read) {
|
|
642
|
+
tmp = this.j1n_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
643
|
+
} else {
|
|
644
|
+
tmp = false;
|
|
645
|
+
}
|
|
646
|
+
if (tmp) {
|
|
647
|
+
current.z1m();
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
protoOf(ByteChannel).p4 = function () {
|
|
651
|
+
this.k1o();
|
|
652
|
+
if (!this.m1n_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
653
|
+
return Unit_instance;
|
|
654
|
+
closeSlot(this, null);
|
|
655
|
+
};
|
|
656
|
+
protoOf(ByteChannel).l1p = function ($completion) {
|
|
657
|
+
var tmp = new $flushAndCloseCOROUTINE$2(this, $completion);
|
|
658
|
+
tmp.l9_1 = Unit_instance;
|
|
659
|
+
tmp.m9_1 = null;
|
|
660
|
+
return tmp.r9();
|
|
661
|
+
};
|
|
662
|
+
protoOf(ByteChannel).m1p = function (cause) {
|
|
663
|
+
if (!(this.m1n_1.kotlinx$atomicfu$value == null))
|
|
664
|
+
return Unit_instance;
|
|
665
|
+
var closedToken = new CloseToken(cause);
|
|
666
|
+
this.m1n_1.atomicfu$compareAndSet(null, closedToken);
|
|
667
|
+
var wrappedCause = closedToken.h1p();
|
|
668
|
+
closeSlot(this, wrappedCause);
|
|
669
|
+
};
|
|
670
|
+
protoOf(ByteChannel).toString = function () {
|
|
671
|
+
return 'ByteChannel[' + hashCode(this) + ']';
|
|
672
|
+
};
|
|
673
|
+
function ConcurrentIOException(taskName, cause) {
|
|
674
|
+
cause = cause === VOID ? null : cause;
|
|
675
|
+
IllegalStateException_init_$Init$('Concurrent ' + taskName + ' attempts', cause, this);
|
|
676
|
+
captureStack(this, ConcurrentIOException);
|
|
677
|
+
}
|
|
678
|
+
function ByteReadChannel(content, offset, length) {
|
|
679
|
+
offset = offset === VOID ? 0 : offset;
|
|
680
|
+
length = length === VOID ? content.length : length;
|
|
681
|
+
// Inline function 'kotlin.also' call
|
|
682
|
+
var this_0 = new Buffer();
|
|
683
|
+
this_0.e1l(content, offset, offset + length | 0);
|
|
684
|
+
var source = this_0;
|
|
685
|
+
return ByteReadChannel_0(source);
|
|
686
|
+
}
|
|
687
|
+
function ByteReadChannel_0(source) {
|
|
688
|
+
return new SourceByteReadChannel(source);
|
|
689
|
+
}
|
|
690
|
+
function ByteReadChannel$Companion$Empty$1() {
|
|
691
|
+
this.n1p_1 = null;
|
|
692
|
+
this.o1p_1 = new Buffer();
|
|
693
|
+
}
|
|
694
|
+
protoOf(ByteReadChannel$Companion$Empty$1).g1p = function () {
|
|
695
|
+
return this.n1p_1;
|
|
696
|
+
};
|
|
697
|
+
protoOf(ByteReadChannel$Companion$Empty$1).i1p = function () {
|
|
698
|
+
return true;
|
|
699
|
+
};
|
|
700
|
+
protoOf(ByteReadChannel$Companion$Empty$1).b1p = function () {
|
|
701
|
+
return this.o1p_1;
|
|
702
|
+
};
|
|
703
|
+
protoOf(ByteReadChannel$Companion$Empty$1).j1p = function (min, $completion) {
|
|
704
|
+
return false;
|
|
705
|
+
};
|
|
706
|
+
protoOf(ByteReadChannel$Companion$Empty$1).m1p = function (cause) {
|
|
707
|
+
};
|
|
708
|
+
function Companion_0() {
|
|
709
|
+
Companion_instance_1 = this;
|
|
710
|
+
var tmp = this;
|
|
711
|
+
tmp.p1p_1 = new ByteReadChannel$Companion$Empty$1();
|
|
712
|
+
}
|
|
713
|
+
var Companion_instance_1;
|
|
714
|
+
function Companion_getInstance_0() {
|
|
715
|
+
if (Companion_instance_1 == null)
|
|
716
|
+
new Companion_0();
|
|
717
|
+
return Companion_instance_1;
|
|
718
|
+
}
|
|
719
|
+
function ByteReadChannel_1() {
|
|
720
|
+
}
|
|
721
|
+
function cancel_0(_this__u8e3s4) {
|
|
722
|
+
_this__u8e3s4.m1p(IOException_init_$Create$('Channel was cancelled'));
|
|
723
|
+
}
|
|
724
|
+
function readRemaining(_this__u8e3s4, $completion) {
|
|
725
|
+
var tmp = new $readRemainingCOROUTINE$3(_this__u8e3s4, $completion);
|
|
726
|
+
tmp.l9_1 = Unit_instance;
|
|
727
|
+
tmp.m9_1 = null;
|
|
728
|
+
return tmp.r9();
|
|
729
|
+
}
|
|
730
|
+
function get_availableForRead(_this__u8e3s4) {
|
|
731
|
+
return _this__u8e3s4.b1p().t1j().s().l1();
|
|
732
|
+
}
|
|
733
|
+
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
734
|
+
var tmp = new $readPacketCOROUTINE$4(_this__u8e3s4, packet, $completion);
|
|
735
|
+
tmp.l9_1 = Unit_instance;
|
|
736
|
+
tmp.m9_1 = null;
|
|
737
|
+
return tmp.r9();
|
|
738
|
+
}
|
|
739
|
+
function discard(_this__u8e3s4, max, $completion) {
|
|
740
|
+
max = max === VOID ? new Long(-1, 2147483647) : max;
|
|
741
|
+
var tmp = new $discardCOROUTINE$5(_this__u8e3s4, max, $completion);
|
|
742
|
+
tmp.l9_1 = Unit_instance;
|
|
743
|
+
tmp.m9_1 = null;
|
|
744
|
+
return tmp.r9();
|
|
745
|
+
}
|
|
746
|
+
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
747
|
+
offset = offset === VOID ? 0 : offset;
|
|
748
|
+
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
749
|
+
var tmp = new $readAvailableCOROUTINE$7(_this__u8e3s4, buffer, offset, length, $completion);
|
|
750
|
+
tmp.l9_1 = Unit_instance;
|
|
751
|
+
tmp.m9_1 = null;
|
|
752
|
+
return tmp.r9();
|
|
753
|
+
}
|
|
754
|
+
function toByteArray(_this__u8e3s4, $completion) {
|
|
755
|
+
var tmp = new $toByteArrayCOROUTINE$9(_this__u8e3s4, $completion);
|
|
756
|
+
tmp.l9_1 = Unit_instance;
|
|
757
|
+
tmp.m9_1 = null;
|
|
758
|
+
return tmp.r9();
|
|
759
|
+
}
|
|
760
|
+
function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
761
|
+
var tmp = new $copyToCOROUTINE$10(_this__u8e3s4, channel, limit, $completion);
|
|
762
|
+
tmp.l9_1 = Unit_instance;
|
|
763
|
+
tmp.m9_1 = null;
|
|
764
|
+
return tmp.r9();
|
|
765
|
+
}
|
|
766
|
+
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
767
|
+
var tmp0_safe_receiver = _this__u8e3s4.g1p();
|
|
768
|
+
if (tmp0_safe_receiver == null)
|
|
769
|
+
null;
|
|
770
|
+
else {
|
|
771
|
+
// Inline function 'kotlin.let' call
|
|
772
|
+
throw tmp0_safe_receiver;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
function readBuffer(_this__u8e3s4, $completion) {
|
|
776
|
+
var tmp = new $readBufferCOROUTINE$11(_this__u8e3s4, $completion);
|
|
777
|
+
tmp.l9_1 = Unit_instance;
|
|
778
|
+
tmp.m9_1 = null;
|
|
779
|
+
return tmp.r9();
|
|
780
|
+
}
|
|
781
|
+
function readUTF8LineTo(_this__u8e3s4, out, max, lineEnding, $completion) {
|
|
782
|
+
max = max === VOID ? 2147483647 : max;
|
|
783
|
+
lineEnding = lineEnding === VOID ? Companion_getInstance_1().u1s_1 : lineEnding;
|
|
784
|
+
var tmp = new $readUTF8LineToCOROUTINE$12(_this__u8e3s4, out, max, lineEnding, $completion);
|
|
785
|
+
tmp.l9_1 = Unit_instance;
|
|
786
|
+
tmp.m9_1 = null;
|
|
787
|
+
return tmp.r9();
|
|
788
|
+
}
|
|
789
|
+
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
790
|
+
var tmp0_safe_receiver = _this__u8e3s4.g1p();
|
|
791
|
+
if (tmp0_safe_receiver == null)
|
|
792
|
+
null;
|
|
793
|
+
else {
|
|
794
|
+
// Inline function 'kotlin.let' call
|
|
795
|
+
throw tmp0_safe_receiver;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
799
|
+
var tmp0_safe_receiver = _this__u8e3s4.g1p();
|
|
800
|
+
if (tmp0_safe_receiver == null)
|
|
801
|
+
null;
|
|
802
|
+
else {
|
|
803
|
+
// Inline function 'kotlin.let' call
|
|
804
|
+
throw tmp0_safe_receiver;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
808
|
+
var tmp = new $skipIfFoundCOROUTINE$13(_this__u8e3s4, byteString, $completion);
|
|
809
|
+
tmp.l9_1 = Unit_instance;
|
|
810
|
+
tmp.m9_1 = null;
|
|
811
|
+
return tmp.r9();
|
|
812
|
+
}
|
|
813
|
+
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
814
|
+
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
815
|
+
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
816
|
+
var tmp = new $readUntilCOROUTINE$14(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion);
|
|
817
|
+
tmp.l9_1 = Unit_instance;
|
|
818
|
+
tmp.m9_1 = null;
|
|
819
|
+
return tmp.r9();
|
|
820
|
+
}
|
|
821
|
+
function peek(_this__u8e3s4, count, $completion) {
|
|
822
|
+
var tmp = new $peekCOROUTINE$15(_this__u8e3s4, count, $completion);
|
|
823
|
+
tmp.l9_1 = Unit_instance;
|
|
824
|
+
tmp.m9_1 = null;
|
|
825
|
+
return tmp.r9();
|
|
826
|
+
}
|
|
827
|
+
function buildPartialMatchTable(byteString) {
|
|
828
|
+
var table = new Int32Array(byteString.s());
|
|
829
|
+
var j = 0;
|
|
830
|
+
var inductionVariable = 1;
|
|
831
|
+
var last = byteString.s();
|
|
832
|
+
if (inductionVariable < last)
|
|
833
|
+
do {
|
|
834
|
+
var i = inductionVariable;
|
|
835
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
836
|
+
while (j > 0 && !(byteString.u(i) === byteString.u(j))) {
|
|
837
|
+
j = table[j - 1 | 0];
|
|
838
|
+
}
|
|
839
|
+
if (byteString.u(i) === byteString.u(j)) {
|
|
840
|
+
j = j + 1 | 0;
|
|
841
|
+
}
|
|
842
|
+
table[i] = j;
|
|
843
|
+
}
|
|
844
|
+
while (inductionVariable < last);
|
|
845
|
+
return table;
|
|
846
|
+
}
|
|
847
|
+
function readByte(_this__u8e3s4, $completion) {
|
|
848
|
+
var tmp = new $readByteCOROUTINE$16(_this__u8e3s4, $completion);
|
|
849
|
+
tmp.l9_1 = Unit_instance;
|
|
850
|
+
tmp.m9_1 = null;
|
|
851
|
+
return tmp.r9();
|
|
852
|
+
}
|
|
853
|
+
function toSingleLineString(_this__u8e3s4) {
|
|
854
|
+
return replace(decodeToString_0(_this__u8e3s4), '\n', '\\n');
|
|
855
|
+
}
|
|
856
|
+
function readUTF8LineTo$checkLineEndingAllowed($lineEnding, lineEndingToCheck) {
|
|
857
|
+
if (!LineEndingMode__contains_impl_q5pr68($lineEnding, lineEndingToCheck)) {
|
|
858
|
+
throw IOException_init_$Create$('Unexpected line ending ' + LineEndingMode__toString_impl_j4h76r(lineEndingToCheck) + ', while expected ' + LineEndingMode__toString_impl_j4h76r($lineEnding));
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
function readUntil$appendPartialMatch($writeChannel, matchBuffer, matchIndex, rc, $completion) {
|
|
862
|
+
var tmp = new $readUntil$appendPartialMatchCOROUTINE$17($writeChannel, matchBuffer, matchIndex, rc, $completion);
|
|
863
|
+
tmp.l9_1 = Unit_instance;
|
|
864
|
+
tmp.m9_1 = null;
|
|
865
|
+
return tmp.r9();
|
|
866
|
+
}
|
|
867
|
+
function readUntil$resetPartialMatch(matchIndex, $matchString, partialMatchTable, byte) {
|
|
868
|
+
while (matchIndex._v > 0 && !(byte === $matchString.u(matchIndex._v))) {
|
|
869
|
+
matchIndex._v = partialMatchTable[matchIndex._v - 1 | 0];
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
function $readRemainingCOROUTINE$3(_this__u8e3s4, resultContinuation) {
|
|
873
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
874
|
+
this.y1p_1 = _this__u8e3s4;
|
|
875
|
+
}
|
|
876
|
+
protoOf($readRemainingCOROUTINE$3).r9 = function () {
|
|
877
|
+
var suspendResult = this.l9_1;
|
|
878
|
+
$sm: do
|
|
879
|
+
try {
|
|
880
|
+
var tmp = this.j9_1;
|
|
881
|
+
switch (tmp) {
|
|
882
|
+
case 0:
|
|
883
|
+
this.k9_1 = 4;
|
|
884
|
+
this.z1p_1 = BytePacketBuilder();
|
|
885
|
+
this.j9_1 = 1;
|
|
886
|
+
continue $sm;
|
|
887
|
+
case 1:
|
|
888
|
+
if (!!this.y1p_1.i1p()) {
|
|
889
|
+
this.j9_1 = 3;
|
|
890
|
+
continue $sm;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
this.z1p_1.n1l(this.y1p_1.b1p());
|
|
894
|
+
this.j9_1 = 2;
|
|
895
|
+
suspendResult = this.y1p_1.k1p(VOID, this);
|
|
896
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
897
|
+
return suspendResult;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
continue $sm;
|
|
901
|
+
case 2:
|
|
902
|
+
this.j9_1 = 1;
|
|
903
|
+
continue $sm;
|
|
904
|
+
case 3:
|
|
905
|
+
rethrowCloseCauseIfNeeded(this.y1p_1);
|
|
906
|
+
return this.z1p_1.t1j();
|
|
907
|
+
case 4:
|
|
908
|
+
throw this.m9_1;
|
|
909
|
+
}
|
|
910
|
+
} catch ($p) {
|
|
911
|
+
var e = $p;
|
|
912
|
+
if (this.k9_1 === 4) {
|
|
913
|
+
throw e;
|
|
914
|
+
} else {
|
|
915
|
+
this.j9_1 = this.k9_1;
|
|
916
|
+
this.m9_1 = e;
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
while (true);
|
|
920
|
+
};
|
|
921
|
+
function $readPacketCOROUTINE$4(_this__u8e3s4, packet, resultContinuation) {
|
|
922
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
923
|
+
this.i1q_1 = _this__u8e3s4;
|
|
924
|
+
this.j1q_1 = packet;
|
|
925
|
+
}
|
|
926
|
+
protoOf($readPacketCOROUTINE$4).r9 = function () {
|
|
927
|
+
var suspendResult = this.l9_1;
|
|
928
|
+
$sm: do
|
|
929
|
+
try {
|
|
930
|
+
var tmp = this.j9_1;
|
|
931
|
+
switch (tmp) {
|
|
932
|
+
case 0:
|
|
933
|
+
this.k9_1 = 6;
|
|
934
|
+
this.k1q_1 = new Buffer();
|
|
935
|
+
this.j9_1 = 1;
|
|
936
|
+
continue $sm;
|
|
937
|
+
case 1:
|
|
938
|
+
if (!(this.k1q_1.s().g1(toLong(this.j1q_1)) < 0)) {
|
|
939
|
+
this.j9_1 = 5;
|
|
940
|
+
continue $sm;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
if (this.i1q_1.b1p().u1j()) {
|
|
944
|
+
this.j9_1 = 2;
|
|
945
|
+
suspendResult = this.i1q_1.k1p(VOID, this);
|
|
946
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
947
|
+
return suspendResult;
|
|
948
|
+
}
|
|
949
|
+
continue $sm;
|
|
950
|
+
} else {
|
|
951
|
+
this.j9_1 = 3;
|
|
952
|
+
continue $sm;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
case 2:
|
|
956
|
+
this.j9_1 = 3;
|
|
957
|
+
continue $sm;
|
|
958
|
+
case 3:
|
|
959
|
+
if (this.i1q_1.i1p()) {
|
|
960
|
+
this.j9_1 = 5;
|
|
961
|
+
continue $sm;
|
|
962
|
+
} else {
|
|
963
|
+
this.j9_1 = 4;
|
|
964
|
+
continue $sm;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
case 4:
|
|
968
|
+
if (get_remaining(this.i1q_1.b1p()).g1(numberToLong(this.j1q_1).c3(this.k1q_1.s())) > 0) {
|
|
969
|
+
this.i1q_1.b1p().x1k(this.k1q_1, numberToLong(this.j1q_1).c3(this.k1q_1.s()));
|
|
970
|
+
} else {
|
|
971
|
+
this.i1q_1.b1p().y1k(this.k1q_1);
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
this.j9_1 = 1;
|
|
975
|
+
continue $sm;
|
|
976
|
+
case 5:
|
|
977
|
+
if (this.k1q_1.s().g1(toLong(this.j1q_1)) < 0) {
|
|
978
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.j1q_1 + ' bytes but only ' + this.k1q_1.s().toString() + ' available');
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
return this.k1q_1;
|
|
982
|
+
case 6:
|
|
983
|
+
throw this.m9_1;
|
|
984
|
+
}
|
|
985
|
+
} catch ($p) {
|
|
986
|
+
var e = $p;
|
|
987
|
+
if (this.k9_1 === 6) {
|
|
988
|
+
throw e;
|
|
989
|
+
} else {
|
|
990
|
+
this.j9_1 = this.k9_1;
|
|
991
|
+
this.m9_1 = e;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
while (true);
|
|
995
|
+
};
|
|
996
|
+
function $discardCOROUTINE$5(_this__u8e3s4, max, resultContinuation) {
|
|
997
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
998
|
+
this.t1q_1 = _this__u8e3s4;
|
|
999
|
+
this.u1q_1 = max;
|
|
1000
|
+
}
|
|
1001
|
+
protoOf($discardCOROUTINE$5).r9 = function () {
|
|
1002
|
+
var suspendResult = this.l9_1;
|
|
1003
|
+
$sm: do
|
|
1004
|
+
try {
|
|
1005
|
+
var tmp = this.j9_1;
|
|
1006
|
+
switch (tmp) {
|
|
1007
|
+
case 0:
|
|
1008
|
+
this.k9_1 = 5;
|
|
1009
|
+
this.v1q_1 = this.u1q_1;
|
|
1010
|
+
this.j9_1 = 1;
|
|
1011
|
+
continue $sm;
|
|
1012
|
+
case 1:
|
|
1013
|
+
if (!(this.v1q_1.g1(new Long(0, 0)) > 0 && !this.t1q_1.i1p())) {
|
|
1014
|
+
this.j9_1 = 4;
|
|
1015
|
+
continue $sm;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
if (get_availableForRead(this.t1q_1) === 0) {
|
|
1019
|
+
this.j9_1 = 2;
|
|
1020
|
+
suspendResult = this.t1q_1.k1p(VOID, this);
|
|
1021
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1022
|
+
return suspendResult;
|
|
1023
|
+
}
|
|
1024
|
+
continue $sm;
|
|
1025
|
+
} else {
|
|
1026
|
+
this.j9_1 = 3;
|
|
1027
|
+
continue $sm;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
case 2:
|
|
1031
|
+
this.j9_1 = 3;
|
|
1032
|
+
continue $sm;
|
|
1033
|
+
case 3:
|
|
1034
|
+
var tmp0 = this.v1q_1;
|
|
1035
|
+
var b = get_remaining(this.t1q_1.b1p());
|
|
1036
|
+
var count = tmp0.g1(b) <= 0 ? tmp0 : b;
|
|
1037
|
+
discard_0(this.t1q_1.b1p(), count);
|
|
1038
|
+
this.v1q_1 = this.v1q_1.c3(count);
|
|
1039
|
+
this.j9_1 = 1;
|
|
1040
|
+
continue $sm;
|
|
1041
|
+
case 4:
|
|
1042
|
+
return this.u1q_1.c3(this.v1q_1);
|
|
1043
|
+
case 5:
|
|
1044
|
+
throw this.m9_1;
|
|
1045
|
+
}
|
|
1046
|
+
} catch ($p) {
|
|
1047
|
+
var e = $p;
|
|
1048
|
+
if (this.k9_1 === 5) {
|
|
1049
|
+
throw e;
|
|
1050
|
+
} else {
|
|
1051
|
+
this.j9_1 = this.k9_1;
|
|
1052
|
+
this.m9_1 = e;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
while (true);
|
|
1056
|
+
};
|
|
1057
|
+
function $readAvailableCOROUTINE$7(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1058
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1059
|
+
this.e1r_1 = _this__u8e3s4;
|
|
1060
|
+
this.f1r_1 = buffer;
|
|
1061
|
+
this.g1r_1 = offset;
|
|
1062
|
+
this.h1r_1 = length;
|
|
1063
|
+
}
|
|
1064
|
+
protoOf($readAvailableCOROUTINE$7).r9 = function () {
|
|
1065
|
+
var suspendResult = this.l9_1;
|
|
1066
|
+
$sm: do
|
|
1067
|
+
try {
|
|
1068
|
+
var tmp = this.j9_1;
|
|
1069
|
+
switch (tmp) {
|
|
1070
|
+
case 0:
|
|
1071
|
+
this.k9_1 = 3;
|
|
1072
|
+
if (this.e1r_1.i1p())
|
|
1073
|
+
return -1;
|
|
1074
|
+
if (this.e1r_1.b1p().u1j()) {
|
|
1075
|
+
this.j9_1 = 1;
|
|
1076
|
+
suspendResult = this.e1r_1.k1p(VOID, this);
|
|
1077
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1078
|
+
return suspendResult;
|
|
1079
|
+
}
|
|
1080
|
+
continue $sm;
|
|
1081
|
+
} else {
|
|
1082
|
+
this.j9_1 = 2;
|
|
1083
|
+
continue $sm;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
case 1:
|
|
1087
|
+
this.j9_1 = 2;
|
|
1088
|
+
continue $sm;
|
|
1089
|
+
case 2:
|
|
1090
|
+
if (this.e1r_1.i1p())
|
|
1091
|
+
return -1;
|
|
1092
|
+
return readAvailable_0(this.e1r_1.b1p(), this.f1r_1, this.g1r_1, this.h1r_1);
|
|
1093
|
+
case 3:
|
|
1094
|
+
throw this.m9_1;
|
|
1095
|
+
}
|
|
1096
|
+
} catch ($p) {
|
|
1097
|
+
var e = $p;
|
|
1098
|
+
if (this.k9_1 === 3) {
|
|
1099
|
+
throw e;
|
|
1100
|
+
} else {
|
|
1101
|
+
this.j9_1 = this.k9_1;
|
|
1102
|
+
this.m9_1 = e;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
while (true);
|
|
1106
|
+
};
|
|
1107
|
+
function $toByteArrayCOROUTINE$9(_this__u8e3s4, resultContinuation) {
|
|
1108
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1109
|
+
this.q1r_1 = _this__u8e3s4;
|
|
1110
|
+
}
|
|
1111
|
+
protoOf($toByteArrayCOROUTINE$9).r9 = function () {
|
|
1112
|
+
var suspendResult = this.l9_1;
|
|
1113
|
+
$sm: do
|
|
1114
|
+
try {
|
|
1115
|
+
var tmp = this.j9_1;
|
|
1116
|
+
switch (tmp) {
|
|
1117
|
+
case 0:
|
|
1118
|
+
this.k9_1 = 2;
|
|
1119
|
+
this.j9_1 = 1;
|
|
1120
|
+
suspendResult = readBuffer(this.q1r_1, this);
|
|
1121
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1122
|
+
return suspendResult;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
continue $sm;
|
|
1126
|
+
case 1:
|
|
1127
|
+
var ARGUMENT = suspendResult;
|
|
1128
|
+
return readBytes(ARGUMENT);
|
|
1129
|
+
case 2:
|
|
1130
|
+
throw this.m9_1;
|
|
1131
|
+
}
|
|
1132
|
+
} catch ($p) {
|
|
1133
|
+
var e = $p;
|
|
1134
|
+
if (this.k9_1 === 2) {
|
|
1135
|
+
throw e;
|
|
1136
|
+
} else {
|
|
1137
|
+
this.j9_1 = this.k9_1;
|
|
1138
|
+
this.m9_1 = e;
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
while (true);
|
|
1142
|
+
};
|
|
1143
|
+
function $copyToCOROUTINE$10(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1144
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1145
|
+
this.z1r_1 = _this__u8e3s4;
|
|
1146
|
+
this.a1s_1 = channel;
|
|
1147
|
+
this.b1s_1 = limit;
|
|
1148
|
+
}
|
|
1149
|
+
protoOf($copyToCOROUTINE$10).r9 = function () {
|
|
1150
|
+
var suspendResult = this.l9_1;
|
|
1151
|
+
$sm: do
|
|
1152
|
+
try {
|
|
1153
|
+
var tmp = this.j9_1;
|
|
1154
|
+
switch (tmp) {
|
|
1155
|
+
case 0:
|
|
1156
|
+
this.k9_1 = 12;
|
|
1157
|
+
this.c1s_1 = this.b1s_1;
|
|
1158
|
+
this.j9_1 = 1;
|
|
1159
|
+
continue $sm;
|
|
1160
|
+
case 1:
|
|
1161
|
+
this.k9_1 = 8;
|
|
1162
|
+
this.k9_1 = 7;
|
|
1163
|
+
this.j9_1 = 2;
|
|
1164
|
+
continue $sm;
|
|
1165
|
+
case 2:
|
|
1166
|
+
if (!(!this.z1r_1.i1p() && this.c1s_1.g1(new Long(0, 0)) > 0)) {
|
|
1167
|
+
this.j9_1 = 6;
|
|
1168
|
+
continue $sm;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
if (this.z1r_1.b1p().u1j()) {
|
|
1172
|
+
this.j9_1 = 3;
|
|
1173
|
+
suspendResult = this.z1r_1.k1p(VOID, this);
|
|
1174
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1175
|
+
return suspendResult;
|
|
1176
|
+
}
|
|
1177
|
+
continue $sm;
|
|
1178
|
+
} else {
|
|
1179
|
+
this.j9_1 = 4;
|
|
1180
|
+
continue $sm;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
case 3:
|
|
1184
|
+
this.j9_1 = 4;
|
|
1185
|
+
continue $sm;
|
|
1186
|
+
case 4:
|
|
1187
|
+
var tmp_0 = this;
|
|
1188
|
+
var tmp0 = this.c1s_1;
|
|
1189
|
+
var b = get_remaining(this.z1r_1.b1p());
|
|
1190
|
+
tmp_0.e1s_1 = tmp0.g1(b) <= 0 ? tmp0 : b;
|
|
1191
|
+
this.z1r_1.b1p().x1k(this.a1s_1.e1p(), this.e1s_1);
|
|
1192
|
+
this.c1s_1 = this.c1s_1.c3(this.e1s_1);
|
|
1193
|
+
this.j9_1 = 5;
|
|
1194
|
+
suspendResult = this.a1s_1.a1p(this);
|
|
1195
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1196
|
+
return suspendResult;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
continue $sm;
|
|
1200
|
+
case 5:
|
|
1201
|
+
this.j9_1 = 2;
|
|
1202
|
+
continue $sm;
|
|
1203
|
+
case 6:
|
|
1204
|
+
this.d1s_1 = Unit_instance;
|
|
1205
|
+
this.k9_1 = 12;
|
|
1206
|
+
this.j9_1 = 10;
|
|
1207
|
+
continue $sm;
|
|
1208
|
+
case 7:
|
|
1209
|
+
this.k9_1 = 8;
|
|
1210
|
+
var tmp_1 = this.m9_1;
|
|
1211
|
+
if (tmp_1 instanceof Error) {
|
|
1212
|
+
this.f1s_1 = this.m9_1;
|
|
1213
|
+
var tmp_2 = this;
|
|
1214
|
+
this.z1r_1.m1p(this.f1s_1);
|
|
1215
|
+
close_0(this.a1s_1, this.f1s_1);
|
|
1216
|
+
throw this.f1s_1;
|
|
1217
|
+
} else {
|
|
1218
|
+
throw this.m9_1;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
case 8:
|
|
1222
|
+
this.k9_1 = 12;
|
|
1223
|
+
this.g1s_1 = this.m9_1;
|
|
1224
|
+
this.j9_1 = 9;
|
|
1225
|
+
suspendResult = this.a1s_1.a1p(this);
|
|
1226
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1227
|
+
return suspendResult;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
continue $sm;
|
|
1231
|
+
case 9:
|
|
1232
|
+
throw this.g1s_1;
|
|
1233
|
+
case 10:
|
|
1234
|
+
this.k9_1 = 12;
|
|
1235
|
+
this.j9_1 = 11;
|
|
1236
|
+
suspendResult = this.a1s_1.a1p(this);
|
|
1237
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1238
|
+
return suspendResult;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
continue $sm;
|
|
1242
|
+
case 11:
|
|
1243
|
+
return this.b1s_1.c3(this.c1s_1);
|
|
1244
|
+
case 12:
|
|
1245
|
+
throw this.m9_1;
|
|
1246
|
+
}
|
|
1247
|
+
} catch ($p) {
|
|
1248
|
+
var e = $p;
|
|
1249
|
+
if (this.k9_1 === 12) {
|
|
1250
|
+
throw e;
|
|
1251
|
+
} else {
|
|
1252
|
+
this.j9_1 = this.k9_1;
|
|
1253
|
+
this.m9_1 = e;
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
while (true);
|
|
1257
|
+
};
|
|
1258
|
+
function $readBufferCOROUTINE$11(_this__u8e3s4, resultContinuation) {
|
|
1259
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1260
|
+
this.p1s_1 = _this__u8e3s4;
|
|
1261
|
+
}
|
|
1262
|
+
protoOf($readBufferCOROUTINE$11).r9 = function () {
|
|
1263
|
+
var suspendResult = this.l9_1;
|
|
1264
|
+
$sm: do
|
|
1265
|
+
try {
|
|
1266
|
+
var tmp = this.j9_1;
|
|
1267
|
+
switch (tmp) {
|
|
1268
|
+
case 0:
|
|
1269
|
+
this.k9_1 = 4;
|
|
1270
|
+
this.q1s_1 = new Buffer();
|
|
1271
|
+
this.j9_1 = 1;
|
|
1272
|
+
continue $sm;
|
|
1273
|
+
case 1:
|
|
1274
|
+
if (!!this.p1s_1.i1p()) {
|
|
1275
|
+
this.j9_1 = 3;
|
|
1276
|
+
continue $sm;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
this.q1s_1.n1l(this.p1s_1.b1p());
|
|
1280
|
+
this.j9_1 = 2;
|
|
1281
|
+
suspendResult = this.p1s_1.k1p(VOID, this);
|
|
1282
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1283
|
+
return suspendResult;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
continue $sm;
|
|
1287
|
+
case 2:
|
|
1288
|
+
this.j9_1 = 1;
|
|
1289
|
+
continue $sm;
|
|
1290
|
+
case 3:
|
|
1291
|
+
var tmp0_safe_receiver = this.p1s_1.g1p();
|
|
1292
|
+
if (tmp0_safe_receiver == null)
|
|
1293
|
+
null;
|
|
1294
|
+
else {
|
|
1295
|
+
throw tmp0_safe_receiver;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
return this.q1s_1;
|
|
1299
|
+
case 4:
|
|
1300
|
+
throw this.m9_1;
|
|
1301
|
+
}
|
|
1302
|
+
} catch ($p) {
|
|
1303
|
+
var e = $p;
|
|
1304
|
+
if (this.k9_1 === 4) {
|
|
1305
|
+
throw e;
|
|
1306
|
+
} else {
|
|
1307
|
+
this.j9_1 = this.k9_1;
|
|
1308
|
+
this.m9_1 = e;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
while (true);
|
|
1312
|
+
};
|
|
1313
|
+
function $readUTF8LineToCOROUTINE$12(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
|
|
1314
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1315
|
+
this.e1t_1 = _this__u8e3s4;
|
|
1316
|
+
this.f1t_1 = out;
|
|
1317
|
+
this.g1t_1 = max;
|
|
1318
|
+
this.h1t_1 = lineEnding;
|
|
1319
|
+
}
|
|
1320
|
+
protoOf($readUTF8LineToCOROUTINE$12).r9 = function () {
|
|
1321
|
+
var suspendResult = this.l9_1;
|
|
1322
|
+
$sm: do
|
|
1323
|
+
try {
|
|
1324
|
+
var tmp = this.j9_1;
|
|
1325
|
+
switch (tmp) {
|
|
1326
|
+
case 0:
|
|
1327
|
+
this.k9_1 = 21;
|
|
1328
|
+
if (this.e1t_1.b1p().u1j()) {
|
|
1329
|
+
this.j9_1 = 1;
|
|
1330
|
+
suspendResult = this.e1t_1.k1p(VOID, this);
|
|
1331
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1332
|
+
return suspendResult;
|
|
1333
|
+
}
|
|
1334
|
+
continue $sm;
|
|
1335
|
+
} else {
|
|
1336
|
+
this.j9_1 = 2;
|
|
1337
|
+
continue $sm;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
case 1:
|
|
1341
|
+
this.j9_1 = 2;
|
|
1342
|
+
continue $sm;
|
|
1343
|
+
case 2:
|
|
1344
|
+
if (this.e1t_1.i1p())
|
|
1345
|
+
return false;
|
|
1346
|
+
var tmp_0 = this;
|
|
1347
|
+
tmp_0.i1t_1 = new Buffer();
|
|
1348
|
+
this.j9_1 = 3;
|
|
1349
|
+
continue $sm;
|
|
1350
|
+
case 3:
|
|
1351
|
+
this.k1t_1 = this.i1t_1;
|
|
1352
|
+
this.l1t_1 = null;
|
|
1353
|
+
this.j9_1 = 4;
|
|
1354
|
+
continue $sm;
|
|
1355
|
+
case 4:
|
|
1356
|
+
this.j9_1 = 5;
|
|
1357
|
+
continue $sm;
|
|
1358
|
+
case 5:
|
|
1359
|
+
this.j9_1 = 6;
|
|
1360
|
+
continue $sm;
|
|
1361
|
+
case 6:
|
|
1362
|
+
this.k9_1 = 18;
|
|
1363
|
+
this.k9_1 = 17;
|
|
1364
|
+
var tmp_1 = this;
|
|
1365
|
+
tmp_1.n1t_1 = this.k1t_1;
|
|
1366
|
+
this.o1t_1 = this.n1t_1;
|
|
1367
|
+
this.j9_1 = 7;
|
|
1368
|
+
continue $sm;
|
|
1369
|
+
case 7:
|
|
1370
|
+
if (!!this.e1t_1.i1p()) {
|
|
1371
|
+
this.j9_1 = 14;
|
|
1372
|
+
continue $sm;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
this.j9_1 = 8;
|
|
1376
|
+
continue $sm;
|
|
1377
|
+
case 8:
|
|
1378
|
+
if (!!this.e1t_1.b1p().u1j()) {
|
|
1379
|
+
this.j9_1 = 12;
|
|
1380
|
+
continue $sm;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
this.p1t_1 = this.e1t_1.b1p().x1j();
|
|
1384
|
+
if (this.p1t_1 === 13) {
|
|
1385
|
+
if (this.e1t_1.b1p().u1j()) {
|
|
1386
|
+
this.j9_1 = 10;
|
|
1387
|
+
suspendResult = this.e1t_1.k1p(VOID, this);
|
|
1388
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1389
|
+
return suspendResult;
|
|
1390
|
+
}
|
|
1391
|
+
continue $sm;
|
|
1392
|
+
} else {
|
|
1393
|
+
this.j9_1 = 11;
|
|
1394
|
+
continue $sm;
|
|
1395
|
+
}
|
|
1396
|
+
} else {
|
|
1397
|
+
if (this.p1t_1 === 10) {
|
|
1398
|
+
readUTF8LineTo$checkLineEndingAllowed(this.h1t_1, Companion_getInstance_1().s1s_1);
|
|
1399
|
+
this.f1t_1.o(readString(this.o1t_1));
|
|
1400
|
+
this.m1t_1 = true;
|
|
1401
|
+
this.k9_1 = 21;
|
|
1402
|
+
this.j9_1 = 15;
|
|
1403
|
+
continue $sm;
|
|
1404
|
+
} else {
|
|
1405
|
+
this.o1t_1.o1l(this.p1t_1);
|
|
1406
|
+
this.j9_1 = 9;
|
|
1407
|
+
continue $sm;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
case 9:
|
|
1412
|
+
this.j9_1 = 8;
|
|
1413
|
+
continue $sm;
|
|
1414
|
+
case 10:
|
|
1415
|
+
this.j9_1 = 11;
|
|
1416
|
+
continue $sm;
|
|
1417
|
+
case 11:
|
|
1418
|
+
if (this.e1t_1.b1p().t1j().p1k(new Long(0, 0)) === 10) {
|
|
1419
|
+
readUTF8LineTo$checkLineEndingAllowed(this.h1t_1, Companion_getInstance_1().t1s_1);
|
|
1420
|
+
discard_0(this.e1t_1.b1p(), new Long(1, 0));
|
|
1421
|
+
} else {
|
|
1422
|
+
readUTF8LineTo$checkLineEndingAllowed(this.h1t_1, Companion_getInstance_1().r1s_1);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
this.f1t_1.o(readString(this.o1t_1));
|
|
1426
|
+
this.m1t_1 = true;
|
|
1427
|
+
this.k9_1 = 21;
|
|
1428
|
+
this.j9_1 = 15;
|
|
1429
|
+
continue $sm;
|
|
1430
|
+
case 12:
|
|
1431
|
+
if (this.o1t_1.s().g1(toLong(this.g1t_1)) >= 0) {
|
|
1432
|
+
throw new TooLongLineException('Line exceeds limit of ' + this.g1t_1 + ' characters');
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
this.j9_1 = 13;
|
|
1436
|
+
suspendResult = this.e1t_1.k1p(VOID, this);
|
|
1437
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1438
|
+
return suspendResult;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
continue $sm;
|
|
1442
|
+
case 13:
|
|
1443
|
+
this.j9_1 = 7;
|
|
1444
|
+
continue $sm;
|
|
1445
|
+
case 14:
|
|
1446
|
+
var tmp_2 = this;
|
|
1447
|
+
var this_0 = this.o1t_1.s().g1(new Long(0, 0)) > 0;
|
|
1448
|
+
if (this_0) {
|
|
1449
|
+
this.f1t_1.o(readString(this.o1t_1));
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
tmp_2.m1t_1 = this_0;
|
|
1453
|
+
this.k9_1 = 21;
|
|
1454
|
+
this.j9_1 = 15;
|
|
1455
|
+
var tmp_3 = this;
|
|
1456
|
+
continue $sm;
|
|
1457
|
+
case 15:
|
|
1458
|
+
var tmp_4 = this.m1t_1;
|
|
1459
|
+
this.k9_1 = 21;
|
|
1460
|
+
closeFinally(this.k1t_1, this.l1t_1);
|
|
1461
|
+
return tmp_4;
|
|
1462
|
+
case 16:
|
|
1463
|
+
this.k9_1 = 21;
|
|
1464
|
+
var tmp_5 = this;
|
|
1465
|
+
closeFinally(this.k1t_1, this.l1t_1);
|
|
1466
|
+
tmp_5.j1t_1 = Unit_instance;
|
|
1467
|
+
this.j9_1 = 20;
|
|
1468
|
+
continue $sm;
|
|
1469
|
+
case 17:
|
|
1470
|
+
this.k9_1 = 18;
|
|
1471
|
+
var tmp_6 = this.m9_1;
|
|
1472
|
+
if (tmp_6 instanceof Error) {
|
|
1473
|
+
var e = this.m9_1;
|
|
1474
|
+
var tmp_7 = this;
|
|
1475
|
+
this.l1t_1 = e;
|
|
1476
|
+
throw e;
|
|
1477
|
+
} else {
|
|
1478
|
+
throw this.m9_1;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
case 18:
|
|
1482
|
+
this.k9_1 = 21;
|
|
1483
|
+
var t = this.m9_1;
|
|
1484
|
+
closeFinally(this.k1t_1, this.l1t_1);
|
|
1485
|
+
throw t;
|
|
1486
|
+
case 19:
|
|
1487
|
+
this.k9_1 = 21;
|
|
1488
|
+
closeFinally(this.k1t_1, this.l1t_1);
|
|
1489
|
+
if (false) {
|
|
1490
|
+
this.j9_1 = 3;
|
|
1491
|
+
continue $sm;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
this.j9_1 = 20;
|
|
1495
|
+
continue $sm;
|
|
1496
|
+
case 20:
|
|
1497
|
+
return Unit_instance;
|
|
1498
|
+
case 21:
|
|
1499
|
+
throw this.m9_1;
|
|
1500
|
+
}
|
|
1501
|
+
} catch ($p) {
|
|
1502
|
+
var e_0 = $p;
|
|
1503
|
+
if (this.k9_1 === 21) {
|
|
1504
|
+
throw e_0;
|
|
1505
|
+
} else {
|
|
1506
|
+
this.j9_1 = this.k9_1;
|
|
1507
|
+
this.m9_1 = e_0;
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
while (true);
|
|
1511
|
+
};
|
|
1512
|
+
function $skipIfFoundCOROUTINE$13(_this__u8e3s4, byteString, resultContinuation) {
|
|
1513
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1514
|
+
this.y1t_1 = _this__u8e3s4;
|
|
1515
|
+
this.z1t_1 = byteString;
|
|
1516
|
+
}
|
|
1517
|
+
protoOf($skipIfFoundCOROUTINE$13).r9 = function () {
|
|
1518
|
+
var suspendResult = this.l9_1;
|
|
1519
|
+
$sm: do
|
|
1520
|
+
try {
|
|
1521
|
+
var tmp = this.j9_1;
|
|
1522
|
+
switch (tmp) {
|
|
1523
|
+
case 0:
|
|
1524
|
+
this.k9_1 = 4;
|
|
1525
|
+
this.j9_1 = 1;
|
|
1526
|
+
suspendResult = peek(this.y1t_1, this.z1t_1.s(), this);
|
|
1527
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1528
|
+
return suspendResult;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
continue $sm;
|
|
1532
|
+
case 1:
|
|
1533
|
+
this.a1u_1 = suspendResult;
|
|
1534
|
+
if (equals(this.a1u_1, this.z1t_1)) {
|
|
1535
|
+
this.j9_1 = 3;
|
|
1536
|
+
suspendResult = discard(this.y1t_1, toLong(this.z1t_1.s()), this);
|
|
1537
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1538
|
+
return suspendResult;
|
|
1539
|
+
}
|
|
1540
|
+
continue $sm;
|
|
1541
|
+
} else {
|
|
1542
|
+
this.j9_1 = 2;
|
|
1543
|
+
continue $sm;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
case 2:
|
|
1547
|
+
return false;
|
|
1548
|
+
case 3:
|
|
1549
|
+
return true;
|
|
1550
|
+
case 4:
|
|
1551
|
+
throw this.m9_1;
|
|
1552
|
+
}
|
|
1553
|
+
} catch ($p) {
|
|
1554
|
+
var e = $p;
|
|
1555
|
+
if (this.k9_1 === 4) {
|
|
1556
|
+
throw e;
|
|
1557
|
+
} else {
|
|
1558
|
+
this.j9_1 = this.k9_1;
|
|
1559
|
+
this.m9_1 = e;
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
while (true);
|
|
1563
|
+
};
|
|
1564
|
+
function $readUntilCOROUTINE$14(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, resultContinuation) {
|
|
1565
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1566
|
+
this.j1u_1 = _this__u8e3s4;
|
|
1567
|
+
this.k1u_1 = matchString;
|
|
1568
|
+
this.l1u_1 = writeChannel;
|
|
1569
|
+
this.m1u_1 = limit;
|
|
1570
|
+
this.n1u_1 = ignoreMissing;
|
|
1571
|
+
}
|
|
1572
|
+
protoOf($readUntilCOROUTINE$14).r9 = function () {
|
|
1573
|
+
var suspendResult = this.l9_1;
|
|
1574
|
+
$sm: do
|
|
1575
|
+
try {
|
|
1576
|
+
var tmp = this.j9_1;
|
|
1577
|
+
switch (tmp) {
|
|
1578
|
+
case 0:
|
|
1579
|
+
this.k9_1 = 11;
|
|
1580
|
+
if (!(this.k1u_1.s() > 0)) {
|
|
1581
|
+
var message = 'Empty match string not permitted for readUntil';
|
|
1582
|
+
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
this.o1u_1 = buildPartialMatchTable(this.k1u_1);
|
|
1586
|
+
this.p1u_1 = {_v: 0};
|
|
1587
|
+
this.q1u_1 = new Int8Array(this.k1u_1.s());
|
|
1588
|
+
this.r1u_1 = {_v: new Long(0, 0)};
|
|
1589
|
+
this.j9_1 = 1;
|
|
1590
|
+
continue $sm;
|
|
1591
|
+
case 1:
|
|
1592
|
+
if (!!this.j1u_1.i1p()) {
|
|
1593
|
+
this.j9_1 = 7;
|
|
1594
|
+
continue $sm;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
this.j9_1 = 2;
|
|
1598
|
+
suspendResult = readByte(this.j1u_1, this);
|
|
1599
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1600
|
+
return suspendResult;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
continue $sm;
|
|
1604
|
+
case 2:
|
|
1605
|
+
this.s1u_1 = suspendResult;
|
|
1606
|
+
if (this.p1u_1._v > 0 && !(this.s1u_1 === this.k1u_1.u(this.p1u_1._v))) {
|
|
1607
|
+
this.j9_1 = 3;
|
|
1608
|
+
suspendResult = readUntil$appendPartialMatch(this.l1u_1, this.q1u_1, this.p1u_1, this.r1u_1, this);
|
|
1609
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1610
|
+
return suspendResult;
|
|
1611
|
+
}
|
|
1612
|
+
continue $sm;
|
|
1613
|
+
} else {
|
|
1614
|
+
this.j9_1 = 4;
|
|
1615
|
+
continue $sm;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
case 3:
|
|
1619
|
+
readUntil$resetPartialMatch(this.p1u_1, this.k1u_1, this.o1u_1, this.s1u_1);
|
|
1620
|
+
this.j9_1 = 4;
|
|
1621
|
+
continue $sm;
|
|
1622
|
+
case 4:
|
|
1623
|
+
if (this.s1u_1 === this.k1u_1.u(this.p1u_1._v)) {
|
|
1624
|
+
var tmp_0 = this;
|
|
1625
|
+
this.q1u_1[this.p1u_1._v] = this.s1u_1;
|
|
1626
|
+
this.p1u_1._v = this.p1u_1._v + 1 | 0;
|
|
1627
|
+
if (this.p1u_1._v === this.k1u_1.s()) {
|
|
1628
|
+
return this.r1u_1._v;
|
|
1629
|
+
}
|
|
1630
|
+
tmp_0.t1u_1 = Unit_instance;
|
|
1631
|
+
this.j9_1 = 6;
|
|
1632
|
+
continue $sm;
|
|
1633
|
+
} else {
|
|
1634
|
+
this.j9_1 = 5;
|
|
1635
|
+
suspendResult = writeByte(this.l1u_1, this.s1u_1, this);
|
|
1636
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1637
|
+
return suspendResult;
|
|
1638
|
+
}
|
|
1639
|
+
continue $sm;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
case 5:
|
|
1643
|
+
var tmp_1 = this;
|
|
1644
|
+
var _unary__edvuaz = this.r1u_1._v;
|
|
1645
|
+
this.r1u_1._v = _unary__edvuaz.g3();
|
|
1646
|
+
tmp_1.t1u_1 = _unary__edvuaz;
|
|
1647
|
+
this.j9_1 = 6;
|
|
1648
|
+
continue $sm;
|
|
1649
|
+
case 6:
|
|
1650
|
+
if (this.r1u_1._v.g1(this.m1u_1) > 0) {
|
|
1651
|
+
throw IOException_init_$Create$('Limit of ' + this.m1u_1.toString() + ' bytes exceeded while scanning for "' + decodeToString_0(this.k1u_1) + '"');
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
this.j9_1 = 1;
|
|
1655
|
+
continue $sm;
|
|
1656
|
+
case 7:
|
|
1657
|
+
if (this.n1u_1) {
|
|
1658
|
+
this.j9_1 = 9;
|
|
1659
|
+
suspendResult = readUntil$appendPartialMatch(this.l1u_1, this.q1u_1, this.p1u_1, this.r1u_1, this);
|
|
1660
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1661
|
+
return suspendResult;
|
|
1662
|
+
}
|
|
1663
|
+
continue $sm;
|
|
1664
|
+
} else {
|
|
1665
|
+
this.j9_1 = 8;
|
|
1666
|
+
continue $sm;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
case 8:
|
|
1670
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.k1u_1) + '" but encountered end of input');
|
|
1671
|
+
case 9:
|
|
1672
|
+
this.j9_1 = 10;
|
|
1673
|
+
suspendResult = this.l1u_1.a1p(this);
|
|
1674
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1675
|
+
return suspendResult;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
continue $sm;
|
|
1679
|
+
case 10:
|
|
1680
|
+
return this.r1u_1._v;
|
|
1681
|
+
case 11:
|
|
1682
|
+
throw this.m9_1;
|
|
1683
|
+
}
|
|
1684
|
+
} catch ($p) {
|
|
1685
|
+
var e = $p;
|
|
1686
|
+
if (this.k9_1 === 11) {
|
|
1687
|
+
throw e;
|
|
1688
|
+
} else {
|
|
1689
|
+
this.j9_1 = this.k9_1;
|
|
1690
|
+
this.m9_1 = e;
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
while (true);
|
|
1694
|
+
};
|
|
1695
|
+
function $peekCOROUTINE$15(_this__u8e3s4, count, resultContinuation) {
|
|
1696
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1697
|
+
this.c1v_1 = _this__u8e3s4;
|
|
1698
|
+
this.d1v_1 = count;
|
|
1699
|
+
}
|
|
1700
|
+
protoOf($peekCOROUTINE$15).r9 = function () {
|
|
1701
|
+
var suspendResult = this.l9_1;
|
|
1702
|
+
$sm: do
|
|
1703
|
+
try {
|
|
1704
|
+
var tmp = this.j9_1;
|
|
1705
|
+
switch (tmp) {
|
|
1706
|
+
case 0:
|
|
1707
|
+
this.k9_1 = 3;
|
|
1708
|
+
if (this.c1v_1.i1p())
|
|
1709
|
+
return null;
|
|
1710
|
+
this.j9_1 = 1;
|
|
1711
|
+
suspendResult = this.c1v_1.j1p(this.d1v_1, this);
|
|
1712
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1713
|
+
return suspendResult;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
continue $sm;
|
|
1717
|
+
case 1:
|
|
1718
|
+
var ARGUMENT = suspendResult;
|
|
1719
|
+
if (!ARGUMENT) {
|
|
1720
|
+
return null;
|
|
1721
|
+
} else {
|
|
1722
|
+
this.j9_1 = 2;
|
|
1723
|
+
continue $sm;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
case 2:
|
|
1727
|
+
return readByteString(this.c1v_1.b1p().z1k(), this.d1v_1);
|
|
1728
|
+
case 3:
|
|
1729
|
+
throw this.m9_1;
|
|
1730
|
+
}
|
|
1731
|
+
} catch ($p) {
|
|
1732
|
+
var e = $p;
|
|
1733
|
+
if (this.k9_1 === 3) {
|
|
1734
|
+
throw e;
|
|
1735
|
+
} else {
|
|
1736
|
+
this.j9_1 = this.k9_1;
|
|
1737
|
+
this.m9_1 = e;
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
while (true);
|
|
1741
|
+
};
|
|
1742
|
+
function $readByteCOROUTINE$16(_this__u8e3s4, resultContinuation) {
|
|
1743
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1744
|
+
this.m1v_1 = _this__u8e3s4;
|
|
1745
|
+
}
|
|
1746
|
+
protoOf($readByteCOROUTINE$16).r9 = function () {
|
|
1747
|
+
var suspendResult = this.l9_1;
|
|
1748
|
+
$sm: do
|
|
1749
|
+
try {
|
|
1750
|
+
var tmp = this.j9_1;
|
|
1751
|
+
switch (tmp) {
|
|
1752
|
+
case 0:
|
|
1753
|
+
this.k9_1 = 3;
|
|
1754
|
+
if (this.m1v_1.b1p().u1j()) {
|
|
1755
|
+
this.j9_1 = 1;
|
|
1756
|
+
suspendResult = this.m1v_1.k1p(VOID, this);
|
|
1757
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1758
|
+
return suspendResult;
|
|
1759
|
+
}
|
|
1760
|
+
continue $sm;
|
|
1761
|
+
} else {
|
|
1762
|
+
this.j9_1 = 2;
|
|
1763
|
+
continue $sm;
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
case 1:
|
|
1767
|
+
this.j9_1 = 2;
|
|
1768
|
+
continue $sm;
|
|
1769
|
+
case 2:
|
|
1770
|
+
if (this.m1v_1.b1p().u1j()) {
|
|
1771
|
+
throw EOFException_init_$Create$('Not enough data available');
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
return this.m1v_1.b1p().x1j();
|
|
1775
|
+
case 3:
|
|
1776
|
+
throw this.m9_1;
|
|
1777
|
+
}
|
|
1778
|
+
} catch ($p) {
|
|
1779
|
+
var e = $p;
|
|
1780
|
+
if (this.k9_1 === 3) {
|
|
1781
|
+
throw e;
|
|
1782
|
+
} else {
|
|
1783
|
+
this.j9_1 = this.k9_1;
|
|
1784
|
+
this.m9_1 = e;
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
while (true);
|
|
1788
|
+
};
|
|
1789
|
+
function $readUntil$appendPartialMatchCOROUTINE$17($writeChannel, matchBuffer, matchIndex, rc, resultContinuation) {
|
|
1790
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1791
|
+
this.v1v_1 = $writeChannel;
|
|
1792
|
+
this.w1v_1 = matchBuffer;
|
|
1793
|
+
this.x1v_1 = matchIndex;
|
|
1794
|
+
this.y1v_1 = rc;
|
|
1795
|
+
}
|
|
1796
|
+
protoOf($readUntil$appendPartialMatchCOROUTINE$17).r9 = function () {
|
|
1797
|
+
var suspendResult = this.l9_1;
|
|
1798
|
+
$sm: do
|
|
1799
|
+
try {
|
|
1800
|
+
var tmp = this.j9_1;
|
|
1801
|
+
switch (tmp) {
|
|
1802
|
+
case 0:
|
|
1803
|
+
this.k9_1 = 2;
|
|
1804
|
+
this.j9_1 = 1;
|
|
1805
|
+
suspendResult = writeFully(this.v1v_1, this.w1v_1, 0, this.x1v_1._v, this);
|
|
1806
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1807
|
+
return suspendResult;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
continue $sm;
|
|
1811
|
+
case 1:
|
|
1812
|
+
var tmp0 = this.y1v_1._v;
|
|
1813
|
+
var other = this.x1v_1._v;
|
|
1814
|
+
this.y1v_1._v = tmp0.b3(toLong(other));
|
|
1815
|
+
this.x1v_1._v = 0;
|
|
1816
|
+
return Unit_instance;
|
|
1817
|
+
case 2:
|
|
1818
|
+
throw this.m9_1;
|
|
1819
|
+
}
|
|
1820
|
+
} catch ($p) {
|
|
1821
|
+
var e = $p;
|
|
1822
|
+
if (this.k9_1 === 2) {
|
|
1823
|
+
throw e;
|
|
1824
|
+
} else {
|
|
1825
|
+
this.j9_1 = this.k9_1;
|
|
1826
|
+
this.m9_1 = e;
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
while (true);
|
|
1830
|
+
};
|
|
1831
|
+
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
1832
|
+
var tmp = new $flushIfNeededCOROUTINE$18(_this__u8e3s4, $completion);
|
|
1833
|
+
tmp.l9_1 = Unit_instance;
|
|
1834
|
+
tmp.m9_1 = null;
|
|
1835
|
+
return tmp.r9();
|
|
1836
|
+
}
|
|
1837
|
+
function $flushIfNeededCOROUTINE$18(_this__u8e3s4, resultContinuation) {
|
|
1838
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1839
|
+
this.h1w_1 = _this__u8e3s4;
|
|
1840
|
+
}
|
|
1841
|
+
protoOf($flushIfNeededCOROUTINE$18).r9 = function () {
|
|
1842
|
+
var suspendResult = this.l9_1;
|
|
1843
|
+
$sm: do
|
|
1844
|
+
try {
|
|
1845
|
+
var tmp = this.j9_1;
|
|
1846
|
+
switch (tmp) {
|
|
1847
|
+
case 0:
|
|
1848
|
+
this.k9_1 = 3;
|
|
1849
|
+
rethrowCloseCauseIfNeeded_0(this.h1w_1);
|
|
1850
|
+
var tmp_0;
|
|
1851
|
+
var tmp_1 = this.h1w_1;
|
|
1852
|
+
var tmp0_safe_receiver = tmp_1 instanceof ByteChannel ? tmp_1 : null;
|
|
1853
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1n_1) === true) {
|
|
1854
|
+
tmp_0 = true;
|
|
1855
|
+
} else {
|
|
1856
|
+
tmp_0 = get_size(this.h1w_1.e1p()) >= 1048576;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
if (tmp_0) {
|
|
1860
|
+
this.j9_1 = 1;
|
|
1861
|
+
suspendResult = this.h1w_1.a1p(this);
|
|
1862
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1863
|
+
return suspendResult;
|
|
1864
|
+
}
|
|
1865
|
+
continue $sm;
|
|
1866
|
+
} else {
|
|
1867
|
+
this.j9_1 = 2;
|
|
1868
|
+
continue $sm;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
case 1:
|
|
1872
|
+
this.j9_1 = 2;
|
|
1873
|
+
continue $sm;
|
|
1874
|
+
case 2:
|
|
1875
|
+
return Unit_instance;
|
|
1876
|
+
case 3:
|
|
1877
|
+
throw this.m9_1;
|
|
1878
|
+
}
|
|
1879
|
+
} catch ($p) {
|
|
1880
|
+
var e = $p;
|
|
1881
|
+
if (this.k9_1 === 3) {
|
|
1882
|
+
throw e;
|
|
1883
|
+
} else {
|
|
1884
|
+
this.j9_1 = this.k9_1;
|
|
1885
|
+
this.m9_1 = e;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
while (true);
|
|
1889
|
+
};
|
|
1890
|
+
function get_NO_CALLBACK() {
|
|
1891
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1892
|
+
return NO_CALLBACK;
|
|
1893
|
+
}
|
|
1894
|
+
var NO_CALLBACK;
|
|
1895
|
+
function WriterJob(channel, job) {
|
|
1896
|
+
this.i1w_1 = channel;
|
|
1897
|
+
this.j1w_1 = job;
|
|
1898
|
+
}
|
|
1899
|
+
protoOf(WriterJob).hv = function () {
|
|
1900
|
+
return this.j1w_1;
|
|
1901
|
+
};
|
|
1902
|
+
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
1903
|
+
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
1904
|
+
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
1905
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1906
|
+
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
1907
|
+
}
|
|
1908
|
+
function WriterScope(channel, coroutineContext) {
|
|
1909
|
+
this.k1w_1 = channel;
|
|
1910
|
+
this.l1w_1 = coroutineContext;
|
|
1911
|
+
}
|
|
1912
|
+
protoOf(WriterScope).hp = function () {
|
|
1913
|
+
return this.l1w_1;
|
|
1914
|
+
};
|
|
1915
|
+
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
1916
|
+
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
1917
|
+
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
1918
|
+
_this__u8e3s4.e1p().e1l(value, startIndex, endIndex);
|
|
1919
|
+
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
1920
|
+
}
|
|
1921
|
+
function writePacket(_this__u8e3s4, source, $completion) {
|
|
1922
|
+
var tmp = new $writePacketCOROUTINE$19(_this__u8e3s4, source, $completion);
|
|
1923
|
+
tmp.l9_1 = Unit_instance;
|
|
1924
|
+
tmp.m9_1 = null;
|
|
1925
|
+
return tmp.r9();
|
|
1926
|
+
}
|
|
1927
|
+
function get_isCompleted(_this__u8e3s4) {
|
|
1928
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1929
|
+
return _this__u8e3s4.hv().dq();
|
|
1930
|
+
}
|
|
1931
|
+
function close_0(_this__u8e3s4, cause) {
|
|
1932
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1933
|
+
if (cause == null) {
|
|
1934
|
+
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
1935
|
+
} else {
|
|
1936
|
+
_this__u8e3s4.m1p(cause);
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
1940
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1941
|
+
var tmp = _this__u8e3s4.hv();
|
|
1942
|
+
tmp.kq(invokeOnCompletion$lambda(block));
|
|
1943
|
+
}
|
|
1944
|
+
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
1945
|
+
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
1946
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1947
|
+
// Inline function 'kotlin.apply' call
|
|
1948
|
+
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
1949
|
+
this_0.kq(writer$lambda(channel));
|
|
1950
|
+
var job = this_0;
|
|
1951
|
+
return new WriterJob(channel, job);
|
|
1952
|
+
}
|
|
1953
|
+
function fireAndForget(_this__u8e3s4) {
|
|
1954
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1955
|
+
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
1956
|
+
}
|
|
1957
|
+
function writeByte(_this__u8e3s4, value, $completion) {
|
|
1958
|
+
_this__u8e3s4.e1p().o1l(value);
|
|
1959
|
+
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
1960
|
+
}
|
|
1961
|
+
function NO_CALLBACK$1() {
|
|
1962
|
+
this.w1w_1 = EmptyCoroutineContext_getInstance();
|
|
1963
|
+
}
|
|
1964
|
+
protoOf(NO_CALLBACK$1).p9 = function () {
|
|
1965
|
+
return this.w1w_1;
|
|
1966
|
+
};
|
|
1967
|
+
protoOf(NO_CALLBACK$1).q9 = function (result) {
|
|
1968
|
+
return Unit_instance;
|
|
1969
|
+
};
|
|
1970
|
+
protoOf(NO_CALLBACK$1).u9 = function (result) {
|
|
1971
|
+
return this.q9(result);
|
|
1972
|
+
};
|
|
1973
|
+
function ByteWriteChannel$flushAndClose$ref($boundThis) {
|
|
1974
|
+
this.x1w_1 = $boundThis;
|
|
1975
|
+
}
|
|
1976
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).y1w = function ($completion) {
|
|
1977
|
+
return this.x1w_1.l1p($completion);
|
|
1978
|
+
};
|
|
1979
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).kb = function ($completion) {
|
|
1980
|
+
return this.y1w($completion);
|
|
1981
|
+
};
|
|
1982
|
+
function ByteWriteChannel$flushAndClose$ref_0($boundThis) {
|
|
1983
|
+
var i = new ByteWriteChannel$flushAndClose$ref($boundThis);
|
|
1984
|
+
var l = function ($completion) {
|
|
1985
|
+
return i.y1w($completion);
|
|
1986
|
+
};
|
|
1987
|
+
l.callableName = 'flushAndClose';
|
|
1988
|
+
l.$arity = 0;
|
|
1989
|
+
return l;
|
|
1990
|
+
}
|
|
1991
|
+
function invokeOnCompletion$lambda($block) {
|
|
1992
|
+
return function (it) {
|
|
1993
|
+
$block();
|
|
1994
|
+
return Unit_instance;
|
|
1995
|
+
};
|
|
1996
|
+
}
|
|
1997
|
+
function writer$slambda($block, $channel, resultContinuation) {
|
|
1998
|
+
this.h1x_1 = $block;
|
|
1999
|
+
this.i1x_1 = $channel;
|
|
2000
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2001
|
+
}
|
|
2002
|
+
protoOf(writer$slambda).c1y = function ($this$launch, $completion) {
|
|
2003
|
+
var tmp = this.d1y($this$launch, $completion);
|
|
2004
|
+
tmp.l9_1 = Unit_instance;
|
|
2005
|
+
tmp.m9_1 = null;
|
|
2006
|
+
return tmp.r9();
|
|
2007
|
+
};
|
|
2008
|
+
protoOf(writer$slambda).fa = function (p1, $completion) {
|
|
2009
|
+
return this.c1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2010
|
+
};
|
|
2011
|
+
protoOf(writer$slambda).r9 = function () {
|
|
2012
|
+
var suspendResult = this.l9_1;
|
|
2013
|
+
$sm: do
|
|
2014
|
+
try {
|
|
2015
|
+
var tmp = this.j9_1;
|
|
2016
|
+
switch (tmp) {
|
|
2017
|
+
case 0:
|
|
2018
|
+
this.k9_1 = 14;
|
|
2019
|
+
this.k1x_1 = Job(get_job(this.j1x_1.hp()));
|
|
2020
|
+
this.j9_1 = 1;
|
|
2021
|
+
continue $sm;
|
|
2022
|
+
case 1:
|
|
2023
|
+
this.k9_1 = 4;
|
|
2024
|
+
this.k9_1 = 3;
|
|
2025
|
+
this.j9_1 = 2;
|
|
2026
|
+
suspendResult = this.h1x_1(new WriterScope(this.i1x_1, this.j1x_1.hp().hi(this.k1x_1)), this);
|
|
2027
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2028
|
+
return suspendResult;
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
continue $sm;
|
|
2032
|
+
case 2:
|
|
2033
|
+
this.k1x_1.dw();
|
|
2034
|
+
var tmp_0 = this;
|
|
2035
|
+
var tmp_1;
|
|
2036
|
+
if (get_job(this.j1x_1.hp()).eq()) {
|
|
2037
|
+
this.i1x_1.m1p(get_job(this.j1x_1.hp()).hq());
|
|
2038
|
+
tmp_1 = Unit_instance;
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
tmp_0.l1x_1 = tmp_1;
|
|
2042
|
+
this.k9_1 = 14;
|
|
2043
|
+
this.j9_1 = 9;
|
|
2044
|
+
continue $sm;
|
|
2045
|
+
case 3:
|
|
2046
|
+
this.k9_1 = 4;
|
|
2047
|
+
var tmp_2 = this.m9_1;
|
|
2048
|
+
if (tmp_2 instanceof Error) {
|
|
2049
|
+
this.m1x_1 = this.m9_1;
|
|
2050
|
+
var tmp_3 = this;
|
|
2051
|
+
cancel(this.k1x_1, 'Exception thrown while writing to channel', this.m1x_1);
|
|
2052
|
+
this.i1x_1.m1p(this.m1x_1);
|
|
2053
|
+
tmp_3.l1x_1 = Unit_instance;
|
|
2054
|
+
this.k9_1 = 14;
|
|
2055
|
+
this.j9_1 = 9;
|
|
2056
|
+
continue $sm;
|
|
2057
|
+
} else {
|
|
2058
|
+
throw this.m9_1;
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
case 4:
|
|
2062
|
+
this.k9_1 = 14;
|
|
2063
|
+
this.n1x_1 = this.m9_1;
|
|
2064
|
+
this.j9_1 = 5;
|
|
2065
|
+
suspendResult = this.k1x_1.ew(this);
|
|
2066
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2067
|
+
return suspendResult;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
continue $sm;
|
|
2071
|
+
case 5:
|
|
2072
|
+
var tmp_4 = this;
|
|
2073
|
+
tmp_4.o1x_1 = this.j1x_1;
|
|
2074
|
+
this.p1x_1 = this.o1x_1;
|
|
2075
|
+
this.k9_1 = 7;
|
|
2076
|
+
var tmp_5 = this;
|
|
2077
|
+
tmp_5.r1x_1 = Companion_instance;
|
|
2078
|
+
var tmp_6 = this;
|
|
2079
|
+
tmp_6.s1x_1 = this.p1x_1;
|
|
2080
|
+
this.t1x_1 = this.s1x_1;
|
|
2081
|
+
this.j9_1 = 6;
|
|
2082
|
+
suspendResult = this.i1x_1.l1p(this);
|
|
2083
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2084
|
+
return suspendResult;
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
continue $sm;
|
|
2088
|
+
case 6:
|
|
2089
|
+
this.u1x_1 = Unit_instance;
|
|
2090
|
+
var tmp_7 = this;
|
|
2091
|
+
this.r1x_1;
|
|
2092
|
+
var value = this.u1x_1;
|
|
2093
|
+
tmp_7.q1x_1 = _Result___init__impl__xyqfz8(value);
|
|
2094
|
+
this.k9_1 = 14;
|
|
2095
|
+
this.j9_1 = 8;
|
|
2096
|
+
continue $sm;
|
|
2097
|
+
case 7:
|
|
2098
|
+
this.k9_1 = 14;
|
|
2099
|
+
var tmp_8 = this.m9_1;
|
|
2100
|
+
if (tmp_8 instanceof Error) {
|
|
2101
|
+
this.v1x_1 = this.m9_1;
|
|
2102
|
+
var tmp_9 = this;
|
|
2103
|
+
var exception = this.v1x_1;
|
|
2104
|
+
tmp_9.q1x_1 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
2105
|
+
this.j9_1 = 8;
|
|
2106
|
+
continue $sm;
|
|
2107
|
+
} else {
|
|
2108
|
+
throw this.m9_1;
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
case 8:
|
|
2112
|
+
this.k9_1 = 14;
|
|
2113
|
+
throw this.n1x_1;
|
|
2114
|
+
case 9:
|
|
2115
|
+
this.k9_1 = 14;
|
|
2116
|
+
this.j9_1 = 10;
|
|
2117
|
+
suspendResult = this.k1x_1.ew(this);
|
|
2118
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2119
|
+
return suspendResult;
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
continue $sm;
|
|
2123
|
+
case 10:
|
|
2124
|
+
var tmp_10 = this;
|
|
2125
|
+
tmp_10.w1x_1 = this.j1x_1;
|
|
2126
|
+
this.x1x_1 = this.w1x_1;
|
|
2127
|
+
this.k9_1 = 12;
|
|
2128
|
+
var tmp_11 = this;
|
|
2129
|
+
tmp_11.z1x_1 = Companion_instance;
|
|
2130
|
+
var tmp_12 = this;
|
|
2131
|
+
tmp_12.a1y_1 = this.x1x_1;
|
|
2132
|
+
this.b1y_1 = this.a1y_1;
|
|
2133
|
+
this.j9_1 = 11;
|
|
2134
|
+
suspendResult = this.i1x_1.l1p(this);
|
|
2135
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2136
|
+
return suspendResult;
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
continue $sm;
|
|
2140
|
+
case 11:
|
|
2141
|
+
var tmp_13 = this;
|
|
2142
|
+
this.z1x_1;
|
|
2143
|
+
tmp_13.y1x_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2144
|
+
this.k9_1 = 14;
|
|
2145
|
+
this.j9_1 = 13;
|
|
2146
|
+
continue $sm;
|
|
2147
|
+
case 12:
|
|
2148
|
+
this.k9_1 = 14;
|
|
2149
|
+
var tmp_14 = this.m9_1;
|
|
2150
|
+
if (tmp_14 instanceof Error) {
|
|
2151
|
+
var e = this.m9_1;
|
|
2152
|
+
var tmp_15 = this;
|
|
2153
|
+
tmp_15.y1x_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2154
|
+
this.j9_1 = 13;
|
|
2155
|
+
continue $sm;
|
|
2156
|
+
} else {
|
|
2157
|
+
throw this.m9_1;
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
case 13:
|
|
2161
|
+
this.k9_1 = 14;
|
|
2162
|
+
return Unit_instance;
|
|
2163
|
+
case 14:
|
|
2164
|
+
throw this.m9_1;
|
|
2165
|
+
}
|
|
2166
|
+
} catch ($p) {
|
|
2167
|
+
var e_0 = $p;
|
|
2168
|
+
if (this.k9_1 === 14) {
|
|
2169
|
+
throw e_0;
|
|
2170
|
+
} else {
|
|
2171
|
+
this.j9_1 = this.k9_1;
|
|
2172
|
+
this.m9_1 = e_0;
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
while (true);
|
|
2176
|
+
};
|
|
2177
|
+
protoOf(writer$slambda).d1y = function ($this$launch, completion) {
|
|
2178
|
+
var i = new writer$slambda(this.h1x_1, this.i1x_1, completion);
|
|
2179
|
+
i.j1x_1 = $this$launch;
|
|
2180
|
+
return i;
|
|
2181
|
+
};
|
|
2182
|
+
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2183
|
+
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2184
|
+
var l = function ($this$launch, $completion) {
|
|
2185
|
+
return i.c1y($this$launch, $completion);
|
|
2186
|
+
};
|
|
2187
|
+
l.$arity = 1;
|
|
2188
|
+
return l;
|
|
2189
|
+
}
|
|
2190
|
+
function writer$lambda($channel) {
|
|
2191
|
+
return function (it) {
|
|
2192
|
+
var tmp;
|
|
2193
|
+
if (!(it == null) && !$channel.f1p()) {
|
|
2194
|
+
$channel.m1p(it);
|
|
2195
|
+
tmp = Unit_instance;
|
|
2196
|
+
}
|
|
2197
|
+
return Unit_instance;
|
|
2198
|
+
};
|
|
2199
|
+
}
|
|
2200
|
+
function $writePacketCOROUTINE$19(_this__u8e3s4, source, resultContinuation) {
|
|
2201
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2202
|
+
this.u1w_1 = _this__u8e3s4;
|
|
2203
|
+
this.v1w_1 = source;
|
|
2204
|
+
}
|
|
2205
|
+
protoOf($writePacketCOROUTINE$19).r9 = function () {
|
|
2206
|
+
var suspendResult = this.l9_1;
|
|
2207
|
+
$sm: do
|
|
2208
|
+
try {
|
|
2209
|
+
var tmp = this.j9_1;
|
|
2210
|
+
switch (tmp) {
|
|
2211
|
+
case 0:
|
|
2212
|
+
this.k9_1 = 4;
|
|
2213
|
+
this.j9_1 = 1;
|
|
2214
|
+
continue $sm;
|
|
2215
|
+
case 1:
|
|
2216
|
+
if (!!this.v1w_1.u1j()) {
|
|
2217
|
+
this.j9_1 = 3;
|
|
2218
|
+
continue $sm;
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
this.u1w_1.e1p().i1l(this.v1w_1, get_remaining(this.v1w_1));
|
|
2222
|
+
this.j9_1 = 2;
|
|
2223
|
+
suspendResult = flushIfNeeded(this.u1w_1, this);
|
|
2224
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2225
|
+
return suspendResult;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
continue $sm;
|
|
2229
|
+
case 2:
|
|
2230
|
+
this.j9_1 = 1;
|
|
2231
|
+
continue $sm;
|
|
2232
|
+
case 3:
|
|
2233
|
+
return Unit_instance;
|
|
2234
|
+
case 4:
|
|
2235
|
+
throw this.m9_1;
|
|
2236
|
+
}
|
|
2237
|
+
} catch ($p) {
|
|
2238
|
+
var e = $p;
|
|
2239
|
+
if (this.k9_1 === 4) {
|
|
2240
|
+
throw e;
|
|
2241
|
+
} else {
|
|
2242
|
+
this.j9_1 = this.k9_1;
|
|
2243
|
+
this.m9_1 = e;
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
while (true);
|
|
2247
|
+
};
|
|
2248
|
+
var properties_initialized_ByteWriteChannelOperations_kt_acrf6u;
|
|
2249
|
+
function _init_properties_ByteWriteChannelOperations_kt__i7slrs() {
|
|
2250
|
+
if (!properties_initialized_ByteWriteChannelOperations_kt_acrf6u) {
|
|
2251
|
+
properties_initialized_ByteWriteChannelOperations_kt_acrf6u = true;
|
|
2252
|
+
NO_CALLBACK = new NO_CALLBACK$1();
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
function get_CLOSED() {
|
|
2256
|
+
_init_properties_CloseToken_kt__9ucr41();
|
|
2257
|
+
return CLOSED;
|
|
2258
|
+
}
|
|
2259
|
+
var CLOSED;
|
|
2260
|
+
function ClosedByteChannelException$_init_$ref_yjp351() {
|
|
2261
|
+
var l = function (p0) {
|
|
2262
|
+
return new ClosedByteChannelException(p0);
|
|
2263
|
+
};
|
|
2264
|
+
l.callableName = '<init>';
|
|
2265
|
+
return l;
|
|
2266
|
+
}
|
|
2267
|
+
function CloseToken(origin) {
|
|
2268
|
+
this.c1p_1 = origin;
|
|
2269
|
+
}
|
|
2270
|
+
protoOf(CloseToken).e1y = function (wrap) {
|
|
2271
|
+
var tmp0_subject = this.c1p_1;
|
|
2272
|
+
var tmp;
|
|
2273
|
+
if (tmp0_subject == null) {
|
|
2274
|
+
tmp = null;
|
|
2275
|
+
} else {
|
|
2276
|
+
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, CopyableThrowable) : false) {
|
|
2277
|
+
tmp = this.c1p_1.nw();
|
|
2278
|
+
} else {
|
|
2279
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
2280
|
+
tmp = CancellationException_init_$Create$(this.c1p_1.message, this.c1p_1);
|
|
2281
|
+
} else {
|
|
2282
|
+
tmp = wrap(this.c1p_1);
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
return tmp;
|
|
2287
|
+
};
|
|
2288
|
+
protoOf(CloseToken).h1p = function (wrap, $super) {
|
|
2289
|
+
var tmp;
|
|
2290
|
+
if (wrap === VOID) {
|
|
2291
|
+
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
2292
|
+
} else {
|
|
2293
|
+
tmp = wrap;
|
|
2294
|
+
}
|
|
2295
|
+
wrap = tmp;
|
|
2296
|
+
return $super === VOID ? this.e1y(wrap) : $super.e1y.call(this, wrap);
|
|
2297
|
+
};
|
|
2298
|
+
protoOf(CloseToken).d1p = function (wrap) {
|
|
2299
|
+
var tmp0_safe_receiver = this.e1y(wrap);
|
|
2300
|
+
var tmp;
|
|
2301
|
+
if (tmp0_safe_receiver == null) {
|
|
2302
|
+
tmp = null;
|
|
2303
|
+
} else {
|
|
2304
|
+
// Inline function 'kotlin.let' call
|
|
2305
|
+
throw tmp0_safe_receiver;
|
|
2306
|
+
}
|
|
2307
|
+
return tmp;
|
|
2308
|
+
};
|
|
2309
|
+
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
2310
|
+
function _init_properties_CloseToken_kt__9ucr41() {
|
|
2311
|
+
if (!properties_initialized_CloseToken_kt_lgg8zn) {
|
|
2312
|
+
properties_initialized_CloseToken_kt_lgg8zn = true;
|
|
2313
|
+
CLOSED = new CloseToken(null);
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
function updateConsumed($this) {
|
|
2317
|
+
$this.i1y_1 = $this.i1y_1.b3($this.h1y_1.c3($this.g1y_1.s()));
|
|
2318
|
+
$this.h1y_1 = $this.g1y_1.s();
|
|
2319
|
+
}
|
|
2320
|
+
function $awaitContentCOROUTINE$20(_this__u8e3s4, min, resultContinuation) {
|
|
2321
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2322
|
+
this.r1y_1 = _this__u8e3s4;
|
|
2323
|
+
this.s1y_1 = min;
|
|
2324
|
+
}
|
|
2325
|
+
protoOf($awaitContentCOROUTINE$20).r9 = function () {
|
|
2326
|
+
var suspendResult = this.l9_1;
|
|
2327
|
+
$sm: do
|
|
2328
|
+
try {
|
|
2329
|
+
var tmp = this.j9_1;
|
|
2330
|
+
switch (tmp) {
|
|
2331
|
+
case 0:
|
|
2332
|
+
this.k9_1 = 3;
|
|
2333
|
+
if (this.r1y_1.b1p().s().g1(toLong(this.s1y_1)) >= 0) {
|
|
2334
|
+
this.t1y_1 = true;
|
|
2335
|
+
this.j9_1 = 2;
|
|
2336
|
+
continue $sm;
|
|
2337
|
+
} else {
|
|
2338
|
+
this.j9_1 = 1;
|
|
2339
|
+
suspendResult = this.r1y_1.f1y_1.j1p(this.s1y_1, this);
|
|
2340
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2341
|
+
return suspendResult;
|
|
2342
|
+
}
|
|
2343
|
+
continue $sm;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
case 1:
|
|
2347
|
+
this.t1y_1 = suspendResult;
|
|
2348
|
+
this.j9_1 = 2;
|
|
2349
|
+
continue $sm;
|
|
2350
|
+
case 2:
|
|
2351
|
+
return this.t1y_1;
|
|
2352
|
+
case 3:
|
|
2353
|
+
throw this.m9_1;
|
|
2354
|
+
}
|
|
2355
|
+
} catch ($p) {
|
|
2356
|
+
var e = $p;
|
|
2357
|
+
if (this.k9_1 === 3) {
|
|
2358
|
+
throw e;
|
|
2359
|
+
} else {
|
|
2360
|
+
this.j9_1 = this.k9_1;
|
|
2361
|
+
this.m9_1 = e;
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
while (true);
|
|
2365
|
+
};
|
|
2366
|
+
function CountedByteReadChannel(delegate) {
|
|
2367
|
+
this.f1y_1 = delegate;
|
|
2368
|
+
this.g1y_1 = new Buffer();
|
|
2369
|
+
this.h1y_1 = new Long(0, 0);
|
|
2370
|
+
this.i1y_1 = new Long(0, 0);
|
|
2371
|
+
}
|
|
2372
|
+
protoOf(CountedByteReadChannel).u1y = function () {
|
|
2373
|
+
updateConsumed(this);
|
|
2374
|
+
return this.i1y_1;
|
|
2375
|
+
};
|
|
2376
|
+
protoOf(CountedByteReadChannel).g1p = function () {
|
|
2377
|
+
return this.f1y_1.g1p();
|
|
2378
|
+
};
|
|
2379
|
+
protoOf(CountedByteReadChannel).i1p = function () {
|
|
2380
|
+
return this.g1y_1.u1j() && this.f1y_1.i1p();
|
|
2381
|
+
};
|
|
2382
|
+
protoOf(CountedByteReadChannel).b1p = function () {
|
|
2383
|
+
updateConsumed(this);
|
|
2384
|
+
var appended = this.g1y_1.n1l(this.f1y_1.b1p());
|
|
2385
|
+
this.h1y_1 = this.h1y_1.b3(appended);
|
|
2386
|
+
return this.g1y_1;
|
|
2387
|
+
};
|
|
2388
|
+
protoOf(CountedByteReadChannel).j1p = function (min, $completion) {
|
|
2389
|
+
var tmp = new $awaitContentCOROUTINE$20(this, min, $completion);
|
|
2390
|
+
tmp.l9_1 = Unit_instance;
|
|
2391
|
+
tmp.m9_1 = null;
|
|
2392
|
+
return tmp.r9();
|
|
2393
|
+
};
|
|
2394
|
+
protoOf(CountedByteReadChannel).m1p = function (cause) {
|
|
2395
|
+
this.f1y_1.m1p(cause);
|
|
2396
|
+
this.g1y_1.p4();
|
|
2397
|
+
};
|
|
2398
|
+
function counted(_this__u8e3s4) {
|
|
2399
|
+
return new CountedByteReadChannel(_this__u8e3s4);
|
|
2400
|
+
}
|
|
2401
|
+
function readText(_this__u8e3s4) {
|
|
2402
|
+
return readString_0(_this__u8e3s4);
|
|
2403
|
+
}
|
|
2404
|
+
function ClosedByteChannelException(cause) {
|
|
2405
|
+
cause = cause === VOID ? null : cause;
|
|
2406
|
+
IOException_init_$Init$(cause == null ? null : cause.message, cause, this);
|
|
2407
|
+
captureStack(this, ClosedByteChannelException);
|
|
2408
|
+
}
|
|
2409
|
+
function ClosedReadChannelException(cause) {
|
|
2410
|
+
cause = cause === VOID ? null : cause;
|
|
2411
|
+
ClosedByteChannelException.call(this, cause);
|
|
2412
|
+
captureStack(this, ClosedReadChannelException);
|
|
2413
|
+
}
|
|
2414
|
+
function ClosedWriteChannelException(cause) {
|
|
2415
|
+
cause = cause === VOID ? null : cause;
|
|
2416
|
+
ClosedByteChannelException.call(this, cause);
|
|
2417
|
+
captureStack(this, ClosedWriteChannelException);
|
|
2418
|
+
}
|
|
2419
|
+
function _LineEndingMode___init__impl__jo5bul(mode) {
|
|
2420
|
+
return mode;
|
|
2421
|
+
}
|
|
2422
|
+
function _get_mode__dah3bc($this) {
|
|
2423
|
+
return $this;
|
|
2424
|
+
}
|
|
2425
|
+
function LineEndingMode__contains_impl_q5pr68($this, other) {
|
|
2426
|
+
return (_get_mode__dah3bc($this) | _get_mode__dah3bc(other)) === _get_mode__dah3bc($this);
|
|
2427
|
+
}
|
|
2428
|
+
function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
2429
|
+
return _LineEndingMode___init__impl__jo5bul(_get_mode__dah3bc($this) | _get_mode__dah3bc(other));
|
|
2430
|
+
}
|
|
2431
|
+
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2432
|
+
var tmp;
|
|
2433
|
+
if ($this === Companion_getInstance_1().r1s_1) {
|
|
2434
|
+
tmp = 'CR';
|
|
2435
|
+
} else if ($this === Companion_getInstance_1().s1s_1) {
|
|
2436
|
+
tmp = 'LF';
|
|
2437
|
+
} else if ($this === Companion_getInstance_1().t1s_1) {
|
|
2438
|
+
tmp = 'CRLF';
|
|
2439
|
+
} else {
|
|
2440
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2441
|
+
var tmp0 = Companion_getInstance_1().v1s_1;
|
|
2442
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2443
|
+
var destination = ArrayList_init_$Create$();
|
|
2444
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
2445
|
+
while (_iterator__ex2g4s.q()) {
|
|
2446
|
+
var element = _iterator__ex2g4s.r();
|
|
2447
|
+
var it = element.v1y_1;
|
|
2448
|
+
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2449
|
+
destination.k(element);
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
tmp = toString_1(destination);
|
|
2453
|
+
}
|
|
2454
|
+
return tmp;
|
|
2455
|
+
}
|
|
2456
|
+
function Companion_1() {
|
|
2457
|
+
Companion_instance_2 = this;
|
|
2458
|
+
this.r1s_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2459
|
+
this.s1s_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2460
|
+
this.t1s_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2461
|
+
this.u1s_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2462
|
+
this.v1s_1 = listOf([new LineEndingMode(this.r1s_1), new LineEndingMode(this.s1s_1), new LineEndingMode(this.t1s_1)]);
|
|
2463
|
+
}
|
|
2464
|
+
var Companion_instance_2;
|
|
2465
|
+
function Companion_getInstance_1() {
|
|
2466
|
+
if (Companion_instance_2 == null)
|
|
2467
|
+
new Companion_1();
|
|
2468
|
+
return Companion_instance_2;
|
|
2469
|
+
}
|
|
2470
|
+
function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
2471
|
+
return $this;
|
|
2472
|
+
}
|
|
2473
|
+
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2474
|
+
if (!(other instanceof LineEndingMode))
|
|
2475
|
+
return false;
|
|
2476
|
+
if (!($this === (other instanceof LineEndingMode ? other.v1y_1 : THROW_CCE())))
|
|
2477
|
+
return false;
|
|
2478
|
+
return true;
|
|
2479
|
+
}
|
|
2480
|
+
function LineEndingMode(mode) {
|
|
2481
|
+
Companion_getInstance_1();
|
|
2482
|
+
this.v1y_1 = mode;
|
|
2483
|
+
}
|
|
2484
|
+
protoOf(LineEndingMode).toString = function () {
|
|
2485
|
+
return LineEndingMode__toString_impl_j4h76r(this.v1y_1);
|
|
2486
|
+
};
|
|
2487
|
+
protoOf(LineEndingMode).hashCode = function () {
|
|
2488
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.v1y_1);
|
|
2489
|
+
};
|
|
2490
|
+
protoOf(LineEndingMode).equals = function (other) {
|
|
2491
|
+
return LineEndingMode__equals_impl_qyr4nk(this.v1y_1, other);
|
|
2492
|
+
};
|
|
2493
|
+
function SourceByteReadChannel(source) {
|
|
2494
|
+
this.w1y_1 = source;
|
|
2495
|
+
this.x1y_1 = null;
|
|
2496
|
+
}
|
|
2497
|
+
protoOf(SourceByteReadChannel).g1p = function () {
|
|
2498
|
+
var tmp0_safe_receiver = this.x1y_1;
|
|
2499
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1p();
|
|
2500
|
+
};
|
|
2501
|
+
protoOf(SourceByteReadChannel).i1p = function () {
|
|
2502
|
+
return this.w1y_1.u1j();
|
|
2503
|
+
};
|
|
2504
|
+
protoOf(SourceByteReadChannel).b1p = function () {
|
|
2505
|
+
var tmp0_safe_receiver = this.g1p();
|
|
2506
|
+
if (tmp0_safe_receiver == null)
|
|
2507
|
+
null;
|
|
2508
|
+
else {
|
|
2509
|
+
// Inline function 'kotlin.let' call
|
|
2510
|
+
throw tmp0_safe_receiver;
|
|
2511
|
+
}
|
|
2512
|
+
return this.w1y_1.t1j();
|
|
2513
|
+
};
|
|
2514
|
+
protoOf(SourceByteReadChannel).j1p = function (min, $completion) {
|
|
2515
|
+
var tmp0_safe_receiver = this.g1p();
|
|
2516
|
+
if (tmp0_safe_receiver == null)
|
|
2517
|
+
null;
|
|
2518
|
+
else {
|
|
2519
|
+
// Inline function 'kotlin.let' call
|
|
2520
|
+
throw tmp0_safe_receiver;
|
|
2521
|
+
}
|
|
2522
|
+
return this.w1y_1.w1j(toLong(min));
|
|
2523
|
+
};
|
|
2524
|
+
protoOf(SourceByteReadChannel).m1p = function (cause) {
|
|
2525
|
+
if (!(this.x1y_1 == null))
|
|
2526
|
+
return Unit_instance;
|
|
2527
|
+
this.w1y_1.p4();
|
|
2528
|
+
var tmp = this;
|
|
2529
|
+
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2530
|
+
tmp.x1y_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2531
|
+
};
|
|
2532
|
+
function decode(_this__u8e3s4, input, max) {
|
|
2533
|
+
max = max === VOID ? 2147483647 : max;
|
|
2534
|
+
var tmp0 = toLong(max);
|
|
2535
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2536
|
+
var b = input.t1j().s();
|
|
2537
|
+
// Inline function 'kotlin.text.buildString' call
|
|
2538
|
+
var capacity = (tmp0.g1(b) <= 0 ? tmp0 : b).l1();
|
|
2539
|
+
// Inline function 'kotlin.apply' call
|
|
2540
|
+
var this_0 = StringBuilder_init_$Create$(capacity);
|
|
2541
|
+
decode_0(_this__u8e3s4, input, this_0, max);
|
|
2542
|
+
return this_0.toString();
|
|
2543
|
+
}
|
|
2544
|
+
function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
|
|
2545
|
+
var start = fromIndex;
|
|
2546
|
+
if (start >= toIndex)
|
|
2547
|
+
return Unit_instance;
|
|
2548
|
+
$l$loop: while (true) {
|
|
2549
|
+
var rc = encodeImpl(_this__u8e3s4, input, start, toIndex, destination);
|
|
2550
|
+
// Inline function 'kotlin.check' call
|
|
2551
|
+
if (!(rc >= 0)) {
|
|
2552
|
+
throw IllegalStateException_init_$Create$('Check failed.');
|
|
2553
|
+
}
|
|
2554
|
+
start = start + rc | 0;
|
|
2555
|
+
if (start >= toIndex)
|
|
2556
|
+
break $l$loop;
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2559
|
+
function TooLongLineException(message) {
|
|
2560
|
+
MalformedInputException.call(this, message);
|
|
2561
|
+
captureStack(this, TooLongLineException);
|
|
2562
|
+
}
|
|
2563
|
+
function encode(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
2564
|
+
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2565
|
+
toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
|
|
2566
|
+
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2567
|
+
var builder = new Buffer();
|
|
2568
|
+
encodeToImpl(_this__u8e3s4, builder, input, fromIndex, toIndex);
|
|
2569
|
+
return builder;
|
|
2570
|
+
}
|
|
2571
|
+
function canRead(_this__u8e3s4) {
|
|
2572
|
+
return !_this__u8e3s4.u1j();
|
|
2573
|
+
}
|
|
2574
|
+
function readBytes(_this__u8e3s4, count) {
|
|
2575
|
+
count = count === VOID ? _this__u8e3s4.s().l1() : count;
|
|
2576
|
+
return readByteArray(_this__u8e3s4, count);
|
|
2577
|
+
}
|
|
2578
|
+
function BytePacketBuilder() {
|
|
2579
|
+
return new Buffer();
|
|
2580
|
+
}
|
|
2581
|
+
function writePacket_0(_this__u8e3s4, packet) {
|
|
2582
|
+
_this__u8e3s4.n1l(packet);
|
|
2583
|
+
}
|
|
2584
|
+
function build(_this__u8e3s4) {
|
|
2585
|
+
return _this__u8e3s4.t1j();
|
|
2586
|
+
}
|
|
2587
|
+
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2588
|
+
offset = offset === VOID ? 0 : offset;
|
|
2589
|
+
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2590
|
+
_this__u8e3s4.e1l(buffer, offset, offset + length | 0);
|
|
2591
|
+
}
|
|
2592
|
+
function get_size(_this__u8e3s4) {
|
|
2593
|
+
return _this__u8e3s4.t1j().s().l1();
|
|
2594
|
+
}
|
|
2595
|
+
var ByteReadPacketEmpty;
|
|
2596
|
+
function get_remaining(_this__u8e3s4) {
|
|
2597
|
+
_init_properties_ByteReadPacket_kt__28475y();
|
|
2598
|
+
return _this__u8e3s4.t1j().s();
|
|
2599
|
+
}
|
|
2600
|
+
function discard_0(_this__u8e3s4, count) {
|
|
2601
|
+
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
2602
|
+
_init_properties_ByteReadPacket_kt__28475y();
|
|
2603
|
+
_this__u8e3s4.w1j(count);
|
|
2604
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2605
|
+
var b = get_remaining(_this__u8e3s4);
|
|
2606
|
+
var countToDiscard = count.g1(b) <= 0 ? count : b;
|
|
2607
|
+
_this__u8e3s4.t1j().r1k(countToDiscard);
|
|
2608
|
+
return countToDiscard;
|
|
2609
|
+
}
|
|
2610
|
+
function takeWhile(_this__u8e3s4, block) {
|
|
2611
|
+
_init_properties_ByteReadPacket_kt__28475y();
|
|
2612
|
+
while (!_this__u8e3s4.u1j() && block(_this__u8e3s4.t1j())) {
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
2616
|
+
function _init_properties_ByteReadPacket_kt__28475y() {
|
|
2617
|
+
if (!properties_initialized_ByteReadPacket_kt_hw4st4) {
|
|
2618
|
+
properties_initialized_ByteReadPacket_kt_hw4st4 = true;
|
|
2619
|
+
ByteReadPacketEmpty = new Buffer();
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2623
|
+
offset = offset === VOID ? 0 : offset;
|
|
2624
|
+
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2625
|
+
var result = _this__u8e3s4.s1k(buffer, offset, offset + length | 0);
|
|
2626
|
+
return result === -1 ? 0 : result;
|
|
2627
|
+
}
|
|
2628
|
+
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2629
|
+
charset = charset === VOID ? Charsets_getInstance().y1y_1 : charset;
|
|
2630
|
+
if (charset.equals(Charsets_getInstance().y1y_1))
|
|
2631
|
+
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2632
|
+
return encodeToByteArray_0(charset.b1z(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2633
|
+
}
|
|
2634
|
+
function readText_0(_this__u8e3s4, charset, max) {
|
|
2635
|
+
charset = charset === VOID ? Charsets_getInstance().y1y_1 : charset;
|
|
2636
|
+
max = max === VOID ? 2147483647 : max;
|
|
2637
|
+
if (charset.equals(Charsets_getInstance().y1y_1)) {
|
|
2638
|
+
if (max === 2147483647)
|
|
2639
|
+
return readString_0(_this__u8e3s4);
|
|
2640
|
+
var tmp0 = _this__u8e3s4.t1j().s();
|
|
2641
|
+
// Inline function 'kotlin.math.min' call
|
|
2642
|
+
var b = toLong(max);
|
|
2643
|
+
var count = tmp0.g1(b) <= 0 ? tmp0 : b;
|
|
2644
|
+
return readString_1(_this__u8e3s4, count);
|
|
2645
|
+
}
|
|
2646
|
+
return decode(charset.c1z(), _this__u8e3s4, max);
|
|
2647
|
+
}
|
|
2648
|
+
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2649
|
+
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2650
|
+
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2651
|
+
charset = charset === VOID ? Charsets_getInstance().y1y_1 : charset;
|
|
2652
|
+
if (charset === Charsets_getInstance().y1y_1) {
|
|
2653
|
+
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2654
|
+
}
|
|
2655
|
+
encodeToImpl(charset.b1z(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2656
|
+
}
|
|
2657
|
+
function get_ByteArrayPool() {
|
|
2658
|
+
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
2659
|
+
return ByteArrayPool;
|
|
2660
|
+
}
|
|
2661
|
+
var ByteArrayPool;
|
|
2662
|
+
function ByteArrayPool$1() {
|
|
2663
|
+
DefaultPool.call(this, 128);
|
|
2664
|
+
}
|
|
2665
|
+
protoOf(ByteArrayPool$1).g1z = function () {
|
|
2666
|
+
return new Int8Array(4096);
|
|
2667
|
+
};
|
|
2668
|
+
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
2669
|
+
function _init_properties_ByteArrayPool_kt__kfi3uj() {
|
|
2670
|
+
if (!properties_initialized_ByteArrayPool_kt_td6pfh) {
|
|
2671
|
+
properties_initialized_ByteArrayPool_kt_td6pfh = true;
|
|
2672
|
+
ByteArrayPool = new ByteArrayPool$1();
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
function ObjectPool() {
|
|
2676
|
+
}
|
|
2677
|
+
function NoPoolImpl() {
|
|
2678
|
+
}
|
|
2679
|
+
protoOf(NoPoolImpl).o1z = function (instance) {
|
|
2680
|
+
return Unit_instance;
|
|
2681
|
+
};
|
|
2682
|
+
protoOf(NoPoolImpl).vs = function () {
|
|
2683
|
+
return Unit_instance;
|
|
2684
|
+
};
|
|
2685
|
+
function Companion_2() {
|
|
2686
|
+
}
|
|
2687
|
+
protoOf(Companion_2).p1z = function (name) {
|
|
2688
|
+
switch (name) {
|
|
2689
|
+
case 'UTF-8':
|
|
2690
|
+
case 'utf-8':
|
|
2691
|
+
case 'UTF8':
|
|
2692
|
+
case 'utf8':
|
|
2693
|
+
return Charsets_getInstance().y1y_1;
|
|
2694
|
+
}
|
|
2695
|
+
var tmp;
|
|
2696
|
+
var tmp_0;
|
|
2697
|
+
switch (name) {
|
|
2698
|
+
case 'ISO-8859-1':
|
|
2699
|
+
case 'iso-8859-1':
|
|
2700
|
+
tmp_0 = true;
|
|
2701
|
+
break;
|
|
2702
|
+
default:
|
|
2703
|
+
// Inline function 'kotlin.let' call
|
|
2704
|
+
|
|
2705
|
+
var it = replace_0(name, _Char___init__impl__6a9atx(95), _Char___init__impl__6a9atx(45));
|
|
2706
|
+
var tmp_1;
|
|
2707
|
+
if (it === 'iso-8859-1') {
|
|
2708
|
+
tmp_1 = true;
|
|
2709
|
+
} else {
|
|
2710
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
2711
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2712
|
+
tmp_1 = it.toLowerCase() === 'iso-8859-1';
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
tmp_0 = tmp_1;
|
|
2716
|
+
break;
|
|
2717
|
+
}
|
|
2718
|
+
if (tmp_0) {
|
|
2719
|
+
tmp = true;
|
|
2720
|
+
} else {
|
|
2721
|
+
tmp = name === 'latin1' || name === 'Latin1';
|
|
2722
|
+
}
|
|
2723
|
+
if (tmp) {
|
|
2724
|
+
return Charsets_getInstance().z1y_1;
|
|
2725
|
+
}
|
|
2726
|
+
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
2727
|
+
};
|
|
2728
|
+
protoOf(Companion_2).q1z = function (charset) {
|
|
2729
|
+
var tmp;
|
|
2730
|
+
switch (charset) {
|
|
2731
|
+
case 'UTF-8':
|
|
2732
|
+
case 'utf-8':
|
|
2733
|
+
case 'UTF8':
|
|
2734
|
+
case 'utf8':
|
|
2735
|
+
tmp = true;
|
|
2736
|
+
break;
|
|
2737
|
+
default:
|
|
2738
|
+
var tmp_0;
|
|
2739
|
+
var tmp_1;
|
|
2740
|
+
switch (charset) {
|
|
2741
|
+
case 'ISO-8859-1':
|
|
2742
|
+
case 'iso-8859-1':
|
|
2743
|
+
tmp_1 = true;
|
|
2744
|
+
break;
|
|
2745
|
+
default:
|
|
2746
|
+
// Inline function 'kotlin.let' call
|
|
2747
|
+
|
|
2748
|
+
var it = replace_0(charset, _Char___init__impl__6a9atx(95), _Char___init__impl__6a9atx(45));
|
|
2749
|
+
var tmp_2;
|
|
2750
|
+
if (it === 'iso-8859-1') {
|
|
2751
|
+
tmp_2 = true;
|
|
2752
|
+
} else {
|
|
2753
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
2754
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2755
|
+
tmp_2 = it.toLowerCase() === 'iso-8859-1';
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
tmp_1 = tmp_2;
|
|
2759
|
+
break;
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
if (tmp_1) {
|
|
2763
|
+
tmp_0 = true;
|
|
2764
|
+
} else {
|
|
2765
|
+
tmp_0 = charset === 'latin1';
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2768
|
+
if (tmp_0) {
|
|
2769
|
+
tmp = true;
|
|
2770
|
+
} else {
|
|
2771
|
+
tmp = false;
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2774
|
+
break;
|
|
2775
|
+
}
|
|
2776
|
+
return tmp;
|
|
2777
|
+
};
|
|
2778
|
+
var Companion_instance_3;
|
|
2779
|
+
function Companion_getInstance_2() {
|
|
2780
|
+
return Companion_instance_3;
|
|
2781
|
+
}
|
|
2782
|
+
function Charset(_name) {
|
|
2783
|
+
this.a1z_1 = _name;
|
|
2784
|
+
}
|
|
2785
|
+
protoOf(Charset).equals = function (other) {
|
|
2786
|
+
if (this === other)
|
|
2787
|
+
return true;
|
|
2788
|
+
if (other == null || !(this.constructor == other.constructor))
|
|
2789
|
+
return false;
|
|
2790
|
+
if (!(other instanceof Charset))
|
|
2791
|
+
THROW_CCE();
|
|
2792
|
+
return this.a1z_1 === other.a1z_1;
|
|
2793
|
+
};
|
|
2794
|
+
protoOf(Charset).hashCode = function () {
|
|
2795
|
+
return getStringHashCode(this.a1z_1);
|
|
2796
|
+
};
|
|
2797
|
+
protoOf(Charset).toString = function () {
|
|
2798
|
+
return this.a1z_1;
|
|
2799
|
+
};
|
|
2800
|
+
function get_name(_this__u8e3s4) {
|
|
2801
|
+
return _this__u8e3s4.a1z_1;
|
|
2802
|
+
}
|
|
2803
|
+
function Charsets() {
|
|
2804
|
+
Charsets_instance = this;
|
|
2805
|
+
this.y1y_1 = new CharsetImpl('UTF-8');
|
|
2806
|
+
this.z1y_1 = new CharsetImpl('ISO-8859-1');
|
|
2807
|
+
}
|
|
2808
|
+
var Charsets_instance;
|
|
2809
|
+
function Charsets_getInstance() {
|
|
2810
|
+
if (Charsets_instance == null)
|
|
2811
|
+
new Charsets();
|
|
2812
|
+
return Charsets_instance;
|
|
2813
|
+
}
|
|
2814
|
+
function MalformedInputException(message) {
|
|
2815
|
+
IOException_init_$Init$_0(message, this);
|
|
2816
|
+
captureStack(this, MalformedInputException);
|
|
2817
|
+
}
|
|
2818
|
+
function CharsetDecoder(_charset) {
|
|
2819
|
+
this.r1z_1 = _charset;
|
|
2820
|
+
}
|
|
2821
|
+
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
2822
|
+
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2823
|
+
toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
|
|
2824
|
+
return encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex);
|
|
2825
|
+
}
|
|
2826
|
+
function CharsetEncoder(_charset) {
|
|
2827
|
+
this.s1z_1 = _charset;
|
|
2828
|
+
}
|
|
2829
|
+
function CharsetImpl(name) {
|
|
2830
|
+
Charset.call(this, name);
|
|
2831
|
+
}
|
|
2832
|
+
protoOf(CharsetImpl).b1z = function () {
|
|
2833
|
+
return new CharsetEncoderImpl(this);
|
|
2834
|
+
};
|
|
2835
|
+
protoOf(CharsetImpl).c1z = function () {
|
|
2836
|
+
return new CharsetDecoderImpl(this);
|
|
2837
|
+
};
|
|
2838
|
+
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
2839
|
+
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2840
|
+
toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
|
|
2841
|
+
var start = fromIndex;
|
|
2842
|
+
if (start >= toIndex)
|
|
2843
|
+
return new Int8Array(0);
|
|
2844
|
+
var dst = new Buffer();
|
|
2845
|
+
var rc = encodeImpl(_this__u8e3s4, input, start, toIndex, dst);
|
|
2846
|
+
start = start + rc | 0;
|
|
2847
|
+
if (start === toIndex) {
|
|
2848
|
+
return readByteArray_0(dst);
|
|
2849
|
+
}
|
|
2850
|
+
encodeToImpl(_this__u8e3s4, dst, input, start, toIndex);
|
|
2851
|
+
return readByteArray_0(dst);
|
|
2852
|
+
}
|
|
2853
|
+
function CharsetEncoderImpl(charset) {
|
|
2854
|
+
CharsetEncoder.call(this, charset);
|
|
2855
|
+
this.v1z_1 = charset;
|
|
2856
|
+
}
|
|
2857
|
+
protoOf(CharsetEncoderImpl).toString = function () {
|
|
2858
|
+
return 'CharsetEncoderImpl(charset=' + this.v1z_1.toString() + ')';
|
|
2859
|
+
};
|
|
2860
|
+
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
2861
|
+
return this.v1z_1.hashCode();
|
|
2862
|
+
};
|
|
2863
|
+
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
2864
|
+
if (this === other)
|
|
2865
|
+
return true;
|
|
2866
|
+
if (!(other instanceof CharsetEncoderImpl))
|
|
2867
|
+
return false;
|
|
2868
|
+
var tmp0_other_with_cast = other instanceof CharsetEncoderImpl ? other : THROW_CCE();
|
|
2869
|
+
if (!this.v1z_1.equals(tmp0_other_with_cast.v1z_1))
|
|
2870
|
+
return false;
|
|
2871
|
+
return true;
|
|
2872
|
+
};
|
|
2873
|
+
function CharsetDecoderImpl(charset) {
|
|
2874
|
+
CharsetDecoder.call(this, charset);
|
|
2875
|
+
this.x1z_1 = charset;
|
|
2876
|
+
}
|
|
2877
|
+
protoOf(CharsetDecoderImpl).toString = function () {
|
|
2878
|
+
return 'CharsetDecoderImpl(charset=' + this.x1z_1.toString() + ')';
|
|
2879
|
+
};
|
|
2880
|
+
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
2881
|
+
return this.x1z_1.hashCode();
|
|
2882
|
+
};
|
|
2883
|
+
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
2884
|
+
if (this === other)
|
|
2885
|
+
return true;
|
|
2886
|
+
if (!(other instanceof CharsetDecoderImpl))
|
|
2887
|
+
return false;
|
|
2888
|
+
var tmp0_other_with_cast = other instanceof CharsetDecoderImpl ? other : THROW_CCE();
|
|
2889
|
+
if (!this.x1z_1.equals(tmp0_other_with_cast.x1z_1))
|
|
2890
|
+
return false;
|
|
2891
|
+
return true;
|
|
2892
|
+
};
|
|
2893
|
+
function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
2894
|
+
// Inline function 'kotlin.require' call
|
|
2895
|
+
// Inline function 'kotlin.require' call
|
|
2896
|
+
if (!(fromIndex <= toIndex)) {
|
|
2897
|
+
var message = 'Failed requirement.';
|
|
2898
|
+
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
2899
|
+
}
|
|
2900
|
+
if (get_charset(_this__u8e3s4).equals(Charsets_getInstance().z1y_1)) {
|
|
2901
|
+
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
2902
|
+
}
|
|
2903
|
+
// Inline function 'kotlin.require' call
|
|
2904
|
+
if (!(get_charset(_this__u8e3s4) === Charsets_getInstance().y1y_1)) {
|
|
2905
|
+
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
2906
|
+
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
2907
|
+
}
|
|
2908
|
+
var encoder = new TextEncoder();
|
|
2909
|
+
// Inline function 'kotlin.text.substring' call
|
|
2910
|
+
var tmp$ret$5 = toString_1(charSequenceSubSequence(input, fromIndex, toIndex));
|
|
2911
|
+
var result = encoder.encode(tmp$ret$5);
|
|
2912
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2913
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2914
|
+
dst.h1l(result);
|
|
2915
|
+
return result.length;
|
|
2916
|
+
}
|
|
2917
|
+
function get_charset(_this__u8e3s4) {
|
|
2918
|
+
return _this__u8e3s4.s1z_1;
|
|
2919
|
+
}
|
|
2920
|
+
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
2921
|
+
var decoder = Decoder(get_name(get_charset_0(_this__u8e3s4)), true);
|
|
2922
|
+
var tmp0 = input.t1j().s();
|
|
2923
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2924
|
+
var b = toLong(max);
|
|
2925
|
+
var count = tmp0.g1(b) <= 0 ? tmp0 : b;
|
|
2926
|
+
var tmp = readByteArray(input, count.l1());
|
|
2927
|
+
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
2928
|
+
var tmp_0;
|
|
2929
|
+
try {
|
|
2930
|
+
tmp_0 = decoder.y1z(array);
|
|
2931
|
+
} catch ($p) {
|
|
2932
|
+
var tmp_1;
|
|
2933
|
+
if ($p instanceof Error) {
|
|
2934
|
+
var cause = $p;
|
|
2935
|
+
var tmp0_elvis_lhs = cause.message;
|
|
2936
|
+
throw new MalformedInputException('Failed to decode bytes: ' + (tmp0_elvis_lhs == null ? 'no cause provided' : tmp0_elvis_lhs));
|
|
2937
|
+
} else {
|
|
2938
|
+
throw $p;
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
var result = tmp_0;
|
|
2942
|
+
dst.o(result);
|
|
2943
|
+
return result.length;
|
|
2944
|
+
}
|
|
2945
|
+
function get_charset_0(_this__u8e3s4) {
|
|
2946
|
+
return _this__u8e3s4.r1z_1;
|
|
2947
|
+
}
|
|
2948
|
+
function forName(_this__u8e3s4, name) {
|
|
2949
|
+
return Companion_instance_3.p1z(name);
|
|
2950
|
+
}
|
|
2951
|
+
function isSupported(_this__u8e3s4, name) {
|
|
2952
|
+
return Companion_instance_3.q1z(name);
|
|
2953
|
+
}
|
|
2954
|
+
function Decoder(encoding, fatal) {
|
|
2955
|
+
fatal = fatal === VOID ? true : fatal;
|
|
2956
|
+
var tmp;
|
|
2957
|
+
try {
|
|
2958
|
+
tmp = toKtor(new TextDecoder(encoding, textDecoderOptions(fatal)));
|
|
2959
|
+
} catch ($p) {
|
|
2960
|
+
var tmp_0;
|
|
2961
|
+
if ($p instanceof Error) {
|
|
2962
|
+
var cause = $p;
|
|
2963
|
+
tmp_0 = new TextDecoderFallback(encoding, fatal);
|
|
2964
|
+
} else {
|
|
2965
|
+
throw $p;
|
|
2966
|
+
}
|
|
2967
|
+
tmp = tmp_0;
|
|
2968
|
+
}
|
|
2969
|
+
return tmp;
|
|
2970
|
+
}
|
|
2971
|
+
function toKtor(_this__u8e3s4) {
|
|
2972
|
+
return new toKtor$1(_this__u8e3s4);
|
|
2973
|
+
}
|
|
2974
|
+
function textDecoderOptions(fatal) {
|
|
2975
|
+
fatal = fatal === VOID ? false : fatal;
|
|
2976
|
+
// Inline function 'kotlin.apply' call
|
|
2977
|
+
var this_0 = new Object();
|
|
2978
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2979
|
+
// Inline function 'kotlin.with' call
|
|
2980
|
+
this_0.fatal = fatal;
|
|
2981
|
+
return this_0;
|
|
2982
|
+
}
|
|
2983
|
+
function toKtor$1($this_toKtor) {
|
|
2984
|
+
this.z1z_1 = $this_toKtor;
|
|
2985
|
+
}
|
|
2986
|
+
protoOf(toKtor$1).y1z = function (buffer) {
|
|
2987
|
+
return this.z1z_1.decode(buffer);
|
|
2988
|
+
};
|
|
2989
|
+
function get_ENCODING_ALIASES() {
|
|
2990
|
+
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
2991
|
+
return ENCODING_ALIASES;
|
|
2992
|
+
}
|
|
2993
|
+
var ENCODING_ALIASES;
|
|
2994
|
+
function get_REPLACEMENT() {
|
|
2995
|
+
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
2996
|
+
return REPLACEMENT;
|
|
2997
|
+
}
|
|
2998
|
+
var REPLACEMENT;
|
|
2999
|
+
function TextDecoderFallback(encoding, fatal) {
|
|
3000
|
+
this.a20_1 = fatal;
|
|
3001
|
+
// Inline function 'kotlin.text.trim' call
|
|
3002
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
3003
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3004
|
+
var requestedEncoding = toString_1(trim(isCharSequence(encoding) ? encoding : THROW_CCE())).toLowerCase();
|
|
3005
|
+
// Inline function 'kotlin.check' call
|
|
3006
|
+
if (!get_ENCODING_ALIASES().w(requestedEncoding)) {
|
|
3007
|
+
var message = encoding + ' is not supported.';
|
|
3008
|
+
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
protoOf(TextDecoderFallback).y1z = function (buffer) {
|
|
3012
|
+
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3013
|
+
var builder = new Buffer();
|
|
3014
|
+
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
3015
|
+
var inductionVariable = 0;
|
|
3016
|
+
var last = bytes.length;
|
|
3017
|
+
if (inductionVariable < last)
|
|
3018
|
+
$l$loop: do {
|
|
3019
|
+
var index = inductionVariable;
|
|
3020
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3021
|
+
// Inline function 'org.khronos.webgl.get' call
|
|
3022
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3023
|
+
var byte = bytes[index];
|
|
3024
|
+
var point = toCodePoint(byte);
|
|
3025
|
+
if (point < 0) {
|
|
3026
|
+
// Inline function 'kotlin.check' call
|
|
3027
|
+
if (!!this.a20_1) {
|
|
3028
|
+
var message = 'Invalid character: ' + point;
|
|
3029
|
+
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3030
|
+
}
|
|
3031
|
+
writeFully_0(builder, get_REPLACEMENT());
|
|
3032
|
+
continue $l$loop;
|
|
3033
|
+
}
|
|
3034
|
+
if (point > 255) {
|
|
3035
|
+
builder.o1l(toByte(point >> 8));
|
|
3036
|
+
}
|
|
3037
|
+
builder.o1l(toByte(point & 255));
|
|
3038
|
+
}
|
|
3039
|
+
while (inductionVariable < last);
|
|
3040
|
+
return decodeToString(readByteArray_0(builder));
|
|
3041
|
+
};
|
|
3042
|
+
function toCodePoint(_this__u8e3s4) {
|
|
3043
|
+
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
3044
|
+
var value = _this__u8e3s4 & 255;
|
|
3045
|
+
if (isASCII(value)) {
|
|
3046
|
+
return value;
|
|
3047
|
+
}
|
|
3048
|
+
return get_WIN1252_TABLE()[value - 128 | 0];
|
|
3049
|
+
}
|
|
3050
|
+
function isASCII(_this__u8e3s4) {
|
|
3051
|
+
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
3052
|
+
return 0 <= _this__u8e3s4 ? _this__u8e3s4 <= 127 : false;
|
|
3053
|
+
}
|
|
3054
|
+
var properties_initialized_TextDecoderFallback_js_kt_6rekzk;
|
|
3055
|
+
function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
|
|
3056
|
+
if (!properties_initialized_TextDecoderFallback_js_kt_6rekzk) {
|
|
3057
|
+
properties_initialized_TextDecoderFallback_js_kt_6rekzk = true;
|
|
3058
|
+
ENCODING_ALIASES = setOf(['ansi_x3.4-1968', 'ascii', 'cp1252', 'cp819', 'csisolatin1', 'ibm819', 'iso-8859-1', 'iso-ir-100', 'iso8859-1', 'iso88591', 'iso_8859-1', 'iso_8859-1:1987', 'l1', 'latin1', 'us-ascii', 'windows-1252', 'x-cp1252']);
|
|
3059
|
+
// Inline function 'kotlin.byteArrayOf' call
|
|
3060
|
+
REPLACEMENT = new Int8Array([-17, -65, -67]);
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
function get_DEVELOPMENT_MODE() {
|
|
3064
|
+
return false;
|
|
3065
|
+
}
|
|
3066
|
+
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3067
|
+
if (fromIndex >= toIndex)
|
|
3068
|
+
return 0;
|
|
3069
|
+
var inductionVariable = fromIndex;
|
|
3070
|
+
if (inductionVariable < toIndex)
|
|
3071
|
+
do {
|
|
3072
|
+
var index = inductionVariable;
|
|
3073
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3074
|
+
// Inline function 'kotlin.code' call
|
|
3075
|
+
var this_0 = charSequenceGet(input, index);
|
|
3076
|
+
var character = Char__toInt_impl_vasixd(this_0);
|
|
3077
|
+
if (character > 255) {
|
|
3078
|
+
failedToMapError(character);
|
|
3079
|
+
}
|
|
3080
|
+
dst.o1l(toByte(character));
|
|
3081
|
+
}
|
|
3082
|
+
while (inductionVariable < toIndex);
|
|
3083
|
+
return toIndex - fromIndex | 0;
|
|
3084
|
+
}
|
|
3085
|
+
function failedToMapError(ch) {
|
|
3086
|
+
throw new MalformedInputException('The character with unicode point ' + ch + " couldn't be mapped to ISO-8859-1 character");
|
|
3087
|
+
}
|
|
3088
|
+
function get_WIN1252_TABLE() {
|
|
3089
|
+
_init_properties_Win1252Table_kt__tl0v64();
|
|
3090
|
+
return WIN1252_TABLE;
|
|
3091
|
+
}
|
|
3092
|
+
var WIN1252_TABLE;
|
|
3093
|
+
var properties_initialized_Win1252Table_kt_pkmjoq;
|
|
3094
|
+
function _init_properties_Win1252Table_kt__tl0v64() {
|
|
3095
|
+
if (!properties_initialized_Win1252Table_kt_pkmjoq) {
|
|
3096
|
+
properties_initialized_Win1252Table_kt_pkmjoq = true;
|
|
3097
|
+
// Inline function 'kotlin.intArrayOf' call
|
|
3098
|
+
WIN1252_TABLE = new Int32Array([8364, -1, 8218, 402, 8222, 8230, 8224, 8225, 710, 8240, 352, 8249, 338, -1, 381, -1, -1, 8216, 8217, 8220, 8221, 8226, 8211, 8212, 732, 8482, 353, 8250, 339, -1, 382, 376, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255]);
|
|
3099
|
+
}
|
|
3100
|
+
}
|
|
3101
|
+
function DefaultPool(capacity) {
|
|
3102
|
+
this.h1z_1 = capacity;
|
|
3103
|
+
var tmp = this;
|
|
3104
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
3105
|
+
var size = this.h1z_1;
|
|
3106
|
+
tmp.i1z_1 = Array(size);
|
|
3107
|
+
this.j1z_1 = 0;
|
|
3108
|
+
}
|
|
3109
|
+
protoOf(DefaultPool).k1z = function (instance) {
|
|
3110
|
+
};
|
|
3111
|
+
protoOf(DefaultPool).l1z = function (instance) {
|
|
3112
|
+
return instance;
|
|
3113
|
+
};
|
|
3114
|
+
protoOf(DefaultPool).m1z = function (instance) {
|
|
3115
|
+
};
|
|
3116
|
+
protoOf(DefaultPool).n1z = function () {
|
|
3117
|
+
if (this.j1z_1 === 0)
|
|
3118
|
+
return this.g1z();
|
|
3119
|
+
this.j1z_1 = this.j1z_1 - 1 | 0;
|
|
3120
|
+
var idx = this.j1z_1;
|
|
3121
|
+
var tmp = this.i1z_1[idx];
|
|
3122
|
+
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3123
|
+
this.i1z_1[idx] = null;
|
|
3124
|
+
return this.l1z(instance);
|
|
3125
|
+
};
|
|
3126
|
+
protoOf(DefaultPool).o1z = function (instance) {
|
|
3127
|
+
this.m1z(instance);
|
|
3128
|
+
if (this.j1z_1 === this.h1z_1) {
|
|
3129
|
+
this.k1z(instance);
|
|
3130
|
+
} else {
|
|
3131
|
+
var _unary__edvuaz = this.j1z_1;
|
|
3132
|
+
this.j1z_1 = _unary__edvuaz + 1 | 0;
|
|
3133
|
+
this.i1z_1[_unary__edvuaz] = instance;
|
|
3134
|
+
}
|
|
3135
|
+
};
|
|
3136
|
+
protoOf(DefaultPool).vs = function () {
|
|
3137
|
+
var inductionVariable = 0;
|
|
3138
|
+
var last = this.j1z_1;
|
|
3139
|
+
if (inductionVariable < last)
|
|
3140
|
+
do {
|
|
3141
|
+
var i = inductionVariable;
|
|
3142
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3143
|
+
var tmp = this.i1z_1[i];
|
|
3144
|
+
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3145
|
+
this.i1z_1[i] = null;
|
|
3146
|
+
this.k1z(instance);
|
|
3147
|
+
}
|
|
3148
|
+
while (inductionVariable < last);
|
|
3149
|
+
this.j1z_1 = 0;
|
|
3150
|
+
};
|
|
3151
|
+
//region block: post-declaration
|
|
3152
|
+
protoOf(Read).z1m = resume;
|
|
3153
|
+
protoOf(Read).a1n = resume_0;
|
|
3154
|
+
protoOf(Write).z1m = resume;
|
|
3155
|
+
protoOf(Write).a1n = resume_0;
|
|
3156
|
+
protoOf(ByteChannel).k1p = awaitContent$default;
|
|
3157
|
+
protoOf(ByteReadChannel$Companion$Empty$1).k1p = awaitContent$default;
|
|
3158
|
+
protoOf(CountedByteReadChannel).k1p = awaitContent$default;
|
|
3159
|
+
protoOf(SourceByteReadChannel).k1p = awaitContent$default;
|
|
3160
|
+
protoOf(DefaultPool).p4 = close;
|
|
3161
|
+
protoOf(NoPoolImpl).p4 = close;
|
|
3162
|
+
//endregion
|
|
3163
|
+
//region block: init
|
|
3164
|
+
Empty_instance = new Empty();
|
|
3165
|
+
Companion_instance_3 = new Companion_2();
|
|
3166
|
+
//endregion
|
|
3167
|
+
//region block: exports
|
|
3168
|
+
export {
|
|
3169
|
+
copyTo as copyTo2bqjr21is71ky,
|
|
3170
|
+
readAvailable as readAvailablep1f2sbmaa5jo,
|
|
3171
|
+
readPacket as readPacket12c3kakna35tv,
|
|
3172
|
+
readRemaining as readRemaining33cdmbznvdvtg,
|
|
3173
|
+
readUTF8LineTo as readUTF8LineTo2rqyj2iri7j7e,
|
|
3174
|
+
readUntil as readUntilqaod88ylrtua,
|
|
3175
|
+
skipIfFound as skipIfFound2s927ggnjlzu8,
|
|
3176
|
+
toByteArray as toByteArray3qclveibivokh,
|
|
3177
|
+
writeFully as writeFully2bplh4smpa61x,
|
|
3178
|
+
writePacket as writePacket3r7d9cbv7uxna,
|
|
3179
|
+
LineEndingMode__plus_impl_ttpz2j as LineEndingMode__plus_impl_ttpz2j1fo728zjvbdzc,
|
|
3180
|
+
Charsets_getInstance as Charsets_getInstancemd62gu5po4os,
|
|
3181
|
+
Companion_getInstance_0 as Companion_getInstancekyay2rfrglll,
|
|
3182
|
+
Companion_getInstance_1 as Companion_getInstance2golwmcx6d471,
|
|
3183
|
+
MalformedInputException as MalformedInputExceptionbvc6h5ij0ias,
|
|
3184
|
+
decode as decode1t43jmuxrxpmo,
|
|
3185
|
+
encode as encode35e4rpnc94tb5,
|
|
3186
|
+
forName as forName2faodmskqnoz5,
|
|
3187
|
+
isSupported as isSupported2nf870ypy50et,
|
|
3188
|
+
get_name as get_name2f11g4r0d5pxp,
|
|
3189
|
+
BytePacketBuilder as BytePacketBuilder2biodf4wxvlba,
|
|
3190
|
+
build as buildjygoh729rhy8,
|
|
3191
|
+
canRead as canRead1guo8vbveth0f,
|
|
3192
|
+
discard_0 as discard3ugntd47xyll6,
|
|
3193
|
+
readText_0 as readText27783kyxjxi1g,
|
|
3194
|
+
get_remaining as get_remaining1lapv95kcmm0y,
|
|
3195
|
+
get_size as get_size2imoy2jq11jxl,
|
|
3196
|
+
takeWhile as takeWhile34751tcfg6owx,
|
|
3197
|
+
toByteArray_0 as toByteArray1i3ns5jnoqlv6,
|
|
3198
|
+
writeFully_0 as writeFully359t6q8kam2g5,
|
|
3199
|
+
writePacket_0 as writePacket1weetk0dtcyx2,
|
|
3200
|
+
writeText as writeText19qfzm98fbm4l,
|
|
3201
|
+
get_ByteArrayPool as get_ByteArrayPool3f7yrgvqxz9ct,
|
|
3202
|
+
DefaultPool as DefaultPool2gb1fm4epwgu9,
|
|
3203
|
+
NoPoolImpl as NoPoolImplgos9n8jphzjp,
|
|
3204
|
+
ByteChannel as ByteChannel3cxdguezl3lu7,
|
|
3205
|
+
ByteReadChannel as ByteReadChannel1cb89sbyipkce,
|
|
3206
|
+
ByteReadChannel_1 as ByteReadChannel2wzou76jce72d,
|
|
3207
|
+
ClosedByteChannelException as ClosedByteChannelException3il8gfpye60w,
|
|
3208
|
+
WriterScope as WriterScope3b0bo1enaee6b,
|
|
3209
|
+
get_availableForRead as get_availableForRead28yb35u7qm4tu,
|
|
3210
|
+
cancel_0 as canceldn4b3cdqcfny,
|
|
3211
|
+
close_0 as close3semq7pafb42g,
|
|
3212
|
+
counted as counted3iniv3aql3f9n,
|
|
3213
|
+
invokeOnCompletion as invokeOnCompletionvmw9mjsupd6z,
|
|
3214
|
+
get_isCompleted as get_isCompleted2vv2dxgxvs29m,
|
|
3215
|
+
readText as readText3frapgncbqrcg,
|
|
3216
|
+
writer as writer1eia5its2a1fh,
|
|
3217
|
+
};
|
|
3218
|
+
//endregion
|
|
3219
|
+
|
|
3220
|
+
//# sourceMappingURL=ktor-ktor-io.mjs.map
|