origami-loaders 0.0.0-stage → 0.1.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,42 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0
4
+
5
+ The first release. `<origami-loader>` is a loader that folds a sheet of paper into an origami model, drawn in 3D as live SVG. It is one web component with no dependencies, and works in plain HTML, React, Vue, Svelte or any other framework.
6
+
7
+ ```sh
8
+ npm i origami-loaders
9
+ ```
10
+
11
+ ```html
12
+ <script src="https://cdn.jsdelivr.net/npm/origami-loaders"></script>
13
+ <origami-loader model="crane" look="paper"></origami-loader>
14
+ ```
15
+
16
+ ### Ten models
17
+
18
+ - `crane`: all 14 steps of the classic diagram, then it flies off.
19
+ - `plane`: the classic dart in 7 steps. It circles once, then flies off.
20
+ - `pleat`: an accordion that breathes, for waits with no end in sight.
21
+ - `envelope`: four corners to the centre, so a quarter of the work is one corner.
22
+ - `boat`: a sailboat in three folds. It rocks, then sails off.
23
+ - `frog`: the traditional jumping frog. It hops twice, then hops away.
24
+ - `swan`: kite, neck, head. It drifts, then glides off.
25
+ - `heart`: the classic heart. It beats.
26
+ - `whale`: the traditional whale, from a fish base. It swims, flicks its tail and dives.
27
+ - `fox`: a fox's face. It tilts its head and twitches its ears.
28
+
29
+ ### Four looks
30
+
31
+ `ink` line art, `blueprint` wireframe with fold lines, `graphite` shading and two-tone `paper` with a grain that folds with the sheet. Each one works in light and dark, and can be recoloured with CSS custom properties.
32
+
33
+ ### Real progress
34
+
35
+ Set `progress` from 0 to 1 and the paper shows that point of the fold. Call `complete()` when the work is done: the model plays its ending, then fires `ol-complete`. `seek()`, `currentStep` and the `ol-step` event let a page follow the fold step by step.
36
+
37
+ ### Built in
38
+
39
+ - Reduced motion is respected, and loaders pause when they scroll off screen.
40
+ - Safe to import during server rendering (Next.js, Nuxt, SvelteKit, Astro).
41
+ - About 21 kB gzipped with all ten models. The Paper Shaders grain loads on demand as its own chunk.
42
+ - The folding engine is exported (`Folder`, `registerModel`), so a page can fold and register its own models.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 rishiashar
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.
package/README.md CHANGED
@@ -1,3 +1,205 @@
1
- # Temporary Holding Version
1
+ # origami-loaders
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **Loaders that fold.** 3D origami animations rendered as lightweight SVG — no canvas, no WebGL, no dependencies.
4
+
5
+ A framework-agnostic web component: drop `<origami-loader>` into any page, React, Vue, Svelte or plain HTML.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm i origami-loaders
11
+ ```
12
+
13
+ With a bundler, import the package once. It registers the `<origami-loader>` element as a side effect. The `OrigamiLoader` class is also exported. It is safe to import during server rendering (Next.js, Nuxt, SvelteKit, Astro): the element registers only once the page runs in a browser.
14
+
15
+ ```js
16
+ import 'origami-loaders';
17
+ ```
18
+
19
+ ```html
20
+ <origami-loader look="ink"></origami-loader>
21
+ ```
22
+
23
+ Without a bundler, load the IIFE build from jsDelivr:
24
+
25
+ ```html
26
+ <script src="https://cdn.jsdelivr.net/npm/origami-loaders"></script>
27
+ <origami-loader look="blueprint" theme="dark"></origami-loader>
28
+ ```
29
+
30
+ ## Attributes
31
+
32
+ | Attribute | Values | Default | Description |
33
+ | ---------- | ---------------------------------------- | ------- | ----------- |
34
+ | `model` | `crane`, `plane`, `pleat`, `envelope`, `boat`, `frog`, `swan`, `heart`, `whale`, `fox` | `crane` | Which origami model to fold. |
35
+ | `look` | `ink` \| `blueprint` \| `graphite` \| `paper` | `ink` | Rendering style. |
36
+ | `theme` | `light` \| `dark` \| `auto` | `auto` | `auto` follows `prefers-color-scheme`. |
37
+ | `speed` | number | `1` | Playback speed multiplier. |
38
+ | `progress` | `0`..`1` | unset | When present, the loader is in determinate mode and shows that point of the fold sequence instead of playing. |
39
+ | `paused` | boolean attribute | unset | Pauses playback. |
40
+
41
+ ## CSS custom properties
42
+
43
+ | Property | Used by | Description |
44
+ | ------------- | ----------------- | ----------- |
45
+ | `--ol-ink` | all looks | Line color. |
46
+ | `--ol-bg` | all looks | Face fill used to hide lines behind other faces. Should match the page background. |
47
+ | `--ol-front` | `paper` | Front-side paper color. |
48
+ | `--ol-back` | `paper` | Back-side paper color. |
49
+ | `--ol-stroke` | all looks | Line width, e.g. `1.5px`. |
50
+
51
+ Size is set with CSS `width` / `height` (default `160px` square).
52
+
53
+ ```css
54
+ origami-loader {
55
+ width: 96px;
56
+ height: 96px;
57
+ --ol-ink: #1b1b1d;
58
+ --ol-bg: #fff;
59
+ --ol-stroke: 1.5px;
60
+ }
61
+ ```
62
+
63
+ ## JavaScript API
64
+
65
+ ```js
66
+ const el = document.querySelector('origami-loader');
67
+
68
+ el.duration; // total length of the fold sequence, in seconds
69
+ el.seek(2.5); // jump to a time, in seconds
70
+ el.currentStep; // { index, diagram, label }
71
+ el.stepCount; // steps on the paper diagram: 14 for the crane, 7 for the plane
72
+
73
+ el.addEventListener('ol-step', (e) => {
74
+ const { index, diagram, label } = e.detail; // fired when the step changes
75
+ });
76
+ ```
77
+
78
+ ### Real progress
79
+
80
+ Set `progress` as work advances, then call `complete()` when it is done. The model plays its ending (the crane flies off, the plane leaves), fires `ol-complete`, and stays empty until you start again.
81
+
82
+ ```js
83
+ upload.on('progress', (p) => el.setAttribute('progress', p)); // 0 to 1
84
+ upload.on('done', () => el.complete());
85
+ el.addEventListener('ol-complete', () => showSent());
86
+ el.restart(); // or set progress again to fold a fresh sheet
87
+ ```
88
+
89
+ ## Models
90
+
91
+ | Model | What it does |
92
+ | --- | --- |
93
+ | `crane` | The default. All 14 steps of the classic diagram, about 25 seconds a loop, then it flies off. |
94
+ | `plane` | The classic dart in 7 steps. Circles once, then flies off. |
95
+ | `pleat` | An accordion that breathes. Made for "thinking" and other waits with no end in sight. |
96
+ | `envelope` | Four corners to the centre, so progress maps neatly: a quarter of the work, one corner. |
97
+ | `boat` | A sailboat in three folds. Rocks on the water, then sails off. |
98
+ | `frog` | The traditional jumping frog, from a waterbomb base. Its pleat is a spring: it hops twice, then hops away. |
99
+ | `swan` | Kite, neck, head. Drifts on the water, then glides off. |
100
+ | `heart` | The classic heart, folded on the side you see. It beats. |
101
+ | `whale` | The traditional whale, from a fish base: the rabbit ears become its flippers. Swims, flicks its tail, then dives. |
102
+ | `fox` | A fox's face. Tilts its head and twitches its ears. |
103
+
104
+ Pick one with the `model` attribute:
105
+
106
+ ```html
107
+ <origami-loader model="plane"></origami-loader>
108
+ ```
109
+
110
+ ## Looks
111
+
112
+ - **ink** — line art, hidden lines removed.
113
+ - **blueprint** — see-through wireframe with diagram-style fold lines.
114
+ - **graphite** — monochrome with soft light shading.
115
+ - **paper** — two-tone origami paper.
116
+
117
+ ## Status
118
+
119
+ The paper crane folds through all 14 steps of the classic diagram, about 25 seconds per loop: pre-creases, square base, petal folds on both sides, narrowing, inside reverse folds for the neck, tail and head, then the wings spread and it flies off while a new sheet drops in.
120
+
121
+ - [x] Folding engine: folds against the paper as it lies, solved compound folds, layer stacking, 3D projection, depth sorting
122
+ - [x] The crane, all 14 steps
123
+ - [x] Four looks, light and dark, recolourable, with procedural paper grain
124
+ - [x] Progress mode, reduced motion, pauses off screen
125
+ - [x] A second model, the paper plane
126
+ - [x] Ten models: crane, plane, pleat, envelope, boat, frog, swan, heart, whale, fox
127
+ - [x] A fold check in the test suite that catches the wrong layer showing, folds that undo themselves, and torn creases
128
+ - [ ] Static SVG export for no-JS / `<img>` use
129
+ - [x] Paper look: models can start coloured side down, as real ones do, so the plane and envelope fold the colour out
130
+ - [x] Reverse folds are real: the point is mirrored across its crease and stays joined to it (the crane's neck, tail and head, the swan's neck and head, the whale's tail)
131
+ - [x] The crane shows only its coloured side, wings included, as a crane folded from one-sided paper does
132
+
133
+ ## How it works
134
+
135
+ A model is written the way origami is taught: one fold at a time, against the paper as it currently lies (`src/models/crane.ts`).
136
+
137
+ 1. **Folds cut the paper.** Each fold splits the faces it passes through along the fold line, so the crease pattern builds itself (`src/fold.ts`).
138
+ 2. **Joints move the faces.** A hinge rotates faces about a fold line; joints chain, so a flap can fold while it is being lifted. A **reverse fold** mirrors the point across its crease, so it turns inside out and stays joined along the crease, tucked between the layers (inside) or wrapped round them (outside). It gets there the way fingers move it: it swings round and turns over about its own spine, opening like a book.
139
+ 3. **Compound folds are solved.** The square base and the petal folds move several creases at once. Those angles are left free, `pin` says which corners must stay together, and a small Gauss–Newton solver works out the angles along the whole motion so the paper never tears. The frog's waterbomb base is worked out exactly instead: as each side triangle turns in by θ, the top comes down by γ = 2·atan(tan(θ/2)/√2).
140
+ 4. **Layers are tracked.** After every step the engine works out which face ended up on top wherever two overlap, and gives every face a layer height, so flat stacks have real thickness. Paper that stands up, like a crane's spread wings, keeps its stacking turned with it.
141
+ 5. **Rendering.** Faces are projected with a perspective camera and shaded by how they face a light. Faces lying flat together are drawn as one panel and painted back-to-front with plane tests and a topological sort; where no plane separates two panels, the one nearer the eye where they actually overlap goes on top (`src/scene.ts`).
142
+ 6. **Paper.** Paper Shaders' paper-texture shader renders the grain once per page on a hidden WebGL canvas; the result is baked into an image that each panel maps in sheet space, so the grain folds with the paper (`src/paper-shader.ts`, with a small CPU fallback in `src/texture.ts`).
143
+ 7. **Looks are CSS** (`src/styles.ts`). The paper look colours the front of the sheet; a model compiled with `colourDown` starts with the front facing away, the way you fold coloured paper, so the folds bring the colour out.
144
+
145
+ The crane compiles in about 50 ms on first use. A frame costs about 1 ms of script. The whole package, all ten models included, is about 21 kB gzipped.
146
+
147
+ ## Development
148
+
149
+ `npm test` also runs a fold check over every model (`test/inspect.ts`, under a second). At several moments in every step it lays the frame out exactly as the renderer does and fails if a farther layer is painted over a nearer one (the wrong side of the paper showing), if a face rides folds that undo each other, or if a crease tears. A reverse fold may open its crease on the way, but it must be shut again by the end of the step.
150
+
151
+ ```sh
152
+ npm install
153
+ npm run typecheck
154
+ npm test
155
+ npm run build # dist/ bundles + types, and a self-contained demo/dist/index.html
156
+ npm run demo # build, then print the demo page path
157
+ npm run capture # screenshots + video of the demo (needs Playwright and ffmpeg)
158
+ ```
159
+
160
+ ## Releasing
161
+
162
+ Publishing runs in GitHub Actions when a `v*` tag is pushed (`.github/workflows/publish.yml`). It typechecks, tests, builds, checks the tag against the version in `package.json`, then publishes with provenance: a signed record on npm of the commit and workflow that built the package. What changed in each version is in `CHANGELOG.md`.
163
+
164
+ ### The first release, with a token
165
+
166
+ The package does not exist on npm until the first release, so that one release uses a token.
167
+
168
+ 1. On npmjs.com, go to Access Tokens and generate a granular access token:
169
+ - **Bypass two-factor authentication** ticked, so the workflow can publish without a code from your phone.
170
+ - Packages and scopes: **Read and write (publish and stage)** on **All Packages**. The package cannot be picked by name until it exists.
171
+ - Expiration: 7 days. It is only needed once.
172
+ 2. In the GitHub repo, go to Settings, Secrets and variables, Actions, and add the token as a repository secret named `NPM_TOKEN`.
173
+ 3. Tag the release commit on `main` and push the tag:
174
+
175
+ ```sh
176
+ git tag v0.1.0
177
+ git push origin v0.1.0
178
+ ```
179
+
180
+ 4. Follow the Publish run in the repo's Actions tab. When it is green, the package is at npmjs.com/package/origami-loaders.
181
+ 5. Delete the `NPM_TOKEN` secret and revoke the token on npmjs.com. It has done its job.
182
+
183
+ ### Every release after, with no token
184
+
185
+ From then on, npm trusts this repo's publish workflow directly (trusted publishing), so no token is stored anywhere. npm stops letting tokens publish directly in January 2027, so this is the way to release from then on. The workflow needs no change: npm tries trusted publishing first and falls back to a token only when there is one.
186
+
187
+ 1. On npmjs.com, open the package's Settings, find Trusted Publisher, choose GitHub Actions and enter `rishiashar`, `origami-loaders` and `publish.yml`. The next publish must happen within 2 days of adding it, or the connection expires and has to be added again, so do this when the next release is ready.
188
+ 2. Bump the version, tag it and push:
189
+
190
+ ```sh
191
+ npm version 0.1.1 --no-git-tag-version # or edit package.json by hand
192
+ git commit -am "Release v0.1.1"
193
+ git tag v0.1.1
194
+ git push && git push --tags
195
+ ```
196
+
197
+ 3. Once that release is out, go to the package's Settings, Publishing access, and choose **Require two-factor authentication and disallow tokens**, so a leaked token can never publish.
198
+
199
+ ## Credits
200
+
201
+ The paper texture comes from the paper-texture shader in [Paper Shaders](https://shaders.paper.design) (Apache-2.0), rendered once per page and baked into the grain that folds with the paper. It loads on demand as its own chunk; `texture="grain"` uses a smaller built-in grain instead, and `texture="none"` turns texture off. See `THIRD_PARTY_NOTICES.txt`.
202
+
203
+ ## License
204
+
205
+ MIT
@@ -0,0 +1,215 @@
1
+ origami-loaders bundles third-party code:
2
+
3
+ ================================================================
4
+ Paper Shaders (@paper-design/shaders 0.0.82), used for the paper texture
5
+ https://shaders.paper.design — https://github.com/paper-design/shaders
6
+ License: Apache-2.0
7
+
8
+ Paper Shaders
9
+ Copyright 2026 Paper
10
+
11
+ Powered by Paper Shaders:
12
+ https://shaders.paper.design
13
+
14
+ ----------------------------------------------------------------
15
+ Apache License
16
+ Version 2.0, January 2004
17
+ http://www.apache.org/licenses/
18
+
19
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
20
+
21
+ 1. Definitions.
22
+
23
+ "License" shall mean the terms and conditions for use, reproduction,
24
+ and distribution as defined by Sections 1 through 9 of this document.
25
+
26
+ "Licensor" shall mean the copyright owner or entity authorized by
27
+ the copyright owner that is granting the License.
28
+
29
+ "Legal Entity" shall mean the union of the acting entity and all
30
+ other entities that control, are controlled by, or are under common
31
+ control with that entity. For the purposes of this definition,
32
+ "control" means (i) the power, direct or indirect, to cause the
33
+ direction or management of such entity, whether by contract or
34
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
35
+ outstanding shares, or (iii) beneficial ownership of such entity.
36
+
37
+ "You" (or "Your") shall mean an individual or Legal Entity
38
+ exercising permissions granted by this License.
39
+
40
+ "Source" form shall mean the preferred form for making modifications,
41
+ including but not limited to software source code, documentation
42
+ source, and configuration files.
43
+
44
+ "Object" form shall mean any form resulting from mechanical
45
+ transformation or translation of a Source form, including but
46
+ not limited to compiled object code, generated documentation,
47
+ and conversions to other media types.
48
+
49
+ "Work" shall mean the work of authorship, whether in Source or
50
+ Object form, made available under the License, as indicated by a
51
+ copyright notice that is included in or attached to the work
52
+ (an example is provided in the Appendix below).
53
+
54
+ "Derivative Works" shall mean any work, whether in Source or Object
55
+ form, that is based on (or derived from) the Work and for which the
56
+ editorial revisions, annotations, elaborations, or other modifications
57
+ represent, as a whole, an original work of authorship. For the purposes
58
+ of this License, Derivative Works shall not include works that remain
59
+ separable from, or merely link (or bind by name) to the interfaces of,
60
+ the Work and Derivative Works thereof.
61
+
62
+ "Contribution" shall mean any work of authorship, including
63
+ the original version of the Work and any modifications or additions
64
+ to that Work or Derivative Works thereof, that is intentionally
65
+ submitted to Licensor for inclusion in the Work by the copyright owner
66
+ or by an individual or Legal Entity authorized to submit on behalf of
67
+ the copyright owner. For the purposes of this definition, "submitted"
68
+ means any form of electronic, verbal, or written communication sent
69
+ to the Licensor or its representatives, including but not limited to
70
+ communication on electronic mailing lists, source code control systems,
71
+ and issue tracking systems that are managed by, or on behalf of, the
72
+ Licensor for the purpose of discussing and improving the Work, but
73
+ excluding communication that is conspicuously marked or otherwise
74
+ designated in writing by the copyright owner as "Not a Contribution."
75
+
76
+ "Contributor" shall mean Licensor and any individual or Legal Entity
77
+ on behalf of whom a Contribution has been received by Licensor and
78
+ subsequently incorporated within the Work.
79
+
80
+ 2. Grant of Copyright License. Subject to the terms and conditions of
81
+ this License, each Contributor hereby grants to You a perpetual,
82
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
83
+ copyright license to reproduce, prepare Derivative Works of,
84
+ publicly display, publicly perform, sublicense, and distribute the
85
+ Work and such Derivative Works in Source or Object form.
86
+
87
+ 3. Grant of Patent License. Subject to the terms and conditions of
88
+ this License, each Contributor hereby grants to You a perpetual,
89
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
90
+ (except as stated in this section) patent license to make, have made,
91
+ use, offer to sell, sell, import, and otherwise transfer the Work,
92
+ where such license applies only to those patent claims licensable
93
+ by such Contributor that are necessarily infringed by their
94
+ Contribution(s) alone or by combination of their Contribution(s)
95
+ with the Work to which such Contribution(s) was submitted. If You
96
+ institute patent litigation against any entity (including a
97
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
98
+ or a Contribution incorporated within the Work constitutes direct
99
+ or contributory patent infringement, then any patent licenses
100
+ granted to You under this License for that Work shall terminate
101
+ as of the date such litigation is filed.
102
+
103
+ 4. Redistribution. You may reproduce and distribute copies of the
104
+ Work or Derivative Works thereof in any medium, with or without
105
+ modifications, and in Source or Object form, provided that You
106
+ meet the following conditions:
107
+
108
+ (a) You must give any other recipients of the Work or
109
+ Derivative Works a copy of this License; and
110
+
111
+ (b) You must cause any modified files to carry prominent notices
112
+ stating that You changed the files; and
113
+
114
+ (c) You must retain, in the Source form of any Derivative Works
115
+ that You distribute, all copyright, patent, trademark, and
116
+ attribution notices from the Source form of the Work,
117
+ excluding those notices that do not pertain to any part of
118
+ the Derivative Works; and
119
+
120
+ (d) If the Work includes a "NOTICE" text file as part of its
121
+ distribution, then any Derivative Works that You distribute must
122
+ include a readable copy of the attribution notices contained
123
+ within such NOTICE file, excluding those notices that do not
124
+ pertain to any part of the Derivative Works, in at least one
125
+ of the following places: within a NOTICE text file distributed
126
+ as part of the Derivative Works; within the Source form or
127
+ documentation, if provided along with the Derivative Works; or,
128
+ within a display generated by the Derivative Works, if and
129
+ wherever such third-party notices normally appear. The contents
130
+ of the NOTICE file are for informational purposes only and
131
+ do not modify the License. You may add Your own attribution
132
+ notices within Derivative Works that You distribute, alongside
133
+ or as an addendum to the NOTICE text from the Work, provided
134
+ that such additional attribution notices cannot be construed
135
+ as modifying the License.
136
+
137
+ You may add Your own copyright statement to Your modifications and
138
+ may provide additional or different license terms and conditions
139
+ for use, reproduction, or distribution of Your modifications, or
140
+ for any such Derivative Works as a whole, provided Your use,
141
+ reproduction, and distribution of the Work otherwise complies with
142
+ the conditions stated in this License.
143
+
144
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
145
+ any Contribution intentionally submitted for inclusion in the Work
146
+ by You to the Licensor shall be under the terms and conditions of
147
+ this License, without any additional terms or conditions.
148
+ Notwithstanding the above, nothing herein shall supersede or modify
149
+ the terms of any separate license agreement you may have executed
150
+ with Licensor regarding such Contributions.
151
+
152
+ 6. Trademarks. This License does not grant permission to use the trade
153
+ names, trademarks, service marks, or product names of the Licensor,
154
+ except as required for reasonable and customary use in describing the
155
+ origin of the Work and reproducing the content of the NOTICE file.
156
+
157
+ 7. Disclaimer of Warranty. Unless required by applicable law or
158
+ agreed to in writing, Licensor provides the Work (and each
159
+ Contributor provides its Contributions) on an "AS IS" BASIS,
160
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
161
+ implied, including, without limitation, any warranties or conditions
162
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
163
+ PARTICULAR PURPOSE. You are solely responsible for determining the
164
+ appropriateness of using or redistributing the Work and assume any
165
+ risks associated with Your exercise of permissions under this License.
166
+
167
+ 8. Limitation of Liability. In no event and under no legal theory,
168
+ whether in tort (including negligence), contract, or otherwise,
169
+ unless required by applicable law (such as deliberate and grossly
170
+ negligent acts) or agreed to in writing, shall any Contributor be
171
+ liable to You for damages, including any direct, indirect, special,
172
+ incidental, or consequential damages of any character arising as a
173
+ result of this License or out of the use or inability to use the
174
+ Work (including but not limited to damages for loss of goodwill,
175
+ work stoppage, computer failure or malfunction, or any and all
176
+ other commercial damages or losses), even if such Contributor
177
+ has been advised of the possibility of such damages.
178
+
179
+ 9. Accepting Warranty or Additional Liability. While redistributing
180
+ the Work or Derivative Works thereof, You may choose to offer,
181
+ and charge a fee for, acceptance of support, warranty, indemnity,
182
+ or other liability obligations and/or rights consistent with this
183
+ License. However, in accepting such obligations, You may act only
184
+ on Your own behalf and on Your sole responsibility, not on behalf
185
+ of any other Contributor, and only if You agree to indemnify,
186
+ defend, and hold each Contributor harmless for any liability
187
+ incurred by, or claims asserted against, such Contributor by reason
188
+ of your accepting any such warranty or additional liability.
189
+
190
+ END OF TERMS AND CONDITIONS
191
+
192
+ APPENDIX: How to apply the Apache License to your work.
193
+
194
+ To apply the Apache License to your work, attach the following
195
+ boilerplate notice, with the fields enclosed by brackets "[]"
196
+ replaced with your own identifying information. (Don't include
197
+ the brackets!) The text should be enclosed in the appropriate
198
+ comment syntax for the file format. We also recommend that a
199
+ file or class name and description of purpose be included on the
200
+ same "printed page" as the copyright notice for easier
201
+ identification within third-party archives.
202
+
203
+ Copyright [yyyy] [name of copyright owner]
204
+
205
+ Licensed under the Apache License, Version 2.0 (the "License");
206
+ you may not use this file except in compliance with the License.
207
+ You may obtain a copy of the License at
208
+
209
+ http://www.apache.org/licenses/LICENSE-2.0
210
+
211
+ Unless required by applicable law or agreed to in writing, software
212
+ distributed under the License is distributed on an "AS IS" BASIS,
213
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
214
+ See the License for the specific language governing permissions and
215
+ limitations under the License.
@@ -0,0 +1 @@
1
+ var d=Object.defineProperty;var e=(b,a,c)=>a in b?d(b,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[a]=c;var f=(b,a,c)=>e(b,typeof a!="symbol"?a+"":a,c);export{f as a};