c8y-nitro 0.1.0 → 0.1.1
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/README.md +19 -43
- package/dist/_virtual/rolldown_runtime.mjs +32 -0
- package/dist/client.d.mts +122 -0
- package/dist/client.mjs +63 -0
- package/dist/index.mjs +5 -2
- package/dist/module/docker.mjs +1 -1
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/index.mjs +63 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/Client.mjs +284 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/alarm/AlarmService.mjs +198 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/alarm/AlarmStatus.mjs +16 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/alarm/index.mjs +4 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationAvailability.mjs +12 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationBinaryService.mjs +166 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationService.mjs +604 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/ApplicationType.mjs +11 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/BillingMode.mjs +9 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/IApplicationInstanceDetails.mjs +11 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/Isolation.mjs +9 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/application/index.mjs +9 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/audit/AuditRecordType.mjs +33 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/audit/AuditService.mjs +95 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/audit/ChangeType.mjs +15 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/audit/index.mjs +5 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/BasicAuth.mjs +69 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/BearerAuth.mjs +52 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/BearerAuthFromSessionStorage.mjs +43 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/CookieAuth.mjs +53 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/FetchClient.mjs +82 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/MicroserviceClientRequestAuth.mjs +50 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/NodeJSCookieAuth.mjs +19 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/Paging.mjs +68 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/QueriesUtil.mjs +225 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/Service.mjs +186 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/Severity.mjs +18 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/core/index.mjs +13 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/device-registration/DeviceRegistrationBulkService.mjs +67 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/device-registration/DeviceRegistrationSecurityMode.mjs +13 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/device-registration/DeviceRegistrationService.mjs +362 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/device-registration/DeviceRegistrationStatus.mjs +16 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/device-registration/index.mjs +6 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/event/EventBinaryService.mjs +102 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/event/EventService.mjs +147 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/event/index.mjs +4 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/feature/FeatureService.mjs +89 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/feature/index.mjs +3 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/gettext-typed.mjs +7 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/gettext.mjs +9 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/identity/IdentityService.mjs +181 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/inventory/InventoryBinaryService.mjs +149 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/inventory/InventoryService.mjs +842 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/inventory/index.mjs +4 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/inventory-role/InventoryRoleService.mjs +139 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/inventory-role/index.mjs +3 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/measurement/ISeriesFilter.mjs +10 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/measurement/MeasurementService.mjs +205 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/measurement/index.mjs +4 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/operation/OperationBulkGeneralStatus.mjs +20 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/operation/OperationBulkService.mjs +157 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/operation/OperationBulkStatus.mjs +16 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/operation/OperationService.mjs +133 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/operation/OperationStatus.mjs +16 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/operation/index.mjs +7 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/public_api.mjs +84 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/realtime/MetaChannel.mjs +11 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/realtime/Realtime.mjs +103 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/realtime/index.mjs +3 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/services.mjs +54 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/smart-groups/SmartGroupsService.mjs +158 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/smart-rules/SmartRulesService.mjs +158 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/smart-rules/index.mjs +3 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/system-options/SystemOptionsService.mjs +82 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/system-options/index.mjs +3 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant/TenantService.mjs +373 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant/TenantStatus.mjs +11 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant/TfaStrategy.mjs +14 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant/index.mjs +5 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-login-options/ITenantLoginOptions.mjs +29 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-login-options/TenantLoginOptionsService.mjs +217 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-login-options/index.mjs +4 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-options/TenantOptionsService.mjs +183 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-options/index.mjs +3 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-security-options/TenantSecurityOptionsService.mjs +52 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/tenant-security-options/index.mjs +3 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/trusted-certificates/CrlService.mjs +112 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/trusted-certificates/TrustedCertificateService.mjs +299 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/trusted-certificates/index.mjs +4 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user/PasswordStrength.mjs +10 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user/UserInventoryRoleService.mjs +133 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user/UserService.mjs +730 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user/index.mjs +5 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user-group/UserGroupService.mjs +306 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user-group/index.mjs +3 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user-role/UserRoleService.mjs +70 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/esm2015/src/user-role/index.mjs +3 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/Client.d.mts +218 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/alarm/AlarmService.d.mts +153 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/alarm/AlarmStatus.d.mts +15 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/alarm/IAlarm.d.mts +84 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/alarm/SeverityFilter.d.mts +6 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/ApplicationAvailability.d.mts +8 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/ApplicationBinaryService.d.mts +46 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/ApplicationService.d.mts +339 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/ApplicationType.d.mts +9 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/BillingMode.d.mts +7 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IApplication.d.mts +30 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IApplicationBinary.d.mts +12 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IApplicationInstanceDetails.d.mts +71 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IApplicationReference.d.mts +19 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IApplicationVersion.d.mts +17 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IDeviceRegistrationProvider.d.mts +9 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IManifest.d.mts +81 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IProvider.d.mts +8 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/IUploadParamsOverride.d.mts +9 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/application/Isolation.d.mts +7 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/audit/AuditRecordType.d.mts +32 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/audit/AuditService.d.mts +77 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/audit/ChangeType.d.mts +11 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/audit/IAuditRecord.d.mts +39 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/audit/IChange.d.mts +31 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/BasicAuth.d.mts +35 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/BearerAuth.d.mts +21 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/BearerAuthFromSessionStorage.d.mts +24 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/CookieAuth.d.mts +26 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/FetchClient.d.mts +24 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IAuthentication.d.mts +27 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/ICustomProperties.d.mts +10 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/ICustomPropertiesMap.d.mts +8 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IFetchClient.d.mts +13 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IFetchOptions.d.mts +24 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IFetchResponse.d.mts +28 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IIdentified.d.mts +8 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IMicroserviceSubscriptions.d.mts +18 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/INamed.d.mts +8 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IResult.d.mts +29 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IResultBase.d.mts +9 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/IResultList.d.mts +39 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/ISource.d.mts +20 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/MicroserviceClientRequestAuth.d.mts +36 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/NodeJSCookieAuth.d.mts +14 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/Paging.d.mts +70 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/QueriesUtil.d.mts +168 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/Service.d.mts +48 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/core/Severity.d.mts +17 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/DeviceRegistrationBulkService.d.mts +43 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/DeviceRegistrationSecurityMode.d.mts +11 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/DeviceRegistrationService.d.mts +296 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/DeviceRegistrationStatus.d.mts +12 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/IDeviceCredentials.d.mts +25 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/IDeviceRegistration.d.mts +79 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/device-registration/IDeviceRegistrationBulkResult.d.mts +29 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/event/EventBinaryService.d.mts +67 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/event/EventService.d.mts +120 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/event/IEvent.d.mts +42 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/event/IEventBinary.d.mts +28 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/feature/FeatureService.d.mts +59 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/feature/IFeatureToggle.d.mts +30 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/identity/IExternalIdentity.d.mts +27 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/identity/IdentityService.d.mts +107 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/inventory/IManagedObject.d.mts +95 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/inventory/InventoryBinaryService.d.mts +50 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/inventory/InventoryService.d.mts +594 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/inventory-role/InventoryRoleService.d.mts +111 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/measurement/IMeasurement.d.mts +61 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/measurement/IMeasurementFilter.d.mts +59 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/measurement/ISeries.d.mts +60 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/measurement/ISeriesFilter.d.mts +48 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/measurement/MeasurementService.d.mts +163 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/IOperation.d.mts +27 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/IOperationBulk.d.mts +58 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/IOperationBulkProgress.d.mts +29 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/OperationBulkGeneralStatus.d.mts +16 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/OperationBulkService.d.mts +130 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/OperationBulkStatus.d.mts +12 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/OperationService.d.mts +111 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/operation/OperationStatus.d.mts +12 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/realtime/Realtime.d.mts +69 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/smart-groups/SmartGroupsService.d.mts +126 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/smart-rules/IRule.d.mts +22 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/smart-rules/SmartRulesService.d.mts +90 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/system-options/ISystemOption.d.mts +21 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/system-options/SystemOptionsService.d.mts +57 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/ICurrentTenant.d.mts +25 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/ISupportUser.d.mts +8 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/ITenant.d.mts +28 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/ITenantReference.d.mts +8 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/ITfaSettings.d.mts +32 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/TenantService.d.mts +264 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/TenantStatus.d.mts +7 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant/TfaStrategy.d.mts +12 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-login-options/ITenantLoginOptions.d.mts +159 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-login-options/TenantLoginOptionsService.d.mts +176 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-options/ITenantOption.d.mts +12 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-options/ITenantOptionDetailParams.d.mts +13 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-options/TenantOptionsService.d.mts +150 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-policy/ITenantPolicy.d.mts +13 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-security-options/ITenantSecurityOption.d.mts +10 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/tenant-security-options/TenantSecurityOptionsService.d.mts +39 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/trusted-certificates/CrlService.d.mts +75 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/trusted-certificates/ICertificateRevocation.d.mts +14 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/trusted-certificates/ITrustedCertificate.d.mts +75 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/trusted-certificates/TrustedCertificateService.d.mts +181 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/ICurrentUser.d.mts +39 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/IResetPassword.d.mts +15 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/ITotp.d.mts +9 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/ITotpStatus.d.mts +7 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/IUser.d.mts +77 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/IUserInventoryRole.d.mts +16 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/PasswordStrength.d.mts +8 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/UserInventoryRoleService.d.mts +108 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user/UserService.d.mts +400 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user-group/IDevicePermissions.d.mts +8 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user-group/IUserGroup.d.mts +44 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user-group/UserGroupService.d.mts +215 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user-role/IRole.d.mts +12 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user-role/IRoleReference.d.mts +19 -0
- package/dist/node_modules/.pnpm/@c8y_client@1023.17.8_encoding@0.1.13/node_modules/@c8y/client/lib/src/user-role/UserRoleService.d.mts +57 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.mjs +18 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.mjs +29 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.mjs +32 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.mjs +21 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.mjs +47 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.mjs +33 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.mjs +26 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.mjs +40 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.mjs +24 -0
- package/dist/node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.mjs +62 -0
- package/dist/node_modules/.pnpm/b2a@1.1.2/node_modules/b2a/lib/index.mjs +44 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.mjs +20 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.mjs +12 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.mjs +12 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.mjs +23 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.mjs +12 -0
- package/dist/node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.mjs +158 -0
- package/dist/node_modules/.pnpm/cometd-nodejs-client@1.0.2/node_modules/cometd-nodejs-client/cometd-nodejs-client.mjs +120 -0
- package/dist/node_modules/.pnpm/cometd@4.0.8/node_modules/cometd/cometd.mjs +2658 -0
- package/dist/node_modules/.pnpm/cross-fetch@4.1.0_encoding@0.1.13/node_modules/cross-fetch/dist/node-ponyfill.mjs +24 -0
- package/dist/node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.mjs +84 -0
- package/dist/node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.mjs +27 -0
- package/dist/node_modules/.pnpm/encoding@0.1.13/node_modules/encoding/lib/encoding.mjs +60 -0
- package/dist/node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.mjs +18 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.mjs +12 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.mjs +12 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.mjs +12 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.mjs +12 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.mjs +12 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.mjs +12 -0
- package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.mjs +12 -0
- package/dist/node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.mjs +12 -0
- package/dist/node_modules/.pnpm/es-set-tostringtag@2.1.0/node_modules/es-set-tostringtag/index.mjs +32 -0
- package/dist/node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/index.d.mts +50 -0
- package/dist/node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/form_data.mjs +247 -0
- package/dist/node_modules/.pnpm/form-data@4.0.4/node_modules/form-data/lib/populate.mjs +16 -0
- package/dist/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +58 -0
- package/dist/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +13 -0
- package/dist/node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.mjs +357 -0
- package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.mjs +14 -0
- package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.mjs +12 -0
- package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.mjs +25 -0
- package/dist/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.mjs +12 -0
- package/dist/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.mjs +19 -0
- package/dist/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.mjs +21 -0
- package/dist/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.mjs +35 -0
- package/dist/node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.mjs +16 -0
- package/dist/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +16 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +349 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +194 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +34 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +141 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +53 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +458 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +154 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +172 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2587 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2223 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +230 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +428 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +430 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +233 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +295 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +126 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +198 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +183 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +45 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +110 -0
- package/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +93 -0
- package/dist/node_modules/.pnpm/isomorphic-cometd@1.1.0_cometd-nodejs-client@1.0.2_cometd@4.0.8/node_modules/isomorphic-cometd/node.mjs +18 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.mjs +12 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.mjs +12 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.mjs +14 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.mjs +12 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.mjs +12 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.mjs +12 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.mjs +12 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.mjs +17 -0
- package/dist/node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/db.mjs +7051 -0
- package/dist/node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.mjs +21 -0
- package/dist/node_modules/.pnpm/mime-types@2.1.35/node_modules/mime-types/index.mjs +123 -0
- package/dist/node_modules/.pnpm/node-fetch@2.7.0_encoding@0.1.13/node_modules/node-fetch/lib/index.mjs +1174 -0
- package/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +48 -0
- package/dist/node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/index.mjs +145 -0
- package/dist/node_modules/.pnpm/tr46@0.0.3/node_modules/tr46/lib/mappingTable.mjs +35563 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs +31 -0
- package/dist/node_modules/.pnpm/webidl-conversions@3.0.1/node_modules/webidl-conversions/lib/index.mjs +122 -0
- package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL-impl.mjs +145 -0
- package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/URL.mjs +174 -0
- package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/public-api.mjs +21 -0
- package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/url-state-machine.mjs +878 -0
- package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/utils.mjs +22 -0
- package/dist/package.mjs +1 -1
- package/dist/utils/client.d.mts +1 -1
- package/dist/utils/client.mjs +4 -1
- package/dist/utils/credentials.d.mts +1 -1
- package/dist/utils/credentials.mjs +2 -1
- package/dist/utils/resources.d.mts +1 -1
- package/package.json +8 -4
package/dist/node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/url-state-machine.mjs
ADDED
|
@@ -0,0 +1,878 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_tr46 } from "../../../../tr46@0.0.3/node_modules/tr46/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region node_modules/.pnpm/whatwg-url@5.0.0/node_modules/whatwg-url/lib/url-state-machine.js
|
|
5
|
+
var require_url_state_machine = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
+
const punycode = __require("punycode");
|
|
7
|
+
const tr46 = require_tr46();
|
|
8
|
+
const specialSchemes = {
|
|
9
|
+
ftp: 21,
|
|
10
|
+
file: null,
|
|
11
|
+
gopher: 70,
|
|
12
|
+
http: 80,
|
|
13
|
+
https: 443,
|
|
14
|
+
ws: 80,
|
|
15
|
+
wss: 443
|
|
16
|
+
};
|
|
17
|
+
const failure = Symbol("failure");
|
|
18
|
+
function countSymbols(str) {
|
|
19
|
+
return punycode.ucs2.decode(str).length;
|
|
20
|
+
}
|
|
21
|
+
function at(input, idx) {
|
|
22
|
+
const c = input[idx];
|
|
23
|
+
return isNaN(c) ? void 0 : String.fromCodePoint(c);
|
|
24
|
+
}
|
|
25
|
+
function isASCIIDigit(c) {
|
|
26
|
+
return c >= 48 && c <= 57;
|
|
27
|
+
}
|
|
28
|
+
function isASCIIAlpha(c) {
|
|
29
|
+
return c >= 65 && c <= 90 || c >= 97 && c <= 122;
|
|
30
|
+
}
|
|
31
|
+
function isASCIIAlphanumeric(c) {
|
|
32
|
+
return isASCIIAlpha(c) || isASCIIDigit(c);
|
|
33
|
+
}
|
|
34
|
+
function isASCIIHex(c) {
|
|
35
|
+
return isASCIIDigit(c) || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
36
|
+
}
|
|
37
|
+
function isSingleDot(buffer) {
|
|
38
|
+
return buffer === "." || buffer.toLowerCase() === "%2e";
|
|
39
|
+
}
|
|
40
|
+
function isDoubleDot(buffer) {
|
|
41
|
+
buffer = buffer.toLowerCase();
|
|
42
|
+
return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e";
|
|
43
|
+
}
|
|
44
|
+
function isWindowsDriveLetterCodePoints(cp1, cp2) {
|
|
45
|
+
return isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124);
|
|
46
|
+
}
|
|
47
|
+
function isWindowsDriveLetterString(string) {
|
|
48
|
+
return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|");
|
|
49
|
+
}
|
|
50
|
+
function isNormalizedWindowsDriveLetterString(string) {
|
|
51
|
+
return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && string[1] === ":";
|
|
52
|
+
}
|
|
53
|
+
function containsForbiddenHostCodePoint(string) {
|
|
54
|
+
return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1;
|
|
55
|
+
}
|
|
56
|
+
function containsForbiddenHostCodePointExcludingPercent(string) {
|
|
57
|
+
return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1;
|
|
58
|
+
}
|
|
59
|
+
function isSpecialScheme(scheme) {
|
|
60
|
+
return specialSchemes[scheme] !== void 0;
|
|
61
|
+
}
|
|
62
|
+
function isSpecial(url) {
|
|
63
|
+
return isSpecialScheme(url.scheme);
|
|
64
|
+
}
|
|
65
|
+
function defaultPort(scheme) {
|
|
66
|
+
return specialSchemes[scheme];
|
|
67
|
+
}
|
|
68
|
+
function percentEncode(c) {
|
|
69
|
+
let hex = c.toString(16).toUpperCase();
|
|
70
|
+
if (hex.length === 1) hex = "0" + hex;
|
|
71
|
+
return "%" + hex;
|
|
72
|
+
}
|
|
73
|
+
function utf8PercentEncode(c) {
|
|
74
|
+
const buf = new Buffer(c);
|
|
75
|
+
let str = "";
|
|
76
|
+
for (let i = 0; i < buf.length; ++i) str += percentEncode(buf[i]);
|
|
77
|
+
return str;
|
|
78
|
+
}
|
|
79
|
+
function utf8PercentDecode(str) {
|
|
80
|
+
const input = new Buffer(str);
|
|
81
|
+
const output = [];
|
|
82
|
+
for (let i = 0; i < input.length; ++i) if (input[i] !== 37) output.push(input[i]);
|
|
83
|
+
else if (input[i] === 37 && isASCIIHex(input[i + 1]) && isASCIIHex(input[i + 2])) {
|
|
84
|
+
output.push(parseInt(input.slice(i + 1, i + 3).toString(), 16));
|
|
85
|
+
i += 2;
|
|
86
|
+
} else output.push(input[i]);
|
|
87
|
+
return new Buffer(output).toString();
|
|
88
|
+
}
|
|
89
|
+
function isC0ControlPercentEncode(c) {
|
|
90
|
+
return c <= 31 || c > 126;
|
|
91
|
+
}
|
|
92
|
+
const extraPathPercentEncodeSet = new Set([
|
|
93
|
+
32,
|
|
94
|
+
34,
|
|
95
|
+
35,
|
|
96
|
+
60,
|
|
97
|
+
62,
|
|
98
|
+
63,
|
|
99
|
+
96,
|
|
100
|
+
123,
|
|
101
|
+
125
|
|
102
|
+
]);
|
|
103
|
+
function isPathPercentEncode(c) {
|
|
104
|
+
return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c);
|
|
105
|
+
}
|
|
106
|
+
const extraUserinfoPercentEncodeSet = new Set([
|
|
107
|
+
47,
|
|
108
|
+
58,
|
|
109
|
+
59,
|
|
110
|
+
61,
|
|
111
|
+
64,
|
|
112
|
+
91,
|
|
113
|
+
92,
|
|
114
|
+
93,
|
|
115
|
+
94,
|
|
116
|
+
124
|
|
117
|
+
]);
|
|
118
|
+
function isUserinfoPercentEncode(c) {
|
|
119
|
+
return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c);
|
|
120
|
+
}
|
|
121
|
+
function percentEncodeChar(c, encodeSetPredicate) {
|
|
122
|
+
const cStr = String.fromCodePoint(c);
|
|
123
|
+
if (encodeSetPredicate(c)) return utf8PercentEncode(cStr);
|
|
124
|
+
return cStr;
|
|
125
|
+
}
|
|
126
|
+
function parseIPv4Number(input) {
|
|
127
|
+
let R = 10;
|
|
128
|
+
if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") {
|
|
129
|
+
input = input.substring(2);
|
|
130
|
+
R = 16;
|
|
131
|
+
} else if (input.length >= 2 && input.charAt(0) === "0") {
|
|
132
|
+
input = input.substring(1);
|
|
133
|
+
R = 8;
|
|
134
|
+
}
|
|
135
|
+
if (input === "") return 0;
|
|
136
|
+
if ((R === 10 ? /[^0-9]/ : R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/).test(input)) return failure;
|
|
137
|
+
return parseInt(input, R);
|
|
138
|
+
}
|
|
139
|
+
function parseIPv4(input) {
|
|
140
|
+
const parts = input.split(".");
|
|
141
|
+
if (parts[parts.length - 1] === "") {
|
|
142
|
+
if (parts.length > 1) parts.pop();
|
|
143
|
+
}
|
|
144
|
+
if (parts.length > 4) return input;
|
|
145
|
+
const numbers = [];
|
|
146
|
+
for (const part of parts) {
|
|
147
|
+
if (part === "") return input;
|
|
148
|
+
const n = parseIPv4Number(part);
|
|
149
|
+
if (n === failure) return input;
|
|
150
|
+
numbers.push(n);
|
|
151
|
+
}
|
|
152
|
+
for (let i = 0; i < numbers.length - 1; ++i) if (numbers[i] > 255) return failure;
|
|
153
|
+
if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) return failure;
|
|
154
|
+
let ipv4 = numbers.pop();
|
|
155
|
+
let counter = 0;
|
|
156
|
+
for (const n of numbers) {
|
|
157
|
+
ipv4 += n * Math.pow(256, 3 - counter);
|
|
158
|
+
++counter;
|
|
159
|
+
}
|
|
160
|
+
return ipv4;
|
|
161
|
+
}
|
|
162
|
+
function serializeIPv4(address) {
|
|
163
|
+
let output = "";
|
|
164
|
+
let n = address;
|
|
165
|
+
for (let i = 1; i <= 4; ++i) {
|
|
166
|
+
output = String(n % 256) + output;
|
|
167
|
+
if (i !== 4) output = "." + output;
|
|
168
|
+
n = Math.floor(n / 256);
|
|
169
|
+
}
|
|
170
|
+
return output;
|
|
171
|
+
}
|
|
172
|
+
function parseIPv6(input) {
|
|
173
|
+
const address = [
|
|
174
|
+
0,
|
|
175
|
+
0,
|
|
176
|
+
0,
|
|
177
|
+
0,
|
|
178
|
+
0,
|
|
179
|
+
0,
|
|
180
|
+
0,
|
|
181
|
+
0
|
|
182
|
+
];
|
|
183
|
+
let pieceIndex = 0;
|
|
184
|
+
let compress = null;
|
|
185
|
+
let pointer = 0;
|
|
186
|
+
input = punycode.ucs2.decode(input);
|
|
187
|
+
if (input[pointer] === 58) {
|
|
188
|
+
if (input[pointer + 1] !== 58) return failure;
|
|
189
|
+
pointer += 2;
|
|
190
|
+
++pieceIndex;
|
|
191
|
+
compress = pieceIndex;
|
|
192
|
+
}
|
|
193
|
+
while (pointer < input.length) {
|
|
194
|
+
if (pieceIndex === 8) return failure;
|
|
195
|
+
if (input[pointer] === 58) {
|
|
196
|
+
if (compress !== null) return failure;
|
|
197
|
+
++pointer;
|
|
198
|
+
++pieceIndex;
|
|
199
|
+
compress = pieceIndex;
|
|
200
|
+
continue;
|
|
201
|
+
}
|
|
202
|
+
let value = 0;
|
|
203
|
+
let length = 0;
|
|
204
|
+
while (length < 4 && isASCIIHex(input[pointer])) {
|
|
205
|
+
value = value * 16 + parseInt(at(input, pointer), 16);
|
|
206
|
+
++pointer;
|
|
207
|
+
++length;
|
|
208
|
+
}
|
|
209
|
+
if (input[pointer] === 46) {
|
|
210
|
+
if (length === 0) return failure;
|
|
211
|
+
pointer -= length;
|
|
212
|
+
if (pieceIndex > 6) return failure;
|
|
213
|
+
let numbersSeen = 0;
|
|
214
|
+
while (input[pointer] !== void 0) {
|
|
215
|
+
let ipv4Piece = null;
|
|
216
|
+
if (numbersSeen > 0) if (input[pointer] === 46 && numbersSeen < 4) ++pointer;
|
|
217
|
+
else return failure;
|
|
218
|
+
if (!isASCIIDigit(input[pointer])) return failure;
|
|
219
|
+
while (isASCIIDigit(input[pointer])) {
|
|
220
|
+
const number = parseInt(at(input, pointer));
|
|
221
|
+
if (ipv4Piece === null) ipv4Piece = number;
|
|
222
|
+
else if (ipv4Piece === 0) return failure;
|
|
223
|
+
else ipv4Piece = ipv4Piece * 10 + number;
|
|
224
|
+
if (ipv4Piece > 255) return failure;
|
|
225
|
+
++pointer;
|
|
226
|
+
}
|
|
227
|
+
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
|
|
228
|
+
++numbersSeen;
|
|
229
|
+
if (numbersSeen === 2 || numbersSeen === 4) ++pieceIndex;
|
|
230
|
+
}
|
|
231
|
+
if (numbersSeen !== 4) return failure;
|
|
232
|
+
break;
|
|
233
|
+
} else if (input[pointer] === 58) {
|
|
234
|
+
++pointer;
|
|
235
|
+
if (input[pointer] === void 0) return failure;
|
|
236
|
+
} else if (input[pointer] !== void 0) return failure;
|
|
237
|
+
address[pieceIndex] = value;
|
|
238
|
+
++pieceIndex;
|
|
239
|
+
}
|
|
240
|
+
if (compress !== null) {
|
|
241
|
+
let swaps = pieceIndex - compress;
|
|
242
|
+
pieceIndex = 7;
|
|
243
|
+
while (pieceIndex !== 0 && swaps > 0) {
|
|
244
|
+
const temp = address[compress + swaps - 1];
|
|
245
|
+
address[compress + swaps - 1] = address[pieceIndex];
|
|
246
|
+
address[pieceIndex] = temp;
|
|
247
|
+
--pieceIndex;
|
|
248
|
+
--swaps;
|
|
249
|
+
}
|
|
250
|
+
} else if (compress === null && pieceIndex !== 8) return failure;
|
|
251
|
+
return address;
|
|
252
|
+
}
|
|
253
|
+
function serializeIPv6(address) {
|
|
254
|
+
let output = "";
|
|
255
|
+
const compress = findLongestZeroSequence(address).idx;
|
|
256
|
+
let ignore0 = false;
|
|
257
|
+
for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) {
|
|
258
|
+
if (ignore0 && address[pieceIndex] === 0) continue;
|
|
259
|
+
else if (ignore0) ignore0 = false;
|
|
260
|
+
if (compress === pieceIndex) {
|
|
261
|
+
output += pieceIndex === 0 ? "::" : ":";
|
|
262
|
+
ignore0 = true;
|
|
263
|
+
continue;
|
|
264
|
+
}
|
|
265
|
+
output += address[pieceIndex].toString(16);
|
|
266
|
+
if (pieceIndex !== 7) output += ":";
|
|
267
|
+
}
|
|
268
|
+
return output;
|
|
269
|
+
}
|
|
270
|
+
function parseHost(input, isSpecialArg) {
|
|
271
|
+
if (input[0] === "[") {
|
|
272
|
+
if (input[input.length - 1] !== "]") return failure;
|
|
273
|
+
return parseIPv6(input.substring(1, input.length - 1));
|
|
274
|
+
}
|
|
275
|
+
if (!isSpecialArg) return parseOpaqueHost(input);
|
|
276
|
+
const domain = utf8PercentDecode(input);
|
|
277
|
+
const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false);
|
|
278
|
+
if (asciiDomain === null) return failure;
|
|
279
|
+
if (containsForbiddenHostCodePoint(asciiDomain)) return failure;
|
|
280
|
+
const ipv4Host = parseIPv4(asciiDomain);
|
|
281
|
+
if (typeof ipv4Host === "number" || ipv4Host === failure) return ipv4Host;
|
|
282
|
+
return asciiDomain;
|
|
283
|
+
}
|
|
284
|
+
function parseOpaqueHost(input) {
|
|
285
|
+
if (containsForbiddenHostCodePointExcludingPercent(input)) return failure;
|
|
286
|
+
let output = "";
|
|
287
|
+
const decoded = punycode.ucs2.decode(input);
|
|
288
|
+
for (let i = 0; i < decoded.length; ++i) output += percentEncodeChar(decoded[i], isC0ControlPercentEncode);
|
|
289
|
+
return output;
|
|
290
|
+
}
|
|
291
|
+
function findLongestZeroSequence(arr) {
|
|
292
|
+
let maxIdx = null;
|
|
293
|
+
let maxLen = 1;
|
|
294
|
+
let currStart = null;
|
|
295
|
+
let currLen = 0;
|
|
296
|
+
for (let i = 0; i < arr.length; ++i) if (arr[i] !== 0) {
|
|
297
|
+
if (currLen > maxLen) {
|
|
298
|
+
maxIdx = currStart;
|
|
299
|
+
maxLen = currLen;
|
|
300
|
+
}
|
|
301
|
+
currStart = null;
|
|
302
|
+
currLen = 0;
|
|
303
|
+
} else {
|
|
304
|
+
if (currStart === null) currStart = i;
|
|
305
|
+
++currLen;
|
|
306
|
+
}
|
|
307
|
+
if (currLen > maxLen) {
|
|
308
|
+
maxIdx = currStart;
|
|
309
|
+
maxLen = currLen;
|
|
310
|
+
}
|
|
311
|
+
return {
|
|
312
|
+
idx: maxIdx,
|
|
313
|
+
len: maxLen
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
function serializeHost(host) {
|
|
317
|
+
if (typeof host === "number") return serializeIPv4(host);
|
|
318
|
+
if (host instanceof Array) return "[" + serializeIPv6(host) + "]";
|
|
319
|
+
return host;
|
|
320
|
+
}
|
|
321
|
+
function trimControlChars(url) {
|
|
322
|
+
return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
|
|
323
|
+
}
|
|
324
|
+
function trimTabAndNewline(url) {
|
|
325
|
+
return url.replace(/\u0009|\u000A|\u000D/g, "");
|
|
326
|
+
}
|
|
327
|
+
function shortenPath(url) {
|
|
328
|
+
const path = url.path;
|
|
329
|
+
if (path.length === 0) return;
|
|
330
|
+
if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) return;
|
|
331
|
+
path.pop();
|
|
332
|
+
}
|
|
333
|
+
function includesCredentials(url) {
|
|
334
|
+
return url.username !== "" || url.password !== "";
|
|
335
|
+
}
|
|
336
|
+
function cannotHaveAUsernamePasswordPort(url) {
|
|
337
|
+
return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file";
|
|
338
|
+
}
|
|
339
|
+
function isNormalizedWindowsDriveLetter(string) {
|
|
340
|
+
return /^[A-Za-z]:$/.test(string);
|
|
341
|
+
}
|
|
342
|
+
function URLStateMachine(input, base, encodingOverride, url, stateOverride) {
|
|
343
|
+
this.pointer = 0;
|
|
344
|
+
this.input = input;
|
|
345
|
+
this.base = base || null;
|
|
346
|
+
this.encodingOverride = encodingOverride || "utf-8";
|
|
347
|
+
this.stateOverride = stateOverride;
|
|
348
|
+
this.url = url;
|
|
349
|
+
this.failure = false;
|
|
350
|
+
this.parseError = false;
|
|
351
|
+
if (!this.url) {
|
|
352
|
+
this.url = {
|
|
353
|
+
scheme: "",
|
|
354
|
+
username: "",
|
|
355
|
+
password: "",
|
|
356
|
+
host: null,
|
|
357
|
+
port: null,
|
|
358
|
+
path: [],
|
|
359
|
+
query: null,
|
|
360
|
+
fragment: null,
|
|
361
|
+
cannotBeABaseURL: false
|
|
362
|
+
};
|
|
363
|
+
const res = trimControlChars(this.input);
|
|
364
|
+
if (res !== this.input) this.parseError = true;
|
|
365
|
+
this.input = res;
|
|
366
|
+
}
|
|
367
|
+
const res = trimTabAndNewline(this.input);
|
|
368
|
+
if (res !== this.input) this.parseError = true;
|
|
369
|
+
this.input = res;
|
|
370
|
+
this.state = stateOverride || "scheme start";
|
|
371
|
+
this.buffer = "";
|
|
372
|
+
this.atFlag = false;
|
|
373
|
+
this.arrFlag = false;
|
|
374
|
+
this.passwordTokenSeenFlag = false;
|
|
375
|
+
this.input = punycode.ucs2.decode(this.input);
|
|
376
|
+
for (; this.pointer <= this.input.length; ++this.pointer) {
|
|
377
|
+
const c = this.input[this.pointer];
|
|
378
|
+
const cStr = isNaN(c) ? void 0 : String.fromCodePoint(c);
|
|
379
|
+
const ret = this["parse " + this.state](c, cStr);
|
|
380
|
+
if (!ret) break;
|
|
381
|
+
else if (ret === failure) {
|
|
382
|
+
this.failure = true;
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) {
|
|
388
|
+
if (isASCIIAlpha(c)) {
|
|
389
|
+
this.buffer += cStr.toLowerCase();
|
|
390
|
+
this.state = "scheme";
|
|
391
|
+
} else if (!this.stateOverride) {
|
|
392
|
+
this.state = "no scheme";
|
|
393
|
+
--this.pointer;
|
|
394
|
+
} else {
|
|
395
|
+
this.parseError = true;
|
|
396
|
+
return failure;
|
|
397
|
+
}
|
|
398
|
+
return true;
|
|
399
|
+
};
|
|
400
|
+
URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) {
|
|
401
|
+
if (isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) this.buffer += cStr.toLowerCase();
|
|
402
|
+
else if (c === 58) {
|
|
403
|
+
if (this.stateOverride) {
|
|
404
|
+
if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) return false;
|
|
405
|
+
if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) return false;
|
|
406
|
+
if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") return false;
|
|
407
|
+
if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) return false;
|
|
408
|
+
}
|
|
409
|
+
this.url.scheme = this.buffer;
|
|
410
|
+
this.buffer = "";
|
|
411
|
+
if (this.stateOverride) return false;
|
|
412
|
+
if (this.url.scheme === "file") {
|
|
413
|
+
if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) this.parseError = true;
|
|
414
|
+
this.state = "file";
|
|
415
|
+
} else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) this.state = "special relative or authority";
|
|
416
|
+
else if (isSpecial(this.url)) this.state = "special authority slashes";
|
|
417
|
+
else if (this.input[this.pointer + 1] === 47) {
|
|
418
|
+
this.state = "path or authority";
|
|
419
|
+
++this.pointer;
|
|
420
|
+
} else {
|
|
421
|
+
this.url.cannotBeABaseURL = true;
|
|
422
|
+
this.url.path.push("");
|
|
423
|
+
this.state = "cannot-be-a-base-URL path";
|
|
424
|
+
}
|
|
425
|
+
} else if (!this.stateOverride) {
|
|
426
|
+
this.buffer = "";
|
|
427
|
+
this.state = "no scheme";
|
|
428
|
+
this.pointer = -1;
|
|
429
|
+
} else {
|
|
430
|
+
this.parseError = true;
|
|
431
|
+
return failure;
|
|
432
|
+
}
|
|
433
|
+
return true;
|
|
434
|
+
};
|
|
435
|
+
URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) {
|
|
436
|
+
if (this.base === null || this.base.cannotBeABaseURL && c !== 35) return failure;
|
|
437
|
+
else if (this.base.cannotBeABaseURL && c === 35) {
|
|
438
|
+
this.url.scheme = this.base.scheme;
|
|
439
|
+
this.url.path = this.base.path.slice();
|
|
440
|
+
this.url.query = this.base.query;
|
|
441
|
+
this.url.fragment = "";
|
|
442
|
+
this.url.cannotBeABaseURL = true;
|
|
443
|
+
this.state = "fragment";
|
|
444
|
+
} else if (this.base.scheme === "file") {
|
|
445
|
+
this.state = "file";
|
|
446
|
+
--this.pointer;
|
|
447
|
+
} else {
|
|
448
|
+
this.state = "relative";
|
|
449
|
+
--this.pointer;
|
|
450
|
+
}
|
|
451
|
+
return true;
|
|
452
|
+
};
|
|
453
|
+
URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) {
|
|
454
|
+
if (c === 47 && this.input[this.pointer + 1] === 47) {
|
|
455
|
+
this.state = "special authority ignore slashes";
|
|
456
|
+
++this.pointer;
|
|
457
|
+
} else {
|
|
458
|
+
this.parseError = true;
|
|
459
|
+
this.state = "relative";
|
|
460
|
+
--this.pointer;
|
|
461
|
+
}
|
|
462
|
+
return true;
|
|
463
|
+
};
|
|
464
|
+
URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) {
|
|
465
|
+
if (c === 47) this.state = "authority";
|
|
466
|
+
else {
|
|
467
|
+
this.state = "path";
|
|
468
|
+
--this.pointer;
|
|
469
|
+
}
|
|
470
|
+
return true;
|
|
471
|
+
};
|
|
472
|
+
URLStateMachine.prototype["parse relative"] = function parseRelative(c) {
|
|
473
|
+
this.url.scheme = this.base.scheme;
|
|
474
|
+
if (isNaN(c)) {
|
|
475
|
+
this.url.username = this.base.username;
|
|
476
|
+
this.url.password = this.base.password;
|
|
477
|
+
this.url.host = this.base.host;
|
|
478
|
+
this.url.port = this.base.port;
|
|
479
|
+
this.url.path = this.base.path.slice();
|
|
480
|
+
this.url.query = this.base.query;
|
|
481
|
+
} else if (c === 47) this.state = "relative slash";
|
|
482
|
+
else if (c === 63) {
|
|
483
|
+
this.url.username = this.base.username;
|
|
484
|
+
this.url.password = this.base.password;
|
|
485
|
+
this.url.host = this.base.host;
|
|
486
|
+
this.url.port = this.base.port;
|
|
487
|
+
this.url.path = this.base.path.slice();
|
|
488
|
+
this.url.query = "";
|
|
489
|
+
this.state = "query";
|
|
490
|
+
} else if (c === 35) {
|
|
491
|
+
this.url.username = this.base.username;
|
|
492
|
+
this.url.password = this.base.password;
|
|
493
|
+
this.url.host = this.base.host;
|
|
494
|
+
this.url.port = this.base.port;
|
|
495
|
+
this.url.path = this.base.path.slice();
|
|
496
|
+
this.url.query = this.base.query;
|
|
497
|
+
this.url.fragment = "";
|
|
498
|
+
this.state = "fragment";
|
|
499
|
+
} else if (isSpecial(this.url) && c === 92) {
|
|
500
|
+
this.parseError = true;
|
|
501
|
+
this.state = "relative slash";
|
|
502
|
+
} else {
|
|
503
|
+
this.url.username = this.base.username;
|
|
504
|
+
this.url.password = this.base.password;
|
|
505
|
+
this.url.host = this.base.host;
|
|
506
|
+
this.url.port = this.base.port;
|
|
507
|
+
this.url.path = this.base.path.slice(0, this.base.path.length - 1);
|
|
508
|
+
this.state = "path";
|
|
509
|
+
--this.pointer;
|
|
510
|
+
}
|
|
511
|
+
return true;
|
|
512
|
+
};
|
|
513
|
+
URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) {
|
|
514
|
+
if (isSpecial(this.url) && (c === 47 || c === 92)) {
|
|
515
|
+
if (c === 92) this.parseError = true;
|
|
516
|
+
this.state = "special authority ignore slashes";
|
|
517
|
+
} else if (c === 47) this.state = "authority";
|
|
518
|
+
else {
|
|
519
|
+
this.url.username = this.base.username;
|
|
520
|
+
this.url.password = this.base.password;
|
|
521
|
+
this.url.host = this.base.host;
|
|
522
|
+
this.url.port = this.base.port;
|
|
523
|
+
this.state = "path";
|
|
524
|
+
--this.pointer;
|
|
525
|
+
}
|
|
526
|
+
return true;
|
|
527
|
+
};
|
|
528
|
+
URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) {
|
|
529
|
+
if (c === 47 && this.input[this.pointer + 1] === 47) {
|
|
530
|
+
this.state = "special authority ignore slashes";
|
|
531
|
+
++this.pointer;
|
|
532
|
+
} else {
|
|
533
|
+
this.parseError = true;
|
|
534
|
+
this.state = "special authority ignore slashes";
|
|
535
|
+
--this.pointer;
|
|
536
|
+
}
|
|
537
|
+
return true;
|
|
538
|
+
};
|
|
539
|
+
URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) {
|
|
540
|
+
if (c !== 47 && c !== 92) {
|
|
541
|
+
this.state = "authority";
|
|
542
|
+
--this.pointer;
|
|
543
|
+
} else this.parseError = true;
|
|
544
|
+
return true;
|
|
545
|
+
};
|
|
546
|
+
URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) {
|
|
547
|
+
if (c === 64) {
|
|
548
|
+
this.parseError = true;
|
|
549
|
+
if (this.atFlag) this.buffer = "%40" + this.buffer;
|
|
550
|
+
this.atFlag = true;
|
|
551
|
+
const len = countSymbols(this.buffer);
|
|
552
|
+
for (let pointer = 0; pointer < len; ++pointer) {
|
|
553
|
+
const codePoint = this.buffer.codePointAt(pointer);
|
|
554
|
+
if (codePoint === 58 && !this.passwordTokenSeenFlag) {
|
|
555
|
+
this.passwordTokenSeenFlag = true;
|
|
556
|
+
continue;
|
|
557
|
+
}
|
|
558
|
+
const encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode);
|
|
559
|
+
if (this.passwordTokenSeenFlag) this.url.password += encodedCodePoints;
|
|
560
|
+
else this.url.username += encodedCodePoints;
|
|
561
|
+
}
|
|
562
|
+
this.buffer = "";
|
|
563
|
+
} else if (isNaN(c) || c === 47 || c === 63 || c === 35 || isSpecial(this.url) && c === 92) {
|
|
564
|
+
if (this.atFlag && this.buffer === "") {
|
|
565
|
+
this.parseError = true;
|
|
566
|
+
return failure;
|
|
567
|
+
}
|
|
568
|
+
this.pointer -= countSymbols(this.buffer) + 1;
|
|
569
|
+
this.buffer = "";
|
|
570
|
+
this.state = "host";
|
|
571
|
+
} else this.buffer += cStr;
|
|
572
|
+
return true;
|
|
573
|
+
};
|
|
574
|
+
URLStateMachine.prototype["parse hostname"] = URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
|
|
575
|
+
if (this.stateOverride && this.url.scheme === "file") {
|
|
576
|
+
--this.pointer;
|
|
577
|
+
this.state = "file host";
|
|
578
|
+
} else if (c === 58 && !this.arrFlag) {
|
|
579
|
+
if (this.buffer === "") {
|
|
580
|
+
this.parseError = true;
|
|
581
|
+
return failure;
|
|
582
|
+
}
|
|
583
|
+
const host = parseHost(this.buffer, isSpecial(this.url));
|
|
584
|
+
if (host === failure) return failure;
|
|
585
|
+
this.url.host = host;
|
|
586
|
+
this.buffer = "";
|
|
587
|
+
this.state = "port";
|
|
588
|
+
if (this.stateOverride === "hostname") return false;
|
|
589
|
+
} else if (isNaN(c) || c === 47 || c === 63 || c === 35 || isSpecial(this.url) && c === 92) {
|
|
590
|
+
--this.pointer;
|
|
591
|
+
if (isSpecial(this.url) && this.buffer === "") {
|
|
592
|
+
this.parseError = true;
|
|
593
|
+
return failure;
|
|
594
|
+
} else if (this.stateOverride && this.buffer === "" && (includesCredentials(this.url) || this.url.port !== null)) {
|
|
595
|
+
this.parseError = true;
|
|
596
|
+
return false;
|
|
597
|
+
}
|
|
598
|
+
const host = parseHost(this.buffer, isSpecial(this.url));
|
|
599
|
+
if (host === failure) return failure;
|
|
600
|
+
this.url.host = host;
|
|
601
|
+
this.buffer = "";
|
|
602
|
+
this.state = "path start";
|
|
603
|
+
if (this.stateOverride) return false;
|
|
604
|
+
} else {
|
|
605
|
+
if (c === 91) this.arrFlag = true;
|
|
606
|
+
else if (c === 93) this.arrFlag = false;
|
|
607
|
+
this.buffer += cStr;
|
|
608
|
+
}
|
|
609
|
+
return true;
|
|
610
|
+
};
|
|
611
|
+
URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) {
|
|
612
|
+
if (isASCIIDigit(c)) this.buffer += cStr;
|
|
613
|
+
else if (isNaN(c) || c === 47 || c === 63 || c === 35 || isSpecial(this.url) && c === 92 || this.stateOverride) {
|
|
614
|
+
if (this.buffer !== "") {
|
|
615
|
+
const port = parseInt(this.buffer);
|
|
616
|
+
if (port > Math.pow(2, 16) - 1) {
|
|
617
|
+
this.parseError = true;
|
|
618
|
+
return failure;
|
|
619
|
+
}
|
|
620
|
+
this.url.port = port === defaultPort(this.url.scheme) ? null : port;
|
|
621
|
+
this.buffer = "";
|
|
622
|
+
}
|
|
623
|
+
if (this.stateOverride) return false;
|
|
624
|
+
this.state = "path start";
|
|
625
|
+
--this.pointer;
|
|
626
|
+
} else {
|
|
627
|
+
this.parseError = true;
|
|
628
|
+
return failure;
|
|
629
|
+
}
|
|
630
|
+
return true;
|
|
631
|
+
};
|
|
632
|
+
const fileOtherwiseCodePoints = new Set([
|
|
633
|
+
47,
|
|
634
|
+
92,
|
|
635
|
+
63,
|
|
636
|
+
35
|
|
637
|
+
]);
|
|
638
|
+
URLStateMachine.prototype["parse file"] = function parseFile(c) {
|
|
639
|
+
this.url.scheme = "file";
|
|
640
|
+
if (c === 47 || c === 92) {
|
|
641
|
+
if (c === 92) this.parseError = true;
|
|
642
|
+
this.state = "file slash";
|
|
643
|
+
} else if (this.base !== null && this.base.scheme === "file") if (isNaN(c)) {
|
|
644
|
+
this.url.host = this.base.host;
|
|
645
|
+
this.url.path = this.base.path.slice();
|
|
646
|
+
this.url.query = this.base.query;
|
|
647
|
+
} else if (c === 63) {
|
|
648
|
+
this.url.host = this.base.host;
|
|
649
|
+
this.url.path = this.base.path.slice();
|
|
650
|
+
this.url.query = "";
|
|
651
|
+
this.state = "query";
|
|
652
|
+
} else if (c === 35) {
|
|
653
|
+
this.url.host = this.base.host;
|
|
654
|
+
this.url.path = this.base.path.slice();
|
|
655
|
+
this.url.query = this.base.query;
|
|
656
|
+
this.url.fragment = "";
|
|
657
|
+
this.state = "fragment";
|
|
658
|
+
} else {
|
|
659
|
+
if (this.input.length - this.pointer - 1 === 0 || !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) || this.input.length - this.pointer - 1 >= 2 && !fileOtherwiseCodePoints.has(this.input[this.pointer + 2])) {
|
|
660
|
+
this.url.host = this.base.host;
|
|
661
|
+
this.url.path = this.base.path.slice();
|
|
662
|
+
shortenPath(this.url);
|
|
663
|
+
} else this.parseError = true;
|
|
664
|
+
this.state = "path";
|
|
665
|
+
--this.pointer;
|
|
666
|
+
}
|
|
667
|
+
else {
|
|
668
|
+
this.state = "path";
|
|
669
|
+
--this.pointer;
|
|
670
|
+
}
|
|
671
|
+
return true;
|
|
672
|
+
};
|
|
673
|
+
URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) {
|
|
674
|
+
if (c === 47 || c === 92) {
|
|
675
|
+
if (c === 92) this.parseError = true;
|
|
676
|
+
this.state = "file host";
|
|
677
|
+
} else {
|
|
678
|
+
if (this.base !== null && this.base.scheme === "file") if (isNormalizedWindowsDriveLetterString(this.base.path[0])) this.url.path.push(this.base.path[0]);
|
|
679
|
+
else this.url.host = this.base.host;
|
|
680
|
+
this.state = "path";
|
|
681
|
+
--this.pointer;
|
|
682
|
+
}
|
|
683
|
+
return true;
|
|
684
|
+
};
|
|
685
|
+
URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) {
|
|
686
|
+
if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) {
|
|
687
|
+
--this.pointer;
|
|
688
|
+
if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) {
|
|
689
|
+
this.parseError = true;
|
|
690
|
+
this.state = "path";
|
|
691
|
+
} else if (this.buffer === "") {
|
|
692
|
+
this.url.host = "";
|
|
693
|
+
if (this.stateOverride) return false;
|
|
694
|
+
this.state = "path start";
|
|
695
|
+
} else {
|
|
696
|
+
let host = parseHost(this.buffer, isSpecial(this.url));
|
|
697
|
+
if (host === failure) return failure;
|
|
698
|
+
if (host === "localhost") host = "";
|
|
699
|
+
this.url.host = host;
|
|
700
|
+
if (this.stateOverride) return false;
|
|
701
|
+
this.buffer = "";
|
|
702
|
+
this.state = "path start";
|
|
703
|
+
}
|
|
704
|
+
} else this.buffer += cStr;
|
|
705
|
+
return true;
|
|
706
|
+
};
|
|
707
|
+
URLStateMachine.prototype["parse path start"] = function parsePathStart(c) {
|
|
708
|
+
if (isSpecial(this.url)) {
|
|
709
|
+
if (c === 92) this.parseError = true;
|
|
710
|
+
this.state = "path";
|
|
711
|
+
if (c !== 47 && c !== 92) --this.pointer;
|
|
712
|
+
} else if (!this.stateOverride && c === 63) {
|
|
713
|
+
this.url.query = "";
|
|
714
|
+
this.state = "query";
|
|
715
|
+
} else if (!this.stateOverride && c === 35) {
|
|
716
|
+
this.url.fragment = "";
|
|
717
|
+
this.state = "fragment";
|
|
718
|
+
} else if (c !== void 0) {
|
|
719
|
+
this.state = "path";
|
|
720
|
+
if (c !== 47) --this.pointer;
|
|
721
|
+
}
|
|
722
|
+
return true;
|
|
723
|
+
};
|
|
724
|
+
URLStateMachine.prototype["parse path"] = function parsePath(c) {
|
|
725
|
+
if (isNaN(c) || c === 47 || isSpecial(this.url) && c === 92 || !this.stateOverride && (c === 63 || c === 35)) {
|
|
726
|
+
if (isSpecial(this.url) && c === 92) this.parseError = true;
|
|
727
|
+
if (isDoubleDot(this.buffer)) {
|
|
728
|
+
shortenPath(this.url);
|
|
729
|
+
if (c !== 47 && !(isSpecial(this.url) && c === 92)) this.url.path.push("");
|
|
730
|
+
} else if (isSingleDot(this.buffer) && c !== 47 && !(isSpecial(this.url) && c === 92)) this.url.path.push("");
|
|
731
|
+
else if (!isSingleDot(this.buffer)) {
|
|
732
|
+
if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) {
|
|
733
|
+
if (this.url.host !== "" && this.url.host !== null) {
|
|
734
|
+
this.parseError = true;
|
|
735
|
+
this.url.host = "";
|
|
736
|
+
}
|
|
737
|
+
this.buffer = this.buffer[0] + ":";
|
|
738
|
+
}
|
|
739
|
+
this.url.path.push(this.buffer);
|
|
740
|
+
}
|
|
741
|
+
this.buffer = "";
|
|
742
|
+
if (this.url.scheme === "file" && (c === void 0 || c === 63 || c === 35)) while (this.url.path.length > 1 && this.url.path[0] === "") {
|
|
743
|
+
this.parseError = true;
|
|
744
|
+
this.url.path.shift();
|
|
745
|
+
}
|
|
746
|
+
if (c === 63) {
|
|
747
|
+
this.url.query = "";
|
|
748
|
+
this.state = "query";
|
|
749
|
+
}
|
|
750
|
+
if (c === 35) {
|
|
751
|
+
this.url.fragment = "";
|
|
752
|
+
this.state = "fragment";
|
|
753
|
+
}
|
|
754
|
+
} else {
|
|
755
|
+
if (c === 37 && (!isASCIIHex(this.input[this.pointer + 1]) || !isASCIIHex(this.input[this.pointer + 2]))) this.parseError = true;
|
|
756
|
+
this.buffer += percentEncodeChar(c, isPathPercentEncode);
|
|
757
|
+
}
|
|
758
|
+
return true;
|
|
759
|
+
};
|
|
760
|
+
URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) {
|
|
761
|
+
if (c === 63) {
|
|
762
|
+
this.url.query = "";
|
|
763
|
+
this.state = "query";
|
|
764
|
+
} else if (c === 35) {
|
|
765
|
+
this.url.fragment = "";
|
|
766
|
+
this.state = "fragment";
|
|
767
|
+
} else {
|
|
768
|
+
if (!isNaN(c) && c !== 37) this.parseError = true;
|
|
769
|
+
if (c === 37 && (!isASCIIHex(this.input[this.pointer + 1]) || !isASCIIHex(this.input[this.pointer + 2]))) this.parseError = true;
|
|
770
|
+
if (!isNaN(c)) this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode);
|
|
771
|
+
}
|
|
772
|
+
return true;
|
|
773
|
+
};
|
|
774
|
+
URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) {
|
|
775
|
+
if (isNaN(c) || !this.stateOverride && c === 35) {
|
|
776
|
+
if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") this.encodingOverride = "utf-8";
|
|
777
|
+
const buffer = new Buffer(this.buffer);
|
|
778
|
+
for (let i = 0; i < buffer.length; ++i) if (buffer[i] < 33 || buffer[i] > 126 || buffer[i] === 34 || buffer[i] === 35 || buffer[i] === 60 || buffer[i] === 62) this.url.query += percentEncode(buffer[i]);
|
|
779
|
+
else this.url.query += String.fromCodePoint(buffer[i]);
|
|
780
|
+
this.buffer = "";
|
|
781
|
+
if (c === 35) {
|
|
782
|
+
this.url.fragment = "";
|
|
783
|
+
this.state = "fragment";
|
|
784
|
+
}
|
|
785
|
+
} else {
|
|
786
|
+
if (c === 37 && (!isASCIIHex(this.input[this.pointer + 1]) || !isASCIIHex(this.input[this.pointer + 2]))) this.parseError = true;
|
|
787
|
+
this.buffer += cStr;
|
|
788
|
+
}
|
|
789
|
+
return true;
|
|
790
|
+
};
|
|
791
|
+
URLStateMachine.prototype["parse fragment"] = function parseFragment(c) {
|
|
792
|
+
if (isNaN(c)) {} else if (c === 0) this.parseError = true;
|
|
793
|
+
else {
|
|
794
|
+
if (c === 37 && (!isASCIIHex(this.input[this.pointer + 1]) || !isASCIIHex(this.input[this.pointer + 2]))) this.parseError = true;
|
|
795
|
+
this.url.fragment += percentEncodeChar(c, isC0ControlPercentEncode);
|
|
796
|
+
}
|
|
797
|
+
return true;
|
|
798
|
+
};
|
|
799
|
+
function serializeURL(url, excludeFragment) {
|
|
800
|
+
let output = url.scheme + ":";
|
|
801
|
+
if (url.host !== null) {
|
|
802
|
+
output += "//";
|
|
803
|
+
if (url.username !== "" || url.password !== "") {
|
|
804
|
+
output += url.username;
|
|
805
|
+
if (url.password !== "") output += ":" + url.password;
|
|
806
|
+
output += "@";
|
|
807
|
+
}
|
|
808
|
+
output += serializeHost(url.host);
|
|
809
|
+
if (url.port !== null) output += ":" + url.port;
|
|
810
|
+
} else if (url.host === null && url.scheme === "file") output += "//";
|
|
811
|
+
if (url.cannotBeABaseURL) output += url.path[0];
|
|
812
|
+
else for (const string of url.path) output += "/" + string;
|
|
813
|
+
if (url.query !== null) output += "?" + url.query;
|
|
814
|
+
if (!excludeFragment && url.fragment !== null) output += "#" + url.fragment;
|
|
815
|
+
return output;
|
|
816
|
+
}
|
|
817
|
+
function serializeOrigin(tuple) {
|
|
818
|
+
let result = tuple.scheme + "://";
|
|
819
|
+
result += serializeHost(tuple.host);
|
|
820
|
+
if (tuple.port !== null) result += ":" + tuple.port;
|
|
821
|
+
return result;
|
|
822
|
+
}
|
|
823
|
+
module.exports.serializeURL = serializeURL;
|
|
824
|
+
module.exports.serializeURLOrigin = function(url) {
|
|
825
|
+
switch (url.scheme) {
|
|
826
|
+
case "blob": try {
|
|
827
|
+
return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0]));
|
|
828
|
+
} catch (e) {
|
|
829
|
+
return "null";
|
|
830
|
+
}
|
|
831
|
+
case "ftp":
|
|
832
|
+
case "gopher":
|
|
833
|
+
case "http":
|
|
834
|
+
case "https":
|
|
835
|
+
case "ws":
|
|
836
|
+
case "wss": return serializeOrigin({
|
|
837
|
+
scheme: url.scheme,
|
|
838
|
+
host: url.host,
|
|
839
|
+
port: url.port
|
|
840
|
+
});
|
|
841
|
+
case "file": return "file://";
|
|
842
|
+
default: return "null";
|
|
843
|
+
}
|
|
844
|
+
};
|
|
845
|
+
module.exports.basicURLParse = function(input, options) {
|
|
846
|
+
if (options === void 0) options = {};
|
|
847
|
+
const usm = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride);
|
|
848
|
+
if (usm.failure) return "failure";
|
|
849
|
+
return usm.url;
|
|
850
|
+
};
|
|
851
|
+
module.exports.setTheUsername = function(url, username) {
|
|
852
|
+
url.username = "";
|
|
853
|
+
const decoded = punycode.ucs2.decode(username);
|
|
854
|
+
for (let i = 0; i < decoded.length; ++i) url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
|
|
855
|
+
};
|
|
856
|
+
module.exports.setThePassword = function(url, password) {
|
|
857
|
+
url.password = "";
|
|
858
|
+
const decoded = punycode.ucs2.decode(password);
|
|
859
|
+
for (let i = 0; i < decoded.length; ++i) url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
|
|
860
|
+
};
|
|
861
|
+
module.exports.serializeHost = serializeHost;
|
|
862
|
+
module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort;
|
|
863
|
+
module.exports.serializeInteger = function(integer) {
|
|
864
|
+
return String(integer);
|
|
865
|
+
};
|
|
866
|
+
module.exports.parseURL = function(input, options) {
|
|
867
|
+
if (options === void 0) options = {};
|
|
868
|
+
return module.exports.basicURLParse(input, {
|
|
869
|
+
baseURL: options.baseURL,
|
|
870
|
+
encodingOverride: options.encodingOverride
|
|
871
|
+
});
|
|
872
|
+
};
|
|
873
|
+
}));
|
|
874
|
+
|
|
875
|
+
//#endregion
|
|
876
|
+
export default require_url_state_machine();
|
|
877
|
+
|
|
878
|
+
export { require_url_state_machine };
|