@adobe/data 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_/data.d.ts +11 -0
- package/dist/{schemas/index.js → _/data.js} +2 -2
- package/dist/_/data.js.map +1 -0
- package/dist/_/equals.d.ts +11 -0
- package/dist/_/equals.js +73 -0
- package/dist/_/equals.js.map +1 -0
- package/dist/_/equals.test.js +150 -0
- package/dist/_/equals.test.js.map +1 -0
- package/dist/_/index.d.ts +4 -0
- package/dist/{core/schema → _}/index.js +2 -4
- package/dist/_/index.js.map +1 -0
- package/dist/_/is-data.d.ts +11 -0
- package/dist/_/is-data.js +2 -0
- package/dist/_/is-data.js.map +1 -0
- package/dist/_/normalize.d.ts +1 -0
- package/dist/_/normalize.js +34 -0
- package/dist/_/normalize.js.map +1 -0
- package/dist/_/normalize.test.js +48 -0
- package/dist/_/normalize.test.js.map +1 -0
- package/dist/_/schema.test.js +16 -0
- package/dist/_/schema.test.js.map +1 -0
- package/dist/blob-store/blob-store.d.ts +94 -0
- package/dist/blob-store/blob-store.js +194 -0
- package/dist/blob-store/blob-store.js.map +1 -0
- package/dist/blob-store/blob-store.test.js +142 -0
- package/dist/blob-store/blob-store.test.js.map +1 -0
- package/dist/core/IsData.d.ts +6 -0
- package/dist/core/IsData.js +2 -0
- package/dist/core/IsData.js.map +1 -0
- package/dist/core/data.d.ts +1 -12
- package/dist/core/data.js +1 -30
- package/dist/core/data.js.map +1 -1
- package/dist/core/data.test.js +1 -1
- package/dist/core/data.test.js.map +1 -1
- package/dist/core/equals.d.ts +11 -0
- package/dist/core/equals.js +73 -0
- package/dist/core/equals.js.map +1 -0
- package/dist/core/equals.test.js +150 -0
- package/dist/core/equals.test.js.map +1 -0
- package/dist/core/functions/array-equals-shallow.d.ts +1 -0
- package/dist/core/functions/{array-equals.js → array-equals-shallow.js} +2 -2
- package/dist/core/functions/array-equals-shallow.js.map +1 -0
- package/dist/core/functions/deep-assign.d.ts +11 -0
- package/dist/core/functions/deep-assign.js +61 -0
- package/dist/core/functions/deep-assign.js.map +1 -0
- package/dist/core/functions/deep-assign.test.d.ts +1 -0
- package/dist/core/functions/deep-assign.test.js +180 -0
- package/dist/core/functions/deep-assign.test.js.map +1 -0
- package/dist/core/functions/index.d.ts +1 -3
- package/dist/core/functions/index.js +1 -3
- package/dist/core/functions/index.js.map +1 -1
- package/dist/core/functions/memoize-factory.d.ts +1 -0
- package/dist/core/functions/memoize-factory.js +12 -0
- package/dist/core/functions/memoize-factory.js.map +1 -0
- package/dist/core/index.d.ts +4 -3
- package/dist/core/index.js +2 -3
- package/dist/core/index.js.map +1 -1
- package/dist/core/is-data.d.ts +11 -0
- package/dist/core/is-data.js +2 -0
- package/dist/core/is-data.js.map +1 -0
- package/dist/core/normalize.d.ts +1 -0
- package/dist/core/normalize.js +34 -0
- package/dist/core/normalize.js.map +1 -0
- package/dist/core/normalize.test.d.ts +1 -0
- package/dist/core/normalize.test.js +48 -0
- package/dist/core/normalize.test.js.map +1 -0
- package/dist/ecs/action-ecs/action-ecs.js +1 -1
- package/dist/ecs/action-ecs/action-ecs.js.map +1 -1
- package/dist/ecs/action-ecs/action-ecs.test.js +4 -3
- package/dist/ecs/action-ecs/action-ecs.test.js.map +1 -1
- package/dist/ecs/action-ecs/action-types.d.ts +3 -3
- package/dist/ecs/action-ecs/index.d.ts +1 -0
- package/dist/ecs/action-ecs/index.js +1 -0
- package/dist/ecs/action-ecs/index.js.map +1 -1
- package/dist/ecs/action-ecs/sequential-action.d.ts +18 -0
- package/dist/{core/schema/validation/validate.js → ecs/action-ecs/sequential-action.js} +21 -14
- package/dist/ecs/action-ecs/sequential-action.js.map +1 -0
- package/dist/ecs/core-components.js +0 -21
- package/dist/ecs/core-components.js.map +1 -1
- package/dist/ecs/core-ecs/core-ecs-serialization.test.js +3 -2
- package/dist/ecs/core-ecs/core-ecs-serialization.test.js.map +1 -1
- package/dist/ecs/core-ecs/core-ecs-types.d.ts +2 -1
- package/dist/ecs/core-ecs/core-ecs.js +2 -2
- package/dist/ecs/core-ecs/core-ecs.js.map +1 -1
- package/dist/ecs/core-ecs/core-ecs.test.js +3 -2
- package/dist/ecs/core-ecs/core-ecs.test.js.map +1 -1
- package/dist/ecs/database/create-database.d.ts +3 -3
- package/dist/ecs/database/create-database.js +12 -11
- package/dist/ecs/database/create-database.js.map +1 -1
- package/dist/ecs/database/create-database.test.js +17 -13
- package/dist/ecs/database/create-database.test.js.map +1 -1
- package/dist/ecs/database/database-schema/create-database-from-schemas.d.ts +15 -0
- package/dist/ecs/database/database-schema/create-database-from-schemas.js +33 -0
- package/dist/ecs/database/database-schema/create-database-from-schemas.js.map +1 -0
- package/dist/ecs/database/database-schema/create-database-schema.d.ts +7 -0
- package/dist/ecs/database/database-schema/create-database-schema.js +5 -0
- package/dist/ecs/database/database-schema/create-database-schema.js.map +1 -0
- package/dist/ecs/database/database-schema/database-schema.d.ts +12 -0
- package/dist/ecs/database/database-schema/database-schema.js +2 -0
- package/dist/ecs/database/database-schema/database-schema.js.map +1 -0
- package/dist/ecs/database/database-schema/index.d.ts +3 -0
- package/dist/ecs/database/database-schema/index.js +3 -0
- package/dist/ecs/database/database-schema/index.js.map +1 -0
- package/dist/ecs/database/database.d.ts +7 -9
- package/dist/ecs/database/index.d.ts +1 -0
- package/dist/ecs/database/index.js +1 -0
- package/dist/ecs/database/index.js.map +1 -1
- package/dist/ecs/database/observe-dependent-value.js.map +1 -1
- package/dist/ecs/database/observe-dependent-value.test.js +21 -21
- package/dist/ecs/database/observe-dependent-value.test.js.map +1 -1
- package/dist/ecs/database/transactional-store/create-transactional-store.d.ts +2 -2
- package/dist/ecs/database/transactional-store/create-transactional-store.js +1 -0
- package/dist/ecs/database/transactional-store/create-transactional-store.js.map +1 -1
- package/dist/ecs/database/transactional-store/create-transactional-store.test.js +11 -9
- package/dist/ecs/database/transactional-store/create-transactional-store.test.js.map +1 -1
- package/dist/ecs/database/transactional-store/transactional-store.d.ts +3 -2
- package/dist/ecs/ecs/ecs-types.d.ts +14 -13
- package/dist/ecs/ecs/ecs.js.map +1 -1
- package/dist/ecs/ecs/ecs.test.js +1 -1
- package/dist/ecs/ecs/ecs.test.js.map +1 -1
- package/dist/ecs/ecs/index.d.ts +0 -1
- package/dist/ecs/ecs/index.js +21 -0
- package/dist/ecs/ecs/index.js.map +1 -1
- package/dist/ecs/index.d.ts +4 -0
- package/dist/ecs/index.js +4 -0
- package/dist/ecs/index.js.map +1 -1
- package/dist/ecs/resource-schemas.d.ts +6 -0
- package/dist/ecs/resource-schemas.js +2 -0
- package/dist/ecs/resource-schemas.js.map +1 -0
- package/dist/ecs/store/components.d.ts +1 -0
- package/dist/{core/schema.js → ecs/store/components.js} +1 -11
- package/dist/ecs/store/components.js.map +1 -0
- package/dist/ecs/store/core/core.d.ts +9 -8
- package/dist/ecs/store/core/core.js +21 -0
- package/dist/ecs/store/core/core.js.map +1 -1
- package/dist/ecs/store/create-store.d.ts +4 -6
- package/dist/ecs/store/create-store.js +5 -6
- package/dist/ecs/store/create-store.js.map +1 -1
- package/dist/ecs/store/create-store.test.js +21 -21
- package/dist/ecs/store/create-store.test.js.map +1 -1
- package/dist/ecs/store/resource-components copy.d.ts +1 -0
- package/dist/{core/schema/schema.js → ecs/store/resource-components copy.js } +1 -12
- package/dist/ecs/store/resource-components copy.js.map +1 -0
- package/dist/ecs/store/store.d.ts +5 -4
- package/dist/ecs/systems/index.d.ts +2 -0
- package/dist/ecs/systems/index.js +2 -0
- package/dist/ecs/systems/index.js.map +1 -0
- package/dist/ecs/systems/system-phase.d.ts +5 -0
- package/dist/ecs/systems/system-phase.js +16 -0
- package/dist/ecs/systems/system-phase.js.map +1 -0
- package/dist/ecs/systems/system.d.ts +7 -0
- package/dist/ecs/systems/system.js +2 -0
- package/dist/ecs/systems/system.js.map +1 -0
- package/dist/ecs/transaction-ecs/transaction-ecs.js +2 -2
- package/dist/ecs/transaction-ecs/transaction-ecs.js.map +1 -1
- package/dist/ecs/transaction-ecs/transaction-types.d.ts +7 -6
- package/dist/ecs/transaction-ecs/transactions.js.map +1 -1
- package/dist/equalsShallow.d.ts +1 -0
- package/dist/equalsShallow.js +37 -0
- package/dist/equalsShallow.js.map +1 -0
- package/dist/equalsShallow.test.d.ts +1 -0
- package/dist/equalsShallow.test.js +113 -0
- package/dist/equalsShallow.test.js.map +1 -0
- package/dist/functions/apply-args.d.ts +7 -0
- package/dist/functions/apply-args.js +19 -0
- package/dist/functions/apply-args.js.map +1 -0
- package/dist/functions/index.d.ts +1 -0
- package/dist/functions/index.js +2 -0
- package/dist/functions/index.js.map +1 -0
- package/dist/internal/object/mutable-clone.d.ts +5 -0
- package/dist/internal/object/mutable-clone.js +4 -0
- package/dist/internal/object/mutable-clone.js.map +1 -0
- package/dist/internal/typed-array/get-byte-size.d.ts +1 -1
- package/dist/lit/decorators/apply-service-decorators.js +1 -1
- package/dist/lit/decorators/apply-service-decorators.js.map +1 -1
- package/dist/lit/elements/service-application.d.ts +3 -2
- package/dist/lit/elements/service-application.js +10 -6
- package/dist/lit/elements/service-application.js.map +1 -1
- package/dist/lit/elements/service-element.d.ts +1 -1
- package/dist/lit/elements/service-element.js +2 -2
- package/dist/lit/elements/service-element.js.map +1 -1
- package/dist/old-ecs/ecs/ecs-where-cache.test.d.ts +1 -0
- package/dist/old-ecs/ecs/ecs-where-cache.test.js +164 -0
- package/dist/old-ecs/ecs/ecs-where-cache.test.js.map +1 -0
- package/dist/package.json +24 -24
- package/dist/schema/FromSchema.d.ts +25 -0
- package/dist/schema/FromSchema.js +2 -0
- package/dist/schema/FromSchema.js.map +1 -0
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/schema.d.ts +6 -0
- package/dist/schema/schema.js.map +1 -1
- package/dist/service/isService.d.ts +2 -0
- package/dist/service/isService.js +5 -0
- package/dist/service/isService.js.map +1 -0
- package/dist/table/copy-column-to-gpu-buffer.d.ts +5 -0
- package/dist/table/copy-column-to-gpu-buffer.js +26 -0
- package/dist/table/copy-column-to-gpu-buffer.js.map +1 -0
- package/dist/table/copy-to-gpu-buffer.d.ts +2 -0
- package/dist/table/copy-to-gpu-buffer.js +16 -0
- package/dist/table/copy-to-gpu-buffer.js.map +1 -0
- package/dist/table/create-composite-table.d.ts +5 -0
- package/dist/table/create-composite-table.js +20 -0
- package/dist/table/create-composite-table.js.map +1 -0
- package/dist/table/create-table.test.d.ts +1 -0
- package/dist/{core/schema/validation/is-valid.test.js → table/create-table.test.js} +17 -16
- package/dist/table/create-table.test.js.map +1 -0
- package/dist/table/index.d.ts +1 -0
- package/dist/table/index.js +1 -0
- package/dist/table/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typed-buffer/copy-to-gpu-buffer.js +1 -1
- package/dist/typed-buffer/copy-to-gpu-buffer.js.map +1 -1
- package/dist/typed-buffer/create-array-buffer.js +7 -2
- package/dist/typed-buffer/create-array-buffer.js.map +1 -1
- package/dist/typed-buffer/create-composite-buffer.d.ts +2 -0
- package/dist/typed-buffer/create-composite-buffer.js +85 -0
- package/dist/typed-buffer/create-composite-buffer.js.map +1 -0
- package/dist/typed-buffer/create-composite-buffer.test.d.ts +1 -0
- package/dist/typed-buffer/create-composite-buffer.test.js +291 -0
- package/dist/typed-buffer/create-composite-buffer.test.js.map +1 -0
- package/dist/typed-buffer/create-const-buffer.d.ts +2 -0
- package/dist/typed-buffer/create-const-buffer.js +30 -0
- package/dist/typed-buffer/create-const-buffer.js.map +1 -0
- package/dist/typed-buffer/create-const-buffer.test.d.ts +1 -0
- package/dist/typed-buffer/create-const-buffer.test.js +128 -0
- package/dist/typed-buffer/create-const-buffer.test.js.map +1 -0
- package/dist/typed-buffer/create-mapped-buffer.d.ts +6 -0
- package/dist/typed-buffer/create-mapped-buffer.js +32 -0
- package/dist/typed-buffer/create-mapped-buffer.js.map +1 -0
- package/dist/typed-buffer/create-mapped-buffer.test.d.ts +1 -0
- package/dist/typed-buffer/create-mapped-buffer.test.js +202 -0
- package/dist/typed-buffer/create-mapped-buffer.test.js.map +1 -0
- package/dist/typed-buffer/create-number-buffer.js +4 -2
- package/dist/typed-buffer/create-number-buffer.js.map +1 -1
- package/dist/typed-buffer/create-struct-buffer.js +8 -16
- package/dist/typed-buffer/create-struct-buffer.js.map +1 -1
- package/dist/typed-buffer/create-typed-buffer.js +4 -0
- package/dist/typed-buffer/create-typed-buffer.js.map +1 -1
- package/dist/typed-buffer/index.js.map +1 -1
- package/dist/typed-buffer/typed-buffer.d.ts +3 -1
- package/dist/typed-buffer/typed-buffer.test.js +103 -0
- package/dist/typed-buffer/typed-buffer.test.js.map +1 -1
- package/dist/types/array/equalsShallow.d.ts +1 -0
- package/dist/types/array/equalsShallow.js +37 -0
- package/dist/types/array/equalsShallow.js.map +1 -0
- package/dist/types/array/equalsShallow.test.d.ts +1 -0
- package/dist/types/array/equalsShallow.test.js +113 -0
- package/dist/types/array/equalsShallow.test.js.map +1 -0
- package/dist/types/array/index.d.ts +1 -0
- package/dist/types/array/index.js +2 -0
- package/dist/types/array/index.js.map +1 -0
- package/dist/types/array-buffer-like/copy.d.ts +1 -0
- package/dist/types/array-buffer-like/copy.js +469 -0
- package/dist/types/array-buffer-like/copy.js.map +1 -0
- package/dist/types/array-buffer-like/grow.d.ts +1 -0
- package/dist/types/array-buffer-like/grow.js +53 -0
- package/dist/types/array-buffer-like/grow.js.map +1 -0
- package/dist/types/array-buffer-like/index.d.ts +4 -0
- package/dist/types/array-buffer-like/index.js +26 -0
- package/dist/types/array-buffer-like/index.js.map +1 -0
- package/dist/types/array-buffer-like/is-array-buffer.d.ts +1 -0
- package/dist/types/array-buffer-like/is-array-buffer.js +445 -0
- package/dist/types/array-buffer-like/is-array-buffer.js.map +1 -0
- package/dist/types/array-buffer-like/is-shared-array-buffer.d.ts +1 -0
- package/dist/types/array-buffer-like/is-shared-array-buffer.js +445 -0
- package/dist/types/array-buffer-like/is-shared-array-buffer.js.map +1 -0
- package/dist/types/data-view-32/create-data-view-32.d.ts +2 -0
- package/dist/types/data-view-32/create-data-view-32.js +8 -0
- package/dist/types/data-view-32/create-data-view-32.js.map +1 -0
- package/dist/types/data-view-32/data-view-32.d.ts +5 -0
- package/dist/types/data-view-32/data-view-32.js +23 -0
- package/dist/types/data-view-32/data-view-32.js.map +1 -0
- package/dist/types/data-view-32/index.d.ts +2 -0
- package/dist/types/data-view-32/index.js +24 -0
- package/dist/types/data-view-32/index.js.map +1 -0
- package/dist/types/object/index.d.ts +2 -0
- package/dist/types/object/index.js +24 -0
- package/dist/types/object/index.js.map +1 -0
- package/dist/types/object/map-entries.d.ts +5 -0
- package/dist/types/object/map-entries.js +29 -0
- package/dist/types/object/map-entries.js.map +1 -0
- package/dist/types/object/mutable-clone.d.ts +5 -0
- package/dist/types/object/mutable-clone.js +4 -0
- package/dist/types/object/mutable-clone.js.map +1 -0
- package/dist/types/remove-readonly.d.ts +3 -0
- package/dist/types/remove-readonly.js +2 -0
- package/dist/types/remove-readonly.js.map +1 -0
- package/dist/types/table/add-row.d.ts +8 -0
- package/dist/types/table/add-row.js +40 -0
- package/dist/types/table/add-row.js.map +1 -0
- package/dist/types/table/create-table.d.ts +3 -0
- package/dist/types/table/create-table.js +33 -0
- package/dist/types/table/create-table.js.map +1 -0
- package/dist/types/table/delete-row.d.ts +9 -0
- package/dist/types/table/delete-row.js +18 -0
- package/dist/types/table/delete-row.js.map +1 -0
- package/dist/types/table/ensure-capacity.d.ts +2 -0
- package/dist/types/table/ensure-capacity.js +15 -0
- package/dist/types/table/ensure-capacity.js.map +1 -0
- package/dist/types/table/get-row-data.d.ts +3 -0
- package/dist/types/table/get-row-data.js +8 -0
- package/dist/types/table/get-row-data.js.map +1 -0
- package/dist/types/table/index.d.ts +8 -0
- package/dist/types/table/index.js +30 -0
- package/dist/types/table/index.js.map +1 -0
- package/dist/types/table/row-index.d.ts +8 -0
- package/dist/types/table/row-index.js +3 -0
- package/dist/types/table/row-index.js.map +1 -0
- package/dist/types/table/table.d.ts +13 -0
- package/dist/types/table/table.js +2 -0
- package/dist/types/table/table.js.map +1 -0
- package/dist/types/table/update-row.d.ts +8 -0
- package/dist/types/table/update-row.js +12 -0
- package/dist/types/table/update-row.js.map +1 -0
- package/dist/types/typed-array/copy-to-gpu-buffer.d.ts +2 -0
- package/dist/types/typed-array/copy-to-gpu-buffer.js +16 -0
- package/dist/types/typed-array/copy-to-gpu-buffer.js.map +1 -0
- package/dist/types/typed-array/get-byte-size.d.ts +2 -0
- package/dist/types/typed-array/get-byte-size.js +28 -0
- package/dist/types/typed-array/get-byte-size.js.map +1 -0
- package/dist/types/typed-array/index.d.ts +4 -0
- package/dist/types/typed-array/index.js +26 -0
- package/dist/types/typed-array/index.js.map +1 -0
- package/dist/types/typed-array/typed-array-constructer.d.ts +7 -0
- package/dist/types/typed-array/typed-array-constructer.js +2 -0
- package/dist/types/typed-array/typed-array-constructer.js.map +1 -0
- package/dist/types/typed-array/typed-array.d.ts +1 -0
- package/dist/types/typed-array/typed-array.js +23 -0
- package/dist/types/typed-array/typed-array.js.map +1 -0
- package/dist/types/typed-buffer/copy-to-gpu-buffer.d.ts +2 -0
- package/dist/types/typed-buffer/copy-to-gpu-buffer.js +16 -0
- package/dist/types/typed-buffer/copy-to-gpu-buffer.js.map +1 -0
- package/dist/types/typed-buffer/create-array-buffer.d.ts +4 -0
- package/dist/types/typed-buffer/create-array-buffer.js +29 -0
- package/dist/types/typed-buffer/create-array-buffer.js.map +1 -0
- package/dist/types/typed-buffer/create-number-buffer.d.ts +8 -0
- package/dist/types/typed-buffer/create-number-buffer.js +75 -0
- package/dist/types/typed-buffer/create-number-buffer.js.map +1 -0
- package/dist/types/typed-buffer/create-struct-buffer.d.ts +10 -0
- package/dist/types/typed-buffer/create-struct-buffer.js +78 -0
- package/dist/types/typed-buffer/create-struct-buffer.js.map +1 -0
- package/dist/types/typed-buffer/create-typed-buffer.d.ts +7 -0
- package/dist/types/typed-buffer/create-typed-buffer.js +17 -0
- package/dist/types/typed-buffer/create-typed-buffer.js.map +1 -0
- package/dist/types/typed-buffer/index.d.ts +6 -0
- package/dist/types/typed-buffer/index.js +28 -0
- package/dist/types/typed-buffer/index.js.map +1 -0
- package/dist/types/typed-buffer/structs/assert-struct.d.ts +8 -0
- package/dist/types/typed-buffer/structs/assert-struct.js +15 -0
- package/dist/types/typed-buffer/structs/assert-struct.js.map +1 -0
- package/dist/types/typed-buffer/structs/create-read-struct.d.ts +3 -0
- package/dist/types/typed-buffer/structs/create-read-struct.js +62 -0
- package/dist/types/typed-buffer/structs/create-read-struct.js.map +1 -0
- package/dist/types/typed-buffer/structs/create-read-struct.test.d.ts +1 -0
- package/dist/types/typed-buffer/structs/create-read-struct.test.js +189 -0
- package/dist/types/typed-buffer/structs/create-read-struct.test.js.map +1 -0
- package/dist/types/typed-buffer/structs/create-write-struct.d.ts +3 -0
- package/dist/types/typed-buffer/structs/create-write-struct.js +58 -0
- package/dist/types/typed-buffer/structs/create-write-struct.js.map +1 -0
- package/dist/types/typed-buffer/structs/get-field-offset.d.ts +2 -0
- package/dist/types/typed-buffer/structs/get-field-offset.js +14 -0
- package/dist/types/typed-buffer/structs/get-field-offset.js.map +1 -0
- package/dist/types/typed-buffer/structs/get-struct-layout.d.ts +5 -0
- package/dist/types/typed-buffer/structs/get-struct-layout.js +198 -0
- package/dist/types/typed-buffer/structs/get-struct-layout.js.map +1 -0
- package/dist/types/typed-buffer/structs/get-struct-layout.test.d.ts +1 -0
- package/dist/types/typed-buffer/structs/get-struct-layout.test.js +133 -0
- package/dist/types/typed-buffer/structs/get-struct-layout.test.js.map +1 -0
- package/dist/types/typed-buffer/structs/index.d.ts +1 -0
- package/dist/types/typed-buffer/structs/index.js +23 -0
- package/dist/types/typed-buffer/structs/index.js.map +1 -0
- package/dist/types/typed-buffer/structs/read-struct.d.ts +2 -0
- package/dist/types/typed-buffer/structs/read-struct.js +2 -0
- package/dist/types/typed-buffer/structs/read-struct.js.map +1 -0
- package/dist/types/typed-buffer/structs/struct-layout.d.ts +21 -0
- package/dist/types/typed-buffer/structs/struct-layout.js +23 -0
- package/dist/types/typed-buffer/structs/struct-layout.js.map +1 -0
- package/dist/types/typed-buffer/structs/write-struct.d.ts +2 -0
- package/dist/types/typed-buffer/structs/write-struct.js +2 -0
- package/dist/types/typed-buffer/structs/write-struct.js.map +1 -0
- package/dist/types/typed-buffer/structs/write-struct.test.d.ts +1 -0
- package/dist/types/typed-buffer/structs/write-struct.test.js +181 -0
- package/dist/types/typed-buffer/structs/write-struct.test.js.map +1 -0
- package/dist/types/typed-buffer/typed-buffer.d.ts +16 -0
- package/dist/types/typed-buffer/typed-buffer.js +2 -0
- package/dist/types/typed-buffer/typed-buffer.js.map +1 -0
- package/dist/types/typed-buffer/typed-buffer.test.d.ts +1 -0
- package/dist/types/typed-buffer/typed-buffer.test.js +223 -0
- package/dist/types/typed-buffer/typed-buffer.test.js.map +1 -0
- package/dist/types/types.d.ts +5 -2
- package/dist/types/types.js.map +1 -1
- package/dist/ui/decorators/apply-decorator.d.ts +1 -0
- package/dist/ui/decorators/apply-decorator.js +18 -0
- package/dist/ui/decorators/apply-decorator.js.map +1 -0
- package/dist/ui/decorators/apply-service-decorators.d.ts +1 -0
- package/dist/ui/decorators/apply-service-decorators.js +12 -0
- package/dist/ui/decorators/apply-service-decorators.js.map +1 -0
- package/dist/ui/decorators/require-service.d.ts +1 -0
- package/dist/ui/decorators/require-service.js +13 -0
- package/dist/ui/decorators/require-service.js.map +1 -0
- package/dist/ui/elements/index.d.ts +3 -0
- package/dist/ui/elements/index.js +4 -0
- package/dist/ui/elements/index.js.map +1 -0
- package/dist/ui/elements/service-application.d.ts +8 -0
- package/dist/ui/elements/service-application.js +27 -0
- package/dist/ui/elements/service-application.js.map +1 -0
- package/dist/ui/elements/service-context.d.ts +1 -0
- package/dist/ui/elements/service-context.js +3 -0
- package/dist/ui/elements/service-context.js.map +1 -0
- package/dist/ui/elements/service-element.d.ts +6 -0
- package/dist/ui/elements/service-element.js +22 -0
- package/dist/ui/elements/service-element.js.map +1 -0
- package/dist/ui/hooks/component/component.d.ts +9 -0
- package/dist/ui/hooks/component/component.js +2 -0
- package/dist/ui/hooks/component/component.js.map +1 -0
- package/dist/ui/hooks/component/stack.d.ts +6 -0
- package/dist/ui/hooks/component/stack.js +15 -0
- package/dist/ui/hooks/component/stack.js.map +1 -0
- package/dist/ui/hooks/index.d.ts +7 -0
- package/dist/ui/hooks/index.js +9 -0
- package/dist/ui/hooks/index.js.map +1 -0
- package/dist/ui/hooks/use-connected.d.ts +2 -0
- package/dist/ui/hooks/use-connected.js +31 -0
- package/dist/ui/hooks/use-connected.js.map +1 -0
- package/dist/ui/hooks/use-effect.d.ts +3 -0
- package/dist/ui/hooks/use-effect.js +13 -0
- package/dist/ui/hooks/use-effect.js.map +1 -0
- package/dist/ui/hooks/use-element.d.ts +4 -0
- package/dist/ui/hooks/use-element.js +8 -0
- package/dist/ui/hooks/use-element.js.map +1 -0
- package/dist/ui/hooks/use-memo.d.ts +1 -0
- package/dist/ui/hooks/use-memo.js +12 -0
- package/dist/ui/hooks/use-memo.js.map +1 -0
- package/dist/ui/hooks/use-observable-values.d.ts +5 -0
- package/dist/ui/hooks/use-observable-values.js +8 -0
- package/dist/ui/hooks/use-observable-values.js.map +1 -0
- package/dist/ui/hooks/use-observable.d.ts +2 -0
- package/dist/ui/hooks/use-observable.js +12 -0
- package/dist/ui/hooks/use-observable.js.map +1 -0
- package/dist/ui/hooks/use-ref.d.ts +3 -0
- package/dist/ui/hooks/use-ref.js +6 -0
- package/dist/ui/hooks/use-ref.js.map +1 -0
- package/dist/ui/hooks/use-resize-observer.d.ts +10 -0
- package/dist/ui/hooks/use-resize-observer.js +20 -0
- package/dist/ui/hooks/use-resize-observer.js.map +1 -0
- package/dist/ui/hooks/use-state.d.ts +2 -0
- package/dist/ui/hooks/use-state.js +14 -0
- package/dist/ui/hooks/use-state.js.map +1 -0
- package/dist/ui/hooks/use-window-event.d.ts +1 -0
- package/dist/ui/hooks/use-window-event.js +10 -0
- package/dist/ui/hooks/use-window-event.js.map +1 -0
- package/dist/ui/hooks/with-hooks.d.ts +2 -0
- package/dist/ui/hooks/with-hooks.js +15 -0
- package/dist/ui/hooks/with-hooks.js.map +1 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +2 -0
- package/dist/ui/index.js.map +1 -0
- package/package.json +45 -1
- package/dist/core/functions/array-equals.d.ts +0 -1
- package/dist/core/functions/array-equals.js.map +0 -1
- package/dist/core/functions/with-validation.d.ts +0 -5
- package/dist/core/functions/with-validation.js +0 -38
- package/dist/core/functions/with-validation.js.map +0 -1
- package/dist/core/functions/with-validation.test.js +0 -96
- package/dist/core/functions/with-validation.test.js.map +0 -1
- package/dist/core/schema/dynamic/dynamic-schema.d.ts +0 -27
- package/dist/core/schema/dynamic/dynamic-schema.js +0 -2
- package/dist/core/schema/dynamic/dynamic-schema.js.map +0 -1
- package/dist/core/schema/dynamic/enumerate-patches.d.ts +0 -9
- package/dist/core/schema/dynamic/enumerate-patches.js +0 -50
- package/dist/core/schema/dynamic/enumerate-patches.js.map +0 -1
- package/dist/core/schema/dynamic/enumerate-patches.test.d.ts +0 -134
- package/dist/core/schema/dynamic/enumerate-patches.test.js +0 -209
- package/dist/core/schema/dynamic/enumerate-patches.test.js.map +0 -1
- package/dist/core/schema/dynamic/get-dynamic-schema.d.ts +0 -5
- package/dist/core/schema/dynamic/get-dynamic-schema.js +0 -26
- package/dist/core/schema/dynamic/get-dynamic-schema.js.map +0 -1
- package/dist/core/schema/dynamic/get-dynamic-schema.test.js +0 -94
- package/dist/core/schema/dynamic/get-dynamic-schema.test.js.map +0 -1
- package/dist/core/schema/dynamic/index.d.ts +0 -1
- package/dist/core/schema/dynamic/index.js +0 -2
- package/dist/core/schema/dynamic/index.js.map +0 -1
- package/dist/core/schema/dynamic/schema-path-value-path.d.ts +0 -5
- package/dist/core/schema/dynamic/schema-path-value-path.js +0 -12
- package/dist/core/schema/dynamic/schema-path-value-path.js.map +0 -1
- package/dist/core/schema/dynamic-schema.d.ts +0 -27
- package/dist/core/schema/dynamic-schema.js +0 -2
- package/dist/core/schema/dynamic-schema.js.map +0 -1
- package/dist/core/schema/index.d.ts +0 -4
- package/dist/core/schema/index.js.map +0 -1
- package/dist/core/schema/schema.d.ts +0 -122
- package/dist/core/schema/schema.js.map +0 -1
- package/dist/core/schema/schemas.d.ts +0 -45
- package/dist/core/schema/schemas.js +0 -39
- package/dist/core/schema/schemas.js.map +0 -1
- package/dist/core/schema/ui-schema.d.ts +0 -25
- package/dist/core/schema/ui-schema.js +0 -2
- package/dist/core/schema/ui-schema.js.map +0 -1
- package/dist/core/schema/validation/is-valid.d.ts +0 -2
- package/dist/core/schema/validation/is-valid.js +0 -14
- package/dist/core/schema/validation/is-valid.js.map +0 -1
- package/dist/core/schema/validation/is-valid.test.js.map +0 -1
- package/dist/core/schema/validation/validate.d.ts +0 -2
- package/dist/core/schema/validation/validate.js.map +0 -1
- package/dist/core/schema/validation/validate.test.js +0 -106
- package/dist/core/schema/validation/validate.test.js.map +0 -1
- package/dist/core/schema/validation/with-validation.d.ts +0 -5
- package/dist/core/schema/validation/with-validation.js +0 -16
- package/dist/core/schema/validation/with-validation.js.map +0 -1
- package/dist/core/schema/validation/with-validation.test.js +0 -96
- package/dist/core/schema/validation/with-validation.test.js.map +0 -1
- package/dist/core/schema.d.ts +0 -86
- package/dist/core/schema.js.map +0 -1
- package/dist/core/schemas.d.ts +0 -45
- package/dist/core/schemas.js +0 -39
- package/dist/core/schemas.js.map +0 -1
- package/dist/schemas/index.d.ts +0 -1
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/schemas.d.ts +0 -45
- package/dist/schemas/schemas.js +0 -39
- package/dist/schemas/schemas.js.map +0 -1
- /package/dist/{core/functions/with-validation.test.d.ts → _/equals.test.d.ts} +0 -0
- /package/dist/{core/schema/dynamic/get-dynamic-schema.test.d.ts → _/normalize.test.d.ts} +0 -0
- /package/dist/{core/schema/validation/is-valid.test.d.ts → _/schema.test.d.ts} +0 -0
- /package/dist/{core/schema/validation/validate.test.d.ts → blob-store/blob-store.test.d.ts} +0 -0
- /package/dist/core/{schema/validation/with-validation.test.d.ts → equals.test.d.ts} +0 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { equalsShallow } from './equalsShallow.js';
|
|
2
|
+
import { describe, expect, it } from 'vitest';
|
|
3
|
+
describe('equalsShallow', () => {
|
|
4
|
+
describe('primitives and identical refs', () => {
|
|
5
|
+
it('should return true for identical primitive values', () => {
|
|
6
|
+
expect(equalsShallow(1, 1)).toBe(true);
|
|
7
|
+
expect(equalsShallow('hello', 'hello')).toBe(true);
|
|
8
|
+
expect(equalsShallow(true, true)).toBe(true);
|
|
9
|
+
expect(equalsShallow(false, false)).toBe(true);
|
|
10
|
+
expect(equalsShallow(undefined, undefined)).toBe(true);
|
|
11
|
+
expect(equalsShallow(null, null)).toBe(true);
|
|
12
|
+
});
|
|
13
|
+
it('should return true for identical object references', () => {
|
|
14
|
+
const obj = { a: 1 };
|
|
15
|
+
expect(equalsShallow(obj, obj)).toBe(true);
|
|
16
|
+
const arr = [1, 2, 3];
|
|
17
|
+
expect(equalsShallow(arr, arr)).toBe(true);
|
|
18
|
+
});
|
|
19
|
+
it('should return false for different primitive values', () => {
|
|
20
|
+
expect(equalsShallow(1, 2)).toBe(false);
|
|
21
|
+
expect(equalsShallow('hello', 'world')).toBe(false);
|
|
22
|
+
expect(equalsShallow(true, false)).toBe(false);
|
|
23
|
+
expect(equalsShallow(1, '1')).toBe(false);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
describe('null and non-objects', () => {
|
|
27
|
+
it('should return false when one is null and other is not', () => {
|
|
28
|
+
expect(equalsShallow(null, {})).toBe(false);
|
|
29
|
+
expect(equalsShallow({}, null)).toBe(false);
|
|
30
|
+
expect(equalsShallow(null, [])).toBe(false);
|
|
31
|
+
expect(equalsShallow([], null)).toBe(false);
|
|
32
|
+
});
|
|
33
|
+
it('should return false when one is not an object', () => {
|
|
34
|
+
expect(equalsShallow(1, {})).toBe(false);
|
|
35
|
+
expect(equalsShallow({}, 1)).toBe(false);
|
|
36
|
+
expect(equalsShallow('string', [])).toBe(false);
|
|
37
|
+
expect(equalsShallow([], 'string')).toBe(false);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
describe('arrays', () => {
|
|
41
|
+
it('should return true for identical arrays', () => {
|
|
42
|
+
expect(equalsShallow([1, 2, 3], [1, 2, 3])).toBe(true);
|
|
43
|
+
expect(equalsShallow(['a', 'b'], ['a', 'b'])).toBe(true);
|
|
44
|
+
expect(equalsShallow([], [])).toBe(true);
|
|
45
|
+
});
|
|
46
|
+
it('should return false when one is array and other is not', () => {
|
|
47
|
+
expect(equalsShallow([1, 2, 3], {})).toBe(false);
|
|
48
|
+
expect(equalsShallow({}, [1, 2, 3])).toBe(false);
|
|
49
|
+
});
|
|
50
|
+
it('should return false for arrays with different lengths', () => {
|
|
51
|
+
expect(equalsShallow([1, 2], [1, 2, 3])).toBe(false);
|
|
52
|
+
expect(equalsShallow([1, 2, 3], [1, 2])).toBe(false);
|
|
53
|
+
});
|
|
54
|
+
it('should return false for arrays with different elements', () => {
|
|
55
|
+
expect(equalsShallow([1, 2, 3], [1, 2, 4])).toBe(false);
|
|
56
|
+
expect(equalsShallow([1, 2, 3], [1, 3, 2])).toBe(false);
|
|
57
|
+
});
|
|
58
|
+
it('should handle nested objects in arrays (shallow comparison)', () => {
|
|
59
|
+
const obj1 = { a: 1 };
|
|
60
|
+
const obj2 = { a: 1 };
|
|
61
|
+
expect(equalsShallow([obj1], [obj1])).toBe(true);
|
|
62
|
+
expect(equalsShallow([obj1], [obj2])).toBe(false); // Different references
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
describe('plain objects', () => {
|
|
66
|
+
it('should return true for identical objects', () => {
|
|
67
|
+
expect(equalsShallow({ a: 1, b: 2 }, { a: 1, b: 2 })).toBe(true);
|
|
68
|
+
expect(equalsShallow({}, {})).toBe(true);
|
|
69
|
+
});
|
|
70
|
+
it('should return false for objects with different values', () => {
|
|
71
|
+
expect(equalsShallow({ a: 1, b: 2 }, { a: 1, b: 3 })).toBe(false);
|
|
72
|
+
expect(equalsShallow({ a: 1 }, { a: 2 })).toBe(false);
|
|
73
|
+
});
|
|
74
|
+
it('should return false for objects with different keys', () => {
|
|
75
|
+
expect(equalsShallow({ a: 1, b: 2 }, { a: 1, c: 2 })).toBe(false);
|
|
76
|
+
expect(equalsShallow({ a: 1 }, { b: 1 })).toBe(false);
|
|
77
|
+
});
|
|
78
|
+
it('should return false when one object has extra keys', () => {
|
|
79
|
+
expect(equalsShallow({ a: 1 }, { a: 1, b: 2 })).toBe(false);
|
|
80
|
+
expect(equalsShallow({ a: 1, b: 2 }, { a: 1 })).toBe(false);
|
|
81
|
+
});
|
|
82
|
+
it('should handle nested objects (shallow comparison)', () => {
|
|
83
|
+
const nested1 = { x: 1 };
|
|
84
|
+
const nested2 = { x: 1 };
|
|
85
|
+
expect(equalsShallow({ a: nested1 }, { a: nested1 })).toBe(true);
|
|
86
|
+
expect(equalsShallow({ a: nested1 }, { a: nested2 })).toBe(false); // Different references
|
|
87
|
+
});
|
|
88
|
+
it('should handle arrays as object values (shallow comparison)', () => {
|
|
89
|
+
const arr1 = [1, 2, 3];
|
|
90
|
+
const arr2 = [1, 2, 3];
|
|
91
|
+
expect(equalsShallow({ a: arr1 }, { a: arr1 })).toBe(true);
|
|
92
|
+
expect(equalsShallow({ a: arr1 }, { a: arr2 })).toBe(false); // Different references
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
describe('edge cases', () => {
|
|
96
|
+
it('should handle objects with same keys but different order', () => {
|
|
97
|
+
expect(equalsShallow({ a: 1, b: 2 }, { b: 2, a: 1 })).toBe(true);
|
|
98
|
+
});
|
|
99
|
+
it('should handle objects with undefined values', () => {
|
|
100
|
+
expect(equalsShallow({ a: undefined }, { a: undefined })).toBe(true);
|
|
101
|
+
expect(equalsShallow({ a: undefined }, { a: 1 })).toBe(false);
|
|
102
|
+
});
|
|
103
|
+
it('should handle objects with null values', () => {
|
|
104
|
+
expect(equalsShallow({ a: null }, { a: null })).toBe(true);
|
|
105
|
+
expect(equalsShallow({ a: null }, { a: 1 })).toBe(false);
|
|
106
|
+
});
|
|
107
|
+
it('should handle mixed types in arrays', () => {
|
|
108
|
+
expect(equalsShallow([1, 'string', true], [1, 'string', true])).toBe(true);
|
|
109
|
+
expect(equalsShallow([1, 'string', true], [1, 'string', false])).toBe(false);
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
//# sourceMappingURL=equalsShallow.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equalsShallow.test.js","sourceRoot":"","sources":["../../../src/types/array/equalsShallow.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;QAC7C,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;YAC3D,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACvC,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACnD,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC7C,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/C,MAAM,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,I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C,KAAK,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;YAChD,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC3D,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;YAC7C,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC3E,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/E,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../equalsShallow.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/array/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const copy: (from: ArrayBufferLike, to: ArrayBufferLike, length?: number, fromOffset?: number, toOffset?: number) => void;
|
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
/*MIT License
|
|
23
|
+
|
|
24
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
25
|
+
|
|
26
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
27
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
28
|
+
in the Software without restriction, including without limitation the rights
|
|
29
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
30
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
31
|
+
furnished to do so, subject to the following conditions:
|
|
32
|
+
|
|
33
|
+
The above copyright notice and this permission notice shall be included in all
|
|
34
|
+
copies or substantial portions of the Software.
|
|
35
|
+
|
|
36
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
37
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
38
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
39
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
40
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
41
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
42
|
+
SOFTWARE.*/
|
|
43
|
+
/*MIT License
|
|
44
|
+
|
|
45
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
46
|
+
|
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
48
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
49
|
+
in the Software without restriction, including without limitation the rights
|
|
50
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
51
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
52
|
+
furnished to do so, subject to the following conditions:
|
|
53
|
+
|
|
54
|
+
The above copyright notice and this permission notice shall be included in all
|
|
55
|
+
copies or substantial portions of the Software.
|
|
56
|
+
|
|
57
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
58
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
59
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
60
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
61
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
62
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
63
|
+
SOFTWARE.*/
|
|
64
|
+
/*MIT License
|
|
65
|
+
|
|
66
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
67
|
+
|
|
68
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
69
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
70
|
+
in the Software without restriction, including without limitation the rights
|
|
71
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
72
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
73
|
+
furnished to do so, subject to the following conditions:
|
|
74
|
+
|
|
75
|
+
The above copyright notice and this permission notice shall be included in all
|
|
76
|
+
copies or substantial portions of the Software.
|
|
77
|
+
|
|
78
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
79
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
80
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
81
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
82
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
83
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
84
|
+
SOFTWARE.*/
|
|
85
|
+
/*MIT License
|
|
86
|
+
|
|
87
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
88
|
+
|
|
89
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
90
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
91
|
+
in the Software without restriction, including without limitation the rights
|
|
92
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
93
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
94
|
+
furnished to do so, subject to the following conditions:
|
|
95
|
+
|
|
96
|
+
The above copyright notice and this permission notice shall be included in all
|
|
97
|
+
copies or substantial portions of the Software.
|
|
98
|
+
|
|
99
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
100
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
101
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
102
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
103
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
104
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
105
|
+
SOFTWARE.*/
|
|
106
|
+
/*MIT License
|
|
107
|
+
|
|
108
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
109
|
+
|
|
110
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
111
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
112
|
+
in the Software without restriction, including without limitation the rights
|
|
113
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
114
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
115
|
+
furnished to do so, subject to the following conditions:
|
|
116
|
+
|
|
117
|
+
The above copyright notice and this permission notice shall be included in all
|
|
118
|
+
copies or substantial portions of the Software.
|
|
119
|
+
|
|
120
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
121
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
122
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
123
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
124
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
125
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
126
|
+
SOFTWARE.*/
|
|
127
|
+
/*MIT License
|
|
128
|
+
|
|
129
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
130
|
+
|
|
131
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
132
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
133
|
+
in the Software without restriction, including without limitation the rights
|
|
134
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
135
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
136
|
+
furnished to do so, subject to the following conditions:
|
|
137
|
+
|
|
138
|
+
The above copyright notice and this permission notice shall be included in all
|
|
139
|
+
copies or substantial portions of the Software.
|
|
140
|
+
|
|
141
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
142
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
143
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
144
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
145
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
146
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
147
|
+
SOFTWARE.*/
|
|
148
|
+
/*MIT License
|
|
149
|
+
|
|
150
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
151
|
+
|
|
152
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
153
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
154
|
+
in the Software without restriction, including without limitation the rights
|
|
155
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
156
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
157
|
+
furnished to do so, subject to the following conditions:
|
|
158
|
+
|
|
159
|
+
The above copyright notice and this permission notice shall be included in all
|
|
160
|
+
copies or substantial portions of the Software.
|
|
161
|
+
|
|
162
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
163
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
164
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
165
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
166
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
167
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
168
|
+
SOFTWARE.*/
|
|
169
|
+
/*MIT License
|
|
170
|
+
|
|
171
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
172
|
+
|
|
173
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
174
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
175
|
+
in the Software without restriction, including without limitation the rights
|
|
176
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
177
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
178
|
+
furnished to do so, subject to the following conditions:
|
|
179
|
+
|
|
180
|
+
The above copyright notice and this permission notice shall be included in all
|
|
181
|
+
copies or substantial portions of the Software.
|
|
182
|
+
|
|
183
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
184
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
185
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
186
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
187
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
188
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
189
|
+
SOFTWARE.*/
|
|
190
|
+
/*MIT License
|
|
191
|
+
|
|
192
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
193
|
+
|
|
194
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
195
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
196
|
+
in the Software without restriction, including without limitation the rights
|
|
197
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
198
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
199
|
+
furnished to do so, subject to the following conditions:
|
|
200
|
+
|
|
201
|
+
The above copyright notice and this permission notice shall be included in all
|
|
202
|
+
copies or substantial portions of the Software.
|
|
203
|
+
|
|
204
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
205
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
206
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
207
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
208
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
209
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
210
|
+
SOFTWARE.*/
|
|
211
|
+
/*MIT License
|
|
212
|
+
|
|
213
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
214
|
+
|
|
215
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
216
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
217
|
+
in the Software without restriction, including without limitation the rights
|
|
218
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
219
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
220
|
+
furnished to do so, subject to the following conditions:
|
|
221
|
+
|
|
222
|
+
The above copyright notice and this permission notice shall be included in all
|
|
223
|
+
copies or substantial portions of the Software.
|
|
224
|
+
|
|
225
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
226
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
227
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
228
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
229
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
230
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
231
|
+
SOFTWARE.*/
|
|
232
|
+
/*MIT License
|
|
233
|
+
|
|
234
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
235
|
+
|
|
236
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
237
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
238
|
+
in the Software without restriction, including without limitation the rights
|
|
239
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
240
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
241
|
+
furnished to do so, subject to the following conditions:
|
|
242
|
+
|
|
243
|
+
The above copyright notice and this permission notice shall be included in all
|
|
244
|
+
copies or substantial portions of the Software.
|
|
245
|
+
|
|
246
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
247
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
248
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
249
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
250
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
251
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
252
|
+
SOFTWARE.*/
|
|
253
|
+
/*MIT License
|
|
254
|
+
|
|
255
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
256
|
+
|
|
257
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
258
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
259
|
+
in the Software without restriction, including without limitation the rights
|
|
260
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
261
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
262
|
+
furnished to do so, subject to the following conditions:
|
|
263
|
+
|
|
264
|
+
The above copyright notice and this permission notice shall be included in all
|
|
265
|
+
copies or substantial portions of the Software.
|
|
266
|
+
|
|
267
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
268
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
269
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
270
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
271
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
272
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
273
|
+
SOFTWARE.*/
|
|
274
|
+
/*MIT License
|
|
275
|
+
|
|
276
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
277
|
+
|
|
278
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
279
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
280
|
+
in the Software without restriction, including without limitation the rights
|
|
281
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
282
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
283
|
+
furnished to do so, subject to the following conditions:
|
|
284
|
+
|
|
285
|
+
The above copyright notice and this permission notice shall be included in all
|
|
286
|
+
copies or substantial portions of the Software.
|
|
287
|
+
|
|
288
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
289
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
290
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
291
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
292
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
293
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
294
|
+
SOFTWARE.*/
|
|
295
|
+
/*MIT License
|
|
296
|
+
|
|
297
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
298
|
+
|
|
299
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
300
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
301
|
+
in the Software without restriction, including without limitation the rights
|
|
302
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
303
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
304
|
+
furnished to do so, subject to the following conditions:
|
|
305
|
+
|
|
306
|
+
The above copyright notice and this permission notice shall be included in all
|
|
307
|
+
copies or substantial portions of the Software.
|
|
308
|
+
|
|
309
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
310
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
311
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
312
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
313
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
314
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
315
|
+
SOFTWARE.*/
|
|
316
|
+
/*MIT License
|
|
317
|
+
|
|
318
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
319
|
+
|
|
320
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
321
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
322
|
+
in the Software without restriction, including without limitation the rights
|
|
323
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
324
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
325
|
+
furnished to do so, subject to the following conditions:
|
|
326
|
+
|
|
327
|
+
The above copyright notice and this permission notice shall be included in all
|
|
328
|
+
copies or substantial portions of the Software.
|
|
329
|
+
|
|
330
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
331
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
332
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
333
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
334
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
335
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
336
|
+
SOFTWARE.*/
|
|
337
|
+
/*MIT License
|
|
338
|
+
|
|
339
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
340
|
+
|
|
341
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
342
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
343
|
+
in the Software without restriction, including without limitation the rights
|
|
344
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
345
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
346
|
+
furnished to do so, subject to the following conditions:
|
|
347
|
+
|
|
348
|
+
The above copyright notice and this permission notice shall be included in all
|
|
349
|
+
copies or substantial portions of the Software.
|
|
350
|
+
|
|
351
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
352
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
353
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
354
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
355
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
356
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
357
|
+
SOFTWARE.*/
|
|
358
|
+
/*MIT License
|
|
359
|
+
|
|
360
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
361
|
+
|
|
362
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
363
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
364
|
+
in the Software without restriction, including without limitation the rights
|
|
365
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
366
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
367
|
+
furnished to do so, subject to the following conditions:
|
|
368
|
+
|
|
369
|
+
The above copyright notice and this permission notice shall be included in all
|
|
370
|
+
copies or substantial portions of the Software.
|
|
371
|
+
|
|
372
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
373
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
374
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
375
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
376
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
377
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
378
|
+
SOFTWARE.*/
|
|
379
|
+
/*MIT License
|
|
380
|
+
|
|
381
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
382
|
+
|
|
383
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
384
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
385
|
+
in the Software without restriction, including without limitation the rights
|
|
386
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
387
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
388
|
+
furnished to do so, subject to the following conditions:
|
|
389
|
+
|
|
390
|
+
The above copyright notice and this permission notice shall be included in all
|
|
391
|
+
copies or substantial portions of the Software.
|
|
392
|
+
|
|
393
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
394
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
395
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
396
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
397
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
398
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
399
|
+
SOFTWARE.*/
|
|
400
|
+
/*MIT License
|
|
401
|
+
|
|
402
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
403
|
+
|
|
404
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
405
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
406
|
+
in the Software without restriction, including without limitation the rights
|
|
407
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
408
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
409
|
+
furnished to do so, subject to the following conditions:
|
|
410
|
+
|
|
411
|
+
The above copyright notice and this permission notice shall be included in all
|
|
412
|
+
copies or substantial portions of the Software.
|
|
413
|
+
|
|
414
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
415
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
416
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
417
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
418
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
419
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
420
|
+
SOFTWARE.*/
|
|
421
|
+
/*MIT License
|
|
422
|
+
|
|
423
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
424
|
+
|
|
425
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
426
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
427
|
+
in the Software without restriction, including without limitation the rights
|
|
428
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
429
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
430
|
+
furnished to do so, subject to the following conditions:
|
|
431
|
+
|
|
432
|
+
The above copyright notice and this permission notice shall be included in all
|
|
433
|
+
copies or substantial portions of the Software.
|
|
434
|
+
|
|
435
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
436
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
437
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
438
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
439
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
440
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
441
|
+
SOFTWARE.*/
|
|
442
|
+
export const copy = (from, to, length = from.byteLength, fromOffset = 0, toOffset = 0) => {
|
|
443
|
+
if (length > from.byteLength) {
|
|
444
|
+
throw new Error("Cannot copy more than the source");
|
|
445
|
+
}
|
|
446
|
+
if (fromOffset < 0) {
|
|
447
|
+
throw new Error("Cannot copy from a negative offset");
|
|
448
|
+
}
|
|
449
|
+
if (toOffset < 0) {
|
|
450
|
+
throw new Error("Cannot copy to a negative offset");
|
|
451
|
+
}
|
|
452
|
+
if (fromOffset + length > from.byteLength) {
|
|
453
|
+
throw new Error("Cannot copy more than the source");
|
|
454
|
+
}
|
|
455
|
+
if (toOffset + length > to.byteLength) {
|
|
456
|
+
throw new Error("Cannot copy more than the destination");
|
|
457
|
+
}
|
|
458
|
+
if (from === to) {
|
|
459
|
+
// potential overlap, so use copyWithin
|
|
460
|
+
const array = new Uint8Array(from);
|
|
461
|
+
array.copyWithin(toOffset, fromOffset, fromOffset + length);
|
|
462
|
+
}
|
|
463
|
+
else {
|
|
464
|
+
const fromArray = new Uint8Array(from).subarray(fromOffset, fromOffset + length);
|
|
465
|
+
const toArray = new Uint8Array(to).subarray(toOffset, toOffset + length);
|
|
466
|
+
toArray.set(fromArray);
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
//# sourceMappingURL=copy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy.js","sourceRoot":"","sources":["../../../src/types/array-buffer-like/copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AACX;;;;;;;;;;;;;;;;;;;;WAoBW;AAC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