@lynx-example/lynx-ui-common 0.0.7
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 +16 -0
- package/LICENSE +201 -0
- package/PreCommitHook/index.tsx +43 -0
- package/PreCommitHook/styles.css +24 -0
- package/dist/PreCommitHook.lynx.bundle +0 -0
- package/dist/PreCommitHook.web.bundle +1 -0
- package/lynx.config.mjs +7 -0
- package/package.json +47 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @lynx-example/lynx-ui-common
|
|
2
|
+
|
|
3
|
+
## 0.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add an experimental `usePreCommit` hook for running main-thread work before native commit. ([#188](https://github.com/lynx-family/lynx-ui/pull/188))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @lynx-js/lynx-ui@3.133.0
|
|
11
|
+
|
|
12
|
+
## 0.0.6
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Initial release.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright 2026 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
|
|
5
|
+
import { root, useMainThreadRef, useState } from '@lynx-js/react'
|
|
6
|
+
import './styles.css'
|
|
7
|
+
|
|
8
|
+
import { usePreCommit } from '@lynx-js/lynx-ui'
|
|
9
|
+
import type { MainThread } from '@lynx-js/types'
|
|
10
|
+
|
|
11
|
+
function App() {
|
|
12
|
+
const nodeMTRef = useMainThreadRef<MainThread.Element>(null)
|
|
13
|
+
const [boxStyle, setBoxStyle] = useState('')
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* When update happens, state will be patched to main thread
|
|
17
|
+
* This hook will run after the state is patched, but before its result is committed to Native
|
|
18
|
+
* So it can be used to modify the element before it is committed to Native
|
|
19
|
+
*/
|
|
20
|
+
usePreCommit(() => {
|
|
21
|
+
'main thread'
|
|
22
|
+
nodeMTRef.current?.setStyleProperties({
|
|
23
|
+
'background-color': '#ff5a7a',
|
|
24
|
+
})
|
|
25
|
+
}, [])
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<view className='demo-container lunaris-dark'>
|
|
29
|
+
<view
|
|
30
|
+
bindtap={() => {
|
|
31
|
+
setBoxStyle('background-color: var(--primary);')
|
|
32
|
+
}}
|
|
33
|
+
main-thread:ref={nodeMTRef}
|
|
34
|
+
style={boxStyle}
|
|
35
|
+
className='box'
|
|
36
|
+
>
|
|
37
|
+
<text className='box-text'>PreCommit</text>
|
|
38
|
+
</view>
|
|
39
|
+
</view>
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
root.render(<App />)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@import "@lynx-js/luna-styles/index.css";
|
|
2
|
+
|
|
3
|
+
.demo-container {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
background-color: var(--canvas);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.box {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
width: 200px;
|
|
17
|
+
height: 200px;
|
|
18
|
+
background-color: var(--primary);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.box-text {
|
|
22
|
+
color: var(--primary-content);
|
|
23
|
+
font-size: 24px;
|
|
24
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"styleInfo":{"0":{"content":[""],"rules":[{"sel":[[[".luna-dark"],[],[],[]]],"decl":[["--canvas","#0d0d0d"],["--canvas-ambient","#000"],["--paper","#1a1a1a"],["--paper-clear","#232323"],["--paper-veil","rgba(0,0,0,.1)"],["--paper-film","rgba(0,0,0,.05)"],["--backdrop","rgba(0,0,0,.32)"],["--backdrop-subtle","rgba(0,0,0,.2)"],["--backdrop-heavy","rgba(0,0,0,.7)"],["--content","#f8f8f8"],["--content-2","#d9d9d9"],["--content-muted","#b3b3b3"],["--content-subtle","#6e6e6e"],["--content-faint","#4f4f4f"],["--content-faded","hsla(0,0%,97%,.6)"],["--primary","#e0e0e0"],["--primary-2","#a4a4a4"],["--primary-muted","#7a7a7a"],["--primary-content","#010101"],["--primary-content-faded","rgba(0,0,0,.3)"],["--secondary","#5b5b5b"],["--secondary-2","#333"],["--secondary-content","#e0e0e0"],["--secondary-content-faded","hsla(0,0%,88%,.25)"],["--neutral","#f8f8f8"],["--neutral-2","#d0d0d0"],["--neutral-subtle","#656565"],["--neutral-faint","#505050"],["--neutral-ambient","#2c2c2c"],["--neutral-veil","hsla(0,0%,97%,.5)"],["--neutral-film","hsla(0,0%,97%,.08)"],["--neutral-content","#010101"],["--neutral-content-faded","rgba(0,0,0,.25)"],["--line","hsla(0,0%,97%,.32)"],["--rule","#333"],["--gradient-a","#a7a7a7"],["--gradient-b","#a5a5a5"],["--gradient-c","#a1a1a1"],["--gradient-d","#bababa"],["--gradient-content","#fff"],["--gradient-content-faded","hsla(0,0%,100%,.68)"],["--gradient-content-trace","hsla(0,0%,100%,.12)"]]},{"sel":[[[".luna-light"],[],[],[]]],"decl":[["--canvas","#fff"],["--canvas-ambient","#f4f4f4"],["--paper","#f8f8f8"],["--paper-clear","#fff"],["--paper-veil","hsla(0,0%,97%,.3)"],["--paper-film","hsla(0,0%,97%,.15)"],["--backdrop","rgba(0,0,0,.25)"],["--backdrop-subtle","rgba(0,0,0,.1)"],["--backdrop-heavy","rgba(0,0,0,.5)"],["--content","#010101"],["--content-2","#333"],["--content-muted","#5d5d5d"],["--content-subtle","#9e9e9e"],["--content-faint","#d0d0d0"],["--content-faded","rgba(0,0,0,.6)"],["--primary","#1a1a1a"],["--primary-2","#545454"],["--primary-muted","#9b9b9b"],["--primary-content","#fafafa"],["--primary-content-faded","hsla(0,0%,100%,.4)"],["--secondary","silver"],["--secondary-2","#d9d9d9"],["--secondary-content","#3c3c3c"],["--secondary-content-faded","rgba(60,60,60,.3)"],["--neutral","#010101"],["--neutral-2","#333"],["--neutral-subtle","#b3b3b3"],["--neutral-faint","#d9d9d9"],["--neutral-ambient","#eee"],["--neutral-veil","rgba(0,0,0,.24)"],["--neutral-film","rgba(0,0,0,.05)"],["--neutral-content","#f8f8f8"],["--neutral-content-faded","hsla(0,0%,97%,.4)"],["--line","rgba(0,0,0,.17)"],["--rule","#e5e5e5"],["--gradient-a","#939393"],["--gradient-b","#a0a0a0"],["--gradient-c","#a1a1a1"],["--gradient-d","#bfbfbf"],["--gradient-content","#fff"],["--gradient-content-faded","hsla(0,0%,100%,.68)"],["--gradient-content-trace","hsla(0,0%,100%,.12)"]]},{"sel":[[[".lunaris-dark"],[],[],[]]],"decl":[["--canvas","#0d0d0d"],["--canvas-ambient","#000"],["--paper","#1a1a1a"],["--paper-clear","#232323"],["--paper-veil","rgba(0,0,0,.1)"],["--paper-film","rgba(0,0,0,.05)"],["--backdrop","rgba(0,0,0,.32)"],["--backdrop-subtle","rgba(0,0,0,.2)"],["--backdrop-heavy","rgba(0,0,0,.7)"],["--content","#f8f8f8"],["--content-2","#d9d9d9"],["--content-muted","#b3b3b3"],["--content-subtle","#6e6e6e"],["--content-faint","#4f4f4f"],["--content-faded","hsla(0,0%,97%,.6)"],["--primary","#ff8ab5"],["--primary-2","#ff4f8f"],["--primary-muted","#d04377"],["--primary-content","#010101"],["--primary-content-faded","rgba(0,0,0,.3)"],["--secondary","#534363"],["--secondary-2","#362e46"],["--secondary-content","#eee5f6"],["--secondary-content-faded","hsla(0,0%,88%,.25)"],["--neutral","#f8f8f8"],["--neutral-2","#d0d0d0"],["--neutral-subtle","#656565"],["--neutral-faint","#505050"],["--neutral-ambient","#2c2c2c"],["--neutral-veil","hsla(0,0%,97%,.5)"],["--neutral-film","hsla(0,0%,97%,.08)"],["--neutral-content","#010101"],["--neutral-content-faded","rgba(0,0,0,.25)"],["--line","hsla(0,0%,97%,.32)"],["--rule","#333"],["--gradient-a","#ff7385"],["--gradient-b","#fe69a1"],["--gradient-c","#a998bf"],["--gradient-d","#00d0f1"],["--gradient-content","#fff"],["--gradient-content-faded","hsla(0,0%,100%,.68)"],["--gradient-content-trace","hsla(0,0%,100%,.12)"]]},{"sel":[[[".lunaris-light"],[],[],[]]],"decl":[["--canvas","#fff"],["--canvas-ambient","#f4f4f4"],["--paper","#f8f8f8"],["--paper-clear","#fff"],["--paper-veil","hsla(0,0%,97%,.3)"],["--paper-film","hsla(0,0%,97%,.15)"],["--backdrop","rgba(0,0,0,.25)"],["--backdrop-subtle","rgba(0,0,0,.1)"],["--backdrop-heavy","rgba(0,0,0,.5)"],["--content","#010101"],["--content-2","#333"],["--content-muted","#5d5d5d"],["--content-subtle","#9e9e9e"],["--content-faint","#d0d0d0"],["--content-faded","rgba(0,0,0,.6)"],["--primary","#ff1a6e"],["--primary-2","#ff558e"],["--primary-muted","#f992b1"],["--primary-content","#fff"],["--primary-content-faded","hsla(0,0%,100%,.4)"],["--secondary","#fbcfdc"],["--secondary-2","#fce5ed"],["--secondary-content","#a92d5a"],["--secondary-content-faded","rgba(60,60,60,.3)"],["--neutral","#010101"],["--neutral-2","#333"],["--neutral-subtle","#b3b3b3"],["--neutral-faint","#d9d9d9"],["--neutral-ambient","#eee"],["--neutral-veil","rgba(0,0,0,.24)"],["--neutral-film","rgba(0,0,0,.05)"],["--neutral-content","#f8f8f8"],["--neutral-content-faded","hsla(0,0%,97%,.4)"],["--line","rgba(0,0,0,.17)"],["--rule","#e5e5e5"],["--gradient-a","#ff3d63"],["--gradient-b","#ff5d99"],["--gradient-c","#a998bf"],["--gradient-d","#3dd5e9"],["--gradient-content","#fff"],["--gradient-content-faded","hsla(0,0%,100%,.68)"],["--gradient-content-trace","hsla(0,0%,100%,.12)"]]},{"sel":[[[".demo-container"],[],[],[]]],"decl":[["background-color","var(--canvas)"],["height","100%"],["width","100%"]]},{"sel":[[[".box"],[],[],[]],[[".demo-container"],[],[],[]]],"decl":[["align-items","center"],["display","flex"],["justify-content","center"]]},{"sel":[[[".box"],[],[],[]]],"decl":[["background-color","var(--primary)"],["height","200px"],["width","200px"]]},{"sel":[[[".box-text"],[],[],[]]],"decl":[["color","var(--primary-content)"],["font-size","24px"]]}]}},"manifest":{"/app-service.js":"\"use strict\";let e,t,n,r,l,_,o,i,u;var a,s,c,f,p,d,h,v,y,g,m,b,x,S,k,C,E,w,O,P,I,N,j,T,A,L={};var R=[];var M=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;var D=Array.isArray;function F(e,t){for(var n in t)e[n]=t[n];return e}function U(e){e&&e.parentNode&&e.parentNode.removeChild(e)}var H=R.slice;var W={__e:function(e,t,n,r){var l,_,o;for(;t=t.__;)if((l=t.__c)&&!l.__)try{if((_=l.constructor)&&null!=_.getDerivedStateFromError&&(l.setState(_.getDerivedStateFromError(e)),o=l.__d),null!=l.componentDidCatch&&(l.componentDidCatch(e,r||{}),o=l.__d),o)return l.__E=l}catch(t){e=t}throw e}};var B=0;function $(e,t,n){var r,l,_,o={};for(_ in t)\"key\"==_?r=t[_]:\"ref\"==_?l=t[_]:o[_]=t[_];if(arguments.length>2&&(o.children=arguments.length>3?H.call(arguments,2):n),\"function\"==typeof e&&null!=e.defaultProps)for(_ in e.defaultProps)void 0===o[_]&&(o[_]=e.defaultProps[_]);return J(e,o,r,l,null)}function J(e,t,n,r,l){var _={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==l?++B:l,__i:-1,__u:0};return null==l&&null!=W.vnode&&W.vnode(_),_}function V(e){return e.children}function G(e,t){this.props=e,this.context=t}function q(e,t){var n;if(null==t)return e.__?q(e.__,e.__i+1):null;for(;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return\"function\"==typeof e.type?q(e):null}G.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=F({},this.state),\"function\"==typeof e&&(e=e(F({},n),this.props)),e&&F(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),K(this))},G.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),K(this))},G.prototype.render=V;var Q=[];var z=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;function K(e){(!e.__d&&(e.__d=!0)&&Q.push(e)&&!Y.__r++||a!==W.debounceRendering)&&((a=W.debounceRendering)||z)(Y)}var X=function(e,t){return e.__v.__b-t.__v.__b};function Y(){var e;for(Q.sort(X);e=Q.shift();)if(e.__d){var t=Q.length;(function(e){var t=e.__v,n=t.__e,r=[],l=[];if(e.__P){var _=F({},t);_.__v=t.__v+1,W.vnode&&W.vnode(_),W.renderComponent&&W.renderComponent(_,e),eo(e.__P,_,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,null==n?q(t):n,!!(32&t.__u),l),_.__v=t.__v,_.__.__k[_.__i]=_,ei(r,_,l),_.__e!=n&&function e(t){if(null!=(t=t.__)&&null!=t.__c){t.__e=t.__c.base=null;for(var n=0;n<t.__k.length;n++){var r=t.__k[n];if(null!=r&&null!=r.__e){t.__e=t.__c.base=r.__e;break}}return e(t)}}(_)}})(e),Q.length>t&&Q.sort(X)}Y.__r=0}function Z(e,t,n,r,l,_,o,i,u,a,s){var c,f,p,d,h;var v=r&&r.__k||R;var y=t.length;for(n.__d=u,function(e,t,n){var r,l,_,o=t.length;var i=n.length,u=i;var a=0;for(r=0,e.__k=[];r<o;r++){if(null==(l=t[r])||\"boolean\"==typeof l||\"function\"==typeof l){l=e.__k[r]=null;continue}l=\"string\"==typeof l||\"number\"==typeof l||\"bigint\"==typeof l||l.constructor==String?e.__k[r]=J(null,l,null,null,null):D(l)?e.__k[r]=J(V,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?e.__k[r]=J(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):e.__k[r]=l;var s=r+a;l.__=e,l.__b=e.__b+1;var c=l.__i=function(e,t,n,r){var l=e.key;var _=e.type;var o=n-1;var i=n+1;var u=t[n];var a=r>+(null!=u&&(131072&u.__u)===0);if(null===u||u&&l==u.key&&_===u.type&&(131072&u.__u)===0)return n;if(a)for(;o>=0||i<t.length;){if(o>=0){if((u=t[o])&&(131072&u.__u)===0&&l==u.key&&_===u.type)return o;o--}if(i<t.length){if((u=t[i])&&(131072&u.__u)===0&&l==u.key&&_===u.type)return i;i++}}return -1}(l,n,s,u);_=null,-1!==c&&(_=n[c],u--,_&&(_.__u|=131072)),null==_||null===_.__v?(-1==c&&a--,\"function\"!=typeof l.type&&(l.__u|=65536)):c!==s&&(c==s-1?a--:c==s+1?a++:(c>s?a--:a++,l.__u|=65536))}if(u)for(r=0;r<i;r++)null!=(_=n[r])&&(131072&_.__u)===0&&(_.__e==e.__d&&(e.__d=q(_)),function e(t,n,r){var l;if(W.unmount&&W.unmount(t),(l=t.ref)&&(!l.current||l.current===t.__e)&&eu(l,null,n),null!=(l=t.__c)){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(e){W.__e(e,n)}l.base=l.__P=null}if(l=t.__k)for(var _=0;_<l.length;_++)l[_]&&e(l[_],n,r||\"function\"!=typeof t.type);r||U(t.__e),t.__c=t.__=t.__e=t.__d=void 0}(_,_))}(n,t,v),u=n.__d,c=0;c<y;c++)null!=(p=n.__k[c])&&(f=-1===p.__i?L:v[p.__i]||L,p.__i=c,eo(e,p,f,l,_,o,i,u,a,s),d=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&eu(f.ref,null,p),s.push(p.ref,p.__c||d,p)),null==h&&null!=d&&(h=d),65536&p.__u||f.__k===p.__k?u=function e(t,n,r){if(\"function\"==typeof t.type){var l=t.__k;for(var _=0;l&&_<l.length;_++)l[_]&&(l[_].__=t,n=e(l[_],n,r));return n}t.__e!=n&&(n&&t.type&&!r.contains(n)&&(n=q(t)),r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType);return n}(p,u,e):\"function\"==typeof p.type&&void 0!==p.__d?u=p.__d:d&&(u=d.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=u,n.__e=h}function ee(e,t,n){\"-\"===t[0]?e.setProperty(t,null==n?\"\":n):null==n?e[t]=\"\":\"number\"!=typeof n||M.test(t)?e[t]=n:e[t]=n+\"px\"}Y.__r=0;var et=0;function en(e,t,n,r,l){var _;e:if(\"style\"===t)if(\"string\"==typeof n)e.style.cssText=n;else{if(\"string\"==typeof r&&(e.style.cssText=r=\"\"),r)for(t in r)n&&t in n||ee(e.style,t,\"\");if(n)for(t in n)r&&n[t]===r[t]||ee(e.style,t,n[t])}else if(\"o\"===t[0]&&\"n\"===t[1])_=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,\"$1\")),t=t.toLowerCase()in e||\"onFocusOut\"===t||\"onFocusIn\"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+_]=n,n?r?n._attached=r._attached:(n._attached=et,e.addEventListener(t,_?e_:el,_)):e.removeEventListener(t,_?e_:el,_);else{if(\"http://www.w3.org/2000/svg\"==l)t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(\"width\"!=t&&\"height\"!=t&&\"href\"!=t&&\"list\"!=t&&\"form\"!=t&&\"tabIndex\"!=t&&\"download\"!=t&&\"rowSpan\"!=t&&\"colSpan\"!=t&&\"role\"!=t&&\"popover\"!=t&&t in e)try{e[t]=null==n?\"\":n;break e}catch(e){}\"function\"==typeof n||(null!=n&&(!1!==n||\"-\"===t[4])?e.setAttribute(t,\"popover\"==t&&!0==n?\"\":n):e.removeAttribute(t))}}function er(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t._dispatched)t._dispatched=et++;else if(t._dispatched<n._attached)return;return n(W.event?W.event(t):t)}}}var el=er(!1);var e_=er(!0);function eo(e,t,n,r,l,_,o,i,u,a){var s,c,f,p,d,h,v,y=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),_=[i=t.__e=n.__e]),(v=W.__b)&&v(t),(v=W._diff2)&&v(t,n);t:if(\"function\"==typeof y)try{var g=t.props;var m=\"prototype\"in y&&y.prototype.render;var b=(v=y.contextType)&&r[v.__c];var x=v?b?b.props.value:v.__:r;if(n.__c?h=(s=t.__c=n.__c).__=s.__E:(m?t.__c=s=new y(g,x):(t.__c=s=new G(g,x),s.constructor=y,s.render=ea),b&&b.sub(s),s.props=g,s.state||(s.state={}),s.context=x,s.__n=r,c=s.__d=!0,s.__h=[],s._sb=[]),m&&null==s.__s&&(s.__s=s.state),m&&null!=y.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=F({},s.__s)),F(s.__s,y.getDerivedStateFromProps(g,s.__s))),f=s.props,p=s.state,s.__v=t,c)m&&null==y.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),m&&null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(m&&null==y.getDerivedStateFromProps&&g!==f&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(g,x),!s.__e&&(null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(g,s.__s,x)||t.__v===n.__v)){t.__v!==n.__v&&(s.props=g,s.state=s.__s,s.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)});for(var S=0;S<s._sb.length;S++)s.__h.push(s._sb[S]);s._sb=[],s.__h.length&&o.push(s);break t}null!=s.componentWillUpdate&&s.componentWillUpdate(g,s.__s,x),m&&null!=s.componentDidUpdate&&s.__h.push(function(){s.componentDidUpdate(f,p,d)})}s.context=x,s.props=g,s.__P=e,s.__e=!1;var k=W.__r,C=0;if(m){s.state=s.__s,s.__d=!1,k&&k(t),v=s.render(s.props,s.state,s.context);for(var E=0;E<s._sb.length;E++)s.__h.push(s._sb[E]);s._sb=[]}else do s.__d=!1,k&&k(t),v=s.render(s.props,s.state,s.context),s.state=s.__s;while(s.__d&&++C<25);s.state=s.__s,null!=s.getChildContext&&(r=F(F({},r),s.getChildContext())),m&&!c&&null!=s.getSnapshotBeforeUpdate&&(d=s.getSnapshotBeforeUpdate(f,p));var w=null!=v&&v.type===V&&null==v.key?v.props.children:v;Z(e,D(w)?w:[w],t,n,r,l,_,o,i,u,a),s.base=t.__e,t.__u&=-161,s.__h.length&&o.push(s),h&&(s.__E=s.__=null)}catch(e){if(t.__v=null,u||null!=_){for(t.__u|=u?160:32;i&&8===i.nodeType&&i.nextSibling;)i=i.nextSibling;_[_.indexOf(i)]=null,t.__e=i}else t.__e=n.__e,t.__k=n.__k;W.__e(e,t,n)}else null==_&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,l,_,o,i,u){var a,s,c,f,p,d,h,v=n.props;var y=t.props;var g=t.type;if(\"svg\"===g?l=\"http://www.w3.org/2000/svg\":\"math\"===g?l=\"http://www.w3.org/1998/Math/MathML\":l||(l=\"http://www.w3.org/1999/xhtml\"),null!=_){for(a=0;a<_.length;a++)if((p=_[a])&&\"setAttribute\"in p===!!g&&(g?p.localName===g:3===p.nodeType)){e=p,_[a]=null;break}}if(null==e){if(null===g)return W.document.createTextNode(y);e=W.document.createElementNS(l,g,y.is&&y),i&&(W.__m&&W.__m(t,_),i=!1),_=null}if(null===g)v===y||i&&e.data===y||(e.data=y);else{if(_=_&&H.call(e.childNodes),v=n.props||L,!i&&null!=_)for(a=0,v={};a<e.attributes.length;a++)v[(p=e.attributes[a]).name]=p.value;for(a in v)if(p=v[a],\"children\"==a);else if(\"dangerouslySetInnerHTML\"==a)c=p;else if(!(a in y)){if(\"value\"==a&&\"defaultValue\"in y||\"checked\"==a&&\"defaultChecked\"in y)continue;en(e,a,null,p,l)}for(a in y)p=y[a],\"children\"==a?f=p:\"dangerouslySetInnerHTML\"==a?s=p:\"value\"==a?d=p:\"checked\"==a?h=p:i&&\"function\"!=typeof p||v[a]===p||en(e,a,p,v[a],l);if(s)i||c&&(s.__html===c.__html||s.__html===e.innerHTML)||(e.innerHTML=s.__html),t.__k=[];else if(c&&(e.innerHTML=\"\"),Z(e,D(f)?f:[f],t,n,r,\"foreignObject\"===g?\"http://www.w3.org/1999/xhtml\":l,_,o,_?_[0]:n.__k&&q(n,0),i,u),null!=_)for(a=_.length;a--;)U(_[a]);i||(a=\"value\",\"progress\"===g&&null==d?e.removeAttribute(\"value\"):void 0===d||d===e[a]&&(\"progress\"!==g||d)&&(\"option\"!==g||d===v[a])||en(e,a,d,v[a],l),a=\"checked\",void 0!==h&&h!==e[a]&&en(e,a,h,v[a],l))}return e}(n.__e,t,n,r,l,_,o,u,a);(v=W.diffed)&&v(t)}function ei(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)eu(n[r],n[++r],n[++r]);W.__c&&W.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){W.__e(e,t.__v)}})}function eu(e,t,n){try{if(\"function\"==typeof e){var r=\"function\"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){W.__e(e,n)}}function ea(e,t,n){return this.constructor(e,n)}function es(e,t,n){W.__&&W.__(e,t);var r=\"function\"==typeof n;var l=r?null:n&&n.__k||t.__k;e=(!r&&n||t).__k=$(V,null,[e]);var _=[],o=[];eo(t,e,l||L,L,t.namespaceURI,!r&&n?[n]:l?null:t.firstChild?H.call(t.childNodes):null,_,!r&&n?n:l?l.__e:t.firstChild,r,o),ei(_,e,o)}var ec=0;function ef(e,t,n,r,l,_){t||(t={});var o,i,u=t;if(\"ref\"in u)for(i in u={},t)\"ref\"==i?o=t[i]:u[i]=t[i];var a={type:e,props:u,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--ec,__i:-1,__u:0,__source:l,__self:_};if(\"function\"==typeof e&&(o=e.defaultProps))for(i in o)void 0===u[i]&&(u[i]=o[i]);return W.vnode&&W.vnode(a),a}var ep=0;var ed=[];var eh=W.__b;var ev=W.__r;var ey=W.diffed;var eg=W.__c;var em=W.unmount;var eb=W.__;function ex(e,t){W.__h&&W.__h(c,e,ep||t),ep=0;var n=c.__H||(c.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function eS(e,t){var n,r,l=ex(s++,7);return n=l.__H,r=t,(!n||n.length!==r.length||r.some(function(e,t){return e!==n[t]}))&&(l.__=e(),l.__H=t,l.__h=e),l.__}function ek(){var e;for(;e=ed.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(eE),e.__H.__h.forEach(ew),e.__H.__h=[]}catch(t){e.__H.__h=[],W.__e(t,e.__v)}}W.__b=function(e){c=null,eh&&eh(e)},W.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),eb&&eb(e,t)},W.__r=function(e){ev&&ev(e),c=e.__c,s=0;var t=c.__H;t&&(f===c?(t.__h=[],c.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e._pendingArgs=e.__N=void 0})):(t.__h.forEach(eE),t.__h.forEach(ew),t.__h=[],s=0)),f=c},W.diffed=function(e){ey&&ey(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1===ed.push(t)||p!==W.requestAnimationFrame)&&((p=W.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),eC&&cancelAnimationFrame(t),setTimeout(e)};var r=setTimeout(n,100);eC&&(t=requestAnimationFrame(n))})(ek),t.__H.__.forEach(function(e){e._pendingArgs&&(e.__H=e._pendingArgs),e._pendingArgs=void 0})),f=c=null},W.__c=function(e,t){t.some(function(e){try{e.__h.forEach(eE),e.__h=e.__h.filter(function(e){return!e.__||ew(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],W.__e(n,e.__v)}}),eg&&eg(e,t)},W.unmount=function(e){em&&em(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{eE(e)}catch(e){t=e}}),n.__H=void 0,t&&W.__e(t,n.__v))};var eC=\"function\"==typeof requestAnimationFrame;function eE(e){var t=c;var n=e.__c;\"function\"==typeof n&&(e.__c=void 0,n()),c=t}function ew(e){var t=c;e.__c=e.__(),c=t}function eO(e,t){return\"function\"==typeof t?t(e):t}function eP(e,t){for(var n in e)if(\"__source\"!==n&&!(n in t))return!0;for(var r in t)if(\"__source\"!==r&&e[r]!==t[r])return!0;return!1}function eI(e,t){this.props=e,this.context=t}eI.prototype=new G,eI.prototype.isPureReactComponent=!0,eI.prototype.shouldComponentUpdate=function(e,t){return eP(this.props,e)||eP(this.state,t)};var eN=W.__b;W.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),eN&&eN(e)},\"undefined\"!=typeof Symbol&&Symbol.for&&Symbol.for(\"react.forward_ref\");var ej=W.__e;W.__e=function(e,t,n,r){if(e.then){var l;var _=t;for(;_=_.__;)if((l=_.__c)&&l.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),l.__c(e,t)}ej(e,t,n,r)};var eT=W.unmount;function eA(){this.__u=0,this._suspenders=null,this.__b=null}function eL(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function eR(){this._next=null,this._map=null}W.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),eT&&eT(e)},eA.prototype=new G,eA.prototype.__c=function(e,t){var n=t.__c;var r=this;null==r._suspenders&&(r._suspenders=[]),r._suspenders.push(n);var l=eL(r.__v);var _=!1;var o=function(){_||(_=!0,n.__R=null,l?l(i):i())};n.__R=o;var i=function(){if(!--r.__u){if(r.state.__a){var e,t=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)}),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(t,t.__c.__P,t.__c.__O)}for(r.setState({__a:r.__b=null});e=r._suspenders.pop();)e.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},eA.prototype.componentWillUnmount=function(){this._suspenders=[]},eA.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=W.document.createElement(\"div\");var r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){\"function\"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)})),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var l=t.__a&&$(V,null,e.fallback);return l&&(l.__u&=-33),[$(V,null,t.__a?null:e.children),l]};var eM=function(e,t,n){if(++n[1]===n[0]&&e._map.delete(t),e.props.revealOrder&&(\"t\"!==e.props.revealOrder[0]||!e._map.size))for(n=e._next;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e._next=n=n[2]}};eR.prototype=new G,eR.prototype.__a=function(e){var t=this;var n=eL(t.__v);var r=t._map.get(e);return r[0]++,function(l){var _=function(){t.props.revealOrder?(r.push(l),eM(t,e,r)):l()};n?n(_):_()}},eR.prototype.render=function(e){this._next=null,this._map=new Map;var t=function e(t,n){return n=n||[],null==t||\"boolean\"==typeof t||(D(t)?t.some(function(t){e(t,n)}):n.push(t)),n}(e.children);e.revealOrder&&\"b\"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this._map.set(t[n],this._next=[1,0,this._next]);return e.children},eR.prototype.componentDidUpdate=eR.prototype.componentDidMount=function(){var e=this;this._map.forEach(function(t,n){eM(e,n,t)})};var eD=\"undefined\"!=typeof Symbol&&Symbol.for&&Symbol.for(\"react.element\")||60103;G.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(e){Object.defineProperty(G.prototype,e,{configurable:!0,get:function(){return this[\"UNSAFE_\"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var eF=W.event;function eU(){}function eH(){return this.cancelBubble}function eW(){return this.defaultPrevented}W.event=function(e){return eF&&(e=eF(e)),e.persist=eU,e.isPropagationStopped=eH,e.isDefaultPrevented=eW,e.nativeEvent=e};var eB=W.vnode;function e$(e,t){if(e===t)return!0;try{if(\"object\"==typeof e&&null!==e&&\"object\"==typeof t&&null!==t&&JSON.stringify(e)===JSON.stringify(t))return!0}catch(e){throw e}return!1}function eJ(e){for(let t in e)return!1;return!0}function eV(e,t){let n=(SystemInfo.lynxSdkVersion||\"1.0\").split(\".\");return Number(n[0])>e||Number(n[0])==e&&Number(n[1])>t}function eG(e){var t;return null!=(t=e.displayName)?t:e.name}function eq(e,t,n){let r=e[t];e[t]=function(...e){return n.call(this,r,...e)}}W.vnode=function(e){e.$$typeof=eD,eB&&eB(e)};const eQ=(()=>{if(lynx.queueMicrotask)return e=>lynx.queueMicrotask(e);if(\"function\"!=typeof globalThis.Promise)return e=>{setTimeout(e,0)};{let e=globalThis.Promise.resolve();return t=>{e.then(t).catch(e=>{setTimeout(()=>{throw e},0)})}}})();function ez(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};var r=Object.keys(n);\"function\"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}(S=d||(d={})).firstScreen=\"rLynxFirstScreen\",S.updateFromRoot=\"updateFromRoot\",S.globalEventFromLepus=\"globalEventFromLepus\",S.jsReady=\"rLynxJSReady\",S.patchUpdate=\"rLynxChange\",S.publishEvent=\"rLynxPublishEvent\",S.updateMTRefInitValue=\"rLynxChangeRefInitValue\",(k=h||(h={}))[k.UPDATE=0]=\"UPDATE\",k[k.RESET=1]=\"RESET\";function eK(){if(e){let t=e;return e=[],t}}const eX=\"renderComponent\";const eY=\"reactLynxHydrate\",eZ=\"updateTriggeredByBts\";const e0=\"__lynx_timing_flag\";let e1=!1;let e2=!1;function e3(e,n){var r,l;switch(e){case\"updateSetStateTrigger\":e1=!0,e2=!0,t=n;break;case\"updateDiffVdomStart\":if(!e1)return;e1=!1;break;case\"updateDiffVdomEnd\":if(!e2)return;e2=!1}null==(r=(l=lynx.getNativeApp()).markTiming)||r.call(l,t,e)}function e6(e,t,r){var l,_,o,i,u,a,s,c;if(n=null==(_=lynx.performance)||null==(l=_._generatePipelineOptions)?void 0:l.call(_)){switch(n.needTimestamps=e,n.pipelineOrigin=t,n.dsl=\"reactLynx\",t){case eY:n.stage=\"hydrate\";break;case eZ:n.stage=\"update\"}eV(3,0)?null==(i=lynx.performance)||null==(o=i._onPipelineStart)||o.call(i,n.pipelineID,n):null==(a=lynx.performance)||null==(u=a._onPipelineStart)||u.call(a,n.pipelineID),r&&(null==(c=lynx.performance)||null==(s=c._bindPipelineIdWithTimingFlag)||s.call(c,n.pipelineID,r))}}function e7(e,t){var r,l;n&&(t||n.needTimestamps)&&(null==(l=lynx.performance)||null==(r=l._markTiming)||r.call(l,n.pipelineID,e))}(C=v||(v={})).runWorkletCtx=\"Lynx.Worklet.runWorkletCtx\",C.runOnBackground=\"Lynx.Worklet.runOnBackground\",C.FunctionCallRet=\"Lynx.Worklet.FunctionCallRet\",C.releaseBackgroundWorkletCtx=\"Lynx.Worklet.releaseBackgroundWorkletCtx\",C.releaseWorkletRef=\"Lynx.Worklet.releaseWorkletRef\";const e5=new Map;const e9={value:!0};const e4=[];class e8{setTask(e,t){return this.task=n=>n[e].apply(n,t),this}exec(){var e;e=()=>{var e;let t=null!=(e=e5.get(this.refAttr[0]))?e:this.refAttr[0];let n=`[react-ref-${t}-${this.refAttr[1]}]`;this.task(lynx.createSelectorQuery().select(n)).exec()},e9.value?e4.push(e):e()}constructor(e){return this.refAttr=e,this.task=void 0,new Proxy(this,{get:(e,t,n)=>\"symbol\"==typeof t||\"then\"===t||t in e||\"string\"!=typeof t?Reflect.get(e,t,n):(...n)=>new e8(e.refAttr).setTask(t,n)})}}const te=[];const tt=[];function tn(e,t){let n=t&&new e8(t);try{if(\"function\"==typeof e){let t=\"function\"==typeof e._unmount;t&&e._unmount(),t&&null==n||(e._unmount=e(n))}else e.current=n}catch(e){lynx.reportError(e)}}function tr(){try{for(let e of te)tn(e,null);for(let e=0;e<tt.length;e+=2){let t=tt[e];let n=tt[e+1];tn(t,n)}}finally{t_()}}function tl(e,t,n,r){e!==t&&(e&&te.push(e),t&&tt.push(t,[n,r]))}function t_(){te.length=0,tt.length=0}new WeakMap,(E=y||(y={}))[E.Attr=0]=\"Attr\",E[E.Spread=1]=\"Spread\",E[E.Slot=2]=\"Slot\",E[E.Children=3]=\"Children\",E[E.ListChildren=4]=\"ListChildren\",E[E.MultiChildren=5]=\"MultiChildren\";const to=[[y.Children,0]];const ti={values:new Map([[\"root\",{create:()=>[],update:[],slot:to,isListHolder:!1,cssId:0}],[\"wrapper\",{create:()=>[],update:[],slot:to,isListHolder:!1}],[null,{create:()=>[],update:[e=>{}],slot:[],isListHolder:!1}]])};const tu={nextId:0,values:new Map,clear(){this.values.clear()},updateId(e,t){let n=this.values;let r=n.get(e);n.delete(e),n.set(t,r),r.__id=t},getValueBySign(e){let t=null==e?void 0:e.split(\":\");if(!t||2!=t.length&&3!=t.length)throw Error(\"Invalid ctx format: \"+e);let n=Number(t[0]);let r=Number(t[1]);let l=this.values.get(n);if(!l)return null;let _=t[2];if(\"__extraProps\"===t[1]){if(_)return l.__extraProps[_];throw Error(\"unreachable\")}return _?l.__values[r][_]:l.__values[r]}};function ta(e,t){let n=e.childNodes;for(let r of(t(e),n))ta(r,t)}function ts(){return null!=r?r:r=eV(2,13)}let tc=[];function tf(){let e=tc;return tc=[],e}function tp(){let e=tf();if(0===e.length)return;let t=JSON.stringify(e);lynx.getNativeApp().callLepusMethod(d.updateMTRefInitValue,{data:t})}let td=0;let th=[];function tv(){let e=th;return th=[],e}const ty={value:!1};const tg=()=>{ty.value=!0,eQ(()=>{ty.value=!1})};eq(W,eX,(e,...t)=>{null==e||e(...t),tg()}),eq(W,\"__\",(e,...t)=>{null==e||e(...t),tg()});let tm={};const tb=new Map;let tx=1;let tS=[];let tk={};function tC(e,t){var r,l;e7(\"packChangesStart\");let _={data:JSON.stringify(e),patchOptions:(r=ez({},t),l=l={reloadVersion:td},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(l)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(l,e))}),r)};return e7(\"packChangesEnd\"),n&&(_.patchOptions.pipelineOptions=n,n=void 0),_}(w=g||(g={}))[w.COMPOSED=-1]=\"COMPOSED\",w[w.PAN=0]=\"PAN\",w[w.FLING=1]=\"FLING\",w[w.DEFAULT=2]=\"DEFAULT\",w[w.TAP=3]=\"TAP\",w[w.LONGPRESS=4]=\"LONGPRESS\",w[w.ROTATION=5]=\"ROTATION\",w[w.PINCH=6]=\"PINCH\",w[w.NATIVE=7]=\"NATIVE\";const tE=[];class tw{add(e){let t=++this.lastIndex;return this.indexMap.set(t,e),t}get(e){return this.indexMap.get(e)}remove(e){this.indexMap.delete(e)}constructor(){this.lastIndex=0,this.indexMap=new Map}}class tO extends tw{add(e){let t=super.add(e);return e._execId=t,t}findJsFnHandle(e,t){let n=this.get(e);if(!n)return;let r=e=>{if(null!==e&&\"object\"==typeof e){if(\"_jsFnId\"in e&&e._jsFnId===t)return e;for(let t in e){let n=r(e[t]);if(n)return n}}};return r(n)}}function tP(e){let t=JSON.parse(e.data);let n=_.findJsFnHandle(t.obj._execId,t.obj._jsFnId);let r=null==n?void 0:n._fn;if(!r)throw Error(\"runOnBackground: JS function not found: \"+JSON.stringify(t.obj));let l=r(...t.params);lynx.getCoreContext().dispatchEvent({type:v.FunctionCallRet,data:JSON.stringify({resolveId:t.resolveId,returnValue:l})})}function tI(e){for(let t of e.data)_.remove(t)}function tN(e){return!ts()&&e?(lynx.reportError(Error(\"Main thread script requires Lynx sdk version 2.14\")),null):e&&(null!=l?l:l=eV(2,15))?(_||(_=new tO,lynx.getCoreContext().addEventListener(v.runOnBackground,tP),lynx.getCoreContext().addEventListener(v.releaseBackgroundWorkletCtx,tI),tE.push(()=>{lynx.getCoreContext().removeEventListener(v.runOnBackground,tP),lynx.getCoreContext().removeEventListener(v.releaseBackgroundWorkletCtx,tI),_=void 0})),_.add(e),e):e}function tj(e){if(e.type===g.COMPOSED)for(let t of e.gestures)tj(t);else for(let[t,n]of Object.entries(e.callbacks))e.callbacks[t]=tN(n)}const tT=new Set([\"name\",\"clip-radius\",\"overlap\",\"exposure-scene\",\"exposure-id\"]);function tA(e,t,n){let r={};let l=!1;for(let o in n){var _;let i=n[o];\"__spread\"===o||(\"class\"===o||\"className\"===o?(null!=i||(i=\"\"),r.className=i):\"ref\"===o?r[o]=null==(_=function(e){if(null==e)return e;if(\"function\"==typeof e||\"object\"==typeof e&&\"current\"in e)return\"__ref\"in e?e:Object.defineProperty(e,\"__ref\",{value:1});throw Error(`Elements' \"ref\" property should be a function, or an object created by createRef(), but got [${typeof e}] instead`)}(i))?void 0:_.__ref:\"function\"==typeof i?r[o]=`${e.__id}:${t}:${o}`:\"__self\"===o||\"__source\"===o||(!l&&tT.has(o)&&(l=!0),r[o]=i))}return l&&(r.flatten=!1),r}class tL{get parentNode(){return this.__parent}get nextSibling(){return this.__nextSibling}contains(e){return e.parentNode===this}appendChild(e){return this.insertBefore(e)}insertBefore(t,n){t.__removed_from_tree?(t.__removed_from_tree=!1,tR([t],this.__id,null==n?void 0:n.__id)):null==e||e.push(1,this.__id,t.__id,null==n?void 0:n.__id);let r=t.__parent;r&&(t.__previousSibling?t.__previousSibling.__nextSibling=t.__nextSibling:r.__firstChild=t.__nextSibling,t.__nextSibling?t.__nextSibling.__previousSibling=t.__previousSibling:r.__lastChild=t.__previousSibling),n?(n.__previousSibling?(n.__previousSibling.__nextSibling=t,t.__previousSibling=n.__previousSibling):(this.__firstChild=t,t.__previousSibling=null),n.__previousSibling=t,t.__nextSibling=n,t.__parent=this):(this.__lastChild?(this.__lastChild.__nextSibling=t,t.__previousSibling=this.__lastChild):(this.__firstChild=t,t.__previousSibling=null),this.__lastChild=t,t.__parent=this,t.__nextSibling=null)}removeChild(t){if(null==e||e.push(2,this.__id,t.__id),t.__removed_from_tree=!0,t.__parent!==this)throw Error(\"The node to be removed is not a child of this node.\");t.__previousSibling?t.__previousSibling.__nextSibling=t.__nextSibling:this.__firstChild=t.__nextSibling,t.__nextSibling?t.__nextSibling.__previousSibling=t.__previousSibling:this.__lastChild=t.__previousSibling,t.__parent=null,t.__previousSibling=null,t.__nextSibling=null,tl(()=>{ta(t,e=>{var t;e.__values&&(null==(t=e.__snapshot_def.refAndSpreadIndexes)||t.forEach(t=>{let n=e.__values[t];n&&(\"object\"==typeof n||\"function\"==typeof n)&&(\"__spread\"in n&&\"ref\"in n?tn(n.ref,null):\"__ref\"in n&&tn(n,null))}))})},null,0,0),tS.push(t.__id)}tearDown(){ta(this,e=>{e.__parent=null,e.__previousSibling=null,e.__nextSibling=null,tu.values.delete(e.__id)})}get childNodes(){let e=[];let t=this.__firstChild;for(;t&&(e.push(t),t!==this.__lastChild);)t=t.__nextSibling;return e}setAttribute(t,n){var r,l,_;if(\"values\"===t){if(e){let t=this.__values;if(t)for(let r=0;r<n.length;r++){let{needUpdate:l,valueToCommit:_}=this.setAttributeImpl(n[r],t[r],r);l&&e.push(3,this.__id,r,_)}else{let t=[];let r=n.length;for(let e=0;e<r;++e){let{valueToCommit:r}=this.setAttributeImpl(n[e],null,e);t[e]=r}e.push(4,this.__id,t)}}else null==(r=this.__snapshot_def.refAndSpreadIndexes)||r.forEach(e=>{let t=n[e];t&&(\"object\"==typeof t||\"function\"==typeof t)&&(\"__spread\"in t&&\"ref\"in t?tl(null,t.ref,this.__id,e):\"__ref\"in t&&tl(null,t,this.__id,e))});this.__values=n;return}\"string\"==typeof t?(null!=(l=this.__extraProps)?l:this.__extraProps={})[t]=n:(null!=(_=this.__values)?_:this.__values=[])[t]=n,null==e||e.push(3,this.__id,t,n)}setAttributeImpl(e,t,r){if(!e)return t&&\"object\"==typeof t&&\"__ref\"in t&&tl(t,null,this.__id,r),{needUpdate:t!==e,valueToCommit:e};let l=typeof e;if(\"object\"===l){if(\"__spread\"in e){let l=null==t?void 0:t.__spread;let _=tA(this,r,e);let o=!e$(l,_);if(e.__spread=_,tl(l&&t.ref,e.ref,this.__id,r),o)for(let e in _){let t=_[e];t&&(t._wkltId?_[e]=tN(t):t.__isGesture?tj(t):\"__lynx_timing_flag\"==e&&(null==l?void 0:l[e])!=t&&n&&(n.needTimestamps=!0))}return{needUpdate:o,valueToCommit:_}}return\"__ref\"in e?(tl(t,e,this.__id,r),{needUpdate:!1,valueToCommit:1}):\"_wkltId\"in e?{needUpdate:!0,valueToCommit:tN(e)}:\"__isGesture\"in e?(tj(e),{needUpdate:!0,valueToCommit:e}):\"__ltf\"in e?n&&(null==t?void 0:t.__ltf)!=e.__ltf?(n.needTimestamps=!0,{needUpdate:!0,valueToCommit:e}):{needUpdate:!1,valueToCommit:e}:{needUpdate:!e$(t,e),valueToCommit:e}}return\"function\"===l?e.__ref?(tl(t,e,this.__id,r),{needUpdate:!1,valueToCommit:1}):{needUpdate:!t,valueToCommit:1}:{needUpdate:t!==e,valueToCommit:e}}constructor(t){this.__parent=null,this.__firstChild=null,this.__lastChild=null,this.__previousSibling=null,this.__nextSibling=null,this.type=t,this.__snapshot_def=ti.values.get(t);const n=this.__id=tu.nextId+=1;tu.values.set(n,this),null==e||e.push(0,t,n)}}function tR(t,n,r){for(let l of t){let t=l.__id;null==e||e.push(0,l.type,t);let _=l.__values;_&&(l.__values=void 0,l.setAttribute(\"values\",_));let o=l.__extraProps;for(let e in o)l.setAttribute(e,o[e]);tR(l.childNodes,t),null==e||e.push(1,n,t,r)}}const tM={};const tD=\"Lynx.Error.CtxNotFound\";let tF=null;function tU(e,t){null!=i||(i=[]),i.push([e,t])}o=new tL(\"root\");const tH=[];function tW(){es(null,o),tb.forEach(e=>{e()}),tb.clear(),tH.length=0,i&&(i.length=0)}(O=m||(m={}))[O.Begin=0]=\"Begin\",O[O.End=1]=\"End\",O[O.Attr=2]=\"Attr\",O[O.Text=3]=\"Text\";function tB([t,n]){if(!(\"__k\"in o))return void tH.push([t,n]);try{(function(t,n){switch(t){case d.firstScreen:{let t;try{Y()}catch(e){t=e}let{root:r,jsReadyEventIdSwap:l}=n;e6(!0,eY,\"react_lynx_hydrate\"),e7(\"hydrateParseSnapshotStart\");let _=JSON.parse(r);e7(\"hydrateParseSnapshotEnd\"),e7(\"diffVdomStart\");let u;let a=(e=[],(u=(t,n)=>{var r,l,_;if(e5.set(n.__id,t.id),tu.updateId(n.__id,t.id),null==(r=n.__values)||r.forEach((r,l)=>{let _=t.values[l];if(r)if(\"object\"==typeof r)if(\"__spread\"in r){delete r.__spread;let e=tA(n,l,r);for(let t in e){let n=e[t];n&&\"object\"==typeof n&&(\"_wkltId\"in n?tN(n):\"__isGesture\"in n&&tj(n))}n.__values[l].__spread=e,r=e}else\"__ref\"in r?r=_:\"_wkltId\"in r?tN(r):\"__isGesture\"in r&&tj(r);else\"function\"==typeof r&&(r=\"__ref\"in r?_:`${n.__id}:${l}:`);e$(r,_)||void 0===r&&null===_||e.push(3,n.__id,l,r)}),n.__extraProps)for(let r in n.__extraProps){let _=n.__extraProps[r];e$(_,null==(l=t.extraProps)?void 0:l[r])||e.push(3,n.__id,r,_)}let{slot:o}=n.__snapshot_def;let i=null!=(_=t.children)?_:[];let a=n.childNodes;o&&o.forEach(([n],r)=>{switch(n){case y.Slot:case y.MultiChildren:{let e=i[r];u(e,a[r]);break}case y.Children:case y.ListChildren:{let n=function(e,t,n,r){let l=0;let _={$$diff:!0,i:{},r:[],m:{}};let o={};for(let t=0;t<e.length;t++){var i,u;let n=e[t];(null!=(u=o[i=n.type])?u:o[i]=new Set).add([n,t])}for(let e=0;e<t.length;e++){let i;let u=t[e];let a=o[u.type];if(a&&a.size>0&&([i]=a,i)&&n(i[0],u)){a.delete(i);let t=i[1];if(r(i[0],u,t,e),t<l){_.m[t]=e;continue}l=t}else _.i[e]=u}for(let e in o)for(let[,t]of o[e])_.r.push(t);return _}(i,a,(e,t)=>e.type===t.type,(e,t)=>{u(e,t)});(function(e,t,n,r,l){let _;if(!(!eJ(t.i)||!eJ(t.m)||t.r.length>0))return e;let o=new Set(t.r);let{i:i,m:u}=t;let a=new Map;let s=0;_=e[0];let c=[];let f=0;let p=0;let d=Object.keys(i).length;for(;_||d>0;){let t=!1;if(_&&o.has(p))r(_);else if(_&&void 0!==u[p])a.set(u[p],_),d++;else{let e=_;a.has(f)?(e=a.get(f),t=!0,l(e,_),d--):void 0!==i[f]&&(e=n(i[f],_),t=!0,d--),c.push(e),f++}_&&!t&&(_=e[++s],p++)}return c})(i,n,(e,n)=>{tR([e],t.id,null==n?void 0:n.id)},n=>{e.push(2,t.id,n.id)},(n,r)=>{e.push(1,t.id,n.id,null==r?void 0:r.id)})}}})})(_,o),t_(),eK());e7(\"diffVdomEnd\"),tJ(),i&&(i.forEach(e=>{var t;let[n,r]=e;let[_,...o]=n.split(\":\");for(;l[_];)_=null==(t=l[_])?void 0:t.toString();try{tV([_,...o].join(\":\"),r)}catch(e){lynx.reportError(e)}}),i.length=0),lynxCoreInject.tt.publishEvent=tV,lynxCoreInject.tt.publicComponentEvent=tG;let s=tx++;let c={patchList:[{snapshotPatch:a,id:s}]};th.length&&(c.delayedRunOnMainThreadData=tv());let f=tC(c,{isHydration:!0});tp(),lynx.getNativeApp().callLepusMethod(d.patchUpdate,f,()=>{tb.forEach((e,t)=>{t>s||(e(),tb.delete(t))})});let p=e4.slice();for(let e of(e4.length=0,e9.value=!1,p))e();if(t)throw t;break}case d.globalEventFromLepus:{let[e,t]=n;lynx.getJSModule(\"GlobalEventEmitter\").trigger(e,t);break}case d.publishEvent:{let{handlerName:e,data:t}=n;lynxCoreInject.tt.publishEvent(e,t)}}})(t,n)}catch(e){lynx.reportError(e)}}let t$=!1;function tJ(){t$||(t$=!0,tH&&(tH.forEach(e=>{tB(e)}),tH.length=0),t$=!1)}function tV(e,t){var n,r;null==(n=(r=lynxCoreInject.tt).callBeforePublishEvent)||n.call(r,t);let l=tu.getValueBySign(e);if(l)try{l(t)}catch(e){lynx.reportError(e)}}function tG(e,t,n){tV(t,n)}W.document=tM,W.requestAnimationFrame=eQ,tM.createElement=function(e){return new tL(e)},tM.createElementNS=function(e,t){return new tL(t)},tM.createTextNode=function(e){let t=new tL(null);return t.setAttribute(0,e),Object.defineProperty(t,\"data\",{set(e){t.setAttribute(0,e)}}),t};let tq;(tq=lynxCoreInject.tt).OnLifecycleEvent=tB,tq.publishEvent=tU,tq.publicComponentEvent=function(e,t,n){tU(t,n)},tq.callDestroyLifetimeFun=()=>{var e,t;let n;for(let r of((n=null==(e=(t=lynx).getCoreContext)?void 0:e.call(t))&&tF&&(n.removeEventListener(tD,tF),tF=null),tf(),tE))r();tE.length=0,tW()},tq.updateGlobalProps=function(e){Object.assign(lynx.__globalProps,e),Promise.resolve().then(()=>{let e=W._diff2;W._diff2=(t,n)=>{e&&e(t,n);let r=n.__c;r&&(r.__e=!0)};try{es(o.__jsx,o)}finally{W._diff2=e}}),lynxCoreInject.tt.GlobalEventEmitter.emit(\"onGlobalPropsChanged\",void 0)},tq.updateCardData=function(e,t){let{__lynx_timing_flag:n}=e,r=function(e,t){if(null==e)return{};var n,r,l,_={};if(\"undefined\"!=typeof Reflect&&Reflect.ownKeys){for(l=0,n=Reflect.ownKeys(e);l<n.length;l++)r=n[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(_[r]=e[r]);return _}if(_=function(e,t){if(null==e)return{};var n,r,l={},_=Object.getOwnPropertyNames(e);for(r=0;r<_.length;r++)n=_[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n]);return l}(e,t),Object.getOwnPropertySymbols)for(l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)r=n[l],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(_[r]=e[r]);return _}(e,[\"__lynx_timing_flag\"]);n&&lynx.reportError(Error(`Received unsupported updateData with \\`__lynx_timing_flag\\` (value \"${n}\"), the timing flag is ignored`));let{type:l=h.UPDATE}=null!=t?t:{};l==h.RESET&&(lynx.__initData={}),lynx.__initData=Object.assign({},lynx.__initData,r),lynxCoreInject.tt.GlobalEventEmitter.emit(\"onDataChanged\",[r])},tq.onAppReload=function(t){e=void 0,tW(),++td,lynx.__initData=Object.assign({},lynx.__initData,t),e9.value=!0,es(o.__jsx,o)},tq.processCardConfig=()=>{},tF=e=>{(function(e){let t=e.id;let n=tu.values.get(t);let r=\"null\";if(n&&n.__snapshot_def){for(let[e,t]of ti.values.entries())if(t===n.__snapshot_def){r=e;break}}lynx.reportError(Error(`snapshotPatchApply failed: ctx not found, snapshot type: '${r}'`))})(e.data)},null==(P=(I=lynx).getCoreContext)||P.call(I).addEventListener(tD,tF),eq(W,\"__c\",(e,t,n)=>{let r,l;ty.value=!1,e3(\"updateDiffVdomEnd\"),e7(\"diffVdomEnd\");let _=tS;tS=[];let o=tx++;tb.set(o,()=>{_.length&&setTimeout(()=>{_.forEach(e=>{var t;null==(t=tu.values.get(e))||t.tearDown()})},1e4)}),tp();let i=eK();let u=(r=tm,tm={},r);let a=(l=tk,tk={},l);if(!i){tr(),null==e||e(t,n);return}let s={id:o};(null==i?void 0:i.length)&&(s.snapshotPatch=i);let c={patchList:[s]};eJ(u)||(c.flushOptions=u),i&&th.length&&(c.delayedRunOnMainThreadData=tv());let f=tC(c,a);lynx.getNativeApp().callLepusMethod(d.patchUpdate,f,()=>{let e=tb.get(o);e&&(e(),tb.delete(o))}),tr(),null==e||e(t,n)});let tQ;tQ=()=>{e&&(n||(e6(!1,eZ),e7(\"diffVdomStart\",!0)),e1&&e3(\"updateDiffVdomStart\"))},eq(W,eX,(e,t,n)=>{tQ(),e&&e(t,n)}),eq(W,\"__\",(e,t,n)=>{tQ(),e&&e(t,n)}),(null==(x=lynx.performance)||null==(b=x.isProfileRecording)?void 0:b.call(x))&&function(){let t;if(!(t=lynx.performance)||\"function\"!=typeof t.profileStart||\"function\"!=typeof t.profileEnd||\"function\"!=typeof t.profileMark||\"function\"!=typeof t.profileFlowId)return;let n=t.profileStart.bind(t);let r=t.profileEnd.bind(t);let l=t.profileMark.bind(t);let _=t.profileFlowId.bind(t);{let e=Symbol(\"FLOW_ID\");eq(G.prototype,\"setState\",function(t,n,r){var o,i,u;let a;null==t||t.call(this,n,r),this.__d&&l(\"ReactLynx::setState\",{flowId:null!=(o=this[e])?o:this[e]=_(),args:(i=this.state,u=this.__s,a={},null!=i||(i=a),null!=u||(u=a),{\"current state keys\":JSON.stringify(Object.keys(i)),\"next state keys\":JSON.stringify(Object.keys(u)),\"changed (shallow diff) state keys\":JSON.stringify(Object.keys(u).filter(e=>i[e]!==u[e]))})})}),eq(W,\"_diff2\",(t,r,l)=>{if(\"function\"==typeof r.type){let t={};{let n=l.__c;if(n){let r=n[e];if(delete n[e],r){var _;null!=(_=tk).flowIds||(_.flowIds=[]),tk.flowIds.push(r),t.flowId=r}}}n(`ReactLynx::diff::${eG(r.type)}`,t)}null==t||t(r,l)}),eq(W,\"diffed\",(e,t)=>{\"function\"==typeof t.type&&r(),null==e||e(t)}),eq(W,\"__c\",(e,t,l)=>{n(\"ReactLynx::commit\",ez({},tk.flowIds?{flowId:tk.flowIds[\"0\"],flowIds:tk.flowIds}:{})),null==e||e(t,l),r()})}eq(W,\"__r\",(e,t)=>{let l=t.__c.render;t.__c.render=function(e,_,o){n(`ReactLynx::render::${eG(t.type)}`);try{return l.call(this,e,_,o)}finally{r(),t.__c.render=l}},null==e||e(t)});{let t=Symbol(\"PATCH_LENGTH\");eq(W,\"__b\",(n,r)=>{\"function\"==typeof r.type&&e&&(r[t]=e.length),null==n||n(r)}),eq(W,\"diffed\",(n,r)=>{\"function\"==typeof r.type&&e&&(r[t]===e.length&&l(\"ReactLynx::diffFinishNoPatch\",{args:{componentName:eG(r.type)}}),delete r[t]),null==n||n(r)})}}(),function(){{let{initData:e,updateData:t}=lynxCoreInject.tt._params;lynx.__initData=ez({},e,t),lynx.registerDataProcessors=function(){}}}(),y.Slot,y.MultiChildren,y.Children,y.ListChildren;{function tz(e,t){lynx.reportError(Error(`${e} is deprecated and has different behavior in ReactLynx 3.0, please use ref or ${t} instead.`))}G.prototype._reactAppInstance=lynxCoreInject.tt,G.prototype.getNodeRef=function(e,t){return tz(\"getNodeRef\",\"lynx.createSelectorQuery\"),lynxCoreInject.tt._reactLynx.ReactComponent.prototype.getNodeRef.call({_type:\"\",_nativeApp:lynxCoreInject.tt._nativeApp,_uiModule:lynxCoreInject.tt._nativeApp.nativeModuleProxy.LynxUIMethodModule,_reactAppInstance:lynxCoreInject.tt},e,t)},G.prototype.getNodeRefFromRoot=function(e){return tz(\"getNodeRefFromRoot\",\"lynx.createSelectorQuery\"),lynxCoreInject.tt._reactLynx.ReactComponent.prototype.getNodeRefFromRoot.call({_type:\"\",_nativeApp:lynxCoreInject.tt._nativeApp,_uiModule:lynxCoreInject.tt._nativeApp.nativeModuleProxy.LynxUIMethodModule,_reactAppInstance:lynxCoreInject.tt},e)},G.prototype.registerModule=function(e,t){this._reactAppInstance.registerModule(e,t)},G.prototype.getJSModule=function(e){return this._reactAppInstance.getJSModule(e)},G.prototype.addGlobalEventListener=function(e,t,n){return this._reactAppInstance.getJSModule(\"GlobalEventEmitter\").addListener(e,t,n)},G.prototype.getElementById=function(e){return tz(\"getElementById\",\"lynx.getElementById\"),lynx.getElementById(e)},G.prototype.GlobalEventEmitter=lynxCoreInject.tt.GlobalEventEmitter,G.prototype.createSelectorQuery=function(){return tz(\"createSelectorQuery on component instance\",\"lynx.createSelectorQuery\"),lynx.createSelectorQuery()};const e=G.prototype.setState;G.prototype.setState=function(t,n){e.call(this,t,n);let r=this.__s[e0];r&&(tm.__lynx_timing_flag=r,e3(\"updateSetStateTrigger\",r),this.__s[e0]=\"\")}}function tK(e,t,n,r,l,_,o){try{var i=e[_](o);var u=i.value}catch(e){n(e);return}i.done?t(u):Promise.resolve(u).then(r,l)}function tX(e){let t=JSON.parse(e.data);let n=u.get(t.resolveId);u.remove(t.resolveId),n(t.returnValue)}let tY=0;class tZ{get current(){}set current(e){}toJSON(){return{_wvid:this._wvid}}constructor(e,t){var n;this._initValue=e,this._type=t,this._wvid=++tY,n=this._wvid,ts()&&tc.push([n,e])}}class t0 extends tZ{constructor(e){super(e,\"main-thread\");{var t,n;const e=this._wvid;this._lifecycleObserver=null==(t=(n=lynx.getNativeApp()).createJSObjectDestructionObserver)?void 0:t.call(n,()=>{var t,n;null==(t=(n=lynx).getCoreContext)||t.call(n).dispatchEvent({type:v.releaseWorkletRef,data:{id:e}})})}}}let t1;const t2=(N=\"__snapshot_c7bc9_fe86b_1\",j=void 0,T=globDynamicComponentEntry,A=N,N=T?`${T}:${A}`:A,t1={create:null,update:null,slot:null,cssId:j,entryName:T,refAndSpreadIndexes:null},ti.values.set(N,t1),N);({render:e=>{o.__jsx=e,es(e,o),tJ()},registerDataProcessors:e=>{lynx.registerDataProcessors(e)}}).render(ef(function(){var t,n,r;let l,_;let o=eS(()=>new t0(null),[]);let[i,a]=(ep=1,function(e,t,n){var r=ex(s++,2);if(r._reducer=e,!r.__c&&(r.__=[eO(void 0,\"\"),function(e){var t=r.__N?r.__N[0]:r.__[0];var n=r._reducer(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=c,!c._hasScuFromHooks)){var l=function(e,t,n){if(!r.__c.__H)return!0;var l=r.__c.__H.__.filter(function(e){return!!e.__c});if(l.every(function(e){return!e.__N}))return!_||_.call(this,e,t,n);var o=!1;return l.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),(!!o||r.__c.props!==e)&&(!_||_.call(this,e,t,n))};c._hasScuFromHooks=!0;var _=c.shouldComponentUpdate;var o=c.componentWillUpdate;c.componentWillUpdate=function(e,t,n){if(this.__e){var r=_;_=void 0,l(e,t,n),_=r}o&&o.call(this,e,t,n)},c.shouldComponentUpdate=l}return r.__N||r.__}(eO,\"\"));return t={_c:{nodeMTRef:o},_wkltId:\"c7bc:fe86b:1\"},n=[],r=void 0,ep=5,_=!function(e,t){if(void 0===e||void 0===t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}((l=eS(function(){return{current:r}},[])).current,n),l.current=n,_&&(function(t){if(!ts())throw Error(\"runOnMainThread requires Lynx sdk version 2.14.\");return(...n)=>{var r;return(r=function*(){return new Promise(r=>{let l;tN(t);let _={worklet:t,params:n,resolveId:(u||(l=lynx.getCoreContext(),u=new tw,l.addEventListener(v.FunctionCallRet,tX),tE.push(()=>{l.removeEventListener(v.FunctionCallRet,tX),u=void 0})),u.add(r))};void 0===e||ty.value?th.push(_):lynx.getCoreContext().dispatchEvent({type:v.runWorkletCtx,data:JSON.stringify(_)})})},function(){var e=this,t=arguments;return new Promise(function(n,l){var _=r.apply(e,t);function o(e){tK(_,n,l,o,i,\"next\",e)}function i(e){tK(_,n,l,o,i,\"throw\",e)}o(void 0)})})()}})({_c:{cb:t},_wkltId:\"a357:6c77e:1\"})(),ef(t2,{values:[()=>{a(\"background-color: var(--primary);\")},o,i]})},{}));"},"cardType":"react","appType":"card","pageConfig":{"enableFiberArch":true,"useLepusNG":true,"enableReuseContext":true,"bundleModuleMode":"ReturnByFunction","templateDebugUrl":"","debugInfoOutside":true,"defaultDisplayLinear":true,"enableCSSInvalidation":true,"enableCSSSelector":true,"enableLepusDebug":false,"enableRemoveCSSScope":true,"targetSdkVersion":"3.2","defaultOverflowVisible":true,"lepusStrict":true,"useNewSwiper":true,"enableNewIntersectionObserver":true,"enableNativeList":true,"enableA11y":true,"enableAccessibilityElement":false,"enableCSSInheritance":true,"enableNewGesture":true,"removeDescendantSelectorScope":true},"lepusCode":{"worklet-runtime":"(()=>{\"use strict\";let e,t,n;function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l{cancel(){return __ElementAnimate(this.effect.target.element,[3,this.id])}pause(){return __ElementAnimate(this.effect.target.element,[2,this.id])}play(){return __ElementAnimate(this.effect.target.element,[1,this.id])}start(){return __ElementAnimate(this.effect.target.element,[0,this.id,this.effect.keyframes,this.effect.options])}constructor(e){r(this,\"effect\",void 0),r(this,\"id\",void 0),this.effect=e,this.id=\"__lynx-inner-js-animation-\"+l.count++,this.start()}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}r(l,\"count\",0);class o{constructor(e,t,n){i(this,\"target\",void 0),i(this,\"keyframes\",void 0),i(this,\"options\",void 0),this.target=e,this.keyframes=t,this.options=n}}let a=!1,s=!0;class u{setAttribute(e,t){__SetAttribute(this.element,e,t),this.flushElementTree()}setStyleProperty(e,t){__AddInlineStyle(this.element,e,t),this.flushElementTree()}setStyleProperties(e){for(let t in e)__AddInlineStyle(this.element,t,e[t]);this.flushElementTree()}getAttribute(e){return __GetAttributeByName(this.element,e)}getAttributeNames(){return __GetAttributeNames(this.element)}querySelector(e){let t=__QuerySelector(this.element,e,{});return t?new u(t):null}querySelectorAll(e){return __QuerySelectorAll(this.element,e,{}).map(e=>new u(e))}animate(e,t){return new l(new o(this,e,\"number\"==typeof t?{duration:t}:null!=t?t:{}))}invoke(e,t){return new Promise((n,r)=>{__InvokeUIMethod(this.element,e,null!=t?t:{},e=>{0===e.code?n(e.data):r(Error(\"UI method invoke: \"+JSON.stringify(e)))}),this.flushElementTree()})}flushElementTree(){!a&&s&&(a=!0,Promise.resolve().then(()=>{a=!1,__FlushElementTree()}))}constructor(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,\"element\",void 0),Object.defineProperty(this,\"element\",{get:()=>e})}}class c{static get(){return null!=c.pageElement||(c.pageElement=__GetPageElement()),c.pageElement}}function d(e){let t=__QuerySelector(c.get(),e,{});return t?new u(t):null}function f(e){return __QuerySelectorAll(c.get(),e,{}).map(e=>new u(e))}function m(e,t){var n;let r=(null!=(n=SystemInfo.lynxSdkVersion)?n:\"1.0\").split(\".\");return Number(r[0])>e||Number(r[0])==e&&Number(r[1])>t}function y(e,t,n){let r;try{r=runWorklet(e,t)}finally{lynx.getJSContext().dispatchEvent({type:\"Lynx.Worklet.FunctionCallRet\",data:JSON.stringify({resolveId:n,returnValue:r})})}}!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(c,\"pageElement\",void 0);let h=(e,t)=>({current:t,_wvid:e}),_=t=>{let n,r=t._wvid;return r<0?(n=e._firstScreenWorkletRefMap[r])||(n=e._firstScreenWorkletRefMap[r]=h(r,t._initValue)):n=e._workletRefMap[r],n};function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t,n){lynxWorkletImpl._workletMap[t]=n}let g=new WeakMap;function I(e,t){if(\"object\"!=typeof e||null===e)return e;if(t){let t=g.get(e);if(t)return t}let n={main:e};return v(n,0,e),t&&g.set(e,n.main),n.main}let v=(e,t,n)=>{if(++t>=1e3)throw Error(\"Depth of value exceeds limit of 1000.\");if(\"object\"==typeof e&&null!==e)for(let l in e){let i=e[l];if(\"object\"==typeof i&&null!==i){if(\"elementRefptr\"in i){e[l]=new u(i.elementRefptr);continue}if(!(i instanceof u)){if(v(i,t,n),\"_wvid\"in i){e[l]=_(i);continue}if(\"_wkltId\"in i){e[l]=lynxWorkletImpl._workletMap[i._wkltId].bind({...i}),e[l].ctx=i;continue}if(\"_jsFnId\"in i){var r;i._execId=n._execId,null==(r=lynxWorkletImpl._jsFunctionLifecycleManager)||r.addRef(n._execId,i);continue}}}}};void 0===globalThis.lynxWorkletImpl&&(globalThis.lynxWorkletImpl={_workletMap:{},_refImpl:e={_workletRefMap:{},_firstScreenWorkletRefMap:{},updateWorkletRef:function(e,t){_(e).current=t?new u(t):null},updateWorkletRefInitValueChanges:function(t){t.forEach(([t,n])=>{e._workletRefMap[t]||(e._workletRefMap[t]=h(t,n))})},clearFirstScreenWorkletRefMap:function(){e._firstScreenWorkletRefMap={}}},_runOnBackgroundDelayImpl:t={delayedBackgroundFunctionArray:[],delayRunOnBackground:function(e,n){var r;t.delayedBackgroundFunctionArray.push({task:n}),(null!=(r=e._delayIndices)?r:e._delayIndices=[]).push(t.delayedBackgroundFunctionArray.length-1)},runDelayedBackgroundFunctions:function(){for(let e of t.delayedBackgroundFunctionArray)e.jsFnHandle&&e.task(e.jsFnHandle._jsFnId,e.jsFnHandle._execId);t.delayedBackgroundFunctionArray.length=0}},_hydrateCtx:function(e,t){(function e(t,n,r){if(t&&\"object\"==typeof t&&n&&\"object\"==typeof n&&(!t._wkltId||t._wkltId===n._wkltId))for(let o in t)if(\"_wvid\"===o){var l,i;l=t[o],\"_initValue\"in(i=n)||(lynxWorkletImpl._refImpl._workletRefMap[l].current=i.current)}else if(\"_jsFn\"===o)!function(e,t,n){for(let r in e){let l=e[r],i=t[r];if(null==i?void 0:i._delayIndices)for(let e of i._delayIndices){let t=lynxWorkletImpl._runOnBackgroundDelayImpl.delayedBackgroundFunctionArray[e];l._execId=n,t.jsFnHandle=l}}}(t[o],n[o],r);else{let l=\"function\"==typeof n[o]?n[o].ctx:n[o];e(t[o],l,r)}})(e,t,e._execId)},_eventDelayImpl:n={_delayedWorkletParamsMap:new Map,runDelayedWorklet:function(e,t){(()=>{let r=n._delayedWorkletParamsMap.get(e._wkltId);if(void 0===r)return;let l=[];r.forEach(n=>{var r;let i=n[0];(null==i||null==(r=i.currentTarget)?void 0:r.elementRefptr)===t?setTimeout(()=>{runWorklet(e,n)},0):l.push(n)}),n._delayedWorkletParamsMap.set(e._wkltId,l)})()},clearDelayedWorklets:function(){n._delayedWorkletParamsMap.clear()}},_eomImpl:{setShouldFlush:function(e){s=e}},_runRunOnMainThreadTask:y},m(2,15)&&(globalThis.lynxWorkletImpl._jsFunctionLifecycleManager=new class e{addRef(e,t){var n;this.execIdRefCount.set(e,(null!=(n=this.execIdRefCount.get(e))?n:0)+1),this.registry.register(t,e)}removeRef(e){let t=this.execIdRefCount.get(e);if(t>1)return void this.execIdRefCount.set(e,t-1);this.execIdRefCount.delete(e),this.execIdSetToFire.add(e),this.willFire||(this.willFire=!0,Promise.resolve().then(()=>{this.fire()}))}fire(){lynx.getJSContext().dispatchEvent({type:\"Lynx.Worklet.releaseBackgroundWorkletCtx\",data:Array.from(this.execIdSetToFire)}),this.execIdSetToFire.clear(),this.willFire=!1}constructor(){p(this,\"execIdRefCount\",new Map),p(this,\"execIdSetToFire\",new Set),p(this,\"willFire\",!1),p(this,\"registry\",void 0),this.registry=new FinalizationRegistry(this.removeRef.bind(this))}}),globalThis.registerWorklet=k,globalThis.registerWorkletInternal=k,globalThis.runWorklet=function(e,t){var r,l;if(!(\"object\"==typeof(r=e)&&null!==r&&(\"_wkltId\"in r||\"_lepusWorkletHash\"in r)))return void console.warn(\"Worklet: Invalid worklet object: \"+JSON.stringify(e));if(\"_lepusWorkletHash\"in e){return void(l=e._lepusWorkletHash,(()=>{let e=n._delayedWorkletParamsMap,r=e.get(l);r?r.push(t):e.set(l,[t])})())}return function(e,t){let n=(e._wkltId,I(e,!0)),r=I(t||[],!1);return n(...r)}(e,t)},function(){var e;lynx.querySelector=d,lynx.querySelectorAll=f,globalThis.setTimeout=lynx.setTimeout,globalThis.setInterval=lynx.setInterval,globalThis.clearTimeout=lynx.clearTimeout,globalThis.clearInterval=null!=(e=lynx.clearInterval)?e:lynx.clearTimeInterval;{let e=lynx.requestAnimationFrame;lynx.requestAnimationFrame=globalThis.requestAnimationFrame=t=>{if(!m(2,15))throw Error(\"requestAnimationFrame in main thread script requires Lynx sdk version 2.16\");return e(t)}}globalThis.cancelAnimationFrame=lynx.cancelAnimationFrame}(),function(){let t=lynx.getJSContext();t.addEventListener(\"Lynx.Worklet.runWorkletCtx\",e=>{let t=JSON.parse(e.data);y(t.worklet,t.params,t.resolveId)}),t.addEventListener(\"Lynx.Worklet.releaseWorkletRef\",t=>{var n;n=t.data.id,delete e._workletRefMap[n]})}())})();","root":"\"use strict\";let e,t,_,n,l,r,o,i,s,u,a;var f,c,h,p,d,v,m,y,g,b,S,E,k,x,C,I,w,T,P,N,A,R,O,L=L||\"__Card__\";var D={};var F=[];var U=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;var W=Array.isArray;function H(e,t){for(var _ in t)e[_]=t[_];return e}function M(e){e&&e.parentNode&&e.parentNode.removeChild(e)}var j=F.slice;var B={__e:function(e,t,_,n){var l,r,o;for(;t=t.__;)if((l=t.__c)&&!l.__)try{if((r=l.constructor)&&null!=r.getDerivedStateFromError&&(l.setState(r.getDerivedStateFromError(e)),o=l.__d),null!=l.componentDidCatch&&(l.componentDidCatch(e,n||{}),o=l.__d),o)return l.__E=l}catch(t){e=t}throw e}};var V=0;function G(e,t,_){var n,l,r,o={};for(r in t)\"key\"==r?n=t[r]:\"ref\"==r?l=t[r]:o[r]=t[r];if(arguments.length>2&&(o.children=arguments.length>3?j.call(arguments,2):_),\"function\"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===o[r]&&(o[r]=e.defaultProps[r]);return $(e,o,n,l,null)}function $(e,t,_,n,l){var r={type:e,props:t,key:_,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==l?++V:l,__i:-1,__u:0};return null==l&&null!=B.vnode&&B.vnode(r),r}function q(e){return e.children}function J(e,t){this.props=e,this.context=t}function z(e,t){var _;if(null==t)return e.__?z(e.__,e.__i+1):null;for(;t<e.__k.length;t++)if(null!=(_=e.__k[t])&&null!=_.__e)return _.__e;return\"function\"==typeof e.type?z(e):null}J.prototype.setState=function(e,t){var _;_=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=H({},this.state),\"function\"==typeof e&&(e=e(H({},_),this.props)),e&&H(_,e),null!=e&&this.__v&&(t&&this._sb.push(t),X(this))},J.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),X(this))},J.prototype.render=q;var K=[];var Q=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;function X(e){(!e.__d&&(e.__d=!0)&&K.push(e)&&!Z.__r++||k!==B.debounceRendering)&&((k=B.debounceRendering)||Q)(Z)}var Y=function(e,t){return e.__v.__b-t.__v.__b};function Z(){var e;for(K.sort(Y);e=K.shift();)if(e.__d){var t=K.length;(function(e){var t=e.__v,_=t.__e,n=[],l=[];if(e.__P){var r=H({},t);r.__v=t.__v+1,B.vnode&&B.vnode(r),B.renderComponent&&B.renderComponent(r,e),ei(e.__P,r,t,e.__n,e.__P.namespaceURI,32&t.__u?[_]:null,n,null==_?z(t):_,!!(32&t.__u),l),r.__v=t.__v,r.__.__k[r.__i]=r,function(e,t,_){t.__d=void 0;for(var n=0;n<_.length;n++)es(_[n],_[++n],_[++n]);B.__c&&B.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){B.__e(e,t.__v)}})}(n,r,l),r.__e!=_&&function e(t){if(null!=(t=t.__)&&null!=t.__c){t.__e=t.__c.base=null;for(var _=0;_<t.__k.length;_++){var n=t.__k[_];if(null!=n&&null!=n.__e){t.__e=t.__c.base=n.__e;break}}return e(t)}}(r)}})(e),K.length>t&&K.sort(Y)}Z.__r=0}function ee(e,t,_,n,l,r,o,i,s,u,a){var f,c,h,p,d;var v=n&&n.__k||F;var m=t.length;for(_.__d=s,function(e,t,_){var n,l,r,o=t.length;var i=_.length,s=i;var u=0;for(n=0,e.__k=[];n<o;n++){if(null==(l=t[n])||\"boolean\"==typeof l||\"function\"==typeof l){l=e.__k[n]=null;continue}l=\"string\"==typeof l||\"number\"==typeof l||\"bigint\"==typeof l||l.constructor==String?e.__k[n]=$(null,l,null,null,null):W(l)?e.__k[n]=$(q,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?e.__k[n]=$(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):e.__k[n]=l;var a=n+u;l.__=e,l.__b=e.__b+1;var f=l.__i=function(e,t,_,n){var l=e.key;var r=e.type;var o=_-1;var i=_+1;var s=t[_];var u=n>+(null!=s&&(131072&s.__u)===0);if(null===s||s&&l==s.key&&r===s.type&&(131072&s.__u)===0)return _;if(u)for(;o>=0||i<t.length;){if(o>=0){if((s=t[o])&&(131072&s.__u)===0&&l==s.key&&r===s.type)return o;o--}if(i<t.length){if((s=t[i])&&(131072&s.__u)===0&&l==s.key&&r===s.type)return i;i++}}return -1}(l,_,a,s);r=null,-1!==f&&(r=_[f],s--,r&&(r.__u|=131072)),null==r||null===r.__v?(-1==f&&u--,\"function\"!=typeof l.type&&(l.__u|=65536)):f!==a&&(f==a-1?u--:f==a+1?u++:(f>a?u--:u++,l.__u|=65536))}if(s)for(n=0;n<i;n++)null!=(r=_[n])&&(131072&r.__u)===0&&(r.__e==e.__d&&(e.__d=z(r)),function e(t,_,n){var l;if(B.unmount&&B.unmount(t),(l=t.ref)&&(!l.current||l.current===t.__e)&&es(l,null,_),null!=(l=t.__c)){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(e){B.__e(e,_)}l.base=l.__P=null}if(l=t.__k)for(var r=0;r<l.length;r++)l[r]&&e(l[r],_,n||\"function\"!=typeof t.type);n||M(t.__e),t.__c=t.__=t.__e=t.__d=void 0}(r,r))}(_,t,v),s=_.__d,f=0;f<m;f++)null!=(h=_.__k[f])&&(c=-1===h.__i?D:v[h.__i]||D,h.__i=f,ei(e,h,c,l,r,o,i,s,u,a),p=h.__e,h.ref&&c.ref!=h.ref&&(c.ref&&es(c.ref,null,h),a.push(h.ref,h.__c||p,h)),null==d&&null!=p&&(d=p),65536&h.__u||c.__k===h.__k?s=function e(t,_,n){if(\"function\"==typeof t.type){var l=t.__k;for(var r=0;l&&r<l.length;r++)l[r]&&(l[r].__=t,_=e(l[r],_,n));return _}t.__e!=_&&(_&&t.type&&!n.contains(_)&&(_=z(t)),n.insertBefore(t.__e,_||null),_=t.__e);do _=_&&_.nextSibling;while(null!=_&&8===_.nodeType);return _}(h,s,e):\"function\"==typeof h.type&&void 0!==h.__d?s=h.__d:p&&(s=p.nextSibling),h.__d=void 0,h.__u&=-196609);_.__d=s,_.__e=d}function et(e,t,_){\"-\"===t[0]?e.setProperty(t,null==_?\"\":_):null==_?e[t]=\"\":\"number\"!=typeof _||U.test(t)?e[t]=_:e[t]=_+\"px\"}Z.__r=0;var e_=0;function en(e,t,_,n,l){var r;e:if(\"style\"===t)if(\"string\"==typeof _)e.style.cssText=_;else{if(\"string\"==typeof n&&(e.style.cssText=n=\"\"),n)for(t in n)_&&t in _||et(e.style,t,\"\");if(_)for(t in _)n&&_[t]===n[t]||et(e.style,t,_[t])}else if(\"o\"===t[0]&&\"n\"===t[1])r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,\"$1\")),t=t.toLowerCase()in e||\"onFocusOut\"===t||\"onFocusIn\"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=_,_?n?_._attached=n._attached:(_._attached=e_,e.addEventListener(t,r?eo:er,r)):e.removeEventListener(t,r?eo:er,r);else{if(\"http://www.w3.org/2000/svg\"==l)t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(\"width\"!=t&&\"height\"!=t&&\"href\"!=t&&\"list\"!=t&&\"form\"!=t&&\"tabIndex\"!=t&&\"download\"!=t&&\"rowSpan\"!=t&&\"colSpan\"!=t&&\"role\"!=t&&\"popover\"!=t&&t in e)try{e[t]=null==_?\"\":_;break e}catch(e){}\"function\"==typeof _||(null!=_&&(!1!==_||\"-\"===t[4])?e.setAttribute(t,\"popover\"==t&&!0==_?\"\":_):e.removeAttribute(t))}}function el(e){return function(t){if(this.l){var _=this.l[t.type+e];if(null==t._dispatched)t._dispatched=e_++;else if(t._dispatched<_._attached)return;return _(B.event?B.event(t):t)}}}var er=el(!1);var eo=el(!0);function ei(e,t,_,n,l,r,o,i,s,u){var a,f,c,h,p,d,v,m=t.type;if(void 0!==t.constructor)return null;128&_.__u&&(s=!!(32&_.__u),r=[i=t.__e=_.__e]),(v=B.__b)&&v(t),(v=B._diff2)&&v(t,_);t:if(\"function\"==typeof m)try{var y=t.props;var g=\"prototype\"in m&&m.prototype.render;var b=(v=m.contextType)&&n[v.__c];var S=v?b?b.props.value:v.__:n;if(_.__c?d=(a=t.__c=_.__c).__=a.__E:(g?t.__c=a=new m(y,S):(t.__c=a=new J(y,S),a.constructor=m,a.render=eu),b&&b.sub(a),a.props=y,a.state||(a.state={}),a.context=S,a.__n=n,f=a.__d=!0,a.__h=[],a._sb=[]),g&&null==a.__s&&(a.__s=a.state),g&&null!=m.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=H({},a.__s)),H(a.__s,m.getDerivedStateFromProps(y,a.__s))),c=a.props,h=a.state,a.__v=t,f)g&&null==m.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),g&&null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(g&&null==m.getDerivedStateFromProps&&y!==c&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(y,S),!a.__e&&(null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(y,a.__s,S)||t.__v===_.__v)){t.__v!==_.__v&&(a.props=y,a.state=a.__s,a.__d=!1),t.__e=_.__e,t.__k=_.__k,t.__k.some(function(e){e&&(e.__=t)});for(var E=0;E<a._sb.length;E++)a.__h.push(a._sb[E]);a._sb=[],a.__h.length&&o.push(a);break t}null!=a.componentWillUpdate&&a.componentWillUpdate(y,a.__s,S),g&&null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(c,h,p)})}a.context=S,a.props=y,a.__P=e,a.__e=!1;var k=B.__r,x=0;if(g){a.state=a.__s,a.__d=!1,k&&k(t),v=a.render(a.props,a.state,a.context);for(var C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[]}else do a.__d=!1,k&&k(t),v=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++x<25);a.state=a.__s,null!=a.getChildContext&&(n=H(H({},n),a.getChildContext())),g&&!f&&null!=a.getSnapshotBeforeUpdate&&(p=a.getSnapshotBeforeUpdate(c,h));var I=null!=v&&v.type===q&&null==v.key?v.props.children:v;ee(e,W(I)?I:[I],t,_,n,l,r,o,i,s,u),a.base=t.__e,t.__u&=-161,a.__h.length&&o.push(a),d&&(a.__E=a.__=null)}catch(e){if(t.__v=null,s||null!=r){for(t.__u|=s?160:32;i&&8===i.nodeType&&i.nextSibling;)i=i.nextSibling;r[r.indexOf(i)]=null,t.__e=i}else t.__e=_.__e,t.__k=_.__k;B.__e(e,t,_)}else null==r&&t.__v===_.__v?(t.__k=_.__k,t.__e=_.__e):t.__e=function(e,t,_,n,l,r,o,i,s){var u,a,f,c,h,p,d,v=_.props;var m=t.props;var y=t.type;if(\"svg\"===y?l=\"http://www.w3.org/2000/svg\":\"math\"===y?l=\"http://www.w3.org/1998/Math/MathML\":l||(l=\"http://www.w3.org/1999/xhtml\"),null!=r){for(u=0;u<r.length;u++)if((h=r[u])&&\"setAttribute\"in h===!!y&&(y?h.localName===y:3===h.nodeType)){e=h,r[u]=null;break}}if(null==e){if(null===y)return B.document.createTextNode(m);e=B.document.createElementNS(l,y,m.is&&m),i&&(B.__m&&B.__m(t,r),i=!1),r=null}if(null===y)v===m||i&&e.data===m||(e.data=m);else{if(r=r&&j.call(e.childNodes),v=_.props||D,!i&&null!=r)for(u=0,v={};u<e.attributes.length;u++)v[(h=e.attributes[u]).name]=h.value;for(u in v)if(h=v[u],\"children\"==u);else if(\"dangerouslySetInnerHTML\"==u)f=h;else if(!(u in m)){if(\"value\"==u&&\"defaultValue\"in m||\"checked\"==u&&\"defaultChecked\"in m)continue;en(e,u,null,h,l)}for(u in m)h=m[u],\"children\"==u?c=h:\"dangerouslySetInnerHTML\"==u?a=h:\"value\"==u?p=h:\"checked\"==u?d=h:i&&\"function\"!=typeof h||v[u]===h||en(e,u,h,v[u],l);if(a)i||f&&(a.__html===f.__html||a.__html===e.innerHTML)||(e.innerHTML=a.__html),t.__k=[];else if(f&&(e.innerHTML=\"\"),ee(e,W(c)?c:[c],t,_,n,\"foreignObject\"===y?\"http://www.w3.org/1999/xhtml\":l,r,o,r?r[0]:_.__k&&z(_,0),i,s),null!=r)for(u=r.length;u--;)M(r[u]);i||(u=\"value\",\"progress\"===y&&null==p?e.removeAttribute(\"value\"):void 0===p||p===e[u]&&(\"progress\"!==y||p)&&(\"option\"!==y||p===v[u])||en(e,u,p,v[u],l),u=\"checked\",void 0!==d&&d!==e[u]&&en(e,u,d,v[u],l))}return e}(_.__e,t,_,n,l,r,o,s,u);(v=B.diffed)&&v(t)}function es(e,t,_){try{if(\"function\"==typeof e){var n=\"function\"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){B.__e(e,_)}}function eu(e,t,_){return this.constructor(e,_)}var ea=0;var ef=[];var ec=B.__b;var eh=B.__r;var ep=B.diffed;var ed=B.__c;var ev=B.unmount;var em=B.__;function ey(e,t){B.__h&&B.__h(C,e,ea||t),ea=0;var _=C.__H||(C.__H={__:[],__h:[]});return e>=_.__.length&&_.__.push({}),_.__[e]}function eg(e,t){var _,n,l=ey(x++,7);return _=l.__H,n=t,(!_||_.length!==n.length||n.some(function(e,t){return e!==_[t]}))&&(l.__=e(),l.__H=t,l.__h=e),l.__}function eb(){var e;for(;e=ef.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(eE),e.__H.__h.forEach(ek),e.__H.__h=[]}catch(t){e.__H.__h=[],B.__e(t,e.__v)}}B.__b=function(e){C=null,ec&&ec(e)},B.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),em&&em(e,t)},B.__r=function(e){eh&&eh(e),C=e.__c,x=0;var t=C.__H;t&&(I===C?(t.__h=[],C.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e._pendingArgs=e.__N=void 0})):(t.__h.forEach(eE),t.__h.forEach(ek),t.__h=[],x=0)),I=C},B.diffed=function(e){ep&&ep(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1===ef.push(t)||w!==B.requestAnimationFrame)&&((w=B.requestAnimationFrame)||function(e){var t,_=function(){clearTimeout(n),eS&&cancelAnimationFrame(t),setTimeout(e)};var n=setTimeout(_,100);eS&&(t=requestAnimationFrame(_))})(eb),t.__H.__.forEach(function(e){e._pendingArgs&&(e.__H=e._pendingArgs),e._pendingArgs=void 0})),I=C=null},B.__c=function(e,t){t.some(function(e){try{e.__h.forEach(eE),e.__h=e.__h.filter(function(e){return!e.__||ek(e)})}catch(_){t.some(function(e){e.__h&&(e.__h=[])}),t=[],B.__e(_,e.__v)}}),ed&&ed(e,t)},B.unmount=function(e){ev&&ev(e);var t,_=e.__c;_&&_.__H&&(_.__H.__.forEach(function(e){try{eE(e)}catch(e){t=e}}),_.__H=void 0,t&&B.__e(t,_.__v))};var eS=\"function\"==typeof requestAnimationFrame;function eE(e){var t=C;var _=e.__c;\"function\"==typeof _&&(e.__c=void 0,_()),C=t}function ek(e){var t=C;e.__c=e.__(),C=t}function ex(e,t){return\"function\"==typeof t?t(e):t}function eC(e,t){for(var _ in e)if(\"__source\"!==_&&!(_ in t))return!0;for(var n in t)if(\"__source\"!==n&&e[n]!==t[n])return!0;return!1}function eI(e,t){this.props=e,this.context=t}eI.prototype=new J,eI.prototype.isPureReactComponent=!0,eI.prototype.shouldComponentUpdate=function(e,t){return eC(this.props,e)||eC(this.state,t)};var ew=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ew&&ew(e)},\"undefined\"!=typeof Symbol&&Symbol.for&&Symbol.for(\"react.forward_ref\");var eT=B.__e;B.__e=function(e,t,_,n){if(e.then){var l;var r=t;for(;r=r.__;)if((l=r.__c)&&l.__c)return null==t.__e&&(t.__e=_.__e,t.__k=_.__k),l.__c(e,t)}eT(e,t,_,n)};var eP=B.unmount;function eN(){this.__u=0,this._suspenders=null,this.__b=null}function eA(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function eR(){this._next=null,this._map=null}B.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),eP&&eP(e)},eN.prototype=new J,eN.prototype.__c=function(e,t){var _=t.__c;var n=this;null==n._suspenders&&(n._suspenders=[]),n._suspenders.push(_);var l=eA(n.__v);var r=!1;var o=function(){r||(r=!0,_.__R=null,l?l(i):i())};_.__R=o;var i=function(){if(!--n.__u){if(n.state.__a){var e,t=n.state.__a;n.__v.__k[0]=function e(t,_,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,_,n)}),t.__c&&t.__c.__P===_&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}(t,t.__c.__P,t.__c.__O)}for(n.setState({__a:n.__b=null});e=n._suspenders.pop();)e.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(o,o)},eN.prototype.componentWillUnmount=function(){this._suspenders=[]},eN.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var _=B.document.createElement(\"div\");var n=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,_,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){\"function\"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=function(e,t){for(var _ in t)e[_]=t[_];return e}({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=_),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,_,n)})),t}(this.__b,_,n.__O=n.__P)}this.__b=null}var l=t.__a&&G(q,null,e.fallback);return l&&(l.__u&=-33),[G(q,null,t.__a?null:e.children),l]};var eO=function(e,t,_){if(++_[1]===_[0]&&e._map.delete(t),e.props.revealOrder&&(\"t\"!==e.props.revealOrder[0]||!e._map.size))for(_=e._next;_;){for(;_.length>3;)_.pop()();if(_[1]<_[0])break;e._next=_=_[2]}};eR.prototype=new J,eR.prototype.__a=function(e){var t=this;var _=eA(t.__v);var n=t._map.get(e);return n[0]++,function(l){var r=function(){t.props.revealOrder?(n.push(l),eO(t,e,n)):l()};_?_(r):r()}},eR.prototype.render=function(e){this._next=null,this._map=new Map;var t=function e(t,_){return _=_||[],null==t||\"boolean\"==typeof t||(W(t)?t.some(function(t){e(t,_)}):_.push(t)),_}(e.children);e.revealOrder&&\"b\"===e.revealOrder[0]&&t.reverse();for(var _=t.length;_--;)this._map.set(t[_],this._next=[1,0,this._next]);return e.children},eR.prototype.componentDidUpdate=eR.prototype.componentDidMount=function(){var e=this;this._map.forEach(function(t,_){eO(e,_,t)})};var eL=\"undefined\"!=typeof Symbol&&Symbol.for&&Symbol.for(\"react.element\")||60103;J.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(e){Object.defineProperty(J.prototype,e,{configurable:!0,get:function(){return this[\"UNSAFE_\"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var eD=B.event;function eF(){}function eU(){return this.cancelBubble}function eW(){return this.defaultPrevented}B.event=function(e){return eD&&(e=eD(e)),e.persist=eF,e.isPropagationStopped=eU,e.isDefaultPrevented=eW,e.nativeEvent=e};var eH=B.vnode;function eM(e){for(let t in e)return!1;return!0}function ej(e){return\"undefined\"!=typeof __LoadLepusChunk&&(!!globalThis.lynxWorkletImpl||__LoadLepusChunk(\"worklet-runtime\",{dynamicComponentEntry:e,chunkType:0}))}function eB(e,t){var _,n;return null==(_=(n=globalThis).runWorklet)?void 0:_.call(n,e,t)}function eV(e,t){var _;null==(_=globalThis.lynxWorkletImpl)||_._refImpl.updateWorkletRef(e,t)}function eG(e){var t;null==(t=globalThis.lynxWorkletImpl)||t._eomImpl.setShouldFlush(e)}B.vnode=function(e){e.$$typeof=eL,eH&&eH(e)},(f=T||(T={})).runWorkletCtx=\"Lynx.Worklet.runWorkletCtx\",f.runOnBackground=\"Lynx.Worklet.runOnBackground\",f.FunctionCallRet=\"Lynx.Worklet.FunctionCallRet\",f.releaseBackgroundWorkletCtx=\"Lynx.Worklet.releaseBackgroundWorkletCtx\",f.releaseWorkletRef=\"Lynx.Worklet.releaseWorkletRef\";let e$=!1;function eq(e){var t,_,n;!e&&e$&&(null==(t=globalThis.lynxWorkletImpl)||t._runOnBackgroundDelayImpl.runDelayedBackgroundFunctions(),null==(_=globalThis.lynxWorkletImpl)||_._refImpl.clearFirstScreenWorkletRefMap(),null==(n=globalThis.lynxWorkletImpl)||n._eventDelayImpl.clearDelayedWorklets()),e$=e}(c=P||(P={})).firstScreen=\"rLynxFirstScreen\",c.updateFromRoot=\"updateFromRoot\",c.globalEventFromLepus=\"globalEventFromLepus\",c.jsReady=\"rLynxJSReady\",c.patchUpdate=\"rLynxChange\",c.publishEvent=\"rLynxPublishEvent\",c.updateMTRefInitValue=\"rLynxChangeRefInitValue\",(h=N||(N={}))[h.UPDATE=0]=\"UPDATE\",h[h.RESET=1]=\"RESET\";let eJ=[];function ez(){let e=eJ;eJ=[];for(let t=0;t<e.length;t+=2){let _=e[t];let n=e[t+1];\"_wvid\"in _?eV(_,n):\"_wkltId\"in _&&(_._unmount=eB(_,[{elementRefptr:n}]))}}function eK(e){\"_wvid\"in e?eV(e,null):\"_wkltId\"in e&&(\"function\"==typeof e._unmount?e._unmount():eB(e,[null]))}const eQ={};const eX={};const eY=new WeakMap;const eZ=Promise.resolve();function e0(e,t){e.forEach(e=>{eY.has(e)||(eY.set(e,e.parentNode),Object.defineProperty(e,\"__parent\",{get:()=>eY.get(e),set:t=>{eY.set(e,t)}}))});let _=(e,n,l,r,o,i=!1,s=!1)=>{var u,a,f,c,h,p;let d=eQ[n];let v=eX[n];if(!d||!v)throw Error(\"componentAtIndex called on removed list\");let m=null!=(f=l.__listItemPlatformInfo)?f:{};if((null==(u=l.__extraProps)?void 0:u.isReady)===0){let t;if(\"function\"==typeof __GetAttributeByName&&\"list-container\"===__GetAttributeByName(e,\"custom-list-name\"));else throw Error('Unsupported: `<list-item/>` with `defer={true}` must be used with `<list custom-list-name=\"list-container\"/>`');return __OnLifecycleEvent([P.publishEvent,{handlerName:`${l.__id}:__extraProps:onComponentAtIndex`,data:{}}]),t=new Promise(i=>{Object.defineProperty(l.__extraProps,\"isReady\",{set(t){1===t&&(delete l.__extraProps.isReady,l.__extraProps.isReady=1,eZ.then(()=>{i(_(e,n,l,r,o))}))},get:()=>t})})}if(\"object\"==typeof(p=null==(a=l.__extraProps)?void 0:a.isReady)&&null!==p&&\"function\"==typeof p.then)throw Error(\"componentAtIndex was called on a pending deferred list item\");let y=l.type+(null!=(c=m[\"reuse-identifier\"])?c:\"\");let g=v.get(y);if(l.__elements){let e=l.__elements[0];let t=__GetElementUniqueID(e);if(null==g?void 0:g.has(t))return d.set(t,l),g.delete(t),i?i&&s&&__FlushElementTree(e,{asyncFlush:!0}):__FlushElementTree(e,{triggerLayout:!0,operationID:r,elementID:t,listID:n}),t;{let e=l.takeElements();d.set(t,e)}}if(g&&g.size>0){let[_]=g;let[u,a]=_;g.delete(u),t(a,l),a.unRenderElements(),a.__id?(null==(h=a.__extraProps)?void 0:h.isReady)===1&&__OnLifecycleEvent([P.publishEvent,{handlerName:`${a.__id}:__extraProps:onRecycleComponent`,data:{}}]):a.tearDown();let f=l.__element_root;if(ez(),d.set(u,l),i){if(i&&s){let t={asyncFlush:!0};o&&(t.listReuseNotification={listElement:e,itemKey:m[\"item-key\"]}),__FlushElementTree(f,t)}}else{let t={triggerLayout:!0,operationID:r,elementID:u,listID:n};o&&(t.listReuseNotification={listElement:e,itemKey:m[\"item-key\"]}),__FlushElementTree(f,t)}return u}l.ensureElements();let b=l.__element_root;__AppendElement(e,b);let S=__GetElementUniqueID(b);return ez(),d.set(S,l),i?i&&s&&__FlushElementTree(b,{asyncFlush:!0}):__FlushElementTree(b,{triggerLayout:!0,operationID:r,elementID:S,listID:n}),S};return[function(t,n,l,r,o){let i=e[l];if(!i)throw Error(\"childCtx not found\");let s=_(t,n,i,r,o);return\"number\"==typeof s?s:void 0},function(t,n,l,r,o,i){let s=!1;let u=[];l.forEach((l,a)=>{let f=r[a];let c=e[l];if(!c)throw Error(\"childCtx not found\");let h=_(t,n,c,f,o,!0,i);\"number\"==typeof h||(s=!0),u.push(h)}),s&&Promise.all(u).then(e=>{__FlushElementTree(t,{triggerLayout:!0,operationIDs:r,elementIDs:e,listID:n})}),__FlushElementTree(t,{triggerLayout:!0,operationIDs:r,elementIDs:l.map((e,t)=>\"number\"==typeof u[t]?u[t]:-1),listID:n})}]}function e1(){return(e,t,_)=>{var n,l;let r=eQ[t];let o=eX[t];if(!r||!o)throw Error(\"enqueueComponent called on removed list\");let i=r.get(_);if(!i)return;let s=null!=(n=i.__listItemPlatformInfo)?n:{};let u=i.type+(null!=(l=s[\"reuse-identifier\"])?l:\"\");o.has(u)||o.set(u,new Map),o.get(u).set(_,i)}}const e2={values:{},clear(e){this.values&&delete this.values[e]},clearAttachedLists(){this.values&&Object.values(this.values).map(e=>e.getAttachedListId()).filter(e=>void 0!==e).forEach(e=>this.clear(e))},flush(){this.values&&Object.values(this.values).map(e=>e.flush()).filter(e=>void 0!==e).forEach(e=>this.clear(e))},flushWithId(e){var t;this.values&&(null==(t=this.values[e])?void 0:t.flush())!==void 0&&this.clear(e)},runWithoutUpdates(e){let t=this.values;this.values=null;try{e()}finally{this.values=t}}};function e3(e,t){var _,n;null==(_=e.__worklet_ref_set)||_.forEach(e=>{e&&eK(e)}),null==(n=e.__worklet_ref_set)||n.clear(),t&&e.childNodes.forEach(e=>{e3(e,t)})}function e6(e,t,_,n){let l=0;let r={$$diff:!0,i:{},r:[],m:{}};let o={};for(let t=0;t<e.length;t++){var i,s;let _=e[t];(null!=(s=o[i=_.type])?s:o[i]=new Set).add([_,t])}for(let e=0;e<t.length;e++){let i;let s=t[e];let u=o[s.type];if(u&&u.size>0&&([i]=u,i)&&_(i[0],s)){u.delete(i);let t=i[1];if(n(i[0],s,t,e),t<l){r.m[t]=e;continue}l=t}else r.i[e]=s}for(let e in o)for(let[,t]of o[e])r.r.push(t);return r}function e7(e,t,_){let n;t.__elements=e.__elements,t.__element_root=e.__element_root,(null==_?void 0:_.skipUnRef)||e3(e,!1),(n=null==_?void 0:_.swap)&&(n[e.__id]=t.__id),e2.runWithoutUpdates(()=>{var _;null==(_=t.__values)||_.forEach((_,n)=>{let l=e.__values[n];_!==l&&(t.__values[n]=l,t.setAttribute(n,_))})});let{slot:l}=t.__snapshot_def;if(!l)return;let r=e.childNodes;let o=t.childNodes;l.forEach(([n,l],i)=>{switch(n){case A.Slot:case A.MultiChildren:e7(r[i],o[i],_);break;case A.Children:{let t=e6(r,o,(e,t)=>e.type===t.type,(e,t)=>{e7(e,t,_)});(function(e,t,_,n,l){let r;if(!(!eM(t.i)||!eM(t.m)||t.r.length>0))return e;let o=new Set(t.r);let{i:i,m:s}=t;let u=new Map;let a=0;r=e[0];let f=[];let c=0;let h=0;let p=Object.keys(i).length;for(;r||p>0;){let t=!1;if(r&&o.has(h))n(r);else if(r&&void 0!==s[h])u.set(s[h],r),p++;else{let e=r;u.has(c)?(e=u.get(c),t=!0,l(e,r),p--):void 0!==i[c]&&(e=_(i[c],r),t=!0,p--),f.push(e),c++}r&&!t&&(r=e[++a],h++)}return f})(r,t,(t,_)=>(t.ensureElements(),__InsertElementBefore(e.__elements[l],t.__element_root,null==_?void 0:_.__element_root),t),t=>{__RemoveElement(e.__elements[l],t.__element_root)},(t,_)=>{__RemoveElement(e.__elements[l],t.__element_root),__InsertElementBefore(e.__elements[l],t.__element_root,null==_?void 0:_.__element_root)});break}case A.ListChildren:{let n=[];let i=[];let s=[];let u=__GetElementUniqueID(e.__elements[l]);let a=eQ[u];let f=eX[u];let c=e6(r,o,(e,t)=>e.type===t.type,(e,t,n,l)=>{if(JSON.stringify(e.__listItemPlatformInfo)!==JSON.stringify(t.__listItemPlatformInfo)&&s.push({...t.__listItemPlatformInfo,from:l,to:l,flush:!1,type:t.type}),e.__elements){e7(e,t,_);let n=__GetElementUniqueID(e.__element_root);if(a.has(n)&&a.set(n,t),f.has(e.type)){let _=f.get(e.type);_.has(n)&&_.set(n,t)}}});for(let e of c.r)n.push(e);for(let e in c.i)i.push(Number(e));for(let e in c.m)n.push(Number(e)),i.push(c.m[e]);i.sort((e,t)=>e-t),n.sort((e,t)=>e-t);let h={insertAction:i.map(e=>({position:e,type:o[e].type,...o[e].__listItemPlatformInfo})),removeAction:n,updateAction:s};let p=e.__elements[l];__SetAttribute(p,\"update-list-info\",h);let[d,v]=e0(o,e7);__UpdateListCallbacks(p,d,e1(),v),e2.clear(t.__id)}}})}(p=A||(A={}))[p.Attr=0]=\"Attr\",p[p.Spread=1]=\"Spread\",p[p.Slot=2]=\"Slot\",p[p.Children=3]=\"Children\",p[p.ListChildren=4]=\"ListChildren\",p[p.MultiChildren=5]=\"MultiChildren\",new Map;class e5{flush(){if(!this.list.__elements)return;let e=this.list.__snapshot_def.slot[0][1];let t=this.list.__elements[e];__SetAttribute(t,\"update-list-info\",this.__toAttribute());let[_,n]=e0(this.list.childNodes,e7);return __UpdateListCallbacks(t,_,e1(),n),this.list.__id}getAttachedListId(){if(this.list.__elements)return this.list.__id}onInsertBefore(e,t){if(e.parentNode&&this.removeChild.add(e),t){var _;let n=null!=(_=this.insertBefore.get(t))?_:[];n.push(e),this.insertBefore.set(t,n)}else this.appendChild.push(e)}onRemoveChild(e){this.removeChild.add(e)}onSetAttribute(e,t,_){this.platformInfoUpdate.set(e,t)}__toAttribute(){let{removeChild:e,insertBefore:t,appendChild:_,platformInfoUpdate:n}=this;let l=[];let r=[];let o=[];let i=0;for(let _=0;_<this.oldChildNodes.length;_++,i++){let s=this.oldChildNodes[_];n.has(s)&&o.push({...n.get(s),from:+i,to:+i,flush:!1,type:s.type}),t.has(s)&&t.get(s).forEach(e=>{r.push({position:i,type:e.type,...e.__listItemPlatformInfo}),i++}),e.has(s)&&(l.push(_),e.delete(s),i--)}for(let e=0;e<_.length;e++){let t=_[e];r.push({position:i+e,type:t.type,...t.__listItemPlatformInfo})}if(r.sort((e,t)=>e.position-t.position),l.sort((e,t)=>e-t),\"2.14\"===SystemInfo.lynxSdkVersion||\"2.15\"===SystemInfo.lynxSdkVersion||\"2.16\"===SystemInfo.lynxSdkVersion||\"2.17\"===SystemInfo.lynxSdkVersion||\"2.18\"===SystemInfo.lynxSdkVersion){let e=this.list.__snapshot_def.slot[0][1];\"list-container\"===__GetAttributeByName(this.list.__elements[e],\"custom-list-name\")&&(o.length=0,this.list.childNodes.forEach((e,t)=>{o.push({...e.__listItemPlatformInfo,from:t,to:t,flush:!1,type:e.type})}))}return{insertAction:r,removeAction:l,updateAction:o}}toJSON(){return[this.__toAttribute()]}constructor(e){this.removeChild=new Set,this.insertBefore=new Map,this.appendChild=[],this.platformInfoUpdate=new Map,this.list=e,this.oldChildNodes=e.childNodes}}let e8=0;const e9=[[A.Children,0]];const e4={values:new Map([[\"root\",{create:()=>[e],update:[],slot:e9,isListHolder:!1,cssId:0}],[\"wrapper\",{create:()=>[__CreateWrapperElement(e8)],update:[],slot:e9,isListHolder:!1}],[null,{create:()=>[__CreateRawText(\"\")],update:[e=>{e.__elements&&__SetAttribute(e.__elements[0],\"text\",e.__values[0])}],slot:[],isListHolder:!1}]])};const te={nextId:0,values:new Map,clear(){this.values.clear()}};function tt(e,t){let _=e.childNodes;for(let n of(t(e),_))tt(n,t)}const t_=\"__Card__\";class tn{ensureElements(){let{create:e,slot:t,isListHolder:_,cssId:n,entryName:l}=this.__snapshot_def;let r=e(this);if(this.__elements=r,this.__element_root=r[0],void 0===n?l!==t_&&void 0!==l&&__SetCSSId(this.__elements,0,l):l!==t_&&void 0!==l?__SetCSSId(this.__elements,n,l):__SetCSSId(this.__elements,n),e2.runWithoutUpdates(()=>{let e=this.__values;e&&(this.__values=void 0,this.setAttribute(\"values\",e))}),_)e2.flushWithId(this.__id);else{let e=0;let _=this.__firstChild;for(;_;){_.ensureElements();let[n,l]=t[e];switch(n){case A.Slot:__ReplaceElement(_.__element_root,r[l]),r[l]=_.__element_root,e++;break;case A.MultiChildren:\"wrapper\"===__GetTag(r[l])?__ReplaceElement(_.__element_root,r[l]):__AppendElement(r[l],_.__element_root),e++;break;case A.Children:case A.ListChildren:__AppendElement(r[l],_.__element_root)}_=_.__nextSibling}}}unRenderElements(){let{isListHolder:e}=this.__snapshot_def;if(this.__elements=void 0,this.__element_root=void 0,e);else{let e=this.__firstChild;for(;e;)e.unRenderElements(),e=e.__nextSibling}}takeElements(){let e=Object.create(tn.prototype);return e.__id=this.__id,e.__snapshot_def=this.__snapshot_def,e.__values=this.__values,e.__parent=null,e.__firstChild=null,e.__lastChild=null,e.__nextSibling=null,e.__previousSibling=null,this.childNodes.map(e=>e.takeElements()).forEach(t=>e.__insertBefore(t)),e.__elements=this.__elements,e.__element_root=this.__element_root,this.__elements=void 0,this.__element_root=void 0,e}tearDown(){tt(this,e=>{e.__parent=null,e.__previousSibling=null,e.__nextSibling=null})}get parentNode(){return this.__parent}get nextSibling(){return this.__nextSibling}contains(e){return e.parentNode===this}get childNodes(){let e=[];let t=this.__firstChild;for(;t;)e.push(t),t=t.__nextSibling;return e}__insertBefore(e,t){e.__parent&&e.__parent.__removeChild(e),t?(t.__previousSibling?(t.__previousSibling.__nextSibling=e,e.__previousSibling=t.__previousSibling):(this.__firstChild=e,e.__previousSibling=null),t.__previousSibling=e,e.__nextSibling=t,e.__parent=this):(this.__lastChild?(this.__lastChild.__nextSibling=e,e.__previousSibling=this.__lastChild):(this.__firstChild=e,e.__previousSibling=null),this.__lastChild=e,e.__parent=this,e.__nextSibling=null)}__removeChild(e){if(e.__parent!==this)throw Error(\"The node to be removed is not a child of this node.\");e.__previousSibling?e.__previousSibling.__nextSibling=e.__nextSibling:this.__firstChild=e.__nextSibling,e.__nextSibling?e.__nextSibling.__previousSibling=e.__previousSibling:this.__lastChild=e.__previousSibling,e.__parent=null,e.__previousSibling=null,e.__nextSibling=null}insertBefore(e,t){let _=this.__snapshot_def;if(_.isListHolder){var n,l,r;e2.values&&(null!=(r=(n=e2.values)[l=this.__id])?r:n[l]=new e5(this)).onInsertBefore(e,t),this.__insertBefore(e,t);return}let o=e.__parent===this;this.__insertBefore(e,t);let i=this.__elements;if(!i)return;e.__elements||e.ensureElements();let s=_.slot.length;if(1===s){let[,n]=_.slot[0];let l=i[n];o&&__RemoveElement(l,e.__element_root),t?__InsertElementBefore(l,e.__element_root,t.__element_root):__AppendElement(l,e.__element_root)}else if(s>1){let t=this.__current_slot_index++;let[n,l]=_.slot[t];n===A.Slot?(__ReplaceElement(e.__element_root,i[l]),i[l]=e.__element_root):n===A.MultiChildren&&(\"wrapper\"===__GetTag(i[l])?__ReplaceElement(e.__element_root,i[l]):__AppendElement(i[l],e.__element_root))}}removeChild(e){let t=this.__snapshot_def;if(t.isListHolder){var _,n,l;e2.values&&(null!=(l=(_=e2.values)[n=this.__id])?l:_[n]=new e5(this)).onRemoveChild(e),this.__removeChild(e),tt(e,e=>{te.values.delete(e.__id)}),e.__id=0;return}if(e3(e,!0),this.__elements){let[,_]=t.slot[0];__RemoveElement(this.__elements[_],e.__element_root)}e.__snapshot_def.isListHolder&&function(e){let[,t]=e.__snapshot_def.slot[0];let _=__GetElementUniqueID(e.__elements[t]);delete eQ[_],delete eX[_]}(e),this.__removeChild(e),tt(e,e=>{e.__parent=null,e.__previousSibling=null,e.__nextSibling=null,delete e.__elements,delete e.__element_root,te.values.delete(e.__id)})}setAttribute(e,t){var _;if(\"values\"===e){let e=this.__values;if(this.__values=t,e)for(let _=0;_<t.length;_++)this.callUpdateIfNotDirectOrDeepEqual(_,e[_],t[_]);else for(let e=0;e<t.length;e++)this.callUpdateIfNotDirectOrDeepEqual(e,void 0,t[e]);return}if(\"string\"==typeof e){(null!=(_=this.__extraProps)?_:this.__extraProps={})[e]=t;return}null!=this.__values||(this.__values=[]),this.callUpdateIfNotDirectOrDeepEqual(e,this.__values[e],this.__values[e]=t)}toJSON(){return{id:this.__id,type:this.type,values:this.__values,extraProps:this.__extraProps,children:this.__firstChild?this.childNodes:void 0}}callUpdateIfNotDirectOrDeepEqual(e,t,_){(function(e,t){if(e===t)return!0;try{if(\"object\"==typeof e&&null!==e&&\"object\"==typeof t&&null!==t&&JSON.stringify(e)===JSON.stringify(t))return!0}catch(e){throw e}return!1})(t,_)||this.__snapshot_def.update[e](this,e,t)}constructor(e,t){if(this.__current_slot_index=0,this.__parent=null,this.__firstChild=null,this.__lastChild=null,this.__previousSibling=null,this.__nextSibling=null,this.type=e,this.__snapshot_def=e4.values.get(e),!this.__snapshot_def&&\"div\"!==e)throw Error(\"Snapshot not found: \"+e);null!=t||(t=te.nextId-=1),this.__id=t,te.values.set(t,this)}}function tl(e){if(!lynx.getJSContext)throw Error(\"snapshotPatchApply failed: ctx not found\");lynx.getJSContext().dispatchEvent({type:\"Lynx.Error.CtxNotFound\",data:{id:e}})}function tr(e,_){var n,l;t&&(_||t.needTimestamps)&&(null==(l=lynx.performance)||null==(n=l._markTiming)||n.call(l,t.pipelineID,e))}let to=0;function ti(){l=!0;let e=JSON.stringify(n);__OnLifecycleEvent([P.firstScreen,{root:e,jsReadyEventIdSwap:r}]),r={}}n=new tn(\"root\"),(d=R||(R={}))[d.Begin=0]=\"Begin\",d[d.End=1]=\"End\",d[d.Attr=2]=\"Attr\",d[d.Text=3]=\"Text\";const ts=[];const tu=Array.isArray;const ta=Object.assign;function tf(){this.__d=!0}const tc={};function th(e,t){let _;let n=e.type;return e.__c?(_=e.__c).state=_.__s:_=new n(e.props,t),e.__c=_,_.__v=e,_.props=e.props,_.context=t,_.__d=!0,null==_.state&&(_.state=tc),null==_.__s&&(_.__s=_.state),n.getDerivedStateFromProps&&(_.state=ta({},_.state,n.getDerivedStateFromProps(_.props,_.state))),u&&u(e),_.render(_.props,_.state,t)}function tp(e,t,_){return this.constructor(e,_)}const td=function(e,t){let _=B.__s;B.__s=!0,o=B.__b,i=B._diff2,s=B.diffed,u=B.__r,a=B.unmount;let n=G(q,null);n.__k=[e];let l=[];try{(function e(t,_,n,l,r,f,c){let h;if(null==t||!0===t||!1===t||\"\"===t)return;if(\"object\"!=typeof t){if(\"function\"==typeof t)return;f.push(3,t+\"\");return}if(tu(t)){r.__k=t;for(let o=0;o<t.length;o++){let i=t[o];null!=i&&\"boolean\"!=typeof i&&e(i,_,n,l,r,f,f.length)}return}t.__=r,o&&o(t),i&&i(t,tc);let p=t.type,d=t.props,v=_,m,y,g;if(\"function\"==typeof p){if(p===q)y=d.children;else{if(null!=(m=p.contextType)){let e=_[m.__c];v=e?e.props.value:m.__}if(p.prototype&&\"function\"==typeof p.prototype.render)y=th(t,v),g=t.__c;else{g={__v:t,props:d,context:v,setState:tf,forceUpdate:tf,__d:!0,__h:[]},t.__c=g,g.constructor=p,g.render=tp;let e=0;for(;g.__d&&e++<25;)g.__d=!1,u&&u(t),y=g.render(d,g.state,v);g.__d=!0}null!=g.getChildContext&&(_=ta({},_,g.getChildContext()))}y=null!=y&&y.type===q&&null==y.key?y.props.children:y;try{e(y,_,n,l,t,f,f.length)}catch(r){if(r&&\"object\"==typeof r&&r.then&&g&&g.__c)g.setState({__a:!0}),g.__d&&(y=th(t,_),g=t.__c,f.length=c,e(y,_,n,l,t,f,f.length));else throw r}finally{s&&s(t),t.__=void 0,a&&a(t)}return}for(let e in f.push(0,t),d){let t=d[e];switch(e){case\"children\":h=t;continue;case\"key\":case\"ref\":case\"__self\":case\"__source\":continue}null!=t&&!1!==t&&\"function\"!=typeof t&&f.push(2,e,t)}\"string\"==typeof h||\"number\"==typeof h?f.push(3,h):null!=h&&!1!==h&&!0!==h&&e(h,_,!1,l,t,f,f.length),s&&s(t),t.__=void 0,a&&a(t),f.push(1)})(e,t||tc,!1,void 0,n,l,0)}finally{B.__c&&B.__c(e,ts),B.__s=_,ts.length=0}return l};function tv(){let e;try{e=td(n.__jsx,void 0)}catch(t){lynx.reportError(t),e=[]}finally{}(function(e,t){let _=t;let n=[t];for(let t=0;t<e.length;)switch(e[t]){case R.Begin:{let l=_;(_=e[t+1]).__parent&&(_=new tn(_.type),e[t+1]=_),l.insertBefore(_),n.push(_),t+=2;break}case R.End:_.__k=void 0,n.pop(),_=n[n.length-1],t+=1;break;case R.Attr:{let n=e[t+1];let l=e[t+2];_.setAttribute(n,l),t+=3;break}case R.Text:{let n=e[t+1];let l=new tn(null);l.setAttribute(0,n),_.insertBefore(l),t+=2}}})(e,n)}function tm(e){return`Native${e}Modules`}function ty(e,t,_){if(\"string\"==typeof e){let _=new tn(e);return _.props=t,_.__k=null,_.__=null,_.__b=0,_.__e=null,_.__d=void 0,_.__c=null,_.__i=-1,_.__u=0,_}if(\"function\"==typeof e){let _,n=t;if(\"ref\"in n)for(let e in n={},t)\"ref\"==e||(n[e]=t[e]);if(_=e.defaultProps)for(let e in _)void 0===n[e]&&(n[e]=_[e]);return{type:e,props:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__i:-1,__u:0}}}void 0===globalThis.processEvalResult&&(globalThis.processEvalResult=(e,t)=>null==e?void 0:e(t)),Object.assign(globalThis,{renderPage:function(t){var _;l=!1,r={},lynx.__initData=null!=t?t:{},e=_=__CreatePage(\"0\",0),e8=__GetElementUniqueID(_),n.ensureElements(),tv(),e2.flush(),ez(),ti()},updatePage:function(_,o){var i,s,u;if(null==o?void 0:o.reloadTemplate){let t;return void(i=_,s=o,++to,\"object\"!=typeof i||eM(i)||Object.assign(lynx.__initData,i),te.clear(),e2.clearAttachedLists(),r={},t=n,(n=new tn(\"root\")).__jsx=t.__jsx,tv(),e7(t,n,{skipUnRef:!0}),e2.flush(),ez(),l&&__OnLifecycleEvent([P.firstScreen,{root:JSON.stringify(n)}]),__FlushElementTree(e,s))}if((null==o?void 0:o.resetPageData)&&(lynx.__initData={}),\"object\"==typeof _&&!eM(_)){null!=(u=lynx).__initData||(u.__initData={}),Object.assign(lynx.__initData,_)}let a=null!=o?o:{};if(!l){let e=n;(n=new tn(\"root\")).__jsx=e.__jsx,t=null==o?void 0:o.pipelineOptions,tr(\"updateDiffVdomStart\"),e2.clearAttachedLists(),tv(),e7(e,n,{skipUnRef:!0,swap:r}),e2.flush(),ez(),a.triggerDataUpdated=!0,tr(\"updateDiffVdomEnd\")}__FlushElementTree(e,a)},updateGlobalProps:function(t,_){_?__FlushElementTree(e,_):__FlushElementTree()},getPageData:function(){return null},removeComponents:function(){}}),Object.assign(globalThis,{[P.jsReady]:ti}),Object.assign(globalThis,{[P.patchUpdate]:function({data:n,patchOptions:l}){let r;if(l.reloadVersion<to)return;let o=l.flowIds;o&&lynx.performance.profileStart(\"ReactLynx::patch\",{flowId:o[0],flowIds:o}),t=l.pipelineOptions,tr(\"mtsRenderStart\"),tr(\"parseChangesStart\");let{patchList:i,flushOptions:s={},delayedRunOnMainThreadData:u}=JSON.parse(n);tr(\"parseChangesEnd\"),tr(\"patchChangesStart\"),l.isHydration&&eq(!0);try{for(let{snapshotPatch:e}of i)e2.clearAttachedLists(),e&&function(e){let t=e.length;for(let _=0;_<t;++_)switch(e[_]){case 0:{let t=e[++_];new tn(t,e[++_]);break}case 1:{let t=e[++_];let n=e[++_];let l=e[++_];let r=te.values.get(t);let o=te.values.get(n);let i=te.values.get(l);r&&o?r.insertBefore(o,i):tl(r?n:t);break}case 2:{let t=e[++_];let n=e[++_];let l=te.values.get(t);let r=te.values.get(n);l&&r?l.removeChild(r):tl(l?n:t);break}case 3:{let t=e[++_];let n=e[++_];let l=e[++_];let r=te.values.get(t);r?r.setAttribute(n,l):tl(t);break}case 4:{let t=e[++_];let n=e[++_];let l=te.values.get(t);l?l.setAttribute(\"values\",n):tl(t)}}}(e),e2.flush()}finally{tr(\"patchChangesEnd\"),tr(\"mtsRenderEnd\"),l.isHydration&&eq(!1)}if(ez(),u&&(null!=_?_:_=Number((r=(SystemInfo.lynxSdkVersion||\"1.0\").split(\".\"))[0])>2||2==Number(r[0])&&Number(r[1])>13)){for(let e of(eG(!1),u))try{(function(e,t,_){var n;null==(n=globalThis.lynxWorkletImpl)||n._runRunOnMainThreadTask(e,t,_)})(e.worklet,e.params,e.resolveId)}catch(e){lynx.reportError(e)}eG(!0)}l.pipelineOptions&&(s.pipelineOptions=l.pipelineOptions),__FlushElementTree(e,s),o&&lynx.performance.profileEnd()}}),Object.assign(globalThis,{[P.updateMTRefInitValue]:function({data:e}){var t,_;(t=JSON.parse(e))&&(null==(_=globalThis.lynxWorkletImpl)||_._refImpl.updateWorkletRefInitValueChanges(t))}}),lynx.__initData={},globalThis.SystemInfo=null!=(v=lynx.SystemInfo)?v:{},lynx.reportError=function(e){_ReportError(e instanceof Error?e:Error(JSON.stringify(e)),{errorCode:1101})},lynx.triggerGlobalEventFromLepus=function(e,t){__OnLifecycleEvent([\"globalEventFromLepus\",[e,t]])},void 0===globalThis[tm(\"\")]&&(globalThis[tm(\"\")]=void 0),lynx.registerDataProcessors=function(e){let t=!1;globalThis.processData=(_,n)=>{let l;try{var r,o,i,s,u;l=n?null!=(s=null==e||null==(o=e.dataProcessors)||null==(r=o[n])?void 0:r.call(o,_))?s:_:null!=(u=null==e||null==(i=e.defaultDataProcessor)?void 0:i.call(e,_))?u:_}catch(e){lynx.reportError(e),l={}}return!1===t&&globalThis.__I18N_RESOURCE_TRANSLATION__&&(l={...l,__I18N_RESOURCE_TRANSLATION__:globalThis.__I18N_RESOURCE_TRANSLATION__}),n||(t=!0),l}},lynx.registerDataProcessors(),(m=O||(O={}))[m.COMPOSED=-1]=\"COMPOSED\",m[m.PAN=0]=\"PAN\",m[m.FLING=1]=\"FLING\",m[m.DEFAULT=2]=\"DEFAULT\",m[m.TAP=3]=\"TAP\",m[m.LONGPRESS=4]=\"LONGPRESS\",m[m.ROTATION=5]=\"ROTATION\",m[m.PINCH=6]=\"PINCH\",m[m.NATIVE=7]=\"NATIVE\",A.Slot,A.MultiChildren,A.Children,A.ListChildren,[].slice;let tg=0;class tb{get current(){}set current(e){}toJSON(){return{_wvid:this._wvid}}constructor(e,t){this._initValue=e,this._type=t,this._wvid=--tg}}class tS extends tb{constructor(e){super(e,\"main-thread\")}}let tE=0;globalThis.__setEomShouldFlushElementTree=eG,ej(void 0===L?void 0:L)&®isterWorkletInternal(\"main-thread\",\"a357:6c77e:1\",function(){var e,t,_,n,l,r;let{cb:o}=this._c;globalThis.__eomFlushHoldCount=(null!=(_=globalThis.__eomFlushHoldCount)?_:0)+1,1===globalThis.__eomFlushHoldCount&&(null==(e=(t=globalThis).__setEomShouldFlushElementTree)||e.call(t,!1));try{o()}finally{globalThis.__eomFlushHoldCount=Math.max((null!=(r=globalThis.__eomFlushHoldCount)?r:1)-1,0),0===globalThis.__eomFlushHoldCount&&(null==(n=(l=globalThis).__setEomShouldFlushElementTree)||n.call(l,!0))}});let tk;const tx=(y=\"__snapshot_c7bc9_fe86b_1\",g=function(){let e=e8;let t=__CreateView(e);__SetClasses(t,\"demo-container lunaris-dark\");let _=__CreateView(e);__SetClasses(_,\"box\"),__AppendElement(t,_);let n=__CreateText(e);return __SetClasses(n,\"box-text\"),__SetAttribute(n,\"text\",\"PreCommit\"),__AppendElement(_,n),[t,_,n]},b=[(e,t,_)=>{let n,l;n=(l=e.__values[t])?\"string\"==typeof l?l:`${e.__id}:${t}:`:void 0,e.__values[t]=n,e.__elements&&__AddEvent(e.__elements[1],\"bindEvent\",\"tap\",n)},(e,t,_)=>(function(e,t,_,n,l){var r,o,i,s,u,a,f;if(!e.__elements)return;_&&(null==(r=e.__worklet_ref_set)?void 0:r.has(_))&&(eK(_),null==(o=e.__worklet_ref_set)||o.delete(_));let c=e.__values[t];if(null==c);else if(c._wvid){let t=e.__elements[1];eJ.push(c,t)}else if(c._wkltId){let t=e.__elements[1];i=e$,null==(u=globalThis.lynxWorkletImpl)||null==(s=u._jsFunctionLifecycleManager)||s.addRef(c._execId,c),i&&_&&(null==(a=globalThis.lynxWorkletImpl)||a._hydrateCtx(c,_)),i&&(null==(f=globalThis.lynxWorkletImpl)||f._eventDelayImpl.runDelayedWorklet(c,t)),eJ.push(c,t)}else if(\"__LEPUS__\"===c._type||c._lepusWorkletHash);else throw Error(\"MainThreadRef: main-thread:ref must be of type MainThreadRef or main-thread function.\");c&&(null!=e.__worklet_ref_set||(e.__worklet_ref_set=new Set),e.__worklet_ref_set.add(c)),__SetAttribute(e.__elements[1],\"has-react-ref\",!0)})(e,t,_,0,0),function(e){e.__elements&&__SetInlineStyles(e.__elements[1],e.__values[2])}],S=void 0,E=y,y=L?`${L}:${E}`:E,tk={create:g,update:b,slot:null,cssId:S,entryName:L,refAndSpreadIndexes:null},e4.values.set(y,tk),y);({render:e=>{n.__jsx=e},registerDataProcessors:e=>{lynx.registerDataProcessors(e)}}).render(ty(function(){var e,t,_;let n,l;let r=eg(()=>new tS(null),[]);let[o,i]=(ea=1,function(e,t,_){var n=ey(x++,2);if(n._reducer=e,!n.__c&&(n.__=[ex(void 0,\"\"),function(e){var t=n.__N?n.__N[0]:n.__[0];var _=n._reducer(t,e);t!==_&&(n.__N=[_,n.__[1]],n.__c.setState({}))}],n.__c=C,!C._hasScuFromHooks)){var l=function(e,t,_){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(e){return!!e.__c});if(l.every(function(e){return!e.__N}))return!r||r.call(this,e,t,_);var o=!1;return l.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),(!!o||n.__c.props!==e)&&(!r||r.call(this,e,t,_))};C._hasScuFromHooks=!0;var r=C.shouldComponentUpdate;var o=C.componentWillUpdate;C.componentWillUpdate=function(e,t,_){if(this.__e){var n=r;r=void 0,l(e,t,_),r=n}o&&o.call(this,e,t,_)},C.shouldComponentUpdate=l}return n.__N||n.__}(ex,\"\"));return e={_c:{nodeMTRef:r},_wkltId:\"c7bc:fe86b:1\"},t=[],_=void 0,ea=5,l=!function(e,t){if(void 0===e||void 0===t||e.length!==t.length)return!1;for(let _=0;_<e.length;_++)if(!Object.is(e[_],t[_]))return!1;return!0}((n=eg(function(){return{current:_}},[])).current,t),n.current=t,l&&(1===(tE+=1)&&eG(!1),Promise.resolve().then(()=>{try{eB(e,[])}catch(e){console.error(\"Error occurred in preCommit hook\",e)}finally{0!==tE&&0===(tE-=1)&&eG(!0)}})),ty(tx,{values:[1,r,o]})},{})),ej(void 0===L?void 0:L)&®isterWorkletInternal(\"main-thread\",\"c7bc:fe86b:1\",function(){var e;let{nodeMTRef:t}=this._c;null==(e=t.current)||e.setStyleProperties({\"background-color\":\"#ff5a7a\"})});"},"customSections":{}}
|
package/lynx.config.mjs
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lynx-example/lynx-ui-common",
|
|
3
|
+
"version": "0.0.7",
|
|
4
|
+
"description": "Example app demonstrating common utilities in lynx-ui",
|
|
5
|
+
"homepage": "https://github.com/lynx-family/lynx-ui/tree/main/apps/examples/Common#readme",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/lynx-family/lynx-ui.git",
|
|
9
|
+
"directory": "apps/examples/Common"
|
|
10
|
+
},
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "The Lynx Authors"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"files": [
|
|
17
|
+
"LICENSE",
|
|
18
|
+
"CHANGELOG.md",
|
|
19
|
+
"dist/",
|
|
20
|
+
"**/*.tsx",
|
|
21
|
+
"**/*.ts",
|
|
22
|
+
"**/*.css",
|
|
23
|
+
"lynx.config.mjs"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@lynx-js/react": "0.114.0",
|
|
27
|
+
"@lynx-js/luna-styles": "0.1.0",
|
|
28
|
+
"@lynx-js/lynx-ui": "3.133.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@lynx-js/qrcode-rsbuild-plugin": "0.4.6",
|
|
32
|
+
"@lynx-js/react-rsbuild-plugin": "0.12.4",
|
|
33
|
+
"@lynx-js/rspeedy": "0.12.2",
|
|
34
|
+
"@lynx-js/types": "3.6.0",
|
|
35
|
+
"@types/react": "^18.3.8",
|
|
36
|
+
"rsbuild-plugin-select-entry": "0.0.0"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "rspeedy build",
|
|
43
|
+
"build:dev": "rspeedy build --mode=development",
|
|
44
|
+
"dev": "rspeedy dev",
|
|
45
|
+
"test": "vitest"
|
|
46
|
+
}
|
|
47
|
+
}
|