@zsviczian/kplex-web 0.0.5 → 0.0.6

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/cdn.js CHANGED
@@ -1,773 +1,16 @@
1
- /*! K-Plex Web 0.0.5 | AGPL-3.0-only | Corresponding source: https://github.com/zsviczian/kplex/tree/aeac3bc46752a9d880d9068358f23e05b2cd6f72 */
2
- var y1=Object.create;var zh=Object.defineProperty;var b1=Object.getOwnPropertyDescriptor;var v1=Object.getOwnPropertyNames;var S1=Object.getPrototypeOf,w1=Object.prototype.hasOwnProperty;var x1=(e,t)=>()=>(e&&(t=e(e=0)),t);var Dn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var E1=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of v1(t))!w1.call(e,a)&&a!==n&&zh(e,a,{get:()=>t[a],enumerable:!(i=b1(t,a))||i.enumerable});return e};var j=(e,t,n)=>(n=e!=null?y1(S1(e)):{},E1(t||!e||!e.__esModule?zh(n,"default",{value:e,enumerable:!0}):n,e));var k,M=x1(()=>{k=[["K-Plex",` GNU AFFERO GENERAL PUBLIC LICENSE
3
- Version 3, 19 November 2007
4
-
5
- Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
6
- Everyone is permitted to copy and distribute verbatim copies
7
- of this license document, but changing it is not allowed.
8
-
9
- Preamble
10
-
11
- The GNU Affero General Public License is a free, copyleft license for
12
- software and other kinds of works, specifically designed to ensure
13
- cooperation with the community in the case of network server software.
14
-
15
- The licenses for most software and other practical works are designed
16
- to take away your freedom to share and change the works. By contrast,
17
- our General Public Licenses are intended to guarantee your freedom to
18
- share and change all versions of a program--to make sure it remains free
19
- software for all its users.
20
-
21
- When we speak of free software, we are referring to freedom, not
22
- price. Our General Public Licenses are designed to make sure that you
23
- have the freedom to distribute copies of free software (and charge for
24
- them if you wish), that you receive source code or can get it if you
25
- want it, that you can change the software or use pieces of it in new
26
- free programs, and that you know you can do these things.
27
-
28
- Developers that use our General Public Licenses protect your rights
29
- with two steps: (1) assert copyright on the software, and (2) offer
30
- you this License which gives you legal permission to copy, distribute
31
- and/or modify the software.
32
-
33
- A secondary benefit of defending all users' freedom is that
34
- improvements made in alternate versions of the program, if they
35
- receive widespread use, become available for other developers to
36
- incorporate. Many developers of free software are heartened and
37
- encouraged by the resulting cooperation. However, in the case of
38
- software used on network servers, this result may fail to come about.
39
- The GNU General Public License permits making a modified version and
40
- letting the public access it on a server without ever releasing its
41
- source code to the public.
42
-
43
- The GNU Affero General Public License is designed specifically to
44
- ensure that, in such cases, the modified source code becomes available
45
- to the community. It requires the operator of a network server to
46
- provide the source code of the modified version running there to the
47
- users of that server. Therefore, public use of a modified version, on
48
- a publicly accessible server, gives the public access to the source
49
- code of the modified version.
50
-
51
- An older license, called the Affero General Public License and
52
- published by Affero, was designed to accomplish similar goals. This is
53
- a different license, not a version of the Affero GPL, but Affero has
54
- released a new version of the Affero GPL which permits relicensing under
55
- this license.
56
-
57
- The precise terms and conditions for copying, distribution and
58
- modification follow.
59
-
60
- TERMS AND CONDITIONS
61
-
62
- 0. Definitions.
63
-
64
- "This License" refers to version 3 of the GNU Affero General Public License.
65
-
66
- "Copyright" also means copyright-like laws that apply to other kinds of
67
- works, such as semiconductor masks.
68
-
69
- "The Program" refers to any copyrightable work licensed under this
70
- License. Each licensee is addressed as "you". "Licensees" and
71
- "recipients" may be individuals or organizations.
72
-
73
- To "modify" a work means to copy from or adapt all or part of the work
74
- in a fashion requiring copyright permission, other than the making of an
75
- exact copy. The resulting work is called a "modified version" of the
76
- earlier work or a work "based on" the earlier work.
77
-
78
- A "covered work" means either the unmodified Program or a work based
79
- on the Program.
80
-
81
- To "propagate" a work means to do anything with it that, without
82
- permission, would make you directly or secondarily liable for
83
- infringement under applicable copyright law, except executing it on a
84
- computer or modifying a private copy. Propagation includes copying,
85
- distribution (with or without modification), making available to the
86
- public, and in some countries other activities as well.
87
-
88
- To "convey" a work means any kind of propagation that enables other
89
- parties to make or receive copies. Mere interaction with a user through
90
- a computer network, with no transfer of a copy, is not conveying.
91
-
92
- An interactive user interface displays "Appropriate Legal Notices"
93
- to the extent that it includes a convenient and prominently visible
94
- feature that (1) displays an appropriate copyright notice, and (2)
95
- tells the user that there is no warranty for the work (except to the
96
- extent that warranties are provided), that licensees may convey the
97
- work under this License, and how to view a copy of this License. If
98
- the interface presents a list of user commands or options, such as a
99
- menu, a prominent item in the list meets this criterion.
100
-
101
- 1. Source Code.
102
-
103
- The "source code" for a work means the preferred form of the work
104
- for making modifications to it. "Object code" means any non-source
105
- form of a work.
106
-
107
- A "Standard Interface" means an interface that either is an official
108
- standard defined by a recognized standards body, or, in the case of
109
- interfaces specified for a particular programming language, one that
110
- is widely used among developers working in that language.
111
-
112
- The "System Libraries" of an executable work include anything, other
113
- than the work as a whole, that (a) is included in the normal form of
114
- packaging a Major Component, but which is not part of that Major
115
- Component, and (b) serves only to enable use of the work with that
116
- Major Component, or to implement a Standard Interface for which an
117
- implementation is available to the public in source code form. A
118
- "Major Component", in this context, means a major essential component
119
- (kernel, window system, and so on) of the specific operating system
120
- (if any) on which the executable work runs, or a compiler used to
121
- produce the work, or an object code interpreter used to run it.
122
-
123
- The "Corresponding Source" for a work in object code form means all
124
- the source code needed to generate, install, and (for an executable
125
- work) run the object code and to modify the work, including scripts to
126
- control those activities. However, it does not include the work's
127
- System Libraries, or general-purpose tools or generally available free
128
- programs which are used unmodified in performing those activities but
129
- which are not part of the work. For example, Corresponding Source
130
- includes interface definition files associated with source files for
131
- the work, and the source code for shared libraries and dynamically
132
- linked subprograms that the work is specifically designed to require,
133
- such as by intimate data communication or control flow between those
134
- subprograms and other parts of the work.
135
-
136
- The Corresponding Source need not include anything that users
137
- can regenerate automatically from other parts of the Corresponding
138
- Source.
139
-
140
- The Corresponding Source for a work in source code form is that
141
- same work.
142
-
143
- 2. Basic Permissions.
144
-
145
- All rights granted under this License are granted for the term of
146
- copyright on the Program, and are irrevocable provided the stated
147
- conditions are met. This License explicitly affirms your unlimited
148
- permission to run the unmodified Program. The output from running a
149
- covered work is covered by this License only if the output, given its
150
- content, constitutes a covered work. This License acknowledges your
151
- rights of fair use or other equivalent, as provided by copyright law.
152
-
153
- You may make, run and propagate covered works that you do not
154
- convey, without conditions so long as your license otherwise remains
155
- in force. You may convey covered works to others for the sole purpose
156
- of having them make modifications exclusively for you, or provide you
157
- with facilities for running those works, provided that you comply with
158
- the terms of this License in conveying all material for which you do
159
- not control copyright. Those thus making or running the covered works
160
- for you must do so exclusively on your behalf, under your direction
161
- and control, on terms that prohibit them from making any copies of
162
- your copyrighted material outside their relationship with you.
163
-
164
- Conveying under any other circumstances is permitted solely under
165
- the conditions stated below. Sublicensing is not allowed; section 10
166
- makes it unnecessary.
167
-
168
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
169
-
170
- No covered work shall be deemed part of an effective technological
171
- measure under any applicable law fulfilling obligations under article
172
- 11 of the WIPO copyright treaty adopted on 20 December 1996, or
173
- similar laws prohibiting or restricting circumvention of such
174
- measures.
175
-
176
- When you convey a covered work, you waive any legal power to forbid
177
- circumvention of technological measures to the extent such circumvention
178
- is effected by exercising rights under this License with respect to
179
- the covered work, and you disclaim any intention to limit operation or
180
- modification of the work as a means of enforcing, against the work's
181
- users, your or third parties' legal rights to forbid circumvention of
182
- technological measures.
183
-
184
- 4. Conveying Verbatim Copies.
185
-
186
- You may convey verbatim copies of the Program's source code as you
187
- receive it, in any medium, provided that you conspicuously and
188
- appropriately publish on each copy an appropriate copyright notice;
189
- keep intact all notices stating that this License and any
190
- non-permissive terms added in accord with section 7 apply to the code;
191
- keep intact all notices of the absence of any warranty; and give all
192
- recipients a copy of this License along with the Program.
193
-
194
- You may charge any price or no price for each copy that you convey,
195
- and you may offer support or warranty protection for a fee.
196
-
197
- 5. Conveying Modified Source Versions.
198
-
199
- You may convey a work based on the Program, or the modifications to
200
- produce it from the Program, in the form of source code under the
201
- terms of section 4, provided that you also meet all of these conditions:
202
-
203
- a) The work must carry prominent notices stating that you modified
204
- it, and giving a relevant date.
205
-
206
- b) The work must carry prominent notices stating that it is
207
- released under this License and any conditions added under section
208
- 7. This requirement modifies the requirement in section 4 to
209
- "keep intact all notices".
210
-
211
- c) You must license the entire work, as a whole, under this
212
- License to anyone who comes into possession of a copy. This
213
- License will therefore apply, along with any applicable section 7
214
- additional terms, to the whole of the work, and all its parts,
215
- regardless of how they are packaged. This License gives no
216
- permission to license the work in any other way, but it does not
217
- invalidate such permission if you have separately received it.
218
-
219
- d) If the work has interactive user interfaces, each must display
220
- Appropriate Legal Notices; however, if the Program has interactive
221
- interfaces that do not display Appropriate Legal Notices, your
222
- work need not make them do so.
223
-
224
- A compilation of a covered work with other separate and independent
225
- works, which are not by their nature extensions of the covered work,
226
- and which are not combined with it such as to form a larger program,
227
- in or on a volume of a storage or distribution medium, is called an
228
- "aggregate" if the compilation and its resulting copyright are not
229
- used to limit the access or legal rights of the compilation's users
230
- beyond what the individual works permit. Inclusion of a covered work
231
- in an aggregate does not cause this License to apply to the other
232
- parts of the aggregate.
233
-
234
- 6. Conveying Non-Source Forms.
235
-
236
- You may convey a covered work in object code form under the terms
237
- of sections 4 and 5, provided that you also convey the
238
- machine-readable Corresponding Source under the terms of this License,
239
- in one of these ways:
240
-
241
- a) Convey the object code in, or embodied in, a physical product
242
- (including a physical distribution medium), accompanied by the
243
- Corresponding Source fixed on a durable physical medium
244
- customarily used for software interchange.
245
-
246
- b) Convey the object code in, or embodied in, a physical product
247
- (including a physical distribution medium), accompanied by a
248
- written offer, valid for at least three years and valid for as
249
- long as you offer spare parts or customer support for that product
250
- model, to give anyone who possesses the object code either (1) a
251
- copy of the Corresponding Source for all the software in the
252
- product that is covered by this License, on a durable physical
253
- medium customarily used for software interchange, for a price no
254
- more than your reasonable cost of physically performing this
255
- conveying of source, or (2) access to copy the
256
- Corresponding Source from a network server at no charge.
257
-
258
- c) Convey individual copies of the object code with a copy of the
259
- written offer to provide the Corresponding Source. This
260
- alternative is allowed only occasionally and noncommercially, and
261
- only if you received the object code with such an offer, in accord
262
- with subsection 6b.
263
-
264
- d) Convey the object code by offering access from a designated
265
- place (gratis or for a charge), and offer equivalent access to the
266
- Corresponding Source in the same way through the same place at no
267
- further charge. You need not require recipients to copy the
268
- Corresponding Source along with the object code. If the place to
269
- copy the object code is a network server, the Corresponding Source
270
- may be on a different server (operated by you or a third party)
271
- that supports equivalent copying facilities, provided you maintain
272
- clear directions next to the object code saying where to find the
273
- Corresponding Source. Regardless of what server hosts the
274
- Corresponding Source, you remain obligated to ensure that it is
275
- available for as long as needed to satisfy these requirements.
276
-
277
- e) Convey the object code using peer-to-peer transmission, provided
278
- you inform other peers where the object code and Corresponding
279
- Source of the work are being offered to the general public at no
280
- charge under subsection 6d.
281
-
282
- A separable portion of the object code, whose source code is excluded
283
- from the Corresponding Source as a System Library, need not be
284
- included in conveying the object code work.
285
-
286
- A "User Product" is either (1) a "consumer product", which means any
287
- tangible personal property which is normally used for personal, family,
288
- or household purposes, or (2) anything designed or sold for incorporation
289
- into a dwelling. In determining whether a product is a consumer product,
290
- doubtful cases shall be resolved in favor of coverage. For a particular
291
- product received by a particular user, "normally used" refers to a
292
- typical or common use of that class of product, regardless of the status
293
- of the particular user or of the way in which the particular user
294
- actually uses, or expects or is expected to use, the product. A product
295
- is a consumer product regardless of whether the product has substantial
296
- commercial, industrial or non-consumer uses, unless such uses represent
297
- the only significant mode of use of the product.
298
-
299
- "Installation Information" for a User Product means any methods,
300
- procedures, authorization keys, or other information required to install
301
- and execute modified versions of a covered work in that User Product from
302
- a modified version of its Corresponding Source. The information must
303
- suffice to ensure that the continued functioning of the modified object
304
- code is in no case prevented or interfered with solely because
305
- modification has been made.
306
-
307
- If you convey an object code work under this section in, or with, or
308
- specifically for use in, a User Product, and the conveying occurs as
309
- part of a transaction in which the right of possession and use of the
310
- User Product is transferred to the recipient in perpetuity or for a
311
- fixed term (regardless of how the transaction is characterized), the
312
- Corresponding Source conveyed under this section must be accompanied
313
- by the Installation Information. But this requirement does not apply
314
- if neither you nor any third party retains the ability to install
315
- modified object code on the User Product (for example, the work has
316
- been installed in ROM).
317
-
318
- The requirement to provide Installation Information does not include a
319
- requirement to continue to provide support service, warranty, or updates
320
- for a work that has been modified or installed by the recipient, or for
321
- the User Product in which it has been modified or installed. Access to a
322
- network may be denied when the modification itself materially and
323
- adversely affects the operation of the network or violates the rules and
324
- protocols for communication across the network.
325
-
326
- Corresponding Source conveyed, and Installation Information provided,
327
- in accord with this section must be in a format that is publicly
328
- documented (and with an implementation available to the public in
329
- source code form), and must require no special password or key for
330
- unpacking, reading or copying.
331
-
332
- 7. Additional Terms.
333
-
334
- "Additional permissions" are terms that supplement the terms of this
335
- License by making exceptions from one or more of its conditions.
336
- Additional permissions that are applicable to the entire Program shall
337
- be treated as though they were included in this License, to the extent
338
- that they are valid under applicable law. If additional permissions
339
- apply only to part of the Program, that part may be used separately
340
- under those permissions, but the entire Program remains governed by
341
- this License without regard to the additional permissions.
342
-
343
- When you convey a copy of a covered work, you may at your option
344
- remove any additional permissions from that copy, or from any part of
345
- it. (Additional permissions may be written to require their own
346
- removal in certain cases when you modify the work.) You may place
347
- additional permissions on material, added by you to a covered work,
348
- for which you have or can give appropriate copyright permission.
349
-
350
- Notwithstanding any other provision of this License, for material you
351
- add to a covered work, you may (if authorized by the copyright holders of
352
- that material) supplement the terms of this License with terms:
353
-
354
- a) Disclaiming warranty or limiting liability differently from the
355
- terms of sections 15 and 16 of this License; or
356
-
357
- b) Requiring preservation of specified reasonable legal notices or
358
- author attributions in that material or in the Appropriate Legal
359
- Notices displayed by works containing it; or
360
-
361
- c) Prohibiting misrepresentation of the origin of that material, or
362
- requiring that modified versions of such material be marked in
363
- reasonable ways as different from the original version; or
364
-
365
- d) Limiting the use for publicity purposes of names of licensors or
366
- authors of the material; or
367
-
368
- e) Declining to grant rights under trademark law for use of some
369
- trade names, trademarks, or service marks; or
370
-
371
- f) Requiring indemnification of licensors and authors of that
372
- material by anyone who conveys the material (or modified versions of
373
- it) with contractual assumptions of liability to the recipient, for
374
- any liability that these contractual assumptions directly impose on
375
- those licensors and authors.
376
-
377
- All other non-permissive additional terms are considered "further
378
- restrictions" within the meaning of section 10. If the Program as you
379
- received it, or any part of it, contains a notice stating that it is
380
- governed by this License along with a term that is a further
381
- restriction, you may remove that term. If a license document contains
382
- a further restriction but permits relicensing or conveying under this
383
- License, you may add to a covered work material governed by the terms
384
- of that license document, provided that the further restriction does
385
- not survive such relicensing or conveying.
386
-
387
- If you add terms to a covered work in accord with this section, you
388
- must place, in the relevant source files, a statement of the
389
- additional terms that apply to those files, or a notice indicating
390
- where to find the applicable terms.
391
-
392
- Additional terms, permissive or non-permissive, may be stated in the
393
- form of a separately written license, or stated as exceptions;
394
- the above requirements apply either way.
395
-
396
- 8. Termination.
397
-
398
- You may not propagate or modify a covered work except as expressly
399
- provided under this License. Any attempt otherwise to propagate or
400
- modify it is void, and will automatically terminate your rights under
401
- this License (including any patent licenses granted under the third
402
- paragraph of section 11).
403
-
404
- However, if you cease all violation of this License, then your
405
- license from a particular copyright holder is reinstated (a)
406
- provisionally, unless and until the copyright holder explicitly and
407
- finally terminates your license, and (b) permanently, if the copyright
408
- holder fails to notify you of the violation by some reasonable means
409
- prior to 60 days after the cessation.
410
-
411
- Moreover, your license from a particular copyright holder is
412
- reinstated permanently if the copyright holder notifies you of the
413
- violation by some reasonable means, this is the first time you have
414
- received notice of violation of this License (for any work) from that
415
- copyright holder, and you cure the violation prior to 30 days after
416
- your receipt of the notice.
417
-
418
- Termination of your rights under this section does not terminate the
419
- licenses of parties who have received copies or rights from you under
420
- this License. If your rights have been terminated and not permanently
421
- reinstated, you do not qualify to receive new licenses for the same
422
- material under section 10.
423
-
424
- 9. Acceptance Not Required for Having Copies.
425
-
426
- You are not required to accept this License in order to receive or
427
- run a copy of the Program. Ancillary propagation of a covered work
428
- occurring solely as a consequence of using peer-to-peer transmission
429
- to receive a copy likewise does not require acceptance. However,
430
- nothing other than this License grants you permission to propagate or
431
- modify any covered work. These actions infringe copyright if you do
432
- not accept this License. Therefore, by modifying or propagating a
433
- covered work, you indicate your acceptance of this License to do so.
434
-
435
- 10. Automatic Licensing of Downstream Recipients.
436
-
437
- Each time you convey a covered work, the recipient automatically
438
- receives a license from the original licensors, to run, modify and
439
- propagate that work, subject to this License. You are not responsible
440
- for enforcing compliance by third parties with this License.
441
-
442
- An "entity transaction" is a transaction transferring control of an
443
- organization, or substantially all assets of one, or subdividing an
444
- organization, or merging organizations. If propagation of a covered
445
- work results from an entity transaction, each party to that
446
- transaction who receives a copy of the work also receives whatever
447
- licenses to the work the party's predecessor in interest had or could
448
- give under the previous paragraph, plus a right to possession of the
449
- Corresponding Source of the work from the predecessor in interest, if
450
- the predecessor has it or can get it with reasonable efforts.
451
-
452
- You may not impose any further restrictions on the exercise of the
453
- rights granted or affirmed under this License. For example, you may
454
- not impose a license fee, royalty, or other charge for exercise of
455
- rights granted under this License, and you may not initiate litigation
456
- (including a cross-claim or counterclaim in a lawsuit) alleging that
457
- any patent claim is infringed by making, using, selling, offering for
458
- sale, or importing the Program or any portion of it.
459
-
460
- 11. Patents.
461
-
462
- A "contributor" is a copyright holder who authorizes use under this
463
- License of the Program or a work on which the Program is based. The
464
- work thus licensed is called the contributor's "contributor version".
465
-
466
- A contributor's "essential patent claims" are all patent claims
467
- owned or controlled by the contributor, whether already acquired or
468
- hereafter acquired, that would be infringed by some manner, permitted
469
- by this License, of making, using, or selling its contributor version,
470
- but do not include claims that would be infringed only as a
471
- consequence of further modification of the contributor version. For
472
- purposes of this definition, "control" includes the right to grant
473
- patent sublicenses in a manner consistent with the requirements of
474
- this License.
475
-
476
- Each contributor grants you a non-exclusive, worldwide, royalty-free
477
- patent license under the contributor's essential patent claims, to
478
- make, use, sell, offer for sale, import and otherwise run, modify and
479
- propagate the contents of its contributor version.
480
-
481
- In the following three paragraphs, a "patent license" is any express
482
- agreement or commitment, however denominated, not to enforce a patent
483
- (such as an express permission to practice a patent or covenant not to
484
- sue for patent infringement). To "grant" such a patent license to a
485
- party means to make such an agreement or commitment not to enforce a
486
- patent against the party.
487
-
488
- If you convey a covered work, knowingly relying on a patent license,
489
- and the Corresponding Source of the work is not available for anyone
490
- to copy, free of charge and under the terms of this License, through a
491
- publicly available network server or other readily accessible means,
492
- then you must either (1) cause the Corresponding Source to be so
493
- available, or (2) arrange to deprive yourself of the benefit of the
494
- patent license for this particular work, or (3) arrange, in a manner
495
- consistent with the requirements of this License, to extend the patent
496
- license to downstream recipients. "Knowingly relying" means you have
497
- actual knowledge that, but for the patent license, your conveying the
498
- covered work in a country, or your recipient's use of the covered work
499
- in a country, would infringe one or more identifiable patents in that
500
- country that you have reason to believe are valid.
501
-
502
- If, pursuant to or in connection with a single transaction or
503
- arrangement, you convey, or propagate by procuring conveyance of, a
504
- covered work, and grant a patent license to some of the parties
505
- receiving the covered work authorizing them to use, propagate, modify
506
- or convey a specific copy of the covered work, then the patent license
507
- you grant is automatically extended to all recipients of the covered
508
- work and works based on it.
509
-
510
- A patent license is "discriminatory" if it does not include within
511
- the scope of its coverage, prohibits the exercise of, or is
512
- conditioned on the non-exercise of one or more of the rights that are
513
- specifically granted under this License. You may not convey a covered
514
- work if you are a party to an arrangement with a third party that is
515
- in the business of distributing software, under which you make payment
516
- to the third party based on the extent of your activity of conveying
517
- the work, and under which the third party grants, to any of the
518
- parties who would receive the covered work from you, a discriminatory
519
- patent license (a) in connection with copies of the covered work
520
- conveyed by you (or copies made from those copies), or (b) primarily
521
- for and in connection with specific products or compilations that
522
- contain the covered work, unless you entered into that arrangement,
523
- or that patent license was granted, prior to 28 March 2007.
524
-
525
- Nothing in this License shall be construed as excluding or limiting
526
- any implied license or other defenses to infringement that may
527
- otherwise be available to you under applicable patent law.
528
-
529
- 12. No Surrender of Others' Freedom.
530
-
531
- If conditions are imposed on you (whether by court order, agreement or
532
- otherwise) that contradict the conditions of this License, they do not
533
- excuse you from the conditions of this License. If you cannot convey a
534
- covered work so as to satisfy simultaneously your obligations under this
535
- License and any other pertinent obligations, then as a consequence you may
536
- not convey it at all. For example, if you agree to terms that obligate you
537
- to collect a royalty for further conveying from those to whom you convey
538
- the Program, the only way you could satisfy both those terms and this
539
- License would be to refrain entirely from conveying the Program.
540
-
541
- 13. Remote Network Interaction; Use with the GNU General Public License.
542
-
543
- Notwithstanding any other provision of this License, if you modify the
544
- Program, your modified version must prominently offer all users
545
- interacting with it remotely through a computer network (if your version
546
- supports such interaction) an opportunity to receive the Corresponding
547
- Source of your version by providing access to the Corresponding Source
548
- from a network server at no charge, through some standard or customary
549
- means of facilitating copying of software. This Corresponding Source
550
- shall include the Corresponding Source for any work covered by version 3
551
- of the GNU General Public License that is incorporated pursuant to the
552
- following paragraph.
553
-
554
- Notwithstanding any other provision of this License, you have
555
- permission to link or combine any covered work with a work licensed
556
- under version 3 of the GNU General Public License into a single
557
- combined work, and to convey the resulting work. The terms of this
558
- License will continue to apply to the part which is the covered work,
559
- but the work with which it is combined will remain governed by version
560
- 3 of the GNU General Public License.
561
-
562
- 14. Revised Versions of this License.
563
-
564
- The Free Software Foundation may publish revised and/or new versions of
565
- the GNU Affero General Public License from time to time. Such new versions
566
- will be similar in spirit to the present version, but may differ in detail to
567
- address new problems or concerns.
568
-
569
- Each version is given a distinguishing version number. If the
570
- Program specifies that a certain numbered version of the GNU Affero General
571
- Public License "or any later version" applies to it, you have the
572
- option of following the terms and conditions either of that numbered
573
- version or of any later version published by the Free Software
574
- Foundation. If the Program does not specify a version number of the
575
- GNU Affero General Public License, you may choose any version ever published
576
- by the Free Software Foundation.
577
-
578
- If the Program specifies that a proxy can decide which future
579
- versions of the GNU Affero General Public License can be used, that proxy's
580
- public statement of acceptance of a version permanently authorizes you
581
- to choose that version for the Program.
582
-
583
- Later license versions may give you additional or different
584
- permissions. However, no additional obligations are imposed on any
585
- author or copyright holder as a result of your choosing to follow a
586
- later version.
587
-
588
- 15. Disclaimer of Warranty.
589
-
590
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
591
- APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
592
- HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
593
- OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
594
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
595
- PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
596
- IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
597
- ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
598
-
599
- 16. Limitation of Liability.
600
-
601
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
602
- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
603
- THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
604
- GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
605
- USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
606
- DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
607
- PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
608
- EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
609
- SUCH DAMAGES.
610
-
611
- 17. Interpretation of Sections 15 and 16.
612
-
613
- If the disclaimer of warranty and limitation of liability provided
614
- above cannot be given local legal effect according to their terms,
615
- reviewing courts shall apply local law that most closely approximates
616
- an absolute waiver of all civil liability in connection with the
617
- Program, unless a warranty or assumption of liability accompanies a
618
- copy of the Program in return for a fee.
619
-
620
- END OF TERMS AND CONDITIONS
621
-
622
- How to Apply These Terms to Your New Programs
623
-
624
- If you develop a new program, and you want it to be of the greatest
625
- possible use to the public, the best way to achieve this is to make it
626
- free software which everyone can redistribute and change under these terms.
627
-
628
- To do so, attach the following notices to the program. It is safest
629
- to attach them to the start of each source file to most effectively
630
- state the exclusion of warranty; and each file should have at least
631
- the "copyright" line and a pointer to where the full notice is found.
632
-
633
- <one line to give the program's name and a brief idea of what it does.>
634
- Copyright (C) <year> <name of author>
635
-
636
- This program is free software: you can redistribute it and/or modify
637
- it under the terms of the GNU Affero General Public License as published
638
- by the Free Software Foundation, either version 3 of the License, or
639
- (at your option) any later version.
640
-
641
- This program is distributed in the hope that it will be useful,
642
- but WITHOUT ANY WARRANTY; without even the implied warranty of
643
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
644
- GNU Affero General Public License for more details.
645
-
646
- You should have received a copy of the GNU Affero General Public License
647
- along with this program. If not, see <https://www.gnu.org/licenses/>.
648
-
649
- Also add information on how to contact you by electronic and paper mail.
650
-
651
- If your software can interact with users remotely through a computer
652
- network, you should also make sure that it provides a way for users to
653
- get its source. For example, if your program is a web application, its
654
- interface could display a "Source" link that leads users to an archive
655
- of the code. There are many ways you could offer source, and different
656
- solutions will be better for different programs; see section 13 for the
657
- specific requirements.
658
-
659
- You should also get your employer (if you work as a programmer) or school,
660
- if any, to sign a "copyright disclaimer" for the program, if necessary.
661
- For more information on this, and how to apply and follow the GNU AGPL, see
662
- <https://www.gnu.org/licenses/>.
663
- `],["React",`MIT License
664
-
665
- Copyright (c) Meta Platforms, Inc. and affiliates.
666
-
667
- Permission is hereby granted, free of charge, to any person obtaining a copy
668
- of this software and associated documentation files (the "Software"), to deal
669
- in the Software without restriction, including without limitation the rights
670
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
671
- copies of the Software, and to permit persons to whom the Software is
672
- furnished to do so, subject to the following conditions:
673
-
674
- The above copyright notice and this permission notice shall be included in all
675
- copies or substantial portions of the Software.
676
-
677
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
678
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
679
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
680
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
681
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
682
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
683
- SOFTWARE.
684
- `],["ReactDOM",`MIT License
685
-
686
- Copyright (c) Meta Platforms, Inc. and affiliates.
687
-
688
- Permission is hereby granted, free of charge, to any person obtaining a copy
689
- of this software and associated documentation files (the "Software"), to deal
690
- in the Software without restriction, including without limitation the rights
691
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
692
- copies of the Software, and to permit persons to whom the Software is
693
- furnished to do so, subject to the following conditions:
694
-
695
- The above copyright notice and this permission notice shall be included in all
696
- copies or substantial portions of the Software.
697
-
698
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
699
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
700
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
701
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
702
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
703
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
704
- SOFTWARE.
705
- `],["Scheduler",`MIT License
706
-
707
- Copyright (c) Meta Platforms, Inc. and affiliates.
708
-
709
- Permission is hereby granted, free of charge, to any person obtaining a copy
710
- of this software and associated documentation files (the "Software"), to deal
711
- in the Software without restriction, including without limitation the rights
712
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
713
- copies of the Software, and to permit persons to whom the Software is
714
- furnished to do so, subject to the following conditions:
715
-
716
- The above copyright notice and this permission notice shall be included in all
717
- copies or substantial portions of the Software.
718
-
719
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
720
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
721
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
722
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
723
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
724
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
725
- SOFTWARE.
726
- `],["Lucide",`ISC License
727
-
728
- Copyright (c) 2026 Lucide Icons and Contributors
729
-
730
- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
731
-
732
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
733
-
734
- Feather icons incorporated in Lucide are distributed under the MIT License.
735
-
736
- Copyright (c) 2013-present Cole Bemis
737
-
738
- Permission is hereby granted, free of charge, to any person obtaining a copy
739
- of this software and associated documentation files (the "Software"), to deal
740
- in the Software without restriction, including without limitation the rights
741
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
742
- copies of the Software, and to permit persons to whom the Software is
743
- furnished to do so, subject to the following conditions:
744
-
745
- The above copyright notice and this permission notice shall be included in all
746
- copies or substantial portions of the Software.
747
-
748
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
749
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
750
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
751
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
752
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
753
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
754
- SOFTWARE.
755
- `],["Source",`K-Plex Web 0.0.5 (pack 0.4.6)
756
- Copyright K-Plex contributors. Distributed under AGPL-3.0-only.
757
- Corresponding source: https://github.com/zsviczian/kplex/tree/aeac3bc46752a9d880d9068358f23e05b2cd6f72
758
- Use the source for the exact release that supplied this runtime. When redistributing a custom build, make its exact corresponding source available.
759
- `]]});var Vh=Dn(Pe=>{"use strict";M();function qs(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,a=e[i];if(0<Rr(a,t))e[i]=t,e[n]=a,n=i;else break e}}function Hn(e){return e.length===0?null:e[0]}function Ar(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,a=e.length,o=a>>>1;i<o;){var l=2*(i+1)-1,r=e[l],u=l+1,s=e[u];if(0>Rr(r,n))u<a&&0>Rr(s,r)?(e[i]=s,e[u]=n,i=u):(e[i]=r,e[l]=n,i=l);else if(u<a&&0>Rr(s,n))e[i]=s,e[u]=n,i=u;else break e}}return t}function Rr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Pe.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Dh=performance,Pe.unstable_now=function(){return Dh.now()}):(Gs=Date,Hh=Gs.now(),Pe.unstable_now=function(){return Gs.now()-Hh});var Dh,Gs,Hh,ni=[],Mi=[],M1=1,cn=null,vt=3,js=!1,ol=!1,ll=!1,Xs=!1,Ph=typeof setTimeout=="function"?setTimeout:null,Uh=typeof clearTimeout=="function"?clearTimeout:null,_h=typeof setImmediate<"u"?setImmediate:null;function Nr(e){for(var t=Hn(Mi);t!==null;){if(t.callback===null)Ar(Mi);else if(t.startTime<=e)Ar(Mi),t.sortIndex=t.expirationTime,qs(ni,t);else break;t=Hn(Mi)}}function Ks(e){if(ll=!1,Nr(e),!ol)if(Hn(ni)!==null)ol=!0,Qa||(Qa=!0,Ka());else{var t=Hn(Mi);t!==null&&Qs(Ks,t.startTime-e)}}var Qa=!1,rl=-1,Ih=5,Bh=-1;function Gh(){return Xs?!0:!(Pe.unstable_now()-Bh<Ih)}function Vs(){if(Xs=!1,Qa){var e=Pe.unstable_now();Bh=e;var t=!0;try{e:{ol=!1,ll&&(ll=!1,Uh(rl),rl=-1),js=!0;var n=vt;try{t:{for(Nr(e),cn=Hn(ni);cn!==null&&!(cn.expirationTime>e&&Gh());){var i=cn.callback;if(typeof i=="function"){cn.callback=null,vt=cn.priorityLevel;var a=i(cn.expirationTime<=e);if(e=Pe.unstable_now(),typeof a=="function"){cn.callback=a,Nr(e),t=!0;break t}cn===Hn(ni)&&Ar(ni),Nr(e)}else Ar(ni);cn=Hn(ni)}if(cn!==null)t=!0;else{var o=Hn(Mi);o!==null&&Qs(Ks,o.startTime-e),t=!1}}break e}finally{cn=null,vt=n,js=!1}t=void 0}}finally{t?Ka():Qa=!1}}}var Ka;typeof _h=="function"?Ka=function(){_h(Vs)}:typeof MessageChannel<"u"?(Ys=new MessageChannel,kh=Ys.port2,Ys.port1.onmessage=Vs,Ka=function(){kh.postMessage(null)}):Ka=function(){Ph(Vs,0)};var Ys,kh;function Qs(e,t){rl=Ph(function(){e(Pe.unstable_now())},t)}Pe.unstable_IdlePriority=5;Pe.unstable_ImmediatePriority=1;Pe.unstable_LowPriority=4;Pe.unstable_NormalPriority=3;Pe.unstable_Profiling=null;Pe.unstable_UserBlockingPriority=2;Pe.unstable_cancelCallback=function(e){e.callback=null};Pe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ih=0<e?Math.floor(1e3/e):5};Pe.unstable_getCurrentPriorityLevel=function(){return vt};Pe.unstable_next=function(e){switch(vt){case 1:case 2:case 3:var t=3;break;default:t=vt}var n=vt;vt=t;try{return e()}finally{vt=n}};Pe.unstable_requestPaint=function(){Xs=!0};Pe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=vt;vt=e;try{return t()}finally{vt=n}};Pe.unstable_scheduleCallback=function(e,t,n){var i=Pe.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=n+a,e={id:M1++,callback:t,priorityLevel:e,startTime:n,expirationTime:a,sortIndex:-1},n>i?(e.sortIndex=n,qs(Mi,e),Hn(ni)===null&&e===Hn(Mi)&&(ll?(Uh(rl),rl=-1):ll=!0,Qs(Ks,n-i))):(e.sortIndex=a,qs(ni,e),ol||js||(ol=!0,Qa||(Qa=!0,Ka()))),e};Pe.unstable_shouldYield=Gh;Pe.unstable_wrapCallback=function(e){var t=vt;return function(){var n=vt;vt=t;try{return e.apply(this,arguments)}finally{vt=n}}}});var qh=Dn((VT,Yh)=>{"use strict";M();Yh.exports=Vh()});var im=Dn(te=>{"use strict";M();var Js=Symbol.for("react.transitional.element"),R1=Symbol.for("react.portal"),N1=Symbol.for("react.fragment"),A1=Symbol.for("react.strict_mode"),C1=Symbol.for("react.profiler"),O1=Symbol.for("react.consumer"),L1=Symbol.for("react.context"),z1=Symbol.for("react.forward_ref"),D1=Symbol.for("react.suspense"),H1=Symbol.for("react.memo"),Zh=Symbol.for("react.lazy"),_1=Symbol.for("react.activity"),k1=Symbol.for("react.view_transition"),jh=Symbol.iterator;function P1(e){return e===null||typeof e!="object"?null:(e=jh&&e[jh]||e["@@iterator"],typeof e=="function"?e:null)}var Fh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jh=Object.assign,Wh={};function Fa(e,t,n){this.props=e,this.context=t,this.refs=Wh,this.updater=n||Fh}Fa.prototype.isReactComponent={};Fa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Fa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $h(){}$h.prototype=Fa.prototype;function Ws(e,t,n){this.props=e,this.context=t,this.refs=Wh,this.updater=n||Fh}var $s=Ws.prototype=new $h;$s.constructor=Ws;Jh($s,Fa.prototype);$s.isPureReactComponent=!0;var Xh=Array.isArray;function Fs(){}var Ce={H:null,A:null,T:null,S:null},em=Object.prototype.hasOwnProperty;function ec(e,t,n){var i=n.ref;return{$$typeof:Js,type:e,key:t,ref:i!==void 0?i:null,props:n}}function U1(e,t){return ec(e.type,t,e.props)}function tc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Js}function I1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Kh=/\/+/g;function Zs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?I1(""+e.key):t.toString(36)}function B1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Fs,Fs):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Za(e,t,n,i,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Js:case R1:l=!0;break;case Zh:return l=e._init,Za(l(e._payload),t,n,i,a)}}if(l)return a=a(e),l=i===""?"."+Zs(e,0):i,Xh(a)?(n="",l!=null&&(n=l.replace(Kh,"$&/")+"/"),Za(a,t,n,"",function(s){return s})):a!=null&&(tc(a)&&(a=U1(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(Kh,"$&/")+"/")+l)),t.push(a)),1;l=0;var r=i===""?".":i+":";if(Xh(e))for(var u=0;u<e.length;u++)i=e[u],o=r+Zs(i,u),l+=Za(i,t,n,o,a);else if(u=P1(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,o=r+Zs(i,u++),l+=Za(i,t,n,o,a);else if(o==="object"){if(typeof e.then=="function")return Za(B1(e),t,n,i,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function Cr(e,t,n){if(e==null)return e;var i=[],a=0;return Za(e,i,"","",function(o){return t.call(n,o,a++)}),i}function G1(e){if(e._status===-1){var t=e._result,n=t();n.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Qh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function tm(e){var t=Ce.T,n={};n.types=t!==null?t.types:null,Ce.T=n;try{var i=e(),a=Ce.S;a!==null&&a(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(Fs,Qh)}catch(o){Qh(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ce.T=t}}function nm(e){var t=Ce.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else tm(nm.bind(null,e))}var V1={map:Cr,forEach:function(e,t,n){Cr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Cr(e,function(){t++}),t},toArray:function(e){return Cr(e,function(t){return t})||[]},only:function(e){if(!tc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Activity=_1;te.Children=V1;te.Component=Fa;te.Fragment=N1;te.Profiler=C1;te.PureComponent=Ws;te.StrictMode=A1;te.Suspense=D1;te.ViewTransition=k1;te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ce;te.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ce.H.useMemoCache(e)}};te.addTransitionType=nm;te.cache=function(e){return function(){return e.apply(null,arguments)}};te.cacheSignal=function(){return null};te.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=Jh({},e.props),a=e.key;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)!em.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(i[o]=t[o]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),r=0;r<o;r++)l[r]=arguments[r+2];i.children=l}return ec(e.type,a,i)};te.createContext=function(e){return e={$$typeof:L1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:O1,_context:e},e};te.createElement=function(e,t,n){var i,a={},o=null;if(t!=null)for(i in t.key!==void 0&&(o=""+t.key),t)em.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(a[i]=t[i]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var r=Array(l),u=0;u<l;u++)r[u]=arguments[u+2];a.children=r}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)a[i]===void 0&&(a[i]=l[i]);return ec(e,o,a)};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:z1,render:e}};te.isValidElement=tc;te.lazy=function(e){return{$$typeof:Zh,_payload:{_status:-1,_result:e},_init:G1}};te.memo=function(e,t){return{$$typeof:H1,type:e,compare:t===void 0?null:t}};te.startTransition=tm;te.unstable_useCacheRefresh=function(){return Ce.H.useCacheRefresh()};te.use=function(e){return Ce.H.use(e)};te.useActionState=function(e,t,n){return Ce.H.useActionState(e,t,n)};te.useCallback=function(e,t){return Ce.H.useCallback(e,t)};te.useContext=function(e){return Ce.H.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e,t){return Ce.H.useDeferredValue(e,t)};te.useEffect=function(e,t){return Ce.H.useEffect(e,t)};te.useEffectEvent=function(e){return Ce.H.useEffectEvent(e)};te.useId=function(){return Ce.H.useId()};te.useImperativeHandle=function(e,t,n){return Ce.H.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return Ce.H.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return Ce.H.useLayoutEffect(e,t)};te.useMemo=function(e,t){return Ce.H.useMemo(e,t)};te.useOptimistic=function(e,t){return Ce.H.useOptimistic(e,t)};te.useReducer=function(e,t,n){return Ce.H.useReducer(e,t,n)};te.useRef=function(e){return Ce.H.useRef(e)};te.useState=function(e){return Ce.H.useState(e)};te.useSyncExternalStore=function(e,t,n){return Ce.H.useSyncExternalStore(e,t,n)};te.useTransition=function(){return Ce.H.useTransition()};te.version="19.3.0"});var $e=Dn((XT,am)=>{"use strict";M();am.exports=im()});var rm=Dn(St=>{"use strict";M();var Y1=$e();function lm(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ri(){}var Ct={d:{f:Ri,r:function(){throw Error(lm(522))},D:Ri,C:Ri,L:Ri,m:Ri,X:Ri,S:Ri,M:Ri},p:0,findDOMNode:null},q1=Symbol.for("react.portal"),j1=Symbol.for("react.recoverable"),om=Symbol.for("react.optimistic_key");function X1(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:q1,key:i==null?null:i===om?om:""+i,children:e,containerInfo:t,implementation:n}}var ul=Y1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Or(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}St.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ct;St.browser=function(e){return{$$typeof:j1,_reason:e}};St.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(lm(299));return X1(e,t,null,n)};St.flushSync=function(e){var t=ul.T,n=Ct.p;try{if(ul.T=null,Ct.p=2,e)return e()}finally{ul.T=t,Ct.p=n,Ct.d.f()}};St.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ct.d.C(e,t))};St.prefetchDNS=function(e){typeof e=="string"&&Ct.d.D(e)};St.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Or(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Ct.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:o}):n==="script"&&Ct.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};St.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Or(t.as,t.crossOrigin);Ct.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&Ct.d.M(e)};St.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Or(n,t.crossOrigin);Ct.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};St.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Or(t.as,t.crossOrigin);Ct.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else Ct.d.m(e)};St.requestFormReset=function(e){Ct.d.r(e)};St.unstable_batchedUpdates=function(e,t){return e(t)};St.useFormState=function(e,t,n){return ul.H.useFormState(e,t,n)};St.useFormStatus=function(){return ul.H.useHostTransitionStatus()};St.version="19.3.0"});var Lr=Dn((FT,sm)=>{"use strict";M();function um(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(um)}catch(e){console.error(e)}}um(),sm.exports=rm()});var Zb=Dn(ds=>{"use strict";M();var nt=qh(),Qp=$e(),K1=Lr();function A(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Zp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zl(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Fp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Jp(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function cm(e){if(Zl(e)!==e)throw Error(A(188))}function Q1(e){var t=e.alternate;if(!t){if(t=Zl(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return cm(a),e;if(o===i)return cm(a),t;o=o.sibling}throw Error(A(188))}if(n.return!==i.return)n=a,i=o;else{for(var l=!1,r=a.child;r;){if(r===n){l=!0,n=a,i=o;break}if(r===i){l=!0,i=a,n=o;break}r=r.sibling}if(!l){for(r=o.child;r;){if(r===n){l=!0,n=o,i=a;break}if(r===i){l=!0,i=o,n=a;break}r=r.sibling}if(!l)throw Error(A(189))}}if(n.alternate!==i)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function Wp(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Wp(e),t!==null)return t;e=e.sibling}return null}function Vt(e,t,n,i,a,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,i,a,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Vt(e.child,t,n,i,a,o))return!0;e=e.sibling}return!1}function za(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function fm(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function $p(e){var t=[null,null],n=za(e);return n===null||eg(t,e,n.child,{foundSelf:!1}),t}function eg(e,t,n,i){for(;n!==null;){if(n===t)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&eg(e,t,n.child,i))return!0;n=n.sibling}return!1}function tt(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(A(559))}}var io=null,Dc=null;function Z1(e,t,n){return e===n?!0:e===t?(io=e,!0):!1}function F1(e,t,n){return e===n?(Dc=e,!1):e===t?(Dc!==null&&(io=e),!0):!1}function dm(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function Hc(e,t,n){for(var i=0,a=e;a;a=n(a))i++;a=0;for(var o=t;o;o=n(o))a++;for(;0<i-a;)e=n(e),i--;for(;0<a-i;)t=n(t),a--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var Ae=Object.assign,J1=Symbol.for("react.element"),zr=Symbol.for("react.transitional.element"),pl=Symbol.for("react.portal"),ao=Symbol.for("react.fragment"),tg=Symbol.for("react.strict_mode"),_c=Symbol.for("react.profiler"),ng=Symbol.for("react.consumer"),Bn=Symbol.for("react.context"),jf=Symbol.for("react.forward_ref"),kc=Symbol.for("react.suspense"),Pc=Symbol.for("react.suspense_list"),Xf=Symbol.for("react.memo"),Oi=Symbol.for("react.lazy");Symbol.for("react.scope");var Uc=Symbol.for("react.activity"),W1=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var $1=Symbol.for("react.memo_cache_sentinel"),Ic=Symbol.for("react.view_transition"),eS=Symbol.for("react.recoverable"),hm=Symbol.iterator;function sl(e){return e===null||typeof e!="object"?null:(e=hm&&e[hm]||e["@@iterator"],typeof e=="function"?e:null)}var tS=Symbol.for("react.client.reference");function Bc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===tS?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ao:return"Fragment";case _c:return"Profiler";case tg:return"StrictMode";case kc:return"Suspense";case Pc:return"SuspenseList";case Uc:return"Activity";case Ic:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case pl:return"Portal";case Bn:return e.displayName||"Context";case ng:return(e._context.displayName||"Context")+".Consumer";case jf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xf:return t=e.displayName||null,t!==null?t:Bc(e.type)||"Memo";case Oi:t=e._payload,e=e._init;try{return Bc(e(t))}catch{}}return null}var gl=Array.isArray,F=Qp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,be=K1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,va={pending:!1,data:null,method:null,action:null},Gc=[],oo=-1;function Kn(e){return{current:e}}function dt(e){0>oo||(e.current=Gc[oo],Gc[oo]=null,oo--)}function ze(e,t){oo++,Gc[oo]=e.current,e.current=t}var qn=Kn(null),Dl=Kn(null),Ii=Kn(null),bu=Kn(null);function vu(e,t){switch(ze(Ii,t),ze(Dl,e),ze(qn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Np(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Np(t),e=Tb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}dt(qn),ze(qn,e)}function Ro(){dt(qn),dt(Dl),dt(Ii)}function Vc(e){var t=e.memoizedState;t!==null&&(ko._currentValue=t.memoizedState,ze(bu,e)),t=qn.current;var n=Tb(t,e.type);t!==n&&(ze(Dl,e),ze(qn,n))}function Su(e){Dl.current===e&&(dt(qn),dt(Dl)),bu.current===e&&(dt(bu),ko._currentValue=va)}var nc,mm;function Ai(e){if(nc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);nc=t&&t[1]||"",mm=-1<n.stack.indexOf(`
1
+ /*! K-Plex Web 0.0.6 | AGPL-3.0-only | Corresponding source: https://github.com/zsviczian/kplex/tree/1b2559404a4fbb0561c2f53a038795a3908ac8b8 */
2
+ var s1=Object.create;var Am=Object.defineProperty;var f1=Object.getOwnPropertyDescriptor;var d1=Object.getOwnPropertyNames;var m1=Object.getPrototypeOf,h1=Object.prototype.hasOwnProperty;var Dn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var p1=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of d1(t))!h1.call(e,l)&&l!==n&&Am(e,l,{get:()=>t[l],enumerable:!(i=f1(t,l))||i.enumerable});return e};var X=(e,t,n)=>(n=e!=null?s1(m1(e)):{},p1(t||!e||!e.__esModule?Am(n,"default",{value:e,enumerable:!0}):n,e));var Vm=Dn(He=>{"use strict";function Bc(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,l=e[i];if(0<wr(l,t))e[i]=t,e[n]=l,n=i;else break e}}function Ln(e){return e.length===0?null:e[0]}function Er(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,l=e.length,a=l>>>1;i<a;){var o=2*(i+1)-1,r=e[o],u=o+1,c=e[u];if(0>wr(r,n))u<l&&0>wr(c,r)?(e[i]=c,e[u]=n,i=u):(e[i]=r,e[o]=n,i=o);else if(u<l&&0>wr(c,n))e[i]=c,e[u]=n,i=u;else break e}}return t}function wr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}He.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(zm=performance,He.unstable_now=function(){return zm.now()}):(Pc=Date,Om=Pc.now(),He.unstable_now=function(){return Pc.now()-Om});var zm,Pc,Om,li=[],Ti=[],g1=1,an=null,gt=3,Gc=!1,Wa=!1,eo=!1,Yc=!1,_m=typeof setTimeout=="function"?setTimeout:null,Hm=typeof clearTimeout=="function"?clearTimeout:null,Dm=typeof setImmediate<"u"?setImmediate:null;function Mr(e){for(var t=Ln(Ti);t!==null;){if(t.callback===null)Er(Ti);else if(t.startTime<=e)Er(Ti),t.sortIndex=t.expirationTime,Bc(li,t);else break;t=Ln(Ti)}}function qc(e){if(eo=!1,Mr(e),!Wa)if(Ln(li)!==null)Wa=!0,Gl||(Gl=!0,Bl());else{var t=Ln(Ti);t!==null&&jc(qc,t.startTime-e)}}var Gl=!1,to=-1,Um=5,Pm=-1;function km(){return Yc?!0:!(He.unstable_now()-Pm<Um)}function kc(){if(Yc=!1,Gl){var e=He.unstable_now();Pm=e;var t=!0;try{e:{Wa=!1,eo&&(eo=!1,Hm(to),to=-1),Gc=!0;var n=gt;try{t:{for(Mr(e),an=Ln(li);an!==null&&!(an.expirationTime>e&&km());){var i=an.callback;if(typeof i=="function"){an.callback=null,gt=an.priorityLevel;var l=i(an.expirationTime<=e);if(e=He.unstable_now(),typeof l=="function"){an.callback=l,Mr(e),t=!0;break t}an===Ln(li)&&Er(li),Mr(e)}else Er(li);an=Ln(li)}if(an!==null)t=!0;else{var a=Ln(Ti);a!==null&&jc(qc,a.startTime-e),t=!1}}break e}finally{an=null,gt=n,Gc=!1}t=void 0}}finally{t?Bl():Gl=!1}}}var Bl;typeof Dm=="function"?Bl=function(){Dm(kc)}:typeof MessageChannel<"u"?(Vc=new MessageChannel,Lm=Vc.port2,Vc.port1.onmessage=kc,Bl=function(){Lm.postMessage(null)}):Bl=function(){_m(kc,0)};var Vc,Lm;function jc(e,t){to=_m(function(){e(He.unstable_now())},t)}He.unstable_IdlePriority=5;He.unstable_ImmediatePriority=1;He.unstable_LowPriority=4;He.unstable_NormalPriority=3;He.unstable_Profiling=null;He.unstable_UserBlockingPriority=2;He.unstable_cancelCallback=function(e){e.callback=null};He.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Um=0<e?Math.floor(1e3/e):5};He.unstable_getCurrentPriorityLevel=function(){return gt};He.unstable_next=function(e){switch(gt){case 1:case 2:case 3:var t=3;break;default:t=gt}var n=gt;gt=t;try{return e()}finally{gt=n}};He.unstable_requestPaint=function(){Yc=!0};He.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=gt;gt=e;try{return t()}finally{gt=n}};He.unstable_scheduleCallback=function(e,t,n){var i=He.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=n+l,e={id:g1++,callback:t,priorityLevel:e,startTime:n,expirationTime:l,sortIndex:-1},n>i?(e.sortIndex=n,Bc(Ti,e),Ln(li)===null&&e===Ln(Ti)&&(eo?(Hm(to),to=-1):eo=!0,jc(qc,n-i))):(e.sortIndex=l,Bc(li,e),Wa||Gc||(Wa=!0,Gl||(Gl=!0,Bl()))),e};He.unstable_shouldYield=km;He.unstable_wrapCallback=function(e){var t=gt;return function(){var n=gt;gt=t;try{return e.apply(this,arguments)}finally{gt=n}}}});var Gm=Dn((AM,Bm)=>{"use strict";Bm.exports=Vm()});var eh=Dn($=>{"use strict";var Qc=Symbol.for("react.transitional.element"),y1=Symbol.for("react.portal"),b1=Symbol.for("react.fragment"),v1=Symbol.for("react.strict_mode"),S1=Symbol.for("react.profiler"),x1=Symbol.for("react.consumer"),w1=Symbol.for("react.context"),M1=Symbol.for("react.forward_ref"),E1=Symbol.for("react.suspense"),T1=Symbol.for("react.memo"),Km=Symbol.for("react.lazy"),N1=Symbol.for("react.activity"),R1=Symbol.for("react.view_transition"),Ym=Symbol.iterator;function C1(e){return e===null||typeof e!="object"?null:(e=Ym&&e[Ym]||e["@@iterator"],typeof e=="function"?e:null)}var Qm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zm=Object.assign,Im={};function ql(e,t,n){this.props=e,this.context=t,this.refs=Im,this.updater=n||Qm}ql.prototype.isReactComponent={};ql.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ql.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jm(){}Jm.prototype=ql.prototype;function Zc(e,t,n){this.props=e,this.context=t,this.refs=Im,this.updater=n||Qm}var Ic=Zc.prototype=new Jm;Ic.constructor=Zc;Zm(Ic,ql.prototype);Ic.isPureReactComponent=!0;var qm=Array.isArray;function Kc(){}var Ce={H:null,A:null,T:null,S:null},Fm=Object.prototype.hasOwnProperty;function Jc(e,t,n){var i=n.ref;return{$$typeof:Qc,type:e,key:t,ref:i!==void 0?i:null,props:n}}function A1(e,t){return Jc(e.type,t,e.props)}function Fc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qc}function z1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jm=/\/+/g;function Xc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?z1(""+e.key):t.toString(36)}function O1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Kc,Kc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Yl(e,t,n,i,l){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Qc:case y1:o=!0;break;case Km:return o=e._init,Yl(o(e._payload),t,n,i,l)}}if(o)return l=l(e),o=i===""?"."+Xc(e,0):i,qm(l)?(n="",o!=null&&(n=o.replace(jm,"$&/")+"/"),Yl(l,t,n,"",function(c){return c})):l!=null&&(Fc(l)&&(l=A1(l,n+(l.key==null||e&&e.key===l.key?"":(""+l.key).replace(jm,"$&/")+"/")+o)),t.push(l)),1;o=0;var r=i===""?".":i+":";if(qm(e))for(var u=0;u<e.length;u++)i=e[u],a=r+Xc(i,u),o+=Yl(i,t,n,a,l);else if(u=C1(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,a=r+Xc(i,u++),o+=Yl(i,t,n,a,l);else if(a==="object"){if(typeof e.then=="function")return Yl(O1(e),t,n,i,l);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function Tr(e,t,n){if(e==null)return e;var i=[],l=0;return Yl(e,i,"","",function(a){return t.call(n,a,l++)}),i}function D1(e){if(e._status===-1){var t=e._result,n=t();n.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Xm=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function $m(e){var t=Ce.T,n={};n.types=t!==null?t.types:null,Ce.T=n;try{var i=e(),l=Ce.S;l!==null&&l(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(Kc,Xm)}catch(a){Xm(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ce.T=t}}function Wm(e){var t=Ce.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else $m(Wm.bind(null,e))}var L1={map:Tr,forEach:function(e,t,n){Tr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Tr(e,function(){t++}),t},toArray:function(e){return Tr(e,function(t){return t})||[]},only:function(e){if(!Fc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$.Activity=N1;$.Children=L1;$.Component=ql;$.Fragment=b1;$.Profiler=S1;$.PureComponent=Zc;$.StrictMode=v1;$.Suspense=E1;$.ViewTransition=R1;$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ce;$.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ce.H.useMemoCache(e)}};$.addTransitionType=Wm;$.cache=function(e){return function(){return e.apply(null,arguments)}};$.cacheSignal=function(){return null};$.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=Zm({},e.props),l=e.key;if(t!=null)for(a in t.key!==void 0&&(l=""+t.key),t)!Fm.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(i[a]=t[a]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var o=Array(a),r=0;r<a;r++)o[r]=arguments[r+2];i.children=o}return Jc(e.type,l,i)};$.createContext=function(e){return e={$$typeof:w1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:x1,_context:e},e};$.createElement=function(e,t,n){var i,l={},a=null;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)Fm.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(l[i]=t[i]);var o=arguments.length-2;if(o===1)l.children=n;else if(1<o){for(var r=Array(o),u=0;u<o;u++)r[u]=arguments[u+2];l.children=r}if(e&&e.defaultProps)for(i in o=e.defaultProps,o)l[i]===void 0&&(l[i]=o[i]);return Jc(e,a,l)};$.createRef=function(){return{current:null}};$.forwardRef=function(e){return{$$typeof:M1,render:e}};$.isValidElement=Fc;$.lazy=function(e){return{$$typeof:Km,_payload:{_status:-1,_result:e},_init:D1}};$.memo=function(e,t){return{$$typeof:T1,type:e,compare:t===void 0?null:t}};$.startTransition=$m;$.unstable_useCacheRefresh=function(){return Ce.H.useCacheRefresh()};$.use=function(e){return Ce.H.use(e)};$.useActionState=function(e,t,n){return Ce.H.useActionState(e,t,n)};$.useCallback=function(e,t){return Ce.H.useCallback(e,t)};$.useContext=function(e){return Ce.H.useContext(e)};$.useDebugValue=function(){};$.useDeferredValue=function(e,t){return Ce.H.useDeferredValue(e,t)};$.useEffect=function(e,t){return Ce.H.useEffect(e,t)};$.useEffectEvent=function(e){return Ce.H.useEffectEvent(e)};$.useId=function(){return Ce.H.useId()};$.useImperativeHandle=function(e,t,n){return Ce.H.useImperativeHandle(e,t,n)};$.useInsertionEffect=function(e,t){return Ce.H.useInsertionEffect(e,t)};$.useLayoutEffect=function(e,t){return Ce.H.useLayoutEffect(e,t)};$.useMemo=function(e,t){return Ce.H.useMemo(e,t)};$.useOptimistic=function(e,t){return Ce.H.useOptimistic(e,t)};$.useReducer=function(e,t,n){return Ce.H.useReducer(e,t,n)};$.useRef=function(e){return Ce.H.useRef(e)};$.useState=function(e){return Ce.H.useState(e)};$.useSyncExternalStore=function(e,t,n){return Ce.H.useSyncExternalStore(e,t,n)};$.useTransition=function(){return Ce.H.useTransition()};$.version="19.3.0"});var nt=Dn((OM,th)=>{"use strict";th.exports=eh()});var lh=Dn(yt=>{"use strict";var _1=nt();function ih(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ni(){}var Nt={d:{f:Ni,r:function(){throw Error(ih(522))},D:Ni,C:Ni,L:Ni,m:Ni,X:Ni,S:Ni,M:Ni},p:0,findDOMNode:null},H1=Symbol.for("react.portal"),U1=Symbol.for("react.recoverable"),nh=Symbol.for("react.optimistic_key");function P1(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:H1,key:i==null?null:i===nh?nh:""+i,children:e,containerInfo:t,implementation:n}}var no=_1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Nr(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Nt;yt.browser=function(e){return{$$typeof:U1,_reason:e}};yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(ih(299));return P1(e,t,null,n)};yt.flushSync=function(e){var t=no.T,n=Nt.p;try{if(no.T=null,Nt.p=2,e)return e()}finally{no.T=t,Nt.p=n,Nt.d.f()}};yt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Nt.d.C(e,t))};yt.prefetchDNS=function(e){typeof e=="string"&&Nt.d.D(e)};yt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Nr(n,t.crossOrigin),l=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Nt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:l,fetchPriority:a}):n==="script"&&Nt.d.X(e,{crossOrigin:i,integrity:l,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};yt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Nr(t.as,t.crossOrigin);Nt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&Nt.d.M(e)};yt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Nr(n,t.crossOrigin);Nt.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};yt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Nr(t.as,t.crossOrigin);Nt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else Nt.d.m(e)};yt.requestFormReset=function(e){Nt.d.r(e)};yt.unstable_batchedUpdates=function(e,t){return e(t)};yt.useFormState=function(e,t,n){return no.H.useFormState(e,t,n)};yt.useFormStatus=function(){return no.H.useHostTransitionStatus()};yt.version="19.3.0"});var Rr=Dn((LM,oh)=>{"use strict";function ah(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ah)}catch(e){console.error(e)}}ah(),oh.exports=lh()});var Kb=Dn(uc=>{"use strict";var Fe=Gm(),Xp=nt(),k1=Rr();function R(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Kp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jo(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Qp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zp(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function rh(e){if(jo(e)!==e)throw Error(R(188))}function V1(e){var t=e.alternate;if(!t){if(t=jo(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,i=t;;){var l=n.return;if(l===null)break;var a=l.alternate;if(a===null){if(i=l.return,i!==null){n=i;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return rh(l),e;if(a===i)return rh(l),t;a=a.sibling}throw Error(R(188))}if(n.return!==i.return)n=l,i=a;else{for(var o=!1,r=l.child;r;){if(r===n){o=!0,n=l,i=a;break}if(r===i){o=!0,i=l,n=a;break}r=r.sibling}if(!o){for(r=a.child;r;){if(r===n){o=!0,n=a,i=l;break}if(r===i){o=!0,i=a,n=l;break}r=r.sibling}if(!o)throw Error(R(189))}}if(n.alternate!==i)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Ip(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Ip(e),t!==null)return t;e=e.sibling}return null}function Vt(e,t,n,i,l,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,i,l,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Vt(e.child,t,n,i,l,a))return!0;e=e.sibling}return!1}function zl(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function uh(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function Jp(e){var t=[null,null],n=zl(e);return n===null||Fp(t,e,n.child,{foundSelf:!1}),t}function Fp(e,t,n,i){for(;n!==null;){if(n===t)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&Fp(e,t,n.child,i))return!0;n=n.sibling}return!1}function Je(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(R(559))}}var Jl=null,As=null;function B1(e,t,n){return e===n?!0:e===t?(Jl=e,!0):!1}function G1(e,t,n){return e===n?(As=e,!1):e===t?(As!==null&&(Jl=e),!0):!1}function ch(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function zs(e,t,n){for(var i=0,l=e;l;l=n(l))i++;l=0;for(var a=t;a;a=n(a))l++;for(;0<i-l;)e=n(e),i--;for(;0<l-i;)t=n(t),l--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var Re=Object.assign,Y1=Symbol.for("react.element"),Cr=Symbol.for("react.transitional.element"),co=Symbol.for("react.portal"),Fl=Symbol.for("react.fragment"),$p=Symbol.for("react.strict_mode"),Os=Symbol.for("react.profiler"),Wp=Symbol.for("react.consumer"),Vn=Symbol.for("react.context"),Gf=Symbol.for("react.forward_ref"),Ds=Symbol.for("react.suspense"),Ls=Symbol.for("react.suspense_list"),Yf=Symbol.for("react.memo"),zi=Symbol.for("react.lazy");Symbol.for("react.scope");var _s=Symbol.for("react.activity"),q1=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var j1=Symbol.for("react.memo_cache_sentinel"),Hs=Symbol.for("react.view_transition"),X1=Symbol.for("react.recoverable"),sh=Symbol.iterator;function io(e){return e===null||typeof e!="object"?null:(e=sh&&e[sh]||e["@@iterator"],typeof e=="function"?e:null)}var K1=Symbol.for("react.client.reference");function Us(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===K1?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fl:return"Fragment";case Os:return"Profiler";case $p:return"StrictMode";case Ds:return"Suspense";case Ls:return"SuspenseList";case _s:return"Activity";case Hs:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case co:return"Portal";case Vn:return e.displayName||"Context";case Wp:return(e._context.displayName||"Context")+".Consumer";case Gf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yf:return t=e.displayName||null,t!==null?t:Us(e.type)||"Memo";case zi:t=e._payload,e=e._init;try{return Us(e(t))}catch{}}return null}var so=Array.isArray,Q=Xp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=k1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,yl={pending:!1,data:null,method:null,action:null},Ps=[],$l=-1;function Kn(e){return{current:e}}function st(e){0>$l||(e.current=Ps[$l],Ps[$l]=null,$l--)}function Oe(e,t){$l++,Ps[$l]=e.current,e.current=t}var qn=Kn(null),Co=Kn(null),Vi=Kn(null),hu=Kn(null);function pu(e,t){switch(Oe(Vi,t),Oe(Co,e),Oe(qn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ep(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ep(t),e=xb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}st(qn),Oe(qn,e)}function ba(){st(qn),st(Co),st(Vi)}function ks(e){var t=e.memoizedState;t!==null&&(Ca._currentValue=t.memoizedState,Oe(hu,e)),t=qn.current;var n=xb(t,e.type);t!==n&&(Oe(Co,e),Oe(qn,n))}function gu(e){Co.current===e&&(st(qn),st(Co)),hu.current===e&&(st(hu),Ca._currentValue=yl)}var $c,fh;function Ci(e){if($c===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$c=t&&t[1]||"",fh=-1<n.stack.indexOf(`
760
3
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
761
- `+nc+e+mm}var ic=!1;function ac(e,t){if(!e||ic)return"";ic=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(S){var c=S}Reflect.construct(e,[],p)}else{try{p.call()}catch(S){c=S}p=!1;try{var m=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),p=!0,new e}finally{p&&(m!==void 0?Object.defineProperty(e.prototype,"props",m):delete e.prototype.props)}}}else{try{throw Error()}catch(S){c=S}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(S){if(S&&c&&typeof S.stack=="string")return[S.stack,c.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),l=o[0],r=o[1];if(l&&r){var u=l.split(`
762
- `),s=r.split(`
763
- `);for(a=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;if(i===u.length||a===s.length)for(i=u.length-1,a=s.length-1;1<=i&&0<=a&&u[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(u[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||u[i]!==s[a]){var f=`
764
- `+u[i].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=i&&0<=a);break}}}finally{ic=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ai(n):""}function nS(e,t){switch(e.tag){case 26:case 27:case 5:return Ai(e.type);case 16:return Ai("Lazy");case 13:return e.child!==t&&t!==null?Ai("Suspense Fallback"):Ai("Suspense");case 19:return Ai("SuspenseList");case 0:case 15:return ac(e.type,!1);case 11:return ac(e.type.render,!1);case 1:return ac(e.type,!0);case 31:return Ai("Activity");case 30:return Ai("ViewTransition");default:return""}}function pm(e){try{var t="",n=null;do t+=nS(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
4
+ `+$c+e+fh}var Wc=!1;function es(e,t){if(!e||Wc)return"";Wc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(S){var s=S}Reflect.construct(e,[],p)}else{try{p.call()}catch(S){s=S}p=!1;try{var h=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),p=!0,new e}finally{p&&(h!==void 0?Object.defineProperty(e.prototype,"props",h):delete e.prototype.props)}}}else{try{throw Error()}catch(S){s=S}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(S){if(S&&s&&typeof S.stack=="string")return[S.stack,s.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=i.DetermineComponentFrameRoot(),o=a[0],r=a[1];if(o&&r){var u=o.split(`
5
+ `),c=r.split(`
6
+ `);for(l=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;l<c.length&&!c[l].includes("DetermineComponentFrameRoot");)l++;if(i===u.length||l===c.length)for(i=u.length-1,l=c.length-1;1<=i&&0<=l&&u[i]!==c[l];)l--;for(;1<=i&&0<=l;i--,l--)if(u[i]!==c[l]){if(i!==1||l!==1)do if(i--,l--,0>l||u[i]!==c[l]){var f=`
7
+ `+u[i].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=i&&0<=l);break}}}finally{Wc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ci(n):""}function Q1(e,t){switch(e.tag){case 26:case 27:case 5:return Ci(e.type);case 16:return Ci("Lazy");case 13:return e.child!==t&&t!==null?Ci("Suspense Fallback"):Ci("Suspense");case 19:return Ci("SuspenseList");case 0:case 15:return es(e.type,!1);case 11:return es(e.type.render,!1);case 1:return es(e.type,!0);case 31:return Ci("Activity");case 30:return Ci("ViewTransition");default:return""}}function dh(e){try{var t="",n=null;do t+=Q1(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
765
8
  Error generating stack: `+i.message+`
766
- `+i.stack}}var Yc=Object.prototype.hasOwnProperty,Kf=nt.unstable_scheduleCallback,oc=nt.unstable_cancelCallback,iS=nt.unstable_shouldYield,aS=nt.unstable_requestPaint,Wt=nt.unstable_now,oS=nt.unstable_getCurrentPriorityLevel,ig=nt.unstable_ImmediatePriority,ag=nt.unstable_UserBlockingPriority,wu=nt.unstable_NormalPriority,lS=nt.unstable_LowPriority,og=nt.unstable_IdlePriority,rS=nt.log,uS=nt.unstable_setDisableYieldValue,Fl=null,$t=null;function Di(e){if(typeof rS=="function"&&uS(e),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(Fl,e)}catch{}}var en=Math.clz32?Math.clz32:fS,sS=Math.log,cS=Math.LN2;function fS(e){return e>>>=0,e===0?32:31-(sS(e)/cS|0)|0}var Dr=256,Hr=262144,_r=4194304;function ma(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ku(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var a=0,o=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var r=i&134217727;return r!==0?(i=r&~o,i!==0?a=ma(i):(l&=r,l!==0?a=ma(l):n||(n=r&~e,n!==0&&(a=ma(n))))):(r=i&~o,r!==0?a=ma(r):l!==0?a=ma(l):n||(n=i&~e,n!==0&&(a=ma(n)))),a===0?0:t!==0&&t!==a&&(t&o)===0&&(o=a&-a,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:a}function Jl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function lg(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-en(n),a=1<<i;t|=e[i],n&=~a}return t}function dS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rg(){var e=_r;return _r<<=1,(_r&62914560)===0&&(_r=4194304),e}function lc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function hS(e,t,n,i,a,o){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=l&~n;0<n;){var f=31-en(n),p=1<<f;r[f]=0,u[f]=-1;var c=s[f];if(c!==null)for(s[f]=null,f=0;f<c.length;f++){var m=c[f];m!==null&&(m.lane&=-536870913)}n&=~p}i!==0&&ug(e,i,0),o!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=o&~(l&~t))}function ug(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-en(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function sg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-en(n),a=1<<i;a&t|e[i]&t&&(e[i]|=t),n&=~a}}function cg(e,t){var n=t&-t;return n=(n&42)!==0?1:Qf(n),(n&(e.suspendedLanes|t))!==0?0:n}function Qf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Zf(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function fg(){var e=be.p;return e!==0?e:(e=window.event,e===void 0?32:Xb(e.type))}function gm(e,t){var n=be.p;try{return be.p=e,t()}finally{be.p=n}}var pi=Math.random().toString(36).slice(2),ct="__reactFiber$"+pi,Yt="__reactProps$"+pi,Io="__reactContainer$"+pi,ym="__reactEvents$"+pi,mS="__reactListeners$"+pi,pS="__reactHandles$"+pi,bm="__reactResources$"+pi,$l="__reactMarker$"+pi,xu="__reactLoad$"+pi;function Qu(e){delete e[ct],delete e[Yt],delete e[mS],delete e[pS]}function ya(e){var t;if(t=e[ct])return t;for(var n=e.parentNode;n;){if(t=n[Io]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_p(e);e!==null;){if(n=e[ct])return n;e=_p(e)}return t}e=n,n=e.parentNode}return null}function Bo(e){if(e=e[ct]||e[Io]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(A(33))}function go(e){var t=e[bm];return t||(t=e[bm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[$l]=!0}function dg(e){e[xu]=void 0}var hg=new Set,mg={};function Da(e,t){No(e,t),No(e+"Capture",t)}function No(e,t){for(mg[e]=t,e=0;e<t.length;e++)hg.add(t[e])}var gS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),vm={},Sm={};function yS(e){return Yc.call(Sm,e)?!0:Yc.call(vm,e)?!1:gS.test(e)?Sm[e]=!0:(vm[e]=!0,!1)}var ge=!1;function wm(){var e=ge;return ge=!1,e}function $r(e,t,n){if(yS(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function kr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function ii(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,i)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bS(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var a=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){n=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qc(e){if(!e._valueTracker){var t=pg(e)?"checked":"value";e._valueTracker=bS(e,t,""+e[t])}}function gg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=pg(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}var vS=/[\n"\\]/g;function pn(e){return e.replace(vS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function jc(e,t,n,i,a,o,l,r){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?l==="number"&&e.value==t?rc(e,Qt(e.value)):rc(e,Qt(t)):n!=null?rc(e,Qt(n)):i!=null&&e.removeAttribute("value"),a==null&&o!=null&&(e.defaultChecked=!!o),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Qt(r):e.removeAttribute("name")}function yg(e,t,n,i,a,o,l,r){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){qc(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}i=i??a,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=r?e.checked:!!i,e.defaultChecked=!!i,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),qc(e)}function rc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function yo(e,t,n,i){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,i&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function bg(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function vg(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(A(92));if(gl(i)){if(1<i.length)throw Error(A(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),qc(e)}function Ao(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var SS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xm(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||SS.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Sg(e,t,n){if(t!=null&&typeof t!="object")throw Error(A(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",ge=!0);for(var a in t)i=t[a],t.hasOwnProperty(a)&&n[a]!==i&&(xm(e,a,i),ge=!0)}else for(var o in t)t.hasOwnProperty(o)&&xm(e,o,t[o])}function Ff(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),xS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function eu(e){return xS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Gn(){}var Xc=null;function Jf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lo=null,bo=null;function Em(e){var t=Bo(e);if(t&&(e=t.stateNode)){var n=e[Yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(jc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+pn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=i[Yt]||null;if(!a)throw Error(A(90));jc(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&gg(i)}break e;case"textarea":bg(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&yo(e,!!n.multiple,t,!1)}}}var uc=!1;function wg(e,t,n){if(uc)return e(t,n);uc=!0;try{var i=e(t);return i}finally{if(uc=!1,(lo!==null||bo!==null)&&(us(),lo&&(t=lo,e=bo,bo=lo=null,Em(t),e)))for(t=0;t<e.length;t++)Em(e[t])}}function Hl(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Yt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var si=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kc=!1;if(si)try{Ja={},Object.defineProperty(Ja,"passive",{get:function(){Kc=!0}}),window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Kc=!1}var Ja,Hi=null,Wf=null,tu=null;function xg(){if(tu)return tu;var e,t=Wf,n=t.length,i,a="value"in Hi?Hi.value:Hi.textContent,o=a.length;for(e=0;e<n&&t[e]===a[e];e++);var l=n-e;for(i=1;i<=l&&t[n-i]===a[o-i];i++);return tu=a.slice(e,1<i?1-i:void 0)}function nu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Pr(){return!0}function Tm(){return!1}function Dt(e){function t(n,i,a,o,l){this._reactName=n,this._targetInst=a,this.type=i,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(o):o[r]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Pr:Tm,this.isPropagationStopped=Tm,this}return Ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Pr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Pr)},persist:function(){},isPersistent:Pr}),t}var ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zu=Dt(ea),er=Ae({},ea,{view:0,detail:0}),ES=Dt(er),sc,cc,cl,Fu=Ae({},er,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$f,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cl&&(cl&&e.type==="mousemove"?(sc=e.screenX-cl.screenX,cc=e.screenY-cl.screenY):cc=sc=0,cl=e),sc)},movementY:function(e){return"movementY"in e?e.movementY:cc}}),Mm=Dt(Fu),TS=Ae({},Fu,{dataTransfer:0}),MS=Dt(TS),RS=Ae({},er,{relatedTarget:0}),fc=Dt(RS),NS=Ae({},ea,{animationName:0,elapsedTime:0,pseudoElement:0}),AS=Dt(NS),CS=Ae({},ea,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OS=Dt(CS),LS=Ae({},ea,{data:0}),Rm=Dt(LS),zS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},DS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},HS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _S(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HS[e])?!!t[e]:!1}function $f(){return _S}var kS=Ae({},er,{key:function(e){if(e.key){var t=zS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?DS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$f,charCode:function(e){return e.type==="keypress"?nu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),PS=Dt(kS),US=Ae({},Fu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nm=Dt(US),IS=Ae({},ea,{submitter:0}),BS=Dt(IS),GS=Ae({},er,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$f}),VS=Dt(GS),YS=Ae({},ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),qS=Dt(YS),jS=Ae({},Fu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),XS=Dt(jS),KS=Ae({},ea,{newState:0,oldState:0,source:0}),QS=Dt(KS),ZS=[9,13,27,32],ed=si&&"CompositionEvent"in window,Sl=null;si&&"documentMode"in document&&(Sl=document.documentMode);var FS=si&&"TextEvent"in window&&!Sl,Eg=si&&(!ed||Sl&&8<Sl&&11>=Sl),Am=" ",Cm=!1;function Tg(e,t){switch(e){case"keyup":return ZS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ro=!1;function JS(e,t){switch(e){case"compositionend":return Mg(t);case"keypress":return t.which!==32?null:(Cm=!0,Am);case"textInput":return e=t.data,e===Am&&Cm?null:e;default:return null}}function WS(e,t){if(ro)return e==="compositionend"||!ed&&Tg(e,t)?(e=xg(),tu=Wf=Hi=null,ro=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Eg&&t.locale!=="ko"?null:t.data;default:return null}}var $S={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Om(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$S[e.type]:t==="textarea"}function Rg(e,t,n,i){lo?bo?bo.push(i):bo=[i]:lo=i,t=qu(t,"onChange"),0<t.length&&(n=new Zu("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var wl=null,_l=null;function ew(e){wb(e,0)}function Ju(e){var t=yl(e);if(gg(t))return e}function Lm(e,t){if(e==="change")return t}var Ng=!1;si&&(si?(Ir="oninput"in document,Ir||(dc=document.createElement("div"),dc.setAttribute("oninput","return;"),Ir=typeof dc.oninput=="function"),Ur=Ir):Ur=!1,Ng=Ur&&(!document.documentMode||9<document.documentMode));var Ur,Ir,dc;function zm(){wl&&(wl.detachEvent("onpropertychange",Ag),_l=wl=null)}function Ag(e){if(e.propertyName==="value"&&Ju(_l)){var t=[];Rg(t,_l,e,Jf(e)),wg(ew,t)}}function tw(e,t,n){e==="focusin"?(zm(),wl=t,_l=n,wl.attachEvent("onpropertychange",Ag)):e==="focusout"&&zm()}function nw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ju(_l)}function iw(e,t){if(e==="click")return Ju(t)}function aw(e,t){if(e==="input"||e==="change")return Ju(t)}function ow(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:ow;function kl(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var a=n[i];if(!Yc.call(t,a)||!nn(e[a],t[a]))return!1}return!0}function Qc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Dm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hm(e,t){var n=Dm(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Dm(n)}}function Cg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Og(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qc(e.document)}return t}function td(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lw=si&&"documentMode"in document&&11>=document.documentMode,uo=null,Zc=null,xl=null,Fc=!1;function _m(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fc||uo==null||uo!==Qc(i)||(i=uo,"selectionStart"in i&&td(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),xl&&kl(xl,i)||(xl=i,i=qu(Zc,"onSelect"),0<i.length&&(t=new Zu("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=uo)))}function da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var so={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionrun:da("Transition","TransitionRun"),transitionstart:da("Transition","TransitionStart"),transitioncancel:da("Transition","TransitionCancel"),transitionend:da("Transition","TransitionEnd")},hc={},Lg={};si&&(Lg=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);function Ha(e){if(hc[e])return hc[e];if(!so[e])return e;var t=so[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lg)return hc[e]=t[n];return e}var zg=Ha("animationend"),Dg=Ha("animationiteration"),Hg=Ha("animationstart"),rw=Ha("transitionrun"),uw=Ha("transitionstart"),sw=Ha("transitioncancel"),_g=Ha("transitionend"),kg=new Map,Jc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Jc.push("scrollEnd");function Rn(e,t){kg.set(e,t),Da(t,[e])}var cw=0;function ci(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Mn.identifierPrefix;var n=cw++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function km(e){if(e==null||typeof e=="string")return e;var t=null,n=Mo;if(n!==null)for(var i=0;i<n.length;i++){var a=e[n[i]];if(a!=null){if(a==="none")return"none";t=t==null?a:t+(" "+a)}}return t??e.default}function gi(e,t){return e=km(e),t=km(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Eu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},dn=[],co=0,nd=0;function Wu(){for(var e=co,t=nd=co=0;t<e;){var n=dn[t];dn[t++]=null;var i=dn[t];dn[t++]=null;var a=dn[t];dn[t++]=null;var o=dn[t];if(dn[t++]=null,i!==null&&a!==null){var l=i.pending;l===null?a.next=a:(a.next=l.next,l.next=a),i.pending=a}o!==0&&Pg(n,a,o)}}function $u(e,t,n,i){dn[co++]=e,dn[co++]=t,dn[co++]=n,dn[co++]=i,nd|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function id(e,t,n,i){return $u(e,t,n,i),Tu(e)}function _a(e,t){return $u(e,null,null,t),Tu(e)}function Pg(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var a=!1,o=e.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(a=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,a&&t!==null&&(a=31-en(n),e=o.hiddenUpdates,i=e[a],i===null?e[a]=[t]:i.push(t),t.lane=n|536870912),o):null}function Tu(e){if(50<zl)throw zl=0,du=null,Error(A(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fo={};function fw(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,n,i){return new fw(e,t,n,i)}function ad(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ri(e,t){var n=e.alternate;return n===null?(n=Bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ug(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function iu(e,t,n,i,a,o){var l=0;if(i=e,typeof i=="function")ad(i)&&(l=1);else if(typeof i=="string")l=Px(e,n,qn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case Uc:return e=Bt(31,n,t,a),e.elementType=Uc,e.lanes=o,e;case ao:return Sa(n.children,a,o,t);case tg:l=8,a|=24;break;case _c:return e=Bt(12,n,t,a|2),e.elementType=_c,e.lanes=o,e;case kc:return e=Bt(13,n,t,a),e.elementType=kc,e.lanes=o,e;case Pc:return e=Bt(19,n,t,a),e.elementType=Pc,e.lanes=o,e;case W1:case Ic:return e=a|32,e=Bt(30,n,t,e),e.elementType=Ic,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Bn:l=10;break e;case ng:l=9;break e;case jf:l=11;break e;case Xf:l=14;break e;case Oi:l=16,i=null;break e}l=29,n=Error(A(130,e===null?"null":typeof e,"")),i=null}return t=Bt(l,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function Sa(e,t,n,i){return e=Bt(7,e,i,t),e.lanes=n,e}function mc(e,t,n){return e=Bt(6,e,null,t),e.lanes=n,e}function Ig(e){var t=Bt(18,null,null,0);return t.stateNode=e,t}function pc(e,t,n){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pm=new WeakMap;function gn(e,t){if(typeof e=="object"&&e!==null){var n=Pm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:pm(t)},Pm.set(e,t),t)}return{value:e,source:t,stack:pm(t)}}var ho=[],mo=0,Mu=null,Pl=0,hn=[],mn=0,Zi=null,Vn=1,Yn="";function oi(e,t){ho[mo++]=Pl,ho[mo++]=Mu,Mu=e,Pl=t}function Bg(e,t,n){hn[mn++]=Vn,hn[mn++]=Yn,hn[mn++]=Zi,Zi=e;var i=Vn;e=Yn;var a=32-en(i)-1;i&=~(1<<a),n+=1;var o=32-en(t)+a;if(30<o){var l=a-a%5;o=(i&(1<<l)-1).toString(32),i>>=l,a-=l,Vn=1<<32-en(t)+a|n<<a|i,Yn=o+e}else Vn=1<<o|n<<a|i,Yn=e}function es(e){e.return!==null&&(oi(e,1),Bg(e,1,0))}function od(e){for(;e===Mu;)Mu=ho[--mo],ho[mo]=null,Pl=ho[--mo],ho[mo]=null;for(;e===Zi;)Zi=hn[--mn],hn[mn]=null,Yn=hn[--mn],hn[mn]=null,Vn=hn[--mn],hn[mn]=null}function Gg(e,t){hn[mn++]=Vn,hn[mn++]=Yn,hn[mn++]=Zi,Vn=t.id,Yn=t.overflow,Zi=e}var ut=null,Le=null,se=!1,Bi=null,yn=!1,Wc=Error(A(519));function Fi(e){var t=Error(A(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ul(gn(t,e)),Wc}function Um(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ct]=e,t[Yt]=i,n){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(n=0;n<Vl.length;n++)fe(Vl[n],t);break;case"source":fe("error",t);break;case"img":case"image":case"link":fe("error",t),fe("load",t);break;case"details":fe("toggle",t);break;case"input":fe("invalid",t),yg(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),vg(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Eb(t.textContent,n)?(i.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),i.onScroll!=null&&fe("scroll",t),i.onScrollEnd!=null&&fe("scrollend",t),i.onClick!=null&&(t.onclick=Gn),t=!0):t=!1,t||Fi(e,!0)}function Ru(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:yn=!1;return;case 27:case 3:yn=!0;return;default:ut=ut.return}}function Wa(e){if(e!==ut)return!1;if(!se)return Ru(e),se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Pf(e.type,e.memoizedProps)),n=!n),n&&Le&&Fi(e),Ru(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Le=Hp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Le=Hp(e)}else t===27?(t=Le,ta(e.type)?(e=Gf,Gf=null,Le=e):Le=t):Le=ut?bn(e.stateNode.nextSibling):null;return!0}function Ta(){Le=ut=null,se=!1}function gc(){var e=Bi;return e!==null&&(Ut===null?Ut=e:Ut.push.apply(Ut,e),Bi=null),e}function Ul(e){Bi===null?Bi=[e]:Bi.push(e)}var $c=Kn(null),ka=null,li=null;function _i(e,t,n){ze($c,t._currentValue),t._currentValue=n}function ui(e){e._currentValue=$c.current,dt($c)}function au(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function ef(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var l=a.child;o=o.firstContext;e:for(;o!==null;){var r=o;o=a;for(var u=0;u<t.length;u++)if(r.context===t[u]){o.lanes|=n,r=o.alternate,r!==null&&(r.lanes|=n),au(o.return,n,e),i||(l=null);break e}o=r.next}}else if(a.tag===18){if(l=a.return,l===null)throw Error(A(341));l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),au(l,n,e),l=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),au(a.return,n,e),l=a.child,l=l!==null?l.sibling:null):l=a.child;if(l!==null)l.return=a;else for(l=a;l!==null;){if(l===e){l=null;break}if(a=l.sibling,a!==null){a.return=l.return,l=a;break}l=l.return}a=l}}function Ma(e,t,n,i){e=null;for(var a=t,o=!1;a!==null;){if(!o){if((a.flags&524288)!==0)o=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var l=a.alternate;if(l===null)throw Error(A(387));if(l=l.memoizedProps,l!==null){var r=a.type;nn(a.pendingProps.value,l.value)||(e!==null?e.push(r):e=[r])}}else if(a===bu.current){if(l=a.alternate,l===null)throw Error(A(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(ko):e=[ko])}a=a.return}return e!==null&&ef(t,e,n,i),t.flags|=262144,e!==null}function Nu(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ra(e){ka=e,li=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return Vg(ka,e)}function Br(e,t){return ka===null&&Ra(e),Vg(e,t)}function Vg(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},li===null){if(e===null)throw Error(A(308));li=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else li=li.next=t;return n}var dw=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},hw=nt.unstable_scheduleCallback,mw=nt.unstable_NormalPriority,Fe={$$typeof:Bn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ld(){return{controller:new dw,data:new Map,refCount:0}}function tr(e){e.refCount--,e.refCount===0&&hw(mw,function(){e.controller.abort()})}function Im(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];n.indexOf(i)===-1&&n.push(i)}}}var bl=null;function pw(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var El=null,tf=0,Na=0,vo=null;function gw(e,t){if(El===null){var n=El=[];tf=0,Na=Hd(),vo={status:"pending",value:void 0,then:function(i){n.push(i)}}}return tf++,t.then(Bm,Bm),t}function Bm(){if(--tf===0&&(bl=null,El!==null)){vo!==null&&(vo.status="fulfilled");var e=El;El=null,Na=0,vo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yw(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(i.status="rejected",i.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),i}var Gm=F.S;F.S=function(e,t){if(lb=Wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&gw(e,t),bl!==null)for(var n=Do;n!==null;)Im(n,bl),n=n.next;if(n=e.types,n!==null){for(var i=Do;i!==null;)Im(i,n),i=i.next;if(Na!==0){i=bl,i===null&&(i=bl=[]);for(var a=0;a<n.length;a++){var o=n[a];i.indexOf(o)===-1&&i.push(o)}}}Gm!==null&&Gm(e,t)};var wa=Kn(null);function rd(){var e=wa.current;return e!==null?e:Ne.pooledCache}function ou(e,t){t===null?ze(wa,wa.current):ze(wa,t.pool)}function Yg(){var e=rd();return e===null?null:{parent:Fe._currentValue,pool:e}}var Go=Error(A(460)),ud=Error(A(474)),ts=Error(A(542)),Au={then:function(){}};function Vm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qg(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Gn,Gn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qm(e),e===void 0&&!("reason"in t)?Error(A(600)):e;default:if(typeof t.status=="string")t.then(Gn,Gn);else{if(e=Ne,e!==null&&100<e.shellSuspendCounter)throw Error(A(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=i}},function(i){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qm(e),e}throw xa=t,Go}}function pa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(xa=n,Go):n}}var xa=null;function Ym(){if(xa===null)throw Error(A(459));var e=xa;return xa=null,e}function qm(e){if(e===Go||e===ts)throw Error(A(483))}var So=null,Il=0;function Gr(e){var t=Il;return Il+=1,So===null&&(So=[]),qg(So,e,t)}function Ni(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Vr(e,t){throw t.$$typeof===J1?Error(A(525)):(e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function jg(e){function t(d,h){if(e){var g=d.deletions;g===null?(d.deletions=[h],d.flags|=16):g.push(h)}}function n(d,h){if(!e)return null;for(;h!==null;)t(d,h),h=h.sibling;return null}function i(d){for(var h=new Map;d!==null;)d.key===null?h.set(d.index,d):h.set(d.key,d),d=d.sibling;return h}function a(d,h){return d=ri(d,h),d.index=0,d.sibling=null,d}function o(d,h,g){return d.index=g,e?(g=d.alternate,g!==null?(g=g.index,g<h?(d.flags|=2,h):g):(d.flags|=134217730,h)):(d.flags|=1048576,h)}function l(d){return e&&d.alternate===null&&(d.flags|=134217730),d}function r(d,h,g,w){return h===null||h.tag!==6?(h=mc(g,d.mode,w),h.return=d,h):(h=a(h,g),h.return=d,h)}function u(d,h,g,w){var E=g.type;return E===ao?(d=f(d,h,g.props.children,w,g.key),Ni(d,g),d):h!==null&&(h.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Oi&&pa(E)===h.type)?(h=a(h,g.props),Ni(h,g),h.return=d,h):(h=iu(g.type,g.key,g.props,null,d.mode,w),Ni(h,g),h.return=d,h)}function s(d,h,g,w){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=pc(g,d.mode,w),h.return=d,h):(h=a(h,g.children||[]),h.return=d,h)}function f(d,h,g,w,E){return h===null||h.tag!==7?(h=Sa(g,d.mode,w,E),h.return=d,h):(h=a(h,g),h.return=d,h)}function p(d,h,g){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=mc(""+h,d.mode,g),h.return=d,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case zr:return g=iu(h.type,h.key,h.props,null,d.mode,g),Ni(g,h),g.return=d,g;case pl:return h=pc(h,d.mode,g),h.return=d,h;case Oi:return h=pa(h),p(d,h,g)}if(gl(h)||sl(h))return h=Sa(h,d.mode,g,null),h.return=d,h;if(typeof h.then=="function")return p(d,Gr(h),g);if(h.$$typeof===Bn)return p(d,Br(d,h),g);Vr(d,h)}return null}function c(d,h,g,w){var E=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return E!==null?null:r(d,h,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case zr:return g.key===E?u(d,h,g,w):null;case pl:return g.key===E?s(d,h,g,w):null;case Oi:return g=pa(g),c(d,h,g,w)}if(gl(g)||sl(g))return E!==null?null:f(d,h,g,w,null);if(typeof g.then=="function")return c(d,h,Gr(g),w);if(g.$$typeof===Bn)return c(d,h,Br(d,g),w);Vr(d,g)}return null}function m(d,h,g,w,E){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return d=d.get(g)||null,r(h,d,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case zr:return d=d.get(w.key===null?g:w.key)||null,u(h,d,w,E);case pl:return d=d.get(w.key===null?g:w.key)||null,s(h,d,w,E);case Oi:return w=pa(w),m(d,h,g,w,E)}if(gl(w)||sl(w))return d=d.get(g)||null,f(h,d,w,E,null);if(typeof w.then=="function")return m(d,h,g,Gr(w),E);if(w.$$typeof===Bn)return m(d,h,g,Br(h,w),E);Vr(h,w)}return null}function S(d,h,g,w){for(var E=null,R=null,x=h,N=h=0,G=null;x!==null&&N<g.length;N++){x.index>N?(G=x,x=null):G=x.sibling;var T=c(d,x,g[N],w);if(T===null){x===null&&(x=G);break}e&&x&&T.alternate===null&&t(d,x),h=o(T,h,N),R===null?E=T:R.sibling=T,R=T,x=G}if(N===g.length)return n(d,x),se&&oi(d,N),E;if(x===null){for(;N<g.length;N++)x=p(d,g[N],w),x!==null&&(h=o(x,h,N),R===null?E=x:R.sibling=x,R=x);return se&&oi(d,N),E}for(x=i(x);N<g.length;N++)G=m(x,d,N,g[N],w),G!==null&&(e&&(T=G.alternate,T!==null&&x.delete(T.key===null?N:T.key)),h=o(G,h,N),R===null?E=G:R.sibling=G,R=G);return e&&x.forEach(function(I){return t(d,I)}),se&&oi(d,N),E}function b(d,h,g,w){if(g==null)throw Error(A(151));for(var E=null,R=null,x=h,N=h=0,G=null,T=g.next();x!==null&&!T.done;N++,T=g.next()){x.index>N?(G=x,x=null):G=x.sibling;var I=c(d,x,T.value,w);if(I===null){x===null&&(x=G);break}e&&x&&I.alternate===null&&t(d,x),h=o(I,h,N),R===null?E=I:R.sibling=I,R=I,x=G}if(T.done)return n(d,x),se&&oi(d,N),E;if(x===null){for(;!T.done;N++,T=g.next())T=p(d,T.value,w),T!==null&&(h=o(T,h,N),R===null?E=T:R.sibling=T,R=T);return se&&oi(d,N),E}for(x=i(x);!T.done;N++,T=g.next())T=m(x,d,N,T.value,w),T!==null&&(e&&(G=T.alternate,G!==null&&x.delete(G.key===null?N:G.key)),h=o(T,h,N),R===null?E=T:R.sibling=T,R=T);return e&&x.forEach(function(H){return t(d,H)}),se&&oi(d,N),E}function v(d,h,g,w){if(typeof g=="object"&&g!==null&&g.type===ao&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case zr:e:{for(var E=g.key;h!==null;){if(h.key===E){if(E=g.type,E===ao){if(h.tag===7){n(d,h.sibling),w=a(h,g.props.children),Ni(w,g),w.return=d,d=w;break e}}else if(h.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Oi&&pa(E)===h.type){n(d,h.sibling),w=a(h,g.props),Ni(w,g),w.return=d,d=w;break e}n(d,h);break}else t(d,h);h=h.sibling}g.type===ao?(w=Sa(g.props.children,d.mode,w,g.key),Ni(w,g),w.return=d,d=w):(w=iu(g.type,g.key,g.props,null,d.mode,w),Ni(w,g),w.return=d,d=w)}return l(d);case pl:e:{for(E=g.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(d,h.sibling),w=a(h,g.children||[]),w.return=d,d=w;break e}else{n(d,h);break}else t(d,h);h=h.sibling}w=pc(g,d.mode,w),w.return=d,d=w}return l(d);case Oi:return g=pa(g),v(d,h,g,w)}if(gl(g))return S(d,h,g,w);if(sl(g)){if(E=sl(g),typeof E!="function")throw Error(A(150));return g=E.call(g),b(d,h,g,w)}if(typeof g.then=="function")return v(d,h,Gr(g),w);if(g.$$typeof===Bn)return v(d,h,Br(d,g),w);Vr(d,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,h!==null&&h.tag===6?(n(d,h.sibling),w=a(h,g),w.return=d,d=w):(n(d,h),w=mc(g,d.mode,w),w.return=d,d=w),l(d)):n(d,h)}return function(d,h,g,w){try{Il=0;var E=v(d,h,g,w);return So=null,E}catch(x){if(x===Go||x===ts)throw x;var R=Bt(29,x,null,d.mode);return R.lanes=w,R.return=d,R}finally{}}}var Aa=jg(!0),Xg=jg(!1),Li=!1;function sd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ye&2)!==0){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,t=Tu(e),Pg(e,null,n),t}return $u(e,i,t,n),Tu(e)}function Tl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,sg(e,n)}}function yc(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?a=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var af=!1;function Ml(){if(af){var e=vo;if(e!==null)throw e}}function Rl(e,t,n,i){af=!1;var a=e.updateQueue;Li=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var u=r,s=u.next;u.next=null,l===null?o=s:l.next=s,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,r=f.lastBaseUpdate,r!==l&&(r===null?f.firstBaseUpdate=s:r.next=s,f.lastBaseUpdate=u))}if(o!==null){var p=a.baseState;l=0,f=s=u=null,r=o;do{var c=r.lane&-536870913,m=c!==r.lane;if(m?(me&c)===c:(i&c)===c){c!==0&&c===Na&&(af=!0),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var S=e,b=r;c=t;var v=n;switch(b.tag){case 1:if(S=b.payload,typeof S=="function"){p=S.call(v,p,c);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=b.payload,c=typeof S=="function"?S.call(v,p,c):S,c==null)break e;p=Ae({},p,c);break e;case 2:Li=!0}}c=r.callback,c!==null&&(e.flags|=64,m&&(e.flags|=8192),m=a.callbacks,m===null?a.callbacks=[c]:m.push(c))}else m={lane:c,tag:r.tag,payload:r.payload,callback:r.callback,next:null},f===null?(s=f=m,u=p):f=f.next=m,l|=c;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;m=r,r=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);f===null&&(u=p),a.baseState=u,a.firstBaseUpdate=s,a.lastBaseUpdate=f,o===null&&(a.shared.lanes=0),$i|=l,e.lanes=l,e.memoizedState=p}}function Kg(e,t){if(typeof e!="function")throw Error(A(191,e));e.call(t)}function Qg(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Kg(n[e],t)}var Ji=Kn(null),Cu=Kn(0);function jm(e,t){e=mi,ze(Cu,e),ze(Ji,t),mi=e|t.baseLanes}function of(){ze(Cu,mi),ze(Ji,Ji.current)}function cd(){mi=Cu.current,dt(Ji),dt(Cu)}var pt=Kn(null),wt=null;function Yi(e){var t=e.alternate;ze(ht,ht.current&1),ze(pt,e),wt===null&&(t===null||Ji.current!==null||t.memoizedState!==null)&&(wt=e)}function lf(e){ze(ht,ht.current),ze(pt,e),wt===null&&(wt=e)}function Zg(e){e.tag===22?(ze(ht,ht.current),ze(pt,e),wt===null&&(wt=e)):qi()}function qi(){ze(ht,ht.current),ze(pt,pt.current)}function Zt(e){dt(pt),wt===e&&(wt=null),dt(ht)}var ht=Kn(0);function Bl(e,t){ze(pt,pt.current),ze(ht,t)}function fd(e){dt(ht),dt(pt),wt===e&&(wt=null)}function Ou(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Bf(n)||Ud(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fi=0,oe=null,Te=null,Ze=null,Lu=!1,wo=!1,Ca=!1,zu=0,Gl=0,xo=null,bw=0;function Ye(){throw Error(A(321))}function dd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nn(e[n],t[n]))return!1;return!0}function hd(e,t,n,i,a,o){return fi=o,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e===null||e.memoizedState===null?Ry:Ny,Ca=!1,o=n(i,a),Ca=!1,wo&&(o=Jg(t,n,i,a)),Fg(e),o}function Fg(e){F.H=Du;var t=Te!==null&&Te.next!==null;if(fi=0,Ze=Te=oe=null,Lu=!1,Gl=0,xo=null,t)throw Error(A(300));e===null||Je||(e=e.dependencies,e!==null&&Nu(e)&&(Je=!0))}function Jg(e,t,n,i){oe=e;var a=0;do{if(wo&&(xo=null),Gl=0,wo=!1,25<=a)throw Error(A(301));if(a+=1,Ze=Te=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}F.H=Rw,o=t(n,i)}while(wo);return o}function vw(){var e=F.H,t=e.useState()[0];return t=typeof t.then=="function"?nr(t):t,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(oe.flags|=1024),t}function md(){var e=zu!==0;return zu=0,e}function pd(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function gd(e){if(Lu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Lu=!1}fi=0,Ze=Te=oe=null,wo=!1,Gl=zu=0,xo=null}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?oe.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function je(){if(Te===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Ze===null?oe.memoizedState:Ze.next;if(t!==null)Ze=t,Te=e;else{if(e===null)throw oe.alternate===null?Error(A(467)):Error(A(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Ze===null?oe.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function ns(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nr(e){var t=Gl;return Gl+=1,xo===null&&(xo=[]),e=qg(xo,e,t),t=oe,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,F.H=t===null||t.memoizedState===null?Ry:Ny),e}function is(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return nr(e);if(e.$$typeof===eS)return;if(e.$$typeof===Bn)return ft(e)}throw Error(A(438,String(e)))}function yd(e){var t=null,n=oe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=oe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ns(),oe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=$1;return t.index++,n}function di(e,t){return typeof t=="function"?t(e):t}function lu(e){var t=je();return bd(t,Te,e)}function bd(e,t,n){var i=e.queue;if(i===null)throw Error(A(311));i.lastRenderedReducer=n;var a=e.baseQueue,o=i.pending;if(o!==null){if(a!==null){var l=a.next;a.next=o.next,o.next=l}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var r=l=null,u=null,s=t,f=!1;do{var p=s.lane&-536870913;if(p!==s.lane?(me&p)===p:(fi&p)===p){var c=s.revertLane;if(c===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),p===Na&&(f=!0);else if((fi&c)===c){s=s.next,c===Na&&(f=!0);continue}else p={lane:0,revertLane:s.revertLane,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(r=u=p,l=o):u=u.next=p,oe.lanes|=c,$i|=c;p=s.action,Ca&&n(o,p),o=s.hasEagerState?s.eagerState:n(o,p)}else c={lane:p,revertLane:s.revertLane,gesture:s.gesture,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(r=u=c,l=o):u=u.next=c,oe.lanes|=p,$i|=p;s=s.next}while(s!==null&&s!==t);if(u===null?l=o:u.next=r,!nn(o,e.memoizedState)&&(Je=!0,f&&(n=vo,n!==null)))throw n;e.memoizedState=o,e.baseState=l,e.baseQueue=u,i.lastRenderedState=o}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function bc(e){var t=je(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var l=a=a.next;do o=e(o,l.action),l=l.next;while(l!==a);nn(o,t.memoizedState)||(Je=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Wg(e,t,n){var i=oe,a=je(),o=se;if(o){if(n===void 0)throw Error(A(407));n=n()}else n=t();var l=!nn((Te||a).memoizedState,n);if(l&&(a.memoizedState=n,Je=!0),a=a.queue,vd(ty.bind(null,i,a,e),[e]),e=a.getSnapshot!==t||l||Ze!==null&&(Ze.memoizedState.tag&1)!==0,Co(e?9:8,{destroy:void 0},ey.bind(null,i,a,n,t),null),e){if(i.flags|=2048,Ne===null)throw Error(A(349));o||(fi&127)!==0||$g(i,t,n)}return n}function $g(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t=ns(),oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ey(e,t,n,i){t.value=n,t.getSnapshot=i,ny(t)&&iy(e)}function ty(e,t,n){return n(function(){ny(t)&&iy(e)})}function ny(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nn(e,n)}catch{return!0}}function iy(e){var t=_a(e,2);t!==null&&Gt(t,e,2)}function rf(e){var t=zt();if(typeof e=="function"){var n=e;if(e=n(),Ca){Di(!0);try{n()}finally{Di(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:e},t}function ay(e,t,n,i){return e.baseState=n,bd(e,Te,typeof i=="function"?i:di)}function Sw(e,t,n,i,a){if(os(e))throw Error(A(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){o.listeners.push(l)}};F.T!==null?n(!0):o.isTransition=!1,i(o),n=t.pending,n===null?(o.next=t.pending=o,oy(t,o)):(o.next=n.next,t.pending=n.next=o)}}function oy(e,t){var n=t.action,i=t.payload,a=e.state;if(t.isTransition){var o=F.T,l={};l.types=o!==null?o.types:null,F.T=l;try{var r=n(a,i),u=F.S;u!==null&&u(l,r),Xm(e,t,r)}catch(s){uf(e,t,s)}finally{o!==null&&l.types!==null&&(o.types=l.types),F.T=o}}else try{o=n(a,i),Xm(e,t,o)}catch(s){uf(e,t,s)}}function Xm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Km(e,t,i)},function(i){return uf(e,t,i)}):Km(e,t,n)}function Km(e,t,n){t.status="fulfilled",t.value=n,ly(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,oy(e,n)))}function uf(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,ly(t),t=t.next;while(t!==i)}e.action=null}function ly(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ry(e,t){return t}function Qm(e,t){if(se){var n=Ne.formState;if(n!==null){e:{var i=oe;if(se){if(Le){t:{for(var a=Le,o=yn;a.nodeType!==8;){if(!o){a=null;break t}if(a=bn(a.nextSibling),a===null){a=null;break t}}o=a.data,a=o==="F!"||o==="F"?a:null}if(a){Le=bn(a.nextSibling),i=a.data==="F!";break e}}Fi(i)}i=!1}i&&(t=n[0])}}return n=zt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ry,lastRenderedState:t},n.queue=i,n=Ey.bind(null,oe,i),i.dispatch=n,i=rf(!1),o=Ed.bind(null,oe,!1,i.queue),i=zt(),a={state:t,dispatch:null,action:e,pending:null},i.queue=a,n=Sw.bind(null,oe,a,o,n),a.dispatch=n,i.memoizedState=e,[t,n,!1]}function Zm(e){var t=je();return uy(t,Te,e)}function uy(e,t,n){if(t=bd(e,t,ry)[0],e=lu(di)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=nr(t)}catch(l){throw l===Go?ts:l}else i=t;t=je();var a=t.queue,o=a.dispatch;return n!==t.memoizedState&&(oe.flags|=2048,Co(9,{destroy:void 0},ww.bind(null,a,n),null)),[i,o,e]}function ww(e,t){e.action=t}function Fm(e){var t=je(),n=Te;if(n!==null)return uy(t,n,e);je(),t=t.memoizedState,n=je();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Co(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=oe.updateQueue,t===null&&(t=ns(),oe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function sy(){return je().memoizedState}function ru(e,t,n,i){var a=zt();oe.flags|=e,a.memoizedState=Co(1|t,{destroy:void 0},n,i===void 0?null:i)}function as(e,t,n,i){var a=je();i=i===void 0?null:i;var o=a.memoizedState.inst;Te!==null&&i!==null&&dd(i,Te.memoizedState.deps)?a.memoizedState=Co(t,o,n,i):(oe.flags|=e,a.memoizedState=Co(1|t,o,n,i))}function Jm(e,t){ru(8390656,8,e,t)}function vd(e,t){as(2048,8,e,t)}function xw(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=ns(),oe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function cy(e){var t=je().memoizedState;return xw({ref:t,nextImpl:e}),function(){if((ye&2)!==0)throw Error(A(440));return t.impl.apply(void 0,arguments)}}function fy(e,t){return as(4,2,e,t)}function dy(e,t){return as(4,4,e,t)}function hy(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function my(e,t,n){n=n!=null?n.concat([e]):null,as(4,4,hy.bind(null,t,e),n)}function Sd(){}function py(e,t){var n=je();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&dd(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function gy(e,t){var n=je();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&dd(t,i[1]))return i[0];if(i=e(),Ca){Di(!0);try{e()}finally{Di(!1)}}return n.memoizedState=[i,t],i}function wd(e,t,n){return n===void 0||(fi&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ub(),oe.lanes|=e,$i|=e,n)}function yy(e,t,n,i){return nn(n,t)?n:Ji.current!==null?(e=wd(e,n,i),nn(e,t)||(Je=!0),e):(fi&106)===0||(fi&1073741824)!==0&&(me&261930)===0?(Je=!0,e.memoizedState=n):(e=ub(),oe.lanes|=e,$i|=e,t)}function by(e,t,n,i,a){var o=be.p;be.p=o!==0&&8>o?o:8;var l=F.T,r={};r.types=l!==null?l.types:null,F.T=r,Ed(e,!1,t,n);try{var u=a(),s=F.S;if(s!==null&&s(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=yw(u,i);Nl(e,t,f,tn(e))}else Nl(e,t,i,tn(e))}catch(p){Nl(e,t,{then:function(){},status:"rejected",reason:p},tn())}finally{be.p=o,l!==null&&r.types!==null&&(l.types=r.types),F.T=l}}function Ew(){}function sf(e,t,n,i){if(e.tag!==5)throw Error(A(476));var a=vy(e).queue;by(e,a,t,va,n===null?Ew:function(){return Sy(e),n(i)})}function vy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:va,baseState:va,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:va},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sy(e){var t=vy(e);t.next===null&&(t=e.alternate.memoizedState),Nl(e,t.next.queue,{},tn())}function xd(){return ft(ko)}function wy(){return je().memoizedState}function xy(){return je().memoizedState}function Tw(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=tn();e=Gi(n);var i=Vi(t,e,n);i!==null&&(Gt(i,t,n),Tl(i,t,n)),t={cache:ld()},e.payload=t;return}t=t.return}}function Mw(e,t,n){var i=tn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},os(e)?Ty(t,n):(n=id(e,t,n,i),n!==null&&(Gt(n,e,i),My(n,t,i)))}function Ey(e,t,n){var i=tn();Nl(e,t,n,i)}function Nl(e,t,n,i){var a={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(os(e))Ty(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,r=o(l,n);if(a.hasEagerState=!0,a.eagerState=r,nn(r,l))return $u(e,t,a,0),Ne===null&&Wu(),!1}catch{}finally{}if(n=id(e,t,a,i),n!==null)return Gt(n,e,i),My(n,t,i),!0}return!1}function Ed(e,t,n,i){if(i={lane:2,revertLane:Hd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},os(e)){if(t)throw Error(A(479))}else t=id(e,n,i,2),t!==null&&Gt(t,e,2)}function os(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Ty(e,t){wo=Lu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function My(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,sg(e,n)}}var Du={readContext:ft,use:is,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye,useEffectEvent:Ye},Ry={readContext:ft,use:is,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Jm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ru(4194308,4,hy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){ru(4,2,e,t)},useMemo:function(e,t){var n=zt();t=t===void 0?null:t;var i=e();if(Ca){Di(!0);try{e()}finally{Di(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=zt();if(n!==void 0){var a=n(t);if(Ca){Di(!0);try{n(t)}finally{Di(!1)}}}else a=t;return i.memoizedState=i.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=Mw.bind(null,oe,e),[i.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:function(e){e=rf(e);var t=e.queue,n=Ey.bind(null,oe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Sd,useDeferredValue:function(e,t){var n=zt();return wd(n,e,t)},useTransition:function(){var e=rf(!1);return e=by.bind(null,oe,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=oe,a=zt();if(se){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ne===null)throw Error(A(349));(me&127)!==0||$g(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Jm(ty.bind(null,i,o,e),[e]),i.flags|=2048,Co(9,{destroy:void 0},ey.bind(null,i,o,n,t),null),n},useId:function(){var e=zt(),t=Ne.identifierPrefix;if(se){var n=Yn,i=Vn;n=(i&~(1<<32-en(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=zu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=bw++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:xd,useFormState:Qm,useActionState:Qm,useOptimistic:function(e){var t=zt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ed.bind(null,oe,!0,n),n.dispatch=t,[e,t]},useMemoCache:yd,useCacheRefresh:function(){return zt().memoizedState=Tw.bind(null,oe)},useEffectEvent:function(e){var t=zt(),n={impl:e};return t.memoizedState=n,function(){if((ye&2)!==0)throw Error(A(440));return n.impl.apply(void 0,arguments)}}},Ny={readContext:ft,use:is,useCallback:py,useContext:ft,useEffect:vd,useImperativeHandle:my,useInsertionEffect:fy,useLayoutEffect:dy,useMemo:gy,useReducer:lu,useRef:sy,useState:function(){return lu(di)},useDebugValue:Sd,useDeferredValue:function(e,t){var n=je();return yy(n,Te.memoizedState,e,t)},useTransition:function(){var e=lu(di)[0],t=je().memoizedState;return[typeof e=="boolean"?e:nr(e),t]},useSyncExternalStore:Wg,useId:wy,useHostTransitionStatus:xd,useFormState:Zm,useActionState:Zm,useOptimistic:function(e,t){var n=je();return ay(n,Te,e,t)},useMemoCache:yd,useCacheRefresh:xy,useEffectEvent:cy},Rw={readContext:ft,use:is,useCallback:py,useContext:ft,useEffect:vd,useImperativeHandle:my,useInsertionEffect:fy,useLayoutEffect:dy,useMemo:gy,useReducer:bc,useRef:sy,useState:function(){return bc(di)},useDebugValue:Sd,useDeferredValue:function(e,t){var n=je();return Te===null?wd(n,e,t):yy(n,Te.memoizedState,e,t)},useTransition:function(){var e=bc(di)[0],t=je().memoizedState;return[typeof e=="boolean"?e:nr(e),t]},useSyncExternalStore:Wg,useId:wy,useHostTransitionStatus:xd,useFormState:Fm,useActionState:Fm,useOptimistic:function(e,t){var n=je();return Te!==null?ay(n,Te,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:yd,useCacheRefresh:xy,useEffectEvent:cy};function vc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var cf={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=tn(),a=Gi(i);a.payload=t,n!=null&&(a.callback=n),t=Vi(e,a,i),t!==null&&(Gt(t,e,i),Tl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=tn(),a=Gi(i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Vi(e,a,i),t!==null&&(Gt(t,e,i),Tl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tn(),i=Gi(n);i.tag=2,t!=null&&(i.callback=t),t=Vi(e,i,n),t!==null&&(Gt(t,e,n),Tl(t,e,n))}};function Wm(e,t,n,i,a,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,l):t.prototype&&t.prototype.isPureReactComponent?!kl(n,i)||!kl(a,o):!0}function $m(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&cf.enqueueReplaceState(t,t.state,null)}function Oa(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Ae({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function Ay(e){Eu(e)}function Cy(e){console.error(e)}function Oy(e){Eu(e)}function Hu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function ep(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function ff(e,t,n){return n=Gi(n),n.tag=3,n.payload={element:null},n.callback=function(){Hu(e,t)},n}function Ly(e){return e=Gi(e),e.tag=3,e}function zy(e,t,n,i){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var o=i.value;e.payload=function(){return a(o)},e.callback=function(){ep(t,n,i)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){ep(t,n,i),typeof a!="function"&&(ji===null?ji=new Set([this]):ji.add(this));var r=i.stack;this.componentDidCatch(i.value,{componentStack:r!==null?r:""})})}function Nw(e,t,n,i,a){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Ma(t,n,a,!0),n=pt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return wt===null?Vu():n.alternate===null&&qe===0&&(qe=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Au?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Rc(e,i,a)),!1;case 22:return n.flags|=65536,i===Au?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Rc(e,i,a)),!1}throw Error(A(435,n.tag))}return Rc(e,i,a),Vu(),!1}if(se)return t=pt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==Wc&&(e=Error(A(422),{cause:i}),Ul(gn(e,n)))):(i!==Wc&&(t=Error(A(423),{cause:i}),Ul(gn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=gn(i,n),a=ff(e.stateNode,i,a),yc(e,a),qe!==4&&(qe=2)),!1;var o=Error(A(520),{cause:i});if(o=gn(o,n),Ll===null?Ll=[o]:Ll.push(o),qe!==4&&(qe=2),t===null)return!0;i=gn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=ff(n.stateNode,i,e),yc(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(ji===null||!ji.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ly(a),zy(a,e,n,i),yc(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Td=Error(A(461)),Je=!1;function et(e,t,n,i){t.child=e===null?Xg(t,null,n,i):Aa(t,e.child,n,i)}function tp(e,t,n,i,a){n=n.render;var o=t.ref;if("ref"in i){var l={};for(var r in i)r!=="ref"&&(l[r]=i[r])}else l=i;return Ra(t),i=hd(e,t,n,l,o,a),r=md(),e!==null&&!Je?(pd(e,t,a),hi(e,t,a)):(se&&r&&es(t),t.flags|=1,et(e,t,i,a),t.child)}function np(e,t,n,i,a){if(e===null){var o=n.type;return typeof o=="function"&&!ad(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Dy(e,t,o,i,a)):(e=iu(n.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Rd(e,a)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:kl,n(l,i)&&e.ref===t.ref)return hi(e,t,a)}return t.flags|=1,e=ri(o,i),e.ref=t.ref,e.return=t,t.child=e}function Dy(e,t,n,i,a){if(e!==null){var o=e.memoizedProps;if(kl(o,i)&&e.ref===t.ref)if(Je=!1,t.pendingProps=i=o,Rd(e,a))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,hi(e,t,a)}return df(e,t,n,i,a)}function Hy(e,t,n,i){var a=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(i=t.child=e.child,a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;i=a&~o}else i=0,t.child=null;return ip(e,t,o,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ou(t,o!==null?o.cachePool:null),o!==null?jm(t,o):of(),Zg(t);else return i=t.lanes=536870912,ip(e,t,o!==null?o.baseLanes|n:n,n,i)}else o!==null?(ou(t,o.cachePool),jm(t,o),qi(),t.memoizedState=null):(e!==null&&ou(t,null),of(),qi());return et(e,t,a,n),t.child}function Al(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ip(e,t,n,i,a){var o=rd();return o=o===null?null:{parent:Fe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&ou(t,null),of(),Zg(t),e!==null&&Ma(e,t,i,!0),t.childLanes=a,null}function uu(e,t){return t=ls({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ap(e,t,n){return Aa(t,e.child,null,n),e=uu(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function Aw(e,t,n){var i=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(se){if(i.mode==="hidden")return e=uu(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Al(null,e);if(lf(t),(e=Le)?(e=Hb(e,yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:Vn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=Ig(e),n.return=t,t.child=n,ut=t,Le=null)):e=null,e===null)throw Fi(t);return t.lanes=536870912,null}return uu(t,i)}var o=e.memoizedState;if(o!==null){var l=o.dehydrated;if(lf(t),a)if(t.flags&256)t.flags&=-257,t=ap(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(A(558));else if(Je||Ma(e,t,n,!1),a=(n&e.childLanes)!==0,Je||a){if(Ji.current===null){if(i=Ne,i!==null&&(l=cg(i,n),l!==0&&l!==o.retryLane))throw o.retryLane=l,_a(e,l),Gt(i,e,l),Td;Vu()}t=ap(e,t,n)}else e=o.treeContext,Le=bn(l.nextSibling),ut=t,se=!0,Bi=null,yn=!1,e!==null&&Gg(t,e),t=uu(t,i),t.flags|=134221824;return t}return e=ri(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function eo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(A(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function df(e,t,n,i,a){return Ra(t),n=hd(e,t,n,i,void 0,a),i=md(),e!==null&&!Je?(pd(e,t,a),hi(e,t,a)):(se&&i&&es(t),t.flags|=1,et(e,t,n,a),t.child)}function op(e,t,n,i,a,o){return Ra(t),t.updateQueue=null,n=Jg(t,i,n,a),Fg(e),i=md(),e!==null&&!Je?(pd(e,t,o),hi(e,t,o)):(se&&i&&es(t),t.flags|=1,et(e,t,n,o),t.child)}function lp(e,t,n,i,a){if(Ra(t),t.stateNode===null){var o=fo,l=n.contextType;typeof l=="object"&&l!==null&&(o=ft(l)),o=new n(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=cf,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},sd(t),l=n.contextType,o.context=typeof l=="object"&&l!==null?ft(l):fo,o.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(vc(t,n,l,i),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(l=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),l!==o.state&&cf.enqueueReplaceState(o,o.state,null),Rl(t,i,o,a),Ml(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var r=t.memoizedProps,u=Oa(n,r);o.props=u;var s=o.context,f=n.contextType;l=fo,typeof f=="object"&&f!==null&&(l=ft(f));var p=n.getDerivedStateFromProps;f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(r||s!==l)&&$m(t,o,i,l),Li=!1;var c=t.memoizedState;o.state=c,Rl(t,i,o,a),Ml(),s=t.memoizedState,r||c!==s||Li?(typeof p=="function"&&(vc(t,n,p,i),s=t.memoizedState),(u=Li||Wm(t,n,u,i,c,s,l))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=s),o.props=i,o.state=s,o.context=l,i=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,nf(e,t),l=t.memoizedProps,f=Oa(n,l),o.props=f,p=t.pendingProps,c=o.context,s=n.contextType,u=fo,typeof s=="object"&&s!==null&&(u=ft(s)),r=n.getDerivedStateFromProps,(s=typeof r=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==p||c!==u)&&$m(t,o,i,u),Li=!1,c=t.memoizedState,o.state=c,Rl(t,i,o,a),Ml();var m=t.memoizedState;l!==p||c!==m||Li||e!==null&&e.dependencies!==null&&Nu(e.dependencies)?(typeof r=="function"&&(vc(t,n,r,i),m=t.memoizedState),(f=Li||Wm(t,n,f,i,c,m,u)||e!==null&&e.dependencies!==null&&Nu(e.dependencies))?(s||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=m),o.props=i,o.state=m,o.context=u,i=f):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,eo(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=Aa(t,e.child,null,a),t.child=Aa(t,null,n,a)):et(e,t,n,a),t.memoizedState=o.state,e=t.child):e=hi(e,t,a),e}function rp(e,t,n,i){return Ta(),t.flags|=256,et(e,t,n,i),t.child}var hf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mf(e){return{baseLanes:e,cachePool:Yg()}}function pf(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Jt),e}function _y(e,t,n){var i=t.pendingProps,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(ht.current&2)!==0),l&&(a=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(se){if(a?Yi(t):qi(),(e=Le)?(e=Hb(e,yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:Vn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=Ig(e),n.return=t,t.child=n,ut=t,Le=null)):e=null,e===null)throw Fi(t);return Ud(e)?t.lanes=32:t.lanes=536870912,null}return o=i.children,i=i.fallback,a?(qi(),a=t.mode,o=ls({mode:"hidden",children:o},a),i=Sa(i,a,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,i=t.child,i.memoizedState=mf(n),i.childLanes=pf(e,l,n),t.memoizedState=hf,Al(null,i)):(Yi(t),Md(t,o))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return Cw(e,t,o,l,i,u,r,n)}return a?(qi(),a=i.fallback,o=t.mode,r=e.child,u=r.sibling,i=ri(r,{mode:"hidden",children:i.children}),i.subtreeFlags=r.subtreeFlags&1206910976,u!==null?a=ri(u,a):(a=Sa(a,o,n,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,Al(null,i),i=t.child,a=e.child.memoizedState,a===null?a=mf(n):(o=a.cachePool,o!==null?(r=Fe._currentValue,o=o.parent!==r?{parent:r,pool:r}:o):o=Yg(),a={baseLanes:a.baseLanes|n,cachePool:o}),i.memoizedState=a,i.childLanes=pf(e,l,n),t.memoizedState=hf,Al(e.child,i)):(Yi(t),n=e.child,e=n.sibling,n=ri(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function Md(e,t){return t=ls({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ls(e,t){return e=Bt(22,e,null,t),e.lanes=0,e}function Yr(e,t,n){return Aa(t,e.child,null,n),e=Md(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cw(e,t,n,i,a,o,l,r){if(n)return t.flags&256?(Yi(t),t.flags&=-257,Yr(e,t,r)):t.memoizedState!==null?(qi(),t.child=e.child,t.flags|=128,null):(qi(),o=a.fallback,l=t.mode,a=ls({mode:"visible",children:a.children},l),o=Sa(o,l,r,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Aa(t,e.child,null,r),a=t.child,a.memoizedState=mf(r),a.childLanes=pf(e,i,r),t.memoizedState=hf,Al(null,a));if(Yi(t),Ud(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;return i=u,i!==""&&(a=Error(A(419)),a.stack="",a.digest=i,Ul({value:a,source:null,stack:null})),Yr(e,t,r)}if(Je||Ma(e,t,r,!1),i=(r&e.childLanes)!==0,Je||i){if(Ji.current!==null)return Yr(e,t,r);if(i=Ne,i!==null&&(a=cg(i,r),a!==0&&a!==l.retryLane))throw l.retryLane=a,_a(e,a),Gt(i,e,a),Td;return Bf(o)||Vu(),Yr(e,t,r)}return Bf(o)?(t.flags|=192,t.child=e.child,null):(e=l.treeContext,Le=bn(o.nextSibling),ut=t,se=!0,Bi=null,yn=!1,e!==null&&Gg(t,e),t=Md(t,a.children),t.flags|=134221824,t)}function up(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),au(e.return,t,n)}function sp(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Ou(n)===null&&(t=e),e=e.sibling}return t}function qr(e,t,n,i,a,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:a,treeForkCount:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=i,l.tail=n,l.tailMode=a,l.treeForkCount=o)}function Sc(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function gf(e,t,n){var i=t.pendingProps,a=i.revealOrder,o=i.tail;i=i.children;var l=ht.current;if(t.flags&128)return Bl(t,l),null;var r=(l&2)!==0;if(r?(l=l&1|2,t.flags|=128):l&=1,Bl(t,l),a==="backwards"&&e!==null?(Sc(e),et(e,t,i,n),Sc(e)):et(e,t,i,n),i=se?Pl:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&up(e,n,t);else if(e.tag===19)up(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"backwards":n=sp(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null,Sc(t)),qr(t,!0,a,null,o,i);break;case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Ou(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}qr(t,!0,n,null,o,i);break;case"together":qr(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:n=sp(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),qr(t,!1,a,n,o,i)}return t.child}function cp(e,t,n){var i=t.pendingProps;return _i(t,t.type,i.value),et(e,t,i.children,n),t.child}function hi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$i|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ma(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=ri(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ri(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Rd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Nu(e)))}function Ow(e,t,n){switch(t.tag){case 3:vu(t,t.stateNode.containerInfo),_i(t,Fe,e.memoizedState.cache),Ta();break;case 27:case 5:Vc(t);break;case 4:vu(t,t.stateNode.containerInfo);break;case 10:_i(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lf(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return Yi(t),t.flags|=128,null;i=Ma(e,t,n,!1);var a=t.child.childLanes;return i||(n&a)!==0?_y(e,t,n):(Yi(t),e=hi(e,t,n),e!==null?e.sibling:null)}Yi(t);break;case 19:if(t.flags&128)return gf(e,t,n);if(a=(e.flags&128)!==0,i=(n&t.childLanes)!==0,i||(Ma(e,t,n,!1),i=(n&t.childLanes)!==0),a){if(i)return gf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Bl(t,ht.current),i)break;return null;case 22:return t.lanes=0,Hy(e,t,n,t.pendingProps);case 24:_i(t,Fe,e.memoizedState.cache)}return hi(e,t,n)}function ky(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Rd(e,n)&&(t.flags&128)===0)return Je=!1,Ow(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,se&&(t.flags&1048576)!==0&&Bg(t,Pl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=pa(t.elementType),t.type=e,typeof e=="function")ad(e)?(i=Oa(e,i),t.tag=1,t=lp(null,t,e,i,n)):(t.tag=0,t=df(null,t,e,i,n));else{if(e!=null){var a=e.$$typeof;if(a===jf){t.tag=11,t=tp(null,t,e,i,n);break e}else if(a===Xf){t.tag=14,t=np(null,t,e,i,n);break e}else if(a===Bn){t.tag=10,t.type=e,t=cp(null,t,n);break e}}throw t=Bc(e)||e,Error(A(306,t,""))}}return t;case 0:return df(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=Oa(i,t.pendingProps),lp(e,t,i,a,n);case 3:e:{if(vu(t,t.stateNode.containerInfo),e===null)throw Error(A(387));i=t.pendingProps;var o=t.memoizedState;a=o.element,nf(e,t),Rl(t,i,null,n);var l=t.memoizedState;if(i=l.cache,_i(t,Fe,i),i!==o.cache&&ef(t,[Fe],n,!0),Ml(),i=l.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=rp(e,t,i,n);break e}else if(i!==a){a=gn(Error(A(424)),t),Ul(a),t=rp(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=bn(e.firstChild),ut=t,se=!0,Bi=null,yn=!0,n=Xg(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Ta(),i===a){t=hi(e,t,n);break e}et(e,t,i,n)}t=t.child}return t;case 26:return eo(e,t),e===null?(n=Pp(t.type,null,t.pendingProps,null))?t.memoizedState=n:se||(t.stateNode=Mb(t.type,t.pendingProps,Ii.current,t)):t.memoizedState=Pp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Vc(t),e===null&&se&&(i=t.stateNode=_b(t.type,t.pendingProps,Ii.current),ut=t,yn=!0,a=Le,ta(t.type)?(Gf=a,Le=bn(i.firstChild)):Le=a),et(e,t,t.pendingProps.children,n),eo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&se&&((a=i=Le)&&(i=xx(i,t.type,t.pendingProps,yn),i!==null?(t.stateNode=i,ut=t,Le=bn(i.firstChild),yn=!1,a=!0):a=!1),a||Fi(t)),Vc(t),a=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Pf(a,o)?i=null:l!==null&&Pf(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=hd(e,t,vw,null,null,n),ko._currentValue=a),eo(e,t),et(e,t,i,n),t.child;case 6:return e===null&&se&&((e=n=Le)&&(n=Ex(n,t.pendingProps,yn),n!==null?(t.stateNode=n,ut=t,Le=null,e=!0):e=!1),e||Fi(t)),null;case 13:return _y(e,t,n);case 4:return vu(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Aa(t,null,i,n):et(e,t,i,n),t.child;case 11:return tp(e,t,t.type,t.pendingProps,n);case 7:return i=t.pendingProps,eo(e,t),et(e,t,i,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:return cp(e,t,n);case 9:return a=t.type._context,i=t.pendingProps.children,Ra(t),a=ft(a),i=i(a),t.flags|=1,et(e,t,i,n),t.child;case 14:return np(e,t,t.type,t.pendingProps,n);case 15:return Dy(e,t,t.type,t.pendingProps,n);case 19:return gf(e,t,n);case 31:return Aw(e,t,n);case 22:return Hy(e,t,n,t.pendingProps);case 24:return Ra(t),i=ft(Fe),e===null?(a=rd(),a===null&&(a=Ne,o=ld(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:i,cache:a},sd(t),_i(t,Fe,a)):((e.lanes&n)!==0&&(nf(e,t),Rl(t,null,null,n),Ml()),a=e.memoizedState,o=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),_i(t,Fe,i)):(i=o.cache,_i(t,Fe,i),i!==a.cache&&ef(t,[Fe],n,!0))),et(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:se&&es(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:eo(e,t),et(e,t,i.children,n),t.child;case 29:throw t.pendingProps}throw Error(A(156,t.tag))}function ai(e){e.flags|=4}function wc(e,t,n,i,a){var o;if((o=(e.mode&32)!==0)&&(o=n===null?Bp(t,i):Bp(t,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),o){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(fb())e.flags|=8192;else throw xa=Au,ud}else e.flags&=-16777217}function fp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ib(t))if(fb())e.flags|=8192;else throw xa=Au,ud}function jr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?rg():536870912,e.lanes|=t,Oo|=t)}function fl(e,t){if(!se)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags&1206910976,i|=a.flags&1206910976,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Lw(e,t,n){var i=t.pendingProps;switch(od(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),ui(Fe),Ro(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wa(t)?ai(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gc())),Oe(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(ai(t),o!==null?(Oe(t),fp(t,o)):(Oe(t),wc(t,a,null,i,n))):o?o!==e.memoizedState?(ai(t),Oe(t),fp(t,o)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ai(t),Oe(t),wc(t,a,e,i,n)),null;case 27:if(Su(t),n=Ii.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ai(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Oe(t),t.subtreeFlags&=-33554433,null}e=qn.current,Wa(t)?Um(t,e):(e=_b(a,i,n),t.stateNode=e,ai(t))}return Oe(t),t.subtreeFlags&=-33554433,null;case 5:if(Su(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ai(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Oe(t),t.subtreeFlags&=-33554433,null}if(o=qn.current,Wa(t))Um(t,o);else{var l=ql(Ii.current);switch(o){case 1:o=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:o=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":o=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":o=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":o=l.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?l.createElement("select",{is:i.is}):l.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?l.createElement(a,{is:i.is}):l.createElement(a)}}o[ct]=t,o[Yt]=i;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)o.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=o;e:switch(mt(o,a,i),a){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ai(t)}}return Oe(t),t.subtreeFlags&=-33554433,wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ai(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(A(166));if(e=Ii.current,Wa(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,a=ut,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}e[ct]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Eb(e.nodeValue,n)),e||Fi(t,!0)}else e=ql(e).createTextNode(i),e[ct]=t,t.stateNode=e}return Oe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Wa(t),n!==null){if(e===null){if(!i)throw Error(A(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(557));e[ct]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else n=gc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(A(558))}return Oe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Wa(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(A(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(A(317));a[ct]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),a=!1}else a=gc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),jr(t,t.updateQueue),Oe(t),null);case 4:return Ro(),e===null&&_d(t.stateNode.containerInfo),t.flags|=67108864,Oe(t),null;case 10:return ui(t.type),Oe(t),null;case 19:if(fd(t),i=t.memoizedState,i===null)return Oe(t),null;if(a=(t.flags&128)!==0,o=i.rendering,o===null)if(a)fl(i,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Ou(e),o!==null){for(t.flags|=128,fl(i,!1),e=o.updateQueue,t.updateQueue=e,jr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ug(n,e),n=n.sibling;return Bl(t,ht.current&1|2),se&&oi(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Wt()>Bu&&(t.flags|=128,a=!0,fl(i,!1),t.lanes=4194304)}else{if(!a)if(e=Ou(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,jr(t,e),fl(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!o.alternate&&!se)return Oe(t),null}else 2*Wt()-i.renderingStartTime>Bu&&n!==536870912&&(t.flags|=128,a=!0,fl(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}if(i.tail!==null){e=i.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Wt(),e.sibling=null,o=ht.current,o=a?o&1|2:o&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||se?Bl(t,o):(n=o,ze(pt,t),ze(ht,n),wt===null&&(wt=t)),se&&oi(t,i.treeForkCount),e}return Oe(t),null;case 22:case 23:return Zt(t),cd(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),n=t.updateQueue,n!==null&&jr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&dt(wa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ui(Fe),Oe(t),null;case 25:return null;case 30:return t.flags|=33554432,Oe(t),null}throw Error(A(156,t.tag))}function zw(e,t){switch(od(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ui(Fe),Ro(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Su(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(A(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fd(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ro(),null;case 10:return ui(t.type),null;case 22:case 23:return Zt(t),cd(),e!==null&&dt(wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ui(Fe),null;case 25:return null;default:return null}}function Py(e,t){switch(od(t),t.tag){case 3:ui(Fe),Ro();break;case 26:case 27:case 5:Su(t);break;case 4:Ro();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:fd(t);break;case 10:ui(t.type);break;case 22:case 23:Zt(t),cd(),e!==null&&dt(wa);break;case 24:ui(Fe)}}function ir(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&e)===e){i=void 0;var o=n.create,l=n.inst;i=o(),l.destroy=i}n=n.next}while(n!==a)}}catch(r){xe(t,t.return,r)}}function Wi(e,t,n){try{var i=t.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var o=a.next;i=o;do{if((i.tag&e)===e){var l=i.inst,r=l.destroy;if(r!==void 0){l.destroy=void 0,a=t;var u=n,s=r;try{s()}catch(f){xe(a,u,f)}}}i=i.next}while(i!==o)}}catch(f){xe(t,t.return,f)}}function Uy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Qg(t,n)}catch(i){xe(e,e.return,i)}}}function Iy(e,t,n){n.props=Oa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){xe(e,t,i)}}function Un(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var a=e.stateNode,o=ci(e.memoizedProps,a);(a.ref===null||a.ref.name!==o)&&(a.ref=Cb(o)),i=a.ref;break;case 7:if(e.stateNode===null){var l=new an(e);Vt(e.child,!1,Sx,l,void 0,void 0),e.stateNode=l}i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){xe(e,t,r)}}function st(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(a){xe(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){xe(e,t,a)}else n.current=null}function _u(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Db(e.stateNode,t[n])}function dp(e){for(var t=e.return;t!==null&&(Ad(t)&&Db(e.stateNode,t.stateNode),!Nd(t));)t=t.return}function Cl(e){for(var t=e.return;t!==null&&(Ad(t)&&wx(e.stateNode,t.stateNode),!Nd(t));)t=t.return}function Nd(e){return e.tag===5||e.tag===3||e.tag===27}function Ad(e){return e&&e.tag===7&&e.stateNode!==null}function yf(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){xe(e,e.return,a)}}function xc(e,t,n){try{var i=e.stateNode;nx(i,e.type,n,t),i[Yt]=t}catch(a){xe(e,e.return,a)}}function By(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ta(e.type)||e.tag===4}function Ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||By(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ta(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bf(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(a,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(a),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gn)),_u(e,i),ge=!0;else if(a!==4&&(a===27&&(_u(e,i),i=null,ta(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(bf(e,t,n,i),e=e.sibling;e!==null;)bf(e,t,n,i),e=e.sibling}function ku(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?n.insertBefore(a,t):n.appendChild(a),_u(e,i),ge=!0;else if(a!==4&&(a===27&&(_u(e,i),i=null,ta(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(ku(e,t,n,i),e=e.sibling;e!==null;)ku(e,t,n,i),e=e.sibling}function Gy(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);mt(t,i,n),t[ct]=e,t[Yt]=n}catch(o){xe(e,e.return,o)}}var Pu=!1,Ft=null;function hp(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Pu=!0)}var In=null;function mp(){var e=In;return In=null,e}var It=0;function Vo(e,t,n,i,a){return It=0,Vy(e.child,t,n,i,a)}function Vy(e,t,n,i,a){for(var o=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(i!==null){var r=Uf(l);i.push(r),r.view&&(o=!0)}else o||Uf(l).view&&(o=!0);Pu=!0,Rb(l,It===0?t:t+"_"+It,n),It++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||Vy(e.child,t,n,i,a)&&(o=!0));e=e.sibling}return o}function Xn(e,t){for(;e!==null;)e.tag===5?Nb(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Xn(e.child,t)),e=e.sibling}function su(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(su(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(A(544));var n=t.name;t=gi(t.default,t.share),t!=="none"&&(Vo(e,n,t,null,!1)||Xn(e.child,!1))}e=e.sibling}}function vf(e,t){if(e.tag===30){var n=e.stateNode,i=e.memoizedProps,a=ci(i,n),o=gi(i.default,n.paired?i.share:i.enter);o!=="none"?Vo(e,a,o,null,!1)?(su(e),n.paired||t||Lo(e,i.onEnter)):Xn(e.child,!1):su(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)vf(e,t),e=e.sibling;else su(e)}function Sf(e){if(Ft!==null&&Ft.size!==0){var t=Ft;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var a=t.get(i);if(a!==void 0){var o=gi(n.default,n.share);if(o!=="none"&&(Vo(e,i,o,null,!1)?(o=e.stateNode,a.paired=o,o.paired=a,Lo(e,n.onShare)):Xn(e.child,!1)),t.delete(i),t.size===0)break}}}Sf(e)}e=e.sibling}}}function wf(e){if(e.tag===30){var t=e.memoizedProps,n=ci(t,e.stateNode),i=Ft!==null?Ft.get(n):void 0,a=gi(t.default,i!==void 0?t.share:t.exit);a!=="none"&&(Vo(e,n,a,null,!1)?i!==void 0?(a=e.stateNode,i.paired=a,a.paired=i,Ft.delete(n),Lo(e,t.onShare)):Lo(e,t.onExit):Xn(e.child,!1)),Ft!==null&&Sf(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)wf(e),e=e.sibling;else Ft!==null&&Sf(e)}function Yy(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=ci(t,e.stateNode);t=gi(t.default,t.update),e.flags&=-5,t!=="none"&&Vo(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Yy(e);e=e.sibling}}function xf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Xn(e.child,!1))}xf(e)}e=e.sibling}}function cu(e){if(e.tag===30)e.stateNode.paired=null,Xn(e.child,!1),xf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)cu(e),e=e.sibling;else xf(e)}function qy(e){for(e=e.child;e!==null;)e.tag===30?Xn(e.child,!1):(e.subtreeFlags&33554432)!==0&&qy(e),e=e.sibling}function Cd(e,t,n,i,a,o,l){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(o!==null&&It<o.length){var s=o[It],f=Uf(u);(s.view||f.view)&&(r=!0);var p;if(p=(e.flags&4)===0)if(f.clip)p=!0;else{p=s.rect;var c=f.rect;p=p.y!==c.y||p.x!==c.x||p.height!==c.height||p.width!==c.width}p&&(e.flags|=4),f.abs?f=!s.abs:(s=s.rect,f=f.rect,f=s.height!==f.height||s.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Rb(u,It===0?n:n+"_"+It,a),r&&(e.flags&4)!==0||(In===null&&(In=[]),In.push(u,It===0?i:i+"_"+It,t.memoizedProps)),It++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&l?e.flags|=t.flags&32:Cd(e,t.child,n,i,a,o,l)&&(r=!0));t=t.sibling}return r}function jy(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,i=e.stateNode,a=ci(n,i),o=gi(n.default,n.update);if(t){i=i.clones;var l=i===null?null:i.map(ux)}else l=e.memoizedState,e.memoizedState=null;i=e;var r=e.child;It=0,a=Cd(i,r,a,a,o,l,!1),(e.flags&4)!==0&&a&&(t||Lo(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&jy(e,t);e=e.sibling}}var ot=!1,ve=!1,_n=!1,Tc=!1,pp=typeof WeakSet=="function"?WeakSet:Set,lt=null,kn=!1,vl=!1,Uu=!1,Ef=!1;function Dw(e,t,n){if(e=e.containerInfo,_f=Po,e=Og(e),td(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var o=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{i.nodeType,l.nodeType}catch{i=null;break e}var r=0,u=-1,s=-1,f=0,p=0,c=e,m=null;t:for(;;){for(var S;c!==i||o!==0&&c.nodeType!==3||(u=r+o),c!==l||a!==0&&c.nodeType!==3||(s=r+a),c.nodeType===3&&(r+=c.nodeValue.length),(S=c.firstChild)!==null;)m=c,c=S;for(;;){if(c===e)break t;if(m===i&&++f===o&&(u=r),m===l&&++p===a&&(s=r),(S=c.nextSibling)!==null)break;c=m,m=c.parentNode}c=S}i=u===-1||s===-1?null:{start:u,end:s}}else i=null}i=i||{start:0,end:0}}else i=null;for(kf={focusedElem:e,selectionRange:i},Po=!1,n=(n&335544064)===n,lt=t,t=n?9270:1024;lt!==null;){if(e=lt,n&&(i=e.deletions,i!==null))for(o=0;o<i.length;o++)n&&wf(i[o]);if(e.alternate===null&&(e.flags&2)!==0)n&&hp(e),Xr(n);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&wf(i),Xr(n);continue}else if(i!==null&&i.memoizedState!==null){n&&hp(e),Xr(n);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,lt=i):(n&&Yy(e),Xr(n))}}Ft=null}function Xr(e){for(;lt!==null;){var t=lt,n=e,i=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&i!==null){n=void 0,a=i.memoizedProps,i=i.memoizedState;var o=t.stateNode;try{var l=Oa(t.type,a);n=o.getSnapshotBeforeUpdate(l,i),o.__reactInternalSnapshotBeforeUpdate=n}catch(r){xe(t,t.return,r)}}break;case 3:if((a&1024)!==0){if(i=t.stateNode.containerInfo,n=i.nodeType,n===9)If(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":If(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=ci(i.memoizedProps,i.stateNode),a=t.memoizedProps,a=gi(a.default,a.update),a!=="none"&&Vo(i,n,a,i.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(A(163))}if(i=t.sibling,i!==null){i.return=t.return,lt=i;break}lt=t.return}}function Xy(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Pn(e,n),i&4&&ir(5,n);break;case 1:if(Pn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){xe(n,n.return,l)}else{var a=Oa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){xe(n,n.return,l)}}i&64&&Uy(n),i&512&&Un(n,n.return);break;case 3:if(Pn(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Qg(e,t)}catch(l){xe(n,n.return,l)}}break;case 27:t===null&&i&4&&Gy(n);case 26:case 5:Pn(e,n),t===null&&i&4&&yf(n),i&512&&Un(n,n.return);break;case 12:Pn(e,n);break;case 31:Pn(e,n),i&4&&Fy(e,n);break;case 13:Pn(e,n),i&4&&Jy(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=jw.bind(null,n),Tx(e,n))));break;case 22:if(i=n.memoizedState!==null||ot,!i){var o=t!==null&&t.memoizedState!==null||ve;t=ot,a=ve,ot=i,(ve=o)&&!a?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),xn(e,n,i)):Pn(e,n),ot=t,ve=a}break;case 30:Pn(e,n),i&512&&Un(n,n.return);break;case 7:i&512&&Un(n,n.return);default:Pn(e,n)}}function Tf(e,t){for(e=e.child;e!==null;)Ky(e,t),e=e.sibling}function Ky(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var a=e.stateNode,o=e.memoizedProps.style,l=o!=null&&o.hasOwnProperty("display")?o.display:null;a.style.display=l==null||typeof l=="boolean"?"":(""+l).trim()}}catch(u){xe(e,e.return,u)}Mf(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ge=!0}catch(u){xe(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?Lp(r,!0):Lp(e.stateNode,!1)}catch(u){xe(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&Tf(e,t);break;default:Tf(e,t)}}function Mf(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,i=t;switch(n.tag){case 4:Ky(n,i);break e;case 22:n.memoizedState===null&&Mf(n,i);break e;default:Mf(n,i)}}e=e.sibling}}function Qy(e){var t=e.alternate;t!==null&&(e.alternate=null,Qy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,Pt=!1;function wn(e,t,n){for(n=n.child;n!==null;)Zy(e,t,n),n=n.sibling}function Zy(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Fl,n)}catch{}switch(n.tag){case 26:ve||st(n,t),wn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ve&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ve||st(n,t),Cl(n);var i=Ue,a=Pt;ta(n.type)&&(Ue=n.stateNode,Pt=!1),wn(e,t,n),kb(n.stateNode,n.type,n.memoizedProps),Ue=i,Pt=a;break;case 5:ve||st(n,t),Cl(n);case 6:if(n.tag===6&&Cl(n),i=Ue,a=Pt,Ue=null,wn(e,t,n),Ue=i,Pt=a,Ue!==null)if(Pt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode),ge=!0}catch(o){xe(n,t,o)}else try{Ue.removeChild(n.stateNode),ge=!0}catch(o){xe(n,t,o)}break;case 18:Ue!==null&&(Pt?(e=Ue,Op(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Uo(e)):Op(Ue,n.stateNode));break;case 4:i=Ue,a=Pt,Ue=n.stateNode.containerInfo,Pt=!0,wn(e,t,n),Ue=i,Pt=a;break;case 0:case 11:case 14:case 15:Wi(2,n,t),ve||Wi(4,n,t),wn(e,t,n);break;case 1:ve||(st(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Iy(n,t,i)),wn(e,t,n);break;case 21:wn(e,t,n);break;case 22:ve=(i=ve)||n.memoizedState!==null,wn(e,t,n),ve=i;break;case 30:st(n,t),wn(e,t,n);break;case 7:ve||st(n,t),wn(e,t,n);break;default:wn(e,t,n)}}function Fy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Uo(e)}catch(n){xe(t,t.return,n)}}}function Jy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Uo(e)}catch(n){xe(t,t.return,n)}}function Hw(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pp),t;default:throw Error(A(435,e.tag))}}function Kr(e,t){var n=Hw(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var a=Xw.bind(null,e,i);i.then(a,a)}})}function Ot(e,t,n){var i=t.deletions;if(i!==null)for(var a=0;a<i.length;a++){var o=i[a],l=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(ta(u.type)){Ue=u.stateNode,Pt=!1;break e}break;case 5:Ue=u.stateNode,Pt=!1;break e;case 3:case 4:Ue=u.stateNode.containerInfo,Pt=!0;break e}u=u.return}if(Ue===null)throw Error(A(160));Zy(l,r,o),Ue=null,Pt=!1,l=o.alternate,l!==null&&(l.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Wy(t,e,n),t=t.sibling}var En=null;function Wy(e,t,n){var i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var o=0;o<i.length;o++){var l=i[o];l.ref.impl=l.nextImpl}Ot(t,e,n),Lt(e),a&4&&(Wi(3,e,e.return),ir(3,e),Wi(5,e,e.return));break;case 1:Ot(t,e,n),Lt(e),a&512&&(ve||i===null||st(i,i.return)),a&64&&ot&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=En,Ot(t,e,n),Lt(e),a&512&&(ve||i===null||st(i,i.return)),a&4)if(a=i!==null?i.memoizedState:null,n=e.memoizedState,i===null)if(n===null)if(e.stateNode===null)if(ot)e.stateNode=Mb(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;t:switch(t){case"title":i=a.getElementsByTagName("title")[0],(!i||i[$l]||i[ct]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(t),a.head.insertBefore(i,a.querySelector("head > title"))),mt(i,t,n),i[ct]=e,rt(i),t=i;break e;case"link":if(o=Ip("link","href",a).get(t+(n.href||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(l,1);break t}}i=a.createElement(t),mt(i,t,n),a.head.appendChild(i);break;case"meta":if(o=Ip("meta","content",a).get(t+(n.content||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(l,1);break t}}i=a.createElement(t),mt(i,t,n),a.head.appendChild(i);break;default:throw Error(A(468,t))}i[ct]=e,rt(i),t=i}e.stateNode=t}else ot||Vf(o,e.type,e.stateNode);else e.stateNode=Up(o,n,e.memoizedProps);else a!==n?(a===null?(t=i.stateNode,t===null||ve||t.parentNode.removeChild(t)):a.count--,n===null?ot||Vf(o,e.type,e.stateNode):Up(o,n,e.memoizedProps)):n===null&&e.stateNode!==null&&xc(e,e.memoizedProps,i.memoizedProps);break;case 27:Ot(t,e,n),Lt(e),a&512&&(ve||i===null||st(i,i.return)),i!==null&&a&4&&xc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(o=_n,_n=!1,Ot(t,e,n),_n=o,Lt(e),a&512&&(ve||i===null||st(i,i.return)),e.flags&32){t=e.stateNode;try{Ao(t,""),ge=!0}catch(f){xe(e,e.return,f)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,xc(e,t,i!==null?i.memoizedProps:t)),a&1024&&(Tc=!0);break;case 6:if(Ot(t,e,n),Lt(e),a&4){if(e.stateNode===null)throw Error(A(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,ge=!0}catch(f){xe(e,e.return,f)}}break;case 3:if(ge=!1,mu=null,o=En,En=jl(t.containerInfo),Ot(t,e,n),En=o,Lt(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{Uo(t.containerInfo)}catch(f){xe(e,e.return,f)}Tc&&(Tc=!1,$y(e)),ge=!1;break;case 4:a=_n,_n=ot,i=wm(),o=En,En=jl(e.stateNode.containerInfo),Ot(t,e,n),Lt(e),En=o,ge&&vl&&(Uu=!0),ge=i,_n=a;break;case 12:Ot(t,e,n),Lt(e);break;case 31:Ot(t,e,n),Lt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Kr(e,t)));break;case 13:Ot(t,e,n),Lt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(rs=Wt()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Kr(e,t)));break;case 22:o=e.memoizedState!==null,l=i!==null&&i.memoizedState!==null;var r=ot,u=ve,s=_n;ot=r||o,_n=s||o,ve=u||l,Ot(t,e,n),ve=u,_n=s,ot=r,Lt(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||i===null||l||ot||ve||(t=l||ve,n=ot,i=ve,ot=o||ot,ve=t,Ci(e,2),ot=n,ve=i),!o&&_n||Tf(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Kr(e,n))));break;case 19:Ot(t,e,n),Lt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Kr(e,t)));break;case 30:a&512&&(ve||i===null||st(i,i.return)),a=wm(),o=vl,l=(n&335544064)===n,r=e.memoizedProps,vl=l&&gi(r.default,r.update)!=="none",Ot(t,e,n),Lt(e),l&&i!==null&&ge&&(e.flags|=4),vl=o,ge=a;break;case 21:break;case 7:a&512&&(ve||i===null||st(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Ot(t,e,n),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(By(i)){n=i;break}i=i.return}i=null;for(var a=e.return;a!==null;){if(Ad(a)){var o=a.stateNode;i===null?i=[o]:i.push(o)}if(Nd(a))break;a=a.return}var l=i;if(n==null)throw Error(A(160));switch(n.tag){case 27:var r=n.stateNode,u=Ec(e);ku(e,u,r,l);break;case 5:var s=n.stateNode;n.flags&32&&(Ao(s,""),n.flags&=-33);var f=Ec(e);ku(e,f,s,l);break;case 3:case 4:var p=n.stateNode.containerInfo,c=Ec(e);bf(e,c,p,l);break;default:throw Error(A(161))}}catch(m){xe(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $y(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$y(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Po=!0,t.reset(),Po=!1),e=e.sibling}}function $a(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)eb(t,e),t=t.sibling;else jy(t,!1)}function eb(e,t){var n=e.alternate;if(n===null)vf(e,!1);else switch(e.tag){case 3:if(Ef=kn=!1,mp(),$a(t,e),!kn&&!Uu){if(e=In,e!==null)for(var i=0;i<e.length;i+=3){n=e[i];var a=e[i+1];Nb(n,e[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Ef=!0}In=null;break;case 5:$a(t,e);break;case 4:i=kn,kn=!1,$a(t,e),kn&&(Uu=!0),kn=i;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?vf(e,!1):$a(t,e));break;case 30:i=kn,a=mp(),kn=!1,$a(t,e),kn&&(e.flags|=4);var o=e.memoizedProps,l=e.stateNode;t=ci(o,l),l=ci(n.memoizedProps,l);var r=gi(o.default,o.update);r==="none"?t=!1:(o=n.memoizedState,n.memoizedState=null,n=e.child,It=0,t=Cd(e,n,t,l,r,o,!0),It!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Lo(e,e.memoizedProps.onUpdate),In=a):a!==null&&(a.push.apply(a,In),In=a),kn=(e.flags&32)!==0?!0:i;break;default:$a(t,e)}}function Pn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Xy(e,t.alternate,t),t=t.sibling}function Ci(e,t){for(e=e.child;e!==null;){var n=e,i=t;switch(n.tag){case 0:case 11:case 14:case 15:Wi(4,n,n.return),Ci(n,i);break;case 1:st(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Iy(n,n.return,a),Ci(n,i);break;case 27:(i&2)!==0&&kb(n.stateNode,n.type,n.memoizedProps);case 5:st(n,n.return),n.tag!==5&&n.tag!==27||Cl(n),Ci(n,i);break;case 6:Cl(n);break;case 26:st(n,n.return),a=n.stateNode,n.memoizedState!==null||a===null||ve||a.parentNode.removeChild(a),Ci(n,i);break;case 22:n.memoizedState===null&&Ci(n,i);break;case 30:st(n,n.return),Ci(n,i);break;case 7:st(n,n.return);default:Ci(n,i)}e=e.sibling}}function xn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var i=t.alternate,a=e,o=t,l=o.flags,r=(n&1)!==0;switch(o.tag){case 0:case 11:case 15:xn(a,o,n),ir(4,o);break;case 1:if(xn(a,o,n),i=o,a=i.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(f){xe(i,i.return,f)}if(i=o,a=i.updateQueue,a!==null){var u=i.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)Kg(s[a],u)}catch(f){xe(i,i.return,f)}}r&&l&64&&Uy(o),Un(o,o.return);break;case 27:(n&2)!==0&&Gy(o);case 5:o.tag!==5&&o.tag!==27||dp(o),xn(a,o,n),r&&i===null&&l&4&&yf(o),Un(o,o.return);break;case 6:dp(o);break;case 26:u=o.stateNode,o.memoizedState!==null||u===null||ot||Vf(jl(u.ownerDocument),o.type,u),xn(a,o,n),r&&i===null&&l&4&&yf(o),Un(o,o.return);break;case 12:xn(a,o,n);break;case 31:xn(a,o,n),r&&l&4&&Fy(a,o);break;case 13:xn(a,o,n),r&&l&4&&Jy(a,o);break;case 22:o.memoizedState===null&&xn(a,o,n),Un(o,o.return);break;case 30:xn(a,o,n),Un(o,o.return);break;case 7:Un(o,o.return);default:xn(a,o,n)}t=t.sibling}}function Od(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&tr(n))}function Ld(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&tr(e))}function fn(e,t,n,i){var a=(n&335544064)===n;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)tb(e,t,n,i),t=t.sibling;else a&&qy(t)}function tb(e,t,n,i){var a=(n&335544064)===n;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&cu(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:fn(e,t,n,i),o&2048&&ir(9,t);break;case 1:fn(e,t,n,i);break;case 3:fn(e,t,n,i),a&&Ef&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),o&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&tr(o)));break;case 12:if(o&2048){fn(e,t,n,i),o=t.stateNode;try{var l=t.memoizedProps,r=l.id,u=l.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(s){xe(t,t.return,s)}}else fn(e,t,n,i);break;case 31:fn(e,t,n,i);break;case 13:fn(e,t,n,i);break;case 23:break;case 22:l=t.stateNode,r=t.alternate,t.memoizedState!==null?(a&&r!==null&&r.memoizedState===null&&cu(r),l._visibility&2?fn(e,t,n,i):Ol(e,t)):(a&&r!==null&&r.memoizedState!==null&&cu(t),l._visibility&2?fn(e,t,n,i):(l._visibility|=2,to(e,t,n,i,(t.subtreeFlags&10256)!==0||!1))),o&2048&&Od(r,t);break;case 24:fn(e,t,n,i),o&2048&&Ld(t.alternate,t);break;case 30:a&&(o=t.alternate,o!==null&&(Xn(o.child,!0),Xn(t.child,!0))),fn(e,t,n,i);break;default:fn(e,t,n,i)}}function to(e,t,n,i,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,l=t,r=n,u=i,s=l.flags;switch(l.tag){case 0:case 11:case 15:to(o,l,r,u,a),ir(8,l);break;case 23:break;case 22:var f=l.stateNode;l.memoizedState!==null?f._visibility&2?to(o,l,r,u,a):Ol(o,l):(f._visibility|=2,to(o,l,r,u,a)),a&&s&2048&&Od(l.alternate,l);break;case 24:to(o,l,r,u,a),a&&s&2048&&Ld(l.alternate,l);break;default:to(o,l,r,u,a)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,a=i.flags;switch(i.tag){case 22:Ol(n,i),a&2048&&Od(i.alternate,i);break;case 24:Ol(n,i),a&2048&&Ld(i.alternate,i);break;default:Ol(n,i)}t=t.sibling}}var ga=8192;function ha(e,t,n){if(e.subtreeFlags&ga)for(e=e.child;e!==null;)nb(e,t,n),e=e.sibling}function nb(e,t,n){switch(e.tag){case 26:ha(e,t,n),e.flags&ga&&(e.memoizedState!==null?Ux(n,En,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Gp(n,e)));break;case 5:ha(e,t,n),e.flags&ga&&(e=e.stateNode,(t&335544128)===t&&Gp(n,e));break;case 3:case 4:var i=En;En=jl(e.stateNode.containerInfo),ha(e,t,n),En=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ga,ga=16777216,ha(e,t,n),ga=i):ha(e,t,n));break;case 30:if((e.flags&ga)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var a=e.stateNode;a.paired=null,Ft===null&&(Ft=new Map),Ft.set(i,a)}ha(e,t,n);break;default:ha(e,t,n)}}function ib(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function dl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,ob(i,e)}ib(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ab(e),e=e.sibling}function ab(e){switch(e.tag){case 0:case 11:case 15:dl(e),e.flags&2048&&Wi(9,e,e.return);break;case 3:dl(e);break;case 12:dl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fu(e)):dl(e);break;default:dl(e)}}function fu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,ob(i,e)}ib(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wi(8,t,t.return),fu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,fu(t));break;default:fu(t)}e=e.sibling}}function ob(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:Wi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:tr(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,lt=i;else e:for(n=e;lt!==null;){i=lt;var a=i.sibling,o=i.return;if(Qy(i),i===n){lt=null;break e}if(a!==null){a.return=o,lt=a;break e}lt=o}}}var _w={getCacheForType:function(e){var t=ft(Fe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ft(Fe).controller.signal}},kw=typeof WeakMap=="function"?WeakMap:Map,ye=0,Ne=null,de=null,me=0,Se=0,Kt=null,ki=!1,Yo=!1,zd=!1,mi=0,qe=0,$i=0,Ea=0,Iu=0,Jt=0,Oo=0,Ll=null,Ut=null,Rf=!1,rs=0,lb=0,Bu=1/0,Gu=null,ji=null,Ie=0,Mn=null,La=null,jn=0,Nf=0,Af=null,rb=null,Eo=null,To=null,Mo=null,zl=0,du=null;function tn(){return(ye&2)!==0&&me!==0?me&-me:F.T!==null?Hd():fg()}function ub(){if(Jt===0)if((me&536870912)===0||se){var e=Hr;Hr<<=1,(Hr&3932160)===0&&(Hr=262144),Jt=e}else Jt=536870912;return e=pt.current,e!==null&&(e.flags|=32),Jt}function Lo(e,t){if(t!=null){var n=e.stateNode,i=n.ref;i===null&&(i=n.ref=Cb(ci(e.memoizedProps,n))),To===null&&(To=[]),To.push(t.bind(null,i))}}function Gt(e,t,n){(e===Ne&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(zo(e,0),Pi(e,me,Jt,!1)),Wl(e,n),((ye&2)===0||e!==Ne)&&(e===Ne&&((ye&2)===0&&(Ea|=n),qe===4&&Pi(e,me,Jt,!1)),Qn(e))}function sb(e,t,n){if((ye&6)!==0)throw Error(A(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Jl(e,t),a=i?Iw(e,t):Mc(e,t,!0),o=i;do{if(a===0){Yo&&!i&&Pi(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Pw(n)){a=Mc(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var r=e;a=Ll;var u=r.current.memoizedState.isDehydrated;if(u&&(zo(r,l).flags|=256),l=Mc(r,l,!1),l!==2&&l!==6){if(zd&&!u){r.errorRecoveryDisabledLanes|=o,Ea|=o,a=4;break e}o=Ut,Ut=a,o!==null&&(Ut===null?Ut=o:Ut.push.apply(Ut,o))}a=l}if(o=!1,a!==2)continue}}if(a===1){zo(e,0),Pi(e,t,0,!0);break}e:{switch(i=e,o=a,o){case 0:case 1:throw Error(A(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Pi(i,t,Jt,!ki);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(A(329))}if((t&62914560)===t&&(a=rs+300-Wt(),10<a)){if(Pi(i,t,Jt,!ki),Ku(i,0,!0)!==0)break e;jn=t,i.timeoutHandle=kd(gp.bind(null,i,n,Ut,Gu,Rf,t,Jt,Ea,Oo,ki,o,"Throttled",-0,0),a);break e}gp(i,n,Ut,Gu,Rf,t,Jt,Ea,Oo,ki,o,null,-0,0)}}break}while(!0);Qn(e)}function gp(e,t,n,i,a,o,l,r,u,s,f,p,c,m){e.timeoutHandle=-1;var S=t.subtreeFlags,b=(o&335544064)===o;if(p=null,(b||S&8192||(S&16785408)===16785408)&&(p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gn},Ft=null,nb(t,o,p),b&&(S=p,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(S.count++,S.waitingForViewTransition=!0,S=Xl.bind(S),b.finished.then(S,S))),S=(o&62914560)===o?rs-Wt():(o&4194048)===o?lb-Wt():0,S=Ix(p,S),S!==null)){jn=o,e.cancelPendingCommit=S(bp.bind(null,e,t,o,n,i,a,l,r,u,s,f,p,null,c,m)),Pi(e,o,l,!s);return}bp(e,t,o,n,i,a,l,r,u,s,f,p)}function Pw(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var a=n[i],o=a.getSnapshot;a=a.value;try{if(!nn(o(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pi(e,t,n,i){t=lg(e,t),t&=~Iu,t&=~Ea,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var a=t;0<a;){var o=31-en(a),l=1<<o;i[o]=-1,a&=~l}n!==0&&ug(e,n,t)}function us(){return(ye&6)===0?(ar(0,!1),!1):!0}function Dd(){if(de!==null){if(Se===0)var e=de.return;else e=de,li=ka=null,gd(e),So=null,Il=0,e=de;for(;e!==null;)Py(e.alternate,e),e=e.return;de=null}}function zo(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,ox(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),jn=0,Dd(),Ne=e,de=n=ri(e.current,null),me=t,Se=0,Kt=null,ki=!1,Yo=Jl(e,t),zd=!1,Oo=Jt=Iu=Ea=$i=qe=0,Ut=Ll=null,Rf=!1,mi=lg(e,t),Wu(),n}function cb(e,t){oe=null,F.H=Du,t===Go||t===ts?(t=Ym(),Se=3):t===ud?(t=Ym(),Se=4):Se=t===Td?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,de===null&&(qe=1,Hu(e,gn(t,e.current)))}function fb(){var e=pt.current;return e===null?!0:(me&4194048)===me?wt===null:(me&62914560)===me||(me&536870912)!==0?e===wt:!1}function db(){var e=F.H;return F.H=Du,e===null?Du:e}function hb(){var e=F.A;return F.A=_w,e}function Vu(){qe=4,ki||(me&4194048)!==me&&pt.current!==null||(Yo=!0),($i&134217727)===0&&(Ea&134217727)===0||Ne===null||Pi(Ne,me,Jt,!1)}function Mc(e,t,n){var i=ye;ye|=2;var a=db(),o=hb();(Ne!==e||me!==t)&&(Gu=null,zo(e,t)),t=!1;var l=qe;e:do try{if(Se!==0&&de!==null){var r=de,u=Kt;switch(Se){case 8:Dd(),l=6;break e;case 3:case 2:case 9:case 6:pt.current===null&&(t=!0);var s=Se;if(Se=0,Kt=null,po(e,r,u,s),n&&Yo){l=0;break e}break;default:s=Se,Se=0,Kt=null,po(e,r,u,s)}}Uw(),l=qe;break}catch(f){cb(e,f)}while(!0);return t&&e.shellSuspendCounter++,li=ka=null,ye=i,F.H=a,F.A=o,de===null&&(Ne=null,me=0,Wu()),l}function Uw(){for(;de!==null;)mb(de)}function Iw(e,t){var n=ye;ye|=2;var i=db(),a=hb();Ne!==e||me!==t?(Gu=null,Bu=Wt()+500,zo(e,t)):Yo=Jl(e,t);e:do try{if(Se!==0&&de!==null){t=de;var o=Kt;t:switch(Se){case 1:Se=0,Kt=null,po(e,t,o,1);break;case 2:case 9:if(Vm(o)){Se=0,Kt=null,yp(t);break}t=function(){Se!==2&&Se!==9||Ne!==e||(Se=7),Qn(e)},o.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:Vm(o)?(Se=0,Kt=null,yp(t)):(Se=0,Kt=null,po(e,t,o,7));break;case 5:var l=null;switch(de.tag){case 26:l=de.memoizedState;case 5:case 27:var r=de;if(l?Ib(l):r.stateNode.complete){Se=0,Kt=null;var u=r.sibling;if(u!==null)de=u;else{var s=r.return;s!==null?(de=s,ss(s)):de=null}break t}}Se=0,Kt=null,po(e,t,o,5);break;case 6:Se=0,Kt=null,po(e,t,o,6);break;case 8:Dd(),qe=6;break e;default:throw Error(A(462))}}Bw();break}catch(f){cb(e,f)}while(!0);return li=ka=null,F.H=i,F.A=a,ye=n,de!==null?0:(Ne=null,me=0,Wu(),qe)}function Bw(){for(;de!==null&&!iS();)mb(de)}function mb(e){var t=ky(e.alternate,e,mi);e.memoizedProps=e.pendingProps,t===null?ss(e):de=t}function yp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=op(n,t,t.pendingProps,t.type,void 0,me);break;case 11:t=op(n,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:gd(t);var i=t;i===ut&&(se?(Ru(i),i.tag===5&&i.stateNode!=null&&(Le=i.stateNode)):(Ru(i),se=!0));default:Py(n,t),t=de=Ug(t,mi),t=ky(n,t,mi)}e.memoizedProps=e.pendingProps,t===null?ss(e):de=t}function po(e,t,n,i){li=ka=null,gd(t),So=null,Il=0;var a=t.return;try{if(Nw(e,a,t,n,me)){qe=1,Hu(e,gn(n,e.current)),de=null;return}}catch(o){if(a!==null)throw de=a,o;qe=1,Hu(e,gn(n,e.current)),de=null;return}t.flags&32768?(se||i===1?e=!0:Yo||(me&536870912)!==0?e=!1:(ki=e=!0,(i===2||i===9||i===3||i===6)&&(i=pt.current,i!==null&&i.tag===13&&(i.flags|=16384))),pb(t,e)):ss(t)}function ss(e){var t=e;do{if((t.flags&32768)!==0){pb(t,ki);return}e=t.return;var n=Lw(t.alternate,t,mi);if(n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);qe===0&&(qe=5)}function pb(e,t){do{var n=zw(e.alternate,e);if(n!==null){n.flags&=32767,de=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=n}while(e!==null);qe=6,de=null}function bp(e,t,n,i,a,o,l,r,u,s,f,p){e.cancelPendingCommit=null;do cs();while(Ie!==0);if((ye&6)!==0)throw Error(A(327));if(t!==null){if(t===e.current)throw Error(A(177));e===Ne&&(de=Ne=null,me=0),La=t,Mn=e,jn=n,Af=a,rb=i,Gw(e,t,n,l,r,u,p)}}function Gw(e,t,n,i,a,o,l){var r=t.lanes|t.childLanes;if(Nf=r,r|=nd,hS(e,n,r,i,a,o),To=null,(n&335544064)===n?(Mo=pw(e),i=10262):(Mo=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,Kw(wu,function(){return zf(),null})):(e.callbackNode=null,e.callbackPriority=0),Pu=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=F.T,F.T=null,a=be.p,be.p=2,o=ye,ye|=4;try{Dw(e,t,n)}finally{ye=o,be.p=a,F.T=i}}Ie=1,Pu?Eo=fx(l,e.containerInfo,Mo,Cf,Of,Yw,Lf,zf,Vw,null,null):(Cf(),Of(),Lf())}function Vw(e){if(Ie!==0){var t=Mn.onRecoverableError;t(e,{componentStack:null})}}function Yw(){Ie===3&&(Ie=0,eb(La,Mn),Ie=4)}function Cf(){if(Ie===1){Ie=0;var e=Mn,t=La,n=jn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=F.T,F.T=null;var a=be.p;be.p=2;var o=ye;ye|=4;try{vl=Uu=!1,Wy(t,e,n),n=kf;var l=Og(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(l!==r&&r&&r.ownerDocument&&Cg(r.ownerDocument.documentElement,r)){if(u!==null&&td(r)){var s=u.start,f=u.end;if(f===void 0&&(f=s),"selectionStart"in r)r.selectionStart=s,r.selectionEnd=Math.min(f,r.value.length);else{var p=r.ownerDocument||document,c=p&&p.defaultView||window;if(c.getSelection){var m=c.getSelection(),S=r.textContent.length,b=Math.min(u.start,S),v=u.end===void 0?b:Math.min(u.end,S);!m.extend&&b>v&&(l=v,v=b,b=l);var d=Hm(r,b),h=Hm(r,v);if(d&&h&&(m.rangeCount!==1||m.anchorNode!==d.node||m.anchorOffset!==d.offset||m.focusNode!==h.node||m.focusOffset!==h.offset)){var g=p.createRange();g.setStart(d.node,d.offset),m.removeAllRanges(),b>v?(m.addRange(g),m.extend(h.node,h.offset)):(g.setEnd(h.node,h.offset),m.addRange(g))}}}}for(p=[],m=r;m=m.parentNode;)m.nodeType===1&&p.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<p.length;r++){var w=p[r];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Po=!!_f,kf=_f=null}finally{ye=o,be.p=a,F.T=i}}e.current=t,Ie=2}}function Of(){if(Ie===2){Ie=0;var e=Mn,t=La,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=F.T,F.T=null;var i=be.p;be.p=2;var a=ye;ye|=4;try{Xy(e,t.alternate,t)}finally{ye=a,be.p=i,F.T=n}}Ie=3}}function Lf(){if(Ie===4||Ie===3){Ie=0;var e=Eo;Eo=null,aS();var t=Mn,n=La,i=jn,a=rb,o=(i&335544064)===i?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?Ie=5:(Ie=0,La=Mn=null,gb(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(ji=null),Zf(i),n=n.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Fl,n,void 0,(n.current.flags&128)===128)}catch{}if(a!==null){n=F.T,o=be.p,be.p=2,F.T=null;try{for(var l=t.onRecoverableError,r=0;r<a.length;r++){var u=a[r];l(u.value,{componentStack:u.stack})}}finally{F.T=n,be.p=o}}if(a=To,l=Mo,Mo=null,a!==null&&(To=null,l===null&&(l=[]),e!==null))for(u=0;u<a.length;u++)n=(0,a[u])(l),n!==void 0&&e.finished.finally(n);(jn&3)!==0&&cs(),Qn(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===du?zl++:(zl=0,du=t):(zl=0,du=null),ar(0,!1)}}function gb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,tr(t)))}function cs(){return Eo!==null&&(Eo.skipTransition(),Eo=null),Cf(),Of(),Lf(),zf()}function zf(){if(Ie!==5)return!1;var e=Mn,t=Nf;Nf=0;var n=Zf(jn),i=F.T,a=be.p;try{be.p=32>n?32:n,F.T=null,n=Af,Af=null;var o=Mn,l=jn;if(Ie=0,La=Mn=null,jn=0,(ye&6)!==0)throw Error(A(331));var r=ye;if(ye|=4,ab(o.current),tb(o,o.current,l,n),ye=r,ar(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Fl,o)}catch{}return!0}finally{be.p=a,F.T=i,gb(e,t)}}function vp(e,t,n){t=gn(n,t),t=ff(e.stateNode,t,2),e=Vi(e,t,2),e!==null&&(Wl(e,2),Qn(e))}function xe(e,t,n){if(e.tag===3)vp(e,e,n);else for(;t!==null;){if(t.tag===3){vp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ji===null||!ji.has(i))){e=gn(n,e),n=Ly(2),i=Vi(t,n,2),i!==null&&(zy(n,i,t,e),Wl(i,2),Qn(i));break}}t=t.return}}function Rc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new kw;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(n)||(zd=!0,a.add(n),e=qw.bind(null,e,t,n),t.then(e,e))}function qw(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ne===e&&(me&n)===n&&((qe===4||qe===3&&(me&62914560)===me&&300>Wt()-rs)&&(ye&2)===0?zo(e,0):Iu|=n,Oo===me&&(Oo=0)),Qn(e)}function yb(e,t){t===0&&(t=rg()),e=_a(e,t),e!==null&&(Wl(e,t),Qn(e))}function jw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yb(e,n)}function Xw(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(A(314))}i!==null&&i.delete(t),yb(e,n)}function Kw(e,t){return Kf(e,t)}var Do=null,no=null,Df=!1,Yu=!1,Nc=!1,Ui=0;function Qn(e){e!==no&&e.next===null&&(no===null?Do=no=e:no=no.next=e),Yu=!0,Df||(Df=!0,Zw())}function ar(e,t){if(!Nc&&Yu){Nc=!0;do for(var n=!1,i=Do;i!==null;){if(!t)if(e!==0){var a=i.pendingLanes;if(a===0)var o=0;else{var l=i.suspendedLanes,r=i.pingedLanes;o=(1<<31-en(42|e)+1)-1,o&=a&~(l&~r),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Sp(i,o))}else o=me,o=Ku(i,i===Ne?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Jl(i,o)||(n=!0,Sp(i,o));i=i.next}while(n);Nc=!1}}function Qw(){bb()}function bb(){Yu=Df=!1;var e=0;Ui!==0&&ax()&&(e=Ui);for(var t=Wt(),n=null,i=Do;i!==null;){var a=i.next,o=vb(i,t);o===0?(i.next=null,n===null?Do=a:n.next=a,a===null&&(no=n)):(n=i,(e!==0||(o&3)!==0)&&(Yu=!0)),i=a}Ie!==0&&Ie!==5||ar(e,!1),Ui!==0&&(Ui=0)}function vb(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var l=31-en(o),r=1<<l,u=a[l];u===-1?((r&n)===0||(r&i)!==0)&&(a[l]=dS(r,t)):u<=t&&(e.expiredLanes|=r),o&=~r}if(t=Ne,n=me,n=Ku(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Se===2||Se===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&oc(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Jl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&oc(i),Zf(n)){case 2:case 8:n=ag;break;case 32:n=wu;break;case 268435456:n=og;break;default:n=wu}return i=Sb.bind(null,e),n=Kf(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&oc(i),e.callbackPriority=2,e.callbackNode=null,2}function Sb(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cs()&&e.callbackNode!==n)return null;var i=me;return i=Ku(e,e===Ne?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(sb(e,i,t),vb(e,Wt()),e.callbackNode!=null&&e.callbackNode===n?Sb.bind(null,e):null)}function Sp(e,t){if(cs())return null;sb(e,t,!0)}function Zw(){lx(function(){(ye&6)!==0?Kf(ig,Qw):bb()})}function Hd(){if(Ui===0){var e=Na;e===0&&(e=Dr,Dr<<=1,(Dr&261888)===0&&(Dr=256)),Ui=e}return Ui}function wp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:eu(e)}function Fw(e,t,n,i,a){if(t==="submit"&&n&&n.stateNode===a){var o=wp((a[Yt]||null).action),l=i.submitter;l&&(t=(t=l[Yt]||null)?wp(t.formAction):l.getAttribute("formAction"),t!==null&&(o=t,l=null));var r=new Zu("action","action",null,i,a);e.push({event:r,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ui!==0){var u=new FormData(a,l);sf(n,{pending:!0,data:u,method:a.method,action:o},null,u)}}else typeof o=="function"&&(r.preventDefault(),u=new FormData(a,l),sf(n,{pending:!0,data:u,method:a.method,action:o},o,u))},currentTarget:a}]})}}for(Qr=0;Qr<Jc.length;Qr++)Zr=Jc[Qr],xp=Zr.toLowerCase(),Ep=Zr[0].toUpperCase()+Zr.slice(1),Rn(xp,"on"+Ep);var Zr,xp,Ep,Qr;Rn(zg,"onAnimationEnd");Rn(Dg,"onAnimationIteration");Rn(Hg,"onAnimationStart");Rn("dblclick","onDoubleClick");Rn("focusin","onFocus");Rn("focusout","onBlur");Rn(rw,"onTransitionRun");Rn(uw,"onTransitionStart");Rn(sw,"onTransitionCancel");Rn(_g,"onTransitionEnd");No("onMouseEnter",["mouseout","mouseover"]);No("onMouseLeave",["mouseout","mouseover"]);No("onPointerEnter",["pointerout","pointerover"]);No("onPointerLeave",["pointerout","pointerover"]);Da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Da("onBeforeInput",["compositionend","keypress","textInput","paste"]);Da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Jw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vl));function wb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],a=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var l=i.length-1;0<=l;l--){var r=i[l],u=r.instance,s=r.currentTarget;if(r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=s;try{o(a)}catch(f){Eu(f)}a.currentTarget=null,o=u}else for(l=0;l<i.length;l++){if(r=i[l],u=r.instance,s=r.currentTarget,r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=s;try{o(a)}catch(f){Eu(f)}a.currentTarget=null,o=u}}}}function fe(e,t){var n=t[ym];n===void 0&&(n=t[ym]=new Set);var i=e+"__bubble";n.has(i)||(xb(t,e,2,!1),n.add(i))}function Ac(e,t,n){var i=0;t&&(i|=4),xb(n,e,i,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function _d(e){if(!e[Fr]){e[Fr]=!0,hg.forEach(function(n){n!=="selectionchange"&&(Jw.has(n)||Ac(n,!1,e),Ac(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fr]||(t[Fr]=!0,Ac("selectionchange",!1,t))}}function xb(e,t,n,i){switch(Xb(t)){case 2:var a=Yx;break;case 8:a=qx;break;default:a=Vd}n=a.bind(null,t,n,e),a=void 0,!Kc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),i?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Cc(e,t,n,i,a){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var l=i.tag;if(l===3||l===4){var r=i.stateNode.containerInfo;if(r===a)break;if(l===4)for(l=i.return;l!==null;){var u=l.tag;if((u===3||u===4)&&l.stateNode.containerInfo===a)return;l=l.return}for(;r!==null;){if(l=ya(r),l===null)return;if(u=l.tag,u===5||u===6||u===26||u===27){i=o=l;continue e}r=r.parentNode}}i=i.return}wg(function(){var s=o,f=Jf(n),p=[];e:{var c=kg.get(e);if(c!==void 0){var m=Zu,S=e;switch(e){case"keypress":if(nu(n)===0)break e;case"keydown":case"keyup":m=PS;break;case"focusin":S="focus",m=fc;break;case"focusout":S="blur",m=fc;break;case"beforeblur":case"afterblur":m=fc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Mm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=MS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=VS;break;case zg:case Dg:case Hg:m=AS;break;case _g:m=qS;break;case"scroll":case"scrollend":m=ES;break;case"wheel":m=XS;break;case"copy":case"cut":case"paste":m=OS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Nm;break;case"submit":m=BS;break;case"toggle":case"beforetoggle":m=QS}var b=(t&4)!==0,v=!b&&(e==="scroll"||e==="scrollend"),d=b?c!==null?c+"Capture":null:c;b=[];for(var h=s,g;h!==null;){var w=h;if(g=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||g===null||d===null||(w=Hl(h,d),w!=null&&b.push(Yl(h,w,g))),v)break;h=h.return}0<b.length&&(c=new m(c,S,null,n,f),p.push({event:c,listeners:b}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",c=e==="mouseout"||e==="pointerout",m&&n!==Xc&&(S=n.relatedTarget||n.fromElement)&&(ya(S)||S[Io]))break e;(c||m)&&(S=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,c?(m=n.relatedTarget||n.toElement,c=s,m=m?ya(m):null,m!==null&&(v=Zl(m),b=m.tag,m!==v||b!==5&&b!==27&&b!==6)&&(m=null)):(c=null,m=s),c!==m&&(b=Mm,w="onMouseLeave",d="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(b=Nm,w="onPointerLeave",d="onPointerEnter",h="pointer"),v=c==null?S:yl(c),g=m==null?S:yl(m),S=new b(w,h+"leave",c,n,f),S.target=v,S.relatedTarget=g,w=null,ya(f)===s&&(b=new b(d,h+"enter",m,n,f),b.target=g,b.relatedTarget=v,w=b),v=w,b=c&&m?Hc(c,m,Ww):null,c!==null&&Tp(p,S,c,b,!1),m!==null&&v!==null&&Tp(p,v,m,b,!0)))}e:{if(c=s?yl(s):window,m=c.nodeName&&c.nodeName.toLowerCase(),m==="select"||m==="input"&&c.type==="file")var E=Lm;else if(Om(c))if(Ng)E=aw;else{E=nw;var R=tw}else m=c.nodeName,!m||m.toLowerCase()!=="input"||c.type!=="checkbox"&&c.type!=="radio"?s&&Ff(s.elementType)&&(E=Lm):E=iw;if(E&&(E=E(e,s))){Rg(p,E,n,f);break e}R&&R(e,c,s)}switch(R=s?yl(s):window,e){case"focusin":(Om(R)||R.contentEditable==="true")&&(uo=R,Zc=s,xl=null);break;case"focusout":xl=Zc=uo=null;break;case"mousedown":Fc=!0;break;case"contextmenu":case"mouseup":case"dragend":Fc=!1,_m(p,n,f);break;case"selectionchange":if(lw)break;case"keydown":case"keyup":_m(p,n,f)}var x;if(ed)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else ro?Tg(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Eg&&n.locale!=="ko"&&(ro||N!=="onCompositionStart"?N==="onCompositionEnd"&&ro&&(x=xg()):(Hi=f,Wf="value"in Hi?Hi.value:Hi.textContent,ro=!0)),R=qu(s,N),0<R.length&&(N=new Rm(N,e,null,n,f),p.push({event:N,listeners:R}),x?N.data=x:(x=Mg(n),x!==null&&(N.data=x)))),(x=FS?JS(e,n):WS(e,n))&&(N=qu(s,"onBeforeInput"),0<N.length&&(R=new Rm("onBeforeInput","beforeinput",null,n,f),p.push({event:R,listeners:N}),R.data=x)),Fw(p,e,s,n,f)}wb(p,t)})}function Yl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qu(e,t){for(var n=t+"Capture",i=[];e!==null;){var a=e,o=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||o===null||(a=Hl(e,n),a!=null&&i.unshift(Yl(e,a,o)),a=Hl(e,t),a!=null&&i.push(Yl(e,a,o))),e.tag===3)return i;e=e.return}return[]}function Ww(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Tp(e,t,n,i,a){for(var o=t._reactName,l=[];n!==null&&n!==i;){var r=n,u=r.alternate,s=r.stateNode;if(r=r.tag,u!==null&&u===i)break;r!==5&&r!==26&&r!==27||s===null||(u=s,a?(s=Hl(n,o),s!=null&&l.unshift(Yl(n,s,u))):a||(s=Hl(n,o),s!=null&&l.push(Yl(n,s,u)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var $w=/\r\n?/g,ex=/\u0000|\uFFFD/g;function Mp(e){return(typeof e=="string"?e:""+e).replace($w,`
767
- `).replace(ex,"")}function Eb(e,t){return t=Mp(t),Mp(e)===t}function we(e,t,n,i,a,o){switch(n){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||Ao(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&Ao(e,""+i);else return;break;case"className":kr(e,"class",i);break;case"tabIndex":kr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":kr(e,n,i);break;case"style":Sg(e,i,o);return;case"data":if(t!=="object"){kr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=eu(i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&we(e,t,"name",a.name,a,null),we(e,t,"formEncType",a.formEncType,a,null),we(e,t,"formMethod",a.formMethod,a,null),we(e,t,"formTarget",a.formTarget,a,null)):(we(e,t,"encType",a.encType,a,null),we(e,t,"method",a.method,a,null),we(e,t,"target",a.target,a,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=eu(i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Gn);return;case"onScroll":i!=null&&fe("scroll",e);return;case"onScrollEnd":i!=null&&fe("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(A(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(A(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=eu(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":fe("beforetoggle",e),fe("toggle",e),$r(e,"popover",i);break;case"xlinkActuate":ii(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ii(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ii(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ii(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ii(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ii(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ii(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ii(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ii(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":$r(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=wS.get(n)||n,$r(e,n,i);else return}ge=!0}function Hf(e,t,n,i,a,o){switch(n){case"style":Sg(e,i,o);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(A(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(A(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof i=="string")Ao(e,i);else if(typeof i=="number"||typeof i=="bigint")Ao(e,""+i);else return;break;case"onScroll":i!=null&&fe("scroll",e);return;case"onScrollEnd":i!=null&&fe("scrollend",e);return;case"onClick":i!=null&&(e.onclick=Gn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!mg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),o=n.slice(2,a?n.length-7:void 0),t=e[Yt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(o,t,a),typeof i=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,i,a);break e}ge=!0,n in e?e[n]=i:i===!0?e.setAttribute(n,""):$r(e,n,i)}return}ge=!0}function mt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fe("error",e),fe("load",e);var i=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var l=n[o];if(l!=null)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:we(e,t,o,l,n,null)}}a&&we(e,t,"srcSet",n.srcSet,n,null),i&&we(e,t,"src",n.src,n,null);return;case"input":fe("invalid",e);var r=o=l=a=null,u=null,s=null;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"name":a=f;break;case"type":l=f;break;case"checked":u=f;break;case"defaultChecked":s=f;break;case"value":o=f;break;case"defaultValue":r=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(A(137,t));break;default:we(e,t,i,f,n,null)}}yg(e,o,r,u,s,l,a,!1);return;case"select":fe("invalid",e),i=l=o=null;for(a in n)if(n.hasOwnProperty(a)&&(r=n[a],r!=null))switch(a){case"value":o=r;break;case"defaultValue":l=r;break;case"multiple":i=r;default:we(e,t,a,r,n,null)}t=o,n=l,e.multiple=!!i,t!=null?yo(e,!!i,t,!1):n!=null&&yo(e,!!i,n,!0);return;case"textarea":fe("invalid",e),o=a=i=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":i=r;break;case"defaultValue":a=r;break;case"children":o=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(A(91));break;default:we(e,t,l,r,n,null)}vg(e,i,a,o);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:we(e,t,u,i,n,null)}return;case"dialog":fe("beforetoggle",e),fe("toggle",e),fe("cancel",e),fe("close",e);break;case"iframe":case"object":fe("load",e);break;case"video":case"audio":for(i=0;i<Vl.length;i++)fe(Vl[i],e);break;case"image":fe("error",e),fe("load",e);break;case"details":fe("toggle",e);break;case"embed":case"source":case"link":fe("error",e),fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(s in n)if(n.hasOwnProperty(s)&&(i=n[s],i!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:we(e,t,s,i,n,null)}return;default:if(Ff(t)){for(f in n)n.hasOwnProperty(f)&&(i=n[f],i!==void 0&&Hf(e,t,f,i,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(i=n[r],i!=null&&we(e,t,r,i,n,null))}var tx={};function nx(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,l=null,r=null,u=null,s=null,f=null;for(m in n){var p=n[m];if(n.hasOwnProperty(m)&&p!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":u=p;default:i.hasOwnProperty(m)||we(e,t,m,null,i,p)}}for(var c in i){var m=i[c];if(p=n[c],i.hasOwnProperty(c)&&(m!=null||p!=null))switch(c){case"type":m!==p&&(ge=!0),o=m;break;case"name":m!==p&&(ge=!0),a=m;break;case"checked":m!==p&&(ge=!0),s=m;break;case"defaultChecked":m!==p&&(ge=!0),f=m;break;case"value":m!==p&&(ge=!0),l=m;break;case"defaultValue":m!==p&&(ge=!0),r=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(A(137,t));break;default:m!==p&&we(e,t,c,m,i,p)}}jc(e,l,r,u,s,f,o,a);return;case"select":m=l=r=c=null;for(o in n)if(u=n[o],n.hasOwnProperty(o)&&u!=null)switch(o){case"value":break;case"multiple":m=u;default:i.hasOwnProperty(o)||we(e,t,o,null,i,u)}for(a in i)if(o=i[a],u=n[a],i.hasOwnProperty(a)&&(o!=null||u!=null))switch(a){case"value":o!==u&&(ge=!0),c=o;break;case"defaultValue":o!==u&&(ge=!0),r=o;break;case"multiple":o!==u&&(ge=!0),l=o;default:o!==u&&we(e,t,a,o,i,u)}t=r,n=l,i=m,c!=null?yo(e,!!n,c,!1):!!i!=!!n&&(t!=null?yo(e,!!n,t,!0):yo(e,!!n,n?[]:"",!1));return;case"textarea":m=c=null;for(r in n)if(a=n[r],n.hasOwnProperty(r)&&a!=null&&!i.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:we(e,t,r,null,i,a)}for(l in i)if(a=i[l],o=n[l],i.hasOwnProperty(l)&&(a!=null||o!=null))switch(l){case"value":a!==o&&(ge=!0),c=a;break;case"defaultValue":a!==o&&(ge=!0),m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(A(91));break;default:a!==o&&we(e,t,l,a,i,o)}bg(e,c,m);return;case"option":for(var S in n)if(c=n[S],n.hasOwnProperty(S)&&c!=null&&!i.hasOwnProperty(S))switch(S){case"selected":e.selected=!1;break;default:we(e,t,S,null,i,c)}for(u in i)if(c=i[u],m=n[u],i.hasOwnProperty(u)&&c!==m&&(c!=null||m!=null))switch(u){case"selected":c!==m&&(ge=!0),e.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:we(e,t,u,c,i,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)c=n[b],n.hasOwnProperty(b)&&c!=null&&!i.hasOwnProperty(b)&&we(e,t,b,null,i,c);for(s in i)if(c=i[s],m=n[s],i.hasOwnProperty(s)&&c!==m&&(c!=null||m!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(A(137,t));break;default:we(e,t,s,c,i,m)}return;default:if(Ff(t)){for(var v in n)c=n[v],n.hasOwnProperty(v)&&c!==void 0&&!i.hasOwnProperty(v)&&Hf(e,t,v,void 0,i,c);for(f in i)c=i[f],m=n[f],!i.hasOwnProperty(f)||c===m||c===void 0&&m===void 0||Hf(e,t,f,c,i,m);return}}for(var d in n)c=n[d],n.hasOwnProperty(d)&&c!=null&&!i.hasOwnProperty(d)&&we(e,t,d,null,i,c);for(p in i)c=i[p],m=n[p],!i.hasOwnProperty(p)||c===m||c==null&&m==null||we(e,t,p,c,i,m)}function Rp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ix(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var a=n[i],o=a.transferSize,l=a.initiatorType,r=a.duration;if(o&&r&&Rp(l)){for(l=0,r=a.responseEnd,i+=1;i<n.length;i++){var u=n[i],s=u.startTime;if(s>r)break;var f=u.transferSize,p=u.initiatorType;f&&Rp(p)&&(u=u.responseEnd,l+=f*(u<r?1:(r-s)/(u-s)))}if(--i,t+=8*(o+l)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _f=null,kf=null;function ql(e){return e.nodeType===9?e:e.ownerDocument}function Np(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Mb(e,t,n,i){return n=ql(n).createElement(e),n[ct]=i,n[Yt]=t,mt(n,e,t),rt(n),n}function Pf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Oc=null;function ax(){var e=window.event;return e&&e.type==="popstate"?e===Oc?!1:(Oc=e,!0):(Oc=null,!1)}var kd=typeof setTimeout=="function"?setTimeout:void 0,ox=typeof clearTimeout=="function"?clearTimeout:void 0,Ap=typeof Promise=="function"?Promise:void 0,Cp=typeof requestAnimationFrame=="function"?requestAnimationFrame:kd,lx=typeof queueMicrotask=="function"?queueMicrotask:typeof Ap<"u"?function(e){return Ap.resolve(null).then(e).catch(rx)}:kd;function rx(e){setTimeout(function(){throw e})}function ta(e){return e==="head"}function Op(e,t){var n=t,i=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(a),Uo(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")zc(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,zc(n);for(var o=n.firstChild;o;){var l=o.nextSibling,r=o.nodeName;o[$l]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=l}}else n==="body"&&zc(e.ownerDocument.body);n=a}while(n);Uo(t)}function Lp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Rb(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var a=i=0;a<t.length;a++){var o=t[a];0<o.width&&0<o.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Nb(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Ab(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Uf(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return Ab(t,n,e)}function ux(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Ab(t,n,e)}function sx(e){return e.documentElement.clientHeight}function cx(e){this.addEventListener("load",e),this.addEventListener("error",e)}function fx(e,t,n,i,a,o,l,r,u){var s=t.nodeType===9?t:t.ownerDocument;try{var f=s.startViewTransition({update:function(){var c=s.defaultView,m=c.navigation&&c.navigation.transition,S=s.fonts.status;i();var b=[];if(S==="loaded"&&(sx(s),s.fonts.status==="loading"&&b.push(s.fonts.ready)),S=b.length,e!==null)for(var v=e.suspenseyImages,d=0,h=0;h<v.length;h++){var g=v[h];if(!g.complete){var w=g.getBoundingClientRect();if(0<w.bottom&&0<w.right&&w.top<c.innerHeight&&w.left<c.innerWidth){if(d+=Bb(g),d>pu){b.length=S;break}g=new Promise(cx.bind(g)),b.push(g)}}}if(0<b.length)return c=Promise.race([Promise.all(b),new Promise(function(E){return setTimeout(E,500)})]).then(a,a),(m?Promise.allSettled([m.finished,c]):c).then(o,o);if(a(),m)return m.finished.then(o,o);o()},types:n});s.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var c=s.documentElement.getAnimations({subtree:!0}),m=0;m<c.length;m++){var S=c[m],b=S.effect,v=b.pseudoElement;if(v!=null&&v.startsWith("::view-transition")){p.push(S),S=b.getKeyframes();for(var d=v=void 0,h=!0,g=0;g<S.length;g++){var w=S[g],E=w.width;if(v===void 0)v=E;else if(v!==E){h=!1;break}if(E=w.height,d===void 0)d=E;else if(d!==E){h=!1;break}delete w.width,delete w.height,w.transform==="none"&&delete w.transform}h&&v!==void 0&&d!==void 0&&(b.setKeyframes(S),h=getComputedStyle(b.target,b.pseudoElement),h.width!==v||h.height!==d)&&(h=S[0],h.width=v,h.height=d,h=S[S.length-1],h.width=v,h.height=d,b.setKeyframes(S))}}l()},function(c){s.__reactViewTransition===f&&(s.__reactViewTransition=null);try{if(typeof c=="object"&&c!==null)switch(c.name){case"InvalidStateError":(c.message==="View transition was skipped because document visibility state is hidden."||c.message==="Skipping view transition because document visibility state has become hidden."||c.message==="Skipping view transition because viewport size changed."||c.message==="Transition was aborted because of invalid state")&&(c=null)}c!==null&&u(c)}finally{i(),a(),l()}}),f.finished.finally(function(){for(var c=0;c<p.length;c++)p[c].cancel();s.__reactViewTransition===f&&(s.__reactViewTransition=null),r()}),f}catch{return i(),a(),l(),null}}function ba(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}ba.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Ae({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};ba.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),i=[],a=0;a<n.length;a++){var o=n[a].effect;o!==null&&o.target===e&&o.pseudoElement===t&&i.push(n[a])}return i};ba.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Cb(e){return{name:e,group:new ba("group",e),imagePair:new ba("image-pair",e),old:new ba("old",e),new:new ba("new",e)}}function an(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}an.prototype.addEventListener=function(e,t,n){var i=null,a=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(Ob(o,e,t,n)===-1){var l=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){l.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),i!==null&&(a=l.removeEventListener.bind(l,e,t,n),i.addEventListener("abort",a,{once:!0}),a=i.removeEventListener.bind(i,"abort",a)),i=Ho(n),o.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:a}),Vt(this._fragmentFiber.child,!1,dx,e,r,i)}this._eventListeners=o}};function dx(e,t,n,i){return tt(e).addEventListener(t,n,i),!1}an.prototype.removeEventListener=function(e,t,n){var i=this._eventListeners;if(i!==null&&(t=Ob(i,e,t,n),t!==-1)){var a=i[t];n=a.attachedListener;var o=a.cleanup;a=Ho(a.optionsOrUseCapture),Vt(this._fragmentFiber.child,!1,hx,e,n,a),i.splice(t,1),o!==null&&o()}};function hx(e,t,n,i){return tt(e).removeEventListener(t,n,i),!1}function Ho(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Ob(e,t,n,i){if(e.length===0)return-1;i=zp(i);for(var a=0;a<e.length;a++){var o=e[a];if(o.type===t&&o.listener===n&&zp(o.optionsOrUseCapture)===i)return a}return-1}an.prototype.dispatchEvent=function(e){var t=za(this._fragmentFiber);if(t===null)return!0;t=tt(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var a=0;a<n.length;a++){var o=n[a];i.addEventListener(o.type,o.attachedListener,Ho(o.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),n)for(a=0;a<n.length;a++)o=n[a],i.removeEventListener(o.type,o.attachedListener,Ho(o.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)};an.prototype.focus=function(e){Vt(this._fragmentFiber.child,!0,Lb,e,void 0,void 0)};function Lb(e,t){return e.tag===6?!1:(e=tt(e),Mx(e,t))}an.prototype.focusLast=function(e){var t=[];Vt(this._fragmentFiber.child,!0,Pd,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Lb(t[n],e);n--);};function Pd(e,t){return t.push(e),!1}an.prototype.blur=function(){var e=za(this._fragmentFiber);e!==null&&(e=tt(e),e=ql(e).activeElement,e!==null&&Vt(this._fragmentFiber.child,!1,mx,e,void 0,void 0))};function mx(e,t){return e.tag===6?!1:(e=tt(e),e===t||e.contains(t)?(t.blur(),!0):!1)}an.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Vt(this._fragmentFiber.child,!1,px,e,void 0,void 0)};function px(e,t){return e.tag===6||(e=tt(e),t.observe(e)),!1}an.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Vt(this._fragmentFiber.child,!1,gx,e,void 0,void 0);for(var n=t=0;n<Tn.length;n++){var i=Tn[n];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):Tn[t++]=i}Tn.length=t}};function gx(e,t){return e.tag===6||(e=tt(e),t.unobserve(e)),!1}var Tn=[],Lc=!1;function yx(e,t,n){Tn.push({fragmentInstance:e,observer:t,instance:n}),Lc||(Lc=!0,Rx(function(){Lc=!1;var i=Tn;Tn=[];for(var a=0;a<i.length;a++){var o=i[a];o.observer.unobserve(o.instance)}}))}an.prototype.getClientRects=function(){var e=[];return Vt(this._fragmentFiber.child,!1,bx,e,void 0,void 0),e};function bx(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=tt(e),t.push.apply(t,e.getClientRects());return!1}an.prototype.getRootNode=function(e){var t=za(this._fragmentFiber);return t===null?this:tt(t).getRootNode(e)};an.prototype.compareDocumentPosition=function(e){var t=za(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Vt(this._fragmentFiber.child,!1,Pd,n,void 0,void 0);var i=tt(t);if(n.length===0){if(n=i,fm(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var a=i=n.compareDocumentPosition(e);return n===e?a=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=$p(t)[1],n===null?a=Node.DOCUMENT_POSITION_PRECEDING:(e=tt(n).compareDocumentPosition(e),a=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=tt(n[0]),a=tt(n[n.length-1]);var o=fm(this._fragmentFiber)?t.parentElement:i;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var l=t.compareDocumentPosition(e),r=a.compareDocumentPosition(e),u=l&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=i&&o&&l&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||o&&a===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!o&&a===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:l,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||vx(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function vx(e,t,n,i,a){var o=ya(a);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){n=!0;break e}o=o.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=a.ownerDocument,a===o||a===o.documentElement||a===o.body;e:{for(o=t,t=za(t);o!==null;){if(!(o.tag!==5&&o.tag!==3&&o.tag!==27||o!==t&&o.alternate!==t)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!o)&&!(t=o===n)&&(t=Hc(n,o,dm),t===null?t=!1:(Vt(t,!0,Z1,o,n),o=io,io=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===i)&&(t=Hc(i,o,dm),t===null?t=!1:(Vt(t,!0,F1,o,i),o=io,Dc=io=null,t=o!==null)),t):!1}function Dp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}an.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(A(566));var t=[];Vt(this._fragmentFiber.child,!1,Pd,t,void 0,void 0);var n=e!==!1;if(t.length===0){var i=$p(this._fragmentFiber);if(i=n?i[1]||i[0]||za(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=tt(i),Dp(e,n);return}if(i=tt(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=n?t.length-1:0;i!==(n?-1:t.length);){var a=t[i];a.tag===6?(a=tt(a),Dp(a,n)):tt(a).scrollIntoView(e),i+=n?-1:1}};function Sx(e,t){return e=tt(e),zb(e,t),!1}function zb(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Db(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];e.addEventListener(a.type,a.attachedListener,Ho(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){for(var l=0,r=0;r<Tn.length;r++){var u=Tn[r];(u.fragmentInstance!==t||u.observer!==o||u.instance!==e)&&(Tn[l++]=u)}Tn.length=l,o.observe(e)}),zb(e,t))}function wx(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];e.removeEventListener(a.type,a.attachedListener,Ho(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin=="string"?yx(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function If(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":If(n),Qu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function xx(e,t,n,i){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[$l])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=bn(e.nextSibling),e===null)break}return null}function Ex(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=bn(e.nextSibling),e===null))return null;return e}function Hb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=bn(e.nextSibling),e===null))return null;return e}function Bf(e){return e.data==="$?"||e.data==="$~"}function Ud(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Tx(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function bn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Gf=null;function Hp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return bn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function _p(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Mx(e,t){function n(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return i}function Rx(e){Cp(function(){Cp(function(t){return e(t)})})}function _b(e,t,n){switch(t=ql(n),e){case"html":if(e=t.documentElement,!e)throw Error(A(452));return e;case"head":if(e=t.head,!e)throw Error(A(453));return e;case"body":if(e=t.body,!e)throw Error(A(454));return e;default:throw Error(A(451))}}function kb(e,t,n){for(var i in n){var a=n[i];n.hasOwnProperty(i)&&a!=null&&we(e,t,i,null,tx,a)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Gn&&(e.onclick=null),Qu(e)}function zc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qu(e)}var vn=new Map,kp=new Set;function jl(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var yi=be.d;be.d={f:Nx,r:Ax,D:Cx,C:Ox,L:Lx,m:zx,X:Hx,S:Dx,M:_x};function Nx(){var e=yi.f(),t=us();return e||t}function Ax(e){var t=Bo(e);t!==null&&t.tag===5&&t.type==="form"?Sy(t):yi.r(e)}var qo=typeof document>"u"?null:document;function Pb(e,t,n){var i=qo;if(i&&typeof t=="string"&&t){var a=pn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),kp.has(a)||(kp.add(a),e={rel:e,crossOrigin:n,href:t},i.querySelector(a)===null&&(t=i.createElement("link"),mt(t,"link",e),rt(t),i.head.appendChild(t)))}}function Cx(e){yi.D(e),Pb("dns-prefetch",e,null)}function Ox(e,t){yi.C(e,t),Pb("preconnect",e,t)}function Lx(e,t,n){yi.L(e,t,n);var i=qo;if(i&&e&&t){var a='link[rel="preload"][as="'+pn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+pn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+pn(n.imageSizes)+'"]')):a+='[href="'+pn(e)+'"]';var o=a;switch(t){case"style":o=_o(e);break;case"script":o=jo(e)}if(!(vn.has(o)||(e=Ae({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),vn.set(o,e),i.querySelector(a)!==null||t==="style"&&i.querySelector(or(o))||t==="script"&&i.querySelector(lr(o))))){var l=i.createElement("link");mt(l,"link",e),t==="style"&&(l[xu]=!0,l.onload=l.onerror=function(){dg(l)}),rt(l),i.head.appendChild(l)}}}function zx(e,t){yi.m(e,t);var n=qo;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+pn(i)+'"][href="'+pn(e)+'"]',o=a;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=jo(e)}if(!vn.has(o)&&(e=Ae({rel:"modulepreload",href:e},t),vn.set(o,e),n.querySelector(a)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(lr(o)))return}i=n.createElement("link"),mt(i,"link",e),rt(i),n.head.appendChild(i)}}}function Dx(e,t,n){yi.S(e,t,n);var i=qo;if(i&&e){var a=go(i).hoistableStyles,o=_o(e);t=t||"default";var l=a.get(o);if(!l){var r={loading:0,preload:null};if(l=i.querySelector(or(o)))r.loading=5;else{e=Ae({rel:"stylesheet",href:e,"data-precedence":t},n),(n=vn.get(o))&&Id(e,n);var u=l=i.createElement("link");rt(u),mt(u,"link",e),u._p=new Promise(function(s,f){u.onload=s,u.onerror=f}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,hu(l,t,i)}l={type:"stylesheet",instance:l,count:1,state:r},a.set(o,l)}}}function Hx(e,t){yi.X(e,t);var n=qo;if(n&&e){var i=go(n).hoistableScripts,a=jo(e),o=i.get(a);o||(o=n.querySelector(lr(a)),o||(e=Ae({src:e,async:!0},t),(t=vn.get(a))&&Bd(e,t),o=n.createElement("script"),rt(o),mt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(a,o))}}function _x(e,t){yi.M(e,t);var n=qo;if(n&&e){var i=go(n).hoistableScripts,a=jo(e),o=i.get(a);o||(o=n.querySelector(lr(a)),o||(e=Ae({src:e,async:!0,type:"module"},t),(t=vn.get(a))&&Bd(e,t),o=n.createElement("script"),rt(o),mt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(a,o))}}function Pp(e,t,n,i){var a=(a=Ii.current)?jl(a):null;if(!a)throw Error(A(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=_o(n.href),t=go(a).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=_o(n.href);var o=go(a).hoistableStyles,l=o.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,l),(o=a.querySelector(or(e)))?o._p||(l.instance=o,l.state.loading=5):(o=vn.get(e),o||(o={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vn.set(e,o)),kx(a,e,o,l.state))),t&&i===null)throw Error(A(528,""));return l}if(t&&i!==null)throw Error(A(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=jo(n),t=go(a).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(A(444,e))}}function _o(e){return'href="'+pn(e)+'"'}function or(e){return'link[rel="stylesheet"]['+e+"]"}function Ub(e){return Ae({},e,{"data-precedence":e.precedence,precedence:null})}function kx(e,t,n,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[xu]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[xu]=!0,t.onload=t.onerror=dg.bind(null,t),mt(t,"link",n),rt(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function jo(e){return'[src="'+pn(e)+'"]'}function lr(e){return"script[async]"+e}function Up(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+pn(n.href)+'"]');if(i)return t.instance=i,rt(i),i;var a=Ae({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),rt(i),mt(i,"style",a),hu(i,n.precedence,e),t.instance=i;case"stylesheet":a=_o(n.href);var o=e.querySelector(or(a));if(o)return t.state.loading|=4,t.instance=o,rt(o),o;i=Ub(n),(a=vn.get(a))&&Id(i,a),o=(e.ownerDocument||e).createElement("link"),rt(o);var l=o;return l._p=new Promise(function(r,u){l.onload=r,l.onerror=u}),mt(o,"link",i),t.state.loading|=4,hu(o,n.precedence,e),t.instance=o;case"script":return o=jo(n.src),(a=e.querySelector(lr(o)))?(t.instance=a,rt(a),a):(i=n,(a=vn.get(o))&&(i=Ae({},n),Bd(i,a)),e=e.ownerDocument||e,a=e.createElement("script"),rt(a),mt(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(A(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,hu(i,n.precedence,e));return t.instance}function hu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,o=a,l=0;l<i.length;l++){var r=i[l];if(r.dataset.precedence===t)o=r;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Bd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var mu=null;function Ip(e,t,n){if(mu===null){var i=new Map,a=mu=new Map;a.set(n,i)}else a=mu,i=a.get(n),i||(i=new Map,a.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[$l]||o[ct]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var l=o.getAttribute(t)||"";l=e+l;var r=i.get(l);r?r.push(o):i.set(l,[o])}}return i}function Vf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Px(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Bp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Ib(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Bb(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Gp(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Bb(t),e.suspenseyImages.push(t)),e=Bx.bind(e),t.decode().then(e,e))}function Ux(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=_o(i.href),o=t.querySelector(or(a));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Xl.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,rt(o);return}o=t.ownerDocument||t,i=Ub(i),(a=vn.get(a))&&Id(i,a),o=o.createElement("link"),rt(o);var l=o;l._p=new Promise(function(r,u){l.onload=r,l.onerror=u}),mt(o,"link",i),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Xl.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var pu=0;function Ix(e,t){return e.stylesheets&&e.count===0&&gu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&gu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&pu===0&&(pu=62500*ix());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&gu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>pu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(a)}}:null}function Gb(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)gu(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Xl(){this.count--,Gb(this)}function Bx(){this.imgCount--,Gb(this)}var ju=null;function gu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ju=new Map,t.forEach(Gx,e),ju=null,Xl.call(e))}function Gx(e,t){if(!(t.state.loading&4)){var n=ju.get(e);if(n)var i=n.get(null);else{n=new Map,ju.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var l=a[o];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),i=l)}i&&n.set(null,i)}a=t.instance,l=a.getAttribute("data-precedence"),o=n.get(l)||i,o===i&&n.set(null,a),n.set(l,a),this.count++,i=Xl.bind(this),a.addEventListener("load",i),a.addEventListener("error",i),o?o.parentNode.insertBefore(a,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var ko={$$typeof:Bn,Provider:null,Consumer:null,_currentValue:va,_currentValue2:va,_threadCount:0};function Vx(e,t,n,i,a,o,l,r,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=lc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lc(0),this.hiddenUpdates=lc(null),this.identifierPrefix=i,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function Vb(e,t,n,i,a,o,l,r,u,s,f,p){return e=new Vx(e,t,n,l,u,s,f,p,r),t=1,o===!0&&(t|=24),o=Bt(3,null,null,t),e.current=o,o.stateNode=e,t=ld(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:t},sd(o),e}function Yb(e){return e?(e=fo,e):fo}function qb(e,t,n,i,a,o){a=Yb(a),i.context===null?i.context=a:i.pendingContext=a,i=Gi(t),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=Vi(e,i,t),n!==null&&(Gt(n,e,t),Tl(n,e,t))}function Vp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gd(e,t){Vp(e,t),(e=e.alternate)&&Vp(e,t)}function jb(e){if(e.tag===13||e.tag===31){var t=_a(e,67108864);t!==null&&Gt(t,e,67108864),Gd(e,67108864)}}function Yp(e){if(e.tag===13||e.tag===31){var t=tn();t=Qf(t);var n=_a(e,t);n!==null&&Gt(n,e,t),Gd(e,t)}}var Po=!0;function Yx(e,t,n,i){var a=F.T;F.T=null;var o=be.p;try{be.p=2,Vd(e,t,n,i)}finally{be.p=o,F.T=a}}function qx(e,t,n,i){var a=F.T;F.T=null;var o=be.p;try{be.p=8,Vd(e,t,n,i)}finally{be.p=o,F.T=a}}function Vd(e,t,n,i){if(Po){var a=Yf(i);if(a===null)Cc(e,t,i,Xu,n),qp(e,i);else if(Xx(a,e,t,n,i))i.stopPropagation();else if(qp(e,i),t&4&&-1<jx.indexOf(e)){for(;a!==null;){var o=Bo(a);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var l=ma(o.pendingLanes);if(l!==0){var r=o;for(r.pendingLanes|=2,r.entangledLanes|=2;l;){var u=1<<31-en(l);r.entanglements[1]|=u,l&=~u}Qn(o),(ye&6)===0&&(Bu=Wt()+500,ar(0,!1))}}break;case 31:case 13:r=_a(o,2),r!==null&&Gt(r,o,2),us(),Gd(o,2)}if(o=Yf(i),o===null&&Cc(e,t,i,Xu,n),o===a)break;a=o}a!==null&&i.stopPropagation()}else Cc(e,t,i,null,n)}}function Yf(e){return e=Jf(e),Yd(e)}var Xu=null;function Yd(e){if(Xu=null,e=ya(e),e!==null){var t=Zl(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Fp(t),e!==null)return e;e=null}else if(n===31){if(e=Jp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Xu=e,null}function Xb(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(oS()){case ig:return 2;case ag:return 8;case wu:case lS:return 32;case og:return 268435456;default:return 32}default:return 32}}var qf=!1,Xi=null,Ki=null,Qi=null,Kl=new Map,Ql=new Map,zi=[],jx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function qp(e,t){switch(e){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Ki=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":Kl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ql.delete(t.pointerId)}}function hl(e,t,n,i,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[a]},t!==null&&(t=Bo(t),t!==null&&jb(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Xx(e,t,n,i,a){switch(t){case"focusin":return Xi=hl(Xi,e,t,n,i,a),!0;case"dragenter":return Ki=hl(Ki,e,t,n,i,a),!0;case"mouseover":return Qi=hl(Qi,e,t,n,i,a),!0;case"pointerover":var o=a.pointerId;return Kl.set(o,hl(Kl.get(o)||null,e,t,n,i,a)),!0;case"gotpointercapture":return o=a.pointerId,Ql.set(o,hl(Ql.get(o)||null,e,t,n,i,a)),!0}return!1}function Kb(e){var t=ya(e.target);if(t!==null){var n=Zl(t);if(n!==null){if(t=n.tag,t===13){if(t=Fp(n),t!==null){e.blockedOn=t,gm(e.priority,function(){Yp(n)});return}}else if(t===31){if(t=Jp(n),t!==null){e.blockedOn=t,gm(e.priority,function(){Yp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function yu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yf(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Xc=i,n.target.dispatchEvent(i),Xc=null}else return t=Bo(n),t!==null&&jb(t),e.blockedOn=n,!1;t.shift()}return!0}function jp(e,t,n){yu(e)&&n.delete(t)}function Kx(){qf=!1,Xi!==null&&yu(Xi)&&(Xi=null),Ki!==null&&yu(Ki)&&(Ki=null),Qi!==null&&yu(Qi)&&(Qi=null),Kl.forEach(jp),Ql.forEach(jp)}function Jr(e,t){e.blockedOn===t&&(e.blockedOn=null,qf||(qf=!0,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,Kx)))}var Wr=null;function Xp(e){Wr!==e&&(Wr=e,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,function(){Wr===e&&(Wr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],a=e[t+2];if(typeof i!="function"){if(Yd(i||n)===null)continue;break}var o=Bo(n);o!==null&&(e.splice(t,3),t-=3,sf(o,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function Uo(e){function t(u){return Jr(u,e)}Xi!==null&&Jr(Xi,e),Ki!==null&&Jr(Ki,e),Qi!==null&&Jr(Qi,e),Kl.forEach(t),Ql.forEach(t);for(var n=0;n<zi.length;n++){var i=zi[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<zi.length&&(n=zi[0],n.blockedOn===null);)Kb(n),n.blockedOn===null&&zi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var a=n[i],o=n[i+1],l=a[Yt]||null;if(typeof o=="function")l||Xp(n);else if(l){var r=null;if(o&&o.hasAttribute("formAction")){if(a=o,l=o[Yt]||null)r=l.formAction;else if(Yd(a)!==null)continue}else r=l.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),Xp(n)}}}function Qb(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(l){return a=l})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function qd(e){this._internalRoot=e}fs.prototype.render=qd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));var n=t.current,i=tn();qb(n,i,e,t,null,null)};fs.prototype.unmount=qd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qb(e.current,2,null,e,null,null),us(),t[Io]=null}};function fs(e){this._internalRoot=e}fs.prototype.unstable_scheduleHydration=function(e){if(e){var t=fg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zi.length&&t!==0&&t<zi[n].priority;n++);zi.splice(n,0,e),n===0&&Kb(e)}};var Kp=Qp.version;if(Kp!=="19.3.0")throw Error(A(527,Kp,"19.3.0"));be.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=Q1(t),e=e!==null?Wp(e):null,e=e===null?null:e.stateNode,e};var Qx={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ml=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ml.isDisabled&&ml.supportsFiber))try{Fl=ml.inject(Qx),$t=ml}catch{}var ml;ds.createRoot=function(e,t){if(!Zp(e))throw Error(A(299));var n=!1,i="",a=Ay,o=Cy,l=Oy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Vb(e,1,!1,null,null,n,i,null,a,o,l,Qb),e[Io]=t.current,_d(e),new qd(t)};ds.hydrateRoot=function(e,t,n){if(!Zp(e))throw Error(A(299));var i=!1,a="",o=Ay,l=Cy,r=Oy,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Vb(e,1,!0,t,n??null,i,a,u,o,l,r,Qb),t.context=Yb(null),n=t.current,i=tn(),i=Qf(i),a=Gi(i),a.callback=null,Vi(n,a,i),n=i,t.current.lanes=n,Wl(t,n),Qn(t),e[Io]=t.current,_d(e),new fs(t)};ds.version="19.3.0"});var Wb=Dn((eM,Jb)=>{"use strict";M();function Fb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fb)}catch(e){console.error(e)}}Fb(),Jb.exports=Zb()});var bv=Dn(Es=>{"use strict";M();var cE=Symbol.for("react.transitional.element"),fE=Symbol.for("react.fragment");function yv(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:cE,type:e,key:i,ref:t!==void 0?t:null,props:n}}Es.Fragment=fE;Es.jsx=yv;Es.jsxs=yv});var pe=Dn((ZM,vv)=>{"use strict";M();vv.exports=bv()});M();M();var h1=j(Wb(),1);M();var J=j($e(),1);M();var Nn=e=>e;M();M();M();var Zx=["path","circle","ellipse","line","polyline","polygon","rect","g"],Fx={fill:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,stroke:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,strokeWidth:/^[\d.]+$/,strokeLinecap:/^(?:butt|round|square)$/,strokeLinejoin:/^(?:miter|round|bevel)$/,fillRule:/^(?:nonzero|evenodd)$/,opacity:/^[\d.]+$/,fillOpacity:/^[\d.]+$/,strokeOpacity:/^[\d.]+$/,transform:/^(?:(?:matrix|translate|scale|rotate|skewX|skewY)\([\deE+.,\s-]+\)[,\s]*)+$/,d:/^[mMlLhHvVcCsSqQtTaAzZeE\d+.,\s-]+$/,points:/^[\deE+.,\s-]+$/},Jx=["x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height"],ev=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,tv=1024;function jd(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function $b(e){let t=jd(e),n={};for(let[i,a]of Object.entries(Fx)){let o=t[i],l=i==="d"||i==="points"?4096:i==="transform"?128:32;typeof o=="string"&&o.length<=l&&a.test(o)&&(n[i]=o)}for(let i of Jx){let a=t[i];typeof a=="string"&&a.length<=32&&ev.test(a)&&Math.abs(Number(a))<=1e5&&(n[i]=a)}return n}function nv(e){let{viewBox:t,attrs:n,shapes:i}=jd(e);if(typeof t!="string"||t.length>100)return;let a=t.trim().split(/[\s,]+/);if(a.length!==4||!a.every(u=>ev.test(u)&&Math.abs(Number(u))<=1e5)||Number(a[2])<=0||Number(a[3])<=0)return;let o=64;function l(u,s){if(!Array.isArray(u)||s>6)return[];let f=[];for(let p of u){if(o--<=0)break;let{tag:c,attrs:m,shapes:S}=jd(p),b=Zx.find(v=>v===c);b&&f.push({tag:b,attrs:$b(m),shapes:b==="g"?l(S,s+1):[]})}return f}let r=l(i,0);return r.length?{viewBox:a.join(" "),attrs:$b(n),shapes:r}:void 0}M();var iv=["siblings","ontology","crosslinks","sidecar"],Xd={view:["compass","mindmap"],dock:["left","right","bottom"],theme:["system","light","dark"]},hs=["view",...iv,"dock","theme"],Kd={view:"compass",siblings:!0,ontology:!0,crosslinks:!1,sidecar:!0,dock:"right",theme:"system"};function ms(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e,n={},i=Xd.view.find(l=>l===t.view),a=Xd.dock.find(l=>l===t.dock),o=Xd.theme.find(l=>l===t.theme);i&&(n.view=i),a&&(n.dock=a),o&&(n.theme=o);for(let l of iv){let r=t[l];typeof r=="boolean"&&(n[l]=r)}return Object.keys(n).length?n:void 0}var gs=1e4,Wx=25e4,$x=256*1024*1024,lv=24*1024*1024,Zd="data/search.json",Fd="theme/publication.css",hM=48*1024,Jd=["parent","child","left","right","previous","next"],eE=["document","drawing","attachment","folder","tag","url"],tE=/^(?:index\.html|\.nojekyll|data\/search\.json|theme\/publication\.css|notes\/[a-f0-9-]{36}\.html|assets\/[a-f0-9]{64}\.(?:png|jpe?g|gif|webp|avif|svg|mp3|ogg|wav|mp4|webm|pdf)|runtime\/(?:compass\.css|(?:compass|demo|chunk(?:-[a-zA-Z0-9]+)?)\.js(?:\.LEGAL\.txt)?)|LICENSES\/(?:K-Plex|React|ReactDOM|Scheduler|Lucide|Source)\.txt)$/,nE=/^[a-f0-9]{64}$/,av=["none","arrow","triangle","bar","dot"],iE=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,aE=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Wd(e){return typeof e=="string"&&e.length<=2048&&!/[\s\\<>"\p{Cc}]/u.test(e)&&/^https?:\/\/(?:[a-z0-9._-]+|\[[a-f0-9:.]+\])(?::\d{1,5})?(?:[/?#]|$)/i.test(e)}function bi(e){return typeof e=="string"&&aE.test(e)}function $d(e){if(!bi(e))throw new Error("Invalid public note ID");return`notes/${e}.html`}function eh(e){return typeof e=="string"&&e.length<=180&&tE.test(e)}function An(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid publication record");return e}function Pa(e,t){return typeof e=="string"&&e.length<=t&&e.trim().length>0&&!/\p{Cc}/u.test(e)}function Zn(e,t,n){return typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=n}function rv(e,t){return Zn(e,0,t-1)&&Number.isInteger(e)}function ps(e,t){let n=An(e),i={};for(let r of["fill","stroke","color","gate"]){let u=n[r];if(u!==void 0){if(typeof u!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(u))throw new Error("Invalid publication color");i[r]=u}}let{fontSize:a,gateRadius:o,icon:l}=n;if(a!==void 0&&!Zn(a,6,96))throw new Error("Invalid publication font size");if(o!==void 0&&!Zn(o,0,40))throw new Error("Invalid publication gate radius");if(l!=null&&!rv(l,t))throw new Error("Invalid publication icon reference");return{...i,fontSize:a,gateRadius:o,...l===void 0?{}:{icon:l}}}function oE(e,t){let{center:n,sibling:i,inferred:a}=An(e);return{center:n===void 0?void 0:ps(n,t),sibling:i===void 0?void 0:ps(i,t),inferred:a===void 0?void 0:ps(a,t)}}function lE(e){let{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:o,endHead:l,labelColor:r,labelSize:u}=An(e);if(t!==void 0&&(typeof t!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(t))||n!==void 0&&!Zn(n,.25,20)||i!==void 0&&typeof i!="boolean"||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication link style");let s=av.find(p=>p===o),f=av.find(p=>p===l);if(o!==void 0&&!s||l!==void 0&&!f)throw new Error("Invalid publication arrow type");if(r!==void 0&&(typeof r!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(r))||u!==void 0&&!Zn(u,6,96))throw new Error("Invalid publication link label");return{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:s,endHead:f,labelColor:r,labelSize:u}}function rE(e){let t=An(e),n={};if(t.maximum!==void 0){if(!Zn(t.maximum,1,400)||!Number.isInteger(t.maximum))throw new Error("Invalid publication scene limit");n.maximum=t.maximum}if(t.flip!==void 0){if(typeof t.flip!="boolean")throw new Error("Invalid publication orientation");n.flip=t.flip}if(t.showCrossLinks!==void 0){if(typeof t.showCrossLinks!="boolean")throw new Error("Invalid publication crosslinks preference");n.showCrossLinks=t.showCrossLinks}if(t.geometry!==void 0){let i=An(t.geometry),a={},o=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let l of o){let r=i[l];if(r!==void 0){if(!Zn(r,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(a,{[l]:r})}}if(i.compactView!==void 0&&typeof i.compactView!="boolean")throw new Error("Invalid publication compact mode");if(i.lateralArrangement!==void 0&&i.lateralArrangement!=="split"&&i.lateralArrangement!=="left")throw new Error("Invalid publication side layout");n.geometry={...a,...i.compactView===void 0?{}:{compactView:i.compactView},...i.lateralArrangement===void 0?{}:{lateralArrangement:i.lateralArrangement}}}if(t.typography!==void 0){let{baseFontSize:i,wrapNodeLabels:a,propertyFontSize:o}=An(t.typography);if(i!==void 0&&!Zn(i,6,48)||o!==void 0&&!Zn(o,6,48)||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:i,wrapNodeLabels:a,propertyFontSize:o}}return n}function uE(e){let t=Object.entries(An(e));if(t.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[i,a]of t){if(!Pa(i,192)||["__proto__","constructor","prototype"].includes(i))throw new Error("Invalid publication property name");if(Pa(a,1e3)||typeof a=="boolean"||typeof a=="number"&&Number.isFinite(a))n.set(i,a);else if(Array.isArray(a)&&a.length<=48&&a.every(o=>Pa(o,1e3)))n.set(i,[...a]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function uv(e){let t=An(e);if(t.version!==2||typeof t.runtimeVersion!="string"||!iE.test(t.runtimeVersion))throw new Error("Unsupported publication version");let{colorMode:n}=t;if(n!==void 0&&n!=="light"&&n!=="dark"&&n!=="both")throw new Error("Invalid publication color mode");if(!bi(t.id)||!bi(t.entry)||!Pa(t.title,240)||typeof t.fullText!="boolean"||!Array.isArray(t.nodes)||!t.nodes.length||t.nodes.length>gs||!Array.isArray(t.relations)||t.relations.length>Wx||!Array.isArray(t.resources)||t.resources.length>gs*4)throw new Error("Invalid publication manifest");let i=0,a=new Set,o=t.resources.map(b=>{let{path:v,bytes:d,sha256:h}=An(b);if(!eh(v)||a.has(v)||!Zn(d,0,32*1024*1024)||!Number.isInteger(d)||typeof h!="string"||!nE.test(h))throw new Error("Invalid publication resource");if(a.add(v),i+=d,i>$x)throw new Error("Publication exceeds package limit");return{path:v,bytes:d,sha256:h}}),l;if(t.icons!==void 0){if(!Array.isArray(t.icons)||t.icons.length>tv)throw new Error("Invalid publication icons");l=t.icons.map(b=>{let v=nv(b);if(!v)throw new Error("Invalid publication icon");return v})}let r=l?.length??0,u=new Set,s=new Set,f=t.nodes.map(b=>{let v=An(b),{id:d,title:h,aliases:g,asset:w,url:E,trailIcon:R}=v,x=eE.find(N=>N===v.kind);if(!bi(d)||u.has(d)||!Pa(h,512)||!x)throw new Error("Invalid publication node");if(u.add(d),x==="document"||x==="drawing"){let N=$d(d);if(!a.has(N))throw new Error("Missing publication note resource");s.add(N)}if(w!==void 0&&(typeof w!="string"||!w.startsWith("assets/")||!a.has(w)))throw new Error("Missing publication asset");if(E!==void 0&&(x!=="url"||!Wd(E)))throw new Error("Invalid publication web link");if(R!==void 0&&!rv(R,r))throw new Error("Invalid publication trail icon");if(g!==void 0&&(!Array.isArray(g)||g.length>64||!g.every(N=>Pa(N,512))))throw new Error("Invalid publication aliases");return{id:d,title:h,kind:x,...g===void 0?{}:{aliases:[...g]},...w===void 0?{}:{asset:w},...E===void 0?{}:{url:E},...R===void 0?{}:{trailIcon:R},...v.style===void 0?{}:{style:ps(v.style,r)},...v.roleStyles===void 0?{}:{roleStyles:oE(v.roleStyles,r)},...v.properties===void 0?{}:{properties:uE(v.properties)}}});if(!u.has(t.entry)||[...a].some(b=>b.startsWith("notes/")&&!s.has(b))||t.fullText!==a.has(Zd))throw new Error("Invalid publication document catalogue");let p;if(t.pins!==void 0){if(!Array.isArray(t.pins)||t.pins.length>u.size)throw new Error("Invalid publication pins");let b=t.pins;if(new Set(b).size!==b.length||!b.every(v=>typeof v=="string"&&u.has(v)))throw new Error("Invalid publication pins");p=b.slice()}let c=new Set,m=t.relations.map(b=>{let{source:v,target:d,relationType:h,direction:g,definition:w,role:E,style:R}=An(b),x=Jd.find(G=>G===E);if(typeof v!="string"||typeof d!="string"||v===d||!u.has(v)||!u.has(d)||!x||h!==1&&h!==2||g!==null&&g!==1&&g!==2&&g!==3||w!==void 0&&!Pa(w,192))throw new Error("Invalid publication relationship");let N=`${v}/${d}/${x}`;if(c.has(N))throw new Error("Duplicate publication relationship");return c.add(N),{source:v,target:d,role:x,relationType:h,direction:g,...w===void 0?{}:{definition:w},...R===void 0?{}:{style:lE(R)}}}),S=ms(t.canvasDefaults);return{version:2,runtimeVersion:t.runtimeVersion,id:t.id,title:t.title,entry:t.entry,fullText:t.fullText,nodes:f,relations:m,resources:o,...n===void 0?{}:{colorMode:n},...p===void 0?{}:{pins:p},...S&&{canvasDefaults:S},...l===void 0?{}:{icons:l},...t.appearance===void 0?{}:{appearance:rE(t.appearance)}}}M();var rr={key:"F4"};M();M();M();function sv(e){try{let t=JSON.stringify(e);if(!t||t.length>16384)return null;let n=JSON.parse(t),i=(a,o)=>o<=8&&(!a||typeof a!="object"||Object.values(a).every(l=>i(l,o+1)));return i(n,0)?n:null}catch{return null}}M();var gt={occurrences:2e3,depth:20,scopes:8,stateCharacters:12e3,occurrenceCharacters:4096},ys={min:.1,max:4,step:.05};function Xo(e,t,n){return{defaultValue:e,validate:i=>typeof i=="number"&&Number.isInteger(i)&&i>=t&&i<=n}}var bs={version:1,fields:{arrangement:{defaultValue:"right",validate:e=>e==="balanced"||e==="left"||e==="right"},horizontalSpacing:Xo(96,40,240),verticalSpacing:Xo(24,12,80),parentColumns:Xo(2,1,3),initialGenerations:Xo(1,1,3),horizontalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=ys.min&&e<=ys.max},verticalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=ys.min&&e<=ys.max},maximumDepth:Xo(10,1,gt.depth),maximumOccurrences:Xo(500,16,gt.occurrences)}};function vs(e){if(e?.status==="unavailable")return null;let t=e?.values??{},n=a=>Object.prototype.hasOwnProperty.call(t,a)?t[a]:bs.fields[a].defaultValue;for(let[a,o]of Object.entries(bs.fields))if(!o.validate(n(a)))return null;let i=n("arrangement");return i!=="balanced"&&i!=="left"&&i!=="right"?null:{arrangement:i,horizontalSpacing:Number(n("horizontalSpacing")),verticalSpacing:Number(n("verticalSpacing")),horizontalDensity:Number(n("horizontalDensity")),verticalDensity:Number(n("verticalDensity")),parentColumns:Number(n("parentColumns")),initialGenerations:Number(n("initialGenerations")),maximumDepth:Number(n("maximumDepth")),maximumOccurrences:Number(n("maximumOccurrences"))}}var th={version:1,scope:null,initialGenerations:null,expanded:[],collapsed:[],sides:{}},Ss={version:0,unavailable:!0};function Ua(e){return typeof e=="string"&&e.length>0&&e.length<=gt.occurrenceCharacters}function na(e){if(e==null)return{...th,expanded:[],collapsed:[],sides:{}};let t=sv(e);if(!t||typeof t!="object"||Array.isArray(t)||Reflect.get(t,"version")!==1)return Ss;let n=Reflect.get(t,"scope"),i=Reflect.get(t,"initialGenerations"),a=Reflect.get(t,"expanded"),o=Reflect.get(t,"collapsed"),l=Reflect.get(t,"sides");if(n===null!=(i===null)||n!==null&&!Ua(n)||i!==null&&(typeof i!="number"||!Number.isInteger(i)||i<1||i>3)||!Array.isArray(a)||!Array.isArray(o)||a.length>256||o.length>256||!a.every(Ua)||!o.every(Ua)||!l||typeof l!="object"||Array.isArray(l)||Object.keys(l).length>256)return Ss;let r=[];for(let[s,f]of Object.entries(l)){let p=f;if(!Ua(s)||p!==-1&&p!==1)return Ss;r.push([s,p])}r.sort(([s],[f])=>s<f?-1:s>f?1:0);let u={...t,version:1,scope:n===null?null:Nn(n),initialGenerations:i,expanded:[...new Set(a)].sort(),collapsed:[...new Set(o)].sort(),sides:Object.fromEntries(r)};return JSON.stringify(u).length<=gt.stateCharacters?u:Ss}function cv(e,t,n){return e.scope===t?e:{...e,scope:t,initialGenerations:n,expanded:[],collapsed:[],sides:{}}}function ur(e){let t=na(e);return t.version===1?t:null}function ws(e,t,n){let i=na(e),a=i.version===1&&i.scope===t.layoutRoot?i:na(t.stateSuggestion);if(a.version!==1||a.scope!==t.layoutRoot)return null;let o=new Set(a.expanded),l=new Set(a.collapsed),r=t.occurrences.filter(u=>u.branch?.canExpand&&!u.branch.reference);if(n.kind==="toggle")r=r.filter(u=>u.id===n.occurrenceId);else if(n.kind==="expand-generation"){let u=Math.min(...r.filter(s=>!s.branch.expanded).map(s=>s.branch.depth));r=r.filter(s=>!s.branch.expanded&&s.branch.depth===u)}else{let u=Math.max(...r.filter(s=>s.branch.expanded).map(s=>s.branch.depth));r=r.filter(s=>s.branch.expanded&&s.branch.depth===u)}if(!r.length)return null;for(let u of r)n.kind==="expand-generation"||n.kind==="toggle"&&!u.branch.expanded?(l.delete(u.id),o.add(u.id)):(o.delete(u.id),l.add(u.id));return ur({...a,expanded:[...o],collapsed:[...l]})}M();var L={licenses:"Runtime licenses",close:"Close",mindMap:"Mind Map",expandBranch:"Expand branch",collapseBranch:"Collapse branch",graphOptions:"Graph options",crossLinks:"Show crosslinks",linkOntology:"Show link ontology",view:"Compass",back:"History back",forward:"History forward",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit graph",loadFailed:"Could not open this publication",retry:"Retry",loading:"Opening publication…",loadingNote:"Opening note…",find:"Find note",fullText:"Include note text",searchLoading:"Loading note search…",searchUnavailable:"Note search is unavailable",address:"Note address",open:"Open",nodeUnavailable:"That thought is unavailable in this publication",copyAddress:"Copy note address",addressCopied:"Note address copied",copyShortAddress:"Copy link (short ID)",copyFullAddress:"Copy link (full ID)",ambiguousAddress:"This short ID matches several notes. Use the full ID.",pins:"Pins",history:"Session history",backTooltip:"History back (Alt + ←)",forwardTooltip:"History forward (Alt + →)",showSidecarTooltip:"Show Sidecar (Alt + Shift + S)",hideSidecarTooltip:"Hide Sidecar (Alt + Shift + S)",chooseNote:"Choose a matching thought",chooseAddress:"Enter a note ID to select another match",showSidecar:"Show Sidecar",hideSidecar:"Hide Sidecar",closeSidecar:"Close Sidecar",showSiblings:"Show siblings",hideSiblings:"Hide siblings",siblings:"Siblings",friends:"Friends / Previous",challengers:"Challengers / Next",lateral:"Friends, challengers, and sequence",darkMode:"Dark mode",lightMode:"Light mode",systemTheme:"System theme",sidecar:"Sidecar",sidecarHide:"Hide",sidecarLeft:"Left",sidecarRight:"Right",sidecarBottom:"Bottom",openWebsite:"Open original in a new tab",webFrameHelp:"If the page is blank or blocked, open the original.",githubLoading:"Loading GitHub preview…",githubPreviewUnavailable:"GitHub preview unavailable. Open the original to view the page.",githubOpenOriginal:"View this GitHub page in a browser tab.",githubNoCommits:"No commits in this comparison.",githubCommitCount:(e,t)=>`Showing ${e} of ${t} commits`,resizeSidecar:"Resize Sidecar",dockSidecarBottom:"Move Sidecar below",dockSidecarRight:"Move Sidecar right",noteUnavailable:"Could not open this note",mediaUnavailable:"Some media could not be opened",noDocument:"No document is available for this thought",downloadAsset:"Download file",sceneLimited:"Some connections are outside this view’s display limit",themeUnavailable:"Using the default colors",insecure:"Open this publication over HTTPS or through a local preview server"},Ia={label:"Color theme",light:"Light",dark:"Dark",auto:"Auto",trigger:e=>`Color theme (${e})`},Fn={label:"K-Plex resources",github:"K-Plex on GitHub",npm:"K-Plex Web Player on npm",community:"K-Plex in Obsidian Community Plugins",playlist:"K-Plex YouTube playlist",book:"Sketch Your Mind book"};M();var xs=class{constructor(t,n,i,a=750,o){this.owner=t;this.requireAlt=n;this.publish=i;this.delayMs=a;this.modifierFeedback=o;this.timer=null;this.candidate=null;this.alt=!1;this.enteredAt=0;this.modifierCandidate=!1}enter(t,n){if(n.pointerType==="touch"){this.modifierFeedback&&this.clear();return}this.clear(!1),this.candidate=t,this.alt=n.altKey,this.enteredAt=this.owner.performance.now(),this.modifierCandidate=n.pointerType==="mouse"&&n.isTrusted===!0&&this.modifierFeedback?.accepts(t)===!0,this.modifierFeedback?.publish(this.modifierCandidate&&this.alt?t:null),this.requireAlt||this.modifierCandidate&&this.alt?this.publish(this.alt?t:null):this.activateOrdinary()}modifier(t,n=!1){this.candidate===null||this.alt===t||!this.requireAlt&&!this.modifierCandidate||this.modifierCandidate&&!n||(this.alt=t,this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.modifierCandidate&&this.modifierFeedback?.publish(t?this.candidate:null),this.requireAlt||t?this.publish(t?this.candidate:null):(this.publish(null),this.activateOrdinary()))}activateOrdinary(){let t=this.candidate;if(t===null)return;let n=Math.max(0,this.delayMs-(this.owner.performance.now()-this.enteredAt));n===0?this.publish(t):this.timer=this.owner.setTimeout(()=>{this.timer=null,this.publish(t)},n)}clear(t=!0){this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.candidate=null,this.modifierCandidate=!1,this.modifierFeedback?.publish(null),t&&this.publish(null)}};function fv(e,t){let n=e.ownerDocument,i=n.defaultView,a=r=>t.modifier(r.altKey,r.isTrusted),o=()=>t.clear(),l=()=>{n.visibilityState==="hidden"&&t.clear()};return i.addEventListener("keydown",a),i.addEventListener("keyup",a),i.addEventListener("blur",o),n.addEventListener("visibilitychange",l),()=>{i.removeEventListener("keydown",a),i.removeEventListener("keyup",a),i.removeEventListener("blur",o),n.removeEventListener("visibilitychange",l),t.clear()}}M();M();M();M();M();var nh={min:8,max:20,step:1,default:12};function ih(e){return typeof e=="number"&&Number.isFinite(e)?Math.max(nh.min,Math.min(nh.max,e)):nh.default}var sr=(e,t,n)=>Math.max(t,Math.min(n,e));function dv(e){return Math.max(5,(e.gateRadius??5)*1.05)}function ah(e=30,t=!1){let n=Math.round(Math.max(8,e));return Math.max(t?18:8,n+(t?8:0))}function cr(e,t,n=12.4){return(t?sr(e*.72,13,24):sr(e*.62,10,16))*sr(Number.isFinite(n)?n:12.4,8,28)/12.4}function sE(e,t){if(e.measurement&&Number.isFinite(e.measurement.width)&&e.measurement.width>=0)return e.measurement.width;let n=i=>Array.from(i).reduce((a,o)=>a+(o.codePointAt(0)>11903?1:.55)*t,0);return n(e.text)+(e.label?n(`${e.label}:`)+4:0)+(e.icon?t+4:0)}function hv(e,t){return e.length?4+e.reduce((n,i)=>n+Math.ceil(i.measurement&&Number.isFinite(i.measurement.height)&&i.measurement.height>0?i.measurement.height:t*1.4),0):0}function mv(e,t){return e.reduce((n,i)=>Math.max(n,32+sE(i,t)),0)}function pv(e,t,n,i=!1,a=30,o,l=1,r=[]){let u=(n.baseFontSize??12.4)/12.4,s=Math.min(e.length,ah(a,i)),f=i?180:112,c=Math.max(f,o??(i?370:286)),m=i?cr(t,!0,n.baseFontSize)*.55:t*u*.29,S=sr(70+s*Math.max(4.8,m),f,c),b=(i?16:8)+2*Math.max(0,l),v=cr(t,i,n.baseFontSize),d=Math.max(i?48:26,Math.ceil(v*1.6+b)),h=Math.ceil(Math.max(t*u,v)*2.4+v*.4+b),g=n.wrapNodeLabels?Math.max(d,h):d,w=ih(n.propertyFontSize),E=mv(r,w);return{width:r.length?sr(Math.max(S,E),f,c):S,height:g+hv(r,w)}}function gv(e,t,n,i,a=1,o=[]){if(t===1)return e;let l=ih(i.propertyFontSize),r=mv(o,l),u=cr(n,!1,i.baseFontSize)*(i.wrapNodeLabels?2.8:1.6);return{width:Math.max(e.width*t,Math.min(e.width,r)),height:Math.max(e.height*t,Math.ceil(u+8+2*Math.max(0,a))+hv(o,l))}}var Xe=j(pe(),1);function Sv({bounds:e,semanticRole:t,className:n,style:i,...a}){return(0,Xe.jsx)("div",{...a,className:`kplex-thought kplex-role-${t}${n?" "+n:""}`,style:{left:e.x-e.width/2,top:e.y-e.height/2,width:e.width,height:e.height,...i}})}function wv({label:e,maximum:t,center:n}){let i=ah(t??30,n),a=e.length>i?`${e.slice(0,Math.max(1,i-1))}…`:e;return(0,Xe.jsx)("span",{className:"kplex-thought-text",title:e,children:a})}function xv({wrap:e,children:t}){return(0,Xe.jsx)("span",{className:`kplex-thought-label${e?" is-two-line":""}`,children:t})}function Ev({side:e,connected:t,highlighted:n,disabled:i,count:a,...o}){return(0,Xe.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${e}${t?"":" is-empty"}`,children:[(0,Xe.jsx)("span",{...o,"data-kplex-gate":e,className:`kplex-gate gate-${e}${t?" has-connections":" is-empty"}${n?" is-highlighted":""}${i?" is-link-disabled":""}`}),a!==null&&(0,Xe.jsx)("span",{className:"kplex-gate-count",children:a})]})}function Tv(e){return(0,Xe.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...e})}function Mv({label:e,midpoint:t,fontSize:n,color:i,background:a,opacity:o}){if(!e)return null;let l=n??10,r=Math.max(20,e.length*l*.58+10),u=l+6;return(0,Xe.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:o,children:[(0,Xe.jsx)("rect",{x:t.x-r/2,y:t.y-u/2,width:r,height:u,rx:3,fill:a}),(0,Xe.jsx)("text",{className:"kplex-edge-label",x:t.x,y:t.y,textAnchor:"middle",dominantBaseline:"central",fill:i,fontSize:l,children:e})]})}function oh(e,t="kplex"){if(!(!e||e==="none"))return`url(#${t}-${e==="triangle"||e==="dot"||e==="bar"?e:"arrow"})`}function Rv({prefix:e="kplex"}){return(0,Xe.jsxs)("defs",{children:[(0,Xe.jsx)("marker",{id:`${e}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Xe.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,Xe.jsx)("marker",{id:`${e}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Xe.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,Xe.jsx)("marker",{id:`${e}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,Xe.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,Xe.jsx)("marker",{id:`${e}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Xe.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}M();var Nv={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function fr(e,t){let n=t.toLowerCase(),i=e.nodes.get(n);return i?[i.id]:e.shortIds.get(n)??[]}function Av(e,t){if(!e.manifest)return;let n=t.slice(0,8),i=fr(e,n);return i.length===1&&i[0]===t?n:void 0}function lh(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function Ko(e){return typeof e=="string"&&e.trim().length>0}function dE(e){return typeof e=="string"&&Object.getOwnPropertyDescriptor(Nv,e)!==void 0}function Cv(e){let t=lh(e);if(t?.version===2&&("runtimeVersion"in t||"resources"in t))return hE(uv(e));if(t?.version!==1)throw new Error("Unsupported publication fixture version");if(!Ko(t.title)||!Ko(t.entry)||!Array.isArray(t.nodes)||!Array.isArray(t.relations))throw new Error("Invalid publication fixture");let n=new Map,i=new Map,a=Object.freeze([]);for(let u of t.nodes){let s=lh(u);if(!s||!Ko(s.id)||!Ko(s.title)||n.has(s.id)||s.text!==void 0&&typeof s.text!="string")throw new Error("Invalid or duplicate publication node");let f=Nn(s.id);n.set(f,Object.freeze({id:f,name:s.title,kind:"document",resolution:"resolved",url:null,aliases:a,tags:a,styleTags:a,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof s.text=="string"&&i.set(f,s.text)}let o=n.get(t.entry)?.id;if(!o)throw new Error("Missing publication entry node");let l=new Map,r=new Set;for(let u of t.relations){let s=lh(u);if(!s||!Ko(s.source)||!Ko(s.target)||!dE(s.role)||s.label!==void 0&&typeof s.label!="string")throw new Error("Invalid publication relationship");let f=n.get(s.source),p=n.get(s.target);if(!f||!p)throw new Error("Missing publication relationship endpoint");let c=Nv[s.role],m=JSON.stringify([f.id,s.role,p.id]);if(f===p||r.has(m))throw new Error("Invalid or duplicate publication relationship");r.add(m),r.add(JSON.stringify([p.id,c,f.id])),rh(l,f,p,s.role,1,1,s.label),rh(l,p,f,c,1,2,s.label)}return{title:t.title,entry:o,read:Ov(n,l),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:u=>i.get(u),linkStyle:()=>{}}}function rh(e,t,n,i,a,o,l){let r=e.get(t.id);r||e.set(t.id,r=new Map);let u=r.get(i);u||r.set(i,u=[]),u.push(Object.freeze({node:n,role:i,relationType:a,direction:o,definition:l}))}function hE(e){let t=new Map,n=new Map,i=new Map,a=new Map,o=new Map;for(let l of e.nodes){let r=Nn(l.id),u=l.id.slice(0,8),s=a.get(u);s?s.push(r):a.set(u,[r]);let f=l.kind==="folder"?"container":l.kind==="drawing"?"document":l.kind;t.set(r,Object.freeze({id:r,name:l.title,kind:f,resolution:"resolved",url:l.url??null,aliases:l.aliases??[],tags:[],styleTags:[],noteType:null,primaryStyleTag:null,maxLabelLength:30})),n.set(r,l)}for(let l of e.relations)rh(i,t.get(l.source),t.get(l.target),l.role,l.relationType,l.direction,l.definition),l.style&&o.set(`${l.source}/${l.target}/${l.role}`,l.style);return{title:e.title,entry:Nn(e.entry),read:Ov(t,i),nodes:t,shortIds:a,manifest:e,published:n,body:()=>{},linkStyle:(l,r,u)=>o.get(`${l}/${r}/${u}`)}}function Ov(e,t){let n=new Intl.Collator("en",{numeric:!0}),i=(o,l)=>n.compare(o.name,l.name)||(o.id<l.id?-1:o.id>l.id?1:0);for(let o of t.values())for(let l of o.values())Object.freeze(l.sort((r,u)=>i(r.node,u.node)));let a=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:o=>e.get(o)??null,scope:o=>({coverage:e.has(o)?"local":"unavailable",complete:e.has(o),prepared:e.has(o),pending:!1}),relations(o,l,r){if(!e.has(o))return{items:a,coverage:"unavailable",truncated:!1};let u=t.get(o)?.get(l)??a,s=r!==void 0&&u.length>r;return{items:s?u.slice(0,r):u,coverage:"local",truncated:s}},evidence:()=>({coverage:"unavailable",value:null}),compare:i,corpus:{available:!1,reason:"unsupported"}}}M();var Ba=j($e(),1);M();function Lv(e,t){let n=hs.map(i=>{let a=t?.get(i)??e.get(i);return[i,a==="1"?!0:a==="0"?!1:a]});return ms(Object.fromEntries(n))??{}}function uh(e,t){for(let n of hs){let i=t?.[n];i===void 0?e.delete(n):e.set(n,typeof i=="boolean"?i?"1":"0":i)}}function sh(e,t){return hs.every(n=>e?.[n]===t?.[n])}var mE=80;function Ts(e,t){return[...e.filter(n=>n.id!==t.id),t].slice(-mE)}function fh(e){try{let t=decodeURIComponent(e.replace(/^#/,""));return t.length<=200&&!/\p{Cc}/u.test(t)&&t||void 0}catch{return}}function dr(e,t){let n=t.protocol==="file:"&&t.hash.startsWith("#node=")?new URLSearchParams(t.hash.slice(1)):null,i=n?n.get("node"):t.searchParams.get("node")??t.searchParams.get("node-id"),a=i===null?[]:fr(e,i),o=a.length===1?a[0]:void 0,l=fh(n?encodeURIComponent(n.get("fragment")??""):t.hash),r=Lv(t.searchParams,n);return{location:{id:o??e.entry,fragment:o||i===null?l:void 0,canvas:r},addressProblem:i===null||o?void 0:a.length?"ambiguous":"missing",matches:a}}function pE(e,t,n){let i=new URLSearchParams({node:e});return t&&i.set("fragment",t),uh(i,n),`#${i}`}function zv(e,t,n,i){try{let a=new URL(e,t);if(a.origin!==t.origin||a.pathname!==t.pathname&&a.pathname!==`${t.pathname}index.html`)return;if(e.startsWith("#node=")&&t.protocol==="file:"){let{location:u,addressProblem:s}=dr(n,a);return s?void 0:u}if(e.startsWith("#"))return{id:i,fragment:fh(a.hash)};if(!(a.searchParams.get("node")??a.searchParams.get("node-id")))return;let{location:l,addressProblem:r}=dr(n,a);return r?void 0:l}catch{return}}function Qo(e,t,n=t.id){let i=new URL(e);return i.protocol==="file:"?(i.hash=pE(n,t.fragment??"",t.canvas),i):(i.searchParams.delete("node-id"),i.searchParams.set("node",n),uh(i.searchParams,t.canvas),i.hash=t.fragment?encodeURIComponent(t.fragment):"",i)}function Dv(e,t,n){try{let i=new URL(e,t);if(i.protocol!==t.protocol||i.origin!==t.origin||i.username||i.password)return;let a=o=>o.endsWith("/")?o+"index.html":o;return a(i.pathname)!==a(t.pathname)||!(i.searchParams.has("node")||i.searchParams.has("node-id")||i.protocol==="file:"&&i.hash.startsWith("#node="))?void 0:dr(n,i)}catch{return}}function ch(e,t){return!e||typeof e!="object"||!("kplexPublication"in e)||e.kplexPublication!==t||!("position"in e)||typeof e.position!="number"||!Number.isSafeInteger(e.position)||e.position<0||!("last"in e)||typeof e.last!="number"||!Number.isSafeInteger(e.last)||e.last<e.position?null:{position:e.position,last:e.last}}function Hv(e,t,n){let i=(0,Ba.useRef)(n);i.current=n;let a=e.manifest?.id,[o,l]=(0,Ba.useState)(()=>{let S=t?dr(e,new URL(t.location.href)):{location:{id:e.entry},addressProblem:void 0},b=t&&a?ch(t.history.state,a)??{position:0,last:0}:void 0;return{entries:[S.location],index:0,addressProblem:S.addressProblem,browser:b,visits:[S.location]}}),r=o.entries[o.index],u=(0,Ba.useRef)(o.browser?.last??0);(0,Ba.useEffect)(()=>{if(!t||!a)return;let S=t.history,b=d=>{let{location:h,addressProblem:g}=dr(e,new URL(t.location.href)),w=ch(d.state,a),E=w?{...w,last:Math.max(w.position,u.current)}:{position:0,last:0};u.current=E.last,S.replaceState({kplexPublication:a,...E},""),i.current(h.id),l(R=>({entries:[h],index:0,addressProblem:g,browser:E,visits:Ts(R.visits,h)}))},v=ch(S.state,a)??{position:0,last:0};return S.replaceState({kplexPublication:a,...v},""),t.addEventListener("popstate",b),()=>t.removeEventListener("popstate",b)},[t,e,a]);function s(S){let b={...S,canvas:{...r.canvas,...S.canvas}};if(!e.nodes.has(b.id)||!o.addressProblem&&r.id===b.id&&r.fragment===b.fragment&&sh(r.canvas,b.canvas))return!1;if(i.current(b.id),t&&a&&o.browser){let d=o.browser.position+1,h={position:d,last:d};return t.history.pushState({kplexPublication:a,...h},"",Qo(new URL(t.location.href),b)),u.current=d,l({entries:[b],index:0,browser:h,visits:Ts(o.visits,b)}),!0}let v=o.index+1;return l({entries:[...o.entries.slice(0,v),b],index:v,visits:Ts(o.visits,b)}),!0}function f(S){let b={...r.canvas,...S};if(sh(r.canvas,b))return;let v={...r,canvas:b};t&&a&&o.browser&&t.history.replaceState(t.history.state,"",Qo(new URL(t.location.href),v));let d=[...o.entries];d[o.index]=v,l({...o,entries:d})}let p=o.browser?o.browser.position>0:o.index>0,c=o.browser?o.browser.position<o.browser.last:o.index+1<o.entries.length;function m(S){if(S===-1?p:c)if(t&&o.browser)t.history.go(S);else{let b=o.index+S,v=o.entries[b];i.current(v.id),l({...o,index:b,addressProblem:void 0,visits:Ts(o.visits,v)})}}return{attention:r,activate:s,changeCanvas:f,move:m,visits:o.visits,addressProblem:o.addressProblem,canGoBack:p,canGoForward:c}}M();var ia=j($e(),1);M();var Zo=j($e(),1),Pv=j(Lr(),1);M();var gE="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function yE(){}function bE(e){return!e||typeof e!="object"||!("closest"in e)?null:e}function vE(e,t){let i=bE(e)?.closest(gE)??null;return!!(i&&t.contains(i))}function _v(e,t,n,i,a){let o=t+a,l=Math.max(o,t+n-i-a);return Math.min(l,Math.max(o,e))}function SE(e){let t=e.visualViewport;return{left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.width??e.innerWidth,height:t?.height??e.innerHeight}}function kv({modalEl:e,handleEl:t,viewportMargin:n=8,onPositionChange:i}){let a=e.ownerDocument,o=a.defaultView;if(!o||t.ownerDocument!==a)return yE;let l=null,r=!1,u=!1,s=!1,f=o.visualViewport,p=(E,R)=>{let x=e.getBoundingClientRect(),N=SE(o),G=_v(E,N.left,N.width,x.width,n),T=_v(R,N.top,N.height,x.height,n);e.style.setProperty("--kplex-dialog-left",`${G}px`),e.style.setProperty("--kplex-dialog-top",`${T}px`),e.classList.add("is-positioned"),u=!0,i?.({left:G,top:T})},c=()=>{if(!u||s)return;let E=e.getBoundingClientRect();p(E.left,E.top)},m=()=>{a.removeEventListener("pointermove",b,!0),a.removeEventListener("pointerup",v,!0),a.removeEventListener("pointercancel",v,!0)},S=()=>{if(!l)return;let E=l.pointerId;l=null,r=!1,m(),t.hasPointerCapture(E)&&t.releasePointerCapture(E),e.classList.remove("is-dragging"),t.classList.remove("is-dragging")};function b(E){let R=l;if(!R||E.pointerId!==R.pointerId)return;E.preventDefault(),E.stopPropagation();let x=E.clientX-R.startClientX,N=E.clientY-R.startClientY;if(!r){if(Math.hypot(x,N)<3)return;r=!0,e.classList.add("is-dragging"),t.classList.add("is-dragging")}p(R.startLeft+x,R.startTop+N)}function v(E){!l||E.pointerId!==l.pointerId||(E.preventDefault(),E.stopPropagation(),S())}let d=E=>{l?.pointerId===E.pointerId&&S()},h=()=>{S()},g=E=>{if(s||l||E.button!==0||vE(E.target,t))return;let R=e.getBoundingClientRect();l={pointerId:E.pointerId,startClientX:E.clientX,startClientY:E.clientY,startLeft:R.left,startTop:R.top},a.addEventListener("pointermove",b,!0),a.addEventListener("pointerup",v,!0),a.addEventListener("pointercancel",v,!0);try{t.setPointerCapture(E.pointerId)}catch{}E.preventDefault(),E.stopPropagation()},w=()=>{s||(s=!0,S(),t.removeEventListener("pointerdown",g),t.removeEventListener("lostpointercapture",d),o.removeEventListener("blur",h),o.removeEventListener("resize",c),o.removeEventListener("pagehide",w),f?.removeEventListener("resize",c),f?.removeEventListener("scroll",c),e.classList.remove("kplex-draggable-dialog","is-positioned","is-dragging"),t.classList.remove("kplex-draggable-dialog-handle","is-dragging"),e.style.removeProperty("--kplex-dialog-left"),e.style.removeProperty("--kplex-dialog-top"))};return e.classList.add("kplex-draggable-dialog"),t.classList.add("kplex-draggable-dialog-handle"),t.addEventListener("pointerdown",g),t.addEventListener("lostpointercapture",d),o.addEventListener("blur",h),o.addEventListener("resize",c),o.addEventListener("pagehide",w),f?.addEventListener("resize",c),f?.addEventListener("scroll",c),w}function wE(e,t){let n=e.target,i=e.composedPath();return t.some(a=>a?i.includes(a)?!0:n?a.contains(n):!1:!1)}function Ms({open:e,anchorRef:t,anchorPoint:n,panelRef:i,dragHandleRef:a,insideRoots:o,onDismiss:l,dismissWhenAnchorHidden:r=!1,handleEscape:u,portalTarget:s,positioning:f,children:p}){let[c,m]=(0,Zo.useState)({}),S=(0,Zo.useRef)({insideRoots:o,onDismiss:l,handleEscape:u});S.current={insideRoots:o,onDismiss:l,handleEscape:u};let b=t.current,v=b?.ownerDocument??null,d=b?.closest("[data-floating-layer-boundary]")??null,h=e&&v?d??s(v):null,g=n?.x,w=n?.y;return(0,Zo.useLayoutEffect)(()=>{if(!e)return;let E=t.current;if(!E)return;let R=E.ownerDocument,x=R.defaultView;if(!x)return;let N=!1,G=null,T=()=>{if(N)return;let $=t.current;if(!$||$.ownerDocument!==R)return;let C=$.getBoundingClientRect();if(r&&(!$.getClientRects().length||!C.width||!C.height)){S.current.onDismiss("anchor-hidden");return}let P=x.visualViewport,z=d?.getBoundingClientRect(),q=z&&d?z.left+d.clientLeft-d.scrollLeft:0,ee=z&&d?z.top+d.clientTop-d.scrollTop:0,ie=Math.max(P?.offsetLeft??0,z?.left??0),B=Math.max(P?.offsetTop??0,z?.top??0),X=Math.min((P?.offsetLeft??0)+Math.min(x.innerWidth,P?.width??x.innerWidth),z?.right??1/0),ce=Math.min((P?.offsetTop??0)+Math.min(x.innerHeight,P?.height??x.innerHeight),z?.bottom??1/0),he=Math.min(f.viewportMargin,Math.max(0,(X-ie)/2)),yt=g??C.left,Ee=w??C.top,bt=w??C.bottom,Ke=Math.max(0,Math.min(Math.max(f.minimumWidth,f.preferredWidth),X-ie-he*2)),Ln=Math.max(ie+he,Math.min(G?.left??yt,X-Ke-he)),We=ce-bt-f.anchorGap-he,ln=Ee-B-f.anchorGap-he,Mt=We<f.minimumMaxHeight&&ln>We?Ee-f.anchorGap-Math.min(i.current?.scrollHeight||f.minimumMaxHeight,ln):bt+f.anchorGap,_t=Math.max(B+he,Math.min(G?.top??Mt,ce-Math.min(f.minimumMaxHeight,Math.max(0,ce-B-he*2))-he));m({position:d?"absolute":"fixed",left:Ln-q,top:_t-ee,width:Ke,maxHeight:Math.max(0,ce-_t-he)})},I=$=>{wE($,S.current.insideRoots())||S.current.onDismiss("outside-pointer")},H=$=>{if($.key!=="Escape"||S.current.handleEscape?.($)===!1)return;$.preventDefault(),$.stopPropagation(),S.current.onDismiss("escape");let C=t.current;C?.ownerDocument===R&&C.isConnected&&C.focus({preventScroll:!0})},_=x.ResizeObserver,K=_?new _(T):null;K?.observe(E),d&&K?.observe(d),i.current&&K?.observe(i.current),x.addEventListener("resize",T),x.visualViewport?.addEventListener("resize",T),x.visualViewport?.addEventListener("scroll",T),R.addEventListener("scroll",T,!0),R.addEventListener("pointerdown",I,!0),R.addEventListener("keydown",H,!0);let ne=i.current,le=a?.current,W=ne&&le?kv({modalEl:ne,handleEl:le,viewportMargin:f.viewportMargin,onPositionChange:$=>{G=$,T()}}):void 0,re=()=>{N||(N=!0,W?.(),K?.disconnect(),x.removeEventListener("resize",T),x.visualViewport?.removeEventListener("resize",T),x.visualViewport?.removeEventListener("scroll",T),R.removeEventListener("scroll",T,!0),R.removeEventListener("pointerdown",I,!0),R.removeEventListener("keydown",H,!0),x.removeEventListener("pagehide",re))};return x.addEventListener("pagehide",re),T(),re},[e,r,t,g,w,i,a,v,d,f.anchorGap,f.minimumMaxHeight,f.minimumWidth,f.preferredWidth,f.viewportMargin]),h?(0,Pv.createPortal)(p(c),h):null}var Cn=j(pe(),1),xE={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function Uv({anchor:e,address:t,shortAddress:n,onDismiss:i,onCopied:a}){let o=(0,ia.useRef)(e),l=(0,ia.useRef)(null),r=(0,ia.useRef)(!0),[u,s]=(0,ia.useState)();o.current=e,(0,ia.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]);async function f(c){try{let m=e.ownerDocument.defaultView?.navigator.clipboard;if(!m)throw new Error("Clipboard unavailable");await m.writeText(c),r.current&&(a(),i(!0))}catch{r.current&&s(c)}}function p(c){if(!n||u||!["ArrowDown","ArrowUp","Home","End"].includes(c.key))return;let[m,S]=Array.from(c.currentTarget.querySelectorAll("[role=menuitem]")),b=c.key==="Home"?m:c.key==="End"||c.target===m?S:m;c.preventDefault(),b?.focus()}return(0,Cn.jsx)(Ms,{open:!0,anchorRef:o,panelRef:l,insideRoots:()=>[l.current],dismissWhenAnchorHidden:!0,onDismiss:c=>i(c==="escape"),portalTarget:()=>e.closest(".kplex-publication"),positioning:xE,children:c=>(0,Cn.jsx)("div",{ref:l,style:c,className:"kplex-publication-address-menu",role:u?"dialog":"menu","aria-label":L.copyAddress,onKeyDown:p,children:u?(0,Cn.jsx)("input",{autoFocus:!0,readOnly:!0,"aria-label":L.address,value:u,onFocus:m=>m.currentTarget.select()}):(0,Cn.jsxs)(Cn.Fragment,{children:[(0,Cn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!!n,disabled:!n,onClick:()=>{n&&f(n)},children:L.copyShortAddress}),(0,Cn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{f(t)},children:L.copyFullAddress}),!n&&(0,Cn.jsx)("p",{children:L.ambiguousAddress})]})})})}M();var Iv=j($e(),1);M();var aa=j($e(),1);M();var D=j(pe(),1),EE={"arrow-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,D.jsx)("path",{d:"M19 12H5"})]}),"arrow-right":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M5 12h14"}),(0,D.jsx)("path",{d:"m12 5 7 7-7 7"})]}),"panel-right":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M15 3v18"})]}),"panel-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M9 3v18"})]}),"panel-bottom":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M3 15h18"})]}),sun:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,D.jsx)("path",{d:"M12 2v2"}),(0,D.jsx)("path",{d:"M12 20v2"}),(0,D.jsx)("path",{d:"m4.93 4.93 1.41 1.41"}),(0,D.jsx)("path",{d:"m17.66 17.66 1.41 1.41"}),(0,D.jsx)("path",{d:"M2 12h2"}),(0,D.jsx)("path",{d:"M20 12h2"}),(0,D.jsx)("path",{d:"m6.34 17.66-1.41 1.41"}),(0,D.jsx)("path",{d:"m19.07 4.93-1.41 1.41"})]}),moon:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})}),"sun-moon":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M12 2v2"}),(0,D.jsx)("path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715"}),(0,D.jsx)("path",{d:"M16 12a4 4 0 0 0-4-4"}),(0,D.jsx)("path",{d:"m19 5-1.256 1.256"}),(0,D.jsx)("path",{d:"M20 12h2"})]}),"file-search":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),(0,D.jsx)("path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3"}),(0,D.jsx)("path",{d:"m9 18-1.5-1.5"}),(0,D.jsx)("circle",{cx:"5",cy:"14",r:"3"})]}),"corner-down-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("polyline",{points:"9 10 4 15 9 20"}),(0,D.jsx)("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})]}),minus:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("path",{d:"M5 12h14"})}),plus:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M5 12h14"}),(0,D.jsx)("path",{d:"M12 5v14"})]}),maximize:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),(0,D.jsx)("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),(0,D.jsx)("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),(0,D.jsx)("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]}),ellipsis:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,D.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,D.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),x:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M18 6 6 18"}),(0,D.jsx)("path",{d:"m6 6 12 12"})]}),network:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}),(0,D.jsx)("rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}),(0,D.jsx)("rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}),(0,D.jsx)("path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}),(0,D.jsx)("path",{d:"M12 12V8"})]})};function dh({icon:e}){return(0,D.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:EE[e]})}function xt({icon:e,label:t,title:n=t,type:i="button",...a}){return(0,D.jsx)("button",{...a,type:i,className:"kplex-publication-icon-control","aria-label":t,title:n,children:(0,D.jsx)(dh,{icon:e})})}var on=j(pe(),1),hh={preferredWidth:216,minimumWidth:160,viewportMargin:8,anchorGap:4,minimumMaxHeight:180},TE={...hh,preferredWidth:142,minimumWidth:112,minimumMaxHeight:138},ME={...hh,preferredWidth:280,minimumMaxHeight:235},RE={canvas:{label:L.graphOptions,positioning:hh},theme:{label:Ia.label,positioning:TE},brand:{label:Fn.label,positioning:ME}};function NE(e){e?.focus({preventScroll:!0})}function hr({anchor:e,point:t,choices:n,onDismiss:i,variant:a="canvas"}){let o=(0,aa.useRef)(e),l=(0,aa.useRef)(null),r=(0,aa.useRef)(null),[u,s]=(0,aa.useState)(null),f=RE[a];o.current=e;function p(){let v=r.current;(v?.querySelector("[aria-checked=true]")??v?.querySelector("button"))?.focus()}(0,aa.useLayoutEffect)(()=>{u&&p()},[u]);function c(){s(null),l.current?.querySelector("[aria-haspopup=menu][aria-expanded=true]")?.focus()}function m(){i(),e.focus({preventScroll:!0})}function S(v){if(v.key==="Tab"){m();return}let d=v.target,h=d.closest("[role=menu]");if(h){if(v.key==="ArrowRight"&&d.getAttribute("aria-haspopup")==="menu")u?p():d.click();else if(v.key==="ArrowLeft"&&h!==l.current)c();else if(["ArrowDown","ArrowUp","Home","End"].includes(v.key)){let g=Array.from(h.querySelectorAll("[role^=menuitem]")).filter(R=>R.closest("[role=menu]")===h),w=g.indexOf(d),E=v.key==="Home"?0:v.key==="End"?g.length-1:(w+(v.key==="ArrowDown"?1:-1)+g.length)%g.length;g[E]?.focus()}else return;v.preventDefault(),v.stopPropagation()}}function b({label:v,icon:d,kind:h,checked:g,select:w},E=!1){return(0,on.jsxs)("button",{type:"button",role:h,"aria-checked":g,autoFocus:E,onClick:()=>{m(),w()},children:[(0,on.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true",children:g?"✓":""}),d&&(0,on.jsx)(dh,{icon:d}),v]},v)}return(0,on.jsx)(Ms,{open:!0,anchorRef:o,anchorPoint:t,panelRef:l,insideRoots:()=>[l.current,e],dismissWhenAnchorHidden:!0,onDismiss:i,portalTarget:()=>e.closest(".kplex-publication"),positioning:f.positioning,handleEscape:v=>u?(v.preventDefault(),v.stopPropagation(),c(),!1):!0,children:v=>(0,on.jsx)("div",{ref:l,style:v,className:"kplex-publication-address-menu kplex-publication-canvas-menu",role:"menu","aria-label":f.label,onKeyDown:S,children:n.map((d,h)=>"choices"in d?(0,on.jsxs)("div",{role:"none",children:[(0,on.jsxs)("button",{type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":u===d.label,onClick:()=>u===d.label?c():s(d.label),children:[(0,on.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true"}),d.label,(0,on.jsx)("span",{className:"kplex-publication-submenu-arrow","aria-hidden":"true",children:"▸"})]}),u===d.label&&(0,on.jsx)("div",{ref:r,role:"menu","aria-label":d.label,children:d.choices.map(g=>b(g))})]},d.label):"href"in d?(0,on.jsx)("a",{role:"menuitem",ref:h===0?NE:void 0,href:d.href,target:"_blank",rel:"noopener noreferrer",onClick:m,children:d.label},d.href):b(d,a==="theme"?d.checked:h===0))})})}var qt=j(pe(),1),AE=[{label:Fn.github,href:"https://github.com/zsviczian/kplex"},{label:Fn.npm,href:"https://www.npmjs.com/package/@zsviczian/kplex-web"},{label:Fn.community,href:"https://community.obsidian.md/plugins/k-plex"},{label:Fn.playlist,href:"https://www.youtube.com/playlist?list=PLH_fBE-KxyiM"},{label:Fn.book,href:"https://community.sketch-your-mind.com/sym"}];function Bv(){let[e,t]=(0,Iv.useState)(null);return(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("button",{className:"kplex-publication-brand",type:"button","aria-label":Fn.label,title:Fn.label,"aria-haspopup":"menu","aria-expanded":!!e,onClick:n=>t(e?null:n.currentTarget),children:(0,qt.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,qt.jsx)("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}),(0,qt.jsx)("path",{d:"M9 13a4.5 4.5 0 0 0 3-4M6.003 5.125A3 3 0 0 0 6.401 6.5M3.477 10.896a4 4 0 0 1 .585-.396M6 18a4 4 0 0 1-1.967-.516M12 13h4M12 18h6a2 2 0 0 1 2 2v1M12 8h8M16 8V5a2 2 0 0 1 2-2"}),(0,qt.jsx)("circle",{cx:"16",cy:"13",r:".5"}),(0,qt.jsx)("circle",{cx:"18",cy:"3",r:".5"}),(0,qt.jsx)("circle",{cx:"20",cy:"21",r:".5"}),(0,qt.jsx)("circle",{cx:"20",cy:"8",r:".5"})]})}),e&&(0,qt.jsx)(hr,{anchor:e,variant:"brand",choices:AE,onDismiss:()=>t(null)})]})}M();var Gv=j($e(),1),Vv=j(pe(),1);function mh({icon:e,size:t,className:n}){function i(a,o){return(0,Gv.createElement)(a.tag,{...a.attrs,key:o},a.shapes.length?a.shapes.map(i):void 0)}return(0,Vv.jsx)("svg",{...e.attrs,width:t,height:t,viewBox:e.viewBox,className:n,"aria-hidden":"true",focusable:"false",children:e.shapes.map(i)})}M();var Yv=j($e(),1);var vi=j(pe(),1),qv=typeof k>"u"?[]:k,ph=qv.length>0;function jv({dialog:e}){let t=(0,Yv.useId)();return ph?(0,vi.jsxs)("dialog",{className:"kplex-publication-license-dialog",ref:e,"aria-labelledby":t,onKeyDown:n=>n.stopPropagation(),children:[(0,vi.jsxs)("div",{className:"kplex-publication-license-heading",children:[(0,vi.jsx)("h2",{id:t,children:L.licenses}),(0,vi.jsx)("button",{type:"button",autoFocus:!0,onClick:()=>e.current?.close(),children:L.close})]}),qv.map(([n,i])=>(0,vi.jsxs)("section",{children:[(0,vi.jsx)("h3",{children:n}),(0,vi.jsx)("pre",{children:i})]},n))]}):null}M();var pr=j($e(),1);M();M();function Xv(e,t){if(!e.length||!Number.isFinite(t))return null;let n=Math.max(0,Math.min(1,t));if(e.length===1)return e[0];for(let i=1;i<e.length;i++){let a=e[i],o=e[i-1];if(n>a.offset&&i<e.length-1)continue;let l=a.offset>o.offset?(n-o.offset)/(a.offset-o.offset):1,r=(u,s)=>u+(s-u)*l;return{offset:n,x:r(o.x,a.x),y:r(o.y,a.y),scaleX:r(o.scaleX,a.scaleX),scaleY:r(o.scaleY,a.scaleY),originX:r(o.originX,a.originX),originY:r(o.originY,a.originY)}}return null}var Rs=class{constructor(){this.animations=new Map;this.poses=new Map}play(t,n,i,a){this.animations.get(t)?.cancel(),this.animations.delete(t),this.poses.delete(t);let o=t.animate(n,{...i,fill:"none"});if(!o)return null;this.animations.set(t,o),a&&this.poses.set(t,{animation:o,frames:a});let l=()=>{this.animations.get(t)===o&&(this.animations.delete(t),this.poses.delete(t))};return o.finished.then(l,l),o}isRunning(t){return t?this.animations.has(t):this.animations.size>0}sample(t){let n=this.poses.get(t);if(!n||this.animations.get(t)!==n.animation)return null;let i=n.animation.effect?.getComputedTiming().progress;return typeof i=="number"?Xv(n.frames,i):null}cancelAll(){for(let t of this.animations.values())t.cancel();this.animations.clear(),this.poses.clear()}};M();function Kv(e,t,n,i){let a=Math.max(.01,n),o=(e.left-t.left)/a,l=(e.top-t.top)/a,r=t.width>0?e.width/t.width:1,u=t.height>0?e.height/t.height:1,s=Math.hypot(o,l),f=Math.min(24/a,s*.08),p=s?-l/s:0,c=s?o/s:0;return[0,.35,.65,.85,1].map(m=>{let S=m===0||m===1?0:Math.sin(Math.PI*m),b=o*(1-m)+p*f*S,v=l*(1-m)+c*f*S,d=1+.055*S;return i?.push({offset:m,x:b,y:v,scaleX:(r+(1-r)*m)*d,scaleY:(u+(1-u)*m)*d,originX:0,originY:0}),{offset:m,transformOrigin:"0 0",transform:`translate(${b}px, ${v}px) scale(${(r+(1-r)*m)*d}, ${(u+(1-u)*m)*d})`,opacity:1}})}M();var mr=j($e(),1),Ns=j(pe(),1),Ga="[data-publication-strip-scroll]";function Qv({id:e,label:t,panel:n,start:i,onScroll:a,children:o}){let l=(0,mr.useRef)(null),r=(0,mr.useRef)(i);return(0,mr.useLayoutEffect)(()=>{l.current&&(l.current.scrollTop=r.current)},[]),(0,Ns.jsx)("div",{className:"kplex-zone-panel",style:{left:n.x,top:n.y,width:n.width,height:n.height},children:(0,Ns.jsx)("div",{className:"kplex-zone-scroll kplex-publication-strip-scroll","data-publication-strip-scroll":e,ref:l,role:"region","aria-label":t,tabIndex:0,onScroll:u=>a(u.currentTarget.scrollTop),children:(0,Ns.jsx)("div",{className:"kplex-zone-content",style:{height:n.contentHeight},children:o})})})}var As={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function Zv(e){let t=e.getBoundingClientRect(),n=new Map(Array.from(e.querySelectorAll(Ga),a=>[a,a.getBoundingClientRect()])),i=[];for(let a of Array.from(e.querySelectorAll("[data-publication-occurrence]"))){let o=a.getBoundingClientRect(),l=a.closest(Ga),r=l?n.get(l)??t:t;o.left>=Math.min(t.right,r.right)||o.right<=Math.max(t.left,r.left)||o.top>=Math.min(t.bottom,r.bottom)||o.bottom<=Math.max(t.top,r.top)||i.push({element:a,id:a.dataset.publicationNode,occurrence:a.dataset.publicationOccurrence,rect:o,clipped:r!==t&&(o.top<r.top||o.bottom>r.bottom)})}return i}function CE(e,t){let n=new Set(e),i=new Map(e.map(l=>[l.occurrence,l])),a=new Map;for(let l of e){let r=a.get(l.id);r?r.push(l):a.set(l.id,[l])}let o=new Map;for(let l of t){let r=i.get(l.occurrence);r?.id===l.id&&(o.set(l,r),n.delete(r))}for(let l of t){if(o.has(l))continue;let r,u=1/0;for(let s of a.get(l.id)??[]){if(!n.has(s))continue;let f=Math.hypot(l.rect.x-s.rect.x,l.rect.y-s.rect.y);f<u&&(r=s,u=f)}r&&(o.set(l,r),n.delete(r))}return{pairs:o,remaining:n}}function Fv(e,t){let n=(0,pr.useRef)(new Rs).current,i=(0,pr.useRef)(null);function a(){i.current=null,n.cancelAll(),t.current?.replaceChildren()}(0,pr.useEffect)(()=>{let r=e.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return r?.addEventListener("change",a),()=>{r?.removeEventListener("change",a),a()}},[]);function o(r){let u=e.current,s=u?.ownerDocument.defaultView;if(!(!u||!s)){if(u.querySelector("[data-publication-center]")?.dataset.publicationNode===r){i.current=null;return}if(u.ownerDocument.hidden||s.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof u.animate!="function"){a();return}i.current={id:r,cards:Zv(u)}}}function l(r,u){let s=e.current,f=t.current,p=i.current;if(a(),!s||!f||p?.id!==r)return;let c=Zv(s),{pairs:m,remaining:S}=CE(p.cards,c);for(let d of c){let h=m.get(d)?.rect;h?(Math.abs(h.left-d.rect.left)>.5||Math.abs(h.top-d.rect.top)>.5||Math.abs(h.width-d.rect.width)>.5||Math.abs(h.height-d.rect.height)>.5)&&n.play(d.element,Kv(h,d.rect,u),As):n.play(d.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],As)}let b=f.getBoundingClientRect();for(let d of S){if(d.clipped||d.element.isConnected)continue;let h=d.element.cloneNode(!0);h.removeAttribute("role"),h.removeAttribute("tabindex"),h.removeAttribute("data-publication-node"),h.removeAttribute("data-publication-occurrence"),h.removeAttribute("data-publication-center"),h.style.left=`${d.rect.left-b.left}px`,h.style.top=`${d.rect.top-b.top}px`;let g=d.rect.width/parseFloat(h.style.width),w=d.rect.height/parseFloat(h.style.height);f.append(h);let E=n.play(h,[{opacity:1,transformOrigin:"0 0",transform:`scale(${g}, ${w})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${g*.95}, ${w*.95})`}],{...As,duration:200});E?E.finished.then(()=>h.remove(),()=>h.remove()):h.remove()}let v=s.querySelector(".kplex-links");v&&n.play(v,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],As)}return{capture:o,play:l,cancel:a}}M();var Ht=j($e(),1);M();var gr=j(pe(),1);function Jv({label:e,controlId:t,children:n,layout:i="stacked",actions:a,className:o=""}){return(0,gr.jsxs)("div",{className:`${i==="option"?"kplex-form-option":i==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${a?" has-actions":""} ${o}`,children:[(0,gr.jsx)("label",{id:`${t}-label`,htmlFor:t,children:e}),n,a?(0,gr.jsx)("div",{className:"kplex-field-actions",children:a}):null]})}M();var Cs=j($e(),1);M();var De=j($e(),1),$v=j(Lr(),1),Et=j(pe(),1);function OE(e,t){let n=t.trim().toLocaleLowerCase();if(!n)return new Set;let i=e.toLocaleLowerCase(),a=i.indexOf(n);if(a>=0)return new Set(Array.from({length:n.length},(r,u)=>a+u));let o=new Set,l=0;for(let r of n){let u=i.indexOf(r,l);if(u<0)return new Set;o.add(u),l=u+1}return o}function Wv(e,t){let n=OE(e,t);if(!n.size)return e;let i=[],a=0,o=n.has(0);for(let l=1;l<=e.length;l+=1){let r=l<e.length&&n.has(l);if(l<e.length&&r===o)continue;let u=e.slice(a,l);i.push(o?(0,Et.jsx)("mark",{className:"kplex-fuzzy-match",children:u},`${a}:m`):(0,Et.jsx)("span",{children:u},`${a}:t`)),a=l,o=r}return(0,Et.jsx)(Et.Fragment,{children:i})}function e0({value:e,onChange:t,results:n,getResults:i,onChoose:a,getKey:o,getLabel:l,getDetail:r,placeholder:u,ariaLabel:s,inputId:f,labelledBy:p,icon:c,autoFocus:m=!1,disabled:S=!1,floating:b=!1,floatingMode:v="app",portalSelector:d,appTopbarSelector:h,maxFloatingHeight:g=440,minFloatingWidth:w=0,resultsClassName:E="",matchingQuery:R,resultsOwnerId:x,preferSuggestionOnModifiedEnter:N=!1,resultPrefix:G,onEnterWithoutResult:T,onCtrlEnter:I,openResultsOnFocus:H=!0,onFocusChange:_,onDismiss:K,focusRequest:ne,inputTitle:le,inputKeyShortcuts:W,className:re="",highlightMatches:$=!0,closeOnChoose:C=!0,closeOnBlur:P=!1,combobox:z=!1,advanceOnChoose:q=!1,disclosure:ee}){let ie=(0,De.useId)(),[B,X]=(0,De.useState)(!1),[ce,he]=(0,De.useState)(!1),[yt,Ee]=(0,De.useState)(!1),[bt,Ke]=(0,De.useState)(!1),[Ln,We]=(0,De.useState)(0),[ln,Mt]=(0,De.useState)(null),_t=(0,De.useRef)(null),wi=(0,De.useRef)(null),Wn=(0,De.useRef)(null),la=B&&!yt&&(bt||H||ce&&e.trim().length>0),Re=(0,De.useMemo)(()=>la?i?.(e)??n??[]:[],[la,i,n,e]),Be=Re.length?Math.max(0,Math.min(Re.length-1,Ln)):0,Rt=_t.current?.ownerDocument??null,Ge=Rt?.defaultView??null,jt=b?v==="viewport"?Rt?.body??null:d?_t.current?.closest(d)??null:null:null,rn=B&&Re.length>0&&(!b||!!(jt&&ln)),$n=()=>{Ke(!1),Ee(!0),We(0),K?.()},un=()=>{ee&&(ee.onOpen(),Wn.current?.focus({preventScroll:!0}),X(!0),Ke(!0),Ee(!1),We(0))},ra=U=>{Ke(!1),X(!U),he(!1),Ee(!U),We(0);let ae=Wn.current;U&&ae&&ae.ownerDocument.activeElement===ae&&ae.blur(),_?.(!1)},ua=()=>ra(!0),Sn=U=>{if(a(U),C){ra(!z);return}q&&Re.length>0&&We(ae=>(Math.max(0,Math.min(Re.length-1,ae))+1)%Re.length)};(0,De.useEffect)(()=>{We(0)},[e]);let _e=(0,De.useCallback)(()=>{let U=Wn.current;U&&(X(!0),he(!1),Ee(!1),U.focus({preventScroll:!0}),_?.(!0))},[_]);(0,De.useEffect)(()=>{m&&_e()},[m,_e]),(0,De.useEffect)(()=>{ne&&_e()},[ne,_e]),(0,De.useEffect)(()=>{let U=_t.current;if(!U)return;let ae=()=>$n();return U.addEventListener("kplex-dismiss-suggestions",ae),()=>U.removeEventListener("kplex-dismiss-suggestions",ae)},[K]),(0,De.useEffect)(()=>{if(!B||!Rt||!Ge)return;let U=_t.current;if(!U)return;let ae=sn=>{let Xt=sn.target;Xt&&(U.contains(Xt)||wi.current?.contains(Xt))||ua()},Ve=()=>Rt.removeEventListener("pointerdown",ae,!0);return Rt.addEventListener("pointerdown",ae,!0),Ge.addEventListener("pagehide",Ve,{once:!0}),()=>{Ve(),Ge.removeEventListener("pagehide",Ve)}},[B,Rt,Ge]),(0,De.useLayoutEffect)(()=>{if(!b||!B||!Re.length){Mt(null);return}let U=_t.current;if(!U||!Ge)return;let ae=Ge.visualViewport,Ve=()=>{let zn=U.getBoundingClientRect(),kt=8,$o=6;if(v==="viewport"){let Xa=ae?.offsetLeft??0,il=ae?.offsetTop??0,y=ae?.width??Ge.innerWidth,O=il+(ae?.height??Ge.innerHeight),Y=Math.min(Math.max(zn.width,w),Math.max(0,y-kt*2)),Z=Math.max(Xa+kt,Math.min(zn.left,Xa+y-kt-Y)),ue=Math.max(zn.bottom+$o,il+kt),Q=Math.min(zn.top-$o,O-kt),He=Math.max(0,O-kt-ue),Nt=Math.max(0,Q-il-kt),Qe=He>=Math.min(180,g)||He>=Nt,ke=Math.max(0,Math.min(g,Qe?He:Nt)),At={position:"fixed",left:Z,width:Y,maxHeight:ke,zIndex:1e4};Qe?At.top=ue:At.bottom=Ge.innerHeight-Q,Mt(At);return}let vr=d?U.closest(d)??null:null,Sr=h?U.closest(h)??null:null;if(!vr||!Sr)return;let fa=vr.getBoundingClientRect(),ja=Sr.getBoundingClientRect(),el=Math.max(0,fa.width-kt*2),tl=Math.min(780,Math.max(zn.width,Math.min(620,el)),el),wr=kt,xr=Math.max(wr,fa.width-kt-tl),Er=Math.min(xr,Math.max(wr,zn.left-fa.left)),nl=Math.max(0,ja.bottom-fa.top+$o),Tr=Math.max(0,Math.min(g,fa.height-nl-kt));Mt({left:Er,top:nl,width:tl,maxHeight:Tr})};Ve();let sn=Ge.ResizeObserver,Xt=sn?new sn(Ve):null,Ei=v==="app"&&d?U.closest(d):null,ca=v==="app"&&h?U.closest(h):null;Ei&&Xt?.observe(Ei),ca&&Xt?.observe(ca),Xt?.observe(U);let qa=()=>{Xt?.disconnect(),Ge.removeEventListener("resize",Ve),Ge.removeEventListener("scroll",Ve,!0),ae?.removeEventListener("resize",Ve),ae?.removeEventListener("scroll",Ve)};return Ge.addEventListener("resize",Ve),Ge.addEventListener("scroll",Ve,!0),ae?.addEventListener("resize",Ve),ae?.addEventListener("scroll",Ve),Ge.addEventListener("pagehide",qa,{once:!0}),()=>{qa(),Ge.removeEventListener("pagehide",qa)}},[h,b,v,B,Re.length,g,w,Rt,Ge,d]),(0,De.useEffect)(()=>{let U=wi.current;!U||!Re.length||U.querySelector(`[data-kplex-fuzzy-index="${Be}"]`)?.scrollIntoView({block:"nearest"})},[Be,Re.length]);let xi=U=>{if(!(U.nativeEvent.isComposing||U.key==="Dead"||U.getModifierState("AltGraph"))){if(U.key==="Tab"){$n(),X(!1),_?.(!1);return}if(U.key==="Escape"){Re.length&&(U.preventDefault(),U.stopPropagation(),$n());return}if(z&&ee&&U.key==="ArrowDown"&&!Re.length){U.preventDefault(),un();return}if(U.key==="ArrowDown"&&Re.length){U.preventDefault(),We(ae=>Math.min(Re.length-1,ae+1));return}if(U.key==="ArrowUp"&&Re.length){U.preventDefault(),We(ae=>Math.max(0,ae-1));return}if(U.key==="Enter"&&U.repeat){U.preventDefault(),U.stopPropagation();return}if(U.key==="Enter"&&Re.length&&(!(U.ctrlKey||U.metaKey)||N)){U.preventDefault(),U.stopPropagation();let ae=Re[Be];ae&&Sn(ae);return}if(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&I){U.preventDefault(),U.stopPropagation(),I();return}if(!(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&!I)&&U.key==="Enter"){U.preventDefault();let ae=Re[Be];ae?Sn(ae):T?.()}}},sa=B&&Re.length>0?(0,Et.jsx)("div",{ref:wi,id:z?ie:void 0,role:z?"listbox":void 0,"aria-labelledby":z?p:void 0,"aria-label":z&&!p?s:void 0,"data-fuzzy-owner":x,"data-kplex-tooltip-scope":!0,className:`kplex-search-results${b?" kplex-fuzzy-floating-results":" kplex-fuzzy-inline-results"}${E?` ${E}`:""}`,style:b?ln??void 0:void 0,children:Re.map((U,ae)=>{let Ve=l(U),sn=r?.(U),Xt=$?R??e:"";return(0,Et.jsxs)("button",{id:z?`${ie}-option-${ae}`:void 0,role:z?"option":void 0,"aria-selected":z?ae===Be:void 0,tabIndex:z?-1:void 0,"data-kplex-fuzzy-index":ae,className:`kplex-search-result${G?" has-prefix":""}${ae===Be?" is-selected":""}`,"aria-label":sn?`${Ve}
768
- ${sn}`:Ve,onMouseDown:Ei=>Ei.preventDefault(),onMouseEnter:()=>We(ae),onClick:()=>Sn(U),children:[G?(0,Et.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:G(U)}):null,(0,Et.jsx)("span",{children:Wv(Ve,Xt)}),sn?(0,Et.jsx)("small",{children:Wv(sn,Xt)}):null]},o(U))})}):null,Ya=b&&jt&&ln&&sa?(0,$v.createPortal)(sa,jt):b?null:sa;return(0,Et.jsxs)("div",{ref:_t,className:`kplex-search-shell kplex-fuzzy-search${re?` ${re}`:""}`,children:[c?(0,Et.jsx)("div",{className:"kplex-search-icon",children:c}):null,(0,Et.jsx)("input",{ref:Wn,type:"text",role:z?"combobox":void 0,id:f,className:"kplex-search",value:e,disabled:S,onChange:U=>{Ke(!1),he(!0),Ee(!1),t(U.currentTarget.value)},onFocus:()=>{X(!0),he(!1),Ee(!1),_?.(!0)},onBlur:P?ua:void 0,onKeyDown:xi,placeholder:u,"aria-label":p?void 0:s,title:le,"aria-keyshortcuts":W,"aria-labelledby":p,"aria-expanded":z?rn:B&&Re.length>0,"aria-haspopup":z?"listbox":void 0,"aria-autocomplete":z?"list":void 0,"aria-controls":z&&rn?ie:void 0,"aria-activedescendant":z&&rn?`${ie}-option-${Be}`:void 0,autoComplete:"off"}),ee?(0,Et.jsx)("button",{type:"button",className:"kplex-fuzzy-disclosure",tabIndex:z?-1:void 0,disabled:S,"aria-label":ee.label,"aria-expanded":z?rn:B&&Re.length>0,"aria-haspopup":z?"listbox":void 0,"aria-controls":z&&rn?ie:void 0,onMouseDown:U=>U.preventDefault(),onClick:()=>{if(B&&bt&&!yt){$n();return}un()},children:ee.icon}):null,Ya]})}var n0=j(pe(),1);function t0({graph:e,icon:t,portalSelector:n,appTopbarSelector:i,onActivate:a,revision:o,focusRequest:l,inputTitle:r,inputKeyShortcuts:u,placeholder:s,ariaLabel:f,clearOnActivate:p=!0,repeatFind:c=!1,resultIcon:m}){let[S,b]=(0,Cs.useState)(""),v=(0,Cs.useCallback)(d=>e.search(d,24),[e,o]);return(0,n0.jsx)(e0,{value:S,onChange:b,getResults:v,onChoose:d=>{a(d.node.id),p&&b("")},getKey:d=>d.node.id,getLabel:d=>d.label,getDetail:d=>d.detail,resultPrefix:m,placeholder:s,ariaLabel:f,floating:!0,icon:t,portalSelector:n,appTopbarSelector:i,focusRequest:l,inputTitle:r,inputKeyShortcuts:u,closeOnChoose:!c,advanceOnChoose:c})}M();M();var LE=1e5,zE=8*1024*1024,i0=1e6,DE=/[\p{L}\p{N}]+/gu,HE=/^[\p{L}\p{N}]{1,128}$/u;function a0(e){return[...new Set(e.normalize("NFC").toLowerCase().match(DE))].filter(t=>t.length<=128)}function _E(e,t){if(!Array.isArray(e)||e.length>gs)throw new Error("Invalid publication search rows");let n=new Set,i=0;return e.map(a=>{if(!a||typeof a!="object"||!("id"in a)||!bi(a.id)||n.has(a.id)||t&&!t.has(a.id)||!("text"in a)||typeof a.text!="string"||a.text.length>LE)throw new Error("Invalid publication search row");if(n.add(a.id),i+=a.text.length,i>zE)throw new Error("Publication search exceeds its text budget");return{id:a.id,text:a.text}})}function o0(e,t){if(!e||typeof e!="object"||!("version"in e)||e.version!==1||!("rows"in e)||!("terms"in e)||!Array.isArray(e.terms)||e.terms.length>i0)throw new Error("Invalid publication search index");let n=_E(e.rows,t),i="";for(let{id:r}of n){if(i>=r)throw new Error("Unordered publication search rows");i=r}let a="",o=0,l=e.terms.map(r=>{if(!Array.isArray(r)||r.length!==2)throw new Error("Invalid publication search term");let[u,s]=r;if(typeof u!="string"||u.length>128||!HE.test(u)||u!==u.normalize("NFC").toLowerCase()||a>=u||!Array.isArray(s)||!s.length||s.length>n.length)throw new Error("Invalid publication search term");if(a=u,o+=s.length,o>i0)throw new Error("Publication search exceeds its posting budget");let f=-1;for(let p of s){if(typeof p!="number"||!Number.isInteger(p)||p<=f||p>=n.length)throw new Error("Invalid publication search reference");f=p}return[u,s]});return{version:1,rows:n,terms:l}}function Va(e){return e.trim().normalize("NFC").toLowerCase()}function l0(e,t){let n=new Set([...t.published.values()].filter(a=>a.kind==="document"||a.kind==="drawing").map(a=>a.id)),i=o0(e,n);return{rows:i.rows,positions:new Map(i.rows.map(({id:a},o)=>[a,o])),postings:new Map(i.terms)}}function kE(e,t){let n=Math.max(0,Va(e).indexOf(t)-35);return`${n?"…":""}${e.slice(n,n+90)}${e.length>n+90?"…":""}`}function r0(e,t){let n=new Map,i=[...e.nodes.values()].map(o=>{let l=Va(o.name),r=o.aliases.map(Va),u=Object.values(e.published.get(o.id)?.properties??{}).flatMap(s=>typeof s=="object"?[...s]:[String(s)]).map(Va);for(let s of[l,...r]){let f=n.get(s);f||n.set(s,f=new Set),f.add(o.id)}return{node:o,title:l,aliases:r,properties:u}});return{graph:{search(o,l){let r=Va(o.slice(0,128));if(!r)return[];let u=a0(r),s=u[0],f=t&&u.length?u.map(p=>new Set(t.postings.get(p))):null;return i.flatMap(({node:p,title:c,aliases:m,properties:S})=>{let b=t?.positions.get(p.id),v=c===r?1:m.includes(r)?2:c.startsWith(r)?3:m.some(d=>d.startsWith(r))?4:c.includes(r)?5:m.some(d=>d.includes(r))||S.some(d=>d.includes(r))?6:b!==void 0&&f?.every(d=>d.has(b))?7:0;return v?[{score:v,node:p,position:b,title:c}]:[]}).sort((p,c)=>p.score-c.score||e.read.compare(p.node,c.node)).slice(0,l).map(({score:p,node:c,position:m,title:S})=>{let b=p===7&&m!==void 0?t?.rows[m]?.text:void 0,v=b&&s?kE(b,s):n.get(S).size>1?c.id:c.aliases.find(d=>Va(d).includes(r))??"";return{node:c,label:c.name,detail:v}})}},address(o){let l=Va(o),r=fr(e,l);return r.length?r:[...n.get(l)??[]]}}}var it=j(pe(),1);function u0({publication:e,resources:t,page:n,searchFocus:i,onChoose:a}){let o=(0,Ht.useRef)(null),l=(0,Ht.useId)(),[r,u]=(0,Ht.useState)(""),[s,f]=(0,Ht.useState)([]),[p,c]=(0,Ht.useState)(!1),[m,S]=(0,Ht.useState)(!1),[b,v]=(0,Ht.useState)(null),[d,h]=(0,Ht.useState)(!1),g=(0,Ht.useMemo)(()=>r0(e,m?b:null),[e,m,b]);(0,Ht.useEffect)(()=>{let E=o.current?.ownerDocument.defaultView;if(!m||!E||b)return;let R=new E.AbortController,x=R.signal;return h(!1),t.text(Zd,x).then(N=>{x.aborted||v(l0(JSON.parse(N),e))}).catch(()=>{x.aborted||h(!0)}),()=>R.abort()},[m,e,t,b]);function w(E){E.preventDefault();let R=Dv(r.trim(),n(),e),x=R?R.matches:g.address(r);if(x.length!==1){f(x),c(!x.length);return}f([]),c(!1),a(R?.location??{id:x[0]})}return(0,it.jsxs)("div",{className:"kplex-publication-tools",ref:o,children:[(0,it.jsxs)("div",{className:"kplex-publication-search",children:[(0,it.jsx)(t0,{graph:g.graph,revision:b&&m?1:0,onActivate:E=>a({id:E}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:L.find,ariaLabel:L.find,focusRequest:i,inputTitle:`${L.find} (${rr.key})`,inputKeyShortcuts:rr.key}),e.manifest?.fullText&&(0,it.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,it.jsx)(xt,{icon:"file-search",label:L.fullText,"aria-pressed":m,onClick:()=>S(E=>!E)}),m&&(d||!b)&&(0,it.jsx)("span",{role:"status",children:d?L.searchUnavailable:L.searchLoading})]})]}),(0,it.jsxs)("form",{className:"kplex-publication-address",onSubmit:w,children:[(0,it.jsx)(Jv,{label:L.address,layout:"inline",controlId:l,actions:(0,it.jsx)(xt,{icon:"corner-down-left",label:L.open,type:"submit"}),children:(0,it.jsx)("input",{id:l,type:"text",placeholder:L.address,autoComplete:"off",maxLength:512,value:r,onChange:E=>{u(E.currentTarget.value),f([]),c(!1)}})}),p&&(0,it.jsx)("span",{role:"status",children:L.nodeUnavailable}),s.length>1&&(0,it.jsxs)("div",{className:"kplex-publication-address-matches",children:[(0,it.jsx)("p",{children:L.chooseNote}),(0,it.jsx)("ul",{children:s.slice(0,24).map(E=>(0,it.jsx)("li",{children:(0,it.jsxs)("button",{type:"button",onClick:()=>{f([]),a({id:E})},children:[e.nodes.get(E)?.name," · ",E]})},E))}),s.length>24&&(0,it.jsx)("p",{children:L.chooseAddress})]})]})]})}M();var Tt=j($e(),1);M();var PE="https://api.github.com",UE="https://github.com",IE=/^[a-z\d][a-z\d-]{0,38}$/i,BE=/^[a-z\d_.-]{1,100}$/i;function s0(e){return e.length<=256&&/^[a-z\d_.:/-]+$/i.test(e)&&!e.endsWith(".")&&!e.includes("..")&&e.split("/").every(t=>!!t&&!t.startsWith(".")&&!t.endsWith(".lock"))}function c0(e){if(!Wd(e))return null;let t=/^(https?):\/\/(?:www\.)?github\.com(?::(\d{1,5}))?(\/[^?#]*)?(?:[?#]|$)/i.exec(e);if(!t)return null;let[,n,i,a="/"]=t;if(i&&Number(i)!==(n.toLowerCase()==="https"?443:80))return null;let o;try{o=a.slice(1).replace(/\/$/,"").split("/").map(m=>decodeURIComponent(m))}catch{return{}}let[l,r,u,...s]=o;if(!l||!r||!IE.test(l)||!BE.test(r)||r==="."||r==="..")return{};let f=`${l}/${r}`,p=`${PE}/repos/${f}`,c=s.join("/");if(!u)return{repository:f,preview:{api:p,caption:f,comparison:!1}};if((u==="pull"||u==="issues")&&/^[1-9]\d{0,14}$/.test(s[0]??""))return{repository:f,preview:{api:`${p}/${u==="pull"?"pulls":"issues"}/${s[0]}`,caption:`${f} #${s[0]}`,comparison:!1}};if(u==="compare"){let m=c.split("...");if(m.length===2&&m.every(s0))return{repository:f,preview:{api:`${p}/compare/${m.map(encodeURIComponent).join("...")}?per_page=20`,caption:c,comparison:!0}}}if(u==="releases"&&s[0]==="tag"){let m=s.slice(1).join("/");if(s0(m))return{repository:f,preview:{api:`${p}/releases/tags/${encodeURIComponent(m)}`,caption:m,comparison:!1}}}return{repository:f}}function gh(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function yh(e,t){return typeof e=="string"&&e.trim()?e.trim().slice(0,t):void 0}function f0(e,t,n){let i=gh(n);if(!t.comparison)return{title:yh(i.title??i.name??i.full_name,240)??t.caption,description:yh(i.body??i.description,16e3)};let a=Array.isArray(i.commits)?i.commits.slice(0,20).flatMap(o=>{let{sha:l,commit:r}=gh(o);if(typeof l!="string"||!/^[a-f\d]{40}$/i.test(l))return[];let u=yh(gh(r).message,240);return[{sha:l.slice(0,7),title:u?.split(/\r?\n/,1)[0]??l.slice(0,7),href:`${UE}/${e}/commit/${l}`}]}):[];return{title:t.caption,commits:a,total:typeof i.total_commits=="number"&&Number.isSafeInteger(i.total_commits)&&i.total_commits>=a.length?i.total_commits:a.length}}M();var Os="http://www.w3.org/1999/xhtml",Fo="http://www.w3.org/2000/svg",GE="http://www.w3.org/1999/xlink",d0="http://www.w3.org/XML/1998/namespace",VE=new Set("a article aside audio b blockquote br caption code dd del div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s section span strong sub sup table tbody td th thead tr ul video".split(" ")),YE=new Set("svg a circle clipPath defs ellipse g image line linearGradient marker mask path pattern polygon polyline radialGradient rect stop symbol text textPath tspan use".split(" ")),qE=new Set("x y x1 x2 y1 y2 cx cy r rx ry fx fy fr d points width height viewBox markerWidth markerHeight refX refY startOffset stroke-width stroke-dasharray stroke-dashoffset font-size letter-spacing textLength pathLength transform gradientTransform patternTransform opacity fill-opacity stroke-opacity offset stop-opacity stroke-miterlimit".split(" ")),jE=new Set("stroke-linecap stroke-linejoin text-anchor dominant-baseline alignment-baseline font-weight font-style font-family fill-rule clip-rule gradientUnits spreadMethod markerUnits marker-start marker-end marker-mid patternUnits patternContentUnits clipPathUnits maskUnits maskContentUnits preserveAspectRatio orient vector-effect visibility lengthAdjust".split(" ")),XE=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),h0=/^[-a-z0-9_]{1,96}$/i,KE=/^[\d\s+.,%()a-z-]+$/i,QE=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,ZE=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,FE=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,JE=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,m0=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,p0=4*1024*1024;function Ls(e){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(e)}function WE(e){if(e.length>2048||!/^https?:\/\//i.test(e)||/[\p{Cc}\s\\]/u.test(e))return null;try{let t=new URL(e);return t.hostname&&!t.username&&!t.password?t.href:null}catch{return null}}function $E(e,t=""){if(!bi(e)||t&&!Ls(t))throw new Error("Invalid public link");return`?node=${e}${t?`#${encodeURIComponent(t)}`:""}`}function g0(e,t){if(e.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(e);if(!n||!t.nodeIds.has(n[1])||!bi(n[1]))return null;let i="";try{i=decodeURIComponent(n[2]??"")}catch{return null}if(i&&!Ls(i))return null;if(t.nodeAddress)return t.nodeAddress(n[1],i);let a=$E(n[1],i);return t.siteURL?new URL(a,t.siteURL).href:a}if(e.startsWith("#")){let n;try{n=decodeURIComponent(e.slice(1))}catch{return null}return Ls(n)?`#${encodeURIComponent(t.idPrefix?`${t.idPrefix}-${n}`:n)}`:null}return y0(e,t)??(t.allowExternalLinks===!1?null:WE(e))}function y0(e,t){let n=e.slice(2);return!JE.test(e)||!eh(n)||!t.assetPaths.has(n)?null:t.siteURL?new URL(`./${n}`,t.siteURL).href:`./${n}`}function eT(e,t){let n=new Map;for(let i of Array.from(e.querySelectorAll("[id]"))){let a=i.getAttribute("id");a&&/^[a-z0-9_.:-]{1,160}$/i.test(a)&&!n.has(a)&&n.set(a,`${t}-${n.size+1}`)}return n}function b0(e,t){t&&(e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"))}function v0(e,t,n,i){let a=y0(n,i);a&&(i.deferMedia?e.setAttribute("data-publication-asset",n.slice(2)):e.setAttribute(t,a))}function tT(e,t){if(e.getAttribute("data-publication-drawing")!=="true")return;t.setAttribute("data-publication-drawing","true");let n=e.getAttribute("data-publication-drawing-mode");(n==="light"||n==="dark")&&t.setAttribute("data-publication-drawing-mode",n);for(let i of["width","height"]){let a=`data-publication-${i}`,o=e.getAttribute(a)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(o)&&(t.setAttribute(a,o),t.style.setProperty(`--kplex-published-drawing-${i}`,o.endsWith("%")?o:`${o}px`))}}function nT(e,t,n){let i=e.localName,a=e.getAttribute("id")??e.getAttribute("data-publication-fragment");if(a&&Ls(a)&&(t.id=n.idPrefix?`${n.idPrefix}-${a}`:a,t.setAttribute("data-publication-fragment",a)),i==="a"&&b0(t,g0(e.getAttribute("href")??"",n)),i==="figure"&&tT(e,t),i==="img"||i==="audio"||i==="video"){let o=e.getAttribute("src")??"";(i==="img"?m0:i==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(o)&&v0(t,"src",o,n),i==="img"?(t.setAttribute("alt",(e.getAttribute("alt")??"").slice(0,512)),t.setAttribute("loading","lazy"),t.setAttribute("decoding","async")):(t.setAttribute("controls","controls"),t.setAttribute("preload","none"))}if(i==="aside"||i==="blockquote"){let o=e.getAttribute("data-callout");o&&h0.test(o)&&t.setAttribute("data-callout",o)}if(i==="ol"){let o=e.getAttribute("start");o&&/^\d{1,7}$/.test(o)&&t.setAttribute("start",o)}}var iT=/@font-face\s*\{\s*font-family:\s*(["']?)([a-z0-9][a-z0-9 _-]{0,95})\1\s*;\s*src:\s*url\(\s*(["']?)data:font\/(woff2|woff|ttf|otf);base64,([A-Za-z0-9+/]+={0,2})\3\s*\)\s*;([^{}]*)\}/gi,aT=/^(?:normal|bold|[1-9]\d{0,2}|1000)(?: (?:[1-9]\d{0,2}|1000))?$/i,oT=/^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?(?:\s*,\s*u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?)*$/i,lT=new Set(["text","tspan","textPath"]),rT={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},uT=512*1024;function sT(e,t){let n=new Map,i=[],a=0;for(let o of Array.from(e.children))if(!(o.namespaceURI!==Fo||o.localName!=="defs"))for(let l of Array.from(o.children)){if(l.namespaceURI!==Fo||l.localName!=="style"||l.childElementCount)continue;let r=l.textContent??"";if(a+=r.length,a>uT)return{families:new Map,rules:[]};for(let u of r.matchAll(iT)){let s=u[2].trim().toLowerCase(),f=u[4].toLowerCase(),p=u[5];if(!(f==="woff2"||f==="woff"||f==="ttf"||f==="otf")||p.length<8||p.length%4||!atob(p.slice(0,8)).startsWith(rT[f]))continue;let c=n.get(s)??`${t}-font-${n.size+1}`;n.set(s,c);let m=new Map;for(let b of u[6].split(";")){let[v,d]=b.split(":").map(h=>h.trim().toLowerCase());d&&(v==="unicode-range"&&d.length<=8192&&oT.test(d)||v==="font-weight"&&aT.test(d)||v==="font-style"&&/^(?:normal|italic|oblique)$/.test(d))&&m.set(v,d)}let S=[...m].map(([b,v])=>`${b}:${v};`).join("");i.push(`@font-face{font-family:${c};src:url(data:font/${f};base64,${p});${S}}`)}}return{families:n,rules:i}}function cT(e,t){return e.split(",").map(n=>t?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function fT(e,t,n,i,a){for(let o of Array.from(e.attributes)){let{localName:l,value:r}=o;if(!(r.length>65536)){if(lT.has(e.localName)&&(l==="style"&&!o.namespaceURI&&/(?:^|;)\s*white-space\s*:\s*pre\s*(?:;|$)/i.test(r)||l==="space"&&o.namespaceURI===d0&&r==="preserve")){t.setAttributeNS(d0,"xml:space","preserve");continue}if(l==="href"&&(o.namespaceURI===null||o.namespaceURI===GE)){if(e.localName==="a")b0(t,g0(r,i));else if(e.localName==="image"&&m0.test(r))v0(t,"href",r,i);else if((e.localName==="use"||e.localName==="textPath"||e.localName.endsWith("Gradient"))&&r.startsWith("#")){let u=n.get(r.slice(1));u&&t.setAttribute("href",`#${u}`)}continue}if(!o.namespaceURI)if(l==="id"){let u=n.get(r);u&&t.setAttribute(l,u)}else if(XE.has(l)){let u=FE.exec(r),s=u&&n.get(u[1]);s?t.setAttribute(l,`url(#${s})`):ZE.test(r)&&t.setAttribute(l,r)}else qE.has(l)&&KE.test(r)?t.setAttribute(l,r):jE.has(l)&&QE.test(r)&&t.setAttribute(l,l==="font-family"?cT(r,a?.families):r)}}}function dT(e,t,n){if(n.idPrefix&&!h0.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let a=n.siteURL?t:t.implementation.createDocument(null,null),o=a.adoptNode(new i.DocumentFragment),l=0,r=0,u=0,s=new Set,f=(p,c,m,S,b)=>{if(++l>1e5||m>64)throw new Error("Publication content too complex");if(p.nodeType===3||p.nodeType===4){let d=p.nodeValue??"";if(u+=d.length,u>p0)throw new Error("Publication content too large");c.appendChild(a.createTextNode(d));return}if(p.nodeType!==1)return;let v=p;if(v.namespaceURI===Fo&&YE.has(v.localName)){if(v.localName==="svg"){let g=`${n.idPrefix??"svg"}-s${++r}`;S=eT(v,g),b=n.allowDrawingFonts?sT(v,g):void 0}if(!S)return;let d=a.createElementNS(Fo,v.localName);fT(v,d,S,n,b);let h=d.getAttribute("id");if(h&&s.has(h)?d.removeAttribute("id"):h&&s.add(h),c.appendChild(d),v.localName==="svg"&&b?.rules.length){let g=a.createElementNS(Fo,"defs"),w=a.createElementNS(Fo,"style");w.textContent=b.rules.join(`
769
- `),g.appendChild(w),d.appendChild(g)}for(let g of Array.from(v.childNodes))f(g,d,m+1,S,b)}else if(!S&&v.namespaceURI===Os&&VE.has(v.localName)){if(n.drawingMode&&v.localName==="figure"&&v.getAttribute("data-publication-drawing")==="true"){let h=v.getAttribute("data-publication-drawing-mode");if((h==="light"||h==="dark")&&h!==n.drawingMode)return}let d=a.createElementNS(Os,v.localName);nT(v,d,n),c.appendChild(d);for(let h of Array.from(v.childNodes))f(h,d,m+1,null)}};for(let p of e)f(p,o,0,null);return o}function S0(e,t,n){if(e.length>p0||/<!\s*(?:doctype|entity)|<\?[^>]*\?>/i.test(e))throw new Error("Invalid publication content");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let a=new i.DOMParser().parseFromString(`<article xmlns="${Os}">${e}</article>`,"application/xhtml+xml");if(a.documentElement.namespaceURI!==Os||a.querySelector("parsererror"))throw new Error("Invalid publication markup");return dT(Array.from(a.documentElement.childNodes),t,{...n,allowDrawingFonts:!0})}M();M();function w0(e){if(e.protocol!=="https:"&&e.protocol!=="http:")return null;let t=e.hostname.toLowerCase();if(!["youtube.com","www.youtube.com","m.youtube.com","youtu.be","www.youtube-nocookie.com"].includes(t))return null;let n=e.pathname.split("/").filter(Boolean),i=t==="youtu.be"?n[0]:["embed","shorts","live"].includes(n[0])?n[1]:e.searchParams.get("v");return i&&/^[A-Za-z0-9_-]{11}$/.test(i)?{id:i,portrait:n[0]==="shorts"}:null}function x0(e){let t;try{t=typeof e=="string"?new URL(e):e}catch{return null}let n=w0(t);if(!n)return null;let i=new URL(`https://www.youtube.com/embed/${n.id}`);i.searchParams.set("playsinline","1");let a=t.searchParams.get("start")??t.searchParams.get("t");return a&&/^\d+s?$/.test(a)&&i.searchParams.set("start",a.replace(/s$/,"")),{url:i.href,aspectRatio:n.portrait?9/16:16/9}}M();var Jo=j($e(),1);M();async function E0(e,t,n,i){let a=await e.fetch(t,{credentials:"omit",redirect:"error",referrerPolicy:"no-referrer",signal:i}),o=a.body?.getReader();if(!a.ok||!o||Number(a.headers.get("Content-Length"))>n)throw await o?.cancel(),new Error("Publication resource unavailable");let l=[],r=0;try{for(;;){let f=await o.read();if(f.done)break;if(r+=f.value.byteLength,r>n)throw new Error("Publication resource exceeds its declared size");l.push(f.value)}}catch(f){throw await o.cancel().catch(()=>{}),f}finally{o.releaseLock()}let u=new Uint8Array(r),s=0;for(let f of l)u.set(f,s),s+=f.byteLength;return u}async function bh(e,t,n,i){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await E0(e,t,n,i)))}async function T0(e,t,n){return bh(e,t,lv,n)}function M0(e,t,n,i,a){let o=new URL("./",t),l=new Map(n.resources.map(s=>[s.path,s])),r=new Set([...l.keys()].filter(s=>s.startsWith("assets/")));async function u(s,f){let p=l.get(s),c=new URL(s,o);if(!p||c.origin!==o.origin||c.pathname!==`${o.pathname}${s}`||!e.crypto.subtle)throw new Error("Publication resource unavailable");let m=i?await i(s,p.bytes,f):await E0(e,c,p.bytes,f);if(m.byteLength!==p.bytes)throw new Error("Publication resource size mismatch");let S=await e.crypto.subtle.digest("SHA-256",m);if(f.throwIfAborted(),Array.from(new Uint8Array(S),v=>v.toString(16).padStart(2,"0")).join("")!==p.sha256)throw new Error("Publication resource checksum mismatch");return m}return{siteURL:o,assetPaths:r,bytes:u,nodeAddress:a,has:s=>l.has(s),async text(s,f){return new TextDecoder("utf-8",{fatal:!0}).decode(await u(s,f))}}}var at=j(pe(),1);function R0({page:e}){let t=(0,Jo.useRef)(null),[n,i]=(0,Jo.useState)(),{repository:a,preview:o}=e;return(0,Jo.useEffect)(()=>{let l=t.current?.ownerDocument.defaultView;if(!l||!a||!o)return;let r=new l.AbortController;return bh(l,new l.URL(o.api),8*1024*1024,r.signal).then(u=>{r.signal.aborted||i(f0(a,o,u))}).catch(()=>{r.signal.aborted||i(null)}),()=>r.abort()},[a,o]),(0,at.jsx)("div",{ref:t,className:"kplex-publication-github-preview",children:o?n===void 0?(0,at.jsx)("p",{role:"status",children:L.githubLoading}):n===null?(0,at.jsx)("p",{role:"status",children:L.githubPreviewUnavailable}):(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("h3",{children:n.title}),n.description&&(0,at.jsx)("p",{className:"kplex-publication-github-description",children:n.description}),n.commits&&(n.commits.length?(0,at.jsxs)(at.Fragment,{children:[n.total!==void 0&&n.total>n.commits.length&&(0,at.jsx)("p",{children:L.githubCommitCount(n.commits.length,n.total)}),(0,at.jsx)("ol",{children:n.commits.map(l=>(0,at.jsx)("li",{children:(0,at.jsxs)("a",{href:l.href,target:"_blank",rel:"noopener noreferrer",children:[(0,at.jsx)("code",{children:l.sha})," ",l.title]})},l.href))})]}):(0,at.jsx)("p",{children:L.githubNoCommits}))]}):(0,at.jsx)("p",{children:L.githubOpenOriginal})})}var Me=j(pe(),1),N0="http://www.w3.org/2000/svg",hT={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml",mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",pdf:"application/pdf"};function vh(e,t){if(t)return Array.from(e.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===t||n.getAttribute("data-publication-fragment")===t)}function A0({publication:e,resources:t,location:n,id:i,contentScope:a,colorMode:o,onClose:l,onNavigate:r,dock:u,onSwitchDock:s}){let f=(0,Tt.useRef)(null),p=(0,Tt.useRef)(null),c=(0,Tt.useRef)(!1),m=(0,Tt.useRef)(n.fragment);m.current=n.fragment;let[S,b]=(0,Tt.useState)(0),[v,d]=(0,Tt.useState)("loading"),[h,g]=(0,Tt.useState)(0),w=e.published.get(n.id),E=w.kind==="url"?w.url:void 0,R=(0,Tt.useMemo)(()=>c0(E),[E]),x=(0,Tt.useMemo)(()=>E?x0(E):null,[E]),N=x&&["https:","http:"].includes(t.siteURL.protocol)&&new URL(x.url).origin!==t.siteURL.origin;(0,Tt.useEffect)(()=>{let T=f.current,I=T?.ownerDocument.defaultView;if(!T||!I||E)return;let H=new I.AbortController,_=H.signal,K=new Map;g(0),T.replaceChildren();let ne=async W=>{let re=K.get(W);if(re)return re;let $=hT[W.slice(W.lastIndexOf(".")+1)];if(!$)throw new Error("Unsupported publication media");let C=await t.bytes(W,_);_.throwIfAborted();let P=I.URL.createObjectURL(new I.Blob([C],{type:$}));return K.set(W,P),P},le=async()=>{if(w.kind!=="document"&&w.kind!=="drawing"){if(!w.asset){d("unavailable");return}let P=await ne(w.asset);_.throwIfAborted();let z=T.ownerDocument.createElement("a");z.href=P,z.download=w.asset.slice(7),z.textContent=L.downloadAsset,T.replaceChildren(z),d("ready");return}let W=await t.text($d(w.id),_),re=S0(W,T.ownerDocument,{siteURL:t.siteURL,nodeAddress:t.nodeAddress,nodeIds:new Set(e.nodes.keys()),assetPaths:t.assetPaths,idPrefix:a,deferMedia:!0,drawingMode:o}),$=Array.from(re.querySelectorAll("[data-publication-asset]"),P=>({element:P,path:P.getAttribute("data-publication-asset"),download:!1})),C=new URL("./assets/",t.siteURL);for(let P of Array.from(re.querySelectorAll("a[href]"))){let z=new URL(P.getAttribute("href"),t.siteURL);if(z.origin!==C.origin||!z.pathname.startsWith(C.pathname))continue;let q=z.pathname.slice(t.siteURL.pathname.length);P.removeAttribute("href"),P.namespaceURI!==N0&&t.assetPaths.has(q)&&$.push({element:P,path:q,download:!0})}_.throwIfAborted(),T.replaceChildren(re),d("ready"),vh(T,m.current)?.scrollIntoView({block:"start"});for(let{element:P,path:z,download:q}of $)try{let ee=await ne(z);_.throwIfAborted(),P.setAttribute(q||P.namespaceURI===N0?"href":"src",ee),q&&P.setAttribute("download",z.slice(7)),P.removeAttribute("data-publication-asset")}catch{if(_.aborted)return;g(ee=>ee+1)}};return d("loading"),le().catch(()=>{_.aborted||d("failed")}),()=>{H.abort(),T.replaceChildren();for(let W of K.values())I.URL.revokeObjectURL(W)}},[S,w,e,t,a,o,E]),(0,Tt.useEffect)(()=>{f.current&&vh(f.current,n.fragment)?.scrollIntoView({block:"start"})},[n.fragment]),(0,Tt.useEffect)(()=>{c.current&&(c.current=!1,p.current?.focus({preventScroll:!0}))},[n.id]);function G(T){if(T.defaultPrevented||T.metaKey||T.ctrlKey||T.shiftKey||T.altKey)return;let I=T.target;if(!(I instanceof T.currentTarget.ownerDocument.defaultView.Element))return;let H=I.closest("a")?.getAttribute("href");if(!H)return;let _=zv(H,t.siteURL,e,n.id);if(!_)return;T.preventDefault();let K=H.startsWith("#")&&_.id===n.id&&f.current?vh(f.current,_.fragment):null;c.current=T.detail===0&&_.id!==n.id,r(K?{..._,fragment:K.getAttribute("data-publication-fragment")??void 0}:_)}return(0,Me.jsxs)("aside",{id:i,className:`kplex-publication-note${E?" kplex-publication-web-note":""}`,"aria-labelledby":`${i}-heading`,children:[(0,Me.jsxs)("header",{className:"kplex-publication-sidecar-heading",children:[(0,Me.jsx)("h2",{ref:p,id:`${i}-heading`,tabIndex:-1,children:w.title}),(0,Me.jsxs)("div",{className:"kplex-publication-sidecar-actions",children:[s&&(0,Me.jsx)(xt,{icon:u==="bottom"?"panel-right":"panel-bottom",onClick:s,label:u==="bottom"?L.dockSidecarRight:L.dockSidecarBottom}),(0,Me.jsx)(xt,{icon:"x",onClick:l,label:L.closeSidecar})]})]}),E?(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsxs)("div",{className:"kplex-publication-web-source",children:[(0,Me.jsx)("a",{href:E,target:"_blank",rel:"noopener noreferrer",children:L.openWebsite}),!R&&!x&&(0,Me.jsx)("p",{children:L.webFrameHelp})]}),R?(0,Me.jsx)(R0,{page:R},E):x?N&&(0,Me.jsx)("iframe",{className:"kplex-publication-web-frame kplex-publication-video-frame",title:w.title,src:x.url,style:{aspectRatio:x.aspectRatio??void 0},sandbox:"allow-scripts allow-same-origin allow-presentation",referrerPolicy:"strict-origin-when-cross-origin",allow:"encrypted-media; picture-in-picture",allowFullScreen:!0},x.url):(0,Me.jsx)("iframe",{className:"kplex-publication-web-frame",title:w.title,src:E,sandbox:"allow-scripts",referrerPolicy:"no-referrer"},E)]}):(0,Me.jsxs)(Me.Fragment,{children:[v==="loading"&&(0,Me.jsx)("p",{role:"status",children:L.loadingNote}),v==="failed"&&(0,Me.jsxs)("div",{role:"alert",children:[(0,Me.jsx)("p",{children:L.noteUnavailable}),(0,Me.jsx)("button",{type:"button",onClick:()=>b(T=>T+1),children:L.retry})]}),v==="unavailable"&&(0,Me.jsx)("p",{children:L.noDocument}),(0,Me.jsx)("div",{ref:f,className:"kplex-publication-note-content","aria-busy":v==="loading",onClick:G}),h>0&&(0,Me.jsxs)("div",{role:"status",children:[(0,Me.jsx)("p",{children:L.mediaUnavailable}),(0,Me.jsx)("button",{type:"button",onClick:()=>b(T=>T+1),children:L.retry})]})]})]})}M();var Jn=j($e(),1);var Si=j(pe(),1),O0=736,C0=6;function mT({dock:e,sidecarId:t,size:n,minimum:i,maximum:a,onSize:o}){let l=(0,Jn.useRef)(null),r=(0,Jn.useRef)(null),u=e!=="bottom",s=e==="left"?1:-1;function f(h){return u?h.clientX:h.clientY}function p(h){o(Math.max(i,Math.min(a,Math.round(h))))}function c(h,g){r.current?.pointer===g&&(r.current=null,h.hasPointerCapture(g)&&h.releasePointerCapture(g))}(0,Jn.useLayoutEffect)(()=>{let h=l.current;return()=>{h&&r.current&&c(h,r.current.pointer)}},[e]);function m(h){h.button!==0||r.current||(h.preventDefault(),h.currentTarget.focus({preventScroll:!0}),h.currentTarget.setPointerCapture(h.pointerId),r.current={pointer:h.pointerId,origin:f(h),size:n})}function S(h){let g=r.current;g?.pointer===h.pointerId&&p(g.size+s*(f(h)-g.origin))}function b(h){S(h),c(h.currentTarget,h.pointerId)}function v(h){c(h.currentTarget,h.pointerId)}function d(h){if(h.altKey||h.ctrlKey||h.metaKey)return;let[g,w]=u?e==="left"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]:["ArrowUp","ArrowDown"],E=h.shiftKey?1:10,R;if(h.key==="Home")R=i;else if(h.key==="End")R=a;else if(h.key===g)R=n+E;else if(h.key===w)R=n-E;else return;h.preventDefault(),p(R)}return(0,Si.jsx)("div",{ref:l,className:"kplex-publication-divider",role:"separator",tabIndex:0,"aria-label":L.resizeSidecar,"aria-controls":t,"aria-orientation":u?"vertical":"horizontal","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":n,onPointerDown:m,onPointerMove:S,onPointerUp:b,onPointerCancel:v,onLostPointerCapture:v,onKeyDown:d})}function L0({canvas:e,sidecarId:t,sidecarOpen:n,dock:i,canDockLaterally:a,onDock:o,renderSidecar:l}){let r=(0,Jn.useRef)(null),[u,s]=(0,Jn.useState)({width:0,height:0}),[f,p]=(0,Jn.useState)({}),c=i!=="bottom",m=c?u.width:u.height,S=Math.max(0,m-(c?260:160)-C0),b=Math.min(S,c?240:120),v=f[i]??Math.round(m*(c?.34:.43)),d=Math.max(b,Math.min(S,v)),h=n?{"--kplex-publication-sidecar-size":`${d}px`,"--kplex-publication-divider-size":`${C0}px`}:void 0;(0,Jn.useLayoutEffect)(()=>{let E=r.current,R=E?.ownerDocument.defaultView;if(!E||!R)return;let x=E;function N(){let T=x.clientWidth,I=x.clientHeight;s(H=>H.width===T&&H.height===I?H:{width:T,height:I})}let G=new R.ResizeObserver(N);return G.observe(E),N(),()=>G.disconnect()},[]);function g(E){p(R=>R[i]===E?R:{...R,[i]:E})}function w(){o(i==="bottom"?"right":"bottom")}return(0,Si.jsxs)("div",{ref:r,className:`kplex-publication-workspace${n?" is-sidecar-open":""}`,"data-sidecar-dock":n?i:void 0,style:h,children:[e,n?(0,Si.jsxs)(Si.Fragment,{children:[(0,Si.jsx)(mT,{dock:i,sidecarId:t,size:d,minimum:b,maximum:S,onSize:g}),l(i,a?w:void 0)]}):(0,Si.jsx)("div",{id:t,hidden:!0})]})}M();M();function zs(e,t,n){let i=n/2;switch(t){case"top":return{x:e.x,y:e.y-e.height/2-3-i};case"bottom":return{x:e.x,y:e.y+e.height/2+3+i};case"left":return{x:e.x-e.width/2-3-i,y:e.y};case"right":return{x:e.x+e.width/2+3+i,y:e.y}}}function z0(e){switch(e){case"top":return{x:0,y:-1};case"bottom":return{x:0,y:1};case"left":return{x:-1,y:0};case"right":return{x:1,y:0}}}function pT(e,t,n,i,a){let o=1-a,l=o*o,r=a*a;return{x:l*o*e.x+3*l*a*t.x+3*o*r*n.x+r*a*i.x,y:l*o*e.y+3*l*a*t.y+3*o*r*n.y+r*a*i.y}}function Sh(e,t,n,i,a){if(a==="straight")return{d:`M ${e.x} ${e.y} L ${t.x} ${t.y}`,midpoint:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}};let o=Math.hypot(t.x-e.x,t.y-e.y),l=Math.max(20,Math.min(108,o*.2)),r=z0(n),u=z0(i),s={x:e.x+r.x*l,y:e.y+r.y*l},f={x:t.x+u.x*l,y:t.y+u.y*l};return{d:`M ${e.x} ${e.y} C ${s.x} ${s.y}, ${f.x} ${f.y}, ${t.x} ${t.y}`,midpoint:pT(e,s,f,t,.5)}}M();M();var wh=["parent","child","left","right","previous","next"];function D0(e,t,n,i){let a=t.neighbours(e,"parent").slice(0,n),o=t.neighbours(e,"child").slice(0,n),l=[...t.neighbours(e,"left"),...t.neighbours(e,"previous")].slice(0,n),r=[...t.neighbours(e,"right"),...t.neighbours(e,"next")].slice(0,n),u=new Set([t.identity(e),...[...a,...o,...l,...r].map(p=>t.identity(p.page))]),s=new Map([...a,...o,...l,...r].map(p=>[t.identity(p.page),p.page])),f=new Map;if(i)for(let p of s.values())for(let c of wh)for(let m of t.neighbours(p,c)){let S=t.identity(m.page);if(u.has(S))continue;let b=f.get(S);(!b||b.relationType!==1)&&f.set(S,{...m,role:"sibling"})}return{center:e,parents:a,children:o,leftFriends:l,rightFriends:r,siblings:t.sort([...f.values()]).slice(0,n)}}M();var oa=(e,t,n)=>Math.max(t,Math.min(n,e));function P0(e){return e.horizontalCompactingFactor??e.compactingFactor}function gT(e){let t=e.compactView?.82:1;return{horizontal:oa(1.35/P0(e),.38,1.35)*t,vertical:oa(1.35/e.compactingFactor,.38,1.35)*t,spacing:oa(e.minLinkLength/18,.72,1.7)}}function H0(e,t){return Math.max(1,Math.min(t==="parent"?3:7,Math.round(t==="parent"?e.parentColumns:e.childColumns)))}function _s(e){return oa(e.siblingRelativeSize/100,.3,.85)}function _0(e,t){let n=oa(P0(e),.75,4);return n>=3?-t*.05*(n-3):48*(3-n)*oa(e.minLinkLength/18,.72,1.7)*(e.compactView?.82:1)}function Ds(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2+24))}function Hs(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2))}function On(e,t,n=!1){let i=[...e];for(let a of e){let o=t.mini(a,n);o&&i.push({...a,width:o.width,height:o.viewportHeight,y:a.y+a.height/2+o.topGap+o.viewportHeight/2})}return i}function k0(e,t,n,i,a,o,l){let r=e;if(!r.length)return r;let u=[];for(let c=0;c<r.length;c+=i){let m=r.slice(c,c+i);u.push({nodes:m,height:Math.max(...m.map(S=>S.height)),reserve:Math.max(0,...m.map(S=>l.reserve(S)))})}let s=t,f=u[0].height,p=u[0].reserve;return u.forEach((c,m)=>{let S;if(m===0){let h=Math.max(0,c.height-26)/2;S=n===-1?t-c.reserve-h:t+h}else n===1?S=s+f/2+p+o+c.height/2:S=s-f/2-o-c.reserve-c.height/2;let b=c.nodes.map(h=>l.width(h)),d=-(b.reduce((h,g)=>h+g,0)+a*Math.max(0,c.nodes.length-1))/2;c.nodes.forEach((h,g)=>{let w=b[g];h.x=d+w/2,h.y=S,d+=w+a}),s=S,f=c.height,p=c.reserve}),r}function xh(e,t,n,i){let a=e;return U0(a,t,n,i),a}function U0(e,t,n,i){if(!e.length)return;let a=e.map(s=>i.verticalReserve(s));e[0].x=t,e[0].y=0;for(let s=1;s<e.length;s+=1){let f=e[s-1],p=e[s];p.x=t,p.y=f.y+f.height/2+a[s-1]+n+p.height/2}let o=e[0].y-e[0].height/2,l=e.length-1,r=e[l].y+e[l].height/2+a[l],u=-(o+r)/2;for(let s of e)s.y+=u}function Eh(e,t,n,i,a="center"){if(!e.length)return;let o=Math.min(...e.map(p=>p.y-p.height/2)),r=Math.max(...e.map(p=>p.y+p.height/2+i.verticalReserve(p)))-o,u=Math.max(1,n-t),f=(r>u?t:a==="midline"?oa(o,t,n-r):a==="bottom"?n-r:a==="top"?t:t+(u-r)/2)-o;for(let p of e)p.y+=f}function yr(e,t,n,i,a,o,l){let s=a.centerX-a.width/2,f=a.centerX+a.width/2,p=a.fixedEdgeY,c=a.fixedEdgeY;t.length&&(s=Math.min(s,...t.map(b=>b.x-b.width/2-24)),f=Math.max(f,...t.map(b=>b.x+b.width/2+24)),p=Math.min(...t.map(b=>b.y-b.height/2)),c=Math.max(...t.map(b=>b.y+b.height/2)));let m=l!==void 0&&o!==void 0?Math.max(72,o-l):Math.max(72,n),S=l!==void 0&&o!==void 0?l:i==="top"?(t.length?c+16:a.fixedEdgeY)-m:t.length?p-16:a.fixedEdgeY;return{key:e,left:s,top:S,width:f-s,height:m,resizeEdge:i}}function br(e,t,n,i,a,o){if(!t.length)return null;let l=24,r=16,u=Math.min(...t.map(g=>g.x-g.width/2)),s=Math.max(...t.map(g=>g.x+g.width/2)),f=Math.min(...t.map(g=>g.y-g.height/2)),p=Math.max(...t.map(g=>g.y+g.height/2)),c=f-r,m=p+r,S=m-c,b=o!==void 0&&a!==void 0?Math.max(72,a-o):a===void 0?Number.POSITIVE_INFINITY:Math.max(72,a-c),v=Math.min(S,Math.max(72,n),b);if(S<=v+.5)return null;let d=c,h=0;return o!==void 0&&a!==void 0?(d=o,h=Math.max(0,d-c)):a!==void 0?(d=a-v,h=Math.max(0,d-c)):(i==="bottom"?d=m-v:i==="center"&&(d=oa(-v/2,c,m-v)),h=Math.max(0,d-c)),{key:e,left:u-l,top:d,width:s-u+l*2,height:v,contentTop:c,contentHeight:S,initialScrollTop:h}}function I0(e,t,n,i=!1){let a=_e=>Math.max(0,..._e.filter(xi=>xi.editor).map(xi=>xi.height+72));[...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.siblings].some(_e=>_e.editor)&&(t={...t,parentMaxHeight:Math.max(t.parentMaxHeight,a(e.parents)),childMaxHeight:Math.max(t.childMaxHeight,a(e.children)),friendMaxHeight:Math.max(t.friendMaxHeight,a([...e.leftFriends,...e.rightFriends])),siblingMaxHeight:Math.max(t.siblingMaxHeight,a(e.siblings))});let o=e.center,{horizontal:l,vertical:r,spacing:u}=gT(t),s=50*l*u,f=36*r*u,p=66*r*u,c=18*r*u,m=26,S=-(o.height/2+m/2+p),b=Math.max(42,52*r*u),v=o.height/2+m/2+p+b,d=k0(e.parents,S,-1,H0(t,"parent"),s,f,n),h=k0(e.children,v,1,H0(t,"child"),s,f,n),g=o.width/2,w=g+205*l*u,E=xh(e.leftFriends,-w,c,n),R=t.lateralArrangement==="left",x=xh(e.rightFriends,R?-w:w,c,n),N=R?[...E,...x]:E;R&&U0(N,-w,c,n);let G=!R&&x.length>0,T=G?Math.max(...x.map(_e=>_e.x+_e.width/2)):g,I=G?285:205,H=G?190:120,_=Math.max(w+I*l*u,T+H*l*u),K=xh(e.siblings,_,c,n),ne=h.length?Math.min(...h.map(_e=>_e.y-_e.height/2)):o.height/2+p+b+12,le=Math.max(30,36*r*u),W=Math.max(120,t.friendMaxHeight),re=Math.max(120,t.siblingMaxHeight),$=i?R?Math.min(W/2,ne-le):W/2:ne-le,C=$-W,P=C,z=$,q=C,ee=$;Eh(N,P,z,n,"midline"),R||Eh(x,q,ee,n,"midline");let ie=Math.max(58,72*r*u),B=t.alignSiblingsToFirstParent?d[0]:void 0,X=i?re/2:B?B.y+B.height/2:$-ie,ce=i?-re/2:X-re;Eh(K,ce,X,n,i?"midline":"center");let he=On(d,n,!0),yt=On(K,n,!0),Ee=d.length?Ds(he,o.width/2+24):170,bt=Hs(he,o.width/2),Ke=Math.max(Ds(On(E,n,!0),115,-w),Ds(On(x,n,!0),115,R?-w:w)),Ln=Math.max(Hs(On(E,n,!0),0,-w),Hs(On(x,n,!0),0,R?-w:w)),We=Ds(yt,110,_),ln=Hs(yt,0,_),Mt=R?Math.max(0,_0(t,Ee*2)):_0(t,Ee*2);d.length&&(w=Ee+Ke+Mt),w=Math.max(w,bt+Ln+4);for(let _e of E)_e.x=-w;for(let _e of x)_e.x=R?-w:w;(d.length||G)&&(_=G?w+Ke+We+Math.max(0,Mt):Ee+We+Mt),_=Math.max(_,bt+ln+4,G?w+Ln+ln+4:0);for(let _e of K)_e.x=_;let _t=On(d,n),wi=On(h,n),Wn=On(N,n),la=On(R?[]:x,n),Re=On(K,n),Be={},Rt=br("parent",_t,t.parentMaxHeight,"bottom"),Ge=br("child",wi,t.childMaxHeight,"top"),jt=br("left",Wn,t.friendMaxHeight,"top",z,P),rn=br("right",la,t.friendMaxHeight,"top",ee,q),$n=br("sibling",Re,t.siblingMaxHeight,"top",X,ce);Rt&&(Rt.left=-Ee,Rt.width=Ee*2,Be.parent=Rt),Ge&&(Be.child=Ge),jt&&(Be.left=jt),rn&&(Be.right=rn),$n&&(Be.sibling=$n);let un={},ra=S+m/2+16,ua=v-m/2-16;un.parent=yr("parent",_t,t.parentMaxHeight,"top",{centerX:0,width:Ee*2,fixedEdgeY:ra}),un.child=yr("child",wi,t.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:ua}),un.left=yr("left",Wn,t.friendMaxHeight,"top",{centerX:-w,width:Ke*2,fixedEdgeY:z},z,P),R||(un.right=yr("right",la,t.friendMaxHeight,"top",{centerX:w,width:Ke*2,fixedEdgeY:ee},ee,q)),un.sibling=yr("sibling",Re,t.siblingMaxHeight,"top",{centerX:_,width:We*2,fixedEdgeY:X},X,ce);let Sn=[o,...d,...h,...E,...x,...K];return t.flipEastWest&&yT(Sn,un,Be),{nodes:Sn,zoneViewports:Be,zoneAreas:un}}function yT(e,t,n){for(let i of e)i.x=-i.x;for(let i of Object.values(t))i&&(i.left=-i.left-i.width);for(let i of Object.values(n))i&&(i.left=-i.left-i.width)}M();var B0={version:1,fields:{flipEastWest:{defaultValue:!1,validate:e=>typeof e=="boolean"}}};function ks(e){return e?.status!=="unavailable"&&e?.values.flipEastWest===!0}function Ps(e){return{top:"parent",bottom:"child",left:e?"right":"left",right:e?"left":"right"}}function G0(e,t=!1){return e==="parent"?{source:"top",target:"bottom"}:e==="child"?{source:"bottom",target:"top"}:(e==="left"||e==="previous")!==t?{source:"left",target:"right"}:{source:"right",target:"left"}}var bT={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var vT={parent:{key:"parentMaxHeight",min:140,max:800},child:{key:"childMaxHeight",min:160,max:900},left:{key:"friendMaxHeight",min:140,max:800},right:{key:"friendMaxHeight",min:140,max:800},sibling:{key:"siblingMaxHeight",min:120,max:700}};function ST(e){if(!e||typeof e!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(a=>{let o=Reflect.get(e,a);return typeof o=="number"&&Number.isFinite(o)}))return!1;let n=Reflect.get(e,"horizontalCompactingFactor"),i=Reflect.get(e,"lateralArrangement");return typeof Reflect.get(e,"compactView")=="boolean"&&(n===void 0||typeof n=="number"&&Number.isFinite(n))&&(i===void 0||i==="left"||i==="split")}var V0={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:B0,capabilities:{sections:!0,descendants:!0,editor:!0,compact:!1},defaultState:null,restoreState:()=>null,project(e){let t=e.read.node(e.attention);if(!t||!e.read.isCurrent())return null;let n=!1,i=new Map,a=(f,p)=>{let c=JSON.stringify([f.id,p]),m=i.get(c)??e.read.relations(f.id,p);return i.set(c,m),n||=m.truncated||m.coverage==="unavailable",m.items.map(S=>({page:S.node,role:S.role,relationType:S.relationType,value:S}))},o=D0(t,{identity:f=>f.id,neighbours:a,sort:f=>f.sort((p,c)=>e.read.compare(p.page,c.page))},e.maximum,!e.state||typeof e.state!="object"||Reflect.get(e.state,"renderSiblings")!==!1),l=ks(e.configuration),r=[{id:"attention",nodeId:t.id,representation:"thought",...l?{ports:Ps(!0)}:{}}],u=[],s=(f,p)=>f.forEach((c,m)=>{let S=JSON.stringify([p,c.page.id,m]),b=G0(p,ks(e.configuration));r.push({id:S,nodeId:c.page.id,role:p,areaId:p,representation:"thought",relation:c.value,groupingPartition:p,...l?{ports:Ps(!0)}:{}}),p!=="sibling"&&u.push({id:S,kind:"semantic",source:"attention",target:S,sourceNode:t.id,targetNode:c.page.id,sourcePort:b.source,targetPort:b.target,relation:c.value})});s(o.parents,"parent"),s(o.children,"child"),s(o.leftFriends,"left"),s(o.rightFriends,"right"),s(o.siblings,"sibling");for(let f of r.filter(p=>p.role&&p.role!=="sibling")){if(!f.nodeId)continue;let p=e.read.node(f.nodeId);if(!p)continue;let c=wh.flatMap(m=>a(p,m));for(let m of r.filter(S=>S.role==="sibling")){let S=c.find(v=>v.page.id===m.nodeId),b=S?G0(S.role,l):null;S&&b&&u.push({id:JSON.stringify([f.id,m.id]),kind:"semantic",source:f.id,target:m.id,sourceNode:f.nodeId,targetNode:S.page.id,sourcePort:b.source,targetPort:b.target,relation:S.value})}}return{attention:t.id,layoutRoot:t.id,entry:"attention",editor:"attention",frame:"attention",occurrences:r,edges:u,truncated:n||[o.parents,o.children,o.leftFriends,o.rightFriends,o.siblings].some(f=>f.length===e.maximum),coverage:e.read.coverage}},layout(e,t,n,i,a){if(!ST(n))throw new Error("Missing Classic geometry preferences");let o={...n,flipEastWest:n.flipEastWest??ks(a?.configuration)},l=new Map(t.map(c=>[c.id,c])),r=e.occurrences.map(c=>{let m=l.get(c.id);if(!m)throw new Error("Missing occurrence measurement");return{...m,x:0,y:0,role:c.role??"center",areaId:c.areaId}}),u=r.find(c=>c.id===e.entry);if(!u)throw new Error("Missing Classic attention occurrence");let s=c=>r.filter(m=>m.areaId===c),f=I0({center:u,parents:s("parent"),children:s("child"),leftFriends:s("left"),rightFriends:s("right"),siblings:s("sibling")},o,{reserve:c=>c.expandedReserve,verticalReserve:c=>c.expandedReserve*(c.role==="sibling"?_s(o):1),width:c=>c.expandedWidth,mini:(c,m)=>c[m?"envelope":"mini"]},i),p=Object.values(f.zoneAreas).map(c=>{let m=vT[c.key];return{id:c.key,labelKey:bT[c.key],bounds:{x:c.left,y:c.top,width:c.width,height:c.height},resizeEdge:c.resizeEdge,heightPreference:{key:m.key,minimum:m.min,maximum:m.max},...c.key==="sibling"?{}:{dropRole:c.key},...f.zoneViewports[c.key]?{viewport:{...f.zoneViewports[c.key],x:f.zoneViewports[c.key].left,y:f.zoneViewports[c.key].top}}:{}}});return{positions:new Map(f.nodes.map(c=>[c.id,{x:c.x,y:c.y,width:c.width,height:c.height}])),areas:p}}};M();var wT={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous",sibling:"sibling"};function q0(e,t,n){let i=n==="previous"?"left":n==="next"?"right":n;return t&&(i==="left"||i==="right")?t:Object.entries(e??{}).find(([,a])=>a===i)?.[0]}function Y0(e,t){return JSON.stringify(e<t?[e,t]:[t,e])}function j0(e,t,n,i,a,o){let l=new Set(e.keys()),r=new Set;for(let[f,p]of t)r.add(Y0(f,p));let u=0,s=0;for(let[f,p]of e){if(++u>16384)return!0;for(let c of n(p[0],l)){if(++u>16384||s>=4096)return!0;let m=i(c),S=e.get(m);if(!S||m===f)continue;let b=Y0(f,m);if(r.has(b))continue;let v,d=1/0;for(let h of p)for(let g of S){if(++u>16384)return!0;let w=a(h,c.role),E=a(g,wT[c.role]);if(!w||!E)continue;let R=(h.x-g.x)**2+(h.y-g.y)**2;R<d&&(v={source:h,target:g,sourcePort:w,targetPort:E},d=R)}v&&(r.add(b),s++,o(v,c))}}return!1}M();M();M();function Wo(e){let t=e.length===1?"root":JSON.stringify(e);return Ua(t)?t:null}function X0(e,t){let n=new Map;for(let i of(e.editors??[]).slice(0,1)){if(i.occurrenceId==="root"&&i.nodeId===t){n.set("root",[t]);continue}try{let a=JSON.parse(i.occurrenceId);if(!Array.isArray(a)||a.length<2||a.length>gt.depth+1||!a.every(Ua)||a[0]!==t||a[a.length-1]!==i.nodeId||Wo(a.map(Nn))!==i.occurrenceId)continue;n.set(i.occurrenceId,a.map(Nn))}catch{}}return n}function K0(e){let t=vs(e.configuration),n=na(e.state),i=e.layoutRoot;if(!t||n.version!==1||!i||!Number.isInteger(e.maximum)||e.maximum<1||e.read.node(i)?.id!==i||!e.read.isCurrent())return null;let a=ur(cv(n,i,Math.min(t.initialGenerations,t.maximumDepth)));if(!a)return null;let o=a,l=Math.min(t.maximumOccurrences,gt.occurrences,Math.max(1,e.maximum*8+1)),r=new Set(o.expanded),u=new Set(o.collapsed),s=X0(e,i),f=new Set,p=new Map,c=new Set;for(let x of s.values())for(let N=1;N<=x.length;N++){let G=Wo(x.slice(0,N));if(G&&(f.add(G),N<x.length)){let T=p.get(G)??new Set;T.add(x[N]),p.set(G,T),N>1&&c.add(x[N-1])}}let m=new Set([...(e.retainedScopes??[]).slice(0,16),...c].filter(x=>x!==i)),S=new Set,b=new Set,v=[],d=[],h=[{id:"root",lineage:[i],depth:0,side:1}],g=!1,w=(x,N,G)=>{let I=(G?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).map(_=>e.read.relations(x,_,N)),H=new Map;for(let _ of I)for(let K of _.items)H.has(K.node.id)||H.set(K.node.id,K);return{items:[...H.values()],truncated:I.some(_=>_.truncated),coverage:I.some(_=>_.coverage==="unavailable")?"unavailable":I.every(_=>_.coverage==="local")?"local":"cached"}},E=x=>{if(x===i||S.has(x))return!0;if(S.size>=gt.scopes)return!1;let N=[...m].filter(G=>!S.has(G)&&G!==x).length;return!m.has(x)&&S.size+N>=gt.scopes?!1:(S.add(x),!0)};for(;h.length&&v.length<l;){let x=h.shift(),N=x.lineage[x.lineage.length-1];if(b.has(x.id))continue;b.add(x.id);let G=e.read.node(N);if(!G||G.id!==N||!e.read.isCurrent())return null;let T=x.lineage.slice(0,-1).includes(N),I=p.has(x.id)?Math.max(t.maximumDepth,x.depth+1):t.maximumDepth,H=e.read.scope?.(N)??{coverage:"unavailable",prepared:!1,complete:!1,pending:!1},_=T?{items:[],truncated:!1,coverage:"cached"}:w(N,1,x.depth===0),K=!T&&x.depth<I&&!u.has(x.id)&&(r.has(x.id)||x.depth<o.initialGenerations),ne=!T&&x.depth<I&&!(H.complete&&_.coverage!=="unavailable"&&_.items.length===0&&!_.truncated),le=K&&ne&&E(N),W=le?w(N,Math.min(e.maximum,128),x.depth===0):_,re=T||!K?"ready":H.pending?"loading":W.coverage==="unavailable"?"unavailable":H.complete?"ready":H.prepared||W.items.length>0?"partial":"unavailable";(K&&ne&&!le||le&&W.truncated||!T&&x.depth>=I&&(W.items.length>0||!H.complete))&&(re="limited",g=!0);let $=[];if(le){let q=new Map(W.items.map(B=>[B.node.id,B]));for(let B of p.get(x.id)??[])if(!q.has(B)){let ce=(x.depth===0?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).flatMap(he=>e.read.relation?.(N,B,he)?.items??[]).find(he=>he.node.id===B);ce&&e.read.isCurrent()&&q.set(B,ce)}if(x.depth===0&&H.complete&&!W.truncated&&W.coverage!=="unavailable"){let B=new Set([...q.keys()].map(X=>Wo([i,X])));o={...o,sides:Object.fromEntries(Object.entries(o.sides).filter(([X])=>B.has(X)))}}let ee=[...q.values()].map(B=>{let X=[...x.lineage,B.node.id],ce=Wo(X);return ce?{id:ce,lineage:X,relation:B}:(g=!0,re="limited",null)}).filter(B=>B!==null);ee.sort((B,X)=>Number(f.has(X.id))-Number(f.has(B.id))||e.read.compare(B.relation.node,X.relation.node));let ie=l-v.length-1-h.length;for(let B of ee){let X=[...f].filter(ce=>ce!==x.id&&!b.has(ce)&&!h.some(he=>he.id===ce)&&!$.some(he=>he.id===ce)&&ce!==B.id).length;if(ie<=0||!f.has(B.id)&&ie<=X){g=!0,re="limited";continue}if(x.depth===0&&B.relation.role==="child"&&o.sides[B.id]===void 0){let ce=[...q.keys()].flatMap(Ee=>{let bt=Wo([i,Ee]),Ke=bt?o.sides[bt]:void 0;return Ke===-1||Ke===1?[Ke]:[]}),he=ce.filter(Ee=>Ee===-1).length<ce.filter(Ee=>Ee===1).length?-1:1,yt=ur({...o,sides:{...o.sides,[B.id]:he}});if(!yt){g=!0,re="limited";continue}o=yt}$.push(B),ie--}$.sort((B,X)=>e.read.compare(B.relation.node,X.relation.node))}let C={parent:x.parent,depth:x.depth,side:x.side,expanded:le,canExpand:ne,reference:T,status:re},P=x.depth===0||x.side===-1?"left":"right";v.push({id:x.id,nodeId:N,areaId:x.areaId,representation:"thought",role:x.relation?.role,relation:x.relation,branch:C,ports:x.depth===0?{top:"parent",bottom:"child",left:"left"}:x.side===1?{left:"parent",bottom:"child",right:"left"}:{left:"left",bottom:"child",right:"parent"},peerPort:{side:P,count:new Set(W.items.filter(q=>["left","right","previous","next"].includes(q.role)).map(q=>q.node.id)).size,complete:H.complete&&W.coverage!=="unavailable"&&!W.truncated&&!T},...!le&&!T&&x.parent?{groupingPartition:JSON.stringify([x.parent,x.side])}:{}}),x.parent&&x.relation&&d.push({id:x.id,kind:"semantic",source:x.parent,target:x.id,sourceNode:x.lineage[x.lineage.length-2],targetNode:N,relation:x.relation,sourcePort:x.relation.role==="child"?"bottom":x.relation.role==="parent"?"top":x.side===1?"right":"left",targetPort:x.parent==="root"&&x.relation.role==="parent"?"bottom":x.side===1?"left":"right"});let z=0;for(let q of $){let ee=q.relation.role==="parent"&&t.parentColumns>1&&z++%t.parentColumns===0?-1:1,ie=x.depth?x.side:q.relation.role==="parent"?ee:q.relation.role!=="child"||t.arrangement==="left"?-1:t.arrangement==="right"?1:o.sides[q.id],B=x.depth?x.areaId:q.relation.role==="parent"?"parent":q.relation.role==="child"?ie===-1?"child-left":"child-right":"left";h.push({...q,parent:x.id,depth:x.depth+1,side:ie,areaId:B})}}if(!e.read.isCurrent())return null;g||=h.length>0;let R=JSON.stringify(o)===JSON.stringify(n)?void 0:o;return{attention:e.attention,layoutRoot:i,root:"root",entry:"root",frame:"root",occurrences:v,edges:d,truncated:g,coverage:e.read.coverage,preparation:{parents:[...S]},stateSuggestion:R}}M();M();function xT(e){if(e.length>2048)throw new Error("Invalid measured area size");let t=new Set,n=[];for(let i of e){if(typeof i.id!="string"||!i.id||t.has(i.id)||!Number.isFinite(i.width)||i.width<=0||!Number.isFinite(i.height)||i.height<=0)throw new Error("Invalid measured area item");let a=i.insets?.top??0,o=i.insets?.right??0,l=i.insets?.bottom??0,r=i.insets?.left??0;for(let u of[a,o,l,r])if(!Number.isFinite(u)||u<0||u>1e5)throw new Error("Invalid measured area inset");t.add(i.id),n.push({item:i,top:a,right:o,bottom:l,left:r,width:i.width+r+o,height:i.height+a+l})}return n}function ET(e,t){let n=Array(t).fill(0);for(let i=0;i<e.length;i++)n[i%t]=Math.max(n[i%t],e[i].width);return n}function Q0(e,t,n,i,a=24,o=42,l=16){if(!Number.isInteger(t)||t<1||t>32||e.length>2048||![n,i,a,o,l].every(v=>Number.isFinite(v)&&v>=0))throw new Error("Invalid area grid policy");if(!e.length)return{positions:new Map,width:0,height:0};let r=xT(e),u=Math.min(t,e.length),s=ET(r,u),f=Array(Math.ceil(e.length/u)).fill(0);for(let v=0;v<r.length;v++)f[Math.floor(v/u)]=Math.max(f[Math.floor(v/u)],r[v].height);let p=[],c=[],m=a,S=o;for(let v of s)p.push(m+v/2),m+=v+n;for(let v of f)c.push(S+v/2),S+=v+i;let b=new Map;for(let v=0;v<r.length;v++){let d=r[v];b.set(d.item.id,{x:p[v%u]+(d.left-d.right)/2,y:c[Math.floor(v/u)]+(d.top-d.bottom)/2,width:d.item.width,height:d.item.height})}return{positions:b,width:m-n+a,height:S-i+l}}function Z0(e,t,n,i={}){let a=n.horizontalSpacing/n.horizontalDensity,o=n.verticalSpacing/n.verticalDensity,l=e.entry,r=e.occurrences.filter(C=>!C.section),u=e.occurrences.filter(C=>C.section),s=new Map(t.map(C=>[C.id,C])),f=(C,P)=>C?s.get(C)?.controlReserve?.[P]??0:0;if(r.length>gt.occurrences||new Set(r.map(C=>C.id)).size!==r.length)throw new Error("Invalid hierarchy identity");let p=new Map;for(let C of r){let P=s.get(C.id);if(!P||![P.width,P.height].every(ee=>Number.isFinite(ee)&&ee>0)||!C.branch)throw new Error("Invalid measured hierarchy");if(P.controlReserve&&![P.controlReserve.right,P.controlReserve.bottom].every(ee=>Number.isFinite(ee)&&ee>=0&&ee<=64))throw new Error("Invalid measured control reserve");if(C.id===l){if(C.branch.parent)throw new Error("Root cannot have a parent");continue}let z=C.branch.parent;if(!z||!s.has(z))throw new Error("Missing hierarchy parent");let q=p.get(z)??[];q.push(C),p.set(z,q)}let c=new Map,m=new Set,S=(C,P)=>{let z=c.get(C);if(z!==void 0)return z;if(P>gt.depth||m.has(C))throw new Error("Invalid hierarchy ancestry");m.add(C);let q=p.get(C)??[],ee=q.reduce((B,X)=>B+S(X.id,P+1),0)+Math.max(0,q.length-1)*o,ie=Math.max(s.get(C).height+f(C,"bottom"),ee);return m.delete(C),c.set(C,ie),ie};for(let C of r)S(C.id,0);let b=s.get(l);if(!b)throw new Error("Missing hierarchy root");let v=new Map([[l,{x:0,y:0,width:b.width,height:b.height}]]),d=(C,P,z,q)=>{let ee=C.reduce((B,X)=>B+c.get(X.id),0)+Math.max(0,C.length-1)*o,ie=P.y+f(q,"bottom")/2-ee/2;for(let B of C){let X=s.get(B.id),ce=c.get(B.id),he={width:X.width,height:X.height,x:P.x+z*(P.width/2+a+X.width/2+f(z===1?q:B.id,"right")),y:ie+ce/2-f(B.id,"bottom")/2};if(v.has(B.id))throw new Error("Repeated hierarchy parent");v.set(B.id,he),d(p.get(B.id)??[],he,z,B.id),ie+=ce+o}},h=p.get(l)??[],g=h.filter(C=>C.role==="parent"),w=h.filter(C=>C.role!=="parent"),E=C=>s.get(C).width+f(C,"right")+(p.get(C)?.length??0?a+Math.max(...p.get(C).map(P=>E(P.id))):0),R=g.filter(C=>C.branch.side===-1),x=g.filter(C=>C.branch.side===1),N=n.parentColumns,G=[];for(;R.length||x.length;)for(let C=0;C<N;C++)G.push(N>1&&C===0?R.shift():x.shift()??(N===1?R.shift():void 0));let T=Q0(G.map((C,P)=>C?{id:C.id,width:E(C.id),height:c.get(C.id)}:{id:`empty-parent-cell-${P}`,width:1,height:1}),n.parentColumns,a,o),I=u.map(C=>{let P=s.get(C.id);if(!P)throw new Error("Missing measured section");return P}),H=Math.max(b.width+f(l,"right")*2,T.width,...I.map(C=>C.width)),_=Math.max(140,Math.min(800,i.parentHeight??300)),K=Math.max(_,T.height),ne={x:-H/2,y:-b.height/2-o-K,width:H,height:K};if(!Number.isFinite(K))throw new Error("Invalid parent area height");for(let C of g){let P=T.positions.get(C.id),z=s.get(C.id),q=N===1?1:C.branch.side,ee={x:ne.x+(H-T.width)/2+P.x+q*(-P.width/2+z.width/2)-(q===-1?f(C.id,"right"):0),y:ne.y+K-T.height+P.y-f(C.id,"bottom")/2,width:z.width,height:z.height};v.set(C.id,ee),d(p.get(C.id)??[],ee,q,C.id)}let le={...v.get(l),width:H};for(let C of[-1,1]){let P=w.filter(z=>z.branch?.side===C);d([...P.filter(z=>z.role!=="child"),...P.filter(z=>z.role==="child")],le,C)}if(v.size!==r.length)throw new Error("Disconnected hierarchy");let W=b.height/2+f(l,"bottom")+Math.min(24,o);for(let C of I)v.set(C.id,{x:0,y:W+C.height/2,width:C.width,height:C.height}),W+=C.height+Math.min(24,o);let re=[{id:"parent",labelKey:"graph.zoneParents",bounds:{...ne,height:K},resizeEdge:"top",heightPreference:{key:"parentHeight",minimum:140,maximum:800,value:_},dropRole:"parent",viewport:{...ne,height:K,contentTop:ne.y,contentHeight:K,initialScrollTop:0,scrollable:!1},reflow:{columns:n.parentColumns,columnGap:a,rowGap:o,filterLayout:"keep"}}],$=Math.min(8,o/4,a/4);for(let[C,P]of[["child-left","child"],["child-right","child"],["left","left"]]){let z=r.filter(ie=>ie.areaId===C).map(ie=>{let B=v.get(ie.id),X=f(ie.id,"right"),ce=f(ie.id,"bottom");return{...B,x:B.x+X/2,y:B.y+ce/2,width:B.width+X,height:B.height+ce}});if(!z.length)continue;let q=Math.min(...z.map(ie=>ie.x-ie.width/2))-$,ee=Math.min(...z.map(ie=>ie.y-ie.height/2))-$;re.push({id:C,labelKey:P==="child"?"graph.zoneChildren":"graph.zoneFriendsChallengers",dropRole:P,bounds:{x:q,y:ee,width:Math.max(...z.map(ie=>ie.x+ie.width/2))+$-q,height:Math.max(...z.map(ie=>ie.y+ie.height/2))+$-ee}})}return{positions:v,areas:re}}M();function TT(e){if(!e.documentId||typeof e.path!="string"||!e.path||!e.revision||e.revision.length>256||e.rows.length>256||e.provenance.length>4096||e.visible.length>e.rows.length)return!1;let t=new Map(e.rows.map(n=>[n.id,n]));if(t.size!==e.rows.length||new Set(e.visible).size!==e.visible.length||e.visible.some(n=>!t.has(n)))return!1;for(let n of e.rows)if(!n.id||n.id.length>4096||typeof n.label!="string"||n.label.length>4096||!Number.isInteger(n.level)||n.level<1||n.level>6||!Number.isInteger(n.line)||n.line<1||!Number.isInteger(n.start)||!Number.isInteger(n.end)||n.start<0||n.end<n.start||n.parent!==null&&(!t.has(n.parent)||t.get(n.parent).level>=n.level)||new Set(n.children).size!==n.children.length||n.children.some(i=>t.get(i)?.parent!==n.id)||n.parent&&!t.get(n.parent).children.includes(n.id))return!1;return e.provenance.every(n=>(n.sectionId===null||t.has(n.sectionId))&&!!n.target&&["parent","child","left","right","previous","next","sibling"].includes(n.role))}function MT(e,t,n){let i=e.provenance.filter(s=>s.target===t&&s.role===n);if(!i.length||i.some(s=>s.sectionId===null))return null;let a=new Map(e.rows.map(s=>[s.id,s])),o=new Set(e.visible),l=s=>{let f=[];for(let p=0;s&&p<256;p++)o.has(s)&&f.push(s),s=a.get(s)?.parent??"";return f},r=i.map(s=>l(s.sectionId)),u=r[0].find(s=>r.every(f=>f.includes(s)));return u?{documentId:e.documentId,revision:e.revision,sectionId:u}:null}function F0(e,t,n){let i=e.occurrences.find(r=>r.id===(e.root??e.entry));if(!i?.nodeId||i.nodeId!==t.documentId||!TT(t)||!Number.isInteger(n)||n<e.occurrences.length||n>2048)throw new Error("Invalid central section projection");let a=new Set(t.visible),o=t.rows.filter(r=>a.has(r.id)),l=o.slice(0,n-e.occurrences.length).map(r=>({id:JSON.stringify(["section",r.id]),nodeId:t.documentId,representation:"thought",ports:{},section:{documentId:t.documentId,revision:t.revision,sectionId:r.id}}));return{...e,occurrences:[...e.occurrences,...l],truncated:e.truncated||l.length<o.length,edges:e.edges.map(r=>{if(r.kind!=="semantic"||r.source!==i.id)return r;let u=MT(t,r.targetNode,r.relation.role);return u?{...r,sourceSection:u}:r})}}var J0={id:"mindmap",version:1,labelKey:"view.mindmap",icon:"network",navigation:"rooted",navigationEntry:"attention",editorHosting:"occurrence",capabilities:{sections:!0,descendants:!1,editor:!0,compact:!1},sectionSource:"layout-root",defaultState:th,hierarchy:{maximumScopes:gt.scopes,maximumDepth:gt.depth,primary:"center",controls:"measured",relations:"child-and-peer",reduce:ws},configuration:bs,restoreState:na,project(e){let t=K0(e);return t&&e.sections?.status==="available"?F0(t,e.sections.snapshot,Math.min(2048,e.maximum*8+1)):t},layout(e,t,n,i,a){let o=vs(a?.configuration);if(!o)throw new Error("Mind Map configuration unavailable");return Z0(e,t,o,a?.areaHeights)}};var RT={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},Th={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function W0(e){return e==="left"||e==="right"||e==="sibling"}function e1(e,t,n=!0,i="compass",a,o=!1,l){let{read:r}=e,u=e.manifest?.appearance,s=u?.flip??!1,f={...RT,...u?.geometry,flipEastWest:s};l!==void 0&&(f.childColumns=Math.min(f.childColumns,l)),e.manifest&&(f.siblingMaxHeight+=72);let p={baseFontSize:u?.typography?.baseFontSize??Th.baseFontSize,wrapNodeLabels:u?.typography?.wrapNodeLabels??Th.wrapNodeLabels,propertyFontSize:u?.typography?.propertyFontSize??Th.propertyFontSize},c=Ps(s),m=i==="mindmap",S=m?J0:V0,b=S.project({attention:t,read:r,maximum:u?.maximum??100,...m?{layoutRoot:t,state:a}:{state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:s}}}});if(!b)throw new Error("Publication attention is unavailable");let v=b.occurrences.map(T=>{let I=T.nodeId&&r.node(T.nodeId);if(!I)throw new Error("Publication occurrence is unavailable");let H=T.id===b.entry,_=T.role==="sibling",K=_?_s(f):1,ne=e.published.get(I.id),le=ne?.roleStyles,W=T.relation?.relationType===2?le?.inferred:void 0,re=H?le?.center:_?le?.sibling:void 0,$={...ne?.style,...W,...re},C=re?.fontSize??W?.fontSize??ne?.style?.fontSize??(H?30:_?15:20),P=re?.gateRadius??W?.gateRadius??ne?.style?.gateRadius??5,z=cr(C*K,H,p.baseFontSize)*(_&&e.manifest?.7:1),q=pv(I.name,C,p,H,I.maxLabelLength);$.icon!=null&&(q.width+=H?22:17);let ee=gv(q,K,C*K,p);return{occurrence:T,node:I,center:H,fontSize:z,style:$,gateSize:dv({gateRadius:P*K}),measurement:{id:T.id,...ee,expandedWidth:ee.width,expandedReserve:0,mini:null,envelope:null,controlReserve:T.branch?.canExpand?{right:0,bottom:23}:void 0}}}),d=S.layout(b,v.map(T=>T.measurement),{...f,alignSiblingsToFirstParent:!!e.manifest},!1),h=[],g=!1;if(o){let T=new Map;for(let{node:H,occurrence:_,center:K}of v){if(!m&&K)continue;let ne=T.get(H.id)??[];ne.push({...d.positions.get(_.id),node:H.id,occurrence:_}),T.set(H.id,ne)}let I=b.edges.flatMap(H=>H.kind==="semantic"?[[H.sourceNode,H.targetNode]]:[]);g=j0(T,I,function*(H){for(let _ of Jd)yield*r.relations(H.node,_).items},H=>H.node.id,(H,_)=>q0(m?H.occurrence.ports:c,H.occurrence.peerPort?.side,_),({source:H,target:_,sourcePort:K,targetPort:ne},le)=>{h.push({id:JSON.stringify(["cross",H.occurrence.id,_.occurrence.id]),kind:"semantic",source:H.occurrence.id,target:_.occurrence.id,sourceNode:H.node,targetNode:_.node,sourcePort:K,targetPort:ne,relation:le})})}let w=[...b.edges,...h],E=new Map;if(m){let T=(I,H)=>{let _=E.get(I)??new Map;_.set(H,(_.get(H)??0)+1),E.set(I,_)};for(let I of w)T(I.source,I.sourcePort),T(I.target,I.targetPort)}let R=new Map;if(!m)for(let{id:T,viewport:I}of d.areas)I&&W0(T)&&R.set(T,I);let x=v.map(({occurrence:T,node:I,center:H,fontSize:_,gateSize:K,style:ne})=>{let le=T.areaId==="right"&&f.lateralArrangement==="left"?"left":T.areaId;return{id:T.id,node:I,center:H,fontSize:_,gateSize:K,style:ne,role:T.role??"center",bounds:d.positions.get(T.id),branch:T.branch,strip:W0(le)&&R.has(le)?le:void 0,gates:m?[...E.get(T.id)??[]].map(([W,re])=>({side:W,count:re})):Object.keys(c).map(W=>{let re=c[W],$=re==="left"?"previous":re==="right"?"next":null,C=r.relations(I.id,re).items,P=$?new Set([...C,...r.relations(I.id,$).items].map(z=>z.node.id)).size:C.length;return{side:W,count:P}})}}),N=new Map(x.map(T=>[T.id,T])),G=w.map((T,I)=>{let H=N.get(T.source),_=N.get(T.target),K=Sh(zs(H.bounds,T.sourcePort,H.gateSize),zs(_.bounds,T.targetPort,_.gateSize),T.sourcePort,T.targetPort,"bezier"),ne=T.kind==="semantic"?T.relation.direction:null,le=T.kind==="semantic"?e.linkStyle(T.sourceNode,T.targetNode,T.relation.role):void 0,W=T.kind==="semantic"?T.relation.definition??null:null;return{id:T.id,source:T.source,target:T.target,route:K,label:W,labelSize:le?.labelSize,labelColor:le?.labelColor,crossLink:I>=b.edges.length,sourcePort:T.sourcePort,targetPort:T.targetPort,stroke:le?.stroke,strokeWidth:le?.width,startHead:le?.startHead??(le?.arrowStart??(ne===2||ne===3)?"arrow":void 0),endHead:le?.endHead??(le?.arrowEnd??(ne===1||ne===3)?"arrow":void 0)}});return{cards:x,cardById:N,edges:G,strips:R,wrap:p.wrapNodeLabels,truncated:b.truncated||g,projection:b}}function Us(e,t,n){if(!t.strip)return t.bounds;let i=e.strips.get(t.strip);return{...t.bounds,y:t.bounds.y+i.y-i.contentTop-(n[t.strip]??i.initialScrollTop)}}function $0(e,t,n,i){let a=zs(Us(e,t,i),n,t.gateSize);if(!t.strip)return a;let{y:o,height:l}=e.strips.get(t.strip);return a.y>=o&&a.y<=o+l?a:null}function t1(e,t,n){let i=e.cardById.get(t.source),a=e.cardById.get(t.target);if(!i.strip&&!a.strip)return t.route;let o=$0(e,i,t.sourcePort,n),l=$0(e,a,t.targetPort,n);return o&&l?Sh(o,l,t.sourcePort,t.targetPort,"bezier"):null}M();M();function Is(e,t){if(!/^(?:\d+(?:\.\d*)?|\.\d+)%?$/.test(e))return null;let n=Number(e.replace(/%$/,"")),i=e.endsWith("%")?100:t;return n>=0&&n<=i?n/i*t:null}function Bs(e){if(typeof e!="string"||e.length>180)return null;let t=e.trim();if(t.toLowerCase()==="transparent")return{red:0,green:0,blue:0,alpha:0};if(/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t)){let f=t.slice(1);return f.length<=4&&(f=[...f].map(p=>p+p).join("")),{red:parseInt(f.slice(0,2),16),green:parseInt(f.slice(2,4),16),blue:parseInt(f.slice(4,6),16),alpha:f.length===8?parseInt(f.slice(6),16)/255:1}}let n=/^rgba?\(\s*([^()]*)\s*\)$/i.exec(t);if(!n)return null;let i=n[1].trim(),a=i.includes(","),o=a?i.split(",").map(f=>f.trim()):i.split(/\s*\/\s*|\s+/);if(o.length<3||o.length>4||a&&i.includes("/")||!a&&o.length===4&&!i.includes("/"))return null;let l=Is(o[0],255),r=Is(o[1],255),u=Is(o[2],255),s=o.length===4?Is(o[3],1):1;return l===null||r===null||u===null||s===null?null:{red:l,green:r,blue:u,alpha:s}}M();function Rh(e,t){let n=e.alpha+t.alpha*(1-e.alpha);if(n===0)return{red:0,green:0,blue:0,alpha:0};let i=(a,o)=>(a*e.alpha+o*t.alpha*(1-e.alpha))/n;return{red:i(e.red,t.red),green:i(e.green,t.green),blue:i(e.blue,t.blue),alpha:n}}function Mh(e){let t=Math.max(0,Math.min(1,e/255));return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function n1(e,t){if(t.alpha<1||![e.red,e.green,e.blue,e.alpha,t.red,t.green,t.blue,t.alpha].every(Number.isFinite))return null;let n=Rh(e,t),i=l=>.2126*Mh(l.red)+.7152*Mh(l.green)+.0722*Mh(l.blue),a=i(n),o=i(t);return(Math.max(a,o)+.05)/(Math.min(a,o)+.05)}M();var NT=new Map([...["background-primary","background-secondary","background-modifier-border","background-modifier-hover","text-normal","text-muted","text-faint","interactive-accent","interactive-normal","interactive-hover","text-on-accent","kplex-publication-panel","kplex-publication-link","kplex-publication-canvas","link-color","link-color-hover","link-external-color","code-background","code-normal","blockquote-border-color","blockquote-color","table-border-color","table-header-background","text-highlight-bg","color-red","color-green","color-orange","color-blue","color-cyan","color-purple"].map(e=>[e,"color"]),...["font-interface","font-text","font-monospace","inline-title-font"].map(e=>[e,"font"]),...["font-ui-medium","font-text-size","p-spacing","heading-spacing","inline-title-size","input-radius","button-radius","callout-radius"].map(e=>[e,"length"]),["line-height-normal","line-height"],["inline-title-weight","weight"],["inline-title-color","color"],...[1,2,3,4,5,6].flatMap(e=>[["h"+e+"-color","color"],["h"+e+"-size","length"],["h"+e+"-weight","weight"],["h"+e+"-font","font"],["h"+e+"-line-height","line-height"],["h"+e+"-style","font-style"]])]),AT=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),CT=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function OT(e){let t=e.split(",");if(!t.length||t.length>10)return;let n=[];for(let i of t){let a=i.trim(),o=/^(['"])(.*?)\1$/u.exec(a),l=o?.[2]??a;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(l)&&l!=="-apple-system"||CT.has(l.toLowerCase()))return;n.push(!o&&AT.has(l.toLowerCase())?l.toLowerCase():JSON.stringify(l))}return n.join(", ")}function i1(e){if(e==="0")return e;let t=/^(\d{1,3}(?:\.\d{1,4})?|\.\d{1,4})(px|rem|em)$/.exec(e);if(!t)return;let n=Number(t[1]),i=t[2];return n<=(i==="px"?160:8)?String(n)+i:void 0}function a1(e,t){let n=t.trim();if(!(!n||n.length>320))switch(NT.get(e)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return OT(n);case"length":return i1(n);case"line-height":return/^(?:[1-3](?:\.\d{1,4})?|0\.[5-9]\d{0,3}|4(?:\.0{1,4})?)$/.test(n)?String(Number(n)):i1(n);case"weight":return n==="normal"||n==="bold"||/^(?:[1-9]\d{0,2}|1000)$/.test(n)?n:void 0;case"font-style":return/^(?:normal|italic|oblique)$/.test(n)?n:void 0;default:return}}var Nh=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function o1(e){if(!e.length||e.length>16*1024)throw new Error("Unsupported publication theme");let t={},n=new Set,i=0;for(;i<e.length;){Nh.lastIndex=i;let a=Nh.exec(e);if(!a)throw new Error("Unsupported publication theme");i=Nh.lastIndex;let o=(a[1]??a[3]).split(";").map(u=>u.trim()).filter(Boolean),l=o.filter(u=>u.startsWith("color-scheme"));if(l.length){let u=/^color-scheme\s*:\s*(light|dark)$/.exec(l[0])?.[1];if(!u||l.length!==1||a[2]||n.has("author"))throw new Error("Unsupported publication mode");t.colorScheme=u}let r=l.length?"author":a[2]??"light";if(n.has(r))throw new Error("Duplicate publication theme mode");n.add(r);for(let u of o){if(u===l[0])continue;let s=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(u),f=s&&a1(s[1],s[2]);if(!s||f===void 0||f===null)throw new Error("Unsupported publication theme token");t["--kplex-published-"+r+"-"+s[1]]=f}}return t}function l1(e,t){let n=`--kplex-published-${t}-`,i=`--kplex-published-${t==="dark"?"light":"dark"}-`,a=e??{},o=Bs(a[n+"text-normal"]),l=Bs(a[n+"background-secondary"]??a[n+"background-primary"]),r={colorScheme:t};for(let[u,s]of Object.entries(a)){if(!u.startsWith(n)||typeof s!="string")continue;let f=u.slice(n.length);if(o&&(f==="interactive-normal"||f==="interactive-hover")&&s===a[i+f]){let p=Bs(s),c=p&&n1(o,l?Rh(p,l):p);if(c!==null&&c<3)continue}r["--kplex-published-author-"+f]=s}return r}var V=j(pe(),1),r1={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},Ah={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"},LT={left:L.friends,right:L.challengers,sibling:L.siblings},zT=[["system",L.systemTheme],["light",L.lightMode],["dark",L.darkMode]],u1=[["light",Ia.light,"sun"],["dark",Ia.dark,"moon"],["system",Ia.auto,"sun-moon"]],DT=[["right",L.sidecarRight],["left",L.sidecarLeft],["bottom",L.sidecarBottom]],HT={right:"panel-right",left:"panel-left",bottom:"panel-bottom"},s1=600,c1={};function Ch(e,t){let n=t.ownerDocument.defaultView?.Element;return!!(n&&e.target instanceof n&&e.target.closest(Ga))}function f1(e,t){return t?{x:(e.x+t.x)/2,y:(e.y+t.y)/2,distance:Math.max(1,Math.hypot(e.x-t.x,e.y-t.y))}:{...e,distance:1}}function d1({publication:e,markerPrefix:t,resources:n,browser:i}){let a=(0,J.useRef)(null),o=(0,J.useRef)(null),l=(0,J.useRef)(null),r=Fv(o,l),u=Hv(e,i,r.capture),s=u.attention.id,f={...Kd,crosslinks:e.manifest?.appearance?.showCrossLinks??Kd.crosslinks,...e.manifest?.canvasDefaults,...u.attention.canvas},{view:p,siblings:c,crosslinks:m,ontology:S,sidecar:b}=f,[v,d]=(0,J.useState)(),[h,g]=(0,J.useState)(null),w=(0,J.useRef)(null),[E,R]=(0,J.useState)(),[x,N]=(0,J.useState)(!0),G=x?f.dock:"bottom",T=(0,J.useMemo)(()=>e1(e,s,c,p,v,m,E),[e,s,c,p,v,m,E]),I=p==="mindmap"?L.mindMap:L.view,H=T.cards.find(y=>y.center),[_,K]=(0,J.useState)(),ne=_?.attention===s?_.offsets:c1,le=(0,J.useRef)(null),W=(0,J.useRef)(null),re=(0,J.useRef)({x:0,y:0,scale:1}),$=(0,J.useRef)(!1),C=(0,J.useRef)({points:new Map,origin:null,moved:!1}),P=(0,J.useRef)(!1),z=(0,J.useId)(),q=(0,J.useRef)(null),ee=(0,J.useRef)(null),[ie,B]=(0,J.useState)(0),[X,ce]=(0,J.useState)(null),[he,yt]=(0,J.useState)(null),[Ee,bt]=(0,J.useState)(null),[Ke,Ln]=(0,J.useState)(!1),We=(0,J.useRef)(()=>{}),ln=(0,J.useRef)(null),[Mt,_t]=(0,J.useState)(),[wi,Wn]=(0,J.useState)(!1),[la,Re]=(0,J.useState)("light"),Be=e.manifest?.colorMode,Rt=e.manifest?.pins,Ge=Mt?.colorScheme==="dark"?"dark":Mt?.colorScheme==="light"?"light":void 0,jt=Be==="both"?f.theme:Be??Ge??"system",rn=jt==="system"?la:jt,[,$n,un]=u1.find(([y])=>y===jt),ra=()=>u.changeCanvas({sidecar:!b}),ua=(0,J.useMemo)(()=>T.edges.flatMap(y=>{let O=t1(T,y,ne);return O?[{edge:y,route:O}]:[]}),[T,ne]),Sn=new Set,_e=new Set;if(h)for(let{edge:y}of ua)(y.source===h.occurrence&&(!h.port||y.sourcePort===h.port)||y.target===h.occurrence&&(!h.port||y.targetPort===h.port))&&(Sn.add(y.id),_e.add(y.source),_e.add(y.target));let xi=y=>y?" is-highlighted":Sn.size?" is-dimmed":"";(0,J.useLayoutEffect)(()=>{let y=a.current,O=o.current,Y=y?.ownerDocument.defaultView;if(!y||!O||!Y)return;let Z=()=>{let Q=O.clientWidth;N(y.clientWidth>=O0),R(Q<360?1:Q<s1?2:Q<880?3:void 0)},ue=new Y.ResizeObserver(Z);return ue.observe(y),ue.observe(O),Z(),()=>ue.disconnect()},[]),(0,J.useLayoutEffect)(()=>{let y=o.current,O=y?.ownerDocument.defaultView;if(!y||!O)return;let Y=new xs(O,!0,g);w.current=Y;let Z=fv(y,Y);return()=>{w.current=null,Z()}},[]),(0,J.useLayoutEffect)(()=>{w.current?.clear()},[T]),(0,J.useEffect)(()=>{let y=o.current?.ownerDocument.defaultView;if(!Ke||!y)return;let O=y.setTimeout(()=>Ln(!1),3500);return()=>y.clearTimeout(O)},[Ke]),We.current=y=>{if(y.defaultPrevented||y.isComposing||y.ctrlKey||y.metaKey)return;if(n&&y.key===rr.key&&!y.altKey&&!y.shiftKey){y.preventDefault(),y.repeat||B(Y=>Y+1);return}let O=y.target;!y.altKey||O?.isContentEditable||O?.closest?.("input,textarea,select")||(n&&y.shiftKey&&(y.code==="KeyS"||y.key.toLowerCase()==="s")?(y.preventDefault(),y.repeat||ra()):!y.shiftKey&&(y.key==="ArrowLeft"||y.key==="ArrowRight")&&(y.preventDefault(),y.repeat||u.move(y.key==="ArrowLeft"?-1:1)))},(0,J.useEffect)(()=>{if(!i)return;let y=O=>We.current(O);return i.addEventListener("keydown",y),()=>i.removeEventListener("keydown",y)},[i]),(0,J.useLayoutEffect)(()=>{let y=ln.current;y&&(y.scrollLeft=y.scrollWidth)},[u.visits]),(0,J.useEffect)(()=>{let y=o.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!y)return;let O=()=>Re(y.matches?"dark":"light");return O(),y.addEventListener("change",O),()=>y.removeEventListener("change",O)},[]),(0,J.useEffect)(()=>{let y=o.current?.ownerDocument.defaultView;if(!y||!n?.has(Fd))return;let O=new y.AbortController,Y=O.signal;return n.text(Fd,Y).then(Z=>{Y.aborted||_t(o1(Z))}).catch(()=>{Y.aborted||Wn(!0)}),()=>O.abort()},[n]);function sa(y){re.current=y,le.current&&(le.current.style.transform=`translate(${y.x}px, ${y.y}px) scale(${y.scale})`)}function Ya(){let y=o.current;if(!y)return;let O=1/0,Y=-1/0,Z=1/0,ue=-1/0,Q=(ke,At,ei,ti)=>{O=Math.min(O,ke),Y=Math.max(Y,ke+ei),Z=Math.min(Z,At),ue=Math.max(ue,At+ti)};for(let{bounds:ke,strip:At}of T.cards)At||Q(ke.x-ke.width/2,ke.y-ke.height/2,ke.width,ke.height);for(let{x:ke,y:At,width:ei,height:ti}of T.strips.values())Q(ke,At,ei,ti);if($.current=!1,y.clientWidth<s1){let ke=W.current?W.current.offsetHeight+10:0,At=y.clientWidth-32,ei=y.clientHeight-32-ke,ti=Y-O,al=ue-Z,Ti=Math.max(.25,Math.min(1,At/ti,ei/al)),Mr=ti*Ti<=At?(O+Y)/2:H.bounds.x,g1=al*Ti<=ei?(Z+ue)/2:H.bounds.y;sa({x:-Mr*Ti,y:-g1*Ti-ke/2,scale:Ti});return}let He=Math.max(H.bounds.x-O,Y-H.bounds.x),Nt=Math.max(H.bounds.y-Z,ue-H.bounds.y),Qe=Math.max(.25,Math.min(1,(y.clientWidth/2-22)/He,(y.clientHeight/2-22)/Nt));sa({x:-H.bounds.x*Qe,y:-H.bounds.y*Qe,scale:Qe})}function U(y,O,Y){r.cancel(),w.current?.clear();let{x:Z,y:ue,scale:Q}=re.current,He=Math.max(.25,Math.min(3,Q*Y));$.current=!0,sa({x:O.x-(y.x-Z)*He/Q,y:O.y-(y.y-ue)*He/Q,scale:He})}function ae(y){U({x:0,y:0},{x:0,y:0},y)}function Ve(y,O,Y){let Z=y.getBoundingClientRect();return{x:O-Z.left-Z.width/2,y:Y-Z.top-Z.height/2}}(0,J.useLayoutEffect)(()=>{let y=o.current;if(!y)return;Ya(),r.play(s,re.current.scale),P.current&&(y.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),P.current=!1);let O=ue=>{if(Ch(ue,y))return;ue.preventDefault();let Q=Ve(y,ue.clientX,ue.clientY),He=ue.deltaY*(ue.deltaMode===1?16:ue.deltaMode===2?y.clientHeight:1);U(Q,Q,Math.exp(-Math.max(-200,Math.min(200,He))/350))},Y=y.ownerDocument.defaultView,Z=Y?new Y.ResizeObserver(()=>{$.current||Ya()}):null;return Z?.observe(y),y.addEventListener("wheel",O,{passive:!1}),()=>{Z?.disconnect(),y.removeEventListener("wheel",O)}},[e,s,p,c,v,E]);function sn(y,O){let Y=e.published.get(y)?.url?{sidecar:!0}:void 0;u.activate({id:y,canvas:Y})&&y!==s&&(P.current=O)}function Xt(){u.changeCanvas({sidecar:!1}),q.current?.focus()}function Ei(y){u.activate(y)}function ca(){let y=i?.location.href??(n&&new URL("index.html",n.siteURL).href);if(!y)throw new Error("Publication address unavailable");let O=new URL(y);return O.search="",O.hash="",O}function qa(y,O){yt(null),bt(null),Ln(!1),ce({id:y,anchor:O})}function zn(y,O){ce(null),bt(null),w.current?.clear(),yt({anchor:y,point:O})}function kt(y,O,Y=!1){return(0,V.jsxs)("nav",{className:`kplex-publication-trail ${Y?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":O,children:[(0,V.jsx)("span",{children:O}),(0,V.jsx)("ol",{ref:Y?ln:void 0,children:y.map(Z=>{let ue=e.published.get(Z.id),Q=ue?.style,He=Q?.icon??ue?.trailIcon,Nt=He===void 0?void 0:e.manifest?.icons?.[He];return(0,V.jsx)("li",{children:(0,V.jsxs)("a",{href:Qo(ca(),{...Z,canvas:{...u.attention.canvas,...Z.canvas}}).href,"aria-current":Z.id===s?"location":void 0,style:{backgroundColor:Q?.fill,color:Q?.color,"--kplex-publication-trail-border":Q?.stroke},onClick:Qe=>{Qe.altKey||Qe.ctrlKey||Qe.metaKey||Qe.shiftKey||(Qe.preventDefault(),Ei(Z))},children:[Nt&&(0,V.jsx)(mh,{icon:Nt,size:12}),(0,V.jsx)("span",{children:e.nodes.get(Z.id)?.name})]})},Z.id)})})]})}function $o(y){if(!y.altKey){if(y.target===y.currentTarget&&(y.key==="ContextMenu"||y.shiftKey&&y.key==="F10")){y.preventDefault();let{left:O,top:Y}=y.currentTarget.getBoundingClientRect();zn(y.currentTarget,{x:O+12,y:Y+12});return}if(!(y.target.matches?.(Ga)&&["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(y.key))){if(y.key==="Home"||y.key==="0")r.cancel(),Ya();else if(y.key==="+"||y.key==="=")ae(1.25);else if(y.key==="-")ae(.8);else if(Object.prototype.hasOwnProperty.call(r1,y.key)){let[O,Y]=r1[y.key],Z=Array.from(y.currentTarget.querySelectorAll("[data-publication-node]")),ue=Z.find(ke=>ke===y.target)?.dataset.publicationOccurrence,Q=Us(T,ue?T.cardById.get(ue)??H:H,ne),He=-1,Nt=1/0;for(let[ke,At]of Z.entries()){let ei=Us(T,T.cardById.get(At.dataset.publicationOccurrence),ne),ti=ei.x-Q.x,al=ei.y-Q.y,Ti=ti*O+al*Y,Mr=Ti+2*Math.abs(ti*Y-al*O);Ti>0&&Mr<Nt&&(He=ke,Nt=Mr)}let Qe=Z[He];Qe?.focus({preventScroll:!Qe.closest(Ga)})}else return;y.preventDefault()}}}function vr(y){let O=y.currentTarget.ownerDocument.defaultView?.Element;if(!O||!(y.target instanceof O)||C.current.points.size)return;let Y=y.target.closest("[data-publication-occurrence]")?.getAttribute("data-publication-occurrence"),Z=y.target.closest("[data-kplex-gate]")?.getAttribute("data-kplex-gate")??void 0;Y?w.current?.enter({occurrence:Y,port:Z},y):w.current?.clear()}function Sr(y){if(y.button!==0||(he&&yt(null),X&&ce(null),Ch(y,y.currentTarget)))return;let O=C.current;if(O.points.size>=2)return;let Y={...Ve(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};O.points.size===0&&(O.origin=Y,O.moved=!1),O.points.set(y.pointerId,Y)}function fa(y){let O=C.current;if(!O.points.has(y.pointerId))return;let[Y,Z]=O.points.values(),ue=f1(Y,Z),Q={...Ve(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};O.points.set(y.pointerId,Q);let[He,Nt]=O.points.values(),Qe=f1(He,Nt);if(!(!O.moved&&!Nt&&O.origin&&Math.hypot(Q.x-O.origin.x,Q.y-O.origin.y)<5)){if(O.moved)y.currentTarget.hasPointerCapture(y.pointerId)||y.currentTarget.setPointerCapture(y.pointerId);else{O.moved=!0;for(let ke of O.points.keys())y.currentTarget.setPointerCapture(ke)}U(ue,Qe,Qe.distance/ue.distance)}}function ja(y){C.current.points.delete(y.pointerId)}let el=e.body(s),tl=()=>u.changeCanvas({siblings:!c}),wr=(0,V.jsx)(xt,{icon:"network",label:L.showSiblings,"data-publication-siblings-toggle":!0,title:c?L.hideSiblings:L.showSiblings,"aria-pressed":c,onClick:tl}),xr=(0,V.jsxs)(V.Fragment,{children:[p==="compass"&&wr,(0,V.jsx)(xt,{icon:"minus",label:L.zoomOut,onClick:()=>ae(.8)}),(0,V.jsx)(xt,{icon:"plus",label:L.zoomIn,onClick:()=>ae(1.25)}),(0,V.jsx)(xt,{icon:"maximize",label:L.fit,onClick:()=>{r.cancel(),Ya()}}),(0,V.jsx)(xt,{icon:"ellipsis",label:L.graphOptions,"aria-haspopup":"menu","aria-expanded":!!he,onClick:y=>zn(y.currentTarget)})]});function Er(y,O){let Y=O?{...y.bounds,x:y.bounds.x-O.x,y:y.bounds.y-O.contentTop}:y.bounds,Z=e.manifest?.icons,ue=y.style?.icon!=null?Z?.[y.style.icon]:void 0;return(0,V.jsxs)(J.Fragment,{children:[(0,V.jsxs)(Sv,{bounds:Y,semanticRole:y.role,className:xi(_e.has(y.id)).trim(),"data-publication-node":y.node.id,"data-publication-occurrence":y.id,"data-publication-center":y.center||void 0,role:"button",tabIndex:0,"aria-label":y.node.name,"aria-current":y.center||void 0,style:{fontSize:y.fontSize,backgroundColor:y.style?.fill,borderColor:y.style?.stroke,color:y.style?.color,"--kplex-gate-size":`${y.gateSize}px`,"--kplex-gate-fill":y.style?.gate},onClick:Q=>sn(y.node.id,Q.detail===0),onContextMenu:Q=>{n&&(Q.preventDefault(),qa(y.node.id,Q.currentTarget))},onKeyDown:Q=>{n&&(Q.key==="ContextMenu"||Q.shiftKey&&Q.key==="F10")?(Q.preventDefault(),qa(y.node.id,Q.currentTarget)):(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),sn(y.node.id,!0))},children:[(0,V.jsxs)(xv,{wrap:T.wrap,children:[ue&&(0,V.jsx)(mh,{icon:ue,size:y.center?18:y.role==="sibling"?9:13,className:"kplex-publication-node-icon"}),(0,V.jsx)(wv,{label:y.node.name,maximum:y.node.maxLabelLength,center:y.center})]}),y.gates.map(({side:Q,count:He})=>(0,V.jsx)(Ev,{side:Q,connected:He>0,count:He?String(He):null,highlighted:Sn.size>0&&h?.occurrence===y.id&&h.port===Q,"aria-hidden":"true"},Q))]}),y.branch?.canExpand&&(0,V.jsx)("button",{type:"button",className:"kplex-publication-branch","aria-expanded":y.branch.expanded,"aria-label":`${y.branch.expanded?L.collapseBranch:L.expandBranch} · ${y.node.name}`,style:{left:Y.x+16,top:Y.y+Y.height/2+3},onClick:()=>d(Q=>ws(Q,T.projection,{kind:"toggle",occurrenceId:y.id})??Q),children:y.branch.expanded?"−":"+"})]},`${y.id}:${y.node.id}`)}let nl=(0,V.jsxs)("div",{ref:o,className:"kplex-publication-viewport",role:"group","aria-label":I,tabIndex:0,onKeyDown:$o,onPointerOver:vr,onPointerDown:Sr,onPointerMove:fa,onPointerUp:ja,onPointerCancel:ja,onLostPointerCapture:ja,onContextMenu:y=>{y.defaultPrevented||(y.preventDefault(),zn(y.currentTarget,{x:y.clientX,y:y.clientY}))},onPointerLeave:y=>{w.current?.clear(),y.currentTarget.hasPointerCapture(y.pointerId)||ja(y)},onClickCapture:y=>{y.detail&&C.current.moved&&!Ch(y,y.currentTarget)&&(y.stopPropagation(),C.current.moved=!1)},children:[(0,V.jsxs)("div",{className:"kplex-camera",ref:le,children:[(0,V.jsxs)("svg",{className:"kplex-links",width:"3200",height:"2400",viewBox:"-1600 -1200 3200 2400","aria-hidden":"true",children:[(0,V.jsx)(Rv,{prefix:t}),ua.map(({edge:y,route:O})=>{let{id:Y,source:Z,target:ue,label:Q,stroke:He,strokeWidth:Nt,startHead:Qe,endHead:ke}=y;return(0,V.jsxs)("g",{className:`kplex-edge${xi(Sn.has(Y))}`,"data-publication-source":Z,"data-publication-target":ue,"data-publication-crosslink":y.crossLink||void 0,children:[(0,V.jsx)(Tv,{d:O.d,stroke:He??"var(--kplex-publication-link)",strokeWidth:Nt??1.2,markerStart:oh(Qe,t),markerEnd:oh(ke,t)}),S&&(0,V.jsx)(Mv,{label:Q,midpoint:O.midpoint,fontSize:y.labelSize,color:y.labelColor??"var(--text-muted)",background:"var(--background-primary)"})]},Y)})]}),(0,V.jsx)("div",{className:"kplex-nodes",children:T.cards.map(y=>y.strip?null:Er(y))}),[...T.strips].map(([y,O])=>(0,V.jsx)(Qv,{id:y,panel:O,start:ne[y]??O.initialScrollTop,label:y==="left"&&e.manifest?.appearance?.geometry?.lateralArrangement==="left"?L.lateral:LT[y],onScroll:Y=>K(Z=>{let ue=Z?.attention===s?Z.offsets:c1;return ue[y]===Y?Z:{attention:s,offsets:{...ue,[y]:Y}}}),children:T.cards.map(Y=>Y.strip===y?Er(Y,O):null)},JSON.stringify([s,y])))]}),(0,V.jsx)("div",{className:"kplex-publication-exits",ref:l,"aria-hidden":"true"})]}),Tr=X?Av(e,X.id):void 0,Xa=X&&{id:X.id,canvas:{...f,theme:jt}},il=Be==="both"?l1(Mt,rn):Be?{...Mt,colorScheme:rn}:Mt;return(0,V.jsxs)("main",{ref:a,className:`kplex-publication${n?" kplex-publication-production":""}`,style:il,onKeyDown:i?void 0:y=>We.current(y.nativeEvent),children:[(0,V.jsxs)("header",{className:"kplex-publication-header",children:[(0,V.jsxs)("div",{className:"kplex-publication-heading",children:[(0,V.jsx)(Bv,{}),(0,V.jsx)("h1",{children:e.title})]}),(0,V.jsxs)("div",{className:"kplex-publication-controls",children:[(0,V.jsx)(xt,{icon:"arrow-left",label:L.back,onClick:()=>u.move(-1),disabled:!u.canGoBack,"aria-keyshortcuts":Ah.back,title:L.backTooltip}),(0,V.jsx)(xt,{icon:"arrow-right",label:L.forward,onClick:()=>u.move(1),disabled:!u.canGoForward,"aria-keyshortcuts":Ah.forward,title:L.forwardTooltip}),n?(0,V.jsx)(xt,{ref:q,icon:HT[G],label:b?L.hideSidecar:L.showSidecar,"aria-expanded":b,"aria-controls":`sidecar-${z}`,"aria-keyshortcuts":Ah.sidecar,title:b?L.hideSidecarTooltip:L.showSidecarTooltip,onClick:ra}):xr,Be==="both"&&(0,V.jsx)(xt,{icon:un,label:Ia.trigger($n),"aria-haspopup":"menu","aria-expanded":!!Ee,onClick:y=>{yt(null),ce(null),bt(Ee?null:y.currentTarget)}})]}),n&&(0,V.jsx)(u0,{publication:e,resources:n,page:ca,searchFocus:ie,onChoose:Ei}),n&&Rt?.length?kt(Rt.map(y=>({id:Nn(y)})),L.pins):null]}),n?(0,V.jsx)(L0,{sidecarId:`sidecar-${z}`,sidecarOpen:b,dock:G,canDockLaterally:x,onDock:y=>u.changeCanvas({dock:y}),canvas:(0,V.jsxs)("div",{className:"kplex-publication-canvas",children:[nl,(0,V.jsx)("div",{ref:W,className:"kplex-publication-controls kplex-publication-camera-actions",children:xr}),(0,V.jsxs)("div",{className:"kplex-publication-status","aria-live":"polite",children:[u.addressProblem&&(0,V.jsx)("p",{children:u.addressProblem==="ambiguous"?L.ambiguousAddress:L.nodeUnavailable}),T.truncated&&(0,V.jsx)("p",{children:L.sceneLimited}),wi&&(0,V.jsx)("p",{children:L.themeUnavailable}),Ke&&(0,V.jsx)("p",{children:L.addressCopied})]})]}),renderSidecar:(y,O)=>(0,V.jsx)(A0,{publication:e,resources:n,id:`sidecar-${z}`,contentScope:`${t}-document`,location:u.attention,colorMode:rn,onClose:Xt,onNavigate:Ei,dock:y,onSwitchDock:O})}):(0,V.jsxs)(V.Fragment,{children:[nl,(0,V.jsxs)("section",{className:"kplex-publication-note","aria-labelledby":z,"aria-live":"polite",children:[(0,V.jsx)("h2",{id:z,children:H.node.name}),el&&(0,V.jsx)("p",{children:el})]})]}),n&&u.visits.length>1&&kt(u.visits,L.history,!0),(0,V.jsx)(jv,{dialog:ee}),Ee&&(0,V.jsx)(hr,{anchor:Ee,variant:"theme",onDismiss:()=>bt(null),choices:u1.map(([y,O,Y])=>({label:O,icon:Y,kind:"menuitemradio",checked:jt===y,select:()=>u.changeCanvas({theme:y})}))}),he&&(0,V.jsx)(hr,{anchor:he.anchor,point:he.point,onDismiss:()=>yt(null),choices:[{label:L.view,kind:"menuitemradio",checked:p==="compass",select:()=>u.changeCanvas({view:"compass"})},{label:L.mindMap,kind:"menuitemradio",checked:p==="mindmap",select:()=>u.changeCanvas({view:"mindmap"})},{label:L.crossLinks,kind:"menuitemcheckbox",checked:m,select:()=>u.changeCanvas({crosslinks:!m})},...p==="compass"?[{label:L.showSiblings,kind:"menuitemcheckbox",checked:c,select:tl}]:[],{label:L.linkOntology,kind:"menuitemcheckbox",checked:S,select:()=>u.changeCanvas({ontology:!S})},...n?[{label:L.sidecar,choices:[{label:L.sidecarHide,kind:"menuitemradio",checked:!b,select:()=>u.changeCanvas({sidecar:!1})},...DT.filter(([y])=>x||y==="bottom").map(([y,O])=>({label:O,kind:"menuitemradio",checked:b&&G===y,select:()=>u.changeCanvas(x?{dock:y,sidecar:!0}:{sidecar:!0})}))]}]:[],...Be==="both"?zT.map(([y,O])=>({label:O,kind:"menuitemradio",checked:jt===y,select:()=>u.changeCanvas({theme:y})})):[],...ph?[{label:L.licenses,kind:"menuitem",select:()=>ee.current?.showModal()}]:[]]}),n&&X&&Xa&&(0,V.jsx)(Uv,{anchor:X.anchor,address:Qo(ca(),Xa).href,shortAddress:Tr&&Qo(ca(),Xa,Tr).href,onDismiss:y=>{ce(null),y&&X.anchor.isConnected&&X.anchor.focus({preventScroll:!0})},onCopied:()=>Ln(!0)},X.id)]})}var p1=j(pe(),1),Oh=new WeakSet,_T=0;function m1(e,t,n){return kT(e,t,n,!0)}function kT(e,t,n,i=!1,a){let o=e.ownerDocument.defaultView,l=new URL(n??"./publication.json",e.ownerDocument.baseURI),r=S=>{let b=Cv(S);if(b.manifest&&(!o?.crypto.subtle||!a&&l.origin!==o.location.origin))throw new Error("Secure publication context unavailable");let v=b.manifest&&o?a?.(b.manifest)??M0(o,l,b.manifest):void 0;return{publication:b,resources:v}},u=r(t);if(Oh.has(e))throw new Error("A publication is already mounted in this element");let s=`kplex-publication-${++_T}`,f=(0,h1.createRoot)(e,{identifierPrefix:s});Oh.add(e);let p=0,c=!1,m=({publication:S,resources:b})=>{i&&(e.ownerDocument.title=S.title),f.render((0,p1.jsx)(d1,{publication:S,markerPrefix:s,resources:b,browser:i&&b&&o?o:void 0},p++))};return m(u),{update(S){if(c)throw new Error("Publication mount has been disposed");m(r(S))},dispose(){if(!c){c=!0;try{f.unmount()}finally{Oh.delete(e)}}}}}var Lh=document.querySelector("[data-kplex-demo]");if(Lh){{let e=Lh.ownerDocument,t=e.createElement("style");t.textContent=`@scope (.kplex-publication){.kplex-view-host,.kplex-view-host>div,.kplex-app{width:100%;height:100%;min-width:0;min-height:0}.kplex-canvas-usage-tips{position:absolute;z-index:4;top:32px;left:16px;right:16px;color:var(--text-muted);font-size:calc(var(--font-ui-smaller) - 1px);text-align:center;pointer-events:none;overflow-wrap:anywhere}.kplex-canvas-usage-tips.is-contextual{color:var(--text-normal)}.kplex-app{position:relative;color:var(--kplex-text, var(--text-normal));background:var(--kplex-panel, var(--background-primary));font-family:var(--font-interface);overflow:hidden}.kplex-main-column{height:100%;display:grid;grid-template-rows:46px minmax(0,1fr) 40px}.kplex-topbar{position:relative;z-index:30;display:flex;align-items:center;gap:7px;padding:0 10px;background:var(--kplex-panel-2, var(--background-secondary));border-bottom:1px solid var(--kplex-line, var(--background-modifier-border));box-shadow:var(--shadow-s)}.kplex-brand{display:flex;align-items:center;gap:7px;margin-right:4px;letter-spacing:.01em;white-space:nowrap}.kplex-index-status{position:relative;min-height:9px;max-height:9px;min-width:9px;max-width:9px;flex:0 0 9px;padding:0;border-radius:50%;border:1px solid var(--background-modifier-border);cursor:pointer}.kplex-index-activities{white-space:pre-line}.kplex-index-status:before{content:"";position:absolute;inset:-8px;border-radius:50%}.kplex-topbar button.kplex-index-status,.kplex-index-status-empty button.kplex-index-status{width:9px;height:9px;min-width:9px;padding:0;border:1px solid var(--background-modifier-border);border-radius:50%}.kplex-index-status:focus-visible{outline:2px solid var(--interactive-accent);outline-offset:4px}.kplex-index-status.is-ready,.kplex-topbar button.kplex-index-status.is-ready{background:var(--color-green);box-shadow:var(--shadow-s)}.kplex-index-status.is-updating,.kplex-topbar button.kplex-index-status.is-updating{background:var(--color-red);box-shadow:var(--shadow-s);animation:kplex-index-status-blink 1s ease-in-out infinite}.kplex-index-status.is-paused,.kplex-topbar button.kplex-index-status.is-paused{animation:none}.kplex-index-status-empty{position:absolute;top:18px;left:18px}@keyframes kplex-index-status-blink{0%,to{opacity:1}50%{opacity:.25}}@media (prefers-reduced-motion: reduce){.kplex-index-status.is-updating,.kplex-topbar button.kplex-index-status.is-updating{animation:none}}.kplex-info-bubble{z-index:1000;display:flex;flex-direction:column;box-sizing:border-box;padding:12px;color:var(--text-normal);background:var(--background-primary);border:1px solid var(--background-modifier-border);border-radius:var(--radius-m);box-shadow:var(--shadow-s)}.kplex-info-bubble-content{min-height:0;overflow:auto;overflow-wrap:anywhere}.kplex-info-bubble-pointer{position:absolute;top:-6px;left:10px;width:10px;height:10px;pointer-events:none;background:var(--background-primary);border-top:1px solid var(--background-modifier-border);border-left:1px solid var(--background-modifier-border);transform:rotate(45deg)}.kplex-info-bubble-message{font-size:var(--font-ui-small);line-height:1.4}.kplex-info-bubble-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:10px}.kplex-brand-mark{color:var(--interactive-accent);font-size:20px;text-shadow:none}.kplex-topbar button,.kplex-find button,button.kplex-footprints-trigger,button.kplex-layout-toggle,button.kplex-zone-filter-button,.kplex-sidecar-controls button,button.kplex-sidecar-unfold-plex,.kplex-central-editor-toolbar button,.kplex-zoom-controls button,.kplex-wander-controls button{color:var(--kplex-text, var(--text-normal));background:var(--kplex-control-bg, var(--interactive-normal));border:1px solid var(--kplex-control-border, var(--background-modifier-border));border-radius:7px;height:28px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;box-shadow:none;cursor:pointer}.kplex-topbar button:hover,.kplex-find button:hover,button.kplex-footprints-trigger:hover,button.kplex-layout-toggle:hover,button.kplex-zone-filter-button:hover,.kplex-sidecar-controls button:hover,button.kplex-sidecar-unfold-plex:hover,.kplex-central-editor-toolbar button:hover,.kplex-zoom-controls button:hover,.kplex-wander-controls button:hover{background:var(--kplex-control-hover, var(--interactive-hover))}.kplex-topbar button:disabled{opacity:.28;cursor:default}.kplex-topbar .kplex-action-button{color:var(--kplex-action-fg, var(--text-normal));background:var(--kplex-action-bg, var(--interactive-normal));border-color:var(--kplex-action-border, var(--background-modifier-border))}.kplex-topbar .kplex-action-button:hover{background:var(--kplex-action-bg-hover, var(--interactive-hover))}.kplex-topbar .kplex-action-button:disabled{opacity:var(--kplex-action-disabled-opacity, var(--disabled-opacity, .5))}.kplex-topbar .kplex-action-button:focus-visible{outline:2px solid var(--kplex-action-focus, var(--interactive-accent));outline-offset:2px}.kplex-view-host .kplex-icon-button{width:30px;padding:0;font-size:17px}.kplex-top-actions{display:flex;align-items:center;gap:5px;margin-left:auto}.kplex-top-actions .kplex-auto-open{width:32px;padding:0}.kplex-search-shell{position:relative;flex:1;max-width:520px;min-width:100px}.kplex-search-icon{position:absolute;left:10px;top:5px;color:var(--kplex-muted, var(--text-muted));font-size:18px;pointer-events:none}.kplex-view-host .kplex-search{width:100%;height:30px;padding:0 12px 0 33px;color:var(--kplex-text, var(--text-normal));background:var(--background-secondary);border:1px solid var(--background-modifier-border);border-radius:8px;box-shadow:var(--shadow-s)}.kplex-view-host .kplex-search:focus{border-color:var(--interactive-accent);box-shadow:0 0 0 1px var(--interactive-accent)}.kplex-search-results{position:absolute;z-index:60;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;border:1px solid var(--background-modifier-border);background:var(--background-secondary);border-radius:9px;box-shadow:var(--shadow-s);padding:6px}.kplex-search-results .kplex-search-result{width:100%;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:18px;text-align:left;border:0;color:var(--kplex-text, var(--text-normal));background:transparent;border-radius:6px;padding:8px 10px;cursor:pointer;height:auto;box-shadow:none}.kplex-search-results .kplex-search-result:hover{background:var(--background-modifier-hover)}.kplex-search-results .kplex-search-result+.kplex-search-result{border-top:1px solid var(--background-modifier-border-faint)}.kplex-search-result.has-prefix{grid-template-columns:16px minmax(0,.9fr) minmax(0,1.1fr);gap:10px}.kplex-search-result-prefix{display:inline-flex;align-items:center;justify-content:center;color:var(--text-muted)}.kplex-search-result>span,.kplex-search-result small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-search-result small{color:var(--kplex-muted, var(--text-muted));text-align:right}.kplex-create-folder-row{display:flex;align-items:center;gap:8px;min-width:0}.kplex-create-folder-caption{color:var(--text-muted);font-size:var(--font-ui-small);flex:none}.kplex-create-folder-row .kplex-folder-path-input{flex:1;min-width:0}.kplex-materialize-folder-input{width:100%;min-width:0}.kplex-materialize-folder-input .kplex-folder-path-input{width:100%;max-width:none;min-width:0}.kplex-materialize-folder-row{gap:8px}.kplex-materialize-folder-row .setting-item-info{flex:none;margin:0}.kplex-materialize-folder-row .setting-item-name{color:var(--text-muted);font-size:var(--font-ui-small)}.kplex-materialize-folder-row .setting-item-control{flex:1;min-width:0}.kplex-folder-path-results .kplex-search-result{display:block;height:auto}.kplex-folder-path-results .kplex-search-result>span{display:block;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:break-word}.kplex-workspace{min-height:0;display:flex}.kplex-graph-area{position:relative;min-width:0;min-height:0;flex:1;overflow:hidden}.kplex-plex{position:absolute;inset:0;overflow:clip;user-select:none;cursor:grab}.kplex-plex:active{cursor:grabbing}.kplex-plex:after{content:"";position:absolute;inset:0;pointer-events:none;background:none}.kplex-camera{position:absolute;width:0;height:0;transform-origin:0 0}.kplex-camera.is-camera-moving{will-change:transform}.kplex-links{position:absolute;left:-1600px;top:-1200px;overflow:visible;pointer-events:none;z-index:4}.kplex-nodes{position:absolute;left:0;top:0;z-index:8}.kplex-edge{transition:opacity .11s ease,filter .11s ease}.kplex-edge-visible{pointer-events:none;filter:none;transition:opacity .11s ease,filter .11s ease}.kplex-edge-hit{pointer-events:stroke;cursor:pointer}.kplex-edge.is-hover-peek .kplex-edge-hit{pointer-events:none}.kplex-edge.is-highlighted .kplex-edge-visible{filter:none}.kplex-edge.is-dimmed,.kplex-expanded-connector.is-dimmed{opacity:.16}.kplex-edge-label{pointer-events:none;paint-order:stroke;stroke:var(--kplex-link-label-background, var(--background-primary));stroke-width:3px;stroke-linejoin:round}.kplex-zone-label{position:absolute;z-index:3;pointer-events:none;font-size:9px;letter-spacing:.18em;color:var(--text-faint);font-weight:700}.zone-parent{top:12px;left:50%;transform:translate(-50%)}.zone-child{bottom:12px;left:50%;transform:translate(-50%)}.zone-left{top:50%;left:10px;transform:translateY(-50%) rotate(-90deg);transform-origin:left top}.zone-right{top:50%;right:10px;transform:translateY(-50%) rotate(90deg);transform-origin:right top}.kplex-thought{position:absolute;z-index:10;display:flex;align-items:center;justify-content:center;gap:6px;padding:4px 10px;box-sizing:border-box;text-align:center;line-height:1.2;box-shadow:var(--kplex-node-shadow, var(--shadow-s));cursor:pointer;transition:filter .11s ease,box-shadow .11s ease,opacity .11s ease}.kplex-thought:hover{filter:brightness(1.12);z-index:12}.kplex-thought.is-highlighted{filter:brightness(1.22);box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s);z-index:13}.kplex-thought.is-dimmed{opacity:.24;filter:saturate(.55) brightness(.72)}.kplex-thought.is-selected{box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s)}.kplex-keyboard-announcement,.kplex-accessible-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.kplex-hotkey-setting .setting-item-control{flex-wrap:wrap}.kplex-thought.is-selected.is-highlighted{box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s)}.kplex-role-center{font-weight:650;z-index:14;padding:8px 13px}.kplex-role-sibling{opacity:.86}.kplex-role-sibling.is-dimmed{opacity:.22}.kplex-thought-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-plex .kplex-thought>.kplex-thought-corner-action,.kplex-plex .kplex-thought>.kplex-section-fold-handle{box-sizing:border-box;appearance:none;-webkit-appearance:none;padding:0;margin:0}.kplex-thought-corner-action{position:absolute;z-index:22;top:-6px;right:-6px;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;min-width:16px;min-height:16px;max-width:16px;max-height:16px;padding:0;border:1px solid transparent;border-radius:4px;color:var(--kplex-muted, var(--text-muted));background:var(--background-secondary);cursor:pointer;opacity:.76}.kplex-thought-corner-action:hover,.kplex-thought-corner-action:focus-visible{color:var(--kplex-text, var(--text-normal));border-color:var(--kplex-line, var(--background-modifier-border));background:var(--background-modifier-hover);opacity:1}.kplex-thought-corner-action:focus-visible{outline:1px solid var(--kplex-accent, var(--interactive-accent));outline-offset:1px}.kplex-count{display:inline-flex;flex:0 0 auto;min-width:17px;height:17px;align-items:center;justify-content:center;border-radius:9px;font-size:9px;color:var(--text-muted);background:var(--background-secondary);border:1px solid var(--background-modifier-border)}.kplex-role-center .kplex-count{min-width:19px;height:19px;border-radius:10px;font-size:10px}.kplex-gate-wrap{position:absolute;z-index:18;width:var(--kplex-gate-size, 8px);height:var(--kplex-gate-size, 8px);pointer-events:none}.gate-wrap-top{top:calc(-1 * var(--kplex-gate-size, 8px) - 3px);left:50%;transform:translate(-50%)}.gate-wrap-bottom{bottom:calc(-1 * var(--kplex-gate-size, 8px) - 3px);left:50%;transform:translate(-50%)}.gate-wrap-left{left:calc(-1 * var(--kplex-gate-size, 8px) - 3px);top:50%;transform:translateY(-50%)}.gate-wrap-right{right:calc(-1 * var(--kplex-gate-size, 8px) - 3px);top:50%;transform:translateY(-50%)}.kplex-gate{position:relative;display:block;width:100%;height:100%;box-sizing:border-box;border-radius:50%;background:transparent;border:1.25px solid var(--kplex-gate-stroke, var(--background-modifier-border));opacity:.82;box-shadow:var(--shadow-s);pointer-events:auto;cursor:crosshair;transition:opacity .1s ease,box-shadow .1s ease,background .1s ease}.kplex-gate:after{content:"";position:absolute;inset:-5px;border-radius:50%}.kplex-gate.has-connections{background:var(--kplex-gate-fill, var(--interactive-accent))}.kplex-gate.is-empty{background:transparent}.kplex-gate.is-link-disabled{cursor:default;opacity:.56}.kplex-gate.is-link-disabled:after{display:none}.kplex-gate:hover,.kplex-gate.is-highlighted{opacity:1;box-shadow:0 0 0 2px var(--interactive-accent)}.kplex-gate-count{position:absolute;z-index:20;pointer-events:none;min-width:12px;color:var(--text-normal);font-size:8px;font-weight:650;line-height:1;text-shadow:none}.gate-wrap-top .kplex-gate-count,.gate-wrap-bottom .kplex-gate-count{left:calc(100% + 4px);top:50%;transform:translateY(-50%);text-align:left}.gate-wrap-left .kplex-gate-count{right:calc(100% + 4px);top:50%;transform:translateY(-50%);text-align:right}.gate-wrap-right .kplex-gate-count{left:calc(100% + 4px);top:50%;transform:translateY(-50%);text-align:left}.kplex-sibling-scroll{position:absolute;z-index:16;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-bg) transparent;overscroll-behavior:contain;border-radius:10px;background:transparent}.kplex-sibling-scroll::-webkit-scrollbar{width:7px}.kplex-sibling-scroll::-webkit-scrollbar-track{background:transparent}.kplex-sibling-scroll::-webkit-scrollbar-thumb{background:var(--background-modifier-hover);border-radius:8px}.kplex-sibling-content{position:relative;width:100%;min-height:100%}.kplex-zoom-controls{position:absolute;z-index:20;right:12px;bottom:clamp(0px,calc(100% - 42px),12px);display:flex;gap:5px}.kplex-zoom-controls button,button.kplex-layout-toggle,button.kplex-zone-filter-button,.kplex-sidecar-controls button,button.kplex-sidecar-unfold-plex,.kplex-central-editor-toolbar button,.kplex-find button{width:30px;padding:0}.kplex-history-bar{z-index:30;display:flex;align-items:center;gap:9px;padding:0 9px;background:var(--background-secondary);border-top:1px solid var(--background-modifier-border);overflow:hidden}.kplex-history-label{flex:0 0 auto;font-size:8px;font-weight:700;letter-spacing:.13em;color:var(--text-muted)}.kplex-history-list{min-width:0;display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;user-select:none}.kplex-history-list.is-mouse-scrolling,.kplex-history-list.is-mouse-scrolling button,.kplex-pinned-bar.is-mouse-scrolling,.kplex-pinned-bar.is-mouse-scrolling button{cursor:grabbing}.kplex-history-list::-webkit-scrollbar,.kplex-pinned-bar::-webkit-scrollbar{display:none}.kplex-history-list,.kplex-pinned-bar{touch-action:pan-x pinch-zoom;overscroll-behavior-x:contain}.kplex-history-list button{flex:0 0 auto;width:180px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;justify-content:flex-start;color:var(--text-normal);border:1px solid var(--background-modifier-border);border-radius:6px;background:var(--background-primary);padding:5px 9px;cursor:pointer;font-size:11px}.kplex-history-list button{display:flex;align-items:center;gap:5px}.kplex-history-list button>.kplex-icon,.kplex-pinned-open>.kplex-icon{flex:0 0 auto}.kplex-action-picker-row{display:flex;align-items:center;gap:8px}.kplex-action-picker-row .suggestion-icon{flex:0 0 auto;display:flex}.kplex-action-picker-row .suggestion-content{min-width:0}.kplex-history-text{flex:1 1 auto;min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;line-height:1.15}.kplex-main-column.is-two-line-history{grid-template-rows:auto minmax(0,1fr) 52px}.kplex-main-column.is-two-line-history .kplex-history-list button{height:40px}.kplex-main-column.is-two-line-history .kplex-history-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:break-word;max-height:2.3em}.kplex-history-list button:hover{box-shadow:inset 0 0 0 1px var(--background-modifier-border-hover)}.kplex-history-list button.is-active{outline:1px solid var(--interactive-accent);outline-offset:-2px}.kplex-empty{display:grid;place-items:center;color:var(--text-muted)}@media (max-width: 900px){.kplex-brand strong{display:none}}.kplex-settings .setting-item-control textarea{width:100%;min-width:min(420px,52vw);max-width:780px;resize:vertical}@media (max-width: 900px){.kplex-settings .setting-item-control textarea{min-width:0;width:100%;max-width:none}}.kplex-icon{display:inline-flex;align-items:center;justify-content:center;line-height:0;flex:0 0 auto}.kplex-icon svg{display:block;stroke:currentColor}.kplex-brand-mark{color:var(--interactive-accent);filter:none}.kplex-index-background .kplex-icon.kplex-brand-mark{opacity:.5}.kplex-node-icon{opacity:.88;margin-right:4px}.kplex-thought-label{display:inline-flex;align-items:center;justify-content:center;min-width:0}.kplex-thought-label>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-thought-text{padding:.2em 0;box-sizing:content-box}.kplex-thought-caption{display:flex;flex-direction:column;min-width:0;width:100%;gap:4px}.kplex-thought-caption>.kplex-thought-label{flex-shrink:0}.kplex-node-properties{display:flex;flex-direction:column;min-width:0;font-size:var(--kplex-node-property-font-size, 12px);line-height:1.4;font-weight:400;text-align:start}.kplex-node-property{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden;white-space:nowrap}.kplex-node-property-icon{flex:0 0 1em;width:1em;height:1em;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}.kplex-node-property-icon svg{width:1em;height:1em}.kplex-node-property-label{flex:1 1 0;min-width:0;max-width:max-content;overflow:hidden;text-overflow:ellipsis;color:var(--text-muted)}.kplex-node-property-value{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.kplex-property-measurement{position:absolute;left:-100000px;top:0;visibility:hidden;pointer-events:none;width:max-content;max-width:none;height:auto;transform:none;transition:none;box-shadow:none}.kplex-node-details-editor{min-width:0}.kplex-node-detail-group{padding:8px 0;margin-block-end:16px;border-block-end:1px solid var(--background-modifier-border)}.kplex-node-detail-row .setting-item-control{display:flex;flex-wrap:wrap;gap:8px;width:100%}.kplex-node-detail-row .setting-item-control input[type=text]{flex:1 1 140px;min-width:0}.kplex-node-details-preview{padding:16px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-m);margin-block:16px}.kplex-note-type-review-group{margin-block-end:16px}.kplex-note-type-change-preview{white-space:pre-wrap;overflow-wrap:anywhere}@media (max-width: 480px){.kplex-node-detail-row .setting-item-control input[type=text]{flex-basis:100%}}.kplex-thought.is-dragging{cursor:grabbing;z-index:28;filter:brightness(1.16);box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s)}.kplex-role-parent,.kplex-role-child,.kplex-role-left,.kplex-role-right,.kplex-role-previous,.kplex-role-next{cursor:grab}.kplex-topbar{overflow:visible}.kplex-top-actions{min-width:0;max-width:58%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:2px 0}.kplex-top-actions::-webkit-scrollbar{display:none}.kplex-view-host .kplex-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px}.kplex-toolbar-divider{width:1px;height:20px;flex:0 0 1px;margin:0 2px;background:var(--background-modifier-hover)}.kplex-search-icon{display:flex;align-items:center;top:7px}.kplex-drag-connector{pointer-events:none;stroke:var(--interactive-accent);stroke-width:2.2px;stroke-dasharray:5 4;filter:none}.kplex-relation-actions button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:28px;padding:0;color:var(--text-normal);border:1px solid var(--background-modifier-border, var(--background-modifier-border));border-radius:6px;background:var(--background-secondary, var(--background-modifier-hover));cursor:pointer}.kplex-relation-label{display:block;margin:9px 0 5px;color:var(--text-muted);font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.06em}.kplex-relation-search-wrap{display:flex;align-items:center;gap:7px;padding:0 8px;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-secondary)}.kplex-relation-modal .kplex-relation-search-wrap input{width:100%;height:30px;padding:0;border:0;box-shadow:none;background:transparent}.kplex-relation-results{max-height:210px;overflow-y:auto;margin-top:6px;padding:3px;border-radius:7px;background:var(--background-secondary-alt, var(--background-secondary))}.kplex-relation-results button{width:100%;display:grid;grid-template-columns:18px minmax(80px,1fr) minmax(80px,.9fr);align-items:center;gap:6px;min-height:30px;padding:4px 7px;text-align:left;border:0;border-radius:5px;color:var(--text-normal);background:transparent;cursor:pointer}.kplex-relation-results button:hover,.kplex-relation-results button.is-selected{background:var(--background-modifier-hover, var(--background-modifier-hover))}.kplex-relation-results button.is-selected{box-shadow:inset 2px 0 0 var(--interactive-accent)}.kplex-relation-file-name,.kplex-relation-results small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-relation-results small{color:var(--text-muted);text-align:right}.kplex-relation-empty{padding:10px 8px;color:var(--text-muted);font-size:11px}.kplex-relation-hint{margin-top:8px;padding:7px 8px;color:var(--text-muted);background:var(--background-secondary);border-radius:6px;font-size:10px;line-height:1.35}.kplex-relation-summary{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border-radius:7px;background:var(--background-secondary)}.kplex-relation-summary>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-relation-direction{flex:0 0 auto;padding:2px 6px;color:var(--text-accent);border:1px solid var(--background-modifier-border);border-radius:10px;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.kplex-relation-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:10px}.modal.kplex-style-editor-modal{width:min(560px,calc(100vw - 32px));max-width:calc(100vw - 20px);box-sizing:border-box}.modal.kplex-style-editor-modal .modal-content{min-width:0;overflow-x:hidden}.kplex-style-editor>p{margin:0 0 var(--kplex-form-gap, var(--size-4-4))}.kplex-style-form,.kplex-style-row{min-width:0}.kplex-style-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;flex-wrap:wrap}.kplex-style-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.kplex-style-form input.is-invalid{border-color:var(--text-error)}.kplex-input-suggestion-line{display:flex;align-items:center;gap:7px;min-width:0}.kplex-input-suggestion-line .kplex-lucide{flex:0 0 auto;width:16px;height:16px;color:var(--text-muted)}.kplex-input-suggestion-line span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 520px){.kplex-style-actions button{flex:1 1 auto}}.kplex-main-column{grid-template-rows:auto minmax(0,1fr) 40px}.kplex-topbar{min-height:46px;height:auto;padding:6px 10px;flex-wrap:wrap;align-content:center;overflow:visible}.kplex-search-shell{flex:1 1 100px;max-width:560px}.kplex-top-actions{flex:0 0 auto;min-width:0;max-width:none;margin-left:auto;padding:0;overflow:visible;flex-wrap:wrap;justify-content:flex-end}.kplex-toolbar-divider{align-self:center}.kplex-area-frame{position:absolute;z-index:14;box-sizing:border-box;pointer-events:none;border:1px dashed var(--background-modifier-border-hover);border-radius:10px;opacity:.58;transition:opacity 90ms ease,border-color 90ms ease}.kplex-area-frame.is-settings-mode{border-color:var(--background-modifier-border-focus);opacity:.78}.kplex-area-frame.is-active{border-style:solid;border-color:var(--interactive-accent);opacity:.82}.kplex-area-frame.is-resizing{opacity:1}.theme-dark .kplex-area-frame:not(.is-active){border-color:var(--text-muted);opacity:.85}.kplex-area-frame.is-settings-mode:after,.kplex-area-frame.is-active:after{content:"";position:absolute;left:12px;right:12px;height:5px;border-radius:5px;background:var(--interactive-accent);opacity:.82}.kplex-area-frame.is-active:after,.kplex-area-frame.is-resizing:after{opacity:1}.kplex-area-frame.is-edge-top:after{top:-1px}.kplex-area-frame.is-edge-bottom:after{bottom:-1px}.kplex-area-keyboard-handle{position:absolute;left:12px;right:12px;height:5px;pointer-events:auto;cursor:ns-resize}.is-edge-top>.kplex-area-keyboard-handle{top:-1px}.is-edge-bottom>.kplex-area-keyboard-handle{bottom:-1px}.kplex-area-keyboard-handle:focus-visible{outline:2px solid var(--text-accent)}.kplex-plex.is-area-resize-ready,.kplex-plex.is-area-resizing{cursor:ns-resize}.kplex-area-frame.is-no-height-resize:after{content:none}.kplex-area-frame.is-width-resizable.is-settings-mode:before,.kplex-area-frame.is-width-resizable.is-active:before{content:"";position:absolute;top:12px;bottom:12px;width:5px;border-radius:5px;background:var(--interactive-accent);opacity:.82}.kplex-area-frame.is-side-left:before{left:-1px}.kplex-area-frame.is-side-right:before{right:-1px}.kplex-area-keyboard-handle.is-width-handle{inset:12px auto;width:5px;height:auto;cursor:ew-resize}.kplex-area-keyboard-handle.is-width-handle.is-edge-left{left:-1px}.kplex-area-keyboard-handle.is-width-handle.is-edge-right{right:-1px}.kplex-plex.is-area-width-resize{cursor:ew-resize}.kplex-zone-panel{position:absolute;z-index:16;overflow:visible;border-radius:10px;background:transparent}.kplex-zone-panel:focus-within{z-index:17}.kplex-zone-fixed{position:absolute;inset:0;z-index:1;overflow:visible}.kplex-zone-scroll{position:absolute;inset:0;z-index:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-bg) transparent}.kplex-zone-scroll::-webkit-scrollbar{width:7px}.kplex-zone-scroll::-webkit-scrollbar-track{background:transparent}.kplex-zone-scroll::-webkit-scrollbar-thumb{background:var(--background-modifier-hover);border-radius:8px}.kplex-zone-content{position:relative;width:100%;min-height:100%}.kplex-zone-tools{position:absolute;z-index:34;bottom:calc(100% + 6px);right:0;display:flex;align-items:center;justify-content:flex-end;gap:4px;pointer-events:none}.kplex-zone-tools>*{pointer-events:auto}.kplex-view-host .kplex-zone-filter-input{box-sizing:border-box;width:150px;flex:0 0 150px;height:28px;padding:0 7px;font-size:10px;border:1px solid var(--background-modifier-border);border-radius:6px;box-shadow:var(--shadow-s)}.kplex-thought.is-connect-blocked{opacity:.18;filter:saturate(.45) brightness(.68)}.kplex-thought.is-connect-candidate{opacity:1}.kplex-thought.is-connect-candidate:hover{box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s)}.kplex-thought.is-connect-origin{opacity:1;filter:brightness(1.16);box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s)}.kplex-relation-modal{width:min(620px,calc(100vw - 48px));max-width:min(620px,calc(100vw - 48px))}.kplex-relation-modal-content{display:flex;flex-direction:column;min-height:0}.kplex-relation-modal .kplex-relation-results{max-height:min(38vh,340px);overflow-y:auto}.kplex-relation-modal .kplex-relation-actions{position:sticky;bottom:0;z-index:4;padding-top:10px;background:var(--background-primary)}.kplex-relation-modal .kplex-relation-actions button{width:34px;height:30px}.kplex-relation-modal select{width:100%}.kplex-ontology-fields>.setting-items{width:100%}.kplex-ontology-fields>.setting-items>.setting-item{display:grid;grid-template-columns:minmax(220px,1fr) minmax(420px,1.35fr);gap:32px;align-items:start;width:100%}.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-info,.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-control{min-width:0;width:100%;max-width:none;margin:0}.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-control{display:block;justify-self:stretch}.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-control textarea{display:block;box-sizing:border-box;width:100%;min-width:100%;max-width:100%;resize:vertical}.kplex-import-file-row{margin:10px 0 7px}.kplex-import-file-row input[type=file]{width:100%}.kplex-import-status{color:var(--text-muted);font-size:var(--font-ui-small)}@media (max-width: 900px){.kplex-ontology-fields>.setting-items>.setting-item{grid-template-columns:minmax(0,1fr);row-gap:8px}.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-info,.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-control,.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-control textarea{min-width:0;width:100%;max-width:100%}}.kplex-edge-label{paint-order:normal;stroke:none;font-weight:600}.kplex-zone-filter-control{position:relative;display:inline-flex;align-items:center;justify-content:center}.kplex-zone-count{position:absolute;right:1px;top:-11px;z-index:2;min-width:13px;height:12px;padding:0 3px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;color:var(--text-muted);background:var(--background-secondary);border:1px solid var(--background-modifier-border);font-size:8px;line-height:1;font-weight:700;pointer-events:none}.kplex-layout-controls{position:absolute;left:16px;bottom:17px;z-index:34;display:flex;align-items:flex-end;gap:12px;padding:5px 7px 4px;border-radius:8px;background:var(--background-secondary);backdrop-filter:blur(2px)}@media (max-width: 760px){.kplex-layout-controls{left:8px;bottom:12px;gap:6px;padding:4px}}.kplex-thought{padding:3px 8px}.kplex-role-center{padding:7px 11px}.kplex-expanded-cluster{position:absolute;z-index:19;overflow:visible;pointer-events:auto}.kplex-expanded-scroll{position:absolute;inset:0;overflow:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-bg) transparent}.kplex-expanded-scroll.is-scrollable{overflow-y:auto;overflow-x:hidden}.kplex-expanded-scroll::-webkit-scrollbar{width:5px}.kplex-expanded-scroll::-webkit-scrollbar-track{background:transparent}.kplex-expanded-scroll::-webkit-scrollbar-thumb{background:var(--background-modifier-hover);border-radius:8px}.kplex-expanded-content{position:relative;width:100%}.kplex-expanded-mini-thought{position:absolute;z-index:20;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:3px;padding:1px 4px;overflow:visible;border:1px solid var(--background-modifier-border);border-radius:6px;color:var(--text-muted);font-size:8px;line-height:1;opacity:.7;box-shadow:var(--shadow-s);cursor:pointer;transition:opacity .1s ease,filter .1s ease}.kplex-expanded-mini-thought:hover{opacity:.92;filter:brightness(1.12)}.kplex-expanded-mini-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-expanded-mini-icon{flex:0 0 auto;opacity:.82}.kplex-expanded-mini-gate{position:absolute;left:50%;top:-3px;width:4px;height:4px;transform:translate(-50%,-50%);border:1px solid var(--background-modifier-border);border-radius:50%;background:var(--background-modifier-border);pointer-events:none}.kplex-expanded-edge{pointer-events:none;opacity:.52;filter:none}.kplex-role-parent,.kplex-role-child,.kplex-role-left,.kplex-role-right,.kplex-role-previous,.kplex-role-next,.kplex-role-sibling,.kplex-thought.is-structural-thought{cursor:pointer}.kplex-thought:hover{filter:none}.kplex-thought.is-highlighted:hover{filter:brightness(1.22)}.kplex-thought.is-dragging{cursor:grabbing}.kplex-layout-controls{gap:14px;padding:6px 9px 5px;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-secondary);box-shadow:var(--shadow-s)}.kplex-view-host .kplex-thought{padding:1px 8px}.kplex-view-host .kplex-role-center{padding:2px 10px}.kplex-layout-controls{left:14px;bottom:clamp(0px,calc(100% - 45px),15px);gap:8px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}.kplex-density-control{width:126px;padding:5px 7px 6px;display:grid;grid-template-rows:14px 12px;gap:2px;box-sizing:border-box;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-secondary);box-shadow:var(--shadow-s);color:var(--text-muted);cursor:default;user-select:none}.kplex-density-heading{display:grid;grid-template-columns:13px 1fr auto;align-items:center;gap:4px;min-width:0}.kplex-density-heading,.kplex-wrap-label-caption{font-size:7px;line-height:1;letter-spacing:.055em;text-transform:uppercase}.kplex-density-heading svg{opacity:.7}.kplex-density-heading output{min-width:24px;text-align:right;color:var(--text-muted);font-variant-numeric:tabular-nums;letter-spacing:0;text-transform:none}.kplex-density-rail{position:relative;align-self:center;display:block;width:100%;height:12px}.kplex-density-rail:before{content:"";position:absolute;left:1px;right:1px;top:5px;height:1px;border-radius:999px;background:var(--background-modifier-border)}.kplex-density-rail.is-stepped:after{content:"";position:absolute;left:1px;right:1px;top:3px;height:5px;opacity:.28;background:repeating-linear-gradient(to right,transparent 0 calc(14.285% - 1px),var(--background-modifier-border) calc(14.285% - 1px) 14.285%);pointer-events:none}.kplex-density-fill{position:absolute;left:1px;top:5px;height:1px;border-radius:999px;background:var(--interactive-accent);pointer-events:none}.kplex-view-host .kplex-density-rail input[type=range]{-webkit-appearance:none;appearance:none;position:absolute;inset:0;width:100%;height:12px;min-height:12px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;outline:none;cursor:ew-resize}.kplex-view-host .kplex-density-rail input[type=range]::-webkit-slider-runnable-track{height:12px;border:0;background:transparent;box-shadow:none}.kplex-view-host .kplex-density-rail input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:8px;height:8px;min-width:8px;min-height:8px;margin-top:2px;padding:0;border:1px solid var(--background-modifier-border);border-radius:50%;background:var(--interactive-accent);box-shadow:var(--shadow-s)}.kplex-view-host .kplex-density-rail input[type=range]::-moz-range-track{height:12px;border:0;background:transparent}.kplex-view-host .kplex-density-rail input[type=range]::-moz-range-progress{background:transparent}.kplex-view-host .kplex-density-rail input[type=range]::-moz-range-thumb{width:8px;height:8px;border:1px solid var(--background-modifier-border);border-radius:50%;background:var(--interactive-accent);box-shadow:var(--shadow-s)}.kplex-top-stack{position:relative;z-index:30;min-width:0;background:var(--background-secondary);border-bottom:1px solid var(--kplex-line, var(--background-modifier-border))}.kplex-top-stack .kplex-topbar{border-bottom:0;box-shadow:none}.kplex-pinned-row{display:flex;min-width:0;align-items:center;background:var(--background-secondary)}.kplex-pin-tools{display:flex;flex:0 0 auto;gap:2px;padding:2px 2px 6px 8px}.kplex-pin-tools .kplex-icon-button{width:28px;height:28px}.kplex-calendar-modal{width:360px;max-width:calc(100vw - 24px)}.kplex-calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.kplex-calendar-heading>span{font-weight:600;text-align:center}.kplex-calendar-weekdays,.kplex-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.kplex-calendar-weekdays{color:var(--text-muted);text-align:center;font-size:var(--font-ui-smaller);margin-bottom:4px}.kplex-calendar-grid{margin-bottom:12px}.kplex-calendar-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;height:40px;padding:2px}.kplex-calendar-grid .is-other-month{color:var(--text-muted)}.kplex-calendar-grid .is-today{outline:2px solid var(--interactive-accent);outline-offset:-2px}.kplex-calendar-grid .has-note{font-weight:600}.kplex-calendar-note-dot{height:9px;line-height:9px;color:var(--interactive-accent)}.kplex-calendar-picker input[type=date]{width:100%}.kplex-pinned-bar{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:6px;min-height:30px;padding:2px 10px 6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;user-select:none;background:var(--background-secondary)}.kplex-pinned-chip{flex:0 0 auto;display:inline-flex;align-items:stretch;max-width:240px;border:1px solid var(--background-modifier-border);border-radius:7px;overflow:hidden;background:var(--background-modifier-hover)}.kplex-pinned-chip.is-active{outline:1px solid var(--interactive-accent);outline-offset:-2px}.kplex-pinned-chip.is-unavailable{color:var(--text-muted)}.kplex-pinned-bar.is-reordering{cursor:grabbing;background:color-mix(in srgb,var(--interactive-accent) 10%,var(--background-secondary))}.kplex-pinned-bar.is-reordering>.kplex-pinned-chip{opacity:.5}.kplex-pinned-bar.is-reordering>.kplex-pinned-chip.is-reorder-source{position:relative;z-index:2;opacity:1;outline:2px solid var(--interactive-accent);outline-offset:-2px;box-shadow:var(--shadow-s);transform:translate(var(--reorder-drag-x, 0px));pointer-events:none}.kplex-pinned-bar.is-reordering>.kplex-pinned-chip.is-reorder-before{opacity:1;box-shadow:inset 5px 0 var(--interactive-accent);border-left-color:var(--interactive-accent)}.kplex-pinned-bar.is-reorder-end>.kplex-pinned-chip:last-child{opacity:1;box-shadow:inset -5px 0 var(--interactive-accent)}.kplex-pinned-chip .kplex-pin-reorder-handle{width:18px;padding:0;cursor:grab;touch-action:none}.kplex-pinned-bar.is-reordering .kplex-pin-reorder-handle{cursor:grabbing}.kplex-pinned-chip button{height:25px;border:0;border-radius:0;background:transparent;color:inherit;cursor:pointer}.kplex-pinned-chip button:hover{background:var(--background-modifier-hover);color:inherit}.kplex-pinned-open{min-width:0;max-width:205px;display:inline-flex;align-items:center;gap:5px;padding:0 8px;text-align:left;font-size:10px}.kplex-pinned-open svg{flex:0 0 auto}.kplex-pinned-open span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-view-host .kplex-pinned-remove{width:25px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-left:1px solid var(--background-modifier-border);color:var(--text-muted)}.kplex-search-results .kplex-search-result.is-selected{color:var(--text-normal);background:var(--background-modifier-hover);box-shadow:inset 2px 0 0 var(--interactive-accent)}.kplex-expanded-mini-thought.is-sibling-descendant{opacity:.6;padding-left:3px;padding-right:3px}.kplex-settings .kplex-resource-links{display:flex;justify-content:center;align-items:center;gap:0;flex-wrap:wrap;padding:2px 0 10px;margin-bottom:2px;border-bottom:1px solid var(--background-modifier-border)}.kplex-settings .kplex-resource-links .setting-item{position:relative;flex:0 0 auto;width:auto;min-width:0;padding:0 10px;border:0}.kplex-settings .kplex-resource-links .setting-item+.setting-item:before{content:"|";position:absolute;left:-2px;top:50%;transform:translateY(-50%);color:var(--text-faint)}.kplex-settings .kplex-resource-links .setting-item-info{margin:0}.kplex-settings .kplex-resource-links .setting-item-name{color:var(--text-accent);font-size:var(--font-ui-small);white-space:nowrap}.kplex-settings .kplex-resource-links .setting-item-description{display:none}.kplex-settings .kplex-resource-links .setting-item-control{margin-left:5px}.kplex-settings .kplex-resource-links button{min-width:0;height:24px;padding:0 6px;font-size:var(--font-ui-smaller)}.kplex-explanation-modal{max-width:760px}.kplex-explanation-pair{margin-bottom:8px;font-size:1.05em}.kplex-explanation-result{margin:8px 0;font-weight:600}.kplex-explanation-summary{margin:8px 0 16px;color:var(--text-muted);line-height:1.45}.kplex-explanation-evidence{display:flex;flex-direction:column;gap:8px}.kplex-explanation-evidence-row{border:1px solid var(--background-modifier-border);border-radius:6px;padding:8px 10px}.kplex-explanation-evidence-row.is-suppressed{opacity:.72}.kplex-explanation-state{display:inline-block;min-width:82px;margin-right:8px;font-size:10px;font-weight:700;letter-spacing:.06em;color:var(--text-accent)}.kplex-explanation-evidence-row.is-suppressed .kplex-explanation-state{color:var(--text-muted)}.kplex-explanation-description{font-size:12px}.kplex-explanation-evidence code{display:block;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}.kplex-explanation-reason{margin-top:5px;color:var(--text-muted);font-size:11px}.kplex-explanation-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.kplex-explanation-navigate{height:28px;min-height:28px;padding:0 9px;font-size:var(--font-ui-smaller)}.kplex-explanation-empty{color:var(--text-muted)}.kplex-explanation-display-context{margin:8px 0;padding:8px 10px;border-left:3px solid var(--interactive-accent);background:var(--background-secondary);color:var(--text-muted)}.kplex-plex{overscroll-behavior:none;-webkit-user-select:none;user-select:none}.kplex-plex,.kplex-camera,.kplex-nodes{touch-action:none}.kplex-zone-scroll,.kplex-expanded-scroll,.kplex-relation-results{touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.kplex-filter>summary{list-style:none}.kplex-filter>summary::-webkit-details-marker{display:none}.kplex-filter.is-active>summary{color:var(--text-normal);border-color:var(--background-modifier-border);background:var(--background-modifier-hover)}.kplex-filter-panel{position:absolute;z-index:90;top:calc(100% + 6px);left:0;display:grid;grid-template-columns:minmax(155px,1fr);gap:8px;width:min(290px,calc(100vw - 28px));padding:10px;border:1px solid var(--background-modifier-border);border-radius:8px;background:var(--background-primary-alt, var(--background-primary));box-shadow:var(--shadow-s)}.kplex-filter-panel label{display:grid;gap:3px;color:var(--text-muted);font-size:10px;font-weight:600;letter-spacing:.025em}.kplex-filter-panel input,.kplex-filter-panel select{width:100%;min-width:0;font-size:var(--font-ui-small)}.kplex-filter-panel button{justify-self:end}.kplex-surface-sidepanel .kplex-topbar{gap:4px;padding:4px 6px;flex-wrap:wrap}.kplex-surface-sidepanel .kplex-brand{min-width:auto}.kplex-surface-sidepanel .kplex-brand strong{display:none}.kplex-surface-sidepanel .kplex-brand-mark{width:17px;height:17px}.kplex-surface-sidepanel .kplex-search{min-width:110px;flex:1 1 145px}.kplex-surface-sidepanel .kplex-top-actions{flex:1 1 100%;min-width:0;overflow-x:auto;overflow-y:hidden;justify-content:flex-start;scrollbar-width:none}.kplex-surface-sidepanel .kplex-top-actions::-webkit-scrollbar{display:none}.kplex-surface-sidepanel .kplex-topbar button{flex:0 0 auto}.kplex-surface-sidepanel .kplex-pinned-bar{padding-left:6px;padding-right:6px}.kplex-surface-sidepanel .kplex-history-label{display:none}.kplex-surface-sidepanel .kplex-history-bar{padding-left:5px;padding-right:5px}.kplex-surface-sidepanel .kplex-layout-controls{transform:scale(.92);transform-origin:bottom left}@keyframes kplex-edge-arrive{0%{opacity:0}to{opacity:1}}.kplex-plex.is-scene-transitioning .kplex-edge-paint{animation:kplex-edge-arrive max(.12s,calc(var(--kplex-motion-ms, .56s) * .55)) ease-out both}.kplex-plex.is-following-document .kplex-edge-paint{animation:none}@media (prefers-reduced-motion: reduce){.kplex-plex.is-scene-transitioning .kplex-edge-paint{animation:none}}.kplex-plex.is-section-expanded .kplex-thought.is-selected{box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s)}.kplex-relation-new-note{display:inline-flex;align-items:center;gap:6px;margin-top:8px}.kplex-relation-new-note .kplex-lucide{width:14px;height:14px}@media (max-width: 700px){.kplex-view-host .kplex-topbar{gap:4px;padding:4px 5px}.kplex-view-host .kplex-brand strong{display:none}.kplex-view-host .kplex-topbar button:where(:not(.kplex-index-status)),.kplex-view-host .kplex-icon-button:where(:not(.kplex-index-status)),.kplex-view-host .kplex-zoom-controls button,.kplex-view-host button.kplex-zone-filter-button,.kplex-sidecar-controls button,.kplex-central-editor-toolbar button,button.kplex-sidecar-unfold-plex{min-width:30px;min-height:30px}.kplex-view-host .kplex-search{flex:1 1 130px;min-width:100px}.kplex-view-host .kplex-top-actions{flex:0 0 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.kplex-view-host .kplex-top-actions::-webkit-scrollbar{display:none}.kplex-view-host .kplex-filter-panel{position:fixed;top:max(52px,env(safe-area-inset-top));left:8px;right:8px;width:auto}.kplex-view-host .kplex-history-bar{min-height:26px}.kplex-view-host .kplex-layout-controls{max-width:calc(100% - 70px)}}@keyframes kplex-scene-arrive{0%{opacity:.82}to{opacity:1}}.kplex-plex.is-scene-transitioning{animation:kplex-scene-arrive max(.12s,calc(var(--kplex-motion-ms, .56s) * .72)) ease-out both}@media (prefers-reduced-motion: reduce){.kplex-plex.is-scene-transitioning{animation:none}}@media (hover: none) and (pointer: coarse){.kplex-camera.is-camera-moving{will-change:auto}.kplex-edge-visible,.kplex-edge.is-highlighted .kplex-edge-visible{filter:none}}.kplex-plex.is-touch-gesturing .kplex-thought,.kplex-plex.is-touch-gesturing .kplex-edge,.kplex-plex.is-touch-gesturing .kplex-expanded-edge,.kplex-plex.is-pinch-gesturing .kplex-camera{animation:none;transition:none}.kplex-plex.is-pinch-gesturing .kplex-thought{box-shadow:none}.kplex-plex.is-pinch-gesturing .kplex-edge-label-wrap{opacity:0}.kplex-plex.is-pinch-gesturing .kplex-section-tree-edge{filter:none}.kplex-plex.is-ios.is-pinch-gesturing .kplex-edge-visible,.kplex-plex.is-ios.is-pinch-gesturing .kplex-expanded-edge,.kplex-plex.is-ios.is-pinch-gesturing .kplex-section-tree-edge{opacity:0}.kplex-plex.is-ios.is-pinch-gesturing .kplex-thought{box-shadow:none;filter:none}.kplex-section-tree-edge{stroke:color-mix(in srgb,var(--interactive-accent) 64%,var(--text-muted));stroke-width:1.55;stroke-linecap:square;stroke-linejoin:miter;opacity:.9;pointer-events:none}.kplex-thought.is-kplex-section{border-radius:4px;border:1px solid color-mix(in srgb,var(--text-muted) 34%,var(--background-modifier-border));border-left:3px solid color-mix(in srgb,var(--interactive-accent) 66%,var(--text-accent));background:color-mix(in srgb,var(--background-secondary) 94%,var(--interactive-accent) 6%);color:var(--text-normal);box-shadow:var(--shadow-s)}.kplex-thought.is-kplex-section:hover{border-color:color-mix(in srgb,var(--interactive-accent) 58%,var(--background-modifier-border));border-left-color:var(--interactive-accent);background:color-mix(in srgb,var(--background-secondary) 90%,var(--interactive-accent) 10%);box-shadow:var(--shadow-s)}.kplex-thought.is-kplex-section:after{content:"";position:absolute;left:-4px;top:50%;width:7px;height:7px;transform:translate(-50%,-50%);border-radius:1px;background:var(--background-primary);border:1.5px solid color-mix(in srgb,var(--interactive-accent) 72%,var(--text-muted));pointer-events:none}.kplex-thought.is-kplex-section .kplex-thought-label{justify-content:flex-start;gap:8px;padding-inline:8px 10px;color:var(--text-normal);font-weight:570;letter-spacing:.003em}.kplex-section-heading-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:24px;padding:0 3px;border:0;border-radius:3px;background:color-mix(in srgb,var(--interactive-accent) 10%,transparent);color:color-mix(in srgb,var(--text-accent) 86%,var(--text-normal));font-size:9px;font-weight:760;line-height:18px}.kplex-thought.is-kplex-section .kplex-gate.is-empty,.kplex-thought.is-kplex-section .kplex-gate-wrap.is-empty .kplex-gate-count{opacity:0;pointer-events:none}.kplex-section-fold-handle{position:absolute;left:14px;bottom:-6px;width:10px;height:10px;min-width:10px;min-height:10px;padding:0;margin:0;transform:translate(-50%);border:1.5px solid color-mix(in srgb,var(--interactive-accent) 76%,var(--text-muted));border-radius:1px;background:var(--background-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--background-primary) 88%,transparent);z-index:8;cursor:pointer}.kplex-section-fold-handle.is-expanded:after{content:"";position:absolute;left:2px;right:2px;top:3px;height:1.5px;border-radius:1px;background:var(--interactive-accent)}.kplex-section-fold-handle.is-folded{background:color-mix(in srgb,var(--interactive-accent) 72%,var(--background-primary))}.kplex-section-fold-handle.is-folded:before,.kplex-section-fold-handle.is-folded:after{content:"";position:absolute;background:var(--background-primary);border-radius:1px}.kplex-section-fold-handle.is-folded:before{left:2px;right:2px;top:3px;height:1.5px}.kplex-section-fold-handle.is-folded:after{top:2px;bottom:2px;left:3px;width:1.5px}.kplex-section-fold-handle:hover{border-color:var(--interactive-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--interactive-accent) 16%,transparent)}.kplex-section-fold-handle.is-branch-disclosure{left:auto;right:-6px;transform:none;width:16px;height:16px;inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px;max-inline-size:16px;max-block-size:16px;flex:0 0 16px;bottom:-6px;display:flex;align-items:center;justify-content:center;border-radius:4px;color:var(--text-normal);background:var(--background-primary)}.kplex-section-fold-handle.is-branch-disclosure:before,.kplex-section-fold-handle.is-branch-disclosure:after{content:none}.kplex-branch-disclosure-symbol{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.kplex-section-fold-handle.is-branch-disclosure.has-expanded-hit-target{left:calc(100% - 10px);top:calc(100% - 10px);right:auto;bottom:auto;width:44px;height:44px;inline-size:44px;block-size:44px;min-inline-size:44px;min-block-size:44px;max-inline-size:44px;max-block-size:44px;flex-basis:44px;align-items:flex-start;justify-content:flex-start;padding:0;border:0;box-shadow:none;background:transparent}.has-expanded-hit-target .kplex-branch-disclosure-symbol{box-sizing:border-box;width:16px;height:16px;border:1px solid var(--interactive-accent);border-radius:4px;background:var(--background-primary)}.has-expanded-hit-target:hover .kplex-branch-disclosure-symbol{border-color:var(--interactive-accent-hover)}.kplex-node-status{position:absolute;left:0;bottom:-16px;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;line-height:12px;color:var(--text-muted);background:var(--background-primary);pointer-events:none}.kplex-relationship-updating{position:absolute;inset:0;z-index:90;display:flex;align-items:flex-start;justify-content:center;padding-top:56px;background:color-mix(in srgb,var(--background-primary) 5%,transparent);cursor:wait;pointer-events:auto}.kplex-relationship-updating>span,.kplex-relationship-updating>svg{pointer-events:none}.kplex-relationship-updating{gap:7px;color:var(--text-normal);font-size:var(--font-ui-small)}.kplex-relationship-updating:before{content:"";position:absolute;top:47px;width:190px;height:34px;border-radius:17px;background:var(--background-secondary-alt);border:1px solid var(--background-modifier-border);box-shadow:var(--shadow-s);z-index:-1}.kplex-relationship-updating svg{animation:kplex-spin 1s linear infinite}@keyframes kplex-spin{to{transform:rotate(360deg)}}.kplex-sidecar-controls{position:absolute;z-index:82;display:flex;gap:5px;padding:0}.kplex-sidecar-controls.is-right{right:4px;top:50%;transform:translateY(-50%);flex-direction:column}.kplex-sidecar-controls.is-left{left:4px;top:50%;transform:translateY(-50%);flex-direction:column}.kplex-sidecar-controls.is-above{top:4px;left:50%;transform:translate(-50%)}.kplex-sidecar-controls.is-below{bottom:4px;left:50%;transform:translate(-50%)}.kplex-top-actions.is-compact{flex-wrap:nowrap}.kplex-app.is-sidecar-condensed .kplex-brand strong{display:none}.kplex-section-root-port{fill:var(--background-primary);stroke:color-mix(in srgb,var(--interactive-accent) 65%,var(--text-muted));stroke-width:1.25;pointer-events:none}.kplex-add-related-modal{width:min(680px,calc(100vw - 24px));max-width:min(680px,calc(100vw - 24px))}.kplex-add-related-form{display:grid;gap:12px;min-width:0}.kplex-add-related-form .kplex-fuzzy-search{width:100%;max-width:none;min-width:0;flex:1 1 auto}.kplex-add-related-form .kplex-search,.kplex-import-modal .kplex-search,.kplex-folder-path-input .kplex-search{box-sizing:border-box;width:100%}.kplex-folder-path-input .kplex-search,.kplex-add-related-form .kplex-folder-path-input .kplex-search{width:100%;box-sizing:border-box}.kplex-add-related-form .kplex-search-icon,.kplex-import-modal .kplex-search-icon{top:10px;color:var(--text-muted)}.kplex-add-related-form .kplex-fuzzy-inline-results{left:0;right:0;top:calc(100% + 4px);max-height:min(36vh,300px);color:var(--text-normal);background:var(--background-primary);border-color:var(--background-modifier-border);box-shadow:var(--shadow-s)}.kplex-add-related-form .kplex-search-result{color:var(--text-normal)}.kplex-add-related-form .kplex-search-result small{color:var(--text-muted)}.kplex-add-related-form .kplex-search-result:hover,.kplex-add-related-form .kplex-search-result.is-selected{background:var(--background-modifier-hover)}.kplex-add-related-role-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.kplex-add-related-role-row button{min-width:0;height:30px;padding:0 8px}.kplex-add-related-role-row button.is-active{color:var(--text-on-accent);background:var(--interactive-accent)}.kplex-add-related-control-row{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.kplex-add-related-control-row .kplex-add-related-ontology-search{flex:1 1 280px}.kplex-edit-selected-ontology{flex:0 0 auto}.kplex-edge-ontology-field{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.kplex-relationship-direction{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:8px 0}.kplex-relationship-direction>.setting-item-description{flex:1 1 240px;overflow-wrap:anywhere}.kplex-relationship-direction>button{flex:0 0 auto}.kplex-add-related-footer{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px 16px}.kplex-creation-completion-row{display:flex;flex-wrap:wrap;gap:var(--size-4-2);justify-content:flex-end;min-width:0;padding:var(--size-4-3) 0}.kplex-add-related-control-row .kplex-add-related-role-select{max-width:100%}.kplex-add-related-compose-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;min-width:0}.kplex-add-related-action-area{min-width:0;display:flex;align-items:center;height:38px}.kplex-add-related-create-actions{display:flex;justify-content:flex-end;gap:10px;height:38px}.kplex-add-related-type-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:38px;min-width:42px;padding:0;border:1px solid var(--background-modifier-border);background:var(--background-primary)}.kplex-add-related-recovery{display:grid;gap:10px;min-width:0;padding:12px;border:1px solid var(--background-modifier-border);border-radius:var(--input-radius, 5px);background:var(--background-secondary);font-size:var(--font-ui-small);line-height:1.45;overflow-wrap:anywhere}.kplex-add-related-recovery-reason{color:var(--text-muted)}.kplex-add-related-recovery-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.kplex-add-related-recovery-actions button{max-width:100%;height:auto;min-height:var(--input-height);white-space:normal}.kplex-add-related-create-hint.is-error{color:var(--text-error)}.kplex-add-related-create-hint{margin-top:-4px;color:var(--text-muted);font-size:var(--font-ui-smaller);line-height:1.35}@media (max-width: 520px){.kplex-add-related-role-row{grid-template-columns:repeat(2,minmax(0,1fr))}.kplex-add-related-control-row{gap:7px}.kplex-add-related-control-row .kplex-add-related-ontology-search{flex-basis:210px}.kplex-add-related-compose-row{gap:7px}.kplex-add-related-action-area{min-width:83px}.kplex-add-related-create-actions{gap:6px}.kplex-add-related-type-button{width:36px;min-width:36px}.kplex-add-related-link-button{width:83px;min-width:83px}}@media (max-width: 380px){.kplex-add-related-modal{width:calc(100vw - 12px);max-width:calc(100vw - 12px)}.kplex-add-related-control-row .kplex-add-related-ontology-search{flex-basis:150px}.kplex-add-related-create-actions{gap:4px}.kplex-add-related-type-button{width:33px;min-width:33px}}.is-mobile .modal.kplex-mobile-fullscreen-modal{position:fixed;left:var(--kplex-visible-left, 0px);top:var(--kplex-visible-top, 0px);width:var(--kplex-visible-width, 100%);max-width:var(--kplex-visible-width, 100%);height:var(--kplex-visible-height, 100%);max-height:var(--kplex-visible-height, 100%);margin:0;border-radius:0;overflow:hidden}.is-mobile .modal.kplex-mobile-fullscreen-modal>.modal-content{flex:1 1 auto;min-height:0;overflow-y:auto}.kplex-draggable-dialog.is-positioned{position:fixed;left:var(--kplex-dialog-left);top:var(--kplex-dialog-top);right:auto;bottom:auto;margin:0}.kplex-draggable-dialog-handle{cursor:grab;user-select:none;touch-action:none}.kplex-draggable-dialog-handle.is-dragging{cursor:grabbing}.kplex-draggable-dialog-handle button,.kplex-draggable-dialog-handle input,.kplex-draggable-dialog-handle select,.kplex-draggable-dialog-handle textarea,.kplex-draggable-dialog-handle a,.kplex-draggable-dialog-handle [contenteditable=true],.kplex-draggable-dialog-handle [role=button],.kplex-draggable-dialog-handle [role=link]{cursor:auto;user-select:auto;touch-action:auto}.kplex-folded-workspace-group{display:none}.kplex-fold-recovery-host{position:relative}.kplex-sidecar-unfold-plex{position:absolute;z-index:1000}.kplex-sidecar-unfold-plex.is-left{left:5px;top:50%;transform:translateY(-50%)}.kplex-sidecar-unfold-plex.is-right{right:5px;top:50%;transform:translateY(-50%)}.kplex-sidecar-unfold-plex.is-top{top:5px;left:50%;transform:translate(-50%)}.kplex-sidecar-unfold-plex.is-bottom{bottom:5px;left:50%;transform:translate(-50%)}.kplex-settings .kplex-resource-links>:is(div,section):not(.setting-item){display:flex;align-items:center;justify-content:center;flex-wrap:wrap;width:100%}.kplex-fuzzy-floating-results{color:var(--text-normal);background:var(--background-primary);border-color:var(--background-modifier-border);box-shadow:var(--shadow-s)}.kplex-fuzzy-floating-results .kplex-search-result{color:var(--text-normal)}.kplex-fuzzy-floating-results .kplex-search-result small{color:var(--text-muted)}.kplex-fuzzy-floating-results .kplex-search-result:hover,.kplex-fuzzy-floating-results .kplex-search-result.is-selected{background:var(--background-modifier-hover)}.kplex-fuzzy-match{padding:0;color:var(--text-accent);background:transparent;font:inherit;font-weight:750}@keyframes kplex-new-relationship-flair{0%,to{box-shadow:var(--kplex-node-shadow, var(--shadow-s));filter:brightness(1)}12%,38%,64%{box-shadow:0 0 0 3px color-mix(in srgb,var(--interactive-accent) 82%,white),0 0 34px color-mix(in srgb,var(--interactive-accent) 58%,transparent),var(--shadow-s);filter:brightness(1.28)}25%,51%,77%{box-shadow:0 0 0 1px color-mix(in srgb,var(--interactive-accent) 50%,transparent),0 0 16px color-mix(in srgb,var(--interactive-accent) 34%,transparent),var(--shadow-s);filter:brightness(1.08)}}.kplex-thought.is-new-flair{z-index:35;animation:kplex-new-relationship-flair 3.6s ease-in-out both}@keyframes kplex-filter-flair{0%,to{box-shadow:none}12%,38%,64%{box-shadow:0 0 0 3px color-mix(in srgb,var(--interactive-accent) 75%,transparent),0 0 22px color-mix(in srgb,var(--interactive-accent) 48%,transparent)}25%,51%,77%{box-shadow:0 0 0 1px color-mix(in srgb,var(--interactive-accent) 45%,transparent)}}.kplex-zone-filter-control.is-new-flair{border-radius:7px;animation:kplex-filter-flair 3.6s ease-in-out both}.kplex-rename-note-modal .kplex-rename-note-name-setting{display:block}.kplex-rename-note-modal .kplex-rename-note-name-setting .setting-item-info{margin-bottom:8px}.kplex-rename-note-modal .kplex-rename-note-name-setting .setting-item-control,.kplex-rename-note-modal .kplex-rename-note-name-setting input[type=text]{width:100%}.kplex-filter>summary{position:relative}.kplex-lens-count{position:absolute;right:-5px;top:-5px;min-width:14px;height:14px;padding:0 3px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--interactive-accent);color:var(--text-on-accent);font-size:9px;line-height:1;font-weight:700}.kplex-filter-panel{width:min(390px,calc(100vw - 28px));max-height:min(72vh,720px);overflow:auto}.kplex-filter-panel textarea{width:100%;min-width:0;resize:vertical;font:var(--font-ui-smaller) var(--font-monospace)}.kplex-predicate-rule-editor,.kplex-predicate-expression-field{display:grid;gap:8px;min-width:0}.kplex-predicate-rule-editor label,.kplex-predicate-expression-field>label{display:grid;gap:4px;min-width:0}.kplex-predicate-expression-field>label{color:var(--text-muted);font-size:var(--font-ui-smaller)}.kplex-predicate-expression-field textarea{box-sizing:border-box;width:100%;min-width:0;min-height:6em;resize:vertical;font:var(--font-ui-smaller) var(--font-monospace);color:var(--text-normal)}.kplex-filter-section{display:grid;gap:8px}.kplex-filter-section+.kplex-filter-section,.kplex-view-controls+.kplex-filter-section{padding-top:10px;border-top:1px solid var(--background-modifier-border)}.kplex-view-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}.kplex-view-controls>.kplex-view-selector,.kplex-view-controls>.kplex-view-choice{flex:1 1 150px;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:end}.kplex-view-controls>.kplex-view-choice{flex-basis:240px;min-width:min(100%,220px);grid-template-columns:minmax(0,1fr) auto auto}.kplex-view-controls label{min-width:0;display:grid;gap:6px}.kplex-view-controls select{width:100%;min-width:0}.kplex-view-controls .kplex-lens-help{flex-basis:100%;grid-column:1 / -1}.kplex-filter-section-heading{color:var(--text-normal);font-size:11px;font-weight:700;letter-spacing:.025em}.kplex-visibility-bulk{display:flex;flex-direction:column;gap:6px}.kplex-visibility-bulk-buttons{display:flex;flex-wrap:wrap;gap:6px}.kplex-visibility-bulk-buttons button{min-height:32px}.kplex-lens-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.kplex-lens-heading .kplex-icon-button{justify-self:auto}.kplex-lens-empty,.kplex-lens-help{color:var(--text-muted);font-size:10px;line-height:1.35}.kplex-lens-help code{font-size:9px}.kplex-lens-list{display:grid;gap:4px}.kplex-lens-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:4px;padding:4px 5px;border:1px solid var(--background-modifier-border);border-radius:6px;opacity:.72}.kplex-lens-row.is-enabled{opacity:1;background:var(--background-secondary)}.kplex-lens-row.has-error{border-color:var(--text-error)}.kplex-lens-toggle{display:flex;place-items:center}.kplex-lens-toggle input{width:auto;margin:0}.kplex-lens-main{display:grid;gap:1px;min-width:0;padding:2px 4px;text-align:left;background:transparent;border:0;box-shadow:none;justify-self:stretch}.kplex-lens-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-normal);font-size:11px;font-weight:600}.kplex-lens-meta{color:var(--text-muted);font-size:9px;text-transform:capitalize}.kplex-lens-error-dot{color:var(--text-error);font-weight:800}.kplex-lens-editor{display:grid;gap:8px;padding:8px;border-radius:7px;background:var(--background-secondary)}.kplex-lens-editor-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.kplex-lens-editor-error{color:var(--text-error);font-size:10px;line-height:1.35}.kplex-lens-editor-actions{display:flex;justify-content:flex-end;gap:6px}.kplex-lens-editor-actions button{justify-self:auto}.kplex-filter{position:relative;flex:0 0 auto}.kplex-filter-trigger{position:relative}.kplex-filter.is-active .kplex-filter-trigger{color:var(--text-normal);border-color:var(--background-modifier-border);background:var(--background-modifier-hover)}.kplex-filter.is-open .kplex-filter-trigger{box-shadow:0 0 0 1px var(--background-modifier-border)}.kplex-filter-portal{z-index:var(--layer-popover, 30);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;color:var(--text-normal);background:var(--background-primary-alt, var(--background-primary));box-shadow:var(--shadow-s)}.kplex-app[data-floating-layer-boundary]>:is(.kplex-filter-portal,.kplex-footprints-panel,.kplex-info-bubble){z-index:95}body.kplex-filter-panel-open .tooltip{z-index:100300}.kplex-filter-portal button{justify-self:auto}.kplex-lens-heading-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;max-width:100%}.kplex-lens-disable-all{min-height:26px;padding:0 8px;border-radius:6px;color:var(--text-muted);font-size:10px}.kplex-lens-row{grid-template-columns:auto minmax(0,1fr) auto auto auto;opacity:.62}.kplex-lens-row.is-enabled{opacity:1}.kplex-lens-enable-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:1px solid var(--background-modifier-border);border-radius:7px;color:var(--text-faint);background:var(--background-secondary);cursor:pointer}.kplex-lens-enable-button.is-on{color:var(--text-accent);border-color:var(--interactive-accent);background:color-mix(in srgb,var(--interactive-accent) 12%,var(--background-secondary))}.kplex-lens-optional{color:var(--text-faint);font-size:9px;font-weight:500}.kplex-lens-editor-mode{display:flex;gap:4px;padding:3px;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-primary)}.kplex-lens-editor-mode button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:1 1 0;min-height:28px;border:0;border-radius:5px;color:var(--text-muted);background:transparent}.kplex-lens-editor-mode button.is-on{color:var(--text-normal);background:var(--background-modifier-hover);box-shadow:inset 0 0 0 1px var(--background-modifier-border)}.kplex-lens-simple-builder{display:grid;gap:8px;padding:8px;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-primary)}.kplex-lens-group-heading{display:flex;align-items:center;gap:7px;color:var(--text-muted);font-size:10px;font-weight:600}.kplex-lens-group-heading select{width:auto;min-width:170px}.kplex-lens-conditions{display:grid;gap:7px}.kplex-lens-condition{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:6px;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-secondary)}.kplex-lens-where{flex:0 0 auto;color:var(--text-muted);font-size:10px}.kplex-lens-condition-field{flex:1 1 145px;min-width:120px;width:auto}.kplex-lens-condition-property{flex:1 1 130px;min-width:110px;width:auto}.kplex-lens-condition-operator{flex:0 1 125px;min-width:105px;width:auto}.kplex-lens-condition-value{flex:1 1 140px;min-width:120px;width:auto}.kplex-lens-condition-remove{flex:0 0 30px}.kplex-lens-add-condition{display:inline-flex;align-items:center;gap:5px;justify-self:start;min-height:28px}.kplex-lens-help strong{color:var(--text-normal)}.kplex-gate-count{white-space:nowrap;min-width:max-content}@media (max-width: 520px){.kplex-lens-editor-row{grid-template-columns:1fr}.kplex-lens-condition-field,.kplex-lens-condition-property,.kplex-lens-condition-operator,.kplex-lens-condition-value{flex-basis:calc(50% - 16px)}}.kplex-filter-heading-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.kplex-filter-heading-row .kplex-filter-layout-toggle{display:inline-flex;align-items:center;gap:7px;margin:0;color:var(--text-muted);font-size:10px;font-weight:600;cursor:pointer}.kplex-filter-visibility-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.kplex-filter-visibility-options{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 14px}.kplex-filter-visibility-options .kplex-filter-layout-toggle{display:inline-flex;align-items:center;gap:7px;margin:0;color:var(--text-muted);font-size:10px;font-weight:600;cursor:pointer}.kplex-filter-layout-toggle input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.kplex-filter-switch{position:relative;width:31px;height:17px;border:1px solid var(--background-modifier-border);border-radius:999px;background:var(--background-modifier-form-field);transition:background .12s ease,border-color .12s ease}.kplex-filter-switch:after{content:"";position:absolute;top:2px;left:2px;width:11px;height:11px;border-radius:50%;background:var(--text-muted);transition:transform .12s ease,background .12s ease}.kplex-filter-layout-toggle input:checked+.kplex-filter-switch{border-color:var(--interactive-accent);background:color-mix(in srgb,var(--interactive-accent) 35%,var(--background-modifier-form-field))}.kplex-filter-layout-toggle input:checked+.kplex-filter-switch:after{transform:translate(14px);background:var(--text-on-accent, white)}.kplex-filter-layout-toggle:focus-within .kplex-filter-switch{box-shadow:0 0 0 2px color-mix(in srgb,var(--interactive-accent) 28%,transparent)}.kplex-lens-style-editor{display:grid;gap:8px;padding:8px;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-primary)}.kplex-lens-style-heading{color:var(--text-normal);font-size:10px;font-weight:700}.kplex-lens-style-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.kplex-lens-style-grid label{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0}.kplex-lens-style-grid input[type=color]{width:42px;min-width:42px;height:28px;padding:2px;border-radius:6px}.kplex-lens-style-grid input[type=number],.kplex-lens-style-grid select{width:104px;min-width:86px}.kplex-lens-style-grid .kplex-lens-style-check{display:flex;grid-column:1 / -1;align-items:center;justify-content:flex-start;gap:7px}.kplex-lens-style-check input{width:auto;margin:0}@media (max-width: 520px){.kplex-lens-style-grid{grid-template-columns:1fr}}.kplex-thought.has-node-visual .kplex-thought-label{overflow:visible;gap:5px}.kplex-node-visual{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:18px;height:18px;border-radius:4px;overflow:visible}.kplex-role-center .kplex-node-visual{width:24px;height:24px}.kplex-node-visual img{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;border-radius:inherit;object-fit:contain;background:var(--background-secondary);box-shadow:0 0 0 1px color-mix(in srgb,var(--text-muted) 28%,transparent);transition:transform .12s ease,box-shadow .12s ease;transform-origin:center}.kplex-node-visual.is-replace{width:26px;height:22px}.kplex-role-center .kplex-node-visual.is-replace{width:38px;height:30px}.kplex-node-visual.is-replace img{object-fit:contain}.kplex-node-visual.kplex-local-video-visual{width:13px;height:13px;margin-inline-end:.5rem}.kplex-role-center .kplex-node-visual.kplex-local-video-visual{width:18px;height:18px}.kplex-local-video-visual>.kplex-node-icon{margin-right:0}.kplex-local-video-slot,.kplex-local-video-slot img{position:absolute;inset:0}.kplex-local-video-slot{transform:translateY(.05em)}.kplex-thought-label>.kplex-node-visual:last-child{overflow:visible;text-overflow:clip}@media (hover: hover) and (pointer: fine){.kplex-thought.has-node-visual:hover{z-index:40}.kplex-node-visual:hover{z-index:70}.kplex-node-visual:hover img{transform:scale(7);box-shadow:0 0 0 1px var(--background-modifier-border)}}.kplex-edge-properties-modal{width:min(860px,calc(100vw - 36px));max-width:min(860px,calc(100vw - 36px))}.kplex-edge-connection-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--size-4-2);margin-top:var(--size-4-2)}.kplex-edge-ontology-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0 16px;padding:10px 12px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-s);background:var(--background-secondary)}.kplex-edge-ontology-copy{min-width:0;display:grid;gap:2px}.kplex-edge-ontology-value{color:var(--text-muted);overflow-wrap:anywhere}.kplex-edge-ontology-conflict{margin-top:var(--size-4-2)}.kplex-relation-additional{display:flex;flex-wrap:wrap;align-items:center;gap:var(--size-4-2);margin-block:var(--size-4-4)}.kplex-relation-additional[hidden]{display:none}.kplex-relation-additional .setting-item-description{flex:1 1 240px;min-width:0}.kplex-relation-additional button{margin-inline-start:auto}.kplex-edge-why{margin-bottom:14px}.kplex-edge-source-intro{margin:-3px 0 10px;color:var(--text-muted);line-height:1.4;font-size:var(--font-ui-small)}.kplex-edge-source-list{display:grid;gap:9px}.kplex-edge-source-card{min-width:0;padding:10px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-s);background:var(--background-secondary)}.kplex-edge-source-card.is-overridden{opacity:.74}.kplex-edge-source-header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:9px}.kplex-edge-source-title{min-width:0;overflow-wrap:anywhere}.kplex-edge-source-title span{color:var(--text-muted);font-size:var(--font-ui-smaller)}.kplex-edge-source-status{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px;max-width:55%}.kplex-edge-source-evaluations{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}.kplex-edge-source-evaluation{padding:2px 6px;border:1px solid var(--background-modifier-border);border-radius:999px;background:var(--background-primary-alt);color:var(--text-muted);font-size:9px;font-weight:650;white-space:nowrap}.kplex-edge-source-evaluation.is-active{color:var(--text-normal);border-color:color-mix(in srgb,var(--interactive-accent) 40%,var(--background-modifier-border))}.kplex-edge-source-evaluation.is-overridden{opacity:.72}.kplex-edge-source-state{flex:0 0 auto;padding:2px 5px;border-radius:4px;font-size:9px;font-weight:700;letter-spacing:.07em}.kplex-edge-source-state.is-used{color:var(--text-success);background:color-mix(in srgb,var(--text-success) 12%,transparent)}.kplex-edge-source-state.is-overridden{color:var(--text-muted);background:var(--background-modifier-hover)}.kplex-edge-source-text{max-height:180px;margin:8px 0;padding:8px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:var(--radius-s);background:var(--background-primary);border:1px solid var(--background-modifier-border);font-size:var(--font-ui-smaller)}.kplex-edge-source-reason{margin:5px 0;color:var(--text-muted);font-size:var(--font-ui-smaller)}.kplex-edge-source-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--size-4-2)}.kplex-edge-source-header>.kplex-edge-source-actions{flex-basis:100%}.kplex-edge-source-removal{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--size-4-2);margin-top:var(--size-4-2)}.kplex-edge-source-removal-coordinate{flex:1 1 220px;min-width:0;color:var(--text-muted);font-size:var(--font-ui-small);overflow-wrap:anywhere}.kplex-edge-declaration-actions{display:flex;gap:var(--size-4-2);margin-inline-start:auto}.kplex-edge-source-removal [data-kplex-remove-field]{color:var(--text-error)}.kplex-edge-removal-status{padding:var(--size-4-2) 0;color:var(--text-muted)}.kplex-edge-source-action{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:3px 8px;font-size:var(--font-ui-smaller)}.kplex-edge-source-action svg{width:14px;height:14px}.kplex-edge-hover-tooltip{position:absolute;z-index:95;max-width:min(360px,calc(100% - 24px));padding:7px 9px;border:1px solid var(--background-modifier-border-hover);border-radius:var(--radius-s);background:var(--background-primary);color:var(--text-normal);box-shadow:var(--shadow-s);font-size:var(--font-ui-smaller);line-height:1.35;white-space:pre-line;pointer-events:none}.modal.kplex-style-manager-modal{width:min(760px,calc(100vw - 48px));max-width:calc(100vw - 24px);box-sizing:border-box}.modal.kplex-style-manager-modal .modal-content{min-width:0;max-width:100%;overflow-x:clip}.kplex-style-manager{width:100%;min-width:0;max-width:100%;box-sizing:border-box;overflow-x:clip}.kplex-style-manager>p{max-width:64ch;margin:0 0 12px;color:var(--text-muted);line-height:1.45}.kplex-style-manager-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;width:100%;min-width:0;margin:12px 0 8px}.kplex-style-manager-search{min-width:0;max-width:100%}.kplex-style-manager-search input{width:100%;min-width:0;box-sizing:border-box}.kplex-style-manager-controls select,.kplex-style-manager-controls button{min-width:0;max-width:220px}.kplex-style-manager-controls button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.kplex-style-manager-status{margin:8px 0;color:var(--text-muted);font-size:var(--font-ui-smaller)}.kplex-style-manager-list{display:grid;gap:2px;width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:4px;border:1px solid var(--background-modifier-border);border-radius:10px;background:var(--background-secondary);overflow:clip}.kplex-style-manager-row{width:100%;min-width:0;max-width:100%;box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:9px 10px;color:var(--text-normal);text-align:left;border:0;border-radius:7px;background:transparent;box-shadow:none;cursor:pointer;overflow:hidden}.kplex-style-manager-row:hover,.kplex-style-manager-row:focus-visible{background:var(--background-modifier-hover)}.kplex-style-manager-row>.kplex-lucide{order:3;flex:0 0 auto;color:var(--text-muted)}button.kplex-style-manager-row{height:fit-content}.kplex-style-manager-copy{flex:1 1 auto;min-width:0;max-width:100%;display:grid;gap:2px;overflow:hidden}.kplex-style-manager-heading{min-width:0;max-width:100%;display:flex;align-items:center;gap:7px;flex-wrap:wrap;overflow:hidden}.kplex-style-manager-name{min-width:0;max-width:100%;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-style-manager-summary{min-width:0;max-width:100%;color:var(--text-muted);font-size:var(--font-ui-smaller);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-ontology-manager .kplex-style-manager-name,.kplex-ontology-manager .kplex-style-manager-summary{white-space:normal;overflow-wrap:break-word}.kplex-style-manager-badges{min-width:0;display:inline-flex;gap:4px;flex-wrap:wrap}.kplex-style-manager-badge{padding:1px 5px;color:var(--text-muted);border:1px solid var(--background-modifier-border);border-radius:999px;font-size:10px;font-weight:500}.kplex-style-manager-line-swatch{flex:0 0 28px;height:0;border-top:3px solid var(--kplex-style-swatch, var(--text-muted));border-radius:3px}.kplex-style-manager-node-swatch{flex:0 0 28px;width:28px;height:22px;border:2px solid var(--kplex-style-node-border, var(--background-modifier-border));border-radius:6px;background:var(--kplex-style-node-bg, var(--background-secondary-alt))}.kplex-style-manager-property-icon{display:inline-flex;flex:0 0 28px;align-items:center;justify-content:center;color:var(--text-muted)}.kplex-style-manager-empty,.kplex-style-manager-limit{padding:12px;color:var(--text-muted)}.kplex-style-manager-empty p{margin:0 0 10px}.kplex-style-manager-more{justify-self:center;margin:6px 0 2px}@media (max-width: 680px){.modal.kplex-style-manager-modal{width:calc(100vw - 20px);max-width:calc(100vw - 20px)}.kplex-style-manager-controls{grid-template-columns:minmax(0,1fr)}.kplex-style-manager-controls select,.kplex-style-manager-controls button{width:100%;max-width:none}.kplex-style-manager-summary{white-space:normal}}.kplex-style-manager-line-swatch.is-dashed{border-top-style:dashed}.kplex-style-manager-line-swatch.is-dotted{border-top-style:dotted}.kplex-linked-leaf-alert{border:3px;border-color:var(--text-warning, var(--interactive-accent));border-style:solid}.kplex-create-folder-note-modal .kplex-create-folder-note-name-setting{display:block}.kplex-create-folder-note-modal .kplex-create-folder-note-name-setting .setting-item-info{margin-bottom:8px}.kplex-create-folder-note-modal .kplex-create-folder-note-name-setting .setting-item-control,.kplex-create-folder-note-modal .kplex-create-folder-note-name-setting input[type=text]{width:100%;max-width:none}[data-kplex-tooltip-scope] button[aria-label],[data-kplex-tooltip-scope] input[aria-label],[data-kplex-tooltip-scope] [role=button][aria-label],[data-kplex-tooltip-scope] [role=group][aria-label],[data-kplex-tooltip-scope] [data-kplex-control-tooltip],[data-kplex-tooltip-scope] [data-kplex-long-press-tooltip]{--no-tooltip: true}.tooltip.kplex-control-tooltip{position:fixed;z-index:100300;max-width:min(300px,calc(100vw - 16px));transform:none;animation:none;pointer-events:none;white-space:normal}.tooltip.kplex-control-tooltip.is-measuring{visibility:hidden}.tooltip.kplex-control-tooltip.is-multiline{white-space:pre-line;text-align:left}.kplex-filter-visibility-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:6px 12px;overflow:hidden;padding:2px;margin:-2px}.kplex-filter-visibility-grid .kplex-filter-layout-toggle{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin:0;color:var(--text-muted);font-size:10px;font-weight:600;cursor:pointer}.kplex-filter-visibility-grid .kplex-filter-layout-toggle:before{content:"";position:absolute;left:-6px;top:-3px;bottom:-3px;border-left:1px solid var(--background-modifier-border);pointer-events:none}.kplex-filter-visibility-grid .kplex-filter-layout-toggle>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-quick-lens-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:7px;align-items:end}.kplex-filter-clear{justify-self:start}.kplex-create-name-pair{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0;width:100%}.kplex-creation-properties,.kplex-creation-property-section{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--kplex-form-gap, 16px);min-width:0}.kplex-creation-property-section>hr{box-sizing:border-box;width:100%;margin:0}.kplex-create-name-pair .kplex-add-related-note-search{width:100%;min-width:0;max-width:none}.kplex-create-alias-input{width:100%;min-width:0}@media (max-width: 520px){.kplex-filter-visibility-grid{grid-template-columns:1fr}.kplex-create-name-pair{gap:6px}.kplex-create-alias-input{min-width:62px}}.kplex-add-related-title{display:flex;align-items:center;gap:8px;min-width:0}.kplex-add-related-role-select{width:auto;min-width:128px;max-width:min(46vw,220px);flex:0 1 auto}.kplex-create-name-pair .kplex-add-related-note-search .kplex-search-icon{display:none}.kplex-section-fold-handle{inline-size:10px;block-size:10px;min-inline-size:10px;min-block-size:10px;max-inline-size:10px;max-block-size:10px;flex:0 0 10px;overflow:hidden;font-size:0;-webkit-touch-callout:none}.kplex-thought,.kplex-thought *{-webkit-touch-callout:none}@media (pointer: coarse){.kplex-section-fold-handle{width:14px;height:14px;min-width:14px;min-height:14px;max-width:14px;max-height:14px;inline-size:14px;block-size:14px;min-inline-size:14px;min-block-size:14px;max-inline-size:14px;max-block-size:14px;flex-basis:14px;bottom:-8px}.kplex-section-fold-handle.is-expanded:after,.kplex-section-fold-handle.is-folded:before{left:3px;right:3px;top:5px}.kplex-section-fold-handle.is-folded:after{top:3px;bottom:3px;left:5px}}.kplex-relation-modal .kplex-relation-actions{flex:0 0 auto;min-height:0;height:auto;padding-bottom:0}.kplex-relation-modal .kplex-relation-actions button{box-sizing:border-box;appearance:none;-webkit-appearance:none;flex:0 0 34px;width:34px;min-width:34px;max-width:34px;height:30px;min-height:30px;max-height:30px;padding:0;line-height:1}.kplex-relation-modal .kplex-relation-actions .kplex-lucide,.kplex-relation-modal .kplex-relation-actions svg{display:block;width:17px;height:17px;min-width:17px;min-height:17px;stroke:currentColor;color:inherit}@media (pointer: coarse){.kplex-relation-modal .kplex-relation-actions{position:static;margin-top:10px;padding-top:0;padding-bottom:0;align-items:center}}.kplex-central-editor-overlay{position:absolute;z-index:26;box-sizing:border-box;padding:6px;overflow:visible;border:1px solid var(--background-modifier-border-hover);border-radius:18px;background:var(--background-primary);color:var(--text-normal);box-shadow:0 0 0 1px var(--background-modifier-border),0 10px 34px var(--background-modifier-box-shadow)}.kplex-central-editor-overlay.is-maximized{box-shadow:0 0 0 1px var(--background-modifier-border-hover),0 12px 42px var(--background-modifier-box-shadow)}.kplex-central-editor-overlay.is-area-clipped{background:transparent;border-color:transparent;box-shadow:none;pointer-events:none}.kplex-central-editor-overlay.is-area-clipped .kplex-central-editor-document,.kplex-central-editor-overlay.is-area-clipped .kplex-central-editor-toolbar{pointer-events:auto}.kplex-central-editor-overlay.is-area-clipped:before{content:"";position:absolute;inset:-1px;border:1px solid var(--background-modifier-border-hover);border-radius:inherit;background:var(--background-primary);clip:var(--kplex-editor-frame-clip, auto);pointer-events:none}.kplex-central-editor-placeholder{width:100%;height:100%;pointer-events:none}.kplex-thought.has-embedded-content{padding:6px;overflow:visible;cursor:default;background:var(--background-primary);color:var(--text-normal);border-color:var(--background-modifier-border-hover);box-shadow:0 0 0 1px var(--background-modifier-border),0 10px 34px var(--background-modifier-box-shadow)}.kplex-thought.has-embedded-content:hover,.kplex-thought.has-embedded-content.is-highlighted{filter:none}.kplex-thought-embedded-content{position:relative;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;border-radius:12px;background:var(--background-primary);color:var(--text-normal);text-align:start;line-height:normal;user-select:text;cursor:text;touch-action:pan-x pan-y}.kplex-central-editor-content,.kplex-central-editor-document,.kplex-central-editor-leaf-host,.kplex-embedded-workspace-root{width:100%;height:100%;min-width:0;min-height:0}.kplex-central-editor-content{position:relative;overflow:visible;border-radius:inherit;color:var(--text-normal);isolation:isolate;touch-action:pan-x pan-y}.kplex-central-editor-document{position:absolute;inset:0;border-radius:inherit;background:var(--background-primary);clip:var(--kplex-editor-body-clip, auto)}.kplex-central-editor-content.is-edit-mode{cursor:default}.kplex-central-editor-leaf-host,.kplex-embedded-workspace-root{position:absolute;inset:0;overflow:hidden;border-radius:12px;background:var(--background-primary)}.kplex-central-editor-content.is-markdown-zoom-scaled>.kplex-central-editor-document>.kplex-central-editor-leaf-host{width:calc(100% / var(--kplex-editor-camera-scale, 1));height:calc(100% / var(--kplex-editor-camera-scale, 1));transform:scale(var(--kplex-editor-camera-scale, 1));transform-origin:top left}.kplex-embedded-workspace-split{display:flex;flex-direction:column}.kplex-central-editor-overlay.is-native-view-fullscreen{padding:0;border:0;border-radius:0;box-shadow:none}.kplex-central-editor-overlay.is-native-view-fullscreen .kplex-central-editor-document{clip:auto}.kplex-central-editor-overlay.is-native-view-fullscreen .kplex-central-editor-leaf-host,.kplex-central-editor-overlay.is-native-view-fullscreen .kplex-embedded-workspace-root{border-radius:0}.kplex-central-editor-overlay.is-native-view-fullscreen .kplex-central-editor-toolbar,.kplex-central-editor-leaf-host .workspace-tab-header-container,.kplex-central-editor-leaf-host .view-header{display:none}.kplex-central-editor-leaf-host .workspace-leaf,.kplex-central-editor-leaf-host .workspace-leaf-content,.kplex-central-editor-leaf-host .view-content,.kplex-central-editor-leaf-host .markdown-source-view,.kplex-central-editor-leaf-host .markdown-reading-view{width:100%;height:100%;min-width:0;min-height:0;box-sizing:border-box}.kplex-central-editor-leaf-host .workspace-leaf-content,.kplex-central-editor-leaf-host .view-content{overflow:hidden}.kplex-central-editor-leaf-host .cm-scroller,.kplex-central-editor-leaf-host .markdown-reading-view,.kplex-central-editor-leaf-host .markdown-preview-view{touch-action:pan-y;overscroll-behavior:contain}.kplex-central-editor-toolbar{position:absolute;z-index:32;top:var(--kplex-editor-toolbar-top, -34px);right:var(--kplex-editor-toolbar-right, 1px);left:var(--kplex-editor-toolbar-left, 1px);display:flex;gap:2px;align-items:center;padding:2px;border:1px solid var(--kplex-line, var(--background-modifier-border));border-radius:6px;background:var(--kplex-panel, var(--background-primary));box-shadow:var(--shadow-s)}.kplex-central-editor-title{flex:1 1 auto;min-width:0;padding:0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-ui-small);font-weight:var(--font-semibold)}.kplex-central-editor-toolbar>button{flex-shrink:0}.kplex-central-editor-status{position:absolute;z-index:31;left:50%;top:50%;transform:translate(-50%,-50%);max-width:calc(100% - 36px);padding:6px 9px;border-radius:7px;color:var(--text-muted);background:var(--background-secondary);font-size:var(--font-ui-smaller);pointer-events:none}.kplex-central-editor-status.is-error{color:var(--text-error)}.kplex-plex.is-central-editor-maximized .kplex-zoom-controls,.kplex-plex.is-central-editor-maximized .kplex-layout-controls{opacity:0;visibility:hidden;pointer-events:none}.kplex-plex.is-central-editor-maximized .kplex-role-center.has-embedded-content{box-shadow:none}.kplex-thought-label.is-two-line>.kplex-thought-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;line-height:1.2;max-height:2.4em;overflow:hidden;text-overflow:ellipsis}.kplex-central-editor-leaf-host [data-type=image] .view-content{display:flex;align-items:center;justify-content:center;padding:0}.kplex-central-editor-leaf-host [data-type=image] .image-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}.kplex-central-editor-leaf-host [data-type=image] .view-content img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.kplex-scene-tools{position:absolute;top:8px;right:8px;z-index:45;display:flex;align-items:center;gap:4px;max-width:calc(100% - 16px);padding:0}.kplex-scene-tools.is-suspended{display:none}.kplex-plex.is-short-canvas .kplex-scene-tools{top:0;left:60px;right:auto}.kplex-find{display:flex;align-items:center;gap:4px;min-width:0}.kplex-footprints-panel{position:fixed;box-sizing:border-box;z-index:var(--layer-popover);display:flex;flex-direction:column;overflow:hidden;color:var(--text-normal);background:var(--background-primary);border:1px solid var(--background-modifier-border);border-radius:var(--radius-m);box-shadow:var(--shadow-s)}.kplex-footprints-heading{display:flex;align-items:center;gap:var(--size-4-2);padding:var(--size-4-2)}.kplex-footprints-heading strong{flex:1;min-width:0;overflow-wrap:anywhere}.kplex-footprints-heading>span,.kplex-footprints-empty{color:var(--text-muted);font-size:var(--font-ui-small)}.kplex-footprints-empty{padding:var(--size-4-3)}.kplex-footprints-list{max-height:320px;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.kplex-footprints-row{display:flex;align-items:center;gap:var(--size-4-2);width:100%;height:40px;margin:0;padding:0 var(--size-4-3);border:0;border-radius:0;box-shadow:none;color:var(--text-normal);background:transparent;text-align:start}.kplex-footprints-row>span:not(.kplex-icon){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-footprints-row>.kplex-icon{flex-shrink:0}.kplex-footprints-row small{color:var(--text-muted)}.kplex-footprints-row[aria-current=location]{background:var(--background-secondary)}.kplex-footprints-row:hover,.kplex-footprints-row:focus-visible{background:var(--background-modifier-hover)}.kplex-footprints-row[aria-disabled=true]{color:var(--text-muted)}.kplex-view-host .kplex-find-input{width:170px;min-width:0;height:28px;border:1px solid var(--kplex-line, var(--background-modifier-border))}.kplex-view-host .kplex-find-input,.kplex-view-host .kplex-find-input:focus,.kplex-view-host .kplex-zone-filter-input,.kplex-view-host .kplex-zone-filter-input:focus{color:var(--text-normal);background:var(--background-primary)}.kplex-view-host .kplex-find-input::placeholder,.kplex-view-host .kplex-zone-filter-input::placeholder{color:var(--text-muted)}.kplex-find-count{color:var(--kplex-muted, var(--text-muted));font-size:var(--font-smallest);white-space:nowrap;background:var(--kplex-control-bg, var(--interactive-normal));border-radius:7px;padding:3px 5px}.kplex-type-selection{position:absolute;left:8px;top:8px;z-index:45;display:flex;align-items:center;gap:8px;box-sizing:border-box;max-width:calc(100% - 56px);min-height:28px;padding:4px 8px;border:1px solid var(--background-modifier-border);border-radius:7px;color:var(--text-normal);background:var(--background-primary);font-size:var(--font-ui-small);pointer-events:none}.kplex-type-selection-query{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kplex-type-selection-count{flex:0 0 auto;white-space:nowrap;color:var(--text-muted)}.kplex-thought.is-keyboard-selected,.kplex-expanded-mini-thought.is-keyboard-selected,.kplex-thought.is-selected.is-keyboard-selected,.kplex-plex.is-section-expanded .kplex-thought.is-selected.is-keyboard-selected,.kplex-plex.is-finding .kplex-thought.is-highlighted,.kplex-expanded-mini-thought.is-find-match{outline:3px solid var(--interactive-accent);outline-offset:3px;box-shadow:0 0 0 3px var(--background-primary),0 0 0 6px var(--interactive-accent),0 0 28px 6px var(--interactive-accent)}.kplex-plex.is-finding .kplex-edge.is-highlighted .kplex-edge-visible,.kplex-expanded-edge.is-find-match{stroke:var(--interactive-accent)}.kplex-vault-stats{display:grid;gap:4px;margin:8px 0 14px}.kplex-vault-stats-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:baseline}.kplex-vault-stats-row.is-nested{padding-left:18px;color:var(--text-muted)}.kplex-vault-stats-value{font-variant-numeric:tabular-nums;text-align:right}.kplex-add-related-ontology-search .kplex-search{padding-right:36px}.kplex-fuzzy-disclosure{position:absolute;right:4px;top:4px;display:flex;align-items:center;justify-content:center;width:28px;height:26px;padding:0;background:transparent;box-shadow:none;color:var(--text-muted)}.kplex-fuzzy-disclosure:hover{color:var(--text-normal);background:var(--background-modifier-hover)}.kplex-embedded-web-page{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:var(--background-primary)}.kplex-embedded-web-frame{display:flex;flex:0 0 auto;border:0}.kplex-index-status.is-incomplete,.kplex-topbar button.kplex-index-status.is-incomplete{background:var(--color-orange);box-shadow:none;animation:none}.kplex-find.is-suspended{display:none}.kplex-history-list button.is-relationship-drop-target,.kplex-pinned-open.is-relationship-drop-target{color:var(--text-normal);border-color:var(--interactive-accent);background:var(--background-secondary-alt);box-shadow:0 0 0 1px var(--interactive-accent)}.kplex-density-axes{display:grid;gap:4px}.kplex-layout-controls{flex-wrap:nowrap;align-items:flex-end;max-width:calc(100% - 84px)}.kplex-layout-controls .kplex-layout-toggle{flex:0 0 auto}.kplex-layout-panel{display:flex;align-items:flex-end;gap:8px;min-width:0;max-height:var(--kplex-layout-panel-height);overflow-y:auto;overflow-x:hidden;touch-action:pan-y}.kplex-layout-panel>.kplex-density-axes{flex:0 0 auto}.kplex-layout-panel>.kplex-typography-group{flex:0 0 auto}.kplex-layout-controls.is-stacked{flex-direction:column-reverse;align-items:flex-start}.kplex-layout-controls.is-stacked .kplex-layout-panel{flex-direction:column;align-items:stretch;width:198px;max-width:100%}.kplex-layout-controls.is-stacked .kplex-layout-panel>.kplex-density-axes>.kplex-density-control{width:100%}.kplex-layout-controls.is-stacked .kplex-density-control{grid-template-rows:auto 12px}.kplex-layout-controls.is-stacked .kplex-density-heading{font-size:var(--font-ui-smaller, 12px);line-height:1.2;letter-spacing:normal;text-transform:none}.kplex-layout-controls.is-stacked .kplex-density-heading>span{min-width:0;white-space:normal;overflow-wrap:anywhere}.kplex-topbar button.is-on,.kplex-find button[aria-pressed=true],button.kplex-footprints-trigger[aria-expanded=true],button.kplex-layout-toggle[aria-pressed=true],button.kplex-zone-filter-button.is-on,.kplex-sidecar-controls button[aria-pressed=true]{color:var(--text-accent);border-color:var(--interactive-accent)}.kplex-topbar button:focus-visible,.kplex-find button:focus-visible,button.kplex-footprints-trigger:focus-visible,button.kplex-layout-toggle:focus-visible,button.kplex-zone-filter-button:focus-visible,.kplex-sidecar-controls button:focus-visible,button.kplex-sidecar-unfold-plex:focus-visible,.kplex-central-editor-toolbar button:focus-visible,.kplex-zoom-controls button:focus-visible,.kplex-wander-controls button:focus-visible{outline:2px solid var(--interactive-accent);outline-offset:2px}.kplex-filter-panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.kplex-filter-panel-header>span{font-size:var(--font-ui-medium);font-weight:var(--font-semibold)}.kplex-filter-panel-header>button{flex:0 0 auto}.kplex-drop-area-preview{position:absolute;z-index:19;box-sizing:border-box;pointer-events:none;border:2px solid var(--interactive-accent);border-radius:10px;background:transparent;box-shadow:0 0 0 1px var(--interactive-accent)}.kplex-drop-area-preview:before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--interactive-accent);opacity:.08;pointer-events:none}.kplex-center-drop-preview{z-index:27;border-radius:18px}.kplex-typography-controls{min-width:0;max-width:100%;display:flex;flex-direction:column;align-items:stretch;gap:4px}.kplex-typography-controls .kplex-density-control{width:100%}.kplex-wrap-label-control{min-height:36px;display:flex;flex-direction:row;align-items:center;gap:8px;cursor:pointer}.kplex-wrap-label-caption{display:block;width:100%;line-height:1.4;text-align:left;white-space:normal;overflow-wrap:anywhere}.kplex-wrap-label-control input{margin:0}.kplex-typography-group{width:126px;min-width:0;max-width:100%;display:flex;flex-direction:column;gap:4px}.kplex-typography-scope{display:flex;align-items:center;justify-content:space-between;gap:4px;color:var(--text-muted);font-size:9px;line-height:1.2}.kplex-typography-scope>span{min-width:0;overflow-wrap:anywhere}.kplex-layout-controls.is-stacked .kplex-typography-group{width:100%}.kplex-layout-controls.is-stacked .kplex-typography-scope{font-size:var(--font-ui-smaller, 12px)}.kplex-typography-scope button{padding:2px;height:auto;min-height:20px;background:transparent;box-shadow:none;color:var(--text-muted)}.kplex-action-setting .setting-item-control{flex-wrap:wrap;gap:6px}.kplex-action-setting button.setting-hotkey{border:0;box-shadow:none;height:auto;min-height:0}.kplex-action-setting button.setting-add-hotkey-button{border:0;box-shadow:none;background-color:transparent}.kplex-action-setting .clickable-icon.is-active{color:var(--interactive-accent)}.kplex-action-settings-header .setting-item-info{display:none}.kplex-action-settings-header .setting-item-control{width:100%;flex-direction:column;align-items:stretch;gap:10px}.kplex-action-settings-header .search-input-container{width:100%}.kplex-action-settings-header input{padding-right:64px}.kplex-action-settings-header [data-kplex-action-control=search-hotkey]{position:absolute;right:28px;top:3px;bottom:3px}.kplex-action-filters{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.kplex-action-filters .filter-pill{border-radius:16px;padding:3px 10px;background-color:transparent;border:1px solid var(--background-modifier-border);box-shadow:none}.kplex-action-filters .filter-pill.is-active{color:var(--text-on-accent);background-color:var(--interactive-accent)}.kplex-action-filtered{display:none}.kplex-action-feedback{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.kplex-action-status{color:var(--text-muted);font-size:var(--font-ui-small);overflow-wrap:anywhere}.kplex-action-scope,.kplex-action-publication-state{color:var(--text-muted);font-size:var(--font-ui-small);margin-top:4px;overflow-wrap:anywhere}.kplex-action-publication-state.kplex-action-diagnostic-warning{color:var(--text-warning)}.kplex-action-suggestion{display:flex;align-items:center;gap:12px;min-width:0}.kplex-action-suggestion .suggestion-content{flex:1 1 auto;min-width:0}.kplex-action-suggestion .suggestion-title,.kplex-action-suggestion .suggestion-note{white-space:normal;overflow-wrap:anywhere}.kplex-action-suggestion .suggestion-aux{flex:0 1 auto;min-width:0;max-width:45%}.kplex-action-suggestion .setting-command-hotkeys{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;min-width:0;max-width:100%}.kplex-action-suggestion .suggestion-hotkey{margin:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.kplex-keyboard-help{display:flex;flex-direction:column;max-height:80vh}.kplex-keyboard-help .modal-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}.kplex-keyboard-help-header{display:flex;flex-direction:column;flex:0 0 auto;gap:12px;padding-bottom:12px}.kplex-keyboard-help-header p{margin:0;color:var(--text-muted);font-size:var(--font-ui-small)}.kplex-keyboard-help-header .search-input-container{width:100%}.kplex-keyboard-help-results{flex:1 1 auto;min-height:0;overflow-y:auto}.kplex-keyboard-help-footer{flex:0 0 auto;padding-top:12px}.kplex-keyboard-help-footer .setting-item{padding:0;border-top:0}@media (max-width: 600px){.kplex-action-setting{flex-wrap:wrap;gap:8px}.kplex-action-setting .setting-item-control{justify-content:flex-start}}.kplex-shortcut-recording-description{color:var(--text-muted);font-size:var(--font-ui-small)}.kplex-shortcut-matching{gap:12px;padding-top:0;border-top:0}.kplex-shortcut-recording-area{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:88px;padding:24px 16px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-m);background-color:var(--background-secondary)}.kplex-shortcut-recording-area:focus{border-color:var(--interactive-accent);outline:2px solid var(--interactive-accent);outline-offset:2px}.kplex-shortcut-recording-hint{color:var(--text-muted);font-size:var(--font-ui-small);text-align:center}.kplex-shortcut-recorder .modal-button-container{flex-wrap:wrap}@media (max-width: 600px){.kplex-shortcut-matching{flex-wrap:wrap}.kplex-shortcut-matching .setting-item-control{justify-content:flex-start}.kplex-shortcut-matching select{max-width:100%}}.kplex-action-setting .kplex-action-local-conflict,.kplex-action-setting .kplex-action-global-warning,.kplex-action-setting .kplex-action-global-self{display:inline-flex;align-items:center}.kplex-action-setting .kplex-action-global-warning{color:var(--text-warning)}.kplex-action-setting .kplex-action-global-self{color:var(--text-muted)}.kplex-action-setting .kplex-action-local-conflict svg,.kplex-action-setting .kplex-action-global-warning svg,.kplex-action-setting .kplex-action-global-self svg{width:14px;height:14px}.kplex-action-diagnostics{display:flex;flex-direction:column;gap:4px;margin-top:4px;font-size:var(--font-ui-small);overflow-wrap:anywhere}.kplex-action-diagnostic-error{color:var(--text-error)}.kplex-action-diagnostic-warning{color:var(--text-warning)}.kplex-action-diagnostic-info{color:var(--text-muted)}.kplex-action-filters .kplex-action-conflicts-filter{color:var(--text-error);border-color:var(--text-error)}.kplex-action-filters .kplex-action-conflicts-filter.is-active{color:var(--text-on-accent);background-color:var(--background-modifier-error);border-color:var(--background-modifier-error)}body.is-mobile>.app-container>.mobile-navbar.kplex-mobile-navbar-docked{position:relative}body.is-mobile>.app-container>.mobile-navbar.kplex-mobile-navbar-hidden{display:none}.kplex-fullscreen-anchor{display:none}.workspace-drawer.kplex-fullscreen-drawer,.workspace-drawer-backdrop.kplex-fullscreen-drawer,.workspace-split.mod-root.is-sliding-sidebar.kplex-fullscreen-drawer,.workspace-split.mod-root>.workspace-drawer-backdrop.kplex-fullscreen-drawer{z-index:var(--layer-sidedock, 10)}.kplex-fullscreen-overlay{position:fixed;inset:0;z-index:calc(var(--layer-popover, 30) - 1);overflow:hidden;background-color:var(--background-primary)}.kplex-fullscreen-overlay.kplex-windows-fullscreen .kplex-topbar{padding-right:calc(10px + var(--kplex-window-controls-inset, 0px))}.kplex-fullscreen-overlay.kplex-windows-fullscreen .kplex-app.is-zen .kplex-central-editor-overlay.is-maximized .kplex-central-editor-toolbar{right:calc(1px + var(--kplex-window-controls-inset, 0px))}.kplex-fullscreen-overlay>.kplex-view-host{padding:0}.kplex-app.is-zen>.kplex-main-column{grid-template-rows:minmax(0,1fr)}.kplex-app.is-zen>.kplex-main-column>.kplex-top-stack,.kplex-app.is-zen>.kplex-main-column>.kplex-history-bar{display:none}.kplex-support-report-modal{width:640px;max-width:calc(100vw - 32px)}.kplex-empty-support{position:absolute;top:12px;right:12px}.kplex-support-report-links{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px}.kplex-support-report-preview{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:180px;max-height:40vh;font-family:var(--font-monospace);font-size:var(--font-ui-small);resize:vertical}.kplex-layout-controls.kplex-wander-controls{z-index:35;bottom:12px;left:50%;transform:translate(-50%);max-width:calc(100% - 24px)}.kplex-color-modal{width:min(740px,94vw)}.kplex-color-source-editor{display:grid;gap:var(--size-4-3);margin-block:var(--size-4-3)}.kplex-color-source-editor label,.kplex-literal-controls label,.kplex-literal-opacity label{display:grid;gap:var(--size-4-1);min-width:0}.kplex-color-source-editor input[type=text]{width:100%}.kplex-literal-editor{border:1px solid var(--background-modifier-border);border-radius:var(--radius-m);margin:0;padding:var(--size-4-3);min-width:0}.kplex-literal-controls{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:end;gap:var(--size-4-2)}.kplex-color-swatch{background:var(--kplex-color-swatch);width:28px;height:28px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-s)}.kplex-literal-opacity{margin-top:var(--size-4-3)}.kplex-literal-opacity input{width:100%}.kplex-color-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--size-4-3);margin-top:var(--size-4-3)}.kplex-color-preview{border:1px solid var(--background-modifier-border);border-radius:var(--radius-m);padding:var(--size-4-2);min-width:0}.kplex-color-preview-heading{display:flex;align-items:baseline;justify-content:space-between;gap:var(--size-4-2)}.kplex-color-preview-canvas{position:relative;height:140px;overflow:hidden;border-radius:var(--radius-s);margin-top:var(--size-4-2);background:var(--_kplex-preview-base)}.kplex-color-preview-canvas svg{position:absolute;inset:0;width:100%;height:100%}.kplex-color-preview-canvas:before{content:"";position:absolute;inset:0;pointer-events:none;background:var(--_kplex-preview-canvas)}.kplex-color-preview-node{position:absolute;left:35%;top:27%;width:60%;min-height:56px;padding:var(--size-4-2);border:1px solid var(--_kplex-preview-node-border);border-radius:var(--radius-m);background:var(--_kplex-preview-node-fill);color:var(--_kplex-preview-node-text);font-size:var(--font-ui-small)}.kplex-color-preview-gate{position:absolute;width:10px;height:10px;left:-6px;top:calc(50% - 5px);border:1px solid var(--_kplex-preview-gate-stroke);border-radius:50%;background:var(--_kplex-preview-gate-fill)}.kplex-color-preview-gate.is-empty{left:auto;right:-6px;background:transparent}.kplex-color-preview-label{position:absolute;left:4%;bottom:8%;font-size:var(--font-ui-smaller);padding:2px 4px;border-radius:var(--radius-s);color:var(--_kplex-preview-label-text);background:var(--_kplex-preview-label-fill)}.kplex-color-preview-contrast{margin-top:var(--size-4-2);color:var(--text-muted);font-size:var(--font-ui-smaller)}@media (max-width: 500px){.kplex-color-previews{grid-template-columns:minmax(0,1fr)}}.kplex-color-source-editor select{width:100%;max-width:100%;min-width:0}.kplex-color-source-editor button{white-space:normal;overflow-wrap:anywhere;max-width:100%}.kplex-lens-fields{border:0;margin:0;padding:0;min-width:0}.kplex-palette-controls,.kplex-palette-row{display:flex;align-items:center;gap:.5em;flex-wrap:wrap}.kplex-palette-controls input{flex:1;min-width:8em}.kplex-palette-row{padding:var(--size-4-2) 0;border-bottom:var(--border-width) solid var(--background-modifier-border)}.kplex-palette-name{flex:1;min-width:8em;overflow-wrap:anywhere}.kplex-compass-background{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.kplex-compass-intensity{max-width:26em}@media (forced-colors: active){.kplex-compass-background,.kplex-color-preview-compass{display:none}}.kplex-color-strips{display:flex;flex-direction:column;gap:3px;min-width:0}.kplex-color-strip{display:flex;align-items:center;gap:var(--size-4-2)}.kplex-color-strip-label{color:var(--text-muted);font-size:var(--font-ui-smaller);min-width:3.5em}.kplex-color-strip-cells{display:flex;gap:1px;min-width:0}.kplex-color-strip-cells .kplex-color-swatch{display:inline-flex;align-items:center;justify-content:center;width:28px;height:16px;border-radius:0;flex-shrink:1}.setting-item-control>.kplex-color-strips{margin-inline-end:var(--size-4-2)}.kplex-style-row>.kplex-color-strips{margin-inline-start:auto}.kplex-color-suggestion{display:flex;align-items:center;gap:var(--size-4-3)}.kplex-color-suggestion>.suggestion-content{flex:1;min-width:0;overflow-wrap:anywhere}.kplex-color-suggestion>.kplex-color-strips{flex-shrink:0}.kplex-color-suggestion .kplex-color-strip-label{min-width:0}.kplex-color-suggestion .kplex-color-strip-cells .kplex-color-swatch{width:18px;height:12px}.modal.kplex-scroll-editor-modal{display:flex;flex-direction:column;max-height:90vh}.modal.kplex-scroll-editor-modal .modal-content{display:flex;flex-direction:column;min-height:0;overflow:hidden}.kplex-style-editor-body,.kplex-publish-sections{flex:1 1 auto;min-height:0;overflow-y:auto;padding-inline-end:var(--size-4-2);padding-bottom:var(--size-4-3)}.kplex-style-editor-actions{flex:0 0 auto;padding-top:var(--size-4-2);background:var(--modal-background, var(--background-primary))}.kplex-style-editor-actions .setting-item{border-top:var(--border-width) solid var(--background-modifier-border);padding-bottom:0}.kplex-scroll-editor-modal .setting-item-control{min-width:0}.kplex-scroll-editor-modal .setting-item-control select{min-width:0;max-width:100%}.kplex-modal-action-row button{display:inline-flex;align-items:center;gap:var(--size-4-1)}.kplex-modal-action-row .setting-item-info{display:none}.kplex-modal-action-row .setting-item-control{flex:1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.modal button.kplex-icon-action{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;min-width:36px;height:36px;padding:8px;font-size:0}.modal button.kplex-icon-action .kplex-lucide{width:18px;height:18px;flex:0 0 18px}.modal.kplex-facet-preset-editor{width:min(1120px,94vw);max-width:94vw;height:min(900px,90vh)}.modal.kplex-facet-preset-editor .modal-content{flex:1 1 auto}.kplex-facet-preset-editor .setting-item-control{min-width:0}.kplex-facet-preset-editor .setting-item-control>input[type=text]{width:min(420px,100%)}.kplex-facet-preset-editor .setting-item-control select{max-width:100%}.kplex-theme-setting .setting-item-control{flex-wrap:wrap;gap:var(--size-4-2)}.kplex-theme-setting select{max-width:min(260px,100%)}.kplex-group-count{position:absolute;right:-10px;bottom:-13px;color:var(--text-muted);font-size:10px;line-height:1;pointer-events:none}.kplex-thought.is-relation-group{cursor:pointer}.kplex-view-error{position:absolute;top:var(--size-4-3);left:var(--size-4-3);z-index:40;display:flex;align-items:center;gap:var(--size-4-2);padding:var(--size-4-2);border:1px solid var(--background-modifier-border);border-radius:var(--radius-s);background:var(--background-primary);color:var(--text-normal);font-size:var(--font-ui-small)}.kplex-view-decorations{position:absolute;left:0;top:0;width:1px;height:1px;overflow:visible;pointer-events:none}.kplex-view-region rect,.kplex-view-region>path{fill:var(--background-secondary);fill-opacity:.24;stroke:var(--background-modifier-border);stroke-width:1}.kplex-area-frame.is-shaped-area{border:none}.kplex-area-shape{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.kplex-area-shape path{fill:none;stroke:var(--background-modifier-border-focus);stroke-width:1;stroke-dasharray:4 4}.kplex-area-frame.is-active .kplex-area-shape path{stroke:var(--interactive-accent);stroke-dasharray:none}.kplex-drop-area-shape{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:20}.kplex-drop-area-shape path{fill:var(--interactive-accent);fill-opacity:.15;stroke:var(--interactive-accent);stroke-width:2}.kplex-facet-anchor-preview{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr auto;gap:12px;padding:16px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-m)}.kplex-facet-anchor-focus{padding:6px;border:1px solid var(--interactive-accent);border-radius:var(--radius-s);text-align:center}.kplex-facet-anchor-categories{grid-area:2 / 2;display:flex;gap:6px}.kplex-facet-anchor-categories span{padding:6px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-s)}.kplex-facet-anchor-preview.is-vertical .kplex-facet-anchor-categories{flex-direction:column}.kplex-facet-anchor-preview.is-anchor-top .kplex-facet-anchor-focus{grid-area:1 / 2}.kplex-facet-anchor-preview.is-anchor-bottom .kplex-facet-anchor-focus{grid-area:3 / 2}.kplex-facet-anchor-preview.is-anchor-left .kplex-facet-anchor-focus{grid-area:2 / 1;align-self:center}.kplex-facet-anchor-preview.is-anchor-right .kplex-facet-anchor-focus{grid-area:2 / 3;align-self:center}.kplex-markdown-help-modal{width:min(760px,94vw)}.kplex-markdown-help-content{overflow-wrap:break-word}.kplex-markdown-help-content pre{overflow-x:auto}.kplex-facet-help-settings textarea{width:100%;min-height:180px}.kplex-facet-help-source{flex-direction:column;align-items:stretch;gap:12px}.kplex-facet-help-source .setting-item-info{margin-right:0}.kplex-facet-help-source .setting-item-control{width:100%}.kplex-ontology-description-setting{flex-direction:column;align-items:stretch;gap:var(--size-4-2)}.kplex-ontology-description-setting .setting-item-info{margin-right:0}.kplex-ontology-description-setting .setting-item-control{width:100%}.kplex-ontology-description-setting textarea{width:100%;min-width:0;resize:vertical}.kplex-preset-help-preview{padding:12px}.kplex-view-region.is-water rect{fill:var(--color-blue);fill-opacity:.06}.kplex-view-region.is-wood rect{fill:var(--color-green);fill-opacity:.06}.kplex-view-region.is-fire rect{fill:var(--color-red);fill-opacity:.06}.kplex-view-region.is-earth rect{fill:var(--color-yellow);fill-opacity:.06}.kplex-view-region.is-metal rect{fill:var(--color-purple);fill-opacity:.06}.kplex-view-region text{fill:var(--text-normal);font-size:16px}.kplex-view-region .kplex-view-region-count{fill:var(--text-muted);font-size:11px}.kplex-view-guide{stroke:var(--text-faint);stroke-width:1;stroke-dasharray:5 7;opacity:.5}.kplex-view-guide.is-generating{stroke:var(--text-muted);stroke-dasharray:none}.kplex-view-guide.is-regulating{stroke:var(--text-muted);stroke-dasharray:3 5}.kplex-view-guide.is-no-line{stroke:none}.kplex-view-guide-caption rect{fill:var(--background-primary);stroke:var(--background-modifier-border);stroke-width:1}.kplex-view-guide-caption text{fill:var(--text-muted)}.kplex-view-region .kplex-view-region-description{fill:var(--text-muted);font-size:12px}.kplex-view-heading{position:absolute;z-index:2;top:12px;left:50%;transform:translate(-50%);max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:var(--font-ui-small);pointer-events:none}.kplex-view-status{position:absolute;z-index:3;top:38px;left:12px;max-width:70%;color:var(--text-muted);font-size:var(--font-ui-small)}.kplex-node-badge{position:absolute;display:flex;align-items:center;padding:3px 8px;border-radius:var(--radius-s);border:1px solid var(--background-modifier-border);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:var(--font-semibold);pointer-events:none}.kplex-node-badge>span{overflow:hidden;text-overflow:ellipsis}.modal.kplex-portable-package-modal{width:min(1100px,94vw);max-width:94vw}.kplex-package-intro{display:flex;align-items:flex-start;gap:12px}.kplex-package-intro p{flex:1;margin-top:0}.kplex-package-source{width:100%;min-height:140px;height:clamp(140px,24vh,260px);max-height:45vh;font-family:var(--font-monospace);resize:vertical}.kplex-package-json{white-space:pre-wrap;overflow-wrap:anywhere}.kplex-number-value{min-width:3em;text-align:end;font-variant-numeric:tabular-nums;color:var(--text-muted)}.kplex-number-setting .slider-value{display:none}.kplex-literal-opacity .setting-item{padding:0;border:0}.kplex-ontology-description{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:var(--font-ui-smaller)}.kplex-ontology-results .kplex-search-result{display:grid;gap:2px}.kplex-ontology-results .kplex-search-result small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre;text-align:left}.setting-item.kplex-periodic-pin-section{display:block;padding-block:var(--size-4-5)}.kplex-periodic-pin-section>.setting-item-info{width:100%;margin:0 0 var(--size-4-3);text-align:start}.kplex-periodic-pin-section>.setting-item-info>.setting-item-name{color:var(--text-normal);font-size:var(--font-ui-medium);font-weight:var(--font-semibold);white-space:normal;overflow:visible;text-overflow:clip}.kplex-periodic-pin-section>.setting-item-control{display:block;width:100%;min-width:0;padding:0;text-align:start}.kplex-periodic-pin-settings{width:100%;min-width:0}.kplex-periodic-pin-section .kplex-periodic-pin-settings .setting-item{align-items:center;flex-wrap:wrap;gap:var(--size-4-2) var(--size-4-4);padding-block:var(--size-4-3);padding-inline:0;border:0}.kplex-periodic-pin-section .kplex-periodic-pin-settings .setting-item:first-child{padding-top:0}.kplex-periodic-pin-section .kplex-periodic-pin-settings .setting-item:before{display:none}.kplex-periodic-pin-section .kplex-periodic-pin-settings :where(.setting-item:not(.kplex-form-field))>.setting-item-info{flex:1 1 12rem;min-width:0;margin:0;text-align:start}.kplex-periodic-pin-section .kplex-periodic-pin-settings :where(.setting-item:not(.kplex-form-field))>.setting-item-control{flex:1 1 16rem;min-width:0;padding:0;text-align:start}.kplex-periodic-pin-section .kplex-periodic-pin-toggle .setting-item-control{flex:0 0 auto}.kplex-periodic-pin-settings input[type=text],.kplex-periodic-pin-settings select{width:100%;min-width:0;max-width:100%}.kplex-periodic-pin-preview{margin-top:var(--size-4-2);padding:var(--size-4-3);border-radius:var(--radius-s);background:var(--background-secondary);color:var(--text-muted);line-height:1.5;text-align:start;white-space:normal;overflow-wrap:anywhere}.kplex-periodic-pin-preview>div{margin-top:var(--size-4-1)}.kplex-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--background-modifier-border);margin-bottom:16px;padding-bottom:8px}.kplex-tabs>[role=tab]{flex:1 1 140px;box-shadow:none}.kplex-tabs>[aria-selected=true]{color:var(--text-accent);background:var(--background-modifier-active-hover);outline:1px solid var(--interactive-accent)}.kplex-creation-types{min-width:0}.kplex-add-related-footer>.kplex-creation-types+.kplex-creation-completion{margin-top:var(--kplex-form-gap)}.kplex-creation-types>.kplex-tabs{gap:4px;margin-bottom:0;padding-bottom:0;border-bottom:0}.kplex-creation-types>.kplex-tabs>[role=tab]{flex:1 1 90px;min-width:0;min-height:var(--input-height);height:auto;white-space:normal;overflow-wrap:anywhere;border-end-start-radius:0;border-end-end-radius:0}.kplex-creation-type-panel{min-width:0;padding:16px;border:1px solid var(--background-modifier-border);border-radius:0 0 var(--radius-m) var(--radius-m)}.kplex-creation-type-panel>.kplex-form-actions{margin-bottom:0}.kplex-create-folder-note-modal [role=tabpanel][hidden]{display:none}.kplex-ownership-preview{padding:12px 16px;margin-bottom:12px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-m)}.kplex-ownership-preview.is-after{border-color:var(--interactive-accent)}.kplex-ownership-preview h4{margin:0 0 8px;font-size:var(--font-ui-small);color:var(--text-muted)}.kplex-ownership-preview p{margin:0;overflow-wrap:anywhere}.kplex-import-files input{width:100%}.kplex-modal{--kplex-form-gap: 16px;--kplex-control-gap: 8px;--kplex-control-height: var(--input-height, 30px);font-family:var(--font-interface);font-size:var(--font-ui-medium)}.kplex-modal .modal-content{font-family:var(--font-interface);font-size:var(--font-ui-medium)}.modal.kplex-modal .modal-content .setting-item{padding:0;margin-block:0 var(--kplex-form-gap);border:0;gap:var(--kplex-control-gap)}.modal.kplex-modal .setting-item-name,.kplex-modal .kplex-form-option>label{font-size:var(--font-ui-medium);font-weight:var(--font-normal)}.modal.kplex-modal .setting-item-description,.kplex-modal .kplex-form-status{font-family:var(--font-interface);font-size:var(--font-ui-small);line-height:1.5}.kplex-modal .setting-item-control{min-width:0;gap:var(--kplex-control-gap)}.kplex-form-field{display:flex;flex-direction:column;align-items:stretch;gap:8px}.kplex-form-field>.setting-item-info{margin:0;width:100%;flex:0 0 auto}.kplex-form-field>.setting-item-control{width:100%;display:flex;flex-wrap:wrap;min-width:0;flex:0 0 auto}.kplex-form-field>.setting-item-control>input[type=text],.kplex-form-field>.setting-item-control>select,.kplex-form-field>.setting-item-control>textarea,.kplex-form-field>.setting-item-control>div{width:100%;min-width:0;flex:1 1 100%}.kplex-form-field textarea{width:100%;min-width:0;resize:vertical}.kplex-modal .kplex-form-field>.setting-item-control>select{max-width:none}.kplex-modal .kplex-predicate-expression-field textarea,.kplex-modal textarea.kplex-package-source,.kplex-modal textarea.kplex-support-report-preview{font-family:var(--font-monospace)}.kplex-form-option{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,1fr);align-items:center;gap:8px 16px;width:100%;margin-block:16px;font-family:var(--font-interface);font-size:var(--font-ui-medium)}.kplex-form-option>label{margin:0;color:var(--text-normal);text-align:start}.kplex-form-option>select{width:100%;max-width:none;margin:0}.kplex-modal .kplex-creation-completion-row{margin:0;padding:0}.kplex-modal .kplex-add-related-footer{display:block;width:100%;margin:0;padding:0}.kplex-modal .kplex-add-related-form{gap:var(--kplex-form-gap)}.kplex-modal .kplex-add-related-form .kplex-form-option{margin:0}.kplex-modal .kplex-add-related-compose-row{grid-template-columns:minmax(0,1fr)}.kplex-modal .kplex-add-related-action-area{justify-self:end}.kplex-modal .kplex-create-folder-row{display:flex;flex-direction:column;align-items:stretch;gap:8px}.kplex-modal .kplex-create-folder-row .kplex-folder-path-input{width:100%;max-width:none}.kplex-react-field>label{font-size:var(--font-ui-medium)}.kplex-react-field>input,.kplex-react-field>.kplex-search-shell{width:100%;min-width:0;max-width:none}.modal.kplex-modal .modal-content .kplex-form-actions,.modal.kplex-modal .modal-content .kplex-modal-action-row{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-block:20px 0;padding-block:16px 0;border-top:var(--border-width) solid var(--background-modifier-border)}.kplex-form-actions>.setting-item-info{margin:0;min-width:0;flex:1 1 180px}.kplex-form-actions>.setting-item-info>.setting-item-name:empty,.kplex-form-actions>.setting-item-info>.setting-item-description:empty{display:none}.kplex-form-actions>.setting-item-control{flex:1 1 auto;margin-inline-start:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.kplex-modal button.kplex-icon-action,.kplex-modal .kplex-add-related-type-button,.kplex-modal .kplex-edit-selected-ontology{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:var(--kplex-control-height);width:var(--kplex-control-height);height:var(--kplex-control-height);padding:8px;font-size:0}.kplex-modal .kplex-icon-action svg{width:18px;height:18px;flex:0 0 18px}.kplex-icon-action-label{display:none}.kplex-modal .kplex-add-related-action-area,.kplex-modal .kplex-add-related-create-actions{height:auto}.kplex-modal .kplex-add-related-create-actions{align-items:center}.kplex-relationship-field-control{width:100%;display:flex;align-items:center;gap:8px}.kplex-relationship-field-control>.kplex-add-related-role-select{flex:0 1 160px;min-width:90px}.kplex-relationship-field-control>.kplex-add-related-ontology-search{flex:1 1 160px;min-width:0;max-width:none}.kplex-import-modal .kplex-relationship-field-control{margin-block:0 16px}.kplex-native-combobox{position:relative}.kplex-native-combobox>input[type=text]{height:100%;width:100%;min-width:0;box-sizing:border-box;padding-block:0;padding-inline:24px 0;font:inherit;color:inherit;background:transparent;border:0;box-shadow:none}.kplex-native-combobox>input[type=text]:focus{box-shadow:none}.kplex-template-picker>input[type=text]{padding-inline:0 24px}.kplex-drawing-template>.kplex-template-picker{flex:0 0 auto}.kplex-native-combobox:focus-within{box-shadow:0 0 0 3px var(--background-modifier-border-focus)}.kplex-native-combobox .kplex-search-icon{top:50%;transform:translateY(-50%)}.kplex-native-combobox>.kplex-fuzzy-disclosure{inset-block:0;inset-inline-end:0;width:var(--dropdown-padding-end, 2.4em);height:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}@media (max-width: 480px){.kplex-form-option{grid-template-columns:minmax(0,1fr)}.kplex-relationship-field-control{flex-wrap:wrap}.kplex-relationship-field-control>.kplex-add-related-role-select{flex-basis:100%}}@media (pointer: coarse){.kplex-modal{--kplex-control-height: 44px}}.kplex-edge-source-actions{flex-wrap:wrap}.kplex-edge-source-actions .kplex-edge-source-action{max-width:100%;height:auto;white-space:normal;overflow-wrap:anywhere;text-align:start}.kplex-edge-source-actions .kplex-edge-source-action svg{flex:0 0 14px}.kplex-relationship-selection{width:100%;min-width:0}.kplex-relationship-selection-detail{margin-top:var(--size-4-2);white-space:pre-line;overflow-wrap:anywhere}.modal.kplex-modal .kplex-relationship-selection-detail{font-size:var(--font-ui-smaller, var(--font-ui-small))}.modal.kplex-modal .kplex-form-select-row{display:grid;grid-template-columns:fit-content(calc(40% - var(--kplex-control-gap))) minmax(0,1fr);align-items:center}.kplex-form-select-row>.setting-item-info{margin:0;max-width:200px;min-width:0;overflow-wrap:anywhere}.kplex-form-select-row>.setting-item-control{width:100%}.kplex-form-select-row>.setting-item-control>select{width:100%;max-width:none}.kplex-form-select-row>.setting-item-description{grid-column:1 / -1}.kplex-form-select-row>.setting-item-description:empty{display:none}.kplex-modal button.kplex-icon-action{gap:0}@media (max-width: 420px){.modal.kplex-modal .kplex-form-select-row{grid-template-columns:minmax(0,1fr)}.kplex-form-select-row>.setting-item-info{max-width:none}}.kplex-style-color-row>.setting-item-control{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--size-4-2)}.kplex-style-color-row button{flex:1 1 0;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.kplex-style-row .kplex-number-value{flex:0 0 7.5em;min-width:0;white-space:nowrap}.kplex-style-row .setting-item-control>input[type=range]{flex:1 1 0;min-width:0}.kplex-form-options .setting-item:not(.kplex-form-field)>.setting-item-info{flex:1 1 50%;min-width:0;margin:0}.kplex-form-options .setting-item:not(.kplex-form-field)>.setting-item-control{flex:1 1 50%;min-width:0}.kplex-form-options .setting-item-control>select{width:100%;max-width:none}.kplex-form-disclosure{margin-block-end:var(--kplex-form-gap, var(--size-4-4))}@media (max-width: 420px){.kplex-form-options .setting-item:not(.kplex-form-field){flex-wrap:wrap}.kplex-form-options .setting-item:not(.kplex-form-field)>.setting-item-info,.kplex-form-options .setting-item:not(.kplex-form-field)>.setting-item-control{flex-basis:100%}}.kplex-modal .kplex-form-inline{display:grid;grid-template-columns:minmax(0,5em) minmax(0,1fr);align-items:center;gap:var(--kplex-control-gap);min-width:0;width:100%}.kplex-form-inline>label{margin:0;overflow-wrap:anywhere}.kplex-modal .kplex-form-inline>:not(label):not(.kplex-field-actions){min-width:0;width:100%;max-width:none;box-sizing:border-box}.kplex-modal .kplex-form-inline.has-actions{grid-template-columns:minmax(0,5em) minmax(0,1fr) auto}.kplex-field-actions{display:flex;align-items:center;justify-content:flex-end;min-width:0;gap:var(--kplex-control-gap)}.kplex-field-actions .kplex-add-related-action-area{min-width:0;height:auto}.kplex-creation-types{container-type:inline-size}.kplex-creation-type-panel{padding:12px}.kplex-creation-type-actions{display:flex;justify-content:flex-end}.kplex-creation-status{margin-top:8px;color:var(--text-muted);font-size:var(--font-ui-small);overflow-wrap:anywhere}.kplex-creation-status .kplex-add-related-create-hint{margin-top:0}@container (max-width: 360px){.kplex-modal .kplex-drawing-template.has-actions{grid-template-columns:minmax(0,1fr) auto}.kplex-drawing-template.has-actions>label{grid-column:1 / -1}.kplex-drawing-template.has-actions>.kplex-template-picker{grid-column:1}.kplex-drawing-template.has-actions>.kplex-field-actions{grid-column:2}}.kplex-publish-modal{width:min(760px,94vw)}.modal.kplex-publish-modal .modal-content>.kplex-form-actions{flex:0 0 auto;margin-block-start:var(--size-4-2);padding-block-start:var(--size-4-2)}.kplex-publish-output-actions[hidden]{display:none}.kplex-publish-progress{display:block;width:min(14rem,100%);margin-block-start:var(--size-4-1);accent-color:var(--interactive-accent)}.kplex-publish-rules .setting-item-description code{display:block;margin-block-start:var(--size-4-1)}.kplex-publish-step{min-width:0;overflow-wrap:anywhere}.kplex-publish-step-heading{flex:0 0 auto;padding-block-end:var(--size-4-3)}.kplex-publish-step-heading>:is(h2,p){margin-block:0}.kplex-publish-step-heading>h2{margin-block:var(--size-4-1)}.kplex-publish-step-heading>p{color:var(--text-muted);overflow-wrap:anywhere}.kplex-publish-step-count{font-size:var(--font-ui-small)}.kplex-publish-step>h3,.kplex-publish-rules>h3,.kplex-publish-properties>h3{margin-block:12px 4px}.kplex-publish-choice.dropdown{width:100%;min-width:0;max-width:none}.kplex-publish-choice>input[type=text]{padding-inline:0 var(--dropdown-padding-end, 2.4em)}.kplex-publish-step .kplex-form-select-row>.setting-item-control>div{flex:1 1 100%;min-width:0}.kplex-publish-setup-actions>.setting-item-control{flex-wrap:wrap}.kplex-publish-selected{margin-block-end:var(--kplex-form-gap);margin-inline-start:var(--size-4-3);padding:var(--size-4-2) var(--size-4-3);border:var(--border-width) solid var(--background-modifier-border);border-radius:var(--radius-s)}.modal.kplex-publish-modal .kplex-publish-selected>.setting-item{margin-block-end:0}.modal.kplex-publish-modal .kplex-publish-selected>.setting-item+.setting-item{margin-block-start:var(--size-4-2);padding-block-start:var(--size-4-2);border-block-start:var(--border-width) solid var(--background-modifier-border)}.kplex-publish-options{border-block-start:var(--border-width) solid var(--background-modifier-border);padding-block-start:var(--kplex-form-gap)}.kplex-publish-list{margin-block:8px}.kplex-publish-list summary{cursor:pointer}.kplex-publish-list li{overflow-wrap:anywhere}.hover-popover.kplex-publish-hover{z-index:max(var(--layer-popover, 30),calc(var(--layer-modal, 50) + 1))}.modal.kplex-publish-modal .modal-content [hidden]{display:none}}.kplex-publication-demo{margin:0;background:#f5f7fa}.kplex-publication-licenses{padding:.5rem 1rem;color:CanvasText;background:Canvas;font:.875rem/1.5 system-ui,sans-serif}.kplex-publication-licenses pre{white-space:pre-wrap;overflow-wrap:anywhere}.kplex-publication{--background-primary: #f5f7fa;--background-modifier-border: #a7b5bf;--text-normal: #152934;--text-muted: #47606d;--interactive-accent: #207364;--kplex-publication-panel: #fff;--kplex-publication-link: #6f868c;--kplex-publication-card: #fff;--kplex-publication-center: #164f47;--kplex-publication-center-text: #fff;--kplex-publication-control-size: 2rem;--shadow-s: 0 2px 6px #1e374120;display:grid;grid-template-rows:auto minmax(18rem,1fr) auto;min-height:29rem;min-width:0;color:var(--text-normal);background:var(--background-primary);font:1rem/1.5 system-ui,sans-serif}.kplex-publication-demo .kplex-publication{min-height:100vh;min-height:100dvh}.kplex-publication-header,.kplex-publication-note{background:var(--kplex-publication-panel);padding:.8rem clamp(1rem,4vw,3rem)}.kplex-publication-header{display:flex;align-items:center;justify-content:space-between;gap:.65rem 1rem;flex-wrap:wrap;border-bottom:1px solid var(--background-modifier-border)}.kplex-publication-header h1,.kplex-publication-note h2{margin:0;font-size:1.05rem}.kplex-publication-header span{font-size:.85rem;color:var(--text-muted)}.kplex-publication-heading{display:flex;align-items:center;gap:.375rem;min-width:0}.kplex-publication-heading h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-publication-header .kplex-publication-brand{display:grid;place-items:center;flex:none;width:var(--kplex-publication-control-size);height:var(--kplex-publication-control-size);padding:0;border-radius:.4rem;background:transparent;border:0;color:var(--interactive-accent);font:inherit;cursor:pointer}.kplex-publication-brand:is(:hover,[aria-expanded=true]){background:var(--background-primary)}.kplex-publication-license-dialog{box-sizing:border-box;width:min(52rem,calc(100% - 2rem));max-height:85dvh;padding:1rem;border:1px solid var(--background-modifier-border);border-radius:.65rem;background:var(--kplex-publication-panel);color:var(--text-normal);box-shadow:var(--shadow-s)}.kplex-publication-license-dialog::backdrop{background:#0008}.kplex-publication-license-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.kplex-publication-license-heading h2{margin:0;font-size:1.25rem}.kplex-publication-license-heading button{padding:.35rem .65rem;border:1px solid var(--background-modifier-border);border-radius:.45rem;background:var(--background-primary);color:inherit;font:inherit;cursor:pointer}.kplex-publication-license-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.kplex-publication-controls{display:flex;flex-wrap:wrap;gap:.25rem}.kplex-publication .kplex-publication-icon-control{display:inline-grid;place-items:center;flex:none;box-sizing:border-box;width:var(--kplex-publication-control-size);min-width:0;height:var(--kplex-publication-control-size);min-height:0;padding:0;border:1px solid var(--background-modifier-border);border-radius:.45rem;background:var(--kplex-publication-panel);color:inherit;font:inherit;cursor:pointer;touch-action:manipulation}.kplex-publication-icon-control:disabled{opacity:.45;cursor:default}.kplex-publication .kplex-publication-icon-control:is([aria-pressed=true],[aria-expanded=true]){border-color:var(--interactive-accent);color:var(--interactive-accent)}.kplex-publication-icon-control svg{pointer-events:none}.kplex-publication :focus-visible{outline:2px solid var(--interactive-accent);outline-offset:3px}.kplex-publication-viewport{overflow:hidden;position:relative;color:var(--text-muted);background-image:radial-gradient(var(--background-modifier-border) .7px,transparent .7px);background-size:20px 20px;touch-action:none;user-select:none;cursor:grab}.kplex-publication-viewport:active{cursor:grabbing}.kplex-publication .kplex-camera{left:50%;top:50%}.kplex-publication-exits{position:absolute;inset:0;pointer-events:none}.kplex-publication .kplex-publication-strip-scroll{touch-action:pan-y;scrollbar-color:var(--background-modifier-border) transparent}.kplex-publication .kplex-publication-strip-scroll:focus-visible{outline-offset:-2px}.kplex-publication .kplex-thought{background:var(--kplex-publication-card);color:var(--text-normal);border:1px solid var(--background-modifier-border);border-radius:12px;font-weight:600}.kplex-publication .kplex-role-center{background:var(--kplex-publication-center);color:var(--kplex-publication-center-text);border-color:transparent;border-radius:18px}.kplex-publication .kplex-gate{pointer-events:auto}.kplex-publication .kplex-edge.is-highlighted .kplex-edge-visible{stroke-width:2.5px}.kplex-publication-branch{position:absolute;z-index:15;width:21px;height:21px;padding:0;border:1px solid var(--background-modifier-border);border-radius:50%;background:var(--kplex-publication-panel);color:var(--text-normal);font:14px/1 system-ui,sans-serif;cursor:pointer}.kplex-publication-note{border-top:1px solid var(--background-modifier-border)}.kplex-publication-note p{color:var(--text-muted);margin:.3rem 0 0;max-width:70ch}.kplex-publication-opening{margin:1.2rem;font:1rem/1.5 system-ui,sans-serif}.kplex-publication-production{--background-primary: var(--kplex-published-light-background-primary, #f5f7fa);--background-modifier-border: var(--kplex-published-light-background-modifier-border, #a7b5bf);--text-normal: var(--kplex-published-light-text-normal, #152934);--text-muted: var(--kplex-published-light-text-muted, #47606d);--interactive-accent: var(--kplex-published-light-interactive-accent, #207364);--kplex-publication-panel: var(--kplex-published-light-kplex-publication-panel, #fff);--kplex-publication-link: var(--kplex-published-light-kplex-publication-link, #6f868c);--background-primary-alt: var(--kplex-publication-panel);--background-secondary: var(--kplex-publication-panel);--background-secondary-alt: var(--background-primary);--background-modifier-hover: var(--background-primary);--text-accent: var(--interactive-accent);--text-faint: var(--text-muted);--input-height: var(--kplex-publication-control-size);position:relative;overflow-x:clip;grid-template-rows:auto minmax(24rem,1fr) auto}.kplex-publication-demo .kplex-publication-production{height:100vh;height:100dvh;grid-template-rows:auto minmax(0,1fr) auto}.kplex-publication-production .kplex-publication-header{container-type:inline-size;justify-content:flex-start;gap:.375rem .625rem;padding:.4rem clamp(.5rem,1.4vw,1.25rem)}.kplex-publication-production .kplex-publication-header h1{max-width:20rem}.kplex-publication-header>.kplex-publication-controls{flex:none;max-width:100%}.kplex-publication-tools{display:grid;grid-template-columns:minmax(0,1fr) clamp(9rem,32%,21rem);gap:.375rem .625rem;align-items:start;flex:1 1 26rem;min-width:0}.kplex-publication-search{display:flex;align-items:flex-start;gap:.25rem;min-width:0}.kplex-publication-tools .kplex-search-shell{flex:1 1 auto;min-width:0;max-width:none}.kplex-publication-tools .kplex-search-shell input{width:100%}.kplex-publication-production .kplex-search-results{max-width:calc(100% - 1rem)}.kplex-publication-tools input{min-width:0;max-width:100%;min-height:var(--input-height);box-sizing:border-box;border:1px solid var(--background-modifier-border);border-radius:.45rem;background:var(--kplex-publication-panel);color:inherit;font:inherit;padding:.3rem .55rem}.kplex-publication-tools input::placeholder{color:var(--text-muted)}.kplex-publication-tools button,.kplex-publication-note button,.kplex-publication-opening button{min-height:2.75rem;border:1px solid var(--background-modifier-border);border-radius:.45rem;background:var(--kplex-publication-panel);color:inherit;font:inherit;cursor:pointer;padding:.35rem .6rem}.kplex-publication-tools button[aria-pressed=true]{background:var(--background-primary);border-color:var(--interactive-accent)}.kplex-publication-search-options{position:relative;flex:none}.kplex-publication-search-options [role=status]{position:absolute;z-index:25;inset-block-start:100%;inset-inline-end:0;width:max-content;max-width:13rem;padding:.25rem .4rem;border-radius:.3rem;background:var(--kplex-publication-panel)}.kplex-publication-address{position:relative;margin:0;min-width:0}.kplex-publication-address .kplex-form-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem;align-items:center}.kplex-publication-address .kplex-form-inline label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.kplex-publication-address input{width:100%}.kplex-publication-address-matches{position:absolute;right:0;top:100%;z-index:5;max-width:100%;max-height:min(20rem,52vh);overflow:auto;padding:.65rem;box-sizing:border-box;background:var(--kplex-publication-panel);color:var(--text-normal);border:1px solid var(--background-modifier-border);border-radius:.45rem;box-shadow:var(--shadow-s)}.kplex-publication-address-matches ul{list-style:none;padding:0}.kplex-publication-address-matches button{max-width:100%;overflow-wrap:anywhere;text-align:start}.kplex-publication-trail{display:flex;align-items:center;gap:.65rem;min-width:0;background:var(--background-secondary);font-size:.875rem}.kplex-publication-pins{flex:1 1 100%}.kplex-publication-history{padding:.25rem clamp(.75rem,2vw,1.5rem);border-top:1px solid var(--background-modifier-border)}.kplex-publication-trail>span{flex:none;color:var(--text-muted)}.kplex-publication-trail ol{display:flex;align-items:center;gap:.3rem;min-width:0;margin:0;padding:.15rem 0;overflow-x:auto;list-style:none}.kplex-publication-trail li{flex:none;min-width:0}.kplex-publication-trail a{display:flex;align-items:center;gap:.3rem;max-width:min(18rem,55vw);padding:.25rem .55rem;border:1px solid var(--kplex-publication-trail-border, var(--background-modifier-border));border-radius:.75rem;color:inherit;text-decoration:none}.kplex-publication-trail a>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:inherit}.kplex-publication-trail a>svg{flex:none}.kplex-publication-trail a:hover,.kplex-publication-trail a[aria-current]{border-color:var(--interactive-accent)}.kplex-publication-address-menu{z-index:90;box-sizing:border-box;padding:.3rem;overflow:auto;background:var(--background-secondary);color:var(--text-normal);border:1px solid var(--background-modifier-border);border-radius:.45rem;box-shadow:var(--shadow-s)}.kplex-publication-address-menu :is(button,input){box-sizing:border-box;width:100%;min-height:2rem;padding:.25rem .5rem;color:inherit;background:var(--background-primary);font:inherit;border:1px solid var(--background-modifier-border);border-radius:.3rem}.kplex-publication-address-menu button{text-align:start;cursor:pointer}.kplex-publication-address-menu button+button{margin-block-start:.25rem}.kplex-publication-address-menu button:disabled{opacity:.6;cursor:default}.kplex-publication-address-menu p{margin:.25rem .4rem;color:var(--text-muted);font-size:.9em}.kplex-publication-canvas-menu{position:fixed}.kplex-publication-canvas-menu button{display:flex;align-items:center;gap:.45rem}.kplex-publication-canvas-menu a{display:flex;align-items:center;box-sizing:border-box;min-height:2rem;padding:.3rem .6rem;border-radius:.3rem;color:inherit;text-decoration:none}.kplex-publication-canvas-menu a:focus-visible{outline-offset:-2px}.kplex-publication-canvas-menu [aria-haspopup=menu]{margin-block:.25rem}.kplex-publication-canvas-menu [role=menu]{margin:0 0 .25rem .75rem}.kplex-publication-submenu-arrow{margin-inline-start:auto}.kplex-publication-menu-check{flex:0 0 1em;color:var(--interactive-accent)}.kplex-publication-canvas-menu :is(button,a):hover{background:var(--interactive-hover, var(--background-modifier-hover))}.kplex-publication-node-icon{flex:0 0 auto;margin-inline-end:4px;opacity:.88}.kplex-publication [data-publication-crosslink]:not(.is-highlighted,.is-dimmed){opacity:.5}.kplex-publication-workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-width:0;min-height:0}.kplex-publication-workspace[data-sidecar-dock=right]{grid-template-columns:minmax(0,1fr) var(--kplex-publication-divider-size) var(--kplex-publication-sidecar-size)}.kplex-publication-workspace[data-sidecar-dock=left]{grid-template-columns:var(--kplex-publication-sidecar-size) var(--kplex-publication-divider-size) minmax(0,1fr)}.kplex-publication-workspace[data-sidecar-dock=left]>*{grid-row:1}.kplex-publication-workspace[data-sidecar-dock=left]>.kplex-publication-note{grid-column:1}.kplex-publication-workspace[data-sidecar-dock=left]>.kplex-publication-divider{grid-column:2}.kplex-publication-workspace[data-sidecar-dock=left]>.kplex-publication-canvas{grid-column:3}.kplex-publication-workspace[data-sidecar-dock=bottom]{grid-template-rows:minmax(0,1fr) var(--kplex-publication-divider-size) var(--kplex-publication-sidecar-size)}.kplex-publication-divider{position:relative;z-index:1;display:grid;place-items:center;background:var(--kplex-publication-panel);cursor:col-resize;touch-action:none;user-select:none}.kplex-publication-divider:before{content:"";width:2px;height:2rem;border-radius:2px;background:var(--background-modifier-border)}.kplex-publication-divider:after{content:"";position:absolute;inset:0 -7px}.kplex-publication-divider:focus-visible{outline-offset:-2px}.kplex-publication-divider:is(:hover,:active,:focus-visible):before{background:var(--interactive-accent)}.kplex-publication-divider[aria-orientation=horizontal]{cursor:row-resize}.kplex-publication-divider[aria-orientation=horizontal]:before{width:2rem;height:2px}.kplex-publication-divider[aria-orientation=horizontal]:after{inset:-7px 0}.kplex-publication-canvas{position:relative;display:grid;min-width:0;min-height:0}.kplex-publication-camera-actions{position:absolute;z-index:20;bottom:.75rem;left:.75rem}.kplex-publication-status{position:absolute;top:.6rem;left:.75rem;right:8rem;pointer-events:none}.kplex-publication-status p{display:table;margin:0 0 .3rem;padding:.2rem .45rem;border-radius:.3rem;background:var(--kplex-publication-panel)}.kplex-publication-production .kplex-publication-note{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:1rem;border:0}.kplex-publication-sidecar-heading{display:flex;gap:.5rem;align-items:flex-start;justify-content:space-between;margin-bottom:.5rem}.kplex-publication-sidecar-heading h2{flex:1 1 9rem;min-width:0;font-size:1.25rem;overflow-wrap:anywhere}.kplex-publication-sidecar-actions{display:flex;flex:none;gap:.25rem}.kplex-publication-web-note{display:flex;flex-direction:column}.kplex-publication-web-source{margin-block-end:.6rem}.kplex-publication-web-source a{color:var(--interactive-accent)}.kplex-publication-web-frame{flex:1;width:100%;min-height:12rem;border:1px solid var(--background-modifier-border)}.kplex-publication-video-frame{flex:none;box-sizing:border-box;min-height:200px;border:0}.kplex-publication-github-preview{overflow-wrap:anywhere}.kplex-publication-github-preview h3{margin:.55rem 0}.kplex-publication-github-preview .kplex-publication-github-description{white-space:pre-wrap;color:var(--text-normal)}.kplex-publication-github-preview li+li{margin-block-start:.45rem}.kplex-publication-github-preview a{color:var(--interactive-accent)}.kplex-publication-note-content{min-width:0;overflow-wrap:anywhere}.kplex-publication-note-content :is(img,svg,audio,video){max-width:100%}.kplex-publication-note-content :is(img,svg,video){height:auto}.kplex-publication-note-content figure[data-publication-drawing]{margin-inline:0}.kplex-publication-note-content figure[data-publication-width]>img{width:var(--kplex-published-drawing-width)}.kplex-publication-note-content figure[data-publication-width]>svg{max-width:min(100%,var(--kplex-published-drawing-width))}.kplex-publication-note-content figure[data-publication-width][data-publication-height]>:is(img,svg){min-height:var(--kplex-published-drawing-height)}.kplex-publication-note-content figure[data-publication-height]:not([data-publication-width])>:is(img,svg){max-height:var(--kplex-published-drawing-height)}.kplex-publication-note-content img:not([src]){display:none}.kplex-publication-note-content a{color:var(--interactive-accent)}.kplex-publication-note-content svg a{cursor:pointer}.kplex-publication-note-content pre{overflow:auto;padding:.6rem;background:var(--background-primary)}.kplex-publication-note-content table{display:block;overflow:auto;border-collapse:collapse}.kplex-publication-note-content :is(td,th){padding:.2rem .45rem;border:1px solid var(--background-modifier-border)}.kplex-publication-note-content :is(blockquote,[data-callout]){padding:.2rem .65rem;margin-inline:0;border-inline-start:.2rem solid var(--interactive-accent)}@media (prefers-color-scheme: dark){.kplex-publication-demo{background:#141f25}.kplex-publication{--background-primary: #141f25;--background-modifier-border: #526c74;--text-normal: #edf5f6;--text-muted: #bdd0d4;--interactive-accent: #78cdb8;--kplex-publication-panel: #1b2b32;--kplex-publication-link: #89a6ac;--kplex-publication-card: #223940;--kplex-publication-center: #8ed9c4;--kplex-publication-center-text: #143028}.kplex-publication-production{--background-primary: var(--kplex-published-dark-background-primary, #141f25);--background-modifier-border: var(--kplex-published-dark-background-modifier-border, #526c74);--text-normal: var(--kplex-published-dark-text-normal, #edf5f6);--text-muted: var(--kplex-published-dark-text-muted, #bdd0d4);--interactive-accent: var(--kplex-published-dark-interactive-accent, #78cdb8);--kplex-publication-panel: var(--kplex-published-dark-kplex-publication-panel, #1b2b32);--kplex-publication-link: var(--kplex-published-dark-kplex-publication-link, #89a6ac)}}@container (max-width: 45rem){.kplex-publication-production .kplex-publication-heading{flex:1}.kplex-publication-tools{flex-basis:100%;grid-template-columns:minmax(0,1fr) minmax(0,.8fr)}}@container (max-width: 25rem){.kplex-publication-tools{grid-template-columns:minmax(0,1fr)}.kplex-publication-header .kplex-publication-heading h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.95rem;line-height:1.15;white-space:normal;overflow-wrap:anywhere}}@media (max-width: 46rem){.kplex-publication-demo .kplex-publication-production{grid-template-rows:auto minmax(20rem,1fr) auto}.kplex-publication-production .kplex-publication-note{padding:.65rem .75rem}.kplex-publication-camera-actions{bottom:.45rem;inset-inline:.5rem;pointer-events:none}.kplex-publication-camera-actions button{pointer-events:auto}}@media (pointer: coarse){.kplex-publication{--kplex-publication-control-size: 2.75rem}.kplex-publication-canvas-menu :is(button,a){min-height:2.75rem}.kplex-publication-tools input{font-size:max(16px,1em)}}.kplex-publication-production{color-scheme:light dark;--background-primary: var(--kplex-published-author-background-primary, var(--kplex-reader-legacy-background-primary, light-dark(#ffffff, #1e1e1e)));--background-modifier-border: var(--kplex-published-author-background-modifier-border, var(--kplex-reader-legacy-background-modifier-border, light-dark(#e4e4e4, #373737)));--text-normal: var(--kplex-published-author-text-normal, var(--kplex-reader-legacy-text-normal, light-dark(#222222, #dadada)));--text-muted: var(--kplex-published-author-text-muted, var(--kplex-reader-legacy-text-muted, light-dark(#575757, #b3b3b3)));--interactive-accent: var(--kplex-published-author-interactive-accent, var(--kplex-reader-legacy-interactive-accent, light-dark(#7852ee, #a882ff)));--kplex-publication-panel: var(--kplex-published-author-kplex-publication-panel, var(--kplex-reader-legacy-kplex-publication-panel, light-dark(#f6f6f6, #262626)));--kplex-publication-link: var(--kplex-published-author-kplex-publication-link, var(--kplex-reader-legacy-kplex-publication-link, light-dark(#8b8b8b, #888888)));--background-secondary: var(--kplex-published-author-background-secondary, var(--kplex-publication-panel));--background-modifier-hover: var(--kplex-published-author-background-modifier-hover, light-dark(#ebebeb, #353535));--text-faint: var(--kplex-published-author-text-faint, var(--text-muted));--interactive-normal: var(--kplex-published-author-interactive-normal, light-dark(#ffffff, #333333));--interactive-hover: var(--kplex-published-author-interactive-hover, light-dark(#fafafa, #3f3f3f));--text-on-accent: var(--kplex-published-author-text-on-accent, #ffffff);--kplex-publication-card: var(--background-primary);--kplex-publication-center: var(--interactive-accent);--kplex-publication-center-text: var(--text-on-accent);--kplex-reader-font-interface: var(--kplex-published-author-font-interface, system-ui);--kplex-reader-font-text: var(--kplex-published-author-font-text, system-ui);--kplex-reader-font-monospace: var(--kplex-published-author-font-monospace, ui-monospace);--kplex-reader-paragraph-spacing: var(--kplex-published-author-p-spacing, 1em);--kplex-reader-link: var(--kplex-published-author-link-color, var(--interactive-accent));--kplex-reader-code-bg: var(--kplex-published-author-code-background, var(--background-secondary));--kplex-reader-code-color: var(--kplex-published-author-code-normal, var(--text-normal));font-family:var(--kplex-reader-font-interface),system-ui,sans-serif;font-size:var(--kplex-published-author-font-ui-medium, 14px)}@media (prefers-color-scheme: light){.kplex-publication-production{--kplex-reader-legacy-background-primary: var(--kplex-published-light-background-primary);--kplex-reader-legacy-background-modifier-border: var(--kplex-published-light-background-modifier-border);--kplex-reader-legacy-text-normal: var(--kplex-published-light-text-normal);--kplex-reader-legacy-text-muted: var(--kplex-published-light-text-muted);--kplex-reader-legacy-interactive-accent: var(--kplex-published-light-interactive-accent);--kplex-reader-legacy-kplex-publication-panel: var(--kplex-published-light-kplex-publication-panel);--kplex-reader-legacy-kplex-publication-link: var(--kplex-published-light-kplex-publication-link)}}@media (prefers-color-scheme: dark){.kplex-publication-production{--kplex-reader-legacy-background-primary: var(--kplex-published-dark-background-primary);--kplex-reader-legacy-background-modifier-border: var(--kplex-published-dark-background-modifier-border);--kplex-reader-legacy-text-normal: var(--kplex-published-dark-text-normal);--kplex-reader-legacy-text-muted: var(--kplex-published-dark-text-muted);--kplex-reader-legacy-interactive-accent: var(--kplex-published-dark-interactive-accent);--kplex-reader-legacy-kplex-publication-panel: var(--kplex-published-dark-kplex-publication-panel);--kplex-reader-legacy-kplex-publication-link: var(--kplex-published-dark-kplex-publication-link)}}.kplex-publication-production .kplex-publication-viewport{background-color:var(--kplex-published-author-kplex-publication-canvas, var(--background-primary));background-image:none}.kplex-publication-production .kplex-publication-header{background:var(--background-secondary)}.kplex-publication-production .kplex-publication-tools input{border-radius:var(--kplex-published-author-input-radius, .35rem);background:var(--background-primary)}.kplex-publication-production :is(.kplex-publication-tools,.kplex-publication-note,.kplex-publication-controls) :is(button,select){border-radius:var(--kplex-published-author-button-radius, .35rem);background:var(--interactive-normal)}.kplex-publication-production :is(.kplex-publication-tools,.kplex-publication-note,.kplex-publication-controls) :is(button,select):hover:not(:disabled){background:var(--interactive-hover)}.kplex-publication-production .kplex-publication-tools button[aria-pressed=true]{background:var(--interactive-accent);color:var(--text-on-accent)}.kplex-publication-production .kplex-publication-note{background:var(--background-primary)}.kplex-publication-production .kplex-publication-sidecar-heading h2{color:var(--kplex-published-author-inline-title-color, var(--text-normal));font-family:var(--kplex-published-author-inline-title-font, var(--kplex-reader-font-text)),system-ui,sans-serif;font-size:var(--kplex-published-author-inline-title-size, 1.5em);font-weight:var(--kplex-published-author-inline-title-weight, 700);line-height:1.25}.kplex-publication-production .kplex-publication-note-content{color:var(--text-normal);font-family:var(--kplex-reader-font-text),system-ui,sans-serif;font-size:var(--kplex-published-author-font-text-size, 16px);line-height:var(--kplex-published-author-line-height-normal, 1.5)}.kplex-publication-production .kplex-publication-note-content p{color:inherit;margin:0 0 var(--kplex-reader-paragraph-spacing);max-width:none}.kplex-publication-production .kplex-publication-note-content :is(h1,h2,h3,h4,h5,h6){margin:var(--kplex-published-author-heading-spacing, 1.3em) 0 .45em}.kplex-publication-production .kplex-publication-note-content>:first-child{margin-block-start:0}.kplex-publication-production .kplex-publication-note-content h1{font:var(--kplex-published-author-h1-style, normal) var(--kplex-published-author-h1-weight, 700) var(--kplex-published-author-h1-size, 1.802em)/var(--kplex-published-author-h1-line-height, 1.3) var(--kplex-published-author-h1-font, var(--kplex-reader-font-text)),system-ui,sans-serif;color:var(--kplex-published-author-h1-color, var(--text-normal))}.kplex-publication-production .kplex-publication-note-content h2{font:var(--kplex-published-author-h2-style, normal) var(--kplex-published-author-h2-weight, 700) var(--kplex-published-author-h2-size, 1.602em)/var(--kplex-published-author-h2-line-height, 1.3) var(--kplex-published-author-h2-font, var(--kplex-reader-font-text)),system-ui,sans-serif;color:var(--kplex-published-author-h2-color, var(--text-normal))}.kplex-publication-production .kplex-publication-note-content h3{font:var(--kplex-published-author-h3-style, normal) var(--kplex-published-author-h3-weight, 600) var(--kplex-published-author-h3-size, 1.424em)/var(--kplex-published-author-h3-line-height, 1.3) var(--kplex-published-author-h3-font, var(--kplex-reader-font-text)),system-ui,sans-serif;color:var(--kplex-published-author-h3-color, var(--text-normal))}.kplex-publication-production .kplex-publication-note-content h4{font:var(--kplex-published-author-h4-style, normal) var(--kplex-published-author-h4-weight, 600) var(--kplex-published-author-h4-size, 1.266em)/var(--kplex-published-author-h4-line-height, 1.3) var(--kplex-published-author-h4-font, var(--kplex-reader-font-text)),system-ui,sans-serif;color:var(--kplex-published-author-h4-color, var(--text-normal))}.kplex-publication-production .kplex-publication-note-content h5{font:var(--kplex-published-author-h5-style, normal) var(--kplex-published-author-h5-weight, 600) var(--kplex-published-author-h5-size, 1.125em)/var(--kplex-published-author-h5-line-height, 1.3) var(--kplex-published-author-h5-font, var(--kplex-reader-font-text)),system-ui,sans-serif;color:var(--kplex-published-author-h5-color, var(--text-normal))}.kplex-publication-production .kplex-publication-note-content h6{font:var(--kplex-published-author-h6-style, normal) var(--kplex-published-author-h6-weight, 600) var(--kplex-published-author-h6-size, 1em)/var(--kplex-published-author-h6-line-height, 1.3) var(--kplex-published-author-h6-font, var(--kplex-reader-font-text)),system-ui,sans-serif;color:var(--kplex-published-author-h6-color, var(--text-normal))}.kplex-publication-production .kplex-publication-note-content a{color:var(--kplex-reader-link)}.kplex-publication-production .kplex-publication-note-content a[href^=http]{color:var(--kplex-published-author-link-external-color, var(--kplex-reader-link))}.kplex-publication-production .kplex-publication-note-content a:hover{color:var(--kplex-published-author-link-color-hover, var(--kplex-reader-link))}.kplex-publication-production .kplex-publication-note-content :is(code,pre){background:var(--kplex-reader-code-bg);color:var(--kplex-reader-code-color);border-radius:.25em;font-family:var(--kplex-reader-font-monospace),ui-monospace,monospace;font-size:.9em}.kplex-publication-production .kplex-publication-note-content code{padding:.1em .25em}.kplex-publication-production .kplex-publication-note-content pre{padding:.85em}.kplex-publication-production .kplex-publication-note-content pre code{padding:0;font-size:1em}.kplex-publication-production .kplex-publication-note-content mark{background:var(--kplex-published-author-text-highlight-bg, #fff3a3);color:inherit}.kplex-publication-production .kplex-publication-note-content hr{border:0;border-top:1px solid var(--background-modifier-border)}.kplex-publication-production .kplex-publication-note-content :is(td,th){border-color:var(--kplex-published-author-table-border-color, var(--background-modifier-border));padding:.35em .7em}.kplex-publication-production .kplex-publication-note-content th{background:var(--kplex-published-author-table-header-background, var(--background-secondary))}.kplex-publication-production .kplex-publication-note-content blockquote{border-inline-start-color:var(--kplex-published-author-blockquote-border-color, var(--interactive-accent));color:var(--kplex-published-author-blockquote-color, var(--text-muted))}.kplex-publication-production .kplex-publication-note-content [data-callout]{--kplex-reader-callout: var(--kplex-published-author-color-blue, var(--interactive-accent));border-inline-start-color:var(--kplex-reader-callout);border-radius:var(--kplex-published-author-callout-radius, .35rem);background:color-mix(in srgb,var(--kplex-reader-callout) 12%,var(--background-primary));color:var(--text-normal);padding:.6em .85em}.kplex-publication-production .kplex-publication-note-content [data-callout]>:last-child{margin-block-end:0}.kplex-publication-production .kplex-publication-note-content [data-callout]:is([data-callout=danger],[data-callout=error],[data-callout=failure],[data-callout=bug]){--kplex-reader-callout: var(--kplex-published-author-color-red, #d33649)}.kplex-publication-production .kplex-publication-note-content [data-callout]:is([data-callout=warning],[data-callout=caution],[data-callout=attention]){--kplex-reader-callout: var(--kplex-published-author-color-orange, #cf7324)}.kplex-publication-production .kplex-publication-note-content [data-callout]:is([data-callout=success],[data-callout=check],[data-callout=done]){--kplex-reader-callout: var(--kplex-published-author-color-green, #1a9b49)}.kplex-publication-production .kplex-publication-note-content [data-callout]:is([data-callout=tip],[data-callout=hint],[data-callout=important]){--kplex-reader-callout: var(--kplex-published-author-color-cyan, #169a9c)}.kplex-publication-production .kplex-publication-note-content [data-callout=example]{--kplex-reader-callout: var(--kplex-published-author-color-purple, #7852ee)}
770
- `,e.head.append(t)}PT(Lh)}function PT(e){let t=e.ownerDocument.defaultView;if(!t)return;let n=new URL("./publication.json",e.ownerDocument.baseURI),i=new t.AbortController,a,o=async()=>{let l=e.ownerDocument.createElement("p");l.className="kplex-publication-opening",l.setAttribute("role","status"),l.textContent=L.loading,e.replaceChildren(l);try{let r=await T0(t,n,i.signal);i.signal.throwIfAborted(),a=m1(e,r,n)}catch{if(i.signal.aborted)return;l.setAttribute("role","alert"),l.textContent=t.crypto.subtle?L.loadFailed:L.insecure;let r=e.ownerDocument.createElement("button");r.type="button",r.textContent=L.retry,r.addEventListener("click",()=>{o()},{once:!0}),l.append(" ",r),r.focus()}};t.addEventListener("pagehide",l=>{l.persisted||(i.abort(),a?.dispose())}),o()}
9
+ `+i.stack}}var Vs=Object.prototype.hasOwnProperty,qf=Fe.unstable_scheduleCallback,ts=Fe.unstable_cancelCallback,Z1=Fe.unstable_shouldYield,I1=Fe.unstable_requestPaint,Ft=Fe.unstable_now,J1=Fe.unstable_getCurrentPriorityLevel,eg=Fe.unstable_ImmediatePriority,tg=Fe.unstable_UserBlockingPriority,yu=Fe.unstable_NormalPriority,F1=Fe.unstable_LowPriority,ng=Fe.unstable_IdlePriority,$1=Fe.log,W1=Fe.unstable_setDisableYieldValue,Xo=null,$t=null;function Li(e){if(typeof $1=="function"&&W1(e),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(Xo,e)}catch{}}var Wt=Math.clz32?Math.clz32:nS,eS=Math.log,tS=Math.LN2;function nS(e){return e>>>=0,e===0?32:31-(eS(e)/tS|0)|0}var Ar=256,zr=262144,Or=4194304;function dl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qu(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var l=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var r=i&134217727;return r!==0?(i=r&~a,i!==0?l=dl(i):(o&=r,o!==0?l=dl(o):n||(n=r&~e,n!==0&&(l=dl(n))))):(r=i&~a,r!==0?l=dl(r):o!==0?l=dl(o):n||(n=i&~e,n!==0&&(l=dl(n)))),l===0?0:t!==0&&t!==l&&(t&a)===0&&(a=l&-l,n=t&-t,a>=n||a===32&&(n&4194048)!==0)?t:l}function Ko(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ig(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Wt(n),l=1<<i;t|=e[i],n&=~l}return t}function iS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lg(){var e=Or;return Or<<=1,(Or&62914560)===0&&(Or=4194304),e}function ns(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qo(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lS(e,t,n,i,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=o&~n;0<n;){var f=31-Wt(n),p=1<<f;r[f]=0,u[f]=-1;var s=c[f];if(s!==null)for(c[f]=null,f=0;f<s.length;f++){var h=s[f];h!==null&&(h.lane&=-536870913)}n&=~p}i!==0&&ag(e,i,0),a!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ag(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Wt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function og(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Wt(n),l=1<<i;l&t|e[i]&t&&(e[i]|=t),n&=~l}}function rg(e,t){var n=t&-t;return n=(n&42)!==0?1:jf(n),(n&(e.suspendedLanes|t))!==0?0:n}function jf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xf(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ug(){var e=ye.p;return e!==0?e:(e=window.event,e===void 0?32:qb(e.type))}function mh(e,t){var n=ye.p;try{return ye.p=e,t()}finally{ye.p=n}}var yi=Math.random().toString(36).slice(2),ut="__reactFiber$"+yi,Bt="__reactProps$"+yi,Oa="__reactContainer$"+yi,hh="__reactEvents$"+yi,aS="__reactListeners$"+yi,oS="__reactHandles$"+yi,ph="__reactResources$"+yi,Zo="__reactMarker$"+yi,bu="__reactLoad$"+yi;function ju(e){delete e[ut],delete e[Bt],delete e[aS],delete e[oS]}function pl(e){var t;if(t=e[ut])return t;for(var n=e.parentNode;n;){if(t=n[Oa]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Dp(e);e!==null;){if(n=e[ut])return n;e=Dp(e)}return t}e=n,n=e.parentNode}return null}function Da(e){if(e=e[ut]||e[Oa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function fo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(R(33))}function ua(e){var t=e[ph];return t||(t=e[ph]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Zo]=!0}function cg(e){e[bu]=void 0}var sg=new Set,fg={};function Ol(e,t){va(e,t),va(e+"Capture",t)}function va(e,t){for(fg[e]=t,e=0;e<t.length;e++)sg.add(t[e])}var rS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gh={},yh={};function uS(e){return Vs.call(yh,e)?!0:Vs.call(gh,e)?!1:rS.test(e)?yh[e]=!0:(gh[e]=!0,!1)}var pe=!1;function bh(){var e=pe;return pe=!1,e}function Ir(e,t,n){if(uS(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Dr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function ai(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,i)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cS(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,a=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bs(e){if(!e._valueTracker){var t=dg(e)?"checked":"value";e._valueTracker=cS(e,t,""+e[t])}}function mg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=dg(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}var sS=/[\n"\\]/g;function sn(e){return e.replace(sS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gs(e,t,n,i,l,a,o,r){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?o==="number"&&e.value==t?is(e,Qt(e.value)):is(e,Qt(t)):n!=null?is(e,Qt(n)):i!=null&&e.removeAttribute("value"),l==null&&a!=null&&(e.defaultChecked=!!a),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Qt(r):e.removeAttribute("name")}function hg(e,t,n,i,l,a,o,r){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null)){Bs(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}i=i??l,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=r?e.checked:!!i,e.defaultChecked=!!i,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Bs(e)}function is(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function ca(e,t,n,i){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,i&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function pg(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function gg(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(R(92));if(so(i)){if(1<i.length)throw Error(R(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Bs(e)}function Sa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vh(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||fS.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function yg(e,t,n){if(t!=null&&typeof t!="object")throw Error(R(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",pe=!0);for(var l in t)i=t[l],t.hasOwnProperty(l)&&n[l]!==i&&(vh(e,l,i),pe=!0)}else for(var a in t)t.hasOwnProperty(a)&&vh(e,a,t[a])}function Kf(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),mS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Jr(e){return mS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Bn(){}var Ys=null;function Qf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wl=null,sa=null;function Sh(e){var t=Da(e);if(t&&(e=t.stateNode)){var n=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Gs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+sn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var l=i[Bt]||null;if(!l)throw Error(R(90));Gs(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&mg(i)}break e;case"textarea":pg(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ca(e,!!n.multiple,t,!1)}}}var ls=!1;function bg(e,t,n){if(ls)return e(t,n);ls=!0;try{var i=e(t);return i}finally{if(ls=!1,(Wl!==null||sa!==null)&&(lc(),Wl&&(t=Wl,e=sa,sa=Wl=null,Sh(t),e)))for(t=0;t<e.length;t++)Sh(e[t])}}function Ao(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Bt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var fi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qs=!1;if(fi)try{jl={},Object.defineProperty(jl,"passive",{get:function(){qs=!0}}),window.addEventListener("test",jl,jl),window.removeEventListener("test",jl,jl)}catch{qs=!1}var jl,_i=null,Zf=null,Fr=null;function vg(){if(Fr)return Fr;var e,t=Zf,n=t.length,i,l="value"in _i?_i.value:_i.textContent,a=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(i=1;i<=o&&t[n-i]===l[a-i];i++);return Fr=l.slice(e,1<i?1-i:void 0)}function $r(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Lr(){return!0}function xh(){return!1}function zt(e){function t(n,i,l,a,o){this._reactName=n,this._targetInst=l,this.type=i,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(a):a[r]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Lr:xh,this.isPropagationStopped=xh,this}return Re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Lr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lr)},persist:function(){},isPersistent:Lr}),t}var el={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xu=zt(el),Io=Re({},el,{view:0,detail:0}),hS=zt(Io),as,os,lo,Ku=Re({},Io,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:If,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==lo&&(lo&&e.type==="mousemove"?(as=e.screenX-lo.screenX,os=e.screenY-lo.screenY):os=as=0,lo=e),as)},movementY:function(e){return"movementY"in e?e.movementY:os}}),wh=zt(Ku),pS=Re({},Ku,{dataTransfer:0}),gS=zt(pS),yS=Re({},Io,{relatedTarget:0}),rs=zt(yS),bS=Re({},el,{animationName:0,elapsedTime:0,pseudoElement:0}),vS=zt(bS),SS=Re({},el,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xS=zt(SS),wS=Re({},el,{data:0}),Mh=zt(wS),MS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ES={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},TS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function NS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=TS[e])?!!t[e]:!1}function If(){return NS}var RS=Re({},Io,{key:function(e){if(e.key){var t=MS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$r(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ES[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:If,charCode:function(e){return e.type==="keypress"?$r(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$r(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),CS=zt(RS),AS=Re({},Ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eh=zt(AS),zS=Re({},el,{submitter:0}),OS=zt(zS),DS=Re({},Io,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:If}),LS=zt(DS),_S=Re({},el,{propertyName:0,elapsedTime:0,pseudoElement:0}),HS=zt(_S),US=Re({},Ku,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),PS=zt(US),kS=Re({},el,{newState:0,oldState:0,source:0}),VS=zt(kS),BS=[9,13,27,32],Jf=fi&&"CompositionEvent"in window,po=null;fi&&"documentMode"in document&&(po=document.documentMode);var GS=fi&&"TextEvent"in window&&!po,Sg=fi&&(!Jf||po&&8<po&&11>=po),Th=" ",Nh=!1;function xg(e,t){switch(e){case"keyup":return BS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ea=!1;function YS(e,t){switch(e){case"compositionend":return wg(t);case"keypress":return t.which!==32?null:(Nh=!0,Th);case"textInput":return e=t.data,e===Th&&Nh?null:e;default:return null}}function qS(e,t){if(ea)return e==="compositionend"||!Jf&&xg(e,t)?(e=vg(),Fr=Zf=_i=null,ea=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sg&&t.locale!=="ko"?null:t.data;default:return null}}var jS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jS[e.type]:t==="textarea"}function Mg(e,t,n,i){Wl?sa?sa.push(i):sa=[i]:Wl=i,t=Bu(t,"onChange"),0<t.length&&(n=new Xu("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var go=null,zo=null;function XS(e){bb(e,0)}function Qu(e){var t=fo(e);if(mg(t))return e}function Ch(e,t){if(e==="change")return t}var Eg=!1;fi&&(fi?(Hr="oninput"in document,Hr||(us=document.createElement("div"),us.setAttribute("oninput","return;"),Hr=typeof us.oninput=="function"),_r=Hr):_r=!1,Eg=_r&&(!document.documentMode||9<document.documentMode));var _r,Hr,us;function Ah(){go&&(go.detachEvent("onpropertychange",Tg),zo=go=null)}function Tg(e){if(e.propertyName==="value"&&Qu(zo)){var t=[];Mg(t,zo,e,Qf(e)),bg(XS,t)}}function KS(e,t,n){e==="focusin"?(Ah(),go=t,zo=n,go.attachEvent("onpropertychange",Tg)):e==="focusout"&&Ah()}function QS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qu(zo)}function ZS(e,t){if(e==="click")return Qu(t)}function IS(e,t){if(e==="input"||e==="change")return Qu(t)}function JS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:JS;function Oo(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var l=n[i];if(!Vs.call(t,l)||!tn(e[l],t[l]))return!1}return!0}function js(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oh(e,t){var n=zh(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zh(n)}}function Ng(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ng(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=js(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=js(e.document)}return t}function Ff(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var FS=fi&&"documentMode"in document&&11>=document.documentMode,ta=null,Xs=null,yo=null,Ks=!1;function Dh(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ks||ta==null||ta!==js(i)||(i=ta,"selectionStart"in i&&Ff(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),yo&&Oo(yo,i)||(yo=i,i=Bu(Xs,"onSelect"),0<i.length&&(t=new Xu("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ta)))}function sl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var na={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionrun:sl("Transition","TransitionRun"),transitionstart:sl("Transition","TransitionStart"),transitioncancel:sl("Transition","TransitionCancel"),transitionend:sl("Transition","TransitionEnd")},cs={},Cg={};fi&&(Cg=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function Dl(e){if(cs[e])return cs[e];if(!na[e])return e;var t=na[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cg)return cs[e]=t[n];return e}var Ag=Dl("animationend"),zg=Dl("animationiteration"),Og=Dl("animationstart"),$S=Dl("transitionrun"),WS=Dl("transitionstart"),ex=Dl("transitioncancel"),Dg=Dl("transitionend"),Lg=new Map,Qs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Qs.push("scrollEnd");function wn(e,t){Lg.set(e,t),Ol(t,[e])}var tx=0;function di(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=xn.identifierPrefix;var n=tx++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Lh(e){if(e==null||typeof e=="string")return e;var t=null,n=ya;if(n!==null)for(var i=0;i<n.length;i++){var l=e[n[i]];if(l!=null){if(l==="none")return"none";t=t==null?l:t+(" "+l)}}return t??e.default}function bi(e,t){return e=Lh(e),t=Lh(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var vu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},rn=[],ia=0,$f=0;function Zu(){for(var e=ia,t=$f=ia=0;t<e;){var n=rn[t];rn[t++]=null;var i=rn[t];rn[t++]=null;var l=rn[t];rn[t++]=null;var a=rn[t];if(rn[t++]=null,i!==null&&l!==null){var o=i.pending;o===null?l.next=l:(l.next=o.next,o.next=l),i.pending=l}a!==0&&_g(n,l,a)}}function Iu(e,t,n,i){rn[ia++]=e,rn[ia++]=t,rn[ia++]=n,rn[ia++]=i,$f|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Wf(e,t,n,i){return Iu(e,t,n,i),Su(e)}function Ll(e,t){return Iu(e,null,null,t),Su(e)}function _g(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var l=!1,a=e.return;a!==null;)a.childLanes|=n,i=a.alternate,i!==null&&(i.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(l=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,l&&t!==null&&(l=31-Wt(n),e=a.hiddenUpdates,i=e[l],i===null?e[l]=[t]:i.push(t),t.lane=n|536870912),a):null}function Su(e){if(50<Ro)throw Ro=0,uu=null,Error(R(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var la={};function nx(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,i){return new nx(e,t,n,i)}function ed(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ci(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Hg(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Wr(e,t,n,i,l,a){var o=0;if(i=e,typeof i=="function")ed(i)&&(o=1);else if(typeof i=="string")o=Cw(e,n,qn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case _s:return e=Pt(31,n,t,l),e.elementType=_s,e.lanes=a,e;case Fl:return bl(n.children,l,a,t);case $p:o=8,l|=24;break;case Os:return e=Pt(12,n,t,l|2),e.elementType=Os,e.lanes=a,e;case Ds:return e=Pt(13,n,t,l),e.elementType=Ds,e.lanes=a,e;case Ls:return e=Pt(19,n,t,l),e.elementType=Ls,e.lanes=a,e;case q1:case Hs:return e=l|32,e=Pt(30,n,t,e),e.elementType=Hs,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Vn:o=10;break e;case Wp:o=9;break e;case Gf:o=11;break e;case Yf:o=14;break e;case zi:o=16,i=null;break e}o=29,n=Error(R(130,e===null?"null":typeof e,"")),i=null}return t=Pt(o,n,t,l),t.elementType=e,t.type=i,t.lanes=a,t}function bl(e,t,n,i){return e=Pt(7,e,i,t),e.lanes=n,e}function ss(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function Ug(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function fs(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _h=new WeakMap;function fn(e,t){if(typeof e=="object"&&e!==null){var n=_h.get(e);return n!==void 0?n:(t={value:e,source:t,stack:dh(t)},_h.set(e,t),t)}return{value:e,source:t,stack:dh(t)}}var aa=[],oa=0,xu=null,Do=0,un=[],cn=0,Ii=null,Gn=1,Yn="";function ri(e,t){aa[oa++]=Do,aa[oa++]=xu,xu=e,Do=t}function Pg(e,t,n){un[cn++]=Gn,un[cn++]=Yn,un[cn++]=Ii,Ii=e;var i=Gn;e=Yn;var l=32-Wt(i)-1;i&=~(1<<l),n+=1;var a=32-Wt(t)+l;if(30<a){var o=l-l%5;a=(i&(1<<o)-1).toString(32),i>>=o,l-=o,Gn=1<<32-Wt(t)+l|n<<l|i,Yn=a+e}else Gn=1<<a|n<<l|i,Yn=e}function Ju(e){e.return!==null&&(ri(e,1),Pg(e,1,0))}function td(e){for(;e===xu;)xu=aa[--oa],aa[oa]=null,Do=aa[--oa],aa[oa]=null;for(;e===Ii;)Ii=un[--cn],un[cn]=null,Yn=un[--cn],un[cn]=null,Gn=un[--cn],un[cn]=null}function kg(e,t){un[cn++]=Gn,un[cn++]=Yn,un[cn++]=Ii,Gn=t.id,Yn=t.overflow,Ii=e}var ot=null,ze=null,oe=!1,Bi=null,dn=!1,Zs=Error(R(519));function Ji(e){var t=Error(R(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Lo(fn(t,e)),Zs}function Hh(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ut]=e,t[Bt]=i,n){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(n=0;n<Po.length;n++)ce(Po[n],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),hg(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),gg(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Sb(t.textContent,n)?(i.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),i.onScroll!=null&&ce("scroll",t),i.onScrollEnd!=null&&ce("scrollend",t),i.onClick!=null&&(t.onclick=Bn),t=!0):t=!1,t||Ji(e,!0)}function wu(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:dn=!1;return;case 27:case 3:dn=!0;return;default:ot=ot.return}}function Xl(e){if(e!==ot)return!1;if(!oe)return wu(e),oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Lf(e.type,e.memoizedProps)),n=!n),n&&ze&&Ji(e),wu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));ze=Op(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));ze=Op(e)}else t===27?(t=ze,tl(e.type)?(e=Pf,Pf=null,ze=e):ze=t):ze=ot?mn(e.stateNode.nextSibling):null;return!0}function wl(){ze=ot=null,oe=!1}function ds(){var e=Bi;return e!==null&&(Ht===null?Ht=e:Ht.push.apply(Ht,e),Bi=null),e}function Lo(e){Bi===null?Bi=[e]:Bi.push(e)}var Is=Kn(null),_l=null,ui=null;function Hi(e,t,n){Oe(Is,t._currentValue),t._currentValue=n}function si(e){e._currentValue=Is.current,st(Is)}function eu(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Js(e,t,n,i){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var a=l.dependencies;if(a!==null){var o=l.child;a=a.firstContext;e:for(;a!==null;){var r=a;a=l;for(var u=0;u<t.length;u++)if(r.context===t[u]){a.lanes|=n,r=a.alternate,r!==null&&(r.lanes|=n),eu(a.return,n,e),i||(o=null);break e}a=r.next}}else if(l.tag===18){if(o=l.return,o===null)throw Error(R(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),eu(o,n,e),o=null}else l.tag===13&&l.memoizedState!==null&&l.memoizedState.dehydrated===null?(l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),eu(l.return,n,e),o=l.child,o=o!==null?o.sibling:null):o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===e){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}}function Ml(e,t,n,i){e=null;for(var l=t,a=!1;l!==null;){if(!a){if((l.flags&524288)!==0)a=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var o=l.alternate;if(o===null)throw Error(R(387));if(o=o.memoizedProps,o!==null){var r=l.type;tn(l.pendingProps.value,o.value)||(e!==null?e.push(r):e=[r])}}else if(l===hu.current){if(o=l.alternate,o===null)throw Error(R(387));o.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Ca):e=[Ca])}l=l.return}return e!==null&&Js(t,e,n,i),t.flags|=262144,e!==null}function Mu(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function El(e){_l=e,ui=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Vg(_l,e)}function Ur(e,t){return _l===null&&El(e),Vg(e,t)}function Vg(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ui===null){if(e===null)throw Error(R(308));ui=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ui=ui.next=t;return n}var ix=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},lx=Fe.unstable_scheduleCallback,ax=Fe.unstable_NormalPriority,Qe={$$typeof:Vn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nd(){return{controller:new ix,data:new Map,refCount:0}}function Jo(e){e.refCount--,e.refCount===0&&lx(ax,function(){e.controller.abort()})}function Uh(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];n.indexOf(i)===-1&&n.push(i)}}}var mo=null;function ox(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var bo=null,Fs=0,Tl=0,fa=null;function rx(e,t){if(bo===null){var n=bo=[];Fs=0,Tl=zd(),fa={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Fs++,t.then(Ph,Ph),t}function Ph(){if(--Fs===0&&(mo=null,bo!==null)){fa!==null&&(fa.status="fulfilled");var e=bo;bo=null,Tl=0,fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ux(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(i.status="rejected",i.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),i}var kh=Q.S;Q.S=function(e,t){if(ib=Ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&rx(e,t),mo!==null)for(var n=Ta;n!==null;)Uh(n,mo),n=n.next;if(n=e.types,n!==null){for(var i=Ta;i!==null;)Uh(i,n),i=i.next;if(Tl!==0){i=mo,i===null&&(i=mo=[]);for(var l=0;l<n.length;l++){var a=n[l];i.indexOf(a)===-1&&i.push(a)}}}kh!==null&&kh(e,t)};var vl=Kn(null);function id(){var e=vl.current;return e!==null?e:Ne.pooledCache}function tu(e,t){t===null?Oe(vl,vl.current):Oe(vl,t.pool)}function Bg(){var e=id();return e===null?null:{parent:Qe._currentValue,pool:e}}var La=Error(R(460)),ld=Error(R(474)),Fu=Error(R(542)),Eu={then:function(){}};function Vh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Gg(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Bn,Bn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gh(e),e===void 0&&!("reason"in t)?Error(R(600)):e;default:if(typeof t.status=="string")t.then(Bn,Bn);else{if(e=Ne,e!==null&&100<e.shellSuspendCounter)throw Error(R(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=i}},function(i){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gh(e),e}throw Sl=t,La}}function ml(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Sl=n,La):n}}var Sl=null;function Bh(){if(Sl===null)throw Error(R(459));var e=Sl;return Sl=null,e}function Gh(e){if(e===La||e===Fu)throw Error(R(483))}var da=null,_o=0;function Pr(e){var t=_o;return _o+=1,da===null&&(da=[]),Gg(da,e,t)}function Ri(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function kr(e,t){throw t.$$typeof===Y1?Error(R(525)):(e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yg(e){function t(m,d){if(e){var g=m.deletions;g===null?(m.deletions=[d],m.flags|=16):g.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function i(m){for(var d=new Map;m!==null;)m.key===null?d.set(m.index,m):d.set(m.key,m),m=m.sibling;return d}function l(m,d){return m=ci(m,d),m.index=0,m.sibling=null,m}function a(m,d,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<d?(m.flags|=2,d):g):(m.flags|=134217730,d)):(m.flags|=1048576,d)}function o(m){return e&&m.alternate===null&&(m.flags|=134217730),m}function r(m,d,g,x){return d===null||d.tag!==6?(d=ss(g,m.mode,x),d.return=m,d):(d=l(d,g),d.return=m,d)}function u(m,d,g,x){var M=g.type;return M===Fl?(m=f(m,d,g.props.children,x,g.key),Ri(m,g),m):d!==null&&(d.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===zi&&ml(M)===d.type)?(d=l(d,g.props),Ri(d,g),d.return=m,d):(d=Wr(g.type,g.key,g.props,null,m.mode,x),Ri(d,g),d.return=m,d)}function c(m,d,g,x){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=fs(g,m.mode,x),d.return=m,d):(d=l(d,g.children||[]),d.return=m,d)}function f(m,d,g,x,M){return d===null||d.tag!==7?(d=bl(g,m.mode,x,M),d.return=m,d):(d=l(d,g),d.return=m,d)}function p(m,d,g){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=ss(""+d,m.mode,g),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Cr:return g=Wr(d.type,d.key,d.props,null,m.mode,g),Ri(g,d),g.return=m,g;case co:return d=fs(d,m.mode,g),d.return=m,d;case zi:return d=ml(d),p(m,d,g)}if(so(d)||io(d))return d=bl(d,m.mode,g,null),d.return=m,d;if(typeof d.then=="function")return p(m,Pr(d),g);if(d.$$typeof===Vn)return p(m,Ur(m,d),g);kr(m,d)}return null}function s(m,d,g,x){var M=d!==null?d.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return M!==null?null:r(m,d,""+g,x);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Cr:return g.key===M?u(m,d,g,x):null;case co:return g.key===M?c(m,d,g,x):null;case zi:return g=ml(g),s(m,d,g,x)}if(so(g)||io(g))return M!==null?null:f(m,d,g,x,null);if(typeof g.then=="function")return s(m,d,Pr(g),x);if(g.$$typeof===Vn)return s(m,d,Ur(m,g),x);kr(m,g)}return null}function h(m,d,g,x,M){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return m=m.get(g)||null,r(d,m,""+x,M);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Cr:return m=m.get(x.key===null?g:x.key)||null,u(d,m,x,M);case co:return m=m.get(x.key===null?g:x.key)||null,c(d,m,x,M);case zi:return x=ml(x),h(m,d,g,x,M)}if(so(x)||io(x))return m=m.get(g)||null,f(d,m,x,M,null);if(typeof x.then=="function")return h(m,d,g,Pr(x),M);if(x.$$typeof===Vn)return h(m,d,g,Ur(d,x),M);kr(d,x)}return null}function S(m,d,g,x){for(var M=null,T=null,w=d,N=d=0,V=null;w!==null&&N<g.length;N++){w.index>N?(V=w,w=null):V=w.sibling;var E=s(m,w,g[N],x);if(E===null){w===null&&(w=V);break}e&&w&&E.alternate===null&&t(m,w),d=a(E,d,N),T===null?M=E:T.sibling=E,T=E,w=V}if(N===g.length)return n(m,w),oe&&ri(m,N),M;if(w===null){for(;N<g.length;N++)w=p(m,g[N],x),w!==null&&(d=a(w,d,N),T===null?M=w:T.sibling=w,T=w);return oe&&ri(m,N),M}for(w=i(w);N<g.length;N++)V=h(w,m,N,g[N],x),V!==null&&(e&&(E=V.alternate,E!==null&&w.delete(E.key===null?N:E.key)),d=a(V,d,N),T===null?M=V:T.sibling=V,T=V);return e&&w.forEach(function(k){return t(m,k)}),oe&&ri(m,N),M}function b(m,d,g,x){if(g==null)throw Error(R(151));for(var M=null,T=null,w=d,N=d=0,V=null,E=g.next();w!==null&&!E.done;N++,E=g.next()){w.index>N?(V=w,w=null):V=w.sibling;var k=s(m,w,E.value,x);if(k===null){w===null&&(w=V);break}e&&w&&k.alternate===null&&t(m,w),d=a(k,d,N),T===null?M=k:T.sibling=k,T=k,w=V}if(E.done)return n(m,w),oe&&ri(m,N),M;if(w===null){for(;!E.done;N++,E=g.next())E=p(m,E.value,x),E!==null&&(d=a(E,d,N),T===null?M=E:T.sibling=E,T=E);return oe&&ri(m,N),M}for(w=i(w);!E.done;N++,E=g.next())E=h(w,m,N,E.value,x),E!==null&&(e&&(V=E.alternate,V!==null&&w.delete(V.key===null?N:V.key)),d=a(E,d,N),T===null?M=E:T.sibling=E,T=E);return e&&w.forEach(function(L){return t(m,L)}),oe&&ri(m,N),M}function v(m,d,g,x){if(typeof g=="object"&&g!==null&&g.type===Fl&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Cr:e:{for(var M=g.key;d!==null;){if(d.key===M){if(M=g.type,M===Fl){if(d.tag===7){n(m,d.sibling),x=l(d,g.props.children),Ri(x,g),x.return=m,m=x;break e}}else if(d.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===zi&&ml(M)===d.type){n(m,d.sibling),x=l(d,g.props),Ri(x,g),x.return=m,m=x;break e}n(m,d);break}else t(m,d);d=d.sibling}g.type===Fl?(x=bl(g.props.children,m.mode,x,g.key),Ri(x,g),x.return=m,m=x):(x=Wr(g.type,g.key,g.props,null,m.mode,x),Ri(x,g),x.return=m,m=x)}return o(m);case co:e:{for(M=g.key;d!==null;){if(d.key===M)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(m,d.sibling),x=l(d,g.children||[]),x.return=m,m=x;break e}else{n(m,d);break}else t(m,d);d=d.sibling}x=fs(g,m.mode,x),x.return=m,m=x}return o(m);case zi:return g=ml(g),v(m,d,g,x)}if(so(g))return S(m,d,g,x);if(io(g)){if(M=io(g),typeof M!="function")throw Error(R(150));return g=M.call(g),b(m,d,g,x)}if(typeof g.then=="function")return v(m,d,Pr(g),x);if(g.$$typeof===Vn)return v(m,d,Ur(m,g),x);kr(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,d!==null&&d.tag===6?(n(m,d.sibling),x=l(d,g),x.return=m,m=x):(n(m,d),x=ss(g,m.mode,x),x.return=m,m=x),o(m)):n(m,d)}return function(m,d,g,x){try{_o=0;var M=v(m,d,g,x);return da=null,M}catch(w){if(w===La||w===Fu)throw w;var T=Pt(29,w,null,m.mode);return T.lanes=x,T.return=m,T}finally{}}}var Nl=Yg(!0),qg=Yg(!1),Oi=!1;function ad(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $s(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Yi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ge&2)!==0){var l=i.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),i.pending=t,t=Su(e),_g(e,null,n),t}return Iu(e,i,t,n),Su(e)}function vo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,og(e,n)}}function ms(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var l=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?l=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?l=a=t:a=a.next=t}else l=a=t;n={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ws=!1;function So(){if(Ws){var e=fa;if(e!==null)throw e}}function xo(e,t,n,i){Ws=!1;var l=e.updateQueue;Oi=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,r=l.shared.pending;if(r!==null){l.shared.pending=null;var u=r,c=u.next;u.next=null,o===null?a=c:o.next=c,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,r=f.lastBaseUpdate,r!==o&&(r===null?f.firstBaseUpdate=c:r.next=c,f.lastBaseUpdate=u))}if(a!==null){var p=l.baseState;o=0,f=c=u=null,r=a;do{var s=r.lane&-536870913,h=s!==r.lane;if(h?(de&s)===s:(i&s)===s){s!==0&&s===Tl&&(Ws=!0),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var S=e,b=r;s=t;var v=n;switch(b.tag){case 1:if(S=b.payload,typeof S=="function"){p=S.call(v,p,s);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=b.payload,s=typeof S=="function"?S.call(v,p,s):S,s==null)break e;p=Re({},p,s);break e;case 2:Oi=!0}}s=r.callback,s!==null&&(e.flags|=64,h&&(e.flags|=8192),h=l.callbacks,h===null?l.callbacks=[s]:h.push(s))}else h={lane:s,tag:r.tag,payload:r.payload,callback:r.callback,next:null},f===null?(c=f=h,u=p):f=f.next=h,o|=s;if(r=r.next,r===null){if(r=l.shared.pending,r===null)break;h=r,r=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);f===null&&(u=p),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=f,a===null&&(l.shared.lanes=0),Wi|=o,e.lanes=o,e.memoizedState=p}}function jg(e,t){if(typeof e!="function")throw Error(R(191,e));e.call(t)}function Xg(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)jg(n[e],t)}var Fi=Kn(null),Tu=Kn(0);function Yh(e,t){e=gi,Oe(Tu,e),Oe(Fi,t),gi=e|t.baseLanes}function ef(){Oe(Tu,gi),Oe(Fi,Fi.current)}function od(){gi=Tu.current,st(Fi),st(Tu)}var mt=Kn(null),bt=null;function qi(e){var t=e.alternate;Oe(ft,ft.current&1),Oe(mt,e),bt===null&&(t===null||Fi.current!==null||t.memoizedState!==null)&&(bt=e)}function tf(e){Oe(ft,ft.current),Oe(mt,e),bt===null&&(bt=e)}function Kg(e){e.tag===22?(Oe(ft,ft.current),Oe(mt,e),bt===null&&(bt=e)):ji()}function ji(){Oe(ft,ft.current),Oe(mt,mt.current)}function Zt(e){st(mt),bt===e&&(bt=null),st(ft)}var ft=Kn(0);function Ho(e,t){Oe(mt,mt.current),Oe(ft,t)}function rd(e){st(ft),st(mt),bt===e&&(bt=null)}function Nu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Uf(n)||_d(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mi=0,ne=null,Me=null,Ke=null,Ru=!1,ma=!1,Rl=!1,Cu=0,Uo=0,ha=null,cx=0;function Ve(){throw Error(R(321))}function ud(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function cd(e,t,n,i,l,a){return mi=a,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Q.H=e===null||e.memoizedState===null?My:Ey,Rl=!1,a=n(i,l),Rl=!1,ma&&(a=Zg(t,n,i,l)),Qg(e),a}function Qg(e){Q.H=Au;var t=Me!==null&&Me.next!==null;if(mi=0,Ke=Me=ne=null,Ru=!1,Uo=0,ha=null,t)throw Error(R(300));e===null||Ze||(e=e.dependencies,e!==null&&Mu(e)&&(Ze=!0))}function Zg(e,t,n,i){ne=e;var l=0;do{if(ma&&(ha=null),Uo=0,ma=!1,25<=l)throw Error(R(301));if(l+=1,Ke=Me=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Q.H=yx,a=t(n,i)}while(ma);return a}function sx(){var e=Q.H,t=e.useState()[0];return t=typeof t.then=="function"?Fo(t):t,e=e.useState()[0],(Me!==null?Me.memoizedState:null)!==e&&(ne.flags|=1024),t}function sd(){var e=Cu!==0;return Cu=0,e}function fd(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function dd(e){if(Ru){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ru=!1}mi=0,Ke=Me=ne=null,ma=!1,Uo=Cu=0,ha=null}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ne.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ye(){if(Me===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ke===null?ne.memoizedState:Ke.next;if(t!==null)Ke=t,Me=e;else{if(e===null)throw ne.alternate===null?Error(R(467)):Error(R(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Ke===null?ne.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function $u(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=Uo;return Uo+=1,ha===null&&(ha=[]),e=Gg(ha,e,t),t=ne,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,Q.H=t===null||t.memoizedState===null?My:Ey),e}function Wu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Fo(e);if(e.$$typeof===X1)return;if(e.$$typeof===Vn)return ct(e)}throw Error(R(438,String(e)))}function md(e){var t=null,n=ne.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=ne.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=$u(),ne.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=j1;return t.index++,n}function hi(e,t){return typeof t=="function"?t(e):t}function nu(e){var t=Ye();return hd(t,Me,e)}function hd(e,t,n){var i=e.queue;if(i===null)throw Error(R(311));i.lastRenderedReducer=n;var l=e.baseQueue,a=i.pending;if(a!==null){if(l!==null){var o=l.next;l.next=a.next,a.next=o}t.baseQueue=l=a,i.pending=null}if(a=e.baseState,l===null)e.memoizedState=a;else{t=l.next;var r=o=null,u=null,c=t,f=!1;do{var p=c.lane&-536870913;if(p!==c.lane?(de&p)===p:(mi&p)===p){var s=c.revertLane;if(s===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===Tl&&(f=!0);else if((mi&s)===s){c=c.next,s===Tl&&(f=!0);continue}else p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=p,o=a):u=u.next=p,ne.lanes|=s,Wi|=s;p=c.action,Rl&&n(a,p),a=c.hasEagerState?c.eagerState:n(a,p)}else s={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=s,o=a):u=u.next=s,ne.lanes|=p,Wi|=p;c=c.next}while(c!==null&&c!==t);if(u===null?o=a:u.next=r,!tn(a,e.memoizedState)&&(Ze=!0,f&&(n=fa,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=u,i.lastRenderedState=a}return l===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function hs(e){var t=Ye(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var i=n.dispatch,l=n.pending,a=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do a=e(a,o.action),o=o.next;while(o!==l);tn(a,t.memoizedState)||(Ze=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function Ig(e,t,n){var i=ne,l=Ye(),a=oe;if(a){if(n===void 0)throw Error(R(407));n=n()}else n=t();var o=!tn((Me||l).memoizedState,n);if(o&&(l.memoizedState=n,Ze=!0),l=l.queue,pd($g.bind(null,i,l,e),[e]),e=l.getSnapshot!==t||o||Ke!==null&&(Ke.memoizedState.tag&1)!==0,xa(e?9:8,{destroy:void 0},Fg.bind(null,i,l,n,t),null),e){if(i.flags|=2048,Ne===null)throw Error(R(349));a||(mi&127)!==0||Jg(i,t,n)}return n}function Jg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t=$u(),ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fg(e,t,n,i){t.value=n,t.getSnapshot=i,Wg(t)&&ey(e)}function $g(e,t,n){return n(function(){Wg(t)&&ey(e)})}function Wg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tn(e,n)}catch{return!0}}function ey(e){var t=Ll(e,2);t!==null&&kt(t,e,2)}function nf(e){var t=At();if(typeof e=="function"){var n=e;if(e=n(),Rl){Li(!0);try{n()}finally{Li(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},t}function ty(e,t,n,i){return e.baseState=n,hd(e,Me,typeof i=="function"?i:hi)}function fx(e,t,n,i,l){if(tc(e))throw Error(R(485));if(e=t.action,e!==null){var a={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){a.listeners.push(o)}};Q.T!==null?n(!0):a.isTransition=!1,i(a),n=t.pending,n===null?(a.next=t.pending=a,ny(t,a)):(a.next=n.next,t.pending=n.next=a)}}function ny(e,t){var n=t.action,i=t.payload,l=e.state;if(t.isTransition){var a=Q.T,o={};o.types=a!==null?a.types:null,Q.T=o;try{var r=n(l,i),u=Q.S;u!==null&&u(o,r),qh(e,t,r)}catch(c){lf(e,t,c)}finally{a!==null&&o.types!==null&&(a.types=o.types),Q.T=a}}else try{a=n(l,i),qh(e,t,a)}catch(c){lf(e,t,c)}}function qh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){jh(e,t,i)},function(i){return lf(e,t,i)}):jh(e,t,n)}function jh(e,t,n){t.status="fulfilled",t.value=n,iy(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ny(e,n)))}function lf(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,iy(t),t=t.next;while(t!==i)}e.action=null}function iy(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ly(e,t){return t}function Xh(e,t){if(oe){var n=Ne.formState;if(n!==null){e:{var i=ne;if(oe){if(ze){t:{for(var l=ze,a=dn;l.nodeType!==8;){if(!a){l=null;break t}if(l=mn(l.nextSibling),l===null){l=null;break t}}a=l.data,l=a==="F!"||a==="F"?l:null}if(l){ze=mn(l.nextSibling),i=l.data==="F!";break e}}Ji(i)}i=!1}i&&(t=n[0])}}return n=At(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ly,lastRenderedState:t},n.queue=i,n=Sy.bind(null,ne,i),i.dispatch=n,i=nf(!1),a=vd.bind(null,ne,!1,i.queue),i=At(),l={state:t,dispatch:null,action:e,pending:null},i.queue=l,n=fx.bind(null,ne,l,a,n),l.dispatch=n,i.memoizedState=e,[t,n,!1]}function Kh(e){var t=Ye();return ay(t,Me,e)}function ay(e,t,n){if(t=hd(e,t,ly)[0],e=nu(hi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Fo(t)}catch(o){throw o===La?Fu:o}else i=t;t=Ye();var l=t.queue,a=l.dispatch;return n!==t.memoizedState&&(ne.flags|=2048,xa(9,{destroy:void 0},dx.bind(null,l,n),null)),[i,a,e]}function dx(e,t){e.action=t}function Qh(e){var t=Ye(),n=Me;if(n!==null)return ay(t,n,e);Ye(),t=t.memoizedState,n=Ye();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function xa(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=ne.updateQueue,t===null&&(t=$u(),ne.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function oy(){return Ye().memoizedState}function iu(e,t,n,i){var l=At();ne.flags|=e,l.memoizedState=xa(1|t,{destroy:void 0},n,i===void 0?null:i)}function ec(e,t,n,i){var l=Ye();i=i===void 0?null:i;var a=l.memoizedState.inst;Me!==null&&i!==null&&ud(i,Me.memoizedState.deps)?l.memoizedState=xa(t,a,n,i):(ne.flags|=e,l.memoizedState=xa(1|t,a,n,i))}function Zh(e,t){iu(8390656,8,e,t)}function pd(e,t){ec(2048,8,e,t)}function mx(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=$u(),ne.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ry(e){var t=Ye().memoizedState;return mx({ref:t,nextImpl:e}),function(){if((ge&2)!==0)throw Error(R(440));return t.impl.apply(void 0,arguments)}}function uy(e,t){return ec(4,2,e,t)}function cy(e,t){return ec(4,4,e,t)}function sy(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fy(e,t,n){n=n!=null?n.concat([e]):null,ec(4,4,sy.bind(null,t,e),n)}function gd(){}function dy(e,t){var n=Ye();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&ud(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function my(e,t){var n=Ye();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&ud(t,i[1]))return i[0];if(i=e(),Rl){Li(!0);try{e()}finally{Li(!1)}}return n.memoizedState=[i,t],i}function yd(e,t,n){return n===void 0||(mi&1073741824)!==0&&(de&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ab(),ne.lanes|=e,Wi|=e,n)}function hy(e,t,n,i){return tn(n,t)?n:Fi.current!==null?(e=yd(e,n,i),tn(e,t)||(Ze=!0),e):(mi&106)===0||(mi&1073741824)!==0&&(de&261930)===0?(Ze=!0,e.memoizedState=n):(e=ab(),ne.lanes|=e,Wi|=e,t)}function py(e,t,n,i,l){var a=ye.p;ye.p=a!==0&&8>a?a:8;var o=Q.T,r={};r.types=o!==null?o.types:null,Q.T=r,vd(e,!1,t,n);try{var u=l(),c=Q.S;if(c!==null&&c(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=ux(u,i);wo(e,t,f,en(e))}else wo(e,t,i,en(e))}catch(p){wo(e,t,{then:function(){},status:"rejected",reason:p},en())}finally{ye.p=a,o!==null&&r.types!==null&&(o.types=r.types),Q.T=o}}function hx(){}function af(e,t,n,i){if(e.tag!==5)throw Error(R(476));var l=gy(e).queue;py(e,l,t,yl,n===null?hx:function(){return yy(e),n(i)})}function gy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:yl,baseState:yl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:yl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yy(e){var t=gy(e);t.next===null&&(t=e.alternate.memoizedState),wo(e,t.next.queue,{},en())}function bd(){return ct(Ca)}function by(){return Ye().memoizedState}function vy(){return Ye().memoizedState}function px(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=en();e=Gi(n);var i=Yi(t,e,n);i!==null&&(kt(i,t,n),vo(i,t,n)),t={cache:nd()},e.payload=t;return}t=t.return}}function gx(e,t,n){var i=en();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},tc(e)?xy(t,n):(n=Wf(e,t,n,i),n!==null&&(kt(n,e,i),wy(n,t,i)))}function Sy(e,t,n){var i=en();wo(e,t,n,i)}function wo(e,t,n,i){var l={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(tc(e))xy(t,l);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,r=a(o,n);if(l.hasEagerState=!0,l.eagerState=r,tn(r,o))return Iu(e,t,l,0),Ne===null&&Zu(),!1}catch{}finally{}if(n=Wf(e,t,l,i),n!==null)return kt(n,e,i),wy(n,t,i),!0}return!1}function vd(e,t,n,i){if(i={lane:2,revertLane:zd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},tc(e)){if(t)throw Error(R(479))}else t=Wf(e,n,i,2),t!==null&&kt(t,e,2)}function tc(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function xy(e,t){ma=Ru=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wy(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,og(e,n)}}var Au={readContext:ct,use:Wu,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve,useEffectEvent:Ve},My={readContext:ct,use:Wu,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Zh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,iu(4194308,4,sy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return iu(4194308,4,e,t)},useInsertionEffect:function(e,t){iu(4,2,e,t)},useMemo:function(e,t){var n=At();t=t===void 0?null:t;var i=e();if(Rl){Li(!0);try{e()}finally{Li(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=At();if(n!==void 0){var l=n(t);if(Rl){Li(!0);try{n(t)}finally{Li(!1)}}}else l=t;return i.memoizedState=i.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},i.queue=e,e=e.dispatch=gx.bind(null,ne,e),[i.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:function(e){e=nf(e);var t=e.queue,n=Sy.bind(null,ne,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gd,useDeferredValue:function(e,t){var n=At();return yd(n,e,t)},useTransition:function(){var e=nf(!1);return e=py.bind(null,ne,e.queue,!0,!1),At().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=ne,l=At();if(oe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ne===null)throw Error(R(349));(de&127)!==0||Jg(i,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,Zh($g.bind(null,i,a,e),[e]),i.flags|=2048,xa(9,{destroy:void 0},Fg.bind(null,i,a,n,t),null),n},useId:function(){var e=At(),t=Ne.identifierPrefix;if(oe){var n=Yn,i=Gn;n=(i&~(1<<32-Wt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Cu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=cx++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bd,useFormState:Xh,useActionState:Xh,useOptimistic:function(e){var t=At();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=vd.bind(null,ne,!0,n),n.dispatch=t,[e,t]},useMemoCache:md,useCacheRefresh:function(){return At().memoizedState=px.bind(null,ne)},useEffectEvent:function(e){var t=At(),n={impl:e};return t.memoizedState=n,function(){if((ge&2)!==0)throw Error(R(440));return n.impl.apply(void 0,arguments)}}},Ey={readContext:ct,use:Wu,useCallback:dy,useContext:ct,useEffect:pd,useImperativeHandle:fy,useInsertionEffect:uy,useLayoutEffect:cy,useMemo:my,useReducer:nu,useRef:oy,useState:function(){return nu(hi)},useDebugValue:gd,useDeferredValue:function(e,t){var n=Ye();return hy(n,Me.memoizedState,e,t)},useTransition:function(){var e=nu(hi)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Fo(e),t]},useSyncExternalStore:Ig,useId:by,useHostTransitionStatus:bd,useFormState:Kh,useActionState:Kh,useOptimistic:function(e,t){var n=Ye();return ty(n,Me,e,t)},useMemoCache:md,useCacheRefresh:vy,useEffectEvent:ry},yx={readContext:ct,use:Wu,useCallback:dy,useContext:ct,useEffect:pd,useImperativeHandle:fy,useInsertionEffect:uy,useLayoutEffect:cy,useMemo:my,useReducer:hs,useRef:oy,useState:function(){return hs(hi)},useDebugValue:gd,useDeferredValue:function(e,t){var n=Ye();return Me===null?yd(n,e,t):hy(n,Me.memoizedState,e,t)},useTransition:function(){var e=hs(hi)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Fo(e),t]},useSyncExternalStore:Ig,useId:by,useHostTransitionStatus:bd,useFormState:Qh,useActionState:Qh,useOptimistic:function(e,t){var n=Ye();return Me!==null?ty(n,Me,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:md,useCacheRefresh:vy,useEffectEvent:ry};function ps(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var of={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=en(),l=Gi(i);l.payload=t,n!=null&&(l.callback=n),t=Yi(e,l,i),t!==null&&(kt(t,e,i),vo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=en(),l=Gi(i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Yi(e,l,i),t!==null&&(kt(t,e,i),vo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=en(),i=Gi(n);i.tag=2,t!=null&&(i.callback=t),t=Yi(e,i,n),t!==null&&(kt(t,e,n),vo(t,e,n))}};function Ih(e,t,n,i,l,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,a,o):t.prototype&&t.prototype.isPureReactComponent?!Oo(n,i)||!Oo(l,a):!0}function Jh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&of.enqueueReplaceState(t,t.state,null)}function Cl(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Re({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function Ty(e){vu(e)}function Ny(e){console.error(e)}function Ry(e){vu(e)}function zu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Fh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function rf(e,t,n){return n=Gi(n),n.tag=3,n.payload={element:null},n.callback=function(){zu(e,t)},n}function Cy(e){return e=Gi(e),e.tag=3,e}function Ay(e,t,n,i){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var a=i.value;e.payload=function(){return l(a)},e.callback=function(){Fh(t,n,i)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Fh(t,n,i),typeof l!="function"&&(Xi===null?Xi=new Set([this]):Xi.add(this));var r=i.stack;this.componentDidCatch(i.value,{componentStack:r!==null?r:""})})}function bx(e,t,n,i,l){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Ml(t,n,l,!0),n=mt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return bt===null?ku():n.alternate===null&&Be===0&&(Be=3),n.flags&=-257,n.flags|=65536,n.lanes=l,i===Eu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),ws(e,i,l)),!1;case 22:return n.flags|=65536,i===Eu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),ws(e,i,l)),!1}throw Error(R(435,n.tag))}return ws(e,i,l),ku(),!1}if(oe)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,i!==Zs&&(e=Error(R(422),{cause:i}),Lo(fn(e,n)))):(i!==Zs&&(t=Error(R(423),{cause:i}),Lo(fn(t,n))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,i=fn(i,n),l=rf(e.stateNode,i,l),ms(e,l),Be!==4&&(Be=2)),!1;var a=Error(R(520),{cause:i});if(a=fn(a,n),No===null?No=[a]:No.push(a),Be!==4&&(Be=2),t===null)return!0;i=fn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=rf(n.stateNode,i,e),ms(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(Xi===null||!Xi.has(a))))return n.flags|=65536,l&=-l,n.lanes|=l,l=Cy(l),Ay(l,e,n,i),ms(n,l),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Sd=Error(R(461)),Ze=!1;function Ie(e,t,n,i){t.child=e===null?qg(t,null,n,i):Nl(t,e.child,n,i)}function $h(e,t,n,i,l){n=n.render;var a=t.ref;if("ref"in i){var o={};for(var r in i)r!=="ref"&&(o[r]=i[r])}else o=i;return El(t),i=cd(e,t,n,o,a,l),r=sd(),e!==null&&!Ze?(fd(e,t,l),pi(e,t,l)):(oe&&r&&Ju(t),t.flags|=1,Ie(e,t,i,l),t.child)}function Wh(e,t,n,i,l){if(e===null){var a=n.type;return typeof a=="function"&&!ed(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,zy(e,t,a,i,l)):(e=Wr(n.type,null,i,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!wd(e,l)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Oo,n(o,i)&&e.ref===t.ref)return pi(e,t,l)}return t.flags|=1,e=ci(a,i),e.ref=t.ref,e.return=t,t.child=e}function zy(e,t,n,i,l){if(e!==null){var a=e.memoizedProps;if(Oo(a,i)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=i=a,wd(e,l))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,pi(e,t,l)}return uf(e,t,n,i,l)}function Oy(e,t,n,i){var l=i.children,a=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(a=a!==null?a.baseLanes|n:n,e!==null){for(i=t.child=e.child,l=0;i!==null;)l=l|i.lanes|i.childLanes,i=i.sibling;i=l&~a}else i=0,t.child=null;return ep(e,t,a,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&tu(t,a!==null?a.cachePool:null),a!==null?Yh(t,a):ef(),Kg(t);else return i=t.lanes=536870912,ep(e,t,a!==null?a.baseLanes|n:n,n,i)}else a!==null?(tu(t,a.cachePool),Yh(t,a),ji(),t.memoizedState=null):(e!==null&&tu(t,null),ef(),ji());return Ie(e,t,l,n),t.child}function Mo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ep(e,t,n,i,l){var a=id();return a=a===null?null:{parent:Qe._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&tu(t,null),ef(),Kg(t),e!==null&&Ml(e,t,i,!0),t.childLanes=l,null}function lu(e,t){return t=nc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function tp(e,t,n){return Nl(t,e.child,null,n),e=lu(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function vx(e,t,n){var i=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(i.mode==="hidden")return e=lu(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Mo(null,e);if(tf(t),(e=ze)?(e=Ob(e,dn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ii!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=Ug(e),n.return=t,t.child=n,ot=t,ze=null)):e=null,e===null)throw Ji(t);return t.lanes=536870912,null}return lu(t,i)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(tf(t),l)if(t.flags&256)t.flags&=-257,t=tp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(R(558));else if(Ze||Ml(e,t,n,!1),l=(n&e.childLanes)!==0,Ze||l){if(Fi.current===null){if(i=Ne,i!==null&&(o=rg(i,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Ll(e,o),kt(i,e,o),Sd;ku()}t=tp(e,t,n)}else e=a.treeContext,ze=mn(o.nextSibling),ot=t,oe=!0,Bi=null,dn=!1,e!==null&&kg(t,e),t=lu(t,i),t.flags|=134221824;return t}return e=ci(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ql(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(R(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function uf(e,t,n,i,l){return El(t),n=cd(e,t,n,i,void 0,l),i=sd(),e!==null&&!Ze?(fd(e,t,l),pi(e,t,l)):(oe&&i&&Ju(t),t.flags|=1,Ie(e,t,n,l),t.child)}function np(e,t,n,i,l,a){return El(t),t.updateQueue=null,n=Zg(t,i,n,l),Qg(e),i=sd(),e!==null&&!Ze?(fd(e,t,a),pi(e,t,a)):(oe&&i&&Ju(t),t.flags|=1,Ie(e,t,n,a),t.child)}function ip(e,t,n,i,l){if(El(t),t.stateNode===null){var a=la,o=n.contextType;typeof o=="object"&&o!==null&&(a=ct(o)),a=new n(i,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=of,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=i,a.state=t.memoizedState,a.refs={},ad(t),o=n.contextType,a.context=typeof o=="object"&&o!==null?ct(o):la,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(ps(t,n,o,i),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(o=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),o!==a.state&&of.enqueueReplaceState(a,a.state,null),xo(t,i,a,l),So(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){a=t.stateNode;var r=t.memoizedProps,u=Cl(n,r);a.props=u;var c=a.context,f=n.contextType;o=la,typeof f=="object"&&f!==null&&(o=ct(f));var p=n.getDerivedStateFromProps;f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(r||c!==o)&&Jh(t,a,i,o),Oi=!1;var s=t.memoizedState;a.state=s,xo(t,i,a,l),So(),c=t.memoizedState,r||s!==c||Oi?(typeof p=="function"&&(ps(t,n,p,i),c=t.memoizedState),(u=Oi||Ih(t,n,u,i,s,c,o))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),a.props=i,a.state=c,a.context=o,i=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{a=t.stateNode,$s(e,t),o=t.memoizedProps,f=Cl(n,o),a.props=f,p=t.pendingProps,s=a.context,c=n.contextType,u=la,typeof c=="object"&&c!==null&&(u=ct(c)),r=n.getDerivedStateFromProps,(c=typeof r=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==p||s!==u)&&Jh(t,a,i,u),Oi=!1,s=t.memoizedState,a.state=s,xo(t,i,a,l),So();var h=t.memoizedState;o!==p||s!==h||Oi||e!==null&&e.dependencies!==null&&Mu(e.dependencies)?(typeof r=="function"&&(ps(t,n,r,i),h=t.memoizedState),(f=Oi||Ih(t,n,f,i,s,h,u)||e!==null&&e.dependencies!==null&&Mu(e.dependencies))?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(i,h,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(i,h,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=h),a.props=i,a.state=h,a.context=u,i=f):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),i=!1)}return a=i,Ql(e,t),i=(t.flags&128)!==0,a||i?(a=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&i?(t.child=Nl(t,e.child,null,l),t.child=Nl(t,null,n,l)):Ie(e,t,n,l),t.memoizedState=a.state,e=t.child):e=pi(e,t,l),e}function lp(e,t,n,i){return wl(),t.flags|=256,Ie(e,t,n,i),t.child}var cf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sf(e){return{baseLanes:e,cachePool:Bg()}}function ff(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Jt),e}function Dy(e,t,n){var i=t.pendingProps,l=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),o&&(l=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(l?qi(t):ji(),(e=ze)?(e=Ob(e,dn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ii!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=Ug(e),n.return=t,t.child=n,ot=t,ze=null)):e=null,e===null)throw Ji(t);return _d(e)?t.lanes=32:t.lanes=536870912,null}return a=i.children,i=i.fallback,l?(ji(),l=t.mode,a=nc({mode:"hidden",children:a},l),i=bl(i,l,n,null),a.return=t,i.return=t,a.sibling=i,t.child=a,i=t.child,i.memoizedState=sf(n),i.childLanes=ff(e,o,n),t.memoizedState=cf,Mo(null,i)):(qi(t),xd(t,a))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return Sx(e,t,a,o,i,u,r,n)}return l?(ji(),l=i.fallback,a=t.mode,r=e.child,u=r.sibling,i=ci(r,{mode:"hidden",children:i.children}),i.subtreeFlags=r.subtreeFlags&1206910976,u!==null?l=ci(u,l):(l=bl(l,a,n,null),l.flags|=2),l.return=t,i.return=t,i.sibling=l,t.child=i,Mo(null,i),i=t.child,l=e.child.memoizedState,l===null?l=sf(n):(a=l.cachePool,a!==null?(r=Qe._currentValue,a=a.parent!==r?{parent:r,pool:r}:a):a=Bg(),l={baseLanes:l.baseLanes|n,cachePool:a}),i.memoizedState=l,i.childLanes=ff(e,o,n),t.memoizedState=cf,Mo(e.child,i)):(qi(t),n=e.child,e=n.sibling,n=ci(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function xd(e,t){return t=nc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function nc(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Vr(e,t,n){return Nl(t,e.child,null,n),e=xd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sx(e,t,n,i,l,a,o,r){if(n)return t.flags&256?(qi(t),t.flags&=-257,Vr(e,t,r)):t.memoizedState!==null?(ji(),t.child=e.child,t.flags|=128,null):(ji(),a=l.fallback,o=t.mode,l=nc({mode:"visible",children:l.children},o),a=bl(a,o,r,null),a.flags|=2,l.return=t,a.return=t,l.sibling=a,t.child=l,Nl(t,e.child,null,r),l=t.child,l.memoizedState=sf(r),l.childLanes=ff(e,i,r),t.memoizedState=cf,Mo(null,l));if(qi(t),_d(a)){if(i=a.nextSibling&&a.nextSibling.dataset,i)var u=i.dgst;return i=u,i!==""&&(l=Error(R(419)),l.stack="",l.digest=i,Lo({value:l,source:null,stack:null})),Vr(e,t,r)}if(Ze||Ml(e,t,r,!1),i=(r&e.childLanes)!==0,Ze||i){if(Fi.current!==null)return Vr(e,t,r);if(i=Ne,i!==null&&(l=rg(i,r),l!==0&&l!==o.retryLane))throw o.retryLane=l,Ll(e,l),kt(i,e,l),Sd;return Uf(a)||ku(),Vr(e,t,r)}return Uf(a)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,ze=mn(a.nextSibling),ot=t,oe=!0,Bi=null,dn=!1,e!==null&&kg(t,e),t=xd(t,l.children),t.flags|=134221824,t)}function ap(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),eu(e.return,t,n)}function op(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Nu(n)===null&&(t=e),e=e.sibling}return t}function Br(e,t,n,i,l,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:l,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=l,o.treeForkCount=a)}function gs(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function df(e,t,n){var i=t.pendingProps,l=i.revealOrder,a=i.tail;i=i.children;var o=ft.current;if(t.flags&128)return Ho(t,o),null;var r=(o&2)!==0;if(r?(o=o&1|2,t.flags|=128):o&=1,Ho(t,o),l==="backwards"&&e!==null?(gs(e),Ie(e,t,i,n),gs(e)):Ie(e,t,i,n),i=oe?Do:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ap(e,n,t);else if(e.tag===19)ap(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"backwards":n=op(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null,gs(t)),Br(t,!0,l,null,a,i);break;case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Nu(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Br(t,!0,n,null,a,i);break;case"together":Br(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:n=op(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Br(t,!1,l,n,a,i)}return t.child}function rp(e,t,n){var i=t.pendingProps;return Hi(t,t.type,i.value),Ie(e,t,i.children,n),t.child}function pi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ml(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=ci(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ci(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Mu(e)))}function xx(e,t,n){switch(t.tag){case 3:pu(t,t.stateNode.containerInfo),Hi(t,Qe,e.memoizedState.cache),wl();break;case 27:case 5:ks(t);break;case 4:pu(t,t.stateNode.containerInfo);break;case 10:Hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,tf(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return qi(t),t.flags|=128,null;i=Ml(e,t,n,!1);var l=t.child.childLanes;return i||(n&l)!==0?Dy(e,t,n):(qi(t),e=pi(e,t,n),e!==null?e.sibling:null)}qi(t);break;case 19:if(t.flags&128)return df(e,t,n);if(l=(e.flags&128)!==0,i=(n&t.childLanes)!==0,i||(Ml(e,t,n,!1),i=(n&t.childLanes)!==0),l){if(i)return df(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ho(t,ft.current),i)break;return null;case 22:return t.lanes=0,Oy(e,t,n,t.pendingProps);case 24:Hi(t,Qe,e.memoizedState.cache)}return pi(e,t,n)}function Ly(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!wd(e,n)&&(t.flags&128)===0)return Ze=!1,xx(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,oe&&(t.flags&1048576)!==0&&Pg(t,Do,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ml(t.elementType),t.type=e,typeof e=="function")ed(e)?(i=Cl(e,i),t.tag=1,t=ip(null,t,e,i,n)):(t.tag=0,t=uf(null,t,e,i,n));else{if(e!=null){var l=e.$$typeof;if(l===Gf){t.tag=11,t=$h(null,t,e,i,n);break e}else if(l===Yf){t.tag=14,t=Wh(null,t,e,i,n);break e}else if(l===Vn){t.tag=10,t.type=e,t=rp(null,t,n);break e}}throw t=Us(e)||e,Error(R(306,t,""))}}return t;case 0:return uf(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,l=Cl(i,t.pendingProps),ip(e,t,i,l,n);case 3:e:{if(pu(t,t.stateNode.containerInfo),e===null)throw Error(R(387));i=t.pendingProps;var a=t.memoizedState;l=a.element,$s(e,t),xo(t,i,null,n);var o=t.memoizedState;if(i=o.cache,Hi(t,Qe,i),i!==a.cache&&Js(t,[Qe],n,!0),So(),i=o.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=lp(e,t,i,n);break e}else if(i!==l){l=fn(Error(R(424)),t),Lo(l),t=lp(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ze=mn(e.firstChild),ot=t,oe=!0,Bi=null,dn=!0,n=qg(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(wl(),i===l){t=pi(e,t,n);break e}Ie(e,t,i,n)}t=t.child}return t;case 26:return Ql(e,t),e===null?(n=_p(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(t.stateNode=wb(t.type,t.pendingProps,Vi.current,t)):t.memoizedState=_p(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ks(t),e===null&&oe&&(i=t.stateNode=Db(t.type,t.pendingProps,Vi.current),ot=t,dn=!0,l=ze,tl(t.type)?(Pf=l,ze=mn(i.firstChild)):ze=l),Ie(e,t,t.pendingProps.children,n),Ql(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((l=i=ze)&&(i=mw(i,t.type,t.pendingProps,dn),i!==null?(t.stateNode=i,ot=t,ze=mn(i.firstChild),dn=!1,l=!0):l=!1),l||Ji(t)),ks(t),l=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,Lf(l,a)?i=null:o!==null&&Lf(l,o)&&(t.flags|=32),t.memoizedState!==null&&(l=cd(e,t,sx,null,null,n),Ca._currentValue=l),Ql(e,t),Ie(e,t,i,n),t.child;case 6:return e===null&&oe&&((e=n=ze)&&(n=hw(n,t.pendingProps,dn),n!==null?(t.stateNode=n,ot=t,ze=null,e=!0):e=!1),e||Ji(t)),null;case 13:return Dy(e,t,n);case 4:return pu(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Nl(t,null,i,n):Ie(e,t,i,n),t.child;case 11:return $h(e,t,t.type,t.pendingProps,n);case 7:return i=t.pendingProps,Ql(e,t),Ie(e,t,i,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:return rp(e,t,n);case 9:return l=t.type._context,i=t.pendingProps.children,El(t),l=ct(l),i=i(l),t.flags|=1,Ie(e,t,i,n),t.child;case 14:return Wh(e,t,t.type,t.pendingProps,n);case 15:return zy(e,t,t.type,t.pendingProps,n);case 19:return df(e,t,n);case 31:return vx(e,t,n);case 22:return Oy(e,t,n,t.pendingProps);case 24:return El(t),i=ct(Qe),e===null?(l=id(),l===null&&(l=Ne,a=nd(),l.pooledCache=a,a.refCount++,a!==null&&(l.pooledCacheLanes|=n),l=a),t.memoizedState={parent:i,cache:l},ad(t),Hi(t,Qe,l)):((e.lanes&n)!==0&&($s(e,t),xo(t,null,null,n),So()),l=e.memoizedState,a=t.memoizedState,l.parent!==i?(l={parent:i,cache:i},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Hi(t,Qe,i)):(i=a.cache,Hi(t,Qe,i),i!==l.cache&&Js(t,[Qe],n,!0))),Ie(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:oe&&Ju(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:Ql(e,t),Ie(e,t,i.children,n),t.child;case 29:throw t.pendingProps}throw Error(R(156,t.tag))}function oi(e){e.flags|=4}function ys(e,t,n,i,l){var a;if((a=(e.mode&32)!==0)&&(a=n===null?Pp(t,i):Pp(t,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(ub())e.flags|=8192;else throw Sl=Eu,ld}else e.flags&=-16777217}function up(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ub(t))if(ub())e.flags|=8192;else throw Sl=Eu,ld}function Gr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?lg():536870912,e.lanes|=t,wa|=t)}function ao(e,t){if(!oe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags&1206910976,i|=l.flags&1206910976,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags,i|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function wx(e,t,n){var i=t.pendingProps;switch(td(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),si(Qe),ba(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Xl(t)?oi(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ds())),Ae(t),null;case 26:var l=t.type,a=t.memoizedState;return e===null?(oi(t),a!==null?(Ae(t),up(t,a)):(Ae(t),ys(t,l,null,i,n))):a?a!==e.memoizedState?(oi(t),Ae(t),up(t,a)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&oi(t),Ae(t),ys(t,l,e,i,n)),null;case 27:if(gu(t),n=Vi.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&oi(t);else{if(!i){if(t.stateNode===null)throw Error(R(166));return Ae(t),t.subtreeFlags&=-33554433,null}e=qn.current,Xl(t)?Hh(t,e):(e=Db(l,i,n),t.stateNode=e,oi(t))}return Ae(t),t.subtreeFlags&=-33554433,null;case 5:if(gu(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&oi(t);else{if(!i){if(t.stateNode===null)throw Error(R(166));return Ae(t),t.subtreeFlags&=-33554433,null}if(a=qn.current,Xl(t))Hh(t,a);else{var o=Vo(Vi.current);switch(a){case 1:a=o.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:a=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":a=o.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":a=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":a=o.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof i.is=="string"?o.createElement("select",{is:i.is}):o.createElement("select"),i.multiple?a.multiple=!0:i.size&&(a.size=i.size);break;default:a=typeof i.is=="string"?o.createElement(l,{is:i.is}):o.createElement(l)}}a[ut]=t,a[Bt]=i;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;e:switch(dt(a,l,i),l){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&oi(t)}}return Ae(t),t.subtreeFlags&=-33554433,ys(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&oi(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(R(166));if(e=Vi.current,Xl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,l=ot,l!==null)switch(l.tag){case 27:case 5:i=l.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Sb(e.nodeValue,n)),e||Ji(t,!0)}else e=Vo(e).createTextNode(i),e[ut]=t,t.stateNode=e}return Ae(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Xl(t),n!==null){if(e===null){if(!i)throw Error(R(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(557));e[ut]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else n=ds(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(R(558))}return Ae(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Xl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!l)throw Error(R(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(R(317));l[ut]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),l=!1}else l=ds(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,l=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(l=i.alternate.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==l&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Gr(t,t.updateQueue),Ae(t),null);case 4:return ba(),e===null&&Od(t.stateNode.containerInfo),t.flags|=67108864,Ae(t),null;case 10:return si(t.type),Ae(t),null;case 19:if(rd(t),i=t.memoizedState,i===null)return Ae(t),null;if(l=(t.flags&128)!==0,a=i.rendering,a===null)if(l)ao(i,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=Nu(e),a!==null){for(t.flags|=128,ao(i,!1),e=a.updateQueue,t.updateQueue=e,Gr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Hg(n,e),n=n.sibling;return Ho(t,ft.current&1|2),oe&&ri(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ft()>Uu&&(t.flags|=128,l=!0,ao(i,!1),t.lanes=4194304)}else{if(!l)if(e=Nu(a),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Gr(t,e),ao(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!a.alternate&&!oe)return Ae(t),null}else 2*Ft()-i.renderingStartTime>Uu&&n!==536870912&&(t.flags|=128,l=!0,ao(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(e=i.last,e!==null?e.sibling=a:t.child=a,i.last=a)}if(i.tail!==null){e=i.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ft(),e.sibling=null,a=ft.current,a=l?a&1|2:a&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||oe?Ho(t,a):(n=a,Oe(mt,t),Oe(ft,n),bt===null&&(bt=t)),oe&&ri(t,i.treeForkCount),e}return Ae(t),null;case 22:case 23:return Zt(t),od(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),n=t.updateQueue,n!==null&&Gr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&st(vl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),si(Qe),Ae(t),null;case 25:return null;case 30:return t.flags|=33554432,Ae(t),null}throw Error(R(156,t.tag))}function Mx(e,t){switch(td(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return si(Qe),ba(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return gu(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(R(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return rd(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ba(),null;case 10:return si(t.type),null;case 22:case 23:return Zt(t),od(),e!==null&&st(vl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return si(Qe),null;case 25:return null;default:return null}}function _y(e,t){switch(td(t),t.tag){case 3:si(Qe),ba();break;case 26:case 27:case 5:gu(t);break;case 4:ba();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:rd(t);break;case 10:si(t.type);break;case 22:case 23:Zt(t),od(),e!==null&&st(vl);break;case 24:si(Qe)}}function $o(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var l=i.next;n=l;do{if((n.tag&e)===e){i=void 0;var a=n.create,o=n.inst;i=a(),o.destroy=i}n=n.next}while(n!==l)}}catch(r){xe(t,t.return,r)}}function $i(e,t,n){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var a=l.next;i=a;do{if((i.tag&e)===e){var o=i.inst,r=o.destroy;if(r!==void 0){o.destroy=void 0,l=t;var u=n,c=r;try{c()}catch(f){xe(l,u,f)}}}i=i.next}while(i!==a)}}catch(f){xe(t,t.return,f)}}function Hy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xg(t,n)}catch(i){xe(e,e.return,i)}}}function Uy(e,t,n){n.props=Cl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){xe(e,t,i)}}function Pn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var l=e.stateNode,a=di(e.memoizedProps,l);(l.ref===null||l.ref.name!==a)&&(l.ref=Nb(a)),i=l.ref;break;case 7:if(e.stateNode===null){var o=new nn(e);Vt(e.child,!1,fw,o,void 0,void 0),e.stateNode=o}i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){xe(e,t,r)}}function rt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(l){xe(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){xe(e,t,l)}else n.current=null}function Ou(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)zb(e.stateNode,t[n])}function cp(e){for(var t=e.return;t!==null&&(Ed(t)&&zb(e.stateNode,t.stateNode),!Md(t));)t=t.return}function Eo(e){for(var t=e.return;t!==null&&(Ed(t)&&dw(e.stateNode,t.stateNode),!Md(t));)t=t.return}function Md(e){return e.tag===5||e.tag===3||e.tag===27}function Ed(e){return e&&e.tag===7&&e.stateNode!==null}function mf(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(l){xe(e,e.return,l)}}function bs(e,t,n){try{var i=e.stateNode;Qx(i,e.type,n,t),i[Bt]=t}catch(l){xe(e,e.return,l)}}function Py(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tl(e.type)||e.tag===4}function vs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Py(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&tl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hf(e,t,n,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(l,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(l),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bn)),Ou(e,i),pe=!0;else if(l!==4&&(l===27&&(Ou(e,i),i=null,tl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(hf(e,t,n,i),e=e.sibling;e!==null;)hf(e,t,n,i),e=e.sibling}function Du(e,t,n,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?n.insertBefore(l,t):n.appendChild(l),Ou(e,i),pe=!0;else if(l!==4&&(l===27&&(Ou(e,i),i=null,tl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Du(e,t,n,i),e=e.sibling;e!==null;)Du(e,t,n,i),e=e.sibling}function ky(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);dt(t,i,n),t[ut]=e,t[Bt]=n}catch(a){xe(e,e.return,a)}}var Lu=!1,It=null;function sp(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Lu=!0)}var kn=null;function fp(){var e=kn;return kn=null,e}var Ut=0;function _a(e,t,n,i,l){return Ut=0,Vy(e.child,t,n,i,l)}function Vy(e,t,n,i,l){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(i!==null){var r=_f(o);i.push(r),r.view&&(a=!0)}else a||_f(o).view&&(a=!0);Lu=!0,Mb(o,Ut===0?t:t+"_"+Ut,n),Ut++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&l||Vy(e.child,t,n,i,l)&&(a=!0));e=e.sibling}return a}function Xn(e,t){for(;e!==null;)e.tag===5?Eb(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Xn(e.child,t)),e=e.sibling}function au(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(au(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(R(544));var n=t.name;t=bi(t.default,t.share),t!=="none"&&(_a(e,n,t,null,!1)||Xn(e.child,!1))}e=e.sibling}}function pf(e,t){if(e.tag===30){var n=e.stateNode,i=e.memoizedProps,l=di(i,n),a=bi(i.default,n.paired?i.share:i.enter);a!=="none"?_a(e,l,a,null,!1)?(au(e),n.paired||t||Ma(e,i.onEnter)):Xn(e.child,!1):au(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)pf(e,t),e=e.sibling;else au(e)}function gf(e){if(It!==null&&It.size!==0){var t=It;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var l=t.get(i);if(l!==void 0){var a=bi(n.default,n.share);if(a!=="none"&&(_a(e,i,a,null,!1)?(a=e.stateNode,l.paired=a,a.paired=l,Ma(e,n.onShare)):Xn(e.child,!1)),t.delete(i),t.size===0)break}}}gf(e)}e=e.sibling}}}function yf(e){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode),i=It!==null?It.get(n):void 0,l=bi(t.default,i!==void 0?t.share:t.exit);l!=="none"&&(_a(e,n,l,null,!1)?i!==void 0?(l=e.stateNode,i.paired=l,l.paired=i,It.delete(n),Ma(e,t.onShare)):Ma(e,t.onExit):Xn(e.child,!1)),It!==null&&gf(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)yf(e),e=e.sibling;else It!==null&&gf(e)}function By(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode);t=bi(t.default,t.update),e.flags&=-5,t!=="none"&&_a(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&By(e);e=e.sibling}}function bf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Xn(e.child,!1))}bf(e)}e=e.sibling}}function ou(e){if(e.tag===30)e.stateNode.paired=null,Xn(e.child,!1),bf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)ou(e),e=e.sibling;else bf(e)}function Gy(e){for(e=e.child;e!==null;)e.tag===30?Xn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Gy(e),e=e.sibling}function Td(e,t,n,i,l,a,o){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(a!==null&&Ut<a.length){var c=a[Ut],f=_f(u);(c.view||f.view)&&(r=!0);var p;if(p=(e.flags&4)===0)if(f.clip)p=!0;else{p=c.rect;var s=f.rect;p=p.y!==s.y||p.x!==s.x||p.height!==s.height||p.width!==s.width}p&&(e.flags|=4),f.abs?f=!c.abs:(c=c.rect,f=f.rect,f=c.height!==f.height||c.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Mb(u,Ut===0?n:n+"_"+Ut,l),r&&(e.flags&4)!==0||(kn===null&&(kn=[]),kn.push(u,Ut===0?i:i+"_"+Ut,t.memoizedProps)),Ut++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Td(e,t.child,n,i,l,a,o)&&(r=!0));t=t.sibling}return r}function Yy(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,i=e.stateNode,l=di(n,i),a=bi(n.default,n.update);if(t){i=i.clones;var o=i===null?null:i.map(Wx)}else o=e.memoizedState,e.memoizedState=null;i=e;var r=e.child;Ut=0,l=Td(i,r,l,l,a,o,!1),(e.flags&4)!==0&&l&&(t||Ma(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&Yy(e,t);e=e.sibling}}var it=!1,be=!1,_n=!1,Ss=!1,dp=typeof WeakSet=="function"?WeakSet:Set,lt=null,Hn=!1,ho=!1,_u=!1,vf=!1;function Ex(e,t,n){if(e=e.containerInfo,Of=Aa,e=Rg(e),Ff(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var a=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{i.nodeType,o.nodeType}catch{i=null;break e}var r=0,u=-1,c=-1,f=0,p=0,s=e,h=null;t:for(;;){for(var S;s!==i||a!==0&&s.nodeType!==3||(u=r+a),s!==o||l!==0&&s.nodeType!==3||(c=r+l),s.nodeType===3&&(r+=s.nodeValue.length),(S=s.firstChild)!==null;)h=s,s=S;for(;;){if(s===e)break t;if(h===i&&++f===a&&(u=r),h===o&&++p===l&&(c=r),(S=s.nextSibling)!==null)break;s=h,h=s.parentNode}s=S}i=u===-1||c===-1?null:{start:u,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;for(Df={focusedElem:e,selectionRange:i},Aa=!1,n=(n&335544064)===n,lt=t,t=n?9270:1024;lt!==null;){if(e=lt,n&&(i=e.deletions,i!==null))for(a=0;a<i.length;a++)n&&yf(i[a]);if(e.alternate===null&&(e.flags&2)!==0)n&&sp(e),Yr(n);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&yf(i),Yr(n);continue}else if(i!==null&&i.memoizedState!==null){n&&sp(e),Yr(n);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,lt=i):(n&&By(e),Yr(n))}}It=null}function Yr(e){for(;lt!==null;){var t=lt,n=e,i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((l&1024)!==0&&i!==null){n=void 0,l=i.memoizedProps,i=i.memoizedState;var a=t.stateNode;try{var o=Cl(t.type,l);n=a.getSnapshotBeforeUpdate(o,i),a.__reactInternalSnapshotBeforeUpdate=n}catch(r){xe(t,t.return,r)}}break;case 3:if((l&1024)!==0){if(i=t.stateNode.containerInfo,n=i.nodeType,n===9)Hf(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Hf(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=di(i.memoizedProps,i.stateNode),l=t.memoizedProps,l=bi(l.default,l.update),l!=="none"&&_a(i,n,l,i.memoizedState=[],!0));break;default:if((l&1024)!==0)throw Error(R(163))}if(i=t.sibling,i!==null){i.return=t.return,lt=i;break}lt=t.return}}function qy(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),i&4&&$o(5,n);break;case 1:if(Un(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){xe(n,n.return,o)}else{var l=Cl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){xe(n,n.return,o)}}i&64&&Hy(n),i&512&&Pn(n,n.return);break;case 3:if(Un(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xg(e,t)}catch(o){xe(n,n.return,o)}}break;case 27:t===null&&i&4&&ky(n);case 26:case 5:Un(e,n),t===null&&i&4&&mf(n),i&512&&Pn(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),i&4&&Qy(e,n);break;case 13:Un(e,n),i&4&&Zy(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ux.bind(null,n),pw(e,n))));break;case 22:if(i=n.memoizedState!==null||it,!i){var a=t!==null&&t.memoizedState!==null||be;t=it,l=be,it=i,(be=a)&&!l?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),bn(e,n,i)):Un(e,n),it=t,be=l}break;case 30:Un(e,n),i&512&&Pn(n,n.return);break;case 7:i&512&&Pn(n,n.return);default:Un(e,n)}}function Sf(e,t){for(e=e.child;e!==null;)jy(e,t),e=e.sibling}function jy(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var l=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null;l.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(u){xe(e,e.return,u)}xf(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,pe=!0}catch(u){xe(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?Cp(r,!0):Cp(e.stateNode,!1)}catch(u){xe(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&Sf(e,t);break;default:Sf(e,t)}}function xf(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,i=t;switch(n.tag){case 4:jy(n,i);break e;case 22:n.memoizedState===null&&xf(n,i);break e;default:xf(n,i)}}e=e.sibling}}function Xy(e){var t=e.alternate;t!==null&&(e.alternate=null,Xy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ju(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,_t=!1;function yn(e,t,n){for(n=n.child;n!==null;)Ky(e,t,n),n=n.sibling}function Ky(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Xo,n)}catch{}switch(n.tag){case 26:be||rt(n,t),yn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!be&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:be||rt(n,t),Eo(n);var i=Ue,l=_t;tl(n.type)&&(Ue=n.stateNode,_t=!1),yn(e,t,n),Lb(n.stateNode,n.type,n.memoizedProps),Ue=i,_t=l;break;case 5:be||rt(n,t),Eo(n);case 6:if(n.tag===6&&Eo(n),i=Ue,l=_t,Ue=null,yn(e,t,n),Ue=i,_t=l,Ue!==null)if(_t)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode),pe=!0}catch(a){xe(n,t,a)}else try{Ue.removeChild(n.stateNode),pe=!0}catch(a){xe(n,t,a)}break;case 18:Ue!==null&&(_t?(e=Ue,Rp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),za(e)):Rp(Ue,n.stateNode));break;case 4:i=Ue,l=_t,Ue=n.stateNode.containerInfo,_t=!0,yn(e,t,n),Ue=i,_t=l;break;case 0:case 11:case 14:case 15:$i(2,n,t),be||$i(4,n,t),yn(e,t,n);break;case 1:be||(rt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Uy(n,t,i)),yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:be=(i=be)||n.memoizedState!==null,yn(e,t,n),be=i;break;case 30:rt(n,t),yn(e,t,n);break;case 7:be||rt(n,t),yn(e,t,n);break;default:yn(e,t,n)}}function Qy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{za(e)}catch(n){xe(t,t.return,n)}}}function Zy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{za(e)}catch(n){xe(t,t.return,n)}}function Tx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dp),t;default:throw Error(R(435,e.tag))}}function qr(e,t){var n=Tx(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var l=Px.bind(null,e,i);i.then(l,l)}})}function Rt(e,t,n){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var a=i[l],o=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(tl(u.type)){Ue=u.stateNode,_t=!1;break e}break;case 5:Ue=u.stateNode,_t=!1;break e;case 3:case 4:Ue=u.stateNode.containerInfo,_t=!0;break e}u=u.return}if(Ue===null)throw Error(R(160));Ky(o,r,a),Ue=null,_t=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Iy(t,e,n),t=t.sibling}var vn=null;function Iy(e,t,n){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(l&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var a=0;a<i.length;a++){var o=i[a];o.ref.impl=o.nextImpl}Rt(t,e,n),Ct(e),l&4&&($i(3,e,e.return),$o(3,e),$i(5,e,e.return));break;case 1:Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),l&64&&it&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(a=vn,Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),l&4)if(l=i!==null?i.memoizedState:null,n=e.memoizedState,i===null)if(n===null)if(e.stateNode===null)if(it)e.stateNode=wb(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,l=a.ownerDocument||a;t:switch(t){case"title":i=l.getElementsByTagName("title")[0],(!i||i[Zo]||i[ut]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=l.createElement(t),l.head.insertBefore(i,l.querySelector("head > title"))),dt(i,t,n),i[ut]=e,at(i),t=i;break e;case"link":if(a=Up("link","href",l).get(t+(n.href||""))){for(o=0;o<a.length;o++)if(i=a[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(o,1);break t}}i=l.createElement(t),dt(i,t,n),l.head.appendChild(i);break;case"meta":if(a=Up("meta","content",l).get(t+(n.content||""))){for(o=0;o<a.length;o++)if(i=a[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(o,1);break t}}i=l.createElement(t),dt(i,t,n),l.head.appendChild(i);break;default:throw Error(R(468,t))}i[ut]=e,at(i),t=i}e.stateNode=t}else it||kf(a,e.type,e.stateNode);else e.stateNode=Hp(a,n,e.memoizedProps);else l!==n?(l===null?(t=i.stateNode,t===null||be||t.parentNode.removeChild(t)):l.count--,n===null?it||kf(a,e.type,e.stateNode):Hp(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&bs(e,e.memoizedProps,i.memoizedProps);break;case 27:Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),i!==null&&l&4&&bs(e,e.memoizedProps,i.memoizedProps);break;case 5:if(a=_n,_n=!1,Rt(t,e,n),_n=a,Ct(e),l&512&&(be||i===null||rt(i,i.return)),e.flags&32){t=e.stateNode;try{Sa(t,""),pe=!0}catch(f){xe(e,e.return,f)}}l&4&&e.stateNode!=null&&(t=e.memoizedProps,bs(e,t,i!==null?i.memoizedProps:t)),l&1024&&(Ss=!0);break;case 6:if(Rt(t,e,n),Ct(e),l&4){if(e.stateNode===null)throw Error(R(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,pe=!0}catch(f){xe(e,e.return,f)}}break;case 3:if(pe=!1,su=null,a=vn,vn=Bo(t.containerInfo),Rt(t,e,n),vn=a,Ct(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{za(t.containerInfo)}catch(f){xe(e,e.return,f)}Ss&&(Ss=!1,Jy(e)),pe=!1;break;case 4:l=_n,_n=it,i=bh(),a=vn,vn=Bo(e.stateNode.containerInfo),Rt(t,e,n),Ct(e),vn=a,pe&&ho&&(_u=!0),pe=i,_n=l;break;case 12:Rt(t,e,n),Ct(e);break;case 31:Rt(t,e,n),Ct(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,qr(e,t)));break;case 13:Rt(t,e,n),Ct(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(ic=Ft()),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,qr(e,t)));break;case 22:a=e.memoizedState!==null,o=i!==null&&i.memoizedState!==null;var r=it,u=be,c=_n;it=r||a,_n=c||a,be=u||o,Rt(t,e,n),be=u,_n=c,it=r,Ct(e),l&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,!a||i===null||o||it||be||(t=o||be,n=it,i=be,it=a||it,be=t,Ai(e,2),it=n,be=i),!a&&_n||Sf(e,a)),l&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,qr(e,n))));break;case 19:Rt(t,e,n),Ct(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,qr(e,t)));break;case 30:l&512&&(be||i===null||rt(i,i.return)),l=bh(),a=ho,o=(n&335544064)===n,r=e.memoizedProps,ho=o&&bi(r.default,r.update)!=="none",Rt(t,e,n),Ct(e),o&&i!==null&&pe&&(e.flags|=4),ho=a,pe=l;break;case 21:break;case 7:l&512&&(be||i===null||rt(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Rt(t,e,n),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Py(i)){n=i;break}i=i.return}i=null;for(var l=e.return;l!==null;){if(Ed(l)){var a=l.stateNode;i===null?i=[a]:i.push(a)}if(Md(l))break;l=l.return}var o=i;if(n==null)throw Error(R(160));switch(n.tag){case 27:var r=n.stateNode,u=vs(e);Du(e,u,r,o);break;case 5:var c=n.stateNode;n.flags&32&&(Sa(c,""),n.flags&=-33);var f=vs(e);Du(e,f,c,o);break;case 3:case 4:var p=n.stateNode.containerInfo,s=vs(e);hf(e,s,p,o);break;default:throw Error(R(161))}}catch(h){xe(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jy(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Aa=!0,t.reset(),Aa=!1),e=e.sibling}}function Kl(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fy(t,e),t=t.sibling;else Yy(t,!1)}function Fy(e,t){var n=e.alternate;if(n===null)pf(e,!1);else switch(e.tag){case 3:if(vf=Hn=!1,fp(),Kl(t,e),!Hn&&!_u){if(e=kn,e!==null)for(var i=0;i<e.length;i+=3){n=e[i];var l=e[i+1];Eb(n,e[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+l+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),vf=!0}kn=null;break;case 5:Kl(t,e);break;case 4:i=Hn,Hn=!1,Kl(t,e),Hn&&(_u=!0),Hn=i;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?pf(e,!1):Kl(t,e));break;case 30:i=Hn,l=fp(),Hn=!1,Kl(t,e),Hn&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=di(a,o),o=di(n.memoizedProps,o);var r=bi(a.default,a.update);r==="none"?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ut=0,t=Td(e,n,t,o,r,a,!0),Ut!==(a===null?0:a.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ma(e,e.memoizedProps.onUpdate),kn=l):l!==null&&(l.push.apply(l,kn),kn=l),Hn=(e.flags&32)!==0?!0:i;break;default:Kl(t,e)}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)qy(e,t.alternate,t),t=t.sibling}function Ai(e,t){for(e=e.child;e!==null;){var n=e,i=t;switch(n.tag){case 0:case 11:case 14:case 15:$i(4,n,n.return),Ai(n,i);break;case 1:rt(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&Uy(n,n.return,l),Ai(n,i);break;case 27:(i&2)!==0&&Lb(n.stateNode,n.type,n.memoizedProps);case 5:rt(n,n.return),n.tag!==5&&n.tag!==27||Eo(n),Ai(n,i);break;case 6:Eo(n);break;case 26:rt(n,n.return),l=n.stateNode,n.memoizedState!==null||l===null||be||l.parentNode.removeChild(l),Ai(n,i);break;case 22:n.memoizedState===null&&Ai(n,i);break;case 30:rt(n,n.return),Ai(n,i);break;case 7:rt(n,n.return);default:Ai(n,i)}e=e.sibling}}function bn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var i=t.alternate,l=e,a=t,o=a.flags,r=(n&1)!==0;switch(a.tag){case 0:case 11:case 15:bn(l,a,n),$o(4,a);break;case 1:if(bn(l,a,n),i=a,l=i.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(f){xe(i,i.return,f)}if(i=a,l=i.updateQueue,l!==null){var u=i.stateNode;try{var c=l.shared.hiddenCallbacks;if(c!==null)for(l.shared.hiddenCallbacks=null,l=0;l<c.length;l++)jg(c[l],u)}catch(f){xe(i,i.return,f)}}r&&o&64&&Hy(a),Pn(a,a.return);break;case 27:(n&2)!==0&&ky(a);case 5:a.tag!==5&&a.tag!==27||cp(a),bn(l,a,n),r&&i===null&&o&4&&mf(a),Pn(a,a.return);break;case 6:cp(a);break;case 26:u=a.stateNode,a.memoizedState!==null||u===null||it||kf(Bo(u.ownerDocument),a.type,u),bn(l,a,n),r&&i===null&&o&4&&mf(a),Pn(a,a.return);break;case 12:bn(l,a,n);break;case 31:bn(l,a,n),r&&o&4&&Qy(l,a);break;case 13:bn(l,a,n),r&&o&4&&Zy(l,a);break;case 22:a.memoizedState===null&&bn(l,a,n),Pn(a,a.return);break;case 30:bn(l,a,n),Pn(a,a.return);break;case 7:Pn(a,a.return);default:bn(l,a,n)}t=t.sibling}}function Nd(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Jo(n))}function Rd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Jo(e))}function on(e,t,n,i){var l=(n&335544064)===n;if(t.subtreeFlags&(l?10262:10256))for(t=t.child;t!==null;)$y(e,t,n,i),t=t.sibling;else l&&Gy(t)}function $y(e,t,n,i){var l=(n&335544064)===n;l&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ou(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,n,i),a&2048&&$o(9,t);break;case 1:on(e,t,n,i);break;case 3:on(e,t,n,i),l&&vf&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Jo(a)));break;case 12:if(a&2048){on(e,t,n,i),a=t.stateNode;try{var o=t.memoizedProps,r=o.id,u=o.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(c){xe(t,t.return,c)}}else on(e,t,n,i);break;case 31:on(e,t,n,i);break;case 13:on(e,t,n,i);break;case 23:break;case 22:o=t.stateNode,r=t.alternate,t.memoizedState!==null?(l&&r!==null&&r.memoizedState===null&&ou(r),o._visibility&2?on(e,t,n,i):To(e,t)):(l&&r!==null&&r.memoizedState!==null&&ou(t),o._visibility&2?on(e,t,n,i):(o._visibility|=2,Zl(e,t,n,i,(t.subtreeFlags&10256)!==0||!1))),a&2048&&Nd(r,t);break;case 24:on(e,t,n,i),a&2048&&Rd(t.alternate,t);break;case 30:l&&(a=t.alternate,a!==null&&(Xn(a.child,!0),Xn(t.child,!0))),on(e,t,n,i);break;default:on(e,t,n,i)}}function Zl(e,t,n,i,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var a=e,o=t,r=n,u=i,c=o.flags;switch(o.tag){case 0:case 11:case 15:Zl(a,o,r,u,l),$o(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?Zl(a,o,r,u,l):To(a,o):(f._visibility|=2,Zl(a,o,r,u,l)),l&&c&2048&&Nd(o.alternate,o);break;case 24:Zl(a,o,r,u,l),l&&c&2048&&Rd(o.alternate,o);break;default:Zl(a,o,r,u,l)}t=t.sibling}}function To(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,l=i.flags;switch(i.tag){case 22:To(n,i),l&2048&&Nd(i.alternate,i);break;case 24:To(n,i),l&2048&&Rd(i.alternate,i);break;default:To(n,i)}t=t.sibling}}var hl=8192;function fl(e,t,n){if(e.subtreeFlags&hl)for(e=e.child;e!==null;)Wy(e,t,n),e=e.sibling}function Wy(e,t,n){switch(e.tag){case 26:fl(e,t,n),e.flags&hl&&(e.memoizedState!==null?Aw(n,vn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&kp(n,e)));break;case 5:fl(e,t,n),e.flags&hl&&(e=e.stateNode,(t&335544128)===t&&kp(n,e));break;case 3:case 4:var i=vn;vn=Bo(e.stateNode.containerInfo),fl(e,t,n),vn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=hl,hl=16777216,fl(e,t,n),hl=i):fl(e,t,n));break;case 30:if((e.flags&hl)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var l=e.stateNode;l.paired=null,It===null&&(It=new Map),It.set(i,l)}fl(e,t,n);break;default:fl(e,t,n)}}function eb(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function oo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,nb(i,e)}eb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)tb(e),e=e.sibling}function tb(e){switch(e.tag){case 0:case 11:case 15:oo(e),e.flags&2048&&$i(9,e,e.return);break;case 3:oo(e);break;case 12:oo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ru(e)):oo(e);break;default:oo(e)}}function ru(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,nb(i,e)}eb(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$i(8,t,t.return),ru(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ru(t));break;default:ru(t)}e=e.sibling}}function nb(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:$i(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Jo(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,lt=i;else e:for(n=e;lt!==null;){i=lt;var l=i.sibling,a=i.return;if(Xy(i),i===n){lt=null;break e}if(l!==null){l.return=a,lt=l;break e}lt=a}}}var Nx={getCacheForType:function(e){var t=ct(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Qe).controller.signal}},Rx=typeof WeakMap=="function"?WeakMap:Map,ge=0,Ne=null,se=null,de=0,ve=0,Kt=null,Ui=!1,Ha=!1,Cd=!1,gi=0,Be=0,Wi=0,xl=0,Hu=0,Jt=0,wa=0,No=null,Ht=null,wf=!1,ic=0,ib=0,Uu=1/0,Pu=null,Xi=null,ke=0,xn=null,Al=null,jn=0,Mf=0,Ef=null,lb=null,pa=null,ga=null,ya=null,Ro=0,uu=null;function en(){return(ge&2)!==0&&de!==0?de&-de:Q.T!==null?zd():ug()}function ab(){if(Jt===0)if((de&536870912)===0||oe){var e=zr;zr<<=1,(zr&3932160)===0&&(zr=262144),Jt=e}else Jt=536870912;return e=mt.current,e!==null&&(e.flags|=32),Jt}function Ma(e,t){if(t!=null){var n=e.stateNode,i=n.ref;i===null&&(i=n.ref=Nb(di(e.memoizedProps,n))),ga===null&&(ga=[]),ga.push(t.bind(null,i))}}function kt(e,t,n){(e===Ne&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(Ea(e,0),Pi(e,de,Jt,!1)),Qo(e,n),((ge&2)===0||e!==Ne)&&(e===Ne&&((ge&2)===0&&(xl|=n),Be===4&&Pi(e,de,Jt,!1)),Qn(e))}function ob(e,t,n){if((ge&6)!==0)throw Error(R(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ko(e,t),l=i?zx(e,t):xs(e,t,!0),a=i;do{if(l===0){Ha&&!i&&Pi(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!Cx(n)){l=xs(e,t,!1),a=!1;continue}if(l===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var r=e;l=No;var u=r.current.memoizedState.isDehydrated;if(u&&(Ea(r,o).flags|=256),o=xs(r,o,!1),o!==2&&o!==6){if(Cd&&!u){r.errorRecoveryDisabledLanes|=a,xl|=a,l=4;break e}a=Ht,Ht=l,a!==null&&(Ht===null?Ht=a:Ht.push.apply(Ht,a))}l=o}if(a=!1,l!==2)continue}}if(l===1){Ea(e,0),Pi(e,t,0,!0);break}e:{switch(i=e,a=l,a){case 0:case 1:throw Error(R(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Pi(i,t,Jt,!Ui);break e;case 2:Ht=null;break;case 3:case 5:break;default:throw Error(R(329))}if((t&62914560)===t&&(l=ic+300-Ft(),10<l)){if(Pi(i,t,Jt,!Ui),qu(i,0,!0)!==0)break e;jn=t,i.timeoutHandle=Dd(mp.bind(null,i,n,Ht,Pu,wf,t,Jt,xl,wa,Ui,a,"Throttled",-0,0),l);break e}mp(i,n,Ht,Pu,wf,t,Jt,xl,wa,Ui,a,null,-0,0)}}break}while(!0);Qn(e)}function mp(e,t,n,i,l,a,o,r,u,c,f,p,s,h){e.timeoutHandle=-1;var S=t.subtreeFlags,b=(a&335544064)===a;if(p=null,(b||S&8192||(S&16785408)===16785408)&&(p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bn},It=null,Wy(t,a,p),b&&(S=p,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(S.count++,S.waitingForViewTransition=!0,S=Go.bind(S),b.finished.then(S,S))),S=(a&62914560)===a?ic-Ft():(a&4194048)===a?ib-Ft():0,S=zw(p,S),S!==null)){jn=a,e.cancelPendingCommit=S(pp.bind(null,e,t,a,n,i,l,o,r,u,c,f,p,null,s,h)),Pi(e,a,o,!c);return}pp(e,t,a,n,i,l,o,r,u,c,f,p)}function Cx(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var l=n[i],a=l.getSnapshot;l=l.value;try{if(!tn(a(),l))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pi(e,t,n,i){t=ig(e,t),t&=~Hu,t&=~xl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var l=t;0<l;){var a=31-Wt(l),o=1<<a;i[a]=-1,l&=~o}n!==0&&ag(e,n,t)}function lc(){return(ge&6)===0?(Wo(0,!1),!1):!0}function Ad(){if(se!==null){if(ve===0)var e=se.return;else e=se,ui=_l=null,dd(e),da=null,_o=0,e=se;for(;e!==null;)_y(e.alternate,e),e=e.return;se=null}}function Ea(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Jx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),jn=0,Ad(),Ne=e,se=n=ci(e.current,null),de=t,ve=0,Kt=null,Ui=!1,Ha=Ko(e,t),Cd=!1,wa=Jt=Hu=xl=Wi=Be=0,Ht=No=null,wf=!1,gi=ig(e,t),Zu(),n}function rb(e,t){ne=null,Q.H=Au,t===La||t===Fu?(t=Bh(),ve=3):t===ld?(t=Bh(),ve=4):ve=t===Sd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,se===null&&(Be=1,zu(e,fn(t,e.current)))}function ub(){var e=mt.current;return e===null?!0:(de&4194048)===de?bt===null:(de&62914560)===de||(de&536870912)!==0?e===bt:!1}function cb(){var e=Q.H;return Q.H=Au,e===null?Au:e}function sb(){var e=Q.A;return Q.A=Nx,e}function ku(){Be=4,Ui||(de&4194048)!==de&&mt.current!==null||(Ha=!0),(Wi&134217727)===0&&(xl&134217727)===0||Ne===null||Pi(Ne,de,Jt,!1)}function xs(e,t,n){var i=ge;ge|=2;var l=cb(),a=sb();(Ne!==e||de!==t)&&(Pu=null,Ea(e,t)),t=!1;var o=Be;e:do try{if(ve!==0&&se!==null){var r=se,u=Kt;switch(ve){case 8:Ad(),o=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var c=ve;if(ve=0,Kt=null,ra(e,r,u,c),n&&Ha){o=0;break e}break;default:c=ve,ve=0,Kt=null,ra(e,r,u,c)}}Ax(),o=Be;break}catch(f){rb(e,f)}while(!0);return t&&e.shellSuspendCounter++,ui=_l=null,ge=i,Q.H=l,Q.A=a,se===null&&(Ne=null,de=0,Zu()),o}function Ax(){for(;se!==null;)fb(se)}function zx(e,t){var n=ge;ge|=2;var i=cb(),l=sb();Ne!==e||de!==t?(Pu=null,Uu=Ft()+500,Ea(e,t)):Ha=Ko(e,t);e:do try{if(ve!==0&&se!==null){t=se;var a=Kt;t:switch(ve){case 1:ve=0,Kt=null,ra(e,t,a,1);break;case 2:case 9:if(Vh(a)){ve=0,Kt=null,hp(t);break}t=function(){ve!==2&&ve!==9||Ne!==e||(ve=7),Qn(e)},a.then(t,t);break e;case 3:ve=7;break e;case 4:ve=5;break e;case 7:Vh(a)?(ve=0,Kt=null,hp(t)):(ve=0,Kt=null,ra(e,t,a,7));break;case 5:var o=null;switch(se.tag){case 26:o=se.memoizedState;case 5:case 27:var r=se;if(o?Ub(o):r.stateNode.complete){ve=0,Kt=null;var u=r.sibling;if(u!==null)se=u;else{var c=r.return;c!==null?(se=c,ac(c)):se=null}break t}}ve=0,Kt=null,ra(e,t,a,5);break;case 6:ve=0,Kt=null,ra(e,t,a,6);break;case 8:Ad(),Be=6;break e;default:throw Error(R(462))}}Ox();break}catch(f){rb(e,f)}while(!0);return ui=_l=null,Q.H=i,Q.A=l,ge=n,se!==null?0:(Ne=null,de=0,Zu(),Be)}function Ox(){for(;se!==null&&!Z1();)fb(se)}function fb(e){var t=Ly(e.alternate,e,gi);e.memoizedProps=e.pendingProps,t===null?ac(e):se=t}function hp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=np(n,t,t.pendingProps,t.type,void 0,de);break;case 11:t=np(n,t,t.pendingProps,t.type.render,t.ref,de);break;case 5:dd(t);var i=t;i===ot&&(oe?(wu(i),i.tag===5&&i.stateNode!=null&&(ze=i.stateNode)):(wu(i),oe=!0));default:_y(n,t),t=se=Hg(t,gi),t=Ly(n,t,gi)}e.memoizedProps=e.pendingProps,t===null?ac(e):se=t}function ra(e,t,n,i){ui=_l=null,dd(t),da=null,_o=0;var l=t.return;try{if(bx(e,l,t,n,de)){Be=1,zu(e,fn(n,e.current)),se=null;return}}catch(a){if(l!==null)throw se=l,a;Be=1,zu(e,fn(n,e.current)),se=null;return}t.flags&32768?(oe||i===1?e=!0:Ha||(de&536870912)!==0?e=!1:(Ui=e=!0,(i===2||i===9||i===3||i===6)&&(i=mt.current,i!==null&&i.tag===13&&(i.flags|=16384))),db(t,e)):ac(t)}function ac(e){var t=e;do{if((t.flags&32768)!==0){db(t,Ui);return}e=t.return;var n=wx(t.alternate,t,gi);if(n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);Be===0&&(Be=5)}function db(e,t){do{var n=Mx(e.alternate,e);if(n!==null){n.flags&=32767,se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=n}while(e!==null);Be=6,se=null}function pp(e,t,n,i,l,a,o,r,u,c,f,p){e.cancelPendingCommit=null;do oc();while(ke!==0);if((ge&6)!==0)throw Error(R(327));if(t!==null){if(t===e.current)throw Error(R(177));e===Ne&&(se=Ne=null,de=0),Al=t,xn=e,jn=n,Ef=l,lb=i,Dx(e,t,n,o,r,u,p)}}function Dx(e,t,n,i,l,a,o){var r=t.lanes|t.childLanes;if(Mf=r,r|=$f,lS(e,n,r,i,l,a),ga=null,(n&335544064)===n?(ya=ox(e),i=10262):(ya=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,kx(yu,function(){return Cf(),null})):(e.callbackNode=null,e.callbackPriority=0),Lu=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null,l=ye.p,ye.p=2,a=ge,ge|=4;try{Ex(e,t,n)}finally{ge=a,ye.p=l,Q.T=i}}ke=1,Lu?pa=nw(o,e.containerInfo,ya,Tf,Nf,_x,Rf,Cf,Lx,null,null):(Tf(),Nf(),Rf())}function Lx(e){if(ke!==0){var t=xn.onRecoverableError;t(e,{componentStack:null})}}function _x(){ke===3&&(ke=0,Fy(Al,xn),ke=4)}function Tf(){if(ke===1){ke=0;var e=xn,t=Al,n=jn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null;var l=ye.p;ye.p=2;var a=ge;ge|=4;try{ho=_u=!1,Iy(t,e,n),n=Df;var o=Rg(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(o!==r&&r&&r.ownerDocument&&Ng(r.ownerDocument.documentElement,r)){if(u!==null&&Ff(r)){var c=u.start,f=u.end;if(f===void 0&&(f=c),"selectionStart"in r)r.selectionStart=c,r.selectionEnd=Math.min(f,r.value.length);else{var p=r.ownerDocument||document,s=p&&p.defaultView||window;if(s.getSelection){var h=s.getSelection(),S=r.textContent.length,b=Math.min(u.start,S),v=u.end===void 0?b:Math.min(u.end,S);!h.extend&&b>v&&(o=v,v=b,b=o);var m=Oh(r,b),d=Oh(r,v);if(m&&d&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==d.node||h.focusOffset!==d.offset)){var g=p.createRange();g.setStart(m.node,m.offset),h.removeAllRanges(),b>v?(h.addRange(g),h.extend(d.node,d.offset)):(g.setEnd(d.node,d.offset),h.addRange(g))}}}}for(p=[],h=r;h=h.parentNode;)h.nodeType===1&&p.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<p.length;r++){var x=p[r];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}Aa=!!Of,Df=Of=null}finally{ge=a,ye.p=l,Q.T=i}}e.current=t,ke=2}}function Nf(){if(ke===2){ke=0;var e=xn,t=Al,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Q.T,Q.T=null;var i=ye.p;ye.p=2;var l=ge;ge|=4;try{qy(e,t.alternate,t)}finally{ge=l,ye.p=i,Q.T=n}}ke=3}}function Rf(){if(ke===4||ke===3){ke=0;var e=pa;pa=null,I1();var t=xn,n=Al,i=jn,l=lb,a=(i&335544064)===i?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?ke=5:(ke=0,Al=xn=null,mb(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Xi=null),Xf(i),n=n.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Xo,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=Q.T,a=ye.p,ye.p=2,Q.T=null;try{for(var o=t.onRecoverableError,r=0;r<l.length;r++){var u=l[r];o(u.value,{componentStack:u.stack})}}finally{Q.T=n,ye.p=a}}if(l=ga,o=ya,ya=null,l!==null&&(ga=null,o===null&&(o=[]),e!==null))for(u=0;u<l.length;u++)n=(0,l[u])(o),n!==void 0&&e.finished.finally(n);(jn&3)!==0&&oc(),Qn(t),a=t.pendingLanes,(i&261930)!==0&&(a&42)!==0?t===uu?Ro++:(Ro=0,uu=t):(Ro=0,uu=null),Wo(0,!1)}}function mb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Jo(t)))}function oc(){return pa!==null&&(pa.skipTransition(),pa=null),Tf(),Nf(),Rf(),Cf()}function Cf(){if(ke!==5)return!1;var e=xn,t=Mf;Mf=0;var n=Xf(jn),i=Q.T,l=ye.p;try{ye.p=32>n?32:n,Q.T=null,n=Ef,Ef=null;var a=xn,o=jn;if(ke=0,Al=xn=null,jn=0,(ge&6)!==0)throw Error(R(331));var r=ge;if(ge|=4,tb(a.current),$y(a,a.current,o,n),ge=r,Wo(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Xo,a)}catch{}return!0}finally{ye.p=l,Q.T=i,mb(e,t)}}function gp(e,t,n){t=fn(n,t),t=rf(e.stateNode,t,2),e=Yi(e,t,2),e!==null&&(Qo(e,2),Qn(e))}function xe(e,t,n){if(e.tag===3)gp(e,e,n);else for(;t!==null;){if(t.tag===3){gp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Xi===null||!Xi.has(i))){e=fn(n,e),n=Cy(2),i=Yi(t,n,2),i!==null&&(Ay(n,i,t,e),Qo(i,2),Qn(i));break}}t=t.return}}function ws(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Rx;var l=new Set;i.set(t,l)}else l=i.get(t),l===void 0&&(l=new Set,i.set(t,l));l.has(n)||(Cd=!0,l.add(n),e=Hx.bind(null,e,t,n),t.then(e,e))}function Hx(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ne===e&&(de&n)===n&&((Be===4||Be===3&&(de&62914560)===de&&300>Ft()-ic)&&(ge&2)===0?Ea(e,0):Hu|=n,wa===de&&(wa=0)),Qn(e)}function hb(e,t){t===0&&(t=lg()),e=Ll(e,t),e!==null&&(Qo(e,t),Qn(e))}function Ux(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hb(e,n)}function Px(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(R(314))}i!==null&&i.delete(t),hb(e,n)}function kx(e,t){return qf(e,t)}var Ta=null,Il=null,Af=!1,Vu=!1,Ms=!1,ki=0;function Qn(e){e!==Il&&e.next===null&&(Il===null?Ta=Il=e:Il=Il.next=e),Vu=!0,Af||(Af=!0,Bx())}function Wo(e,t){if(!Ms&&Vu){Ms=!0;do for(var n=!1,i=Ta;i!==null;){if(!t)if(e!==0){var l=i.pendingLanes;if(l===0)var a=0;else{var o=i.suspendedLanes,r=i.pingedLanes;a=(1<<31-Wt(42|e)+1)-1,a&=l&~(o&~r),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,yp(i,a))}else a=de,a=qu(i,i===Ne?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(a&3)===0||Ko(i,a)||(n=!0,yp(i,a));i=i.next}while(n);Ms=!1}}function Vx(){pb()}function pb(){Vu=Af=!1;var e=0;ki!==0&&Ix()&&(e=ki);for(var t=Ft(),n=null,i=Ta;i!==null;){var l=i.next,a=gb(i,t);a===0?(i.next=null,n===null?Ta=l:n.next=l,l===null&&(Il=n)):(n=i,(e!==0||(a&3)!==0)&&(Vu=!0)),i=l}ke!==0&&ke!==5||Wo(e,!1),ki!==0&&(ki=0)}function gb(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Wt(a),r=1<<o,u=l[o];u===-1?((r&n)===0||(r&i)!==0)&&(l[o]=iS(r,t)):u<=t&&(e.expiredLanes|=r),a&=~r}if(t=Ne,n=de,n=qu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(ve===2||ve===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&ts(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ko(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&ts(i),Xf(n)){case 2:case 8:n=tg;break;case 32:n=yu;break;case 268435456:n=ng;break;default:n=yu}return i=yb.bind(null,e),n=qf(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&ts(i),e.callbackPriority=2,e.callbackNode=null,2}function yb(e,t){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(oc()&&e.callbackNode!==n)return null;var i=de;return i=qu(e,e===Ne?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(ob(e,i,t),gb(e,Ft()),e.callbackNode!=null&&e.callbackNode===n?yb.bind(null,e):null)}function yp(e,t){if(oc())return null;ob(e,t,!0)}function Bx(){Fx(function(){(ge&6)!==0?qf(eg,Vx):pb()})}function zd(){if(ki===0){var e=Tl;e===0&&(e=Ar,Ar<<=1,(Ar&261888)===0&&(Ar=256)),ki=e}return ki}function bp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Jr(e)}function Gx(e,t,n,i,l){if(t==="submit"&&n&&n.stateNode===l){var a=bp((l[Bt]||null).action),o=i.submitter;o&&(t=(t=o[Bt]||null)?bp(t.formAction):o.getAttribute("formAction"),t!==null&&(a=t,o=null));var r=new Xu("action","action",null,i,l);e.push({event:r,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ki!==0){var u=new FormData(l,o);af(n,{pending:!0,data:u,method:l.method,action:a},null,u)}}else typeof a=="function"&&(r.preventDefault(),u=new FormData(l,o),af(n,{pending:!0,data:u,method:l.method,action:a},a,u))},currentTarget:l}]})}}for(jr=0;jr<Qs.length;jr++)Xr=Qs[jr],vp=Xr.toLowerCase(),Sp=Xr[0].toUpperCase()+Xr.slice(1),wn(vp,"on"+Sp);var Xr,vp,Sp,jr;wn(Ag,"onAnimationEnd");wn(zg,"onAnimationIteration");wn(Og,"onAnimationStart");wn("dblclick","onDoubleClick");wn("focusin","onFocus");wn("focusout","onBlur");wn($S,"onTransitionRun");wn(WS,"onTransitionStart");wn(ex,"onTransitionCancel");wn(Dg,"onTransitionEnd");va("onMouseEnter",["mouseout","mouseover"]);va("onMouseLeave",["mouseout","mouseover"]);va("onPointerEnter",["pointerout","pointerover"]);va("onPointerLeave",["pointerout","pointerover"]);Ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ol("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Po="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Po));function bb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],l=i.event;i=i.listeners;e:{var a=void 0;if(t)for(var o=i.length-1;0<=o;o--){var r=i[o],u=r.instance,c=r.currentTarget;if(r=r.listener,u!==a&&l.isPropagationStopped())break e;a=r,l.currentTarget=c;try{a(l)}catch(f){vu(f)}l.currentTarget=null,a=u}else for(o=0;o<i.length;o++){if(r=i[o],u=r.instance,c=r.currentTarget,r=r.listener,u!==a&&l.isPropagationStopped())break e;a=r,l.currentTarget=c;try{a(l)}catch(f){vu(f)}l.currentTarget=null,a=u}}}}function ce(e,t){var n=t[hh];n===void 0&&(n=t[hh]=new Set);var i=e+"__bubble";n.has(i)||(vb(t,e,2,!1),n.add(i))}function Es(e,t,n){var i=0;t&&(i|=4),vb(n,e,i,t)}var Kr="_reactListening"+Math.random().toString(36).slice(2);function Od(e){if(!e[Kr]){e[Kr]=!0,sg.forEach(function(n){n!=="selectionchange"&&(Yx.has(n)||Es(n,!1,e),Es(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kr]||(t[Kr]=!0,Es("selectionchange",!1,t))}}function vb(e,t,n,i){switch(qb(t)){case 2:var l=_w;break;case 8:l=Hw;break;default:l=kd}n=l.bind(null,t,n,e),l=void 0,!qs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),i?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Ts(e,t,n,i,l){var a=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var r=i.stateNode.containerInfo;if(r===l)break;if(o===4)for(o=i.return;o!==null;){var u=o.tag;if((u===3||u===4)&&o.stateNode.containerInfo===l)return;o=o.return}for(;r!==null;){if(o=pl(r),o===null)return;if(u=o.tag,u===5||u===6||u===26||u===27){i=a=o;continue e}r=r.parentNode}}i=i.return}bg(function(){var c=a,f=Qf(n),p=[];e:{var s=Lg.get(e);if(s!==void 0){var h=Xu,S=e;switch(e){case"keypress":if($r(n)===0)break e;case"keydown":case"keyup":h=CS;break;case"focusin":S="focus",h=rs;break;case"focusout":S="blur",h=rs;break;case"beforeblur":case"afterblur":h=rs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=wh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=gS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=LS;break;case Ag:case zg:case Og:h=vS;break;case Dg:h=HS;break;case"scroll":case"scrollend":h=hS;break;case"wheel":h=PS;break;case"copy":case"cut":case"paste":h=xS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Eh;break;case"submit":h=OS;break;case"toggle":case"beforetoggle":h=VS}var b=(t&4)!==0,v=!b&&(e==="scroll"||e==="scrollend"),m=b?s!==null?s+"Capture":null:s;b=[];for(var d=c,g;d!==null;){var x=d;if(g=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||g===null||m===null||(x=Ao(d,m),x!=null&&b.push(ko(d,x,g))),v)break;d=d.return}0<b.length&&(s=new h(s,S,null,n,f),p.push({event:s,listeners:b}))}}if((t&7)===0){e:{if(h=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout",h&&n!==Ys&&(S=n.relatedTarget||n.fromElement)&&(pl(S)||S[Oa]))break e;(s||h)&&(S=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,s?(h=n.relatedTarget||n.toElement,s=c,h=h?pl(h):null,h!==null&&(v=jo(h),b=h.tag,h!==v||b!==5&&b!==27&&b!==6)&&(h=null)):(s=null,h=c),s!==h&&(b=wh,x="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(b=Eh,x="onPointerLeave",m="onPointerEnter",d="pointer"),v=s==null?S:fo(s),g=h==null?S:fo(h),S=new b(x,d+"leave",s,n,f),S.target=v,S.relatedTarget=g,x=null,pl(f)===c&&(b=new b(m,d+"enter",h,n,f),b.target=g,b.relatedTarget=v,x=b),v=x,b=s&&h?zs(s,h,qx):null,s!==null&&xp(p,S,s,b,!1),h!==null&&v!==null&&xp(p,v,h,b,!0)))}e:{if(s=c?fo(c):window,h=s.nodeName&&s.nodeName.toLowerCase(),h==="select"||h==="input"&&s.type==="file")var M=Ch;else if(Rh(s))if(Eg)M=IS;else{M=QS;var T=KS}else h=s.nodeName,!h||h.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&Kf(c.elementType)&&(M=Ch):M=ZS;if(M&&(M=M(e,c))){Mg(p,M,n,f);break e}T&&T(e,s,c)}switch(T=c?fo(c):window,e){case"focusin":(Rh(T)||T.contentEditable==="true")&&(ta=T,Xs=c,yo=null);break;case"focusout":yo=Xs=ta=null;break;case"mousedown":Ks=!0;break;case"contextmenu":case"mouseup":case"dragend":Ks=!1,Dh(p,n,f);break;case"selectionchange":if(FS)break;case"keydown":case"keyup":Dh(p,n,f)}var w;if(Jf)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else ea?xg(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Sg&&n.locale!=="ko"&&(ea||N!=="onCompositionStart"?N==="onCompositionEnd"&&ea&&(w=vg()):(_i=f,Zf="value"in _i?_i.value:_i.textContent,ea=!0)),T=Bu(c,N),0<T.length&&(N=new Mh(N,e,null,n,f),p.push({event:N,listeners:T}),w?N.data=w:(w=wg(n),w!==null&&(N.data=w)))),(w=GS?YS(e,n):qS(e,n))&&(N=Bu(c,"onBeforeInput"),0<N.length&&(T=new Mh("onBeforeInput","beforeinput",null,n,f),p.push({event:T,listeners:N}),T.data=w)),Gx(p,e,c,n,f)}bb(p,t)})}function ko(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bu(e,t){for(var n=t+"Capture",i=[];e!==null;){var l=e,a=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||a===null||(l=Ao(e,n),l!=null&&i.unshift(ko(e,l,a)),l=Ao(e,t),l!=null&&i.push(ko(e,l,a))),e.tag===3)return i;e=e.return}return[]}function qx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function xp(e,t,n,i,l){for(var a=t._reactName,o=[];n!==null&&n!==i;){var r=n,u=r.alternate,c=r.stateNode;if(r=r.tag,u!==null&&u===i)break;r!==5&&r!==26&&r!==27||c===null||(u=c,l?(c=Ao(n,a),c!=null&&o.unshift(ko(n,c,u))):l||(c=Ao(n,a),c!=null&&o.push(ko(n,c,u)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jx=/\r\n?/g,Xx=/\u0000|\uFFFD/g;function wp(e){return(typeof e=="string"?e:""+e).replace(jx,`
10
+ `).replace(Xx,"")}function Sb(e,t){return t=wp(t),wp(e)===t}function Se(e,t,n,i,l,a){switch(n){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||Sa(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&Sa(e,""+i);else return;break;case"className":Dr(e,"class",i);break;case"tabIndex":Dr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Dr(e,n,i);break;case"style":yg(e,i,a);return;case"data":if(t!=="object"){Dr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Jr(i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(t!=="input"&&Se(e,t,"name",l.name,l,null),Se(e,t,"formEncType",l.formEncType,l,null),Se(e,t,"formMethod",l.formMethod,l,null),Se(e,t,"formTarget",l.formTarget,l,null)):(Se(e,t,"encType",l.encType,l,null),Se(e,t,"method",l.method,l,null),Se(e,t,"target",l.target,l,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Jr(i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Bn);return;case"onScroll":i!=null&&ce("scroll",e);return;case"onScrollEnd":i!=null&&ce("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(R(60));a?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Jr(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":ce("beforetoggle",e),ce("toggle",e),Ir(e,"popover",i);break;case"xlinkActuate":ai(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ai(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ai(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ai(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ai(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ai(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ai(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ai(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ai(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ir(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=dS.get(n)||n,Ir(e,n,i);else return}pe=!0}function zf(e,t,n,i,l,a){switch(n){case"style":yg(e,i,a);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(R(60));a?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof i=="string")Sa(e,i);else if(typeof i=="number"||typeof i=="bigint")Sa(e,""+i);else return;break;case"onScroll":i!=null&&ce("scroll",e);return;case"onScrollEnd":i!=null&&ce("scrollend",e);return;case"onClick":i!=null&&(e.onclick=Bn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!fg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),a=n.slice(2,l?n.length-7:void 0),t=e[Bt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(a,t,l),typeof i=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,i,l);break e}pe=!0,n in e?e[n]=i:i===!0?e.setAttribute(n,""):Ir(e,n,i)}return}pe=!0}function dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var i=!1,l=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(R(137,t));default:Se(e,t,a,o,n,null)}}l&&Se(e,t,"srcSet",n.srcSet,n,null),i&&Se(e,t,"src",n.src,n,null);return;case"input":ce("invalid",e);var r=a=o=l=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"name":l=f;break;case"type":o=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":a=f;break;case"defaultValue":r=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(R(137,t));break;default:Se(e,t,i,f,n,null)}}hg(e,a,r,u,c,o,l,!1);return;case"select":ce("invalid",e),i=o=a=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":a=r;break;case"defaultValue":o=r;break;case"multiple":i=r;default:Se(e,t,l,r,n,null)}t=a,n=o,e.multiple=!!i,t!=null?ca(e,!!i,t,!1):n!=null&&ca(e,!!i,n,!0);return;case"textarea":ce("invalid",e),a=l=i=null;for(o in n)if(n.hasOwnProperty(o)&&(r=n[o],r!=null))switch(o){case"value":i=r;break;case"defaultValue":l=r;break;case"children":a=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(R(91));break;default:Se(e,t,o,r,n,null)}gg(e,i,l,a);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Se(e,t,u,i,n,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(i=0;i<Po.length;i++)ce(Po[i],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(R(137,t));default:Se(e,t,c,i,n,null)}return;default:if(Kf(t)){for(f in n)n.hasOwnProperty(f)&&(i=n[f],i!==void 0&&zf(e,t,f,i,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(i=n[r],i!=null&&Se(e,t,r,i,n,null))}var Kx={};function Qx(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,a=null,o=null,r=null,u=null,c=null,f=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&p!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":u=p;default:i.hasOwnProperty(h)||Se(e,t,h,null,i,p)}}for(var s in i){var h=i[s];if(p=n[s],i.hasOwnProperty(s)&&(h!=null||p!=null))switch(s){case"type":h!==p&&(pe=!0),a=h;break;case"name":h!==p&&(pe=!0),l=h;break;case"checked":h!==p&&(pe=!0),c=h;break;case"defaultChecked":h!==p&&(pe=!0),f=h;break;case"value":h!==p&&(pe=!0),o=h;break;case"defaultValue":h!==p&&(pe=!0),r=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(R(137,t));break;default:h!==p&&Se(e,t,s,h,i,p)}}Gs(e,o,r,u,c,f,a,l);return;case"select":h=o=r=s=null;for(a in n)if(u=n[a],n.hasOwnProperty(a)&&u!=null)switch(a){case"value":break;case"multiple":h=u;default:i.hasOwnProperty(a)||Se(e,t,a,null,i,u)}for(l in i)if(a=i[l],u=n[l],i.hasOwnProperty(l)&&(a!=null||u!=null))switch(l){case"value":a!==u&&(pe=!0),s=a;break;case"defaultValue":a!==u&&(pe=!0),r=a;break;case"multiple":a!==u&&(pe=!0),o=a;default:a!==u&&Se(e,t,l,a,i,u)}t=r,n=o,i=h,s!=null?ca(e,!!n,s,!1):!!i!=!!n&&(t!=null?ca(e,!!n,t,!0):ca(e,!!n,n?[]:"",!1));return;case"textarea":h=s=null;for(r in n)if(l=n[r],n.hasOwnProperty(r)&&l!=null&&!i.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:Se(e,t,r,null,i,l)}for(o in i)if(l=i[o],a=n[o],i.hasOwnProperty(o)&&(l!=null||a!=null))switch(o){case"value":l!==a&&(pe=!0),s=l;break;case"defaultValue":l!==a&&(pe=!0),h=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(R(91));break;default:l!==a&&Se(e,t,o,l,i,a)}pg(e,s,h);return;case"option":for(var S in n)if(s=n[S],n.hasOwnProperty(S)&&s!=null&&!i.hasOwnProperty(S))switch(S){case"selected":e.selected=!1;break;default:Se(e,t,S,null,i,s)}for(u in i)if(s=i[u],h=n[u],i.hasOwnProperty(u)&&s!==h&&(s!=null||h!=null))switch(u){case"selected":s!==h&&(pe=!0),e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Se(e,t,u,s,i,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)s=n[b],n.hasOwnProperty(b)&&s!=null&&!i.hasOwnProperty(b)&&Se(e,t,b,null,i,s);for(c in i)if(s=i[c],h=n[c],i.hasOwnProperty(c)&&s!==h&&(s!=null||h!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(R(137,t));break;default:Se(e,t,c,s,i,h)}return;default:if(Kf(t)){for(var v in n)s=n[v],n.hasOwnProperty(v)&&s!==void 0&&!i.hasOwnProperty(v)&&zf(e,t,v,void 0,i,s);for(f in i)s=i[f],h=n[f],!i.hasOwnProperty(f)||s===h||s===void 0&&h===void 0||zf(e,t,f,s,i,h);return}}for(var m in n)s=n[m],n.hasOwnProperty(m)&&s!=null&&!i.hasOwnProperty(m)&&Se(e,t,m,null,i,s);for(p in i)s=i[p],h=n[p],!i.hasOwnProperty(p)||s===h||s==null&&h==null||Se(e,t,p,s,i,h)}function Mp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Zx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var l=n[i],a=l.transferSize,o=l.initiatorType,r=l.duration;if(a&&r&&Mp(o)){for(o=0,r=l.responseEnd,i+=1;i<n.length;i++){var u=n[i],c=u.startTime;if(c>r)break;var f=u.transferSize,p=u.initiatorType;f&&Mp(p)&&(u=u.responseEnd,o+=f*(u<r?1:(r-c)/(u-c)))}if(--i,t+=8*(a+o)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Of=null,Df=null;function Vo(e){return e.nodeType===9?e:e.ownerDocument}function Ep(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wb(e,t,n,i){return n=Vo(n).createElement(e),n[ut]=i,n[Bt]=t,dt(n,e,t),at(n),n}function Lf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ns=null;function Ix(){var e=window.event;return e&&e.type==="popstate"?e===Ns?!1:(Ns=e,!0):(Ns=null,!1)}var Dd=typeof setTimeout=="function"?setTimeout:void 0,Jx=typeof clearTimeout=="function"?clearTimeout:void 0,Tp=typeof Promise=="function"?Promise:void 0,Np=typeof requestAnimationFrame=="function"?requestAnimationFrame:Dd,Fx=typeof queueMicrotask=="function"?queueMicrotask:typeof Tp<"u"?function(e){return Tp.resolve(null).then(e).catch($x)}:Dd;function $x(e){setTimeout(function(){throw e})}function tl(e){return e==="head"}function Rp(e,t){var n=t,i=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(l),za(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Cs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Cs(n);for(var a=n.firstChild;a;){var o=a.nextSibling,r=a.nodeName;a[Zo]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=o}}else n==="body"&&Cs(e.ownerDocument.body);n=l}while(n);za(t)}function Cp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Mb(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var l=i=0;l<t.length;l++){var a=t[l];0<a.width&&0<a.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Eb(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Tb(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function _f(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return Tb(t,n,e)}function Wx(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Tb(t,n,e)}function ew(e){return e.documentElement.clientHeight}function tw(e){this.addEventListener("load",e),this.addEventListener("error",e)}function nw(e,t,n,i,l,a,o,r,u){var c=t.nodeType===9?t:t.ownerDocument;try{var f=c.startViewTransition({update:function(){var s=c.defaultView,h=s.navigation&&s.navigation.transition,S=c.fonts.status;i();var b=[];if(S==="loaded"&&(ew(c),c.fonts.status==="loading"&&b.push(c.fonts.ready)),S=b.length,e!==null)for(var v=e.suspenseyImages,m=0,d=0;d<v.length;d++){var g=v[d];if(!g.complete){var x=g.getBoundingClientRect();if(0<x.bottom&&0<x.right&&x.top<s.innerHeight&&x.left<s.innerWidth){if(m+=Pb(g),m>fu){b.length=S;break}g=new Promise(tw.bind(g)),b.push(g)}}}if(0<b.length)return s=Promise.race([Promise.all(b),new Promise(function(M){return setTimeout(M,500)})]).then(l,l),(h?Promise.allSettled([h.finished,s]):s).then(a,a);if(l(),h)return h.finished.then(a,a);a()},types:n});c.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),h=0;h<s.length;h++){var S=s[h],b=S.effect,v=b.pseudoElement;if(v!=null&&v.startsWith("::view-transition")){p.push(S),S=b.getKeyframes();for(var m=v=void 0,d=!0,g=0;g<S.length;g++){var x=S[g],M=x.width;if(v===void 0)v=M;else if(v!==M){d=!1;break}if(M=x.height,m===void 0)m=M;else if(m!==M){d=!1;break}delete x.width,delete x.height,x.transform==="none"&&delete x.transform}d&&v!==void 0&&m!==void 0&&(b.setKeyframes(S),d=getComputedStyle(b.target,b.pseudoElement),d.width!==v||d.height!==m)&&(d=S[0],d.width=v,d.height=m,d=S[S.length-1],d.width=v,d.height=m,b.setKeyframes(S))}}o()},function(s){c.__reactViewTransition===f&&(c.__reactViewTransition=null);try{if(typeof s=="object"&&s!==null)switch(s.name){case"InvalidStateError":(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null)}s!==null&&u(s)}finally{i(),l(),o()}}),f.finished.finally(function(){for(var s=0;s<p.length;s++)p[s].cancel();c.__reactViewTransition===f&&(c.__reactViewTransition=null),r()}),f}catch{return i(),l(),o(),null}}function gl(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}gl.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Re({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};gl.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),i=[],l=0;l<n.length;l++){var a=n[l].effect;a!==null&&a.target===e&&a.pseudoElement===t&&i.push(n[l])}return i};gl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Nb(e){return{name:e,group:new gl("group",e),imagePair:new gl("image-pair",e),old:new gl("old",e),new:new gl("new",e)}}function nn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}nn.prototype.addEventListener=function(e,t,n){var i=null,l=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Rb(a,e,t,n)===-1){var o=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){o.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),i!==null&&(l=o.removeEventListener.bind(o,e,t,n),i.addEventListener("abort",l,{once:!0}),l=i.removeEventListener.bind(i,"abort",l)),i=Na(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:l}),Vt(this._fragmentFiber.child,!1,iw,e,r,i)}this._eventListeners=a}};function iw(e,t,n,i){return Je(e).addEventListener(t,n,i),!1}nn.prototype.removeEventListener=function(e,t,n){var i=this._eventListeners;if(i!==null&&(t=Rb(i,e,t,n),t!==-1)){var l=i[t];n=l.attachedListener;var a=l.cleanup;l=Na(l.optionsOrUseCapture),Vt(this._fragmentFiber.child,!1,lw,e,n,l),i.splice(t,1),a!==null&&a()}};function lw(e,t,n,i){return Je(e).removeEventListener(t,n,i),!1}function Na(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Ap(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Rb(e,t,n,i){if(e.length===0)return-1;i=Ap(i);for(var l=0;l<e.length;l++){var a=e[l];if(a.type===t&&a.listener===n&&Ap(a.optionsOrUseCapture)===i)return l}return-1}nn.prototype.dispatchEvent=function(e){var t=zl(this._fragmentFiber);if(t===null)return!0;t=Je(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var l=0;l<n.length;l++){var a=n[l];i.addEventListener(a.type,a.attachedListener,Na(a.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),n)for(l=0;l<n.length;l++)a=n[l],i.removeEventListener(a.type,a.attachedListener,Na(a.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)};nn.prototype.focus=function(e){Vt(this._fragmentFiber.child,!0,Cb,e,void 0,void 0)};function Cb(e,t){return e.tag===6?!1:(e=Je(e),gw(e,t))}nn.prototype.focusLast=function(e){var t=[];Vt(this._fragmentFiber.child,!0,Ld,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Cb(t[n],e);n--);};function Ld(e,t){return t.push(e),!1}nn.prototype.blur=function(){var e=zl(this._fragmentFiber);e!==null&&(e=Je(e),e=Vo(e).activeElement,e!==null&&Vt(this._fragmentFiber.child,!1,aw,e,void 0,void 0))};function aw(e,t){return e.tag===6?!1:(e=Je(e),e===t||e.contains(t)?(t.blur(),!0):!1)}nn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Vt(this._fragmentFiber.child,!1,ow,e,void 0,void 0)};function ow(e,t){return e.tag===6||(e=Je(e),t.observe(e)),!1}nn.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Vt(this._fragmentFiber.child,!1,rw,e,void 0,void 0);for(var n=t=0;n<Sn.length;n++){var i=Sn[n];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):Sn[t++]=i}Sn.length=t}};function rw(e,t){return e.tag===6||(e=Je(e),t.unobserve(e)),!1}var Sn=[],Rs=!1;function uw(e,t,n){Sn.push({fragmentInstance:e,observer:t,instance:n}),Rs||(Rs=!0,yw(function(){Rs=!1;var i=Sn;Sn=[];for(var l=0;l<i.length;l++){var a=i[l];a.observer.unobserve(a.instance)}}))}nn.prototype.getClientRects=function(){var e=[];return Vt(this._fragmentFiber.child,!1,cw,e,void 0,void 0),e};function cw(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Je(e),t.push.apply(t,e.getClientRects());return!1}nn.prototype.getRootNode=function(e){var t=zl(this._fragmentFiber);return t===null?this:Je(t).getRootNode(e)};nn.prototype.compareDocumentPosition=function(e){var t=zl(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Vt(this._fragmentFiber.child,!1,Ld,n,void 0,void 0);var i=Je(t);if(n.length===0){if(n=i,uh(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var l=i=n.compareDocumentPosition(e);return n===e?l=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Jp(t)[1],n===null?l=Node.DOCUMENT_POSITION_PRECEDING:(e=Je(n).compareDocumentPosition(e),l=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),l|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Je(n[0]),l=Je(n[n.length-1]);var a=uh(this._fragmentFiber)?t.parentElement:i;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),r=l.compareDocumentPosition(e),u=o&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=i&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||a&&l===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!a&&l===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||sw(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function sw(e,t,n,i,l){var a=pl(l);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)e:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break e}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=l.ownerDocument,l===a||l===a.documentElement||l===a.body;e:{for(a=t,t=zl(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break e}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=zs(n,a,ch),t===null?t=!1:(Vt(t,!0,B1,a,n),a=Jl,Jl=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===i)&&(t=zs(i,a,ch),t===null?t=!1:(Vt(t,!0,G1,a,i),a=Jl,As=Jl=null,t=a!==null)),t):!1}function zp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}nn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(R(566));var t=[];Vt(this._fragmentFiber.child,!1,Ld,t,void 0,void 0);var n=e!==!1;if(t.length===0){var i=Jp(this._fragmentFiber);if(i=n?i[1]||i[0]||zl(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=Je(i),zp(e,n);return}if(i=Je(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=n?t.length-1:0;i!==(n?-1:t.length);){var l=t[i];l.tag===6?(l=Je(l),zp(l,n)):Je(l).scrollIntoView(e),i+=n?-1:1}};function fw(e,t){return e=Je(e),Ab(e,t),!1}function Ab(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function zb(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];e.addEventListener(l.type,l.attachedListener,Na(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(a){for(var o=0,r=0;r<Sn.length;r++){var u=Sn[r];(u.fragmentInstance!==t||u.observer!==a||u.instance!==e)&&(Sn[o++]=u)}Sn.length=o,a.observe(e)}),Ab(e,t))}function dw(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];e.removeEventListener(l.type,l.attachedListener,Na(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(a){typeof a.rootMargin=="string"?uw(t,a,e):a.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Hf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Hf(n),ju(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function mw(e,t,n,i){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Zo])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=mn(e.nextSibling),e===null)break}return null}function hw(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=mn(e.nextSibling),e===null))return null;return e}function Ob(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=mn(e.nextSibling),e===null))return null;return e}function Uf(e){return e.data==="$?"||e.data==="$~"}function _d(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function pw(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function mn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Pf=null;function Op(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return mn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Dp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function gw(e,t){function n(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return i}function yw(e){Np(function(){Np(function(t){return e(t)})})}function Db(e,t,n){switch(t=Vo(n),e){case"html":if(e=t.documentElement,!e)throw Error(R(452));return e;case"head":if(e=t.head,!e)throw Error(R(453));return e;case"body":if(e=t.body,!e)throw Error(R(454));return e;default:throw Error(R(451))}}function Lb(e,t,n){for(var i in n){var l=n[i];n.hasOwnProperty(i)&&l!=null&&Se(e,t,i,null,Kx,l)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Bn&&(e.onclick=null),ju(e)}function Cs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ju(e)}var hn=new Map,Lp=new Set;function Bo(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var vi=ye.d;ye.d={f:bw,r:vw,D:Sw,C:xw,L:ww,m:Mw,X:Tw,S:Ew,M:Nw};function bw(){var e=vi.f(),t=lc();return e||t}function vw(e){var t=Da(e);t!==null&&t.tag===5&&t.type==="form"?yy(t):vi.r(e)}var Ua=typeof document>"u"?null:document;function _b(e,t,n){var i=Ua;if(i&&typeof t=="string"&&t){var l=sn(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),Lp.has(l)||(Lp.add(l),e={rel:e,crossOrigin:n,href:t},i.querySelector(l)===null&&(t=i.createElement("link"),dt(t,"link",e),at(t),i.head.appendChild(t)))}}function Sw(e){vi.D(e),_b("dns-prefetch",e,null)}function xw(e,t){vi.C(e,t),_b("preconnect",e,t)}function ww(e,t,n){vi.L(e,t,n);var i=Ua;if(i&&e&&t){var l='link[rel="preload"][as="'+sn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+sn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+sn(n.imageSizes)+'"]')):l+='[href="'+sn(e)+'"]';var a=l;switch(t){case"style":a=Ra(e);break;case"script":a=Pa(e)}if(!(hn.has(a)||(e=Re({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),hn.set(a,e),i.querySelector(l)!==null||t==="style"&&i.querySelector(er(a))||t==="script"&&i.querySelector(tr(a))))){var o=i.createElement("link");dt(o,"link",e),t==="style"&&(o[bu]=!0,o.onload=o.onerror=function(){cg(o)}),at(o),i.head.appendChild(o)}}}function Mw(e,t){vi.m(e,t);var n=Ua;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+sn(i)+'"][href="'+sn(e)+'"]',a=l;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Pa(e)}if(!hn.has(a)&&(e=Re({rel:"modulepreload",href:e},t),hn.set(a,e),n.querySelector(l)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(tr(a)))return}i=n.createElement("link"),dt(i,"link",e),at(i),n.head.appendChild(i)}}}function Ew(e,t,n){vi.S(e,t,n);var i=Ua;if(i&&e){var l=ua(i).hoistableStyles,a=Ra(e);t=t||"default";var o=l.get(a);if(!o){var r={loading:0,preload:null};if(o=i.querySelector(er(a)))r.loading=5;else{e=Re({rel:"stylesheet",href:e,"data-precedence":t},n),(n=hn.get(a))&&Hd(e,n);var u=o=i.createElement("link");at(u),dt(u,"link",e),u._p=new Promise(function(c,f){u.onload=c,u.onerror=f}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,cu(o,t,i)}o={type:"stylesheet",instance:o,count:1,state:r},l.set(a,o)}}}function Tw(e,t){vi.X(e,t);var n=Ua;if(n&&e){var i=ua(n).hoistableScripts,l=Pa(e),a=i.get(l);a||(a=n.querySelector(tr(l)),a||(e=Re({src:e,async:!0},t),(t=hn.get(l))&&Ud(e,t),a=n.createElement("script"),at(a),dt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(l,a))}}function Nw(e,t){vi.M(e,t);var n=Ua;if(n&&e){var i=ua(n).hoistableScripts,l=Pa(e),a=i.get(l);a||(a=n.querySelector(tr(l)),a||(e=Re({src:e,async:!0,type:"module"},t),(t=hn.get(l))&&Ud(e,t),a=n.createElement("script"),at(a),dt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(l,a))}}function _p(e,t,n,i){var l=(l=Vi.current)?Bo(l):null;if(!l)throw Error(R(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Ra(n.href),t=ua(l).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ra(n.href);var a=ua(l).hoistableStyles,o=a.get(e);if(o||(l=l.ownerDocument||l,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=l.querySelector(er(e)))?a._p||(o.instance=a,o.state.loading=5):(a=hn.get(e),a||(a={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hn.set(e,a)),Rw(l,e,a,o.state))),t&&i===null)throw Error(R(528,""));return o}if(t&&i!==null)throw Error(R(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Pa(n),t=ua(l).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(R(444,e))}}function Ra(e){return'href="'+sn(e)+'"'}function er(e){return'link[rel="stylesheet"]['+e+"]"}function Hb(e){return Re({},e,{"data-precedence":e.precedence,precedence:null})}function Rw(e,t,n,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[bu]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[bu]=!0,t.onload=t.onerror=cg.bind(null,t),dt(t,"link",n),at(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function Pa(e){return'[src="'+sn(e)+'"]'}function tr(e){return"script[async]"+e}function Hp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+sn(n.href)+'"]');if(i)return t.instance=i,at(i),i;var l=Re({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),at(i),dt(i,"style",l),cu(i,n.precedence,e),t.instance=i;case"stylesheet":l=Ra(n.href);var a=e.querySelector(er(l));if(a)return t.state.loading|=4,t.instance=a,at(a),a;i=Hb(n),(l=hn.get(l))&&Hd(i,l),a=(e.ownerDocument||e).createElement("link"),at(a);var o=a;return o._p=new Promise(function(r,u){o.onload=r,o.onerror=u}),dt(a,"link",i),t.state.loading|=4,cu(a,n.precedence,e),t.instance=a;case"script":return a=Pa(n.src),(l=e.querySelector(tr(a)))?(t.instance=l,at(l),l):(i=n,(l=hn.get(a))&&(i=Re({},n),Ud(i,l)),e=e.ownerDocument||e,l=e.createElement("script"),at(l),dt(l,"link",i),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(R(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,cu(i,n.precedence,e));return t.instance}function cu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=i.length?i[i.length-1]:null,a=l,o=0;o<i.length;o++){var r=i[o];if(r.dataset.precedence===t)a=r;else if(a!==l)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ud(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var su=null;function Up(e,t,n){if(su===null){var i=new Map,l=su=new Map;l.set(n,i)}else l=su,i=l.get(n),i||(i=new Map,l.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var a=n[l];if(!(a[Zo]||a[ut]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var o=a.getAttribute(t)||"";o=e+o;var r=i.get(o);r?r.push(a):i.set(o,[a])}}return i}function kf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Cw(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Pp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Ub(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Pb(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function kp(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Pb(t),e.suspenseyImages.push(t)),e=Ow.bind(e),t.decode().then(e,e))}function Aw(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=Ra(i.href),a=t.querySelector(er(l));if(a){t=a._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Go.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,at(a);return}a=t.ownerDocument||t,i=Hb(i),(l=hn.get(l))&&Hd(i,l),a=a.createElement("link"),at(a);var o=a;o._p=new Promise(function(r,u){o.onload=r,o.onerror=u}),dt(a,"link",i),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Go.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var fu=0;function zw(e,t){return e.stylesheets&&e.count===0&&du(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&du(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4+t);0<e.imgBytes&&fu===0&&(fu=62500*Zx());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&du(e,e.stylesheets),e.unsuspend)){var a=e.unsuspend;e.unsuspend=null,a()}},(e.imgBytes>fu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(l)}}:null}function kb(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)du(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Go(){this.count--,kb(this)}function Ow(){this.imgCount--,kb(this)}var Gu=null;function du(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gu=new Map,t.forEach(Dw,e),Gu=null,Go.call(e))}function Dw(e,t){if(!(t.state.loading&4)){var n=Gu.get(e);if(n)var i=n.get(null);else{n=new Map,Gu.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<l.length;a++){var o=l[a];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),i=o)}i&&n.set(null,i)}l=t.instance,o=l.getAttribute("data-precedence"),a=n.get(o)||i,a===i&&n.set(null,l),n.set(o,l),this.count++,i=Go.bind(this),l.addEventListener("load",i),l.addEventListener("error",i),a?a.parentNode.insertBefore(l,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Ca={$$typeof:Vn,Provider:null,Consumer:null,_currentValue:yl,_currentValue2:yl,_threadCount:0};function Lw(e,t,n,i,l,a,o,r,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ns(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ns(0),this.hiddenUpdates=ns(null),this.identifierPrefix=i,this.onUncaughtError=l,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function Vb(e,t,n,i,l,a,o,r,u,c,f,p){return e=new Lw(e,t,n,o,u,c,f,p,r),t=1,a===!0&&(t|=24),a=Pt(3,null,null,t),e.current=a,a.stateNode=e,t=nd(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:i,isDehydrated:n,cache:t},ad(a),e}function Bb(e){return e?(e=la,e):la}function Gb(e,t,n,i,l,a){l=Bb(l),i.context===null?i.context=l:i.pendingContext=l,i=Gi(t),i.payload={element:n},a=a===void 0?null:a,a!==null&&(i.callback=a),n=Yi(e,i,t),n!==null&&(kt(n,e,t),vo(n,e,t))}function Vp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pd(e,t){Vp(e,t),(e=e.alternate)&&Vp(e,t)}function Yb(e){if(e.tag===13||e.tag===31){var t=Ll(e,67108864);t!==null&&kt(t,e,67108864),Pd(e,67108864)}}function Bp(e){if(e.tag===13||e.tag===31){var t=en();t=jf(t);var n=Ll(e,t);n!==null&&kt(n,e,t),Pd(e,t)}}var Aa=!0;function _w(e,t,n,i){var l=Q.T;Q.T=null;var a=ye.p;try{ye.p=2,kd(e,t,n,i)}finally{ye.p=a,Q.T=l}}function Hw(e,t,n,i){var l=Q.T;Q.T=null;var a=ye.p;try{ye.p=8,kd(e,t,n,i)}finally{ye.p=a,Q.T=l}}function kd(e,t,n,i){if(Aa){var l=Vf(i);if(l===null)Ts(e,t,i,Yu,n),Gp(e,i);else if(Pw(l,e,t,n,i))i.stopPropagation();else if(Gp(e,i),t&4&&-1<Uw.indexOf(e)){for(;l!==null;){var a=Da(l);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=dl(a.pendingLanes);if(o!==0){var r=a;for(r.pendingLanes|=2,r.entangledLanes|=2;o;){var u=1<<31-Wt(o);r.entanglements[1]|=u,o&=~u}Qn(a),(ge&6)===0&&(Uu=Ft()+500,Wo(0,!1))}}break;case 31:case 13:r=Ll(a,2),r!==null&&kt(r,a,2),lc(),Pd(a,2)}if(a=Vf(i),a===null&&Ts(e,t,i,Yu,n),a===l)break;l=a}l!==null&&i.stopPropagation()}else Ts(e,t,i,null,n)}}function Vf(e){return e=Qf(e),Vd(e)}var Yu=null;function Vd(e){if(Yu=null,e=pl(e),e!==null){var t=jo(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Qp(t),e!==null)return e;e=null}else if(n===31){if(e=Zp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Yu=e,null}function qb(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(J1()){case eg:return 2;case tg:return 8;case yu:case F1:return 32;case ng:return 268435456;default:return 32}default:return 32}}var Bf=!1,Ki=null,Qi=null,Zi=null,Yo=new Map,qo=new Map,Di=[],Uw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Gp(e,t){switch(e){case"focusin":case"focusout":Ki=null;break;case"dragenter":case"dragleave":Qi=null;break;case"mouseover":case"mouseout":Zi=null;break;case"pointerover":case"pointerout":Yo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qo.delete(t.pointerId)}}function ro(e,t,n,i,l,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:a,targetContainers:[l]},t!==null&&(t=Da(t),t!==null&&Yb(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Pw(e,t,n,i,l){switch(t){case"focusin":return Ki=ro(Ki,e,t,n,i,l),!0;case"dragenter":return Qi=ro(Qi,e,t,n,i,l),!0;case"mouseover":return Zi=ro(Zi,e,t,n,i,l),!0;case"pointerover":var a=l.pointerId;return Yo.set(a,ro(Yo.get(a)||null,e,t,n,i,l)),!0;case"gotpointercapture":return a=l.pointerId,qo.set(a,ro(qo.get(a)||null,e,t,n,i,l)),!0}return!1}function jb(e){var t=pl(e.target);if(t!==null){var n=jo(t);if(n!==null){if(t=n.tag,t===13){if(t=Qp(n),t!==null){e.blockedOn=t,mh(e.priority,function(){Bp(n)});return}}else if(t===31){if(t=Zp(n),t!==null){e.blockedOn=t,mh(e.priority,function(){Bp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vf(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Ys=i,n.target.dispatchEvent(i),Ys=null}else return t=Da(n),t!==null&&Yb(t),e.blockedOn=n,!1;t.shift()}return!0}function Yp(e,t,n){mu(e)&&n.delete(t)}function kw(){Bf=!1,Ki!==null&&mu(Ki)&&(Ki=null),Qi!==null&&mu(Qi)&&(Qi=null),Zi!==null&&mu(Zi)&&(Zi=null),Yo.forEach(Yp),qo.forEach(Yp)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,Bf||(Bf=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,kw)))}var Zr=null;function qp(e){Zr!==e&&(Zr=e,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,function(){Zr===e&&(Zr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],l=e[t+2];if(typeof i!="function"){if(Vd(i||n)===null)continue;break}var a=Da(n);a!==null&&(e.splice(t,3),t-=3,af(a,{pending:!0,data:l,method:n.method,action:i},i,l))}}))}function za(e){function t(u){return Qr(u,e)}Ki!==null&&Qr(Ki,e),Qi!==null&&Qr(Qi,e),Zi!==null&&Qr(Zi,e),Yo.forEach(t),qo.forEach(t);for(var n=0;n<Di.length;n++){var i=Di[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Di.length&&(n=Di[0],n.blockedOn===null);)jb(n),n.blockedOn===null&&Di.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var l=n[i],a=n[i+1],o=l[Bt]||null;if(typeof a=="function")o||qp(n);else if(o){var r=null;if(a&&a.hasAttribute("formAction")){if(l=a,o=a[Bt]||null)r=o.formAction;else if(Vd(l)!==null)continue}else r=o.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),qp(n)}}}function Xb(){function e(a){a.canIntercept&&a.info==="react-transition"&&a.intercept({handler:function(){return new Promise(function(o){return l=o})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var a=navigation.currentEntry;a&&a.url!=null&&navigation.navigate(a.url,{state:a.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Bd(e){this._internalRoot=e}rc.prototype.render=Bd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));var n=t.current,i=en();Gb(n,i,e,t,null,null)};rc.prototype.unmount=Bd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gb(e.current,2,null,e,null,null),lc(),t[Oa]=null}};function rc(e){this._internalRoot=e}rc.prototype.unstable_scheduleHydration=function(e){if(e){var t=ug();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Di.length&&t!==0&&t<Di[n].priority;n++);Di.splice(n,0,e),n===0&&jb(e)}};var jp=Xp.version;if(jp!=="19.3.0")throw Error(R(527,jp,"19.3.0"));ye.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=V1(t),e=e!==null?Ip(e):null,e=e===null?null:e.stateNode,e};var Vw={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(uo=__REACT_DEVTOOLS_GLOBAL_HOOK__,!uo.isDisabled&&uo.supportsFiber))try{Xo=uo.inject(Vw),$t=uo}catch{}var uo;uc.createRoot=function(e,t){if(!Kp(e))throw Error(R(299));var n=!1,i="",l=Ty,a=Ny,o=Ry;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Vb(e,1,!1,null,null,n,i,null,l,a,o,Xb),e[Oa]=t.current,Od(e),new Bd(t)};uc.hydrateRoot=function(e,t,n){if(!Kp(e))throw Error(R(299));var i=!1,l="",a=Ty,o=Ny,r=Ry,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Vb(e,1,!0,t,n??null,i,l,u,a,o,r,Xb),t.context=Bb(null),n=t.current,i=en(),i=jf(i),l=Gi(i),l.callback=null,Yi(n,l,i),n=i,t.current.lanes=n,Qo(t,n),Qn(t),e[Oa]=t.current,Od(e),new rc(t)};uc.version="19.3.0"});var Ib=Dn((HM,Zb)=>{"use strict";function Qb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qb)}catch(e){console.error(e)}}Qb(),Zb.exports=Kb()});var p0=Dn(vc=>{"use strict";var t2=Symbol.for("react.transitional.element"),n2=Symbol.for("react.fragment");function h0(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var l in t)l!=="key"&&(n[l]=t[l])}else n=t;return t=n.ref,{$$typeof:t2,type:e,key:i,ref:t!==void 0?t:null,props:n}}vc.Fragment=n2;vc.jsx=h0;vc.jsxs=h0});var me=Dn((dE,g0)=>{"use strict";g0.exports=p0()});var o1=X(Ib(),1);var F=X(nt(),1);var Mn=e=>e;var Bw=["path","circle","ellipse","line","polyline","polygon","rect","g"],Gw={fill:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,stroke:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,strokeWidth:/^[\d.]+$/,strokeLinecap:/^(?:butt|round|square)$/,strokeLinejoin:/^(?:miter|round|bevel)$/,fillRule:/^(?:nonzero|evenodd)$/,opacity:/^[\d.]+$/,fillOpacity:/^[\d.]+$/,strokeOpacity:/^[\d.]+$/,transform:/^(?:(?:matrix|translate|scale|rotate|skewX|skewY)\([\deE+.,\s-]+\)[,\s]*)+$/,d:/^[mMlLhHvVcCsSqQtTaAzZeE\d+.,\s-]+$/,points:/^[\deE+.,\s-]+$/},Yw=["x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height"],Fb=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,$b=1024;function Gd(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function Jb(e){let t=Gd(e),n={};for(let[i,l]of Object.entries(Gw)){let a=t[i],o=i==="d"||i==="points"?4096:i==="transform"?128:32;typeof a=="string"&&a.length<=o&&l.test(a)&&(n[i]=a)}for(let i of Yw){let l=t[i];typeof l=="string"&&l.length<=32&&Fb.test(l)&&Math.abs(Number(l))<=1e5&&(n[i]=l)}return n}function Wb(e){let{viewBox:t,attrs:n,shapes:i}=Gd(e);if(typeof t!="string"||t.length>100)return;let l=t.trim().split(/[\s,]+/);if(l.length!==4||!l.every(u=>Fb.test(u)&&Math.abs(Number(u))<=1e5)||Number(l[2])<=0||Number(l[3])<=0)return;let a=64;function o(u,c){if(!Array.isArray(u)||c>6)return[];let f=[];for(let p of u){if(a--<=0)break;let{tag:s,attrs:h,shapes:S}=Gd(p),b=Bw.find(v=>v===s);b&&f.push({tag:b,attrs:Jb(h),shapes:b==="g"?o(S,c+1):[]})}return f}let r=o(i,0);return r.length?{viewBox:l.join(" "),attrs:Jb(n),shapes:r}:void 0}var e0=["siblings","ontology","crosslinks","sidecar"],Yd={view:["compass","mindmap"],dock:["left","right","bottom"],theme:["system","light","dark"]},cc=["view",...e0,"dock","theme"],qd={view:"compass",siblings:!0,ontology:!0,crosslinks:!1,sidecar:!0,dock:"right",theme:"system"};function sc(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e,n={},i=Yd.view.find(o=>o===t.view),l=Yd.dock.find(o=>o===t.dock),a=Yd.theme.find(o=>o===t.theme);i&&(n.view=i),l&&(n.dock=l),a&&(n.theme=a);for(let o of e0){let r=t[o];typeof r=="boolean"&&(n[o]=r)}return Object.keys(n).length?n:void 0}var dc=1e4,qw=25e4,jw=256*1024*1024,i0=24*1024*1024,Xd="data/search.json",Kd="theme/publication.css",qM=48*1024,Qd=["parent","child","left","right","previous","next"],Xw=["document","drawing","attachment","folder","tag","url"],Kw=/^(?:index\.html|\.nojekyll|data\/search\.json|theme\/publication\.css|notes\/[a-f0-9-]{36}\.html|assets\/[a-f0-9]{64}\.(?:png|jpe?g|gif|webp|avif|svg|mp3|ogg|wav|mp4|webm|pdf)|runtime\/(?:compass\.css|(?:compass|demo|chunk(?:-[a-zA-Z0-9]+)?)\.js(?:\.LEGAL\.txt)?)|LICENSES\/(?:K-Plex|React|ReactDOM|Scheduler|Lucide|Source)\.txt)$/,Qw=/^[a-f0-9]{64}$/,t0=["none","arrow","triangle","bar","dot"],Zw=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,Iw=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Zd(e){return typeof e=="string"&&e.length<=2048&&!/[\s\\<>"\p{Cc}]/u.test(e)&&/^https?:\/\/(?:[a-z0-9._-]+|\[[a-f0-9:.]+\])(?::\d{1,5})?(?:[/?#]|$)/i.test(e)}function Si(e){return typeof e=="string"&&Iw.test(e)}function Id(e){if(!Si(e))throw new Error("Invalid public note ID");return`notes/${e}.html`}function Jd(e){return typeof e=="string"&&e.length<=180&&Kw.test(e)}function En(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid publication record");return e}function Hl(e,t){return typeof e=="string"&&e.length<=t&&e.trim().length>0&&!/\p{Cc}/u.test(e)}function Zn(e,t,n){return typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=n}function l0(e,t){return Zn(e,0,t-1)&&Number.isInteger(e)}function fc(e,t){let n=En(e),i={};for(let r of["fill","stroke","color","gate"]){let u=n[r];if(u!==void 0){if(typeof u!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(u))throw new Error("Invalid publication color");i[r]=u}}let{fontSize:l,gateRadius:a,icon:o}=n;if(l!==void 0&&!Zn(l,6,96))throw new Error("Invalid publication font size");if(a!==void 0&&!Zn(a,0,40))throw new Error("Invalid publication gate radius");if(o!=null&&!l0(o,t))throw new Error("Invalid publication icon reference");return{...i,fontSize:l,gateRadius:a,...o===void 0?{}:{icon:o}}}function Jw(e,t){let{center:n,sibling:i,inferred:l}=En(e);return{center:n===void 0?void 0:fc(n,t),sibling:i===void 0?void 0:fc(i,t),inferred:l===void 0?void 0:fc(l,t)}}function Fw(e){let{stroke:t,width:n,arrowStart:i,arrowEnd:l,startHead:a,endHead:o,labelColor:r,labelSize:u}=En(e);if(t!==void 0&&(typeof t!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(t))||n!==void 0&&!Zn(n,.25,20)||i!==void 0&&typeof i!="boolean"||l!==void 0&&typeof l!="boolean")throw new Error("Invalid publication link style");let c=t0.find(p=>p===a),f=t0.find(p=>p===o);if(a!==void 0&&!c||o!==void 0&&!f)throw new Error("Invalid publication arrow type");if(r!==void 0&&(typeof r!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(r))||u!==void 0&&!Zn(u,6,96))throw new Error("Invalid publication link label");return{stroke:t,width:n,arrowStart:i,arrowEnd:l,startHead:c,endHead:f,labelColor:r,labelSize:u}}function $w(e){let t=En(e),n={};if(t.maximum!==void 0){if(!Zn(t.maximum,1,400)||!Number.isInteger(t.maximum))throw new Error("Invalid publication scene limit");n.maximum=t.maximum}if(t.flip!==void 0){if(typeof t.flip!="boolean")throw new Error("Invalid publication orientation");n.flip=t.flip}if(t.showCrossLinks!==void 0){if(typeof t.showCrossLinks!="boolean")throw new Error("Invalid publication crosslinks preference");n.showCrossLinks=t.showCrossLinks}if(t.geometry!==void 0){let i=En(t.geometry),l={},a=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let o of a){let r=i[o];if(r!==void 0){if(!Zn(r,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(l,{[o]:r})}}if(i.compactView!==void 0&&typeof i.compactView!="boolean")throw new Error("Invalid publication compact mode");if(i.lateralArrangement!==void 0&&i.lateralArrangement!=="split"&&i.lateralArrangement!=="left")throw new Error("Invalid publication side layout");n.geometry={...l,...i.compactView===void 0?{}:{compactView:i.compactView},...i.lateralArrangement===void 0?{}:{lateralArrangement:i.lateralArrangement}}}if(t.typography!==void 0){let{baseFontSize:i,wrapNodeLabels:l,propertyFontSize:a}=En(t.typography);if(i!==void 0&&!Zn(i,6,48)||a!==void 0&&!Zn(a,6,48)||l!==void 0&&typeof l!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:i,wrapNodeLabels:l,propertyFontSize:a}}return n}function Ww(e){let t=Object.entries(En(e));if(t.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[i,l]of t){if(!Hl(i,192)||["__proto__","constructor","prototype"].includes(i))throw new Error("Invalid publication property name");if(Hl(l,1e3)||typeof l=="boolean"||typeof l=="number"&&Number.isFinite(l))n.set(i,l);else if(Array.isArray(l)&&l.length<=48&&l.every(a=>Hl(a,1e3)))n.set(i,[...l]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function a0(e){let t=En(e);if(t.version!==2||typeof t.runtimeVersion!="string"||!Zw.test(t.runtimeVersion))throw new Error("Unsupported publication version");let{colorMode:n}=t;if(n!==void 0&&n!=="light"&&n!=="dark"&&n!=="both")throw new Error("Invalid publication color mode");if(!Si(t.id)||!Si(t.entry)||!Hl(t.title,240)||typeof t.fullText!="boolean"||!Array.isArray(t.nodes)||!t.nodes.length||t.nodes.length>dc||!Array.isArray(t.relations)||t.relations.length>qw||!Array.isArray(t.resources)||t.resources.length>dc*4)throw new Error("Invalid publication manifest");let i=0,l=new Set,a=t.resources.map(b=>{let{path:v,bytes:m,sha256:d}=En(b);if(!Jd(v)||l.has(v)||!Zn(m,0,32*1024*1024)||!Number.isInteger(m)||typeof d!="string"||!Qw.test(d))throw new Error("Invalid publication resource");if(l.add(v),i+=m,i>jw)throw new Error("Publication exceeds package limit");return{path:v,bytes:m,sha256:d}}),o;if(t.icons!==void 0){if(!Array.isArray(t.icons)||t.icons.length>$b)throw new Error("Invalid publication icons");o=t.icons.map(b=>{let v=Wb(b);if(!v)throw new Error("Invalid publication icon");return v})}let r=o?.length??0,u=new Set,c=new Set,f=t.nodes.map(b=>{let v=En(b),{id:m,title:d,aliases:g,asset:x,url:M,trailIcon:T}=v,w=Xw.find(N=>N===v.kind);if(!Si(m)||u.has(m)||!Hl(d,512)||!w)throw new Error("Invalid publication node");if(u.add(m),w==="document"||w==="drawing"){let N=Id(m);if(!l.has(N))throw new Error("Missing publication note resource");c.add(N)}if(x!==void 0&&(typeof x!="string"||!x.startsWith("assets/")||!l.has(x)))throw new Error("Missing publication asset");if(M!==void 0&&(w!=="url"||!Zd(M)))throw new Error("Invalid publication web link");if(T!==void 0&&!l0(T,r))throw new Error("Invalid publication trail icon");if(g!==void 0&&(!Array.isArray(g)||g.length>64||!g.every(N=>Hl(N,512))))throw new Error("Invalid publication aliases");return{id:m,title:d,kind:w,...g===void 0?{}:{aliases:[...g]},...x===void 0?{}:{asset:x},...M===void 0?{}:{url:M},...T===void 0?{}:{trailIcon:T},...v.style===void 0?{}:{style:fc(v.style,r)},...v.roleStyles===void 0?{}:{roleStyles:Jw(v.roleStyles,r)},...v.properties===void 0?{}:{properties:Ww(v.properties)}}});if(!u.has(t.entry)||[...l].some(b=>b.startsWith("notes/")&&!c.has(b))||t.fullText!==l.has(Xd))throw new Error("Invalid publication document catalogue");let p;if(t.pins!==void 0){if(!Array.isArray(t.pins)||t.pins.length>u.size)throw new Error("Invalid publication pins");let b=t.pins;if(new Set(b).size!==b.length||!b.every(v=>typeof v=="string"&&u.has(v)))throw new Error("Invalid publication pins");p=b.slice()}let s=new Set,h=t.relations.map(b=>{let{source:v,target:m,relationType:d,direction:g,definition:x,role:M,style:T}=En(b),w=Qd.find(V=>V===M);if(typeof v!="string"||typeof m!="string"||v===m||!u.has(v)||!u.has(m)||!w||d!==1&&d!==2||g!==null&&g!==1&&g!==2&&g!==3||x!==void 0&&!Hl(x,192))throw new Error("Invalid publication relationship");let N=`${v}/${m}/${w}`;if(s.has(N))throw new Error("Duplicate publication relationship");return s.add(N),{source:v,target:m,role:w,relationType:d,direction:g,...x===void 0?{}:{definition:x},...T===void 0?{}:{style:Fw(T)}}}),S=sc(t.canvasDefaults);return{version:2,runtimeVersion:t.runtimeVersion,id:t.id,title:t.title,entry:t.entry,fullText:t.fullText,nodes:f,relations:h,resources:a,...n===void 0?{}:{colorMode:n},...p===void 0?{}:{pins:p},...S&&{canvasDefaults:S},...o===void 0?{}:{icons:o},...t.appearance===void 0?{}:{appearance:$w(t.appearance)}}}var nr={key:"F4"};function o0(e){try{let t=JSON.stringify(e);if(!t||t.length>16384)return null;let n=JSON.parse(t),i=(l,a)=>a<=8&&(!l||typeof l!="object"||Object.values(l).every(o=>i(o,a+1)));return i(n,0)?n:null}catch{return null}}var ht={occurrences:2e3,depth:20,scopes:8,stateCharacters:12e3,occurrenceCharacters:4096},mc={min:.1,max:4,step:.05};function ka(e,t,n){return{defaultValue:e,validate:i=>typeof i=="number"&&Number.isInteger(i)&&i>=t&&i<=n}}var hc={version:1,fields:{arrangement:{defaultValue:"right",validate:e=>e==="balanced"||e==="left"||e==="right"},horizontalSpacing:ka(96,40,240),verticalSpacing:ka(24,12,80),parentColumns:ka(2,1,3),initialGenerations:ka(1,1,3),horizontalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=mc.min&&e<=mc.max},verticalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=mc.min&&e<=mc.max},maximumDepth:ka(10,1,ht.depth),maximumOccurrences:ka(500,16,ht.occurrences)}};function pc(e){if(e?.status==="unavailable")return null;let t=e?.values??{},n=l=>Object.prototype.hasOwnProperty.call(t,l)?t[l]:hc.fields[l].defaultValue;for(let[l,a]of Object.entries(hc.fields))if(!a.validate(n(l)))return null;let i=n("arrangement");return i!=="balanced"&&i!=="left"&&i!=="right"?null:{arrangement:i,horizontalSpacing:Number(n("horizontalSpacing")),verticalSpacing:Number(n("verticalSpacing")),horizontalDensity:Number(n("horizontalDensity")),verticalDensity:Number(n("verticalDensity")),parentColumns:Number(n("parentColumns")),initialGenerations:Number(n("initialGenerations")),maximumDepth:Number(n("maximumDepth")),maximumOccurrences:Number(n("maximumOccurrences"))}}var Fd={version:1,scope:null,initialGenerations:null,expanded:[],collapsed:[],sides:{}},gc={version:0,unavailable:!0};function Ul(e){return typeof e=="string"&&e.length>0&&e.length<=ht.occurrenceCharacters}function nl(e){if(e==null)return{...Fd,expanded:[],collapsed:[],sides:{}};let t=o0(e);if(!t||typeof t!="object"||Array.isArray(t)||Reflect.get(t,"version")!==1)return gc;let n=Reflect.get(t,"scope"),i=Reflect.get(t,"initialGenerations"),l=Reflect.get(t,"expanded"),a=Reflect.get(t,"collapsed"),o=Reflect.get(t,"sides");if(n===null!=(i===null)||n!==null&&!Ul(n)||i!==null&&(typeof i!="number"||!Number.isInteger(i)||i<1||i>3)||!Array.isArray(l)||!Array.isArray(a)||l.length>256||a.length>256||!l.every(Ul)||!a.every(Ul)||!o||typeof o!="object"||Array.isArray(o)||Object.keys(o).length>256)return gc;let r=[];for(let[c,f]of Object.entries(o)){let p=f;if(!Ul(c)||p!==-1&&p!==1)return gc;r.push([c,p])}r.sort(([c],[f])=>c<f?-1:c>f?1:0);let u={...t,version:1,scope:n===null?null:Mn(n),initialGenerations:i,expanded:[...new Set(l)].sort(),collapsed:[...new Set(a)].sort(),sides:Object.fromEntries(r)};return JSON.stringify(u).length<=ht.stateCharacters?u:gc}function r0(e,t,n){return e.scope===t?e:{...e,scope:t,initialGenerations:n,expanded:[],collapsed:[],sides:{}}}function ir(e){let t=nl(e);return t.version===1?t:null}function yc(e,t,n){let i=nl(e),l=i.version===1&&i.scope===t.layoutRoot?i:nl(t.stateSuggestion);if(l.version!==1||l.scope!==t.layoutRoot)return null;let a=new Set(l.expanded),o=new Set(l.collapsed),r=t.occurrences.filter(u=>u.branch?.canExpand&&!u.branch.reference);if(n.kind==="toggle")r=r.filter(u=>u.id===n.occurrenceId);else if(n.kind==="expand-generation"){let u=Math.min(...r.filter(c=>!c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>!c.branch.expanded&&c.branch.depth===u)}else{let u=Math.max(...r.filter(c=>c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>c.branch.expanded&&c.branch.depth===u)}if(!r.length)return null;for(let u of r)n.kind==="expand-generation"||n.kind==="toggle"&&!u.branch.expanded?(o.delete(u.id),a.add(u.id)):(a.delete(u.id),o.add(u.id));return ir({...l,expanded:[...a],collapsed:[...o]})}var z={licenses:"Runtime licenses",mindMap:"Mind Map",expandBranch:"Expand branch",collapseBranch:"Collapse branch",graphOptions:"Graph options",crossLinks:"Show crosslinks",linkOntology:"Show link ontology",view:"Compass",back:"History back",forward:"History forward",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit graph",loadFailed:"Could not open this publication",retry:"Retry",loading:"Opening publication…",loadingNote:"Opening note…",find:"Find note",fullText:"Include note text",searchLoading:"Loading note search…",searchUnavailable:"Note search is unavailable",address:"Note address",open:"Open",nodeUnavailable:"That thought is unavailable in this publication",copyAddress:"Copy note address",addressCopied:"Note address copied",copyShortAddress:"Copy link (short ID)",copyFullAddress:"Copy link (full ID)",ambiguousAddress:"This short ID matches several notes. Use the full ID.",pins:"Pins",history:"Session history",backTooltip:"History back (Alt + ←)",forwardTooltip:"History forward (Alt + →)",showSidecarTooltip:"Show Sidecar (Alt + Shift + S)",hideSidecarTooltip:"Hide Sidecar (Alt + Shift + S)",chooseNote:"Choose a matching thought",chooseAddress:"Enter a note ID to select another match",showSidecar:"Show Sidecar",hideSidecar:"Hide Sidecar",closeSidecar:"Close Sidecar",showSiblings:"Show siblings",hideSiblings:"Hide siblings",siblings:"Siblings",friends:"Friends / Previous",challengers:"Challengers / Next",lateral:"Friends, challengers, and sequence",theme:"Theme",about:"About",sidecar:"Sidecar",sidecarHide:"Hide",sidecarLeft:"Left",sidecarRight:"Right",sidecarBottom:"Bottom",openWebsite:"Open original in a new tab",webFrameHelp:"If the page is blank or blocked, open the original.",githubLoading:"Loading GitHub preview…",githubPreviewUnavailable:"GitHub preview unavailable. Open the original to view the page.",githubOpenOriginal:"View this GitHub page in a browser tab.",githubNoCommits:"No commits in this comparison.",githubCommitCount:(e,t)=>`Showing ${e} of ${t} commits`,resizeSidecar:"Resize Sidecar",dockSidecarBottom:"Move Sidecar below",dockSidecarRight:"Move Sidecar right",noteUnavailable:"Could not open this note",mediaUnavailable:"Some media could not be opened",noDocument:"No document is available for this thought",downloadAsset:"Download file",sceneLimited:"Some connections are outside this view’s display limit",themeUnavailable:"Using the default colors",insecure:"Open this publication over HTTPS or through a local preview server"},il={label:"Color theme",light:"Light",dark:"Dark",auto:"Auto",system:"System",trigger:e=>`Color theme (${e})`},In={label:"K-Plex resources",github:"K-Plex on GitHub",npm:"K-Plex Web Player on npm",community:"K-Plex in Obsidian Community Plugins",playlist:"K-Plex YouTube playlist",book:"Sketch Your Mind book"};var bc=class{constructor(t,n,i,l=750,a){this.owner=t;this.requireAlt=n;this.publish=i;this.delayMs=l;this.modifierFeedback=a;this.timer=null;this.candidate=null;this.alt=!1;this.enteredAt=0;this.modifierCandidate=!1}enter(t,n){if(n.pointerType==="touch"){this.modifierFeedback&&this.clear();return}this.clear(!1),this.candidate=t,this.alt=n.altKey,this.enteredAt=this.owner.performance.now(),this.modifierCandidate=n.pointerType==="mouse"&&n.isTrusted===!0&&this.modifierFeedback?.accepts(t)===!0,this.modifierFeedback?.publish(this.modifierCandidate&&this.alt?t:null),this.requireAlt||this.modifierCandidate&&this.alt?this.publish(this.alt?t:null):this.activateOrdinary()}modifier(t,n=!1){this.candidate===null||this.alt===t||!this.requireAlt&&!this.modifierCandidate||this.modifierCandidate&&!n||(this.alt=t,this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.modifierCandidate&&this.modifierFeedback?.publish(t?this.candidate:null),this.requireAlt||t?this.publish(t?this.candidate:null):(this.publish(null),this.activateOrdinary()))}activateOrdinary(){let t=this.candidate;if(t===null)return;let n=Math.max(0,this.delayMs-(this.owner.performance.now()-this.enteredAt));n===0?this.publish(t):this.timer=this.owner.setTimeout(()=>{this.timer=null,this.publish(t)},n)}clear(t=!0){this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.candidate=null,this.modifierCandidate=!1,this.modifierFeedback?.publish(null),t&&this.publish(null)}};function u0(e,t){let n=e.ownerDocument,i=n.defaultView,l=r=>t.modifier(r.altKey,r.isTrusted),a=()=>t.clear(),o=()=>{n.visibilityState==="hidden"&&t.clear()};return i.addEventListener("keydown",l),i.addEventListener("keyup",l),i.addEventListener("blur",a),n.addEventListener("visibilitychange",o),()=>{i.removeEventListener("keydown",l),i.removeEventListener("keyup",l),i.removeEventListener("blur",a),n.removeEventListener("visibilitychange",o),t.clear()}}var $d={min:8,max:20,step:1,default:12};function Wd(e){return typeof e=="number"&&Number.isFinite(e)?Math.max($d.min,Math.min($d.max,e)):$d.default}var lr=(e,t,n)=>Math.max(t,Math.min(n,e));function c0(e){return Math.max(5,(e.gateRadius??5)*1.05)}function em(e=30,t=!1){let n=Math.round(Math.max(8,e));return Math.max(t?18:8,n+(t?8:0))}function ar(e,t,n=12.4){return(t?lr(e*.72,13,24):lr(e*.62,10,16))*lr(Number.isFinite(n)?n:12.4,8,28)/12.4}function e2(e,t){if(e.measurement&&Number.isFinite(e.measurement.width)&&e.measurement.width>=0)return e.measurement.width;let n=i=>Array.from(i).reduce((l,a)=>l+(a.codePointAt(0)>11903?1:.55)*t,0);return n(e.text)+(e.label?n(`${e.label}:`)+4:0)+(e.icon?t+4:0)}function s0(e,t){return e.length?4+e.reduce((n,i)=>n+Math.ceil(i.measurement&&Number.isFinite(i.measurement.height)&&i.measurement.height>0?i.measurement.height:t*1.4),0):0}function f0(e,t){return e.reduce((n,i)=>Math.max(n,32+e2(i,t)),0)}function d0(e,t,n,i=!1,l=30,a,o=1,r=[]){let u=(n.baseFontSize??12.4)/12.4,c=Math.min(e.length,em(l,i)),f=i?180:112,s=Math.max(f,a??(i?370:286)),h=i?ar(t,!0,n.baseFontSize)*.55:t*u*.29,S=lr(70+c*Math.max(4.8,h),f,s),b=(i?16:8)+2*Math.max(0,o),v=ar(t,i,n.baseFontSize),m=Math.max(i?48:26,Math.ceil(v*1.6+b)),d=Math.ceil(Math.max(t*u,v)*2.4+v*.4+b),g=n.wrapNodeLabels?Math.max(m,d):m,x=Wd(n.propertyFontSize),M=f0(r,x);return{width:r.length?lr(Math.max(S,M),f,s):S,height:g+s0(r,x)}}function m0(e,t,n,i,l=1,a=[]){if(t===1)return e;let o=Wd(i.propertyFontSize),r=f0(a,o),u=ar(n,!1,i.baseFontSize)*(i.wrapNodeLabels?2.8:1.6);return{width:Math.max(e.width*t,Math.min(e.width,r)),height:Math.max(e.height*t,Math.ceil(u+8+2*Math.max(0,l))+s0(a,o))}}var qe=X(me(),1);function y0({bounds:e,semanticRole:t,className:n,style:i,...l}){return(0,qe.jsx)("div",{...l,className:`kplex-thought kplex-role-${t}${n?" "+n:""}`,style:{left:e.x-e.width/2,top:e.y-e.height/2,width:e.width,height:e.height,...i}})}function b0({label:e,maximum:t,center:n}){let i=em(t??30,n),l=e.length>i?`${e.slice(0,Math.max(1,i-1))}…`:e;return(0,qe.jsx)("span",{className:"kplex-thought-text",title:e,children:l})}function v0({wrap:e,children:t}){return(0,qe.jsx)("span",{className:`kplex-thought-label${e?" is-two-line":""}`,children:t})}function S0({side:e,connected:t,highlighted:n,disabled:i,count:l,...a}){return(0,qe.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${e}${t?"":" is-empty"}`,children:[(0,qe.jsx)("span",{...a,"data-kplex-gate":e,className:`kplex-gate gate-${e}${t?" has-connections":" is-empty"}${n?" is-highlighted":""}${i?" is-link-disabled":""}`}),l!==null&&(0,qe.jsx)("span",{className:"kplex-gate-count",children:l})]})}function x0(e){return(0,qe.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...e})}function w0({label:e,midpoint:t,fontSize:n,color:i,background:l,opacity:a}){if(!e)return null;let o=n??10,r=Math.max(20,e.length*o*.58+10),u=o+6;return(0,qe.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:a,children:[(0,qe.jsx)("rect",{x:t.x-r/2,y:t.y-u/2,width:r,height:u,rx:3,fill:l}),(0,qe.jsx)("text",{className:"kplex-edge-label",x:t.x,y:t.y,textAnchor:"middle",dominantBaseline:"central",fill:i,fontSize:o,children:e})]})}function tm(e,t="kplex"){if(!(!e||e==="none"))return`url(#${t}-${e==="triangle"||e==="dot"||e==="bar"?e:"arrow"})`}function M0({prefix:e="kplex"}){return(0,qe.jsxs)("defs",{children:[(0,qe.jsx)("marker",{id:`${e}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,qe.jsx)("marker",{id:`${e}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,qe.jsx)("marker",{id:`${e}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,qe.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,qe.jsx)("marker",{id:`${e}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}var E0={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function or(e,t){let n=t.toLowerCase(),i=e.nodes.get(n);return i?[i.id]:e.shortIds.get(n)??[]}function T0(e,t){if(!e.manifest)return;let n=t.slice(0,8),i=or(e,n);return i.length===1&&i[0]===t?n:void 0}function nm(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function Va(e){return typeof e=="string"&&e.trim().length>0}function i2(e){return typeof e=="string"&&Object.getOwnPropertyDescriptor(E0,e)!==void 0}function N0(e){let t=nm(e);if(t?.version===2&&("runtimeVersion"in t||"resources"in t))return l2(a0(e));if(t?.version!==1)throw new Error("Unsupported publication fixture version");if(!Va(t.title)||!Va(t.entry)||!Array.isArray(t.nodes)||!Array.isArray(t.relations))throw new Error("Invalid publication fixture");let n=new Map,i=new Map,l=Object.freeze([]);for(let u of t.nodes){let c=nm(u);if(!c||!Va(c.id)||!Va(c.title)||n.has(c.id)||c.text!==void 0&&typeof c.text!="string")throw new Error("Invalid or duplicate publication node");let f=Mn(c.id);n.set(f,Object.freeze({id:f,name:c.title,kind:"document",resolution:"resolved",url:null,aliases:l,tags:l,styleTags:l,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof c.text=="string"&&i.set(f,c.text)}let a=n.get(t.entry)?.id;if(!a)throw new Error("Missing publication entry node");let o=new Map,r=new Set;for(let u of t.relations){let c=nm(u);if(!c||!Va(c.source)||!Va(c.target)||!i2(c.role)||c.label!==void 0&&typeof c.label!="string")throw new Error("Invalid publication relationship");let f=n.get(c.source),p=n.get(c.target);if(!f||!p)throw new Error("Missing publication relationship endpoint");let s=E0[c.role],h=JSON.stringify([f.id,c.role,p.id]);if(f===p||r.has(h))throw new Error("Invalid or duplicate publication relationship");r.add(h),r.add(JSON.stringify([p.id,s,f.id])),im(o,f,p,c.role,1,1,c.label),im(o,p,f,s,1,2,c.label)}return{title:t.title,entry:a,read:R0(n,o),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:u=>i.get(u),linkStyle:()=>{}}}function im(e,t,n,i,l,a,o){let r=e.get(t.id);r||e.set(t.id,r=new Map);let u=r.get(i);u||r.set(i,u=[]),u.push(Object.freeze({node:n,role:i,relationType:l,direction:a,definition:o}))}function l2(e){let t=new Map,n=new Map,i=new Map,l=new Map,a=new Map;for(let o of e.nodes){let r=Mn(o.id),u=o.id.slice(0,8),c=l.get(u);c?c.push(r):l.set(u,[r]);let f=o.kind==="folder"?"container":o.kind==="drawing"?"document":o.kind;t.set(r,Object.freeze({id:r,name:o.title,kind:f,resolution:"resolved",url:o.url??null,aliases:o.aliases??[],tags:[],styleTags:[],noteType:null,primaryStyleTag:null,maxLabelLength:30})),n.set(r,o)}for(let o of e.relations)im(i,t.get(o.source),t.get(o.target),o.role,o.relationType,o.direction,o.definition),o.style&&a.set(`${o.source}/${o.target}/${o.role}`,o.style);return{title:e.title,entry:Mn(e.entry),read:R0(t,i),nodes:t,shortIds:l,manifest:e,published:n,body:()=>{},linkStyle:(o,r,u)=>a.get(`${o}/${r}/${u}`)}}function R0(e,t){let n=new Intl.Collator("en",{numeric:!0}),i=(a,o)=>n.compare(a.name,o.name)||(a.id<o.id?-1:a.id>o.id?1:0);for(let a of t.values())for(let o of a.values())Object.freeze(o.sort((r,u)=>i(r.node,u.node)));let l=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:a=>e.get(a)??null,scope:a=>({coverage:e.has(a)?"local":"unavailable",complete:e.has(a),prepared:e.has(a),pending:!1}),relations(a,o,r){if(!e.has(a))return{items:l,coverage:"unavailable",truncated:!1};let u=t.get(a)?.get(o)??l,c=r!==void 0&&u.length>r;return{items:c?u.slice(0,r):u,coverage:"local",truncated:c}},evidence:()=>({coverage:"unavailable",value:null}),compare:i,corpus:{available:!1,reason:"unsupported"}}}var Pl=X(nt(),1);function C0(e,t){let n=cc.map(i=>{let l=t?.get(i)??e.get(i);return[i,l==="1"?!0:l==="0"?!1:l]});return sc(Object.fromEntries(n))??{}}function lm(e,t){for(let n of cc){let i=t?.[n];i===void 0?e.delete(n):e.set(n,typeof i=="boolean"?i?"1":"0":i)}}function am(e,t){return cc.every(n=>e?.[n]===t?.[n])}var a2=80;function Sc(e,t){return[...e.filter(n=>n.id!==t.id),t].slice(-a2)}function rm(e){try{let t=decodeURIComponent(e.replace(/^#/,""));return t.length<=200&&!/\p{Cc}/u.test(t)&&t||void 0}catch{return}}function rr(e,t){let n=t.protocol==="file:"&&t.hash.startsWith("#node=")?new URLSearchParams(t.hash.slice(1)):null,i=n?n.get("node"):t.searchParams.get("node")??t.searchParams.get("node-id"),l=i===null?[]:or(e,i),a=l.length===1?l[0]:void 0,o=rm(n?encodeURIComponent(n.get("fragment")??""):t.hash),r=C0(t.searchParams,n);return{location:{id:a??e.entry,fragment:a||i===null?o:void 0,canvas:r},addressProblem:i===null||a?void 0:l.length?"ambiguous":"missing",matches:l}}function o2(e,t,n){let i=new URLSearchParams({node:e});return t&&i.set("fragment",t),lm(i,n),`#${i}`}function A0(e,t,n,i){try{let l=new URL(e,t);if(l.origin!==t.origin||l.pathname!==t.pathname&&l.pathname!==`${t.pathname}index.html`)return;if(e.startsWith("#node=")&&t.protocol==="file:"){let{location:u,addressProblem:c}=rr(n,l);return c?void 0:u}if(e.startsWith("#"))return{id:i,fragment:rm(l.hash)};if(!(l.searchParams.get("node")??l.searchParams.get("node-id")))return;let{location:o,addressProblem:r}=rr(n,l);return r?void 0:o}catch{return}}function Ba(e,t,n=t.id){let i=new URL(e);return i.protocol==="file:"?(i.hash=o2(n,t.fragment??"",t.canvas),i):(i.searchParams.delete("node-id"),i.searchParams.set("node",n),lm(i.searchParams,t.canvas),i.hash=t.fragment?encodeURIComponent(t.fragment):"",i)}function z0(e,t,n){try{let i=new URL(e,t);if(i.protocol!==t.protocol||i.origin!==t.origin||i.username||i.password)return;let l=a=>a.endsWith("/")?a+"index.html":a;return l(i.pathname)!==l(t.pathname)||!(i.searchParams.has("node")||i.searchParams.has("node-id")||i.protocol==="file:"&&i.hash.startsWith("#node="))?void 0:rr(n,i)}catch{return}}function om(e,t){return!e||typeof e!="object"||!("kplexPublication"in e)||e.kplexPublication!==t||!("position"in e)||typeof e.position!="number"||!Number.isSafeInteger(e.position)||e.position<0||!("last"in e)||typeof e.last!="number"||!Number.isSafeInteger(e.last)||e.last<e.position?null:{position:e.position,last:e.last}}function O0(e,t,n){let i=(0,Pl.useRef)(n);i.current=n;let l=e.manifest?.id,[a,o]=(0,Pl.useState)(()=>{let S=t?rr(e,new URL(t.location.href)):{location:{id:e.entry},addressProblem:void 0},b=t&&l?om(t.history.state,l)??{position:0,last:0}:void 0;return{entries:[S.location],index:0,addressProblem:S.addressProblem,browser:b,visits:[S.location]}}),r=a.entries[a.index],u=(0,Pl.useRef)(a.browser?.last??0);(0,Pl.useEffect)(()=>{if(!t||!l)return;let S=t.history,b=m=>{let{location:d,addressProblem:g}=rr(e,new URL(t.location.href)),x=om(m.state,l),M=x?{...x,last:Math.max(x.position,u.current)}:{position:0,last:0};u.current=M.last,S.replaceState({kplexPublication:l,...M},""),i.current(d.id),o(T=>({entries:[d],index:0,addressProblem:g,browser:M,visits:Sc(T.visits,d)}))},v=om(S.state,l)??{position:0,last:0};return S.replaceState({kplexPublication:l,...v},""),t.addEventListener("popstate",b),()=>t.removeEventListener("popstate",b)},[t,e,l]);function c(S){let b={...S,canvas:{...r.canvas,...S.canvas}};if(!e.nodes.has(b.id)||!a.addressProblem&&r.id===b.id&&r.fragment===b.fragment&&am(r.canvas,b.canvas))return!1;if(i.current(b.id),t&&l&&a.browser){let m=a.browser.position+1,d={position:m,last:m};return t.history.pushState({kplexPublication:l,...d},"",Ba(new URL(t.location.href),b)),u.current=m,o({entries:[b],index:0,browser:d,visits:Sc(a.visits,b)}),!0}let v=a.index+1;return o({entries:[...a.entries.slice(0,v),b],index:v,visits:Sc(a.visits,b)}),!0}function f(S){let b={...r.canvas,...S};if(am(r.canvas,b))return;let v={...r,canvas:b};t&&l&&a.browser&&t.history.replaceState(t.history.state,"",Ba(new URL(t.location.href),v));let m=[...a.entries];m[a.index]=v,o({...a,entries:m})}let p=a.browser?a.browser.position>0:a.index>0,s=a.browser?a.browser.position<a.browser.last:a.index+1<a.entries.length;function h(S){if(S===-1?p:s)if(t&&a.browser)t.history.go(S);else{let b=a.index+S,v=a.entries[b];i.current(v.id),o({...a,index:b,addressProblem:void 0,visits:Sc(a.visits,v)})}}return{attention:r,activate:c,changeCanvas:f,move:h,visits:a.visits,addressProblem:a.addressProblem,canGoBack:p,canGoForward:s}}var ll=X(nt(),1);var Ga=X(nt(),1),_0=X(Rr(),1);var r2="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function u2(){}function c2(e){return!e||typeof e!="object"||!("closest"in e)?null:e}function s2(e,t){let i=c2(e)?.closest(r2)??null;return!!(i&&t.contains(i))}function D0(e,t,n,i,l){let a=t+l,o=Math.max(a,t+n-i-l);return Math.min(o,Math.max(a,e))}function f2(e){let t=e.visualViewport;return{left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.width??e.innerWidth,height:t?.height??e.innerHeight}}function L0({modalEl:e,handleEl:t,viewportMargin:n=8,onPositionChange:i}){let l=e.ownerDocument,a=l.defaultView;if(!a||t.ownerDocument!==l)return u2;let o=null,r=!1,u=!1,c=!1,f=a.visualViewport,p=(M,T)=>{let w=e.getBoundingClientRect(),N=f2(a),V=D0(M,N.left,N.width,w.width,n),E=D0(T,N.top,N.height,w.height,n);e.style.setProperty("--kplex-dialog-left",`${V}px`),e.style.setProperty("--kplex-dialog-top",`${E}px`),e.classList.add("is-positioned"),u=!0,i?.({left:V,top:E})},s=()=>{if(!u||c)return;let M=e.getBoundingClientRect();p(M.left,M.top)},h=()=>{l.removeEventListener("pointermove",b,!0),l.removeEventListener("pointerup",v,!0),l.removeEventListener("pointercancel",v,!0)},S=()=>{if(!o)return;let M=o.pointerId;o=null,r=!1,h(),t.hasPointerCapture(M)&&t.releasePointerCapture(M),e.classList.remove("is-dragging"),t.classList.remove("is-dragging")};function b(M){let T=o;if(!T||M.pointerId!==T.pointerId)return;M.preventDefault(),M.stopPropagation();let w=M.clientX-T.startClientX,N=M.clientY-T.startClientY;if(!r){if(Math.hypot(w,N)<3)return;r=!0,e.classList.add("is-dragging"),t.classList.add("is-dragging")}p(T.startLeft+w,T.startTop+N)}function v(M){!o||M.pointerId!==o.pointerId||(M.preventDefault(),M.stopPropagation(),S())}let m=M=>{o?.pointerId===M.pointerId&&S()},d=()=>{S()},g=M=>{if(c||o||M.button!==0||s2(M.target,t))return;let T=e.getBoundingClientRect();o={pointerId:M.pointerId,startClientX:M.clientX,startClientY:M.clientY,startLeft:T.left,startTop:T.top},l.addEventListener("pointermove",b,!0),l.addEventListener("pointerup",v,!0),l.addEventListener("pointercancel",v,!0);try{t.setPointerCapture(M.pointerId)}catch{}M.preventDefault(),M.stopPropagation()},x=()=>{c||(c=!0,S(),t.removeEventListener("pointerdown",g),t.removeEventListener("lostpointercapture",m),a.removeEventListener("blur",d),a.removeEventListener("resize",s),a.removeEventListener("pagehide",x),f?.removeEventListener("resize",s),f?.removeEventListener("scroll",s),e.classList.remove("kplex-draggable-dialog","is-positioned","is-dragging"),t.classList.remove("kplex-draggable-dialog-handle","is-dragging"),e.style.removeProperty("--kplex-dialog-left"),e.style.removeProperty("--kplex-dialog-top"))};return e.classList.add("kplex-draggable-dialog"),t.classList.add("kplex-draggable-dialog-handle"),t.addEventListener("pointerdown",g),t.addEventListener("lostpointercapture",m),a.addEventListener("blur",d),a.addEventListener("resize",s),a.addEventListener("pagehide",x),f?.addEventListener("resize",s),f?.addEventListener("scroll",s),x}function d2(e,t){let n=e.target,i=e.composedPath();return t.some(l=>l?i.includes(l)?!0:n?l.contains(n):!1:!1)}function xc({open:e,anchorRef:t,anchorPoint:n,panelRef:i,dragHandleRef:l,insideRoots:a,onDismiss:o,dismissWhenAnchorHidden:r=!1,handleEscape:u,portalTarget:c,positioning:f,children:p}){let[s,h]=(0,Ga.useState)({}),S=(0,Ga.useRef)({insideRoots:a,onDismiss:o,handleEscape:u});S.current={insideRoots:a,onDismiss:o,handleEscape:u};let b=t.current,v=b?.ownerDocument??null,m=b?.closest("[data-floating-layer-boundary]")??null,d=e&&v?m??c(v):null,g=n?.x,x=n?.y;return(0,Ga.useLayoutEffect)(()=>{if(!e)return;let M=t.current;if(!M)return;let T=M.ownerDocument,w=T.defaultView;if(!w)return;let N=!1,V=null,E=()=>{if(N)return;let J=t.current;if(!J||J.ownerDocument!==T)return;let C=J.getBoundingClientRect();if(r&&(!J.getClientRects().length||!C.width||!C.height)){S.current.onDismiss("anchor-hidden");return}let P=w.visualViewport,O=m?.getBoundingClientRect(),Y=O&&m?O.left+m.clientLeft-m.scrollLeft:0,ee=O&&m?O.top+m.clientTop-m.scrollTop:0,te=Math.max(P?.offsetLeft??0,O?.left??0),H=Math.max(P?.offsetTop??0,O?.top??0),Z=Math.min((P?.offsetLeft??0)+Math.min(w.innerWidth,P?.width??w.innerWidth),O?.right??1/0),ue=Math.min((P?.offsetTop??0)+Math.min(w.innerHeight,P?.height??w.innerHeight),O?.bottom??1/0),fe=Math.min(f.viewportMargin,Math.max(0,(Z-te)/2)),wt=g??C.left,we=x??C.top,Mt=x??C.bottom,je=Math.max(0,Math.min(Math.max(f.minimumWidth,f.preferredWidth),Z-te-fe*2)),Rn=Math.max(te+fe,Math.min(V?.left??wt,Z-je-fe)),et=ue-Mt-f.anchorGap-fe,Et=we-H-f.anchorGap-fe,pn=et<f.minimumMaxHeight&&Et>et?we-f.anchorGap-Math.min(i.current?.scrollHeight||f.minimumMaxHeight,Et):Mt+f.anchorGap,Dt=Math.max(H+fe,Math.min(V?.top??pn,ue-Math.min(f.minimumMaxHeight,Math.max(0,ue-H-fe*2))-fe));h({position:m?"absolute":"fixed",left:Rn-Y,top:Dt-ee,width:je,maxHeight:Math.max(0,ue-Dt-fe)})},k=J=>{d2(J,S.current.insideRoots())||S.current.onDismiss("outside-pointer")},L=J=>{if(J.key!=="Escape"||S.current.handleEscape?.(J)===!1)return;J.preventDefault(),J.stopPropagation(),S.current.onDismiss("escape");let C=t.current;C?.ownerDocument===T&&C.isConnected&&C.focus({preventScroll:!0})},_=w.ResizeObserver,q=_?new _(E):null;q?.observe(M),m&&q?.observe(m),i.current&&q?.observe(i.current),w.addEventListener("resize",E),w.visualViewport?.addEventListener("resize",E),w.visualViewport?.addEventListener("scroll",E),T.addEventListener("scroll",E,!0),T.addEventListener("pointerdown",k,!0),T.addEventListener("keydown",L,!0);let W=i.current,ie=l?.current,I=W&&ie?L0({modalEl:W,handleEl:ie,viewportMargin:f.viewportMargin,onPositionChange:J=>{V=J,E()}}):void 0,ae=()=>{N||(N=!0,I?.(),q?.disconnect(),w.removeEventListener("resize",E),w.visualViewport?.removeEventListener("resize",E),w.visualViewport?.removeEventListener("scroll",E),T.removeEventListener("scroll",E,!0),T.removeEventListener("pointerdown",k,!0),T.removeEventListener("keydown",L,!0),w.removeEventListener("pagehide",ae))};return w.addEventListener("pagehide",ae),E(),ae},[e,r,t,g,x,i,l,v,m,f.anchorGap,f.minimumMaxHeight,f.minimumWidth,f.preferredWidth,f.viewportMargin]),d?(0,_0.createPortal)(p(s),d):null}var Tn=X(me(),1),m2={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function H0({anchor:e,address:t,shortAddress:n,onDismiss:i,onCopied:l}){let a=(0,ll.useRef)(e),o=(0,ll.useRef)(null),r=(0,ll.useRef)(!0),[u,c]=(0,ll.useState)();a.current=e,(0,ll.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]);async function f(s){try{let h=e.ownerDocument.defaultView?.navigator.clipboard;if(!h)throw new Error("Clipboard unavailable");await h.writeText(s),r.current&&(l(),i(!0))}catch{r.current&&c(s)}}function p(s){if(!n||u||!["ArrowDown","ArrowUp","Home","End"].includes(s.key))return;let[h,S]=Array.from(s.currentTarget.querySelectorAll("[role=menuitem]")),b=s.key==="Home"?h:s.key==="End"||s.target===h?S:h;s.preventDefault(),b?.focus()}return(0,Tn.jsx)(xc,{open:!0,anchorRef:a,panelRef:o,insideRoots:()=>[o.current],dismissWhenAnchorHidden:!0,onDismiss:s=>i(s==="escape"),portalTarget:()=>e.closest(".kplex-publication"),positioning:m2,children:s=>(0,Tn.jsx)("div",{ref:o,style:s,className:"kplex-publication-address-menu",role:u?"dialog":"menu","aria-label":z.copyAddress,onKeyDown:p,children:u?(0,Tn.jsx)("input",{autoFocus:!0,readOnly:!0,"aria-label":z.address,value:u,onFocus:h=>h.currentTarget.select()}):(0,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!!n,disabled:!n,onClick:()=>{n&&f(n)},children:z.copyShortAddress}),(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{f(t)},children:z.copyFullAddress}),!n&&(0,Tn.jsx)("p",{children:z.ambiguousAddress})]})})})}var U0=X(nt(),1);var al=X(nt(),1);var D=X(me(),1),h2={"arrow-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,D.jsx)("path",{d:"M19 12H5"})]}),"arrow-right":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M5 12h14"}),(0,D.jsx)("path",{d:"m12 5 7 7-7 7"})]}),"panel-right":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M15 3v18"})]}),"panel-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M9 3v18"})]}),"panel-bottom":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M3 15h18"})]}),sun:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,D.jsx)("path",{d:"M12 2v2"}),(0,D.jsx)("path",{d:"M12 20v2"}),(0,D.jsx)("path",{d:"m4.93 4.93 1.41 1.41"}),(0,D.jsx)("path",{d:"m17.66 17.66 1.41 1.41"}),(0,D.jsx)("path",{d:"M2 12h2"}),(0,D.jsx)("path",{d:"M20 12h2"}),(0,D.jsx)("path",{d:"m6.34 17.66-1.41 1.41"}),(0,D.jsx)("path",{d:"m19.07 4.93-1.41 1.41"})]}),moon:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})}),"sun-moon":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M12 2v2"}),(0,D.jsx)("path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715"}),(0,D.jsx)("path",{d:"M16 12a4 4 0 0 0-4-4"}),(0,D.jsx)("path",{d:"m19 5-1.256 1.256"}),(0,D.jsx)("path",{d:"M20 12h2"})]}),"file-search":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),(0,D.jsx)("path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3"}),(0,D.jsx)("path",{d:"m9 18-1.5-1.5"}),(0,D.jsx)("circle",{cx:"5",cy:"14",r:"3"})]}),"corner-down-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("polyline",{points:"9 10 4 15 9 20"}),(0,D.jsx)("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})]}),minus:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("path",{d:"M5 12h14"})}),plus:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M5 12h14"}),(0,D.jsx)("path",{d:"M12 5v14"})]}),maximize:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),(0,D.jsx)("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),(0,D.jsx)("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),(0,D.jsx)("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]}),ellipsis:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,D.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,D.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),x:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M18 6 6 18"}),(0,D.jsx)("path",{d:"m6 6 12 12"})]}),network:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}),(0,D.jsx)("rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}),(0,D.jsx)("rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}),(0,D.jsx)("path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}),(0,D.jsx)("path",{d:"M12 12V8"})]})};function um({icon:e}){return(0,D.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:h2[e]})}function vt({icon:e,label:t,title:n=t,type:i="button",...l}){return(0,D.jsx)("button",{...l,type:i,className:"kplex-publication-icon-control","aria-label":t,title:n,children:(0,D.jsx)(um,{icon:e})})}var ln=X(me(),1),cm={preferredWidth:216,minimumWidth:160,viewportMargin:8,anchorGap:4,minimumMaxHeight:180},p2={...cm,preferredWidth:142,minimumWidth:112,minimumMaxHeight:138},g2={...cm,preferredWidth:280,minimumMaxHeight:235},y2={canvas:{label:z.graphOptions,positioning:cm},theme:{label:il.label,positioning:p2},brand:{label:In.label,positioning:g2}};function b2(e){e?.focus({preventScroll:!0})}function ur({anchor:e,point:t,choices:n,onDismiss:i,variant:l="canvas"}){let a=(0,al.useRef)(e),o=(0,al.useRef)(null),r=(0,al.useRef)(null),[u,c]=(0,al.useState)(null),f=y2[l];a.current=e;function p(){let v=r.current;(v?.querySelector("[aria-checked=true]")??v?.querySelector("[role^=menuitem]"))?.focus()}(0,al.useLayoutEffect)(()=>{u&&p()},[u]);function s(){c(null),o.current?.querySelector("[aria-haspopup=menu][aria-expanded=true]")?.focus()}function h(){i(),e.focus({preventScroll:!0})}function S(v){if(v.key==="Tab"){h();return}let m=v.target,d=m.closest("[role=menu]");if(d){if(v.key==="ArrowRight"&&m.getAttribute("aria-haspopup")==="menu")m.getAttribute("aria-expanded")==="true"?p():m.click();else if(v.key==="ArrowLeft"&&d!==o.current)s();else if(["ArrowDown","ArrowUp","Home","End"].includes(v.key)){let g=Array.from(d.querySelectorAll("[role^=menuitem]")).filter(T=>T.closest("[role=menu]")===d),x=g.indexOf(m),M=v.key==="Home"?0:v.key==="End"?g.length-1:(x+(v.key==="ArrowDown"?1:-1)+g.length)%g.length;g[M]?.focus()}else return;v.preventDefault(),v.stopPropagation()}}function b(v,m=!1){if("href"in v)return(0,ln.jsx)("a",{role:"menuitem",ref:m?b2:void 0,href:v.href,target:"_blank",rel:"noopener noreferrer",onClick:h,children:v.label},v.href);let{label:d,icon:g,kind:x,checked:M,select:T}=v;return(0,ln.jsxs)("button",{type:"button",role:x,"aria-checked":M,autoFocus:m,onClick:()=>{h(),T()},children:[(0,ln.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true",children:M?"✓":""}),g&&(0,ln.jsx)(um,{icon:g}),d]},d)}return(0,ln.jsx)(xc,{open:!0,anchorRef:a,anchorPoint:t,panelRef:o,insideRoots:()=>[o.current,e],dismissWhenAnchorHidden:!0,onDismiss:i,portalTarget:()=>e.closest(".kplex-publication"),positioning:f.positioning,handleEscape:v=>u?(v.preventDefault(),v.stopPropagation(),s(),!1):!0,children:v=>(0,ln.jsx)("div",{ref:o,style:v,className:"kplex-publication-address-menu kplex-publication-canvas-menu",role:"menu","aria-label":f.label,onKeyDown:S,children:n.map((m,d)=>"choices"in m?(0,ln.jsxs)("div",{role:"none",children:[(0,ln.jsxs)("button",{type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":u===m.label,onClick:()=>u===m.label?s():c(m.label),children:[(0,ln.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true"}),m.label,(0,ln.jsx)("span",{className:"kplex-publication-submenu-arrow","aria-hidden":"true",children:"▸"})]}),u===m.label&&(0,ln.jsx)("div",{ref:r,role:"menu","aria-label":m.label,children:m.choices.map(g=>b(g))})]},m.label):b(m,l==="theme"?"checked"in m&&m.checked:d===0))})})}var Gt=X(me(),1),sm=[{label:In.github,href:"https://github.com/zsviczian/kplex"},{label:In.npm,href:"https://www.npmjs.com/package/@zsviczian/kplex-web"},{label:In.community,href:"https://community.obsidian.md/plugins/k-plex"},{label:In.playlist,href:"https://www.youtube.com/playlist?list=PLH_fBE-KxyiM"},{label:In.book,href:"https://community.sketch-your-mind.com/sym"}];function P0(){let[e,t]=(0,U0.useState)(null);return(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)("button",{className:"kplex-publication-brand",type:"button","aria-label":In.label,title:In.label,"aria-haspopup":"menu","aria-expanded":!!e,onClick:n=>t(e?null:n.currentTarget),children:(0,Gt.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Gt.jsx)("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}),(0,Gt.jsx)("path",{d:"M9 13a4.5 4.5 0 0 0 3-4M6.003 5.125A3 3 0 0 0 6.401 6.5M3.477 10.896a4 4 0 0 1 .585-.396M6 18a4 4 0 0 1-1.967-.516M12 13h4M12 18h6a2 2 0 0 1 2 2v1M12 8h8M16 8V5a2 2 0 0 1 2-2"}),(0,Gt.jsx)("circle",{cx:"16",cy:"13",r:".5"}),(0,Gt.jsx)("circle",{cx:"18",cy:"3",r:".5"}),(0,Gt.jsx)("circle",{cx:"20",cy:"21",r:".5"}),(0,Gt.jsx)("circle",{cx:"20",cy:"8",r:".5"})]})}),e&&(0,Gt.jsx)(ur,{anchor:e,variant:"brand",choices:sm,onDismiss:()=>t(null)})]})}var k0=X(nt(),1),V0=X(me(),1);function fm({icon:e,size:t,className:n}){function i(l,a){return(0,k0.createElement)(l.tag,{...l.attrs,key:a},l.shapes.length?l.shapes.map(i):void 0)}return(0,V0.jsx)("svg",{...e.attrs,width:t,height:t,viewBox:e.viewBox,className:n,"aria-hidden":"true",focusable:"false",children:e.shapes.map(i)})}var sr=X(nt(),1);function B0(e,t){if(!e.length||!Number.isFinite(t))return null;let n=Math.max(0,Math.min(1,t));if(e.length===1)return e[0];for(let i=1;i<e.length;i++){let l=e[i],a=e[i-1];if(n>l.offset&&i<e.length-1)continue;let o=l.offset>a.offset?(n-a.offset)/(l.offset-a.offset):1,r=(u,c)=>u+(c-u)*o;return{offset:n,x:r(a.x,l.x),y:r(a.y,l.y),scaleX:r(a.scaleX,l.scaleX),scaleY:r(a.scaleY,l.scaleY),originX:r(a.originX,l.originX),originY:r(a.originY,l.originY)}}return null}var wc=class{constructor(){this.animations=new Map;this.poses=new Map}play(t,n,i,l){this.animations.get(t)?.cancel(),this.animations.delete(t),this.poses.delete(t);let a=t.animate(n,{...i,fill:"none"});if(!a)return null;this.animations.set(t,a),l&&this.poses.set(t,{animation:a,frames:l});let o=()=>{this.animations.get(t)===a&&(this.animations.delete(t),this.poses.delete(t))};return a.finished.then(o,o),a}isRunning(t){return t?this.animations.has(t):this.animations.size>0}sample(t){let n=this.poses.get(t);if(!n||this.animations.get(t)!==n.animation)return null;let i=n.animation.effect?.getComputedTiming().progress;return typeof i=="number"?B0(n.frames,i):null}cancelAll(){for(let t of this.animations.values())t.cancel();this.animations.clear(),this.poses.clear()}};function G0(e,t,n,i){let l=Math.max(.01,n),a=(e.left-t.left)/l,o=(e.top-t.top)/l,r=t.width>0?e.width/t.width:1,u=t.height>0?e.height/t.height:1,c=Math.hypot(a,o),f=Math.min(24/l,c*.08),p=c?-o/c:0,s=c?a/c:0;return[0,.35,.65,.85,1].map(h=>{let S=h===0||h===1?0:Math.sin(Math.PI*h),b=a*(1-h)+p*f*S,v=o*(1-h)+s*f*S,m=1+.055*S;return i?.push({offset:h,x:b,y:v,scaleX:(r+(1-r)*h)*m,scaleY:(u+(1-u)*h)*m,originX:0,originY:0}),{offset:h,transformOrigin:"0 0",transform:`translate(${b}px, ${v}px) scale(${(r+(1-r)*h)*m}, ${(u+(1-u)*h)*m})`,opacity:1}})}var cr=X(nt(),1),Mc=X(me(),1),kl="[data-publication-strip-scroll]";function Y0({id:e,label:t,panel:n,start:i,onScroll:l,children:a}){let o=(0,cr.useRef)(null),r=(0,cr.useRef)(i);return(0,cr.useLayoutEffect)(()=>{o.current&&(o.current.scrollTop=r.current)},[]),(0,Mc.jsx)("div",{className:"kplex-zone-panel",style:{left:n.x,top:n.y,width:n.width,height:n.height},children:(0,Mc.jsx)("div",{className:"kplex-zone-scroll kplex-publication-strip-scroll","data-publication-strip-scroll":e,ref:o,role:"region","aria-label":t,tabIndex:0,onScroll:u=>l(u.currentTarget.scrollTop),children:(0,Mc.jsx)("div",{className:"kplex-zone-content",style:{height:n.contentHeight},children:a})})})}var Ec={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function q0(e){let t=e.getBoundingClientRect(),n=new Map(Array.from(e.querySelectorAll(kl),l=>[l,l.getBoundingClientRect()])),i=[];for(let l of Array.from(e.querySelectorAll("[data-publication-occurrence]"))){let a=l.getBoundingClientRect(),o=l.closest(kl),r=o?n.get(o)??t:t;a.left>=Math.min(t.right,r.right)||a.right<=Math.max(t.left,r.left)||a.top>=Math.min(t.bottom,r.bottom)||a.bottom<=Math.max(t.top,r.top)||i.push({element:l,id:l.dataset.publicationNode,occurrence:l.dataset.publicationOccurrence,rect:a,clipped:r!==t&&(a.top<r.top||a.bottom>r.bottom)})}return i}function v2(e,t){let n=new Set(e),i=new Map(e.map(o=>[o.occurrence,o])),l=new Map;for(let o of e){let r=l.get(o.id);r?r.push(o):l.set(o.id,[o])}let a=new Map;for(let o of t){let r=i.get(o.occurrence);r?.id===o.id&&(a.set(o,r),n.delete(r))}for(let o of t){if(a.has(o))continue;let r,u=1/0;for(let c of l.get(o.id)??[]){if(!n.has(c))continue;let f=Math.hypot(o.rect.x-c.rect.x,o.rect.y-c.rect.y);f<u&&(r=c,u=f)}r&&(a.set(o,r),n.delete(r))}return{pairs:a,remaining:n}}function j0(e,t){let n=(0,sr.useRef)(new wc).current,i=(0,sr.useRef)(null);function l(){i.current=null,n.cancelAll(),t.current?.replaceChildren()}(0,sr.useEffect)(()=>{let r=e.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return r?.addEventListener("change",l),()=>{r?.removeEventListener("change",l),l()}},[]);function a(r){let u=e.current,c=u?.ownerDocument.defaultView;if(!(!u||!c)){if(u.querySelector("[data-publication-center]")?.dataset.publicationNode===r){i.current=null;return}if(u.ownerDocument.hidden||c.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof u.animate!="function"){l();return}i.current={id:r,cards:q0(u)}}}function o(r,u){let c=e.current,f=t.current,p=i.current;if(l(),!c||!f||p?.id!==r)return;let s=q0(c),{pairs:h,remaining:S}=v2(p.cards,s);for(let m of s){let d=h.get(m)?.rect;d?(Math.abs(d.left-m.rect.left)>.5||Math.abs(d.top-m.rect.top)>.5||Math.abs(d.width-m.rect.width)>.5||Math.abs(d.height-m.rect.height)>.5)&&n.play(m.element,G0(d,m.rect,u),Ec):n.play(m.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],Ec)}let b=f.getBoundingClientRect();for(let m of S){if(m.clipped||m.element.isConnected)continue;let d=m.element.cloneNode(!0);d.removeAttribute("role"),d.removeAttribute("tabindex"),d.removeAttribute("data-publication-node"),d.removeAttribute("data-publication-occurrence"),d.removeAttribute("data-publication-center"),d.style.left=`${m.rect.left-b.left}px`,d.style.top=`${m.rect.top-b.top}px`;let g=m.rect.width/parseFloat(d.style.width),x=m.rect.height/parseFloat(d.style.height);f.append(d);let M=n.play(d,[{opacity:1,transformOrigin:"0 0",transform:`scale(${g}, ${x})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${g*.95}, ${x*.95})`}],{...Ec,duration:200});M?M.finished.then(()=>d.remove(),()=>d.remove()):d.remove()}let v=c.querySelector(".kplex-links");v&&n.play(v,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],Ec)}return{capture:a,play:o,cancel:l}}var Ot=X(nt(),1);var fr=X(me(),1);function X0({label:e,controlId:t,children:n,layout:i="stacked",actions:l,className:a=""}){return(0,fr.jsxs)("div",{className:`${i==="option"?"kplex-form-option":i==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${l?" has-actions":""} ${a}`,children:[(0,fr.jsx)("label",{id:`${t}-label`,htmlFor:t,children:e}),n,l?(0,fr.jsx)("div",{className:"kplex-field-actions",children:l}):null]})}var Tc=X(nt(),1);var De=X(nt(),1),Q0=X(Rr(),1),St=X(me(),1);function S2(e,t){let n=t.trim().toLocaleLowerCase();if(!n)return new Set;let i=e.toLocaleLowerCase(),l=i.indexOf(n);if(l>=0)return new Set(Array.from({length:n.length},(r,u)=>l+u));let a=new Set,o=0;for(let r of n){let u=i.indexOf(r,o);if(u<0)return new Set;a.add(u),o=u+1}return a}function K0(e,t){let n=S2(e,t);if(!n.size)return e;let i=[],l=0,a=n.has(0);for(let o=1;o<=e.length;o+=1){let r=o<e.length&&n.has(o);if(o<e.length&&r===a)continue;let u=e.slice(l,o);i.push(a?(0,St.jsx)("mark",{className:"kplex-fuzzy-match",children:u},`${l}:m`):(0,St.jsx)("span",{children:u},`${l}:t`)),l=o,a=r}return(0,St.jsx)(St.Fragment,{children:i})}function Z0({value:e,onChange:t,results:n,getResults:i,onChoose:l,getKey:a,getLabel:o,getDetail:r,placeholder:u,ariaLabel:c,inputId:f,labelledBy:p,icon:s,autoFocus:h=!1,disabled:S=!1,floating:b=!1,floatingMode:v="app",portalSelector:m,appTopbarSelector:d,maxFloatingHeight:g=440,minFloatingWidth:x=0,resultsClassName:M="",matchingQuery:T,resultsOwnerId:w,preferSuggestionOnModifiedEnter:N=!1,resultPrefix:V,onEnterWithoutResult:E,onCtrlEnter:k,openResultsOnFocus:L=!0,onFocusChange:_,onDismiss:q,focusRequest:W,inputTitle:ie,inputKeyShortcuts:I,className:ae="",highlightMatches:J=!0,closeOnChoose:C=!0,closeOnBlur:P=!1,combobox:O=!1,advanceOnChoose:Y=!1,disclosure:ee}){let te=(0,De.useId)(),[H,Z]=(0,De.useState)(!1),[ue,fe]=(0,De.useState)(!1),[wt,we]=(0,De.useState)(!1),[Mt,je]=(0,De.useState)(!1),[Rn,et]=(0,De.useState)(0),[Et,pn]=(0,De.useState)(null),Dt=(0,De.useRef)(null),wi=(0,De.useRef)(null),Fn=(0,De.useRef)(null),rl=H&&!wt&&(Mt||L||ue&&e.trim().length>0),he=(0,De.useMemo)(()=>rl?i?.(e)??n??[]:[],[rl,i,n,e]),tt=he.length?Math.max(0,Math.min(he.length-1,Rn)):0,Lt=Dt.current?.ownerDocument??null,Te=Lt?.defaultView??null,Cn=b?v==="viewport"?Lt?.body??null:m?Dt.current?.closest(m)??null:null:null,An=H&&he.length>0&&(!b||!!(Cn&&Et)),$n=()=>{je(!1),we(!0),et(0),q?.()},Yt=()=>{ee&&(ee.onOpen(),Fn.current?.focus({preventScroll:!0}),Z(!0),je(!0),we(!1),et(0))},ul=U=>{je(!1),Z(!U),fe(!1),we(!U),et(0);let le=Fn.current;U&&le&&le.ownerDocument.activeElement===le&&le.blur(),_?.(!1)},Wn=()=>ul(!0),zn=U=>{if(l(U),C){ul(!O);return}Y&&he.length>0&&et(le=>(Math.max(0,Math.min(he.length-1,le))+1)%he.length)};(0,De.useEffect)(()=>{et(0)},[e]);let Pe=(0,De.useCallback)(()=>{let U=Fn.current;U&&(Z(!0),fe(!1),we(!1),U.focus({preventScroll:!0}),_?.(!0))},[_]);(0,De.useEffect)(()=>{h&&Pe()},[h,Pe]),(0,De.useEffect)(()=>{W&&Pe()},[W,Pe]),(0,De.useEffect)(()=>{let U=Dt.current;if(!U)return;let le=()=>$n();return U.addEventListener("kplex-dismiss-suggestions",le),()=>U.removeEventListener("kplex-dismiss-suggestions",le)},[q]),(0,De.useEffect)(()=>{if(!H||!Lt||!Te)return;let U=Dt.current;if(!U)return;let le=gn=>{let Tt=gn.target;Tt&&(U.contains(Tt)||wi.current?.contains(Tt))||Wn()},Ge=()=>Lt.removeEventListener("pointerdown",le,!0);return Lt.addEventListener("pointerdown",le,!0),Te.addEventListener("pagehide",Ge,{once:!0}),()=>{Ge(),Te.removeEventListener("pagehide",Ge)}},[H,Lt,Te]),(0,De.useLayoutEffect)(()=>{if(!b||!H||!he.length){pn(null);return}let U=Dt.current;if(!U||!Te)return;let le=Te.visualViewport,Ge=()=>{let ni=U.getBoundingClientRect(),qt=8,Qa=6;if(v==="viewport"){let Sr=le?.offsetLeft??0,y=le?.offsetTop??0,A=le?.width??Te.innerWidth,B=y+(le?.height??Te.innerHeight),K=Math.min(Math.max(ni.width,x),Math.max(0,A-qt*2)),re=Math.max(Sr+qt,Math.min(ni.left,Sr+A-qt-K)),j=Math.max(ni.bottom+Qa,y+qt),_e=Math.min(ni.top-Qa,B-qt),pt=Math.max(0,B-qt-j),Xe=Math.max(0,_e-y-qt),Le=pt>=Math.min(180,g)||pt>=Xe,jt=Math.max(0,Math.min(g,Le?pt:Xe)),Xt={position:"fixed",left:re,width:K,maxHeight:jt,zIndex:1e4};Le?Xt.top=j:Xt.bottom=Te.innerHeight-_e,pn(Xt);return}let hr=m?U.closest(m)??null:null,pr=d?U.closest(d)??null:null;if(!hr||!pr)return;let On=hr.getBoundingClientRect(),gr=pr.getBoundingClientRect(),Za=Math.max(0,On.width-qt*2),yr=Math.min(780,Math.max(ni.width,Math.min(620,Za)),Za),Ia=qt,br=Math.max(Ia,On.width-qt-yr),vr=Math.min(br,Math.max(Ia,ni.left-On.left)),Ja=Math.max(0,gr.bottom-On.top+Qa),Fa=Math.max(0,Math.min(g,On.height-Ja-qt));pn({left:vr,top:Ja,width:yr,maxHeight:Fa})};Ge();let gn=Te.ResizeObserver,Tt=gn?new gn(Ge):null,ti=v==="app"&&m?U.closest(m):null,Ka=v==="app"&&d?U.closest(d):null;ti&&Tt?.observe(ti),Ka&&Tt?.observe(Ka),Tt?.observe(U);let cl=()=>{Tt?.disconnect(),Te.removeEventListener("resize",Ge),Te.removeEventListener("scroll",Ge,!0),le?.removeEventListener("resize",Ge),le?.removeEventListener("scroll",Ge)};return Te.addEventListener("resize",Ge),Te.addEventListener("scroll",Ge,!0),le?.addEventListener("resize",Ge),le?.addEventListener("scroll",Ge),Te.addEventListener("pagehide",cl,{once:!0}),()=>{cl(),Te.removeEventListener("pagehide",cl)}},[d,b,v,H,he.length,g,x,Lt,Te,m]),(0,De.useEffect)(()=>{let U=wi.current;!U||!he.length||U.querySelector(`[data-kplex-fuzzy-index="${tt}"]`)?.scrollIntoView({block:"nearest"})},[tt,he.length]);let ei=U=>{if(!(U.nativeEvent.isComposing||U.key==="Dead"||U.getModifierState("AltGraph"))){if(U.key==="Tab"){$n(),Z(!1),_?.(!1);return}if(U.key==="Escape"){he.length&&(U.preventDefault(),U.stopPropagation(),$n());return}if(O&&ee&&U.key==="ArrowDown"&&!he.length){U.preventDefault(),Yt();return}if(U.key==="ArrowDown"&&he.length){U.preventDefault(),et(le=>Math.min(he.length-1,le+1));return}if(U.key==="ArrowUp"&&he.length){U.preventDefault(),et(le=>Math.max(0,le-1));return}if(U.key==="Enter"&&U.repeat){U.preventDefault(),U.stopPropagation();return}if(U.key==="Enter"&&he.length&&(!(U.ctrlKey||U.metaKey)||N)){U.preventDefault(),U.stopPropagation();let le=he[tt];le&&zn(le);return}if(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&k){U.preventDefault(),U.stopPropagation(),k();return}if(!(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&!k)&&U.key==="Enter"){U.preventDefault();let le=he[tt];le?zn(le):E?.()}}},Mi=H&&he.length>0?(0,St.jsx)("div",{ref:wi,id:O?te:void 0,role:O?"listbox":void 0,"aria-labelledby":O?p:void 0,"aria-label":O&&!p?c:void 0,"data-fuzzy-owner":w,"data-kplex-tooltip-scope":!0,className:`kplex-search-results${b?" kplex-fuzzy-floating-results":" kplex-fuzzy-inline-results"}${M?` ${M}`:""}`,style:b?Et??void 0:void 0,children:he.map((U,le)=>{let Ge=o(U),gn=r?.(U),Tt=J?T??e:"";return(0,St.jsxs)("button",{id:O?`${te}-option-${le}`:void 0,role:O?"option":void 0,"aria-selected":O?le===tt:void 0,tabIndex:O?-1:void 0,"data-kplex-fuzzy-index":le,className:`kplex-search-result${V?" has-prefix":""}${le===tt?" is-selected":""}`,"aria-label":gn?`${Ge}
11
+ ${gn}`:Ge,onMouseDown:ti=>ti.preventDefault(),onMouseEnter:()=>et(le),onClick:()=>zn(U),children:[V?(0,St.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:V(U)}):null,(0,St.jsx)("span",{children:K0(Ge,Tt)}),gn?(0,St.jsx)("small",{children:K0(gn,Tt)}):null]},a(U))})}):null,Xa=b&&Cn&&Et&&Mi?(0,Q0.createPortal)(Mi,Cn):b?null:Mi;return(0,St.jsxs)("div",{ref:Dt,className:`kplex-search-shell kplex-fuzzy-search${ae?` ${ae}`:""}`,children:[s?(0,St.jsx)("div",{className:"kplex-search-icon",children:s}):null,(0,St.jsx)("input",{ref:Fn,type:"text",role:O?"combobox":void 0,id:f,className:"kplex-search",value:e,disabled:S,onChange:U=>{je(!1),fe(!0),we(!1),t(U.currentTarget.value)},onFocus:()=>{Z(!0),fe(!1),we(!1),_?.(!0)},onBlur:P?Wn:void 0,onKeyDown:ei,placeholder:u,"aria-label":p?void 0:c,title:ie,"aria-keyshortcuts":I,"aria-labelledby":p,"aria-expanded":O?An:H&&he.length>0,"aria-haspopup":O?"listbox":void 0,"aria-autocomplete":O?"list":void 0,"aria-controls":O&&An?te:void 0,"aria-activedescendant":O&&An?`${te}-option-${tt}`:void 0,autoComplete:"off"}),ee?(0,St.jsx)("button",{type:"button",className:"kplex-fuzzy-disclosure",tabIndex:O?-1:void 0,disabled:S,"aria-label":ee.label,"aria-expanded":O?An:H&&he.length>0,"aria-haspopup":O?"listbox":void 0,"aria-controls":O&&An?te:void 0,onMouseDown:U=>U.preventDefault(),onClick:()=>{if(H&&Mt&&!wt){$n();return}Yt()},children:ee.icon}):null,Xa]})}var J0=X(me(),1);function I0({graph:e,icon:t,portalSelector:n,appTopbarSelector:i,onActivate:l,revision:a,focusRequest:o,inputTitle:r,inputKeyShortcuts:u,placeholder:c,ariaLabel:f,clearOnActivate:p=!0,repeatFind:s=!1,resultIcon:h}){let[S,b]=(0,Tc.useState)(""),v=(0,Tc.useCallback)(m=>e.search(m,24),[e,a]);return(0,J0.jsx)(Z0,{value:S,onChange:b,getResults:v,onChoose:m=>{l(m.node.id),p&&b("")},getKey:m=>m.node.id,getLabel:m=>m.label,getDetail:m=>m.detail,resultPrefix:h,placeholder:c,ariaLabel:f,floating:!0,icon:t,portalSelector:n,appTopbarSelector:i,focusRequest:o,inputTitle:r,inputKeyShortcuts:u,closeOnChoose:!s,advanceOnChoose:s})}var x2=1e5,w2=8*1024*1024,F0=1e6,M2=/[\p{L}\p{N}]+/gu,E2=/^[\p{L}\p{N}]{1,128}$/u;function $0(e){return[...new Set(e.normalize("NFC").toLowerCase().match(M2))].filter(t=>t.length<=128)}function T2(e,t){if(!Array.isArray(e)||e.length>dc)throw new Error("Invalid publication search rows");let n=new Set,i=0;return e.map(l=>{if(!l||typeof l!="object"||!("id"in l)||!Si(l.id)||n.has(l.id)||t&&!t.has(l.id)||!("text"in l)||typeof l.text!="string"||l.text.length>x2)throw new Error("Invalid publication search row");if(n.add(l.id),i+=l.text.length,i>w2)throw new Error("Publication search exceeds its text budget");return{id:l.id,text:l.text}})}function W0(e,t){if(!e||typeof e!="object"||!("version"in e)||e.version!==1||!("rows"in e)||!("terms"in e)||!Array.isArray(e.terms)||e.terms.length>F0)throw new Error("Invalid publication search index");let n=T2(e.rows,t),i="";for(let{id:r}of n){if(i>=r)throw new Error("Unordered publication search rows");i=r}let l="",a=0,o=e.terms.map(r=>{if(!Array.isArray(r)||r.length!==2)throw new Error("Invalid publication search term");let[u,c]=r;if(typeof u!="string"||u.length>128||!E2.test(u)||u!==u.normalize("NFC").toLowerCase()||l>=u||!Array.isArray(c)||!c.length||c.length>n.length)throw new Error("Invalid publication search term");if(l=u,a+=c.length,a>F0)throw new Error("Publication search exceeds its posting budget");let f=-1;for(let p of c){if(typeof p!="number"||!Number.isInteger(p)||p<=f||p>=n.length)throw new Error("Invalid publication search reference");f=p}return[u,c]});return{version:1,rows:n,terms:o}}function Vl(e){return e.trim().normalize("NFC").toLowerCase()}function ev(e,t){let n=new Set([...t.published.values()].filter(l=>l.kind==="document"||l.kind==="drawing").map(l=>l.id)),i=W0(e,n);return{rows:i.rows,positions:new Map(i.rows.map(({id:l},a)=>[l,a])),postings:new Map(i.terms)}}function N2(e,t){let n=Math.max(0,Vl(e).indexOf(t)-35);return`${n?"…":""}${e.slice(n,n+90)}${e.length>n+90?"…":""}`}function tv(e,t){let n=new Map,i=[...e.nodes.values()].map(a=>{let o=Vl(a.name),r=a.aliases.map(Vl),u=Object.values(e.published.get(a.id)?.properties??{}).flatMap(c=>typeof c=="object"?[...c]:[String(c)]).map(Vl);for(let c of[o,...r]){let f=n.get(c);f||n.set(c,f=new Set),f.add(a.id)}return{node:a,title:o,aliases:r,properties:u}});return{graph:{search(a,o){let r=Vl(a.slice(0,128));if(!r)return[];let u=$0(r),c=u[0],f=t&&u.length?u.map(p=>new Set(t.postings.get(p))):null;return i.flatMap(({node:p,title:s,aliases:h,properties:S})=>{let b=t?.positions.get(p.id),v=s===r?1:h.includes(r)?2:s.startsWith(r)?3:h.some(m=>m.startsWith(r))?4:s.includes(r)?5:h.some(m=>m.includes(r))||S.some(m=>m.includes(r))?6:b!==void 0&&f?.every(m=>m.has(b))?7:0;return v?[{score:v,node:p,position:b,title:s}]:[]}).sort((p,s)=>p.score-s.score||e.read.compare(p.node,s.node)).slice(0,o).map(({score:p,node:s,position:h,title:S})=>{let b=p===7&&h!==void 0?t?.rows[h]?.text:void 0,v=b&&c?N2(b,c):n.get(S).size>1?s.id:s.aliases.find(m=>Vl(m).includes(r))??"";return{node:s,label:s.name,detail:v}})}},address(a){let o=Vl(a),r=or(e,o);return r.length?r:[...n.get(o)??[]]}}}var $e=X(me(),1);function nv({publication:e,resources:t,page:n,searchFocus:i,onChoose:l}){let a=(0,Ot.useRef)(null),o=(0,Ot.useId)(),[r,u]=(0,Ot.useState)(""),[c,f]=(0,Ot.useState)([]),[p,s]=(0,Ot.useState)(!1),[h,S]=(0,Ot.useState)(!1),[b,v]=(0,Ot.useState)(null),[m,d]=(0,Ot.useState)(!1),g=(0,Ot.useMemo)(()=>tv(e,h?b:null),[e,h,b]);(0,Ot.useEffect)(()=>{let M=a.current?.ownerDocument.defaultView;if(!h||!M||b)return;let T=new M.AbortController,w=T.signal;return d(!1),t.text(Xd,w).then(N=>{w.aborted||v(ev(JSON.parse(N),e))}).catch(()=>{w.aborted||d(!0)}),()=>T.abort()},[h,e,t,b]);function x(M){M.preventDefault();let T=z0(r.trim(),n(),e),w=T?T.matches:g.address(r);if(w.length!==1){f(w),s(!w.length);return}f([]),s(!1),l(T?.location??{id:w[0]})}return(0,$e.jsxs)("div",{className:"kplex-publication-tools",ref:a,children:[(0,$e.jsxs)("div",{className:"kplex-publication-search",children:[(0,$e.jsx)(I0,{graph:g.graph,revision:b&&h?1:0,onActivate:M=>l({id:M}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:z.find,ariaLabel:z.find,focusRequest:i,inputTitle:`${z.find} (${nr.key})`,inputKeyShortcuts:nr.key}),e.manifest?.fullText&&(0,$e.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,$e.jsx)(vt,{icon:"file-search",label:z.fullText,"aria-pressed":h,onClick:()=>S(M=>!M)}),h&&(m||!b)&&(0,$e.jsx)("span",{role:"status",children:m?z.searchUnavailable:z.searchLoading})]})]}),(0,$e.jsxs)("form",{className:"kplex-publication-address",onSubmit:x,children:[(0,$e.jsx)(X0,{label:z.address,layout:"inline",controlId:o,actions:(0,$e.jsx)(vt,{icon:"corner-down-left",label:z.open,type:"submit"}),children:(0,$e.jsx)("input",{id:o,type:"text",placeholder:z.address,autoComplete:"off",maxLength:512,value:r,onChange:M=>{u(M.currentTarget.value),f([]),s(!1)}})}),p&&(0,$e.jsx)("span",{role:"status",children:z.nodeUnavailable}),c.length>1&&(0,$e.jsxs)("div",{className:"kplex-publication-address-matches",children:[(0,$e.jsx)("p",{children:z.chooseNote}),(0,$e.jsx)("ul",{children:c.slice(0,24).map(M=>(0,$e.jsx)("li",{children:(0,$e.jsxs)("button",{type:"button",onClick:()=>{f([]),l({id:M})},children:[e.nodes.get(M)?.name," · ",M]})},M))}),c.length>24&&(0,$e.jsx)("p",{children:z.chooseAddress})]})]})]})}var xt=X(nt(),1);var R2="https://api.github.com",C2="https://github.com",A2=/^[a-z\d][a-z\d-]{0,38}$/i,z2=/^[a-z\d_.-]{1,100}$/i;function iv(e){return e.length<=256&&/^[a-z\d_.:/-]+$/i.test(e)&&!e.endsWith(".")&&!e.includes("..")&&e.split("/").every(t=>!!t&&!t.startsWith(".")&&!t.endsWith(".lock"))}function lv(e){if(!Zd(e))return null;let t=/^(https?):\/\/(?:www\.)?github\.com(?::(\d{1,5}))?(\/[^?#]*)?(?:[?#]|$)/i.exec(e);if(!t)return null;let[,n,i,l="/"]=t;if(i&&Number(i)!==(n.toLowerCase()==="https"?443:80))return null;let a;try{a=l.slice(1).replace(/\/$/,"").split("/").map(h=>decodeURIComponent(h))}catch{return{}}let[o,r,u,...c]=a;if(!o||!r||!A2.test(o)||!z2.test(r)||r==="."||r==="..")return{};let f=`${o}/${r}`,p=`${R2}/repos/${f}`,s=c.join("/");if(!u)return{repository:f,preview:{api:p,caption:f,comparison:!1}};if((u==="pull"||u==="issues")&&/^[1-9]\d{0,14}$/.test(c[0]??""))return{repository:f,preview:{api:`${p}/${u==="pull"?"pulls":"issues"}/${c[0]}`,caption:`${f} #${c[0]}`,comparison:!1}};if(u==="compare"){let h=s.split("...");if(h.length===2&&h.every(iv))return{repository:f,preview:{api:`${p}/compare/${h.map(encodeURIComponent).join("...")}?per_page=20`,caption:s,comparison:!0}}}if(u==="releases"&&c[0]==="tag"){let h=c.slice(1).join("/");if(iv(h))return{repository:f,preview:{api:`${p}/releases/tags/${encodeURIComponent(h)}`,caption:h,comparison:!1}}}return{repository:f}}function dm(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function mm(e,t){return typeof e=="string"&&e.trim()?e.trim().slice(0,t):void 0}function av(e,t,n){let i=dm(n);if(!t.comparison)return{title:mm(i.title??i.name??i.full_name,240)??t.caption,description:mm(i.body??i.description,16e3)};let l=Array.isArray(i.commits)?i.commits.slice(0,20).flatMap(a=>{let{sha:o,commit:r}=dm(a);if(typeof o!="string"||!/^[a-f\d]{40}$/i.test(o))return[];let u=mm(dm(r).message,240);return[{sha:o.slice(0,7),title:u?.split(/\r?\n/,1)[0]??o.slice(0,7),href:`${C2}/${e}/commit/${o}`}]}):[];return{title:t.caption,commits:l,total:typeof i.total_commits=="number"&&Number.isSafeInteger(i.total_commits)&&i.total_commits>=l.length?i.total_commits:l.length}}var Nc="http://www.w3.org/1999/xhtml",Ya="http://www.w3.org/2000/svg",O2="http://www.w3.org/1999/xlink",ov="http://www.w3.org/XML/1998/namespace",D2=new Set("a article aside audio b blockquote br caption code dd del div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s section span strong sub sup table tbody td th thead tr ul video".split(" ")),L2=new Set("svg a circle clipPath defs ellipse g image line linearGradient marker mask path pattern polygon polyline radialGradient rect stop symbol text textPath tspan use".split(" ")),_2=new Set("x y x1 x2 y1 y2 cx cy r rx ry fx fy fr d points width height viewBox markerWidth markerHeight refX refY startOffset stroke-width stroke-dasharray stroke-dashoffset font-size letter-spacing textLength pathLength transform gradientTransform patternTransform opacity fill-opacity stroke-opacity offset stop-opacity stroke-miterlimit".split(" ")),H2=new Set("stroke-linecap stroke-linejoin text-anchor dominant-baseline alignment-baseline font-weight font-style font-family fill-rule clip-rule gradientUnits spreadMethod markerUnits marker-start marker-end marker-mid patternUnits patternContentUnits clipPathUnits maskUnits maskContentUnits preserveAspectRatio orient vector-effect visibility lengthAdjust".split(" ")),U2=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),rv=/^[-a-z0-9_]{1,96}$/i,P2=/^[\d\s+.,%()a-z-]+$/i,k2=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,V2=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,B2=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,G2=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,uv=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,cv=4*1024*1024;function Rc(e){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(e)}function Y2(e){if(e.length>2048||!/^https?:\/\//i.test(e)||/[\p{Cc}\s\\]/u.test(e))return null;try{let t=new URL(e);return t.hostname&&!t.username&&!t.password?t.href:null}catch{return null}}function q2(e,t=""){if(!Si(e)||t&&!Rc(t))throw new Error("Invalid public link");return`?node=${e}${t?`#${encodeURIComponent(t)}`:""}`}function sv(e,t){if(e.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(e);if(!n||!t.nodeIds.has(n[1])||!Si(n[1]))return null;let i="";try{i=decodeURIComponent(n[2]??"")}catch{return null}if(i&&!Rc(i))return null;if(t.nodeAddress)return t.nodeAddress(n[1],i);let l=q2(n[1],i);return t.siteURL?new URL(l,t.siteURL).href:l}if(e.startsWith("#")){let n;try{n=decodeURIComponent(e.slice(1))}catch{return null}return Rc(n)?`#${encodeURIComponent(t.idPrefix?`${t.idPrefix}-${n}`:n)}`:null}return fv(e,t)??(t.allowExternalLinks===!1?null:Y2(e))}function fv(e,t){let n=e.slice(2);return!G2.test(e)||!Jd(n)||!t.assetPaths.has(n)?null:t.siteURL?new URL(`./${n}`,t.siteURL).href:`./${n}`}function j2(e,t){let n=new Map;for(let i of Array.from(e.querySelectorAll("[id]"))){let l=i.getAttribute("id");l&&/^[a-z0-9_.:-]{1,160}$/i.test(l)&&!n.has(l)&&n.set(l,`${t}-${n.size+1}`)}return n}function dv(e,t){t&&(e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"))}function mv(e,t,n,i){let l=fv(n,i);l&&(i.deferMedia?e.setAttribute("data-publication-asset",n.slice(2)):e.setAttribute(t,l))}function X2(e,t){if(e.getAttribute("data-publication-drawing")!=="true")return;t.setAttribute("data-publication-drawing","true");let n=e.getAttribute("data-publication-drawing-mode");(n==="light"||n==="dark")&&t.setAttribute("data-publication-drawing-mode",n);for(let i of["width","height"]){let l=`data-publication-${i}`,a=e.getAttribute(l)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(a)&&(t.setAttribute(l,a),t.style.setProperty(`--kplex-published-drawing-${i}`,a.endsWith("%")?a:`${a}px`))}}function K2(e,t,n){let i=e.localName,l=e.getAttribute("id")??e.getAttribute("data-publication-fragment");if(l&&Rc(l)&&(t.id=n.idPrefix?`${n.idPrefix}-${l}`:l,t.setAttribute("data-publication-fragment",l)),i==="a"&&dv(t,sv(e.getAttribute("href")??"",n)),i==="figure"&&X2(e,t),i==="img"||i==="audio"||i==="video"){let a=e.getAttribute("src")??"";(i==="img"?uv:i==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(a)&&mv(t,"src",a,n),i==="img"?(t.setAttribute("alt",(e.getAttribute("alt")??"").slice(0,512)),t.setAttribute("loading","lazy"),t.setAttribute("decoding","async")):(t.setAttribute("controls","controls"),t.setAttribute("preload","none"))}if(i==="aside"||i==="blockquote"){let a=e.getAttribute("data-callout");a&&rv.test(a)&&t.setAttribute("data-callout",a)}if(i==="ol"){let a=e.getAttribute("start");a&&/^\d{1,7}$/.test(a)&&t.setAttribute("start",a)}}var Q2=/@font-face\s*\{\s*font-family:\s*(["']?)([a-z0-9][a-z0-9 _-]{0,95})\1\s*;\s*src:\s*url\(\s*(["']?)data:font\/(woff2|woff|ttf|otf);base64,([A-Za-z0-9+/]+={0,2})\3\s*\)\s*;([^{}]*)\}/gi,Z2=/^(?:normal|bold|[1-9]\d{0,2}|1000)(?: (?:[1-9]\d{0,2}|1000))?$/i,I2=/^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?(?:\s*,\s*u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?)*$/i,J2=new Set(["text","tspan","textPath"]),F2={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},$2=512*1024;function W2(e,t){let n=new Map,i=[],l=0;for(let a of Array.from(e.children))if(!(a.namespaceURI!==Ya||a.localName!=="defs"))for(let o of Array.from(a.children)){if(o.namespaceURI!==Ya||o.localName!=="style"||o.childElementCount)continue;let r=o.textContent??"";if(l+=r.length,l>$2)return{families:new Map,rules:[]};for(let u of r.matchAll(Q2)){let c=u[2].trim().toLowerCase(),f=u[4].toLowerCase(),p=u[5];if(!(f==="woff2"||f==="woff"||f==="ttf"||f==="otf")||p.length<8||p.length%4||!atob(p.slice(0,8)).startsWith(F2[f]))continue;let s=n.get(c)??`${t}-font-${n.size+1}`;n.set(c,s);let h=new Map;for(let b of u[6].split(";")){let[v,m]=b.split(":").map(d=>d.trim().toLowerCase());m&&(v==="unicode-range"&&m.length<=8192&&I2.test(m)||v==="font-weight"&&Z2.test(m)||v==="font-style"&&/^(?:normal|italic|oblique)$/.test(m))&&h.set(v,m)}let S=[...h].map(([b,v])=>`${b}:${v};`).join("");i.push(`@font-face{font-family:${s};src:url(data:font/${f};base64,${p});${S}}`)}}return{families:n,rules:i}}function eM(e,t){return e.split(",").map(n=>t?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function tM(e,t,n,i,l){for(let a of Array.from(e.attributes)){let{localName:o,value:r}=a;if(!(r.length>65536)){if(J2.has(e.localName)&&(o==="style"&&!a.namespaceURI&&/(?:^|;)\s*white-space\s*:\s*pre\s*(?:;|$)/i.test(r)||o==="space"&&a.namespaceURI===ov&&r==="preserve")){t.setAttributeNS(ov,"xml:space","preserve");continue}if(o==="href"&&(a.namespaceURI===null||a.namespaceURI===O2)){if(e.localName==="a")dv(t,sv(r,i));else if(e.localName==="image"&&uv.test(r))mv(t,"href",r,i);else if((e.localName==="use"||e.localName==="textPath"||e.localName.endsWith("Gradient"))&&r.startsWith("#")){let u=n.get(r.slice(1));u&&t.setAttribute("href",`#${u}`)}continue}if(!a.namespaceURI)if(o==="id"){let u=n.get(r);u&&t.setAttribute(o,u)}else if(U2.has(o)){let u=B2.exec(r),c=u&&n.get(u[1]);c?t.setAttribute(o,`url(#${c})`):V2.test(r)&&t.setAttribute(o,r)}else _2.has(o)&&P2.test(r)?t.setAttribute(o,r):H2.has(o)&&k2.test(r)&&t.setAttribute(o,o==="font-family"?eM(r,l?.families):r)}}}function nM(e,t,n){if(n.idPrefix&&!rv.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let l=n.siteURL?t:t.implementation.createDocument(null,null),a=l.adoptNode(new i.DocumentFragment),o=0,r=0,u=0,c=new Set,f=(p,s,h,S,b)=>{if(++o>1e5||h>64)throw new Error("Publication content too complex");if(p.nodeType===3||p.nodeType===4){let m=p.nodeValue??"";if(u+=m.length,u>cv)throw new Error("Publication content too large");s.appendChild(l.createTextNode(m));return}if(p.nodeType!==1)return;let v=p;if(v.namespaceURI===Ya&&L2.has(v.localName)){if(v.localName==="svg"){let g=`${n.idPrefix??"svg"}-s${++r}`;S=j2(v,g),b=n.allowDrawingFonts?W2(v,g):void 0}if(!S)return;let m=l.createElementNS(Ya,v.localName);tM(v,m,S,n,b);let d=m.getAttribute("id");if(d&&c.has(d)?m.removeAttribute("id"):d&&c.add(d),s.appendChild(m),v.localName==="svg"&&b?.rules.length){let g=l.createElementNS(Ya,"defs"),x=l.createElementNS(Ya,"style");x.textContent=b.rules.join(`
12
+ `),g.appendChild(x),m.appendChild(g)}for(let g of Array.from(v.childNodes))f(g,m,h+1,S,b)}else if(!S&&v.namespaceURI===Nc&&D2.has(v.localName)){if(n.drawingMode&&v.localName==="figure"&&v.getAttribute("data-publication-drawing")==="true"){let d=v.getAttribute("data-publication-drawing-mode");if((d==="light"||d==="dark")&&d!==n.drawingMode)return}let m=l.createElementNS(Nc,v.localName);K2(v,m,n),s.appendChild(m);for(let d of Array.from(v.childNodes))f(d,m,h+1,null)}};for(let p of e)f(p,a,0,null);return a}function hv(e,t,n){if(e.length>cv||/<!\s*(?:doctype|entity)|<\?[^>]*\?>/i.test(e))throw new Error("Invalid publication content");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let l=new i.DOMParser().parseFromString(`<article xmlns="${Nc}">${e}</article>`,"application/xhtml+xml");if(l.documentElement.namespaceURI!==Nc||l.querySelector("parsererror"))throw new Error("Invalid publication markup");return nM(Array.from(l.documentElement.childNodes),t,{...n,allowDrawingFonts:!0})}function pv(e){if(e.protocol!=="https:"&&e.protocol!=="http:")return null;let t=e.hostname.toLowerCase();if(!["youtube.com","www.youtube.com","m.youtube.com","youtu.be","www.youtube-nocookie.com"].includes(t))return null;let n=e.pathname.split("/").filter(Boolean),i=t==="youtu.be"?n[0]:["embed","shorts","live"].includes(n[0])?n[1]:e.searchParams.get("v");return i&&/^[A-Za-z0-9_-]{11}$/.test(i)?{id:i,portrait:n[0]==="shorts"}:null}function gv(e){let t;try{t=typeof e=="string"?new URL(e):e}catch{return null}let n=pv(t);if(!n)return null;let i=new URL(`https://www.youtube.com/embed/${n.id}`);i.searchParams.set("playsinline","1");let l=t.searchParams.get("start")??t.searchParams.get("t");return l&&/^\d+s?$/.test(l)&&i.searchParams.set("start",l.replace(/s$/,"")),{url:i.href,aspectRatio:n.portrait?9/16:16/9}}var qa=X(nt(),1);async function yv(e,t,n,i){let l=await e.fetch(t,{credentials:"omit",redirect:"error",referrerPolicy:"no-referrer",signal:i}),a=l.body?.getReader();if(!l.ok||!a||Number(l.headers.get("Content-Length"))>n)throw await a?.cancel(),new Error("Publication resource unavailable");let o=[],r=0;try{for(;;){let f=await a.read();if(f.done)break;if(r+=f.value.byteLength,r>n)throw new Error("Publication resource exceeds its declared size");o.push(f.value)}}catch(f){throw await a.cancel().catch(()=>{}),f}finally{a.releaseLock()}let u=new Uint8Array(r),c=0;for(let f of o)u.set(f,c),c+=f.byteLength;return u}async function hm(e,t,n,i){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await yv(e,t,n,i)))}async function bv(e,t,n){return hm(e,t,i0,n)}function vv(e,t,n,i,l){let a=new URL("./",t),o=new Map(n.resources.map(c=>[c.path,c])),r=new Set([...o.keys()].filter(c=>c.startsWith("assets/")));async function u(c,f){let p=o.get(c),s=new URL(c,a);if(!p||s.origin!==a.origin||s.pathname!==`${a.pathname}${c}`||!e.crypto.subtle)throw new Error("Publication resource unavailable");let h=i?await i(c,p.bytes,f):await yv(e,s,p.bytes,f);if(h.byteLength!==p.bytes)throw new Error("Publication resource size mismatch");let S=await e.crypto.subtle.digest("SHA-256",h);if(f.throwIfAborted(),Array.from(new Uint8Array(S),v=>v.toString(16).padStart(2,"0")).join("")!==p.sha256)throw new Error("Publication resource checksum mismatch");return h}return{siteURL:a,assetPaths:r,bytes:u,nodeAddress:l,has:c=>o.has(c),async text(c,f){return new TextDecoder("utf-8",{fatal:!0}).decode(await u(c,f))}}}var We=X(me(),1);function Sv({page:e}){let t=(0,qa.useRef)(null),[n,i]=(0,qa.useState)(),{repository:l,preview:a}=e;return(0,qa.useEffect)(()=>{let o=t.current?.ownerDocument.defaultView;if(!o||!l||!a)return;let r=new o.AbortController;return hm(o,new o.URL(a.api),8*1024*1024,r.signal).then(u=>{r.signal.aborted||i(av(l,a,u))}).catch(()=>{r.signal.aborted||i(null)}),()=>r.abort()},[l,a]),(0,We.jsx)("div",{ref:t,className:"kplex-publication-github-preview",children:a?n===void 0?(0,We.jsx)("p",{role:"status",children:z.githubLoading}):n===null?(0,We.jsx)("p",{role:"status",children:z.githubPreviewUnavailable}):(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)("h3",{children:n.title}),n.description&&(0,We.jsx)("p",{className:"kplex-publication-github-description",children:n.description}),n.commits&&(n.commits.length?(0,We.jsxs)(We.Fragment,{children:[n.total!==void 0&&n.total>n.commits.length&&(0,We.jsx)("p",{children:z.githubCommitCount(n.commits.length,n.total)}),(0,We.jsx)("ol",{children:n.commits.map(o=>(0,We.jsx)("li",{children:(0,We.jsxs)("a",{href:o.href,target:"_blank",rel:"noopener noreferrer",children:[(0,We.jsx)("code",{children:o.sha})," ",o.title]})},o.href))})]}):(0,We.jsx)("p",{children:z.githubNoCommits}))]}):(0,We.jsx)("p",{children:z.githubOpenOriginal})})}var Ee=X(me(),1),xv="http://www.w3.org/2000/svg",iM={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml",mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",pdf:"application/pdf"};function pm(e,t){if(t)return Array.from(e.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===t||n.getAttribute("data-publication-fragment")===t)}function wv({publication:e,resources:t,location:n,id:i,contentScope:l,colorMode:a,onClose:o,onNavigate:r,dock:u,onSwitchDock:c}){let f=(0,xt.useRef)(null),p=(0,xt.useRef)(null),s=(0,xt.useRef)(!1),h=(0,xt.useRef)(n.fragment);h.current=n.fragment;let[S,b]=(0,xt.useState)(0),[v,m]=(0,xt.useState)("loading"),[d,g]=(0,xt.useState)(0),x=e.published.get(n.id),M=x.kind==="url"?x.url:void 0,T=(0,xt.useMemo)(()=>lv(M),[M]),w=(0,xt.useMemo)(()=>M?gv(M):null,[M]),N=w&&["https:","http:"].includes(t.siteURL.protocol)&&new URL(w.url).origin!==t.siteURL.origin;(0,xt.useEffect)(()=>{let E=f.current,k=E?.ownerDocument.defaultView;if(!E||!k||M)return;let L=new k.AbortController,_=L.signal,q=new Map;g(0),E.replaceChildren();let W=async I=>{let ae=q.get(I);if(ae)return ae;let J=iM[I.slice(I.lastIndexOf(".")+1)];if(!J)throw new Error("Unsupported publication media");let C=await t.bytes(I,_);_.throwIfAborted();let P=k.URL.createObjectURL(new k.Blob([C],{type:J}));return q.set(I,P),P},ie=async()=>{if(x.kind!=="document"&&x.kind!=="drawing"){if(!x.asset){m("unavailable");return}let P=await W(x.asset);_.throwIfAborted();let O=E.ownerDocument.createElement("a");O.href=P,O.download=x.asset.slice(7),O.textContent=z.downloadAsset,E.replaceChildren(O),m("ready");return}let I=await t.text(Id(x.id),_),ae=hv(I,E.ownerDocument,{siteURL:t.siteURL,nodeAddress:t.nodeAddress,nodeIds:new Set(e.nodes.keys()),assetPaths:t.assetPaths,idPrefix:l,deferMedia:!0,drawingMode:a}),J=Array.from(ae.querySelectorAll("[data-publication-asset]"),P=>({element:P,path:P.getAttribute("data-publication-asset"),download:!1})),C=new URL("./assets/",t.siteURL);for(let P of Array.from(ae.querySelectorAll("a[href]"))){let O=new URL(P.getAttribute("href"),t.siteURL);if(O.origin!==C.origin||!O.pathname.startsWith(C.pathname))continue;let Y=O.pathname.slice(t.siteURL.pathname.length);P.removeAttribute("href"),P.namespaceURI!==xv&&t.assetPaths.has(Y)&&J.push({element:P,path:Y,download:!0})}_.throwIfAborted(),E.replaceChildren(ae),m("ready"),pm(E,h.current)?.scrollIntoView({block:"start"});for(let{element:P,path:O,download:Y}of J)try{let ee=await W(O);_.throwIfAborted(),P.setAttribute(Y||P.namespaceURI===xv?"href":"src",ee),Y&&P.setAttribute("download",O.slice(7)),P.removeAttribute("data-publication-asset")}catch{if(_.aborted)return;g(ee=>ee+1)}};return m("loading"),ie().catch(()=>{_.aborted||m("failed")}),()=>{L.abort(),E.replaceChildren();for(let I of q.values())k.URL.revokeObjectURL(I)}},[S,x,e,t,l,a,M]),(0,xt.useEffect)(()=>{f.current&&pm(f.current,n.fragment)?.scrollIntoView({block:"start"})},[n.fragment]),(0,xt.useEffect)(()=>{s.current&&(s.current=!1,p.current?.focus({preventScroll:!0}))},[n.id]);function V(E){if(E.defaultPrevented||E.metaKey||E.ctrlKey||E.shiftKey||E.altKey)return;let k=E.target;if(!(k instanceof E.currentTarget.ownerDocument.defaultView.Element))return;let L=k.closest("a")?.getAttribute("href");if(!L)return;let _=A0(L,t.siteURL,e,n.id);if(!_)return;E.preventDefault();let q=L.startsWith("#")&&_.id===n.id&&f.current?pm(f.current,_.fragment):null;s.current=E.detail===0&&_.id!==n.id,r(q?{..._,fragment:q.getAttribute("data-publication-fragment")??void 0}:_)}return(0,Ee.jsxs)("aside",{id:i,className:`kplex-publication-note${M?" kplex-publication-web-note":""}`,"aria-labelledby":`${i}-heading`,children:[(0,Ee.jsxs)("header",{className:"kplex-publication-sidecar-heading",children:[(0,Ee.jsx)("h2",{ref:p,id:`${i}-heading`,tabIndex:-1,children:x.title}),(0,Ee.jsxs)("div",{className:"kplex-publication-sidecar-actions",children:[c&&(0,Ee.jsx)(vt,{icon:u==="bottom"?"panel-right":"panel-bottom",onClick:c,label:u==="bottom"?z.dockSidecarRight:z.dockSidecarBottom}),(0,Ee.jsx)(vt,{icon:"x",onClick:o,label:z.closeSidecar})]})]}),M?(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsxs)("div",{className:"kplex-publication-web-source",children:[(0,Ee.jsx)("a",{href:M,target:"_blank",rel:"noopener noreferrer",children:z.openWebsite}),!T&&!w&&(0,Ee.jsx)("p",{children:z.webFrameHelp})]}),T?(0,Ee.jsx)(Sv,{page:T},M):w?N&&(0,Ee.jsx)("iframe",{className:"kplex-publication-web-frame kplex-publication-video-frame",title:x.title,src:w.url,style:{aspectRatio:w.aspectRatio??void 0},sandbox:"allow-scripts allow-same-origin allow-presentation",referrerPolicy:"strict-origin-when-cross-origin",allow:"encrypted-media; picture-in-picture",allowFullScreen:!0},w.url):(0,Ee.jsx)("iframe",{className:"kplex-publication-web-frame",title:x.title,src:M,sandbox:"allow-scripts",referrerPolicy:"no-referrer"},M)]}):(0,Ee.jsxs)(Ee.Fragment,{children:[v==="loading"&&(0,Ee.jsx)("p",{role:"status",children:z.loadingNote}),v==="failed"&&(0,Ee.jsxs)("div",{role:"alert",children:[(0,Ee.jsx)("p",{children:z.noteUnavailable}),(0,Ee.jsx)("button",{type:"button",onClick:()=>b(E=>E+1),children:z.retry})]}),v==="unavailable"&&(0,Ee.jsx)("p",{children:z.noDocument}),(0,Ee.jsx)("div",{ref:f,className:"kplex-publication-note-content","aria-busy":v==="loading",onClick:V}),d>0&&(0,Ee.jsxs)("div",{role:"status",children:[(0,Ee.jsx)("p",{children:z.mediaUnavailable}),(0,Ee.jsx)("button",{type:"button",onClick:()=>b(E=>E+1),children:z.retry})]})]})]})}var Jn=X(nt(),1);var xi=X(me(),1),Ev=736,Mv=6;function lM({dock:e,sidecarId:t,size:n,minimum:i,maximum:l,onSize:a}){let o=(0,Jn.useRef)(null),r=(0,Jn.useRef)(null),u=e!=="bottom",c=e==="left"?1:-1;function f(d){return u?d.clientX:d.clientY}function p(d){a(Math.max(i,Math.min(l,Math.round(d))))}function s(d,g){r.current?.pointer===g&&(r.current=null,d.hasPointerCapture(g)&&d.releasePointerCapture(g))}(0,Jn.useLayoutEffect)(()=>{let d=o.current;return()=>{d&&r.current&&s(d,r.current.pointer)}},[e]);function h(d){d.button!==0||r.current||(d.preventDefault(),d.currentTarget.focus({preventScroll:!0}),d.currentTarget.setPointerCapture(d.pointerId),r.current={pointer:d.pointerId,origin:f(d),size:n})}function S(d){let g=r.current;g?.pointer===d.pointerId&&p(g.size+c*(f(d)-g.origin))}function b(d){S(d),s(d.currentTarget,d.pointerId)}function v(d){s(d.currentTarget,d.pointerId)}function m(d){if(d.altKey||d.ctrlKey||d.metaKey)return;let[g,x]=u?e==="left"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]:["ArrowUp","ArrowDown"],M=d.shiftKey?1:10,T;if(d.key==="Home")T=i;else if(d.key==="End")T=l;else if(d.key===g)T=n+M;else if(d.key===x)T=n-M;else return;d.preventDefault(),p(T)}return(0,xi.jsx)("div",{ref:o,className:"kplex-publication-divider",role:"separator",tabIndex:0,"aria-label":z.resizeSidecar,"aria-controls":t,"aria-orientation":u?"vertical":"horizontal","aria-valuemin":i,"aria-valuemax":l,"aria-valuenow":n,onPointerDown:h,onPointerMove:S,onPointerUp:b,onPointerCancel:v,onLostPointerCapture:v,onKeyDown:m})}function Tv({canvas:e,sidecarId:t,sidecarOpen:n,dock:i,canDockLaterally:l,onDock:a,renderSidecar:o}){let r=(0,Jn.useRef)(null),[u,c]=(0,Jn.useState)({width:0,height:0}),[f,p]=(0,Jn.useState)({}),s=i!=="bottom",h=s?u.width:u.height,S=Math.max(0,h-(s?260:160)-Mv),b=Math.min(S,s?240:120),v=f[i]??Math.round(h*(s?.34:.43)),m=Math.max(b,Math.min(S,v)),d=n?{"--kplex-publication-sidecar-size":`${m}px`,"--kplex-publication-divider-size":`${Mv}px`}:void 0;(0,Jn.useLayoutEffect)(()=>{let M=r.current,T=M?.ownerDocument.defaultView;if(!M||!T)return;let w=M;function N(){let E=w.clientWidth,k=w.clientHeight;c(L=>L.width===E&&L.height===k?L:{width:E,height:k})}let V=new T.ResizeObserver(N);return V.observe(M),N(),()=>V.disconnect()},[]);function g(M){p(T=>T[i]===M?T:{...T,[i]:M})}function x(){a(i==="bottom"?"right":"bottom")}return(0,xi.jsxs)("div",{ref:r,className:`kplex-publication-workspace${n?" is-sidecar-open":""}`,"data-sidecar-dock":n?i:void 0,style:d,children:[e,n?(0,xi.jsxs)(xi.Fragment,{children:[(0,xi.jsx)(lM,{dock:i,sidecarId:t,size:m,minimum:b,maximum:S,onSize:g}),o(i,l?x:void 0)]}):(0,xi.jsx)("div",{id:t,hidden:!0})]})}function Cc(e,t,n){let i=n/2;switch(t){case"top":return{x:e.x,y:e.y-e.height/2-3-i};case"bottom":return{x:e.x,y:e.y+e.height/2+3+i};case"left":return{x:e.x-e.width/2-3-i,y:e.y};case"right":return{x:e.x+e.width/2+3+i,y:e.y}}}function Nv(e){switch(e){case"top":return{x:0,y:-1};case"bottom":return{x:0,y:1};case"left":return{x:-1,y:0};case"right":return{x:1,y:0}}}function aM(e,t,n,i,l){let a=1-l,o=a*a,r=l*l;return{x:o*a*e.x+3*o*l*t.x+3*a*r*n.x+r*l*i.x,y:o*a*e.y+3*o*l*t.y+3*a*r*n.y+r*l*i.y}}function gm(e,t,n,i,l){if(l==="straight")return{d:`M ${e.x} ${e.y} L ${t.x} ${t.y}`,midpoint:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}};let a=Math.hypot(t.x-e.x,t.y-e.y),o=Math.max(20,Math.min(108,a*.2)),r=Nv(n),u=Nv(i),c={x:e.x+r.x*o,y:e.y+r.y*o},f={x:t.x+u.x*o,y:t.y+u.y*o};return{d:`M ${e.x} ${e.y} C ${c.x} ${c.y}, ${f.x} ${f.y}, ${t.x} ${t.y}`,midpoint:aM(e,c,f,t,.5)}}var ym=["parent","child","left","right","previous","next"];function Rv(e,t,n,i){let l=t.neighbours(e,"parent").slice(0,n),a=t.neighbours(e,"child").slice(0,n),o=[...t.neighbours(e,"left"),...t.neighbours(e,"previous")].slice(0,n),r=[...t.neighbours(e,"right"),...t.neighbours(e,"next")].slice(0,n),u=new Set([t.identity(e),...[...l,...a,...o,...r].map(p=>t.identity(p.page))]),c=new Map([...l,...a,...o,...r].map(p=>[t.identity(p.page),p.page])),f=new Map;if(i)for(let p of c.values())for(let s of ym)for(let h of t.neighbours(p,s)){let S=t.identity(h.page);if(u.has(S))continue;let b=f.get(S);(!b||b.relationType!==1)&&f.set(S,{...h,role:"sibling"})}return{center:e,parents:l,children:a,leftFriends:o,rightFriends:r,siblings:t.sort([...f.values()]).slice(0,n)}}var ol=(e,t,n)=>Math.max(t,Math.min(n,e));function Ov(e){return e.horizontalCompactingFactor??e.compactingFactor}function oM(e){let t=e.compactView?.82:1;return{horizontal:ol(1.35/Ov(e),.38,1.35)*t,vertical:ol(1.35/e.compactingFactor,.38,1.35)*t,spacing:ol(e.minLinkLength/18,.72,1.7)}}function Cv(e,t){return Math.max(1,Math.min(t==="parent"?3:7,Math.round(t==="parent"?e.parentColumns:e.childColumns)))}function Oc(e){return ol(e.siblingRelativeSize/100,.3,.85)}function Av(e,t){let n=ol(Ov(e),.75,4);return n>=3?-t*.05*(n-3):48*(3-n)*ol(e.minLinkLength/18,.72,1.7)*(e.compactView?.82:1)}function Ac(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2+24))}function zc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2))}function Nn(e,t,n=!1){let i=[...e];for(let l of e){let a=t.mini(l,n);a&&i.push({...l,width:a.width,height:a.viewportHeight,y:l.y+l.height/2+a.topGap+a.viewportHeight/2})}return i}function zv(e,t,n,i,l,a,o){let r=e;if(!r.length)return r;let u=[];for(let s=0;s<r.length;s+=i){let h=r.slice(s,s+i);u.push({nodes:h,height:Math.max(...h.map(S=>S.height)),reserve:Math.max(0,...h.map(S=>o.reserve(S)))})}let c=t,f=u[0].height,p=u[0].reserve;return u.forEach((s,h)=>{let S;if(h===0){let d=Math.max(0,s.height-26)/2;S=n===-1?t-s.reserve-d:t+d}else n===1?S=c+f/2+p+a+s.height/2:S=c-f/2-a-s.reserve-s.height/2;let b=s.nodes.map(d=>o.width(d)),m=-(b.reduce((d,g)=>d+g,0)+l*Math.max(0,s.nodes.length-1))/2;s.nodes.forEach((d,g)=>{let x=b[g];d.x=m+x/2,d.y=S,m+=x+l}),c=S,f=s.height,p=s.reserve}),r}function bm(e,t,n,i){let l=e;return Dv(l,t,n,i),l}function Dv(e,t,n,i){if(!e.length)return;let l=e.map(c=>i.verticalReserve(c));e[0].x=t,e[0].y=0;for(let c=1;c<e.length;c+=1){let f=e[c-1],p=e[c];p.x=t,p.y=f.y+f.height/2+l[c-1]+n+p.height/2}let a=e[0].y-e[0].height/2,o=e.length-1,r=e[o].y+e[o].height/2+l[o],u=-(a+r)/2;for(let c of e)c.y+=u}function vm(e,t,n,i,l="center"){if(!e.length)return;let a=Math.min(...e.map(p=>p.y-p.height/2)),r=Math.max(...e.map(p=>p.y+p.height/2+i.verticalReserve(p)))-a,u=Math.max(1,n-t),f=(r>u?t:l==="midline"?ol(a,t,n-r):l==="bottom"?n-r:l==="top"?t:t+(u-r)/2)-a;for(let p of e)p.y+=f}function dr(e,t,n,i,l,a,o){let c=l.centerX-l.width/2,f=l.centerX+l.width/2,p=l.fixedEdgeY,s=l.fixedEdgeY;t.length&&(c=Math.min(c,...t.map(b=>b.x-b.width/2-24)),f=Math.max(f,...t.map(b=>b.x+b.width/2+24)),p=Math.min(...t.map(b=>b.y-b.height/2)),s=Math.max(...t.map(b=>b.y+b.height/2)));let h=o!==void 0&&a!==void 0?Math.max(72,a-o):Math.max(72,n),S=o!==void 0&&a!==void 0?o:i==="top"?(t.length?s+16:l.fixedEdgeY)-h:t.length?p-16:l.fixedEdgeY;return{key:e,left:c,top:S,width:f-c,height:h,resizeEdge:i}}function mr(e,t,n,i,l,a){if(!t.length)return null;let o=24,r=16,u=Math.min(...t.map(g=>g.x-g.width/2)),c=Math.max(...t.map(g=>g.x+g.width/2)),f=Math.min(...t.map(g=>g.y-g.height/2)),p=Math.max(...t.map(g=>g.y+g.height/2)),s=f-r,h=p+r,S=h-s,b=a!==void 0&&l!==void 0?Math.max(72,l-a):l===void 0?Number.POSITIVE_INFINITY:Math.max(72,l-s),v=Math.min(S,Math.max(72,n),b);if(S<=v+.5)return null;let m=s,d=0;return a!==void 0&&l!==void 0?(m=a,d=Math.max(0,m-s)):l!==void 0?(m=l-v,d=Math.max(0,m-s)):(i==="bottom"?m=h-v:i==="center"&&(m=ol(-v/2,s,h-v)),d=Math.max(0,m-s)),{key:e,left:u-o,top:m,width:c-u+o*2,height:v,contentTop:s,contentHeight:S,initialScrollTop:d}}function Lv(e,t,n,i=!1){let l=Pe=>Math.max(0,...Pe.filter(ei=>ei.editor).map(ei=>ei.height+72));[...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.siblings].some(Pe=>Pe.editor)&&(t={...t,parentMaxHeight:Math.max(t.parentMaxHeight,l(e.parents)),childMaxHeight:Math.max(t.childMaxHeight,l(e.children)),friendMaxHeight:Math.max(t.friendMaxHeight,l([...e.leftFriends,...e.rightFriends])),siblingMaxHeight:Math.max(t.siblingMaxHeight,l(e.siblings))});let a=e.center,{horizontal:o,vertical:r,spacing:u}=oM(t),c=50*o*u,f=36*r*u,p=66*r*u,s=18*r*u,h=26,S=-(a.height/2+h/2+p),b=Math.max(42,52*r*u),v=a.height/2+h/2+p+b,m=zv(e.parents,S,-1,Cv(t,"parent"),c,f,n),d=zv(e.children,v,1,Cv(t,"child"),c,f,n),g=a.width/2,x=g+205*o*u,M=bm(e.leftFriends,-x,s,n),T=t.lateralArrangement==="left",w=bm(e.rightFriends,T?-x:x,s,n),N=T?[...M,...w]:M;T&&Dv(N,-x,s,n);let V=!T&&w.length>0,E=V?Math.max(...w.map(Pe=>Pe.x+Pe.width/2)):g,k=V?285:205,L=V?190:120,_=Math.max(x+k*o*u,E+L*o*u),q=bm(e.siblings,_,s,n),W=d.length?Math.min(...d.map(Pe=>Pe.y-Pe.height/2)):a.height/2+p+b+12,ie=Math.max(30,36*r*u),I=Math.max(120,t.friendMaxHeight),ae=Math.max(120,t.siblingMaxHeight),J=i?T?Math.min(I/2,W-ie):I/2:W-ie,C=J-I,P=C,O=J,Y=C,ee=J;vm(N,P,O,n,"midline"),T||vm(w,Y,ee,n,"midline");let te=Math.max(58,72*r*u),H=t.alignSiblingsToFirstParent?m[0]:void 0,Z=i?ae/2:H?H.y+H.height/2:J-te,ue=i?-ae/2:Z-ae;vm(q,ue,Z,n,i?"midline":"center");let fe=Nn(m,n,!0),wt=Nn(q,n,!0),we=m.length?Ac(fe,a.width/2+24):170,Mt=zc(fe,a.width/2),je=Math.max(Ac(Nn(M,n,!0),115,-x),Ac(Nn(w,n,!0),115,T?-x:x)),Rn=Math.max(zc(Nn(M,n,!0),0,-x),zc(Nn(w,n,!0),0,T?-x:x)),et=Ac(wt,110,_),Et=zc(wt,0,_),pn=T?Math.max(0,Av(t,we*2)):Av(t,we*2);m.length&&(x=we+je+pn),x=Math.max(x,Mt+Rn+4);for(let Pe of M)Pe.x=-x;for(let Pe of w)Pe.x=T?-x:x;(m.length||V)&&(_=V?x+je+et+Math.max(0,pn):we+et+pn),_=Math.max(_,Mt+Et+4,V?x+Rn+Et+4:0);for(let Pe of q)Pe.x=_;let Dt=Nn(m,n),wi=Nn(d,n),Fn=Nn(N,n),rl=Nn(T?[]:w,n),he=Nn(q,n),tt={},Lt=mr("parent",Dt,t.parentMaxHeight,"bottom"),Te=mr("child",wi,t.childMaxHeight,"top"),Cn=mr("left",Fn,t.friendMaxHeight,"top",O,P),An=mr("right",rl,t.friendMaxHeight,"top",ee,Y),$n=mr("sibling",he,t.siblingMaxHeight,"top",Z,ue);Lt&&(Lt.left=-we,Lt.width=we*2,tt.parent=Lt),Te&&(tt.child=Te),Cn&&(tt.left=Cn),An&&(tt.right=An),$n&&(tt.sibling=$n);let Yt={},ul=S+h/2+16,Wn=v-h/2-16;Yt.parent=dr("parent",Dt,t.parentMaxHeight,"top",{centerX:0,width:we*2,fixedEdgeY:ul}),Yt.child=dr("child",wi,t.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:Wn}),Yt.left=dr("left",Fn,t.friendMaxHeight,"top",{centerX:-x,width:je*2,fixedEdgeY:O},O,P),T||(Yt.right=dr("right",rl,t.friendMaxHeight,"top",{centerX:x,width:je*2,fixedEdgeY:ee},ee,Y)),Yt.sibling=dr("sibling",he,t.siblingMaxHeight,"top",{centerX:_,width:et*2,fixedEdgeY:Z},Z,ue);let zn=[a,...m,...d,...M,...w,...q];return t.flipEastWest&&rM(zn,Yt,tt),{nodes:zn,zoneViewports:tt,zoneAreas:Yt}}function rM(e,t,n){for(let i of e)i.x=-i.x;for(let i of Object.values(t))i&&(i.left=-i.left-i.width);for(let i of Object.values(n))i&&(i.left=-i.left-i.width)}var _v={version:1,fields:{flipEastWest:{defaultValue:!1,validate:e=>typeof e=="boolean"}}};function Dc(e){return e?.status!=="unavailable"&&e?.values.flipEastWest===!0}function Lc(e){return{top:"parent",bottom:"child",left:e?"right":"left",right:e?"left":"right"}}function Hv(e,t=!1){return e==="parent"?{source:"top",target:"bottom"}:e==="child"?{source:"bottom",target:"top"}:(e==="left"||e==="previous")!==t?{source:"left",target:"right"}:{source:"right",target:"left"}}var uM={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var cM={parent:{key:"parentMaxHeight",min:140,max:800},child:{key:"childMaxHeight",min:160,max:900},left:{key:"friendMaxHeight",min:140,max:800},right:{key:"friendMaxHeight",min:140,max:800},sibling:{key:"siblingMaxHeight",min:120,max:700}};function sM(e){if(!e||typeof e!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(l=>{let a=Reflect.get(e,l);return typeof a=="number"&&Number.isFinite(a)}))return!1;let n=Reflect.get(e,"horizontalCompactingFactor"),i=Reflect.get(e,"lateralArrangement");return typeof Reflect.get(e,"compactView")=="boolean"&&(n===void 0||typeof n=="number"&&Number.isFinite(n))&&(i===void 0||i==="left"||i==="split")}var Uv={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:_v,capabilities:{sections:!0,descendants:!0,editor:!0,compact:!1},defaultState:null,restoreState:()=>null,project(e){let t=e.read.node(e.attention);if(!t||!e.read.isCurrent())return null;let n=!1,i=new Map,l=(f,p)=>{let s=JSON.stringify([f.id,p]),h=i.get(s)??e.read.relations(f.id,p);return i.set(s,h),n||=h.truncated||h.coverage==="unavailable",h.items.map(S=>({page:S.node,role:S.role,relationType:S.relationType,value:S}))},a=Rv(t,{identity:f=>f.id,neighbours:l,sort:f=>f.sort((p,s)=>e.read.compare(p.page,s.page))},e.maximum,!e.state||typeof e.state!="object"||Reflect.get(e.state,"renderSiblings")!==!1),o=Dc(e.configuration),r=[{id:"attention",nodeId:t.id,representation:"thought",...o?{ports:Lc(!0)}:{}}],u=[],c=(f,p)=>f.forEach((s,h)=>{let S=JSON.stringify([p,s.page.id,h]),b=Hv(p,Dc(e.configuration));r.push({id:S,nodeId:s.page.id,role:p,areaId:p,representation:"thought",relation:s.value,groupingPartition:p,...o?{ports:Lc(!0)}:{}}),p!=="sibling"&&u.push({id:S,kind:"semantic",source:"attention",target:S,sourceNode:t.id,targetNode:s.page.id,sourcePort:b.source,targetPort:b.target,relation:s.value})});c(a.parents,"parent"),c(a.children,"child"),c(a.leftFriends,"left"),c(a.rightFriends,"right"),c(a.siblings,"sibling");for(let f of r.filter(p=>p.role&&p.role!=="sibling")){if(!f.nodeId)continue;let p=e.read.node(f.nodeId);if(!p)continue;let s=ym.flatMap(h=>l(p,h));for(let h of r.filter(S=>S.role==="sibling")){let S=s.find(v=>v.page.id===h.nodeId),b=S?Hv(S.role,o):null;S&&b&&u.push({id:JSON.stringify([f.id,h.id]),kind:"semantic",source:f.id,target:h.id,sourceNode:f.nodeId,targetNode:S.page.id,sourcePort:b.source,targetPort:b.target,relation:S.value})}}return{attention:t.id,layoutRoot:t.id,entry:"attention",editor:"attention",frame:"attention",occurrences:r,edges:u,truncated:n||[a.parents,a.children,a.leftFriends,a.rightFriends,a.siblings].some(f=>f.length===e.maximum),coverage:e.read.coverage}},layout(e,t,n,i,l){if(!sM(n))throw new Error("Missing Classic geometry preferences");let a={...n,flipEastWest:n.flipEastWest??Dc(l?.configuration)},o=new Map(t.map(s=>[s.id,s])),r=e.occurrences.map(s=>{let h=o.get(s.id);if(!h)throw new Error("Missing occurrence measurement");return{...h,x:0,y:0,role:s.role??"center",areaId:s.areaId}}),u=r.find(s=>s.id===e.entry);if(!u)throw new Error("Missing Classic attention occurrence");let c=s=>r.filter(h=>h.areaId===s),f=Lv({center:u,parents:c("parent"),children:c("child"),leftFriends:c("left"),rightFriends:c("right"),siblings:c("sibling")},a,{reserve:s=>s.expandedReserve,verticalReserve:s=>s.expandedReserve*(s.role==="sibling"?Oc(a):1),width:s=>s.expandedWidth,mini:(s,h)=>s[h?"envelope":"mini"]},i),p=Object.values(f.zoneAreas).map(s=>{let h=cM[s.key];return{id:s.key,labelKey:uM[s.key],bounds:{x:s.left,y:s.top,width:s.width,height:s.height},resizeEdge:s.resizeEdge,heightPreference:{key:h.key,minimum:h.min,maximum:h.max},...s.key==="sibling"?{}:{dropRole:s.key},...f.zoneViewports[s.key]?{viewport:{...f.zoneViewports[s.key],x:f.zoneViewports[s.key].left,y:f.zoneViewports[s.key].top}}:{}}});return{positions:new Map(f.nodes.map(s=>[s.id,{x:s.x,y:s.y,width:s.width,height:s.height}])),areas:p}}};var fM={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous",sibling:"sibling"};function kv(e,t,n){let i=n==="previous"?"left":n==="next"?"right":n;return t&&(i==="left"||i==="right")?t:Object.entries(e??{}).find(([,l])=>l===i)?.[0]}function Pv(e,t){return JSON.stringify(e<t?[e,t]:[t,e])}function Vv(e,t,n,i,l,a){let o=new Set(e.keys()),r=new Set;for(let[f,p]of t)r.add(Pv(f,p));let u=0,c=0;for(let[f,p]of e){if(++u>16384)return!0;for(let s of n(p[0],o)){if(++u>16384||c>=4096)return!0;let h=i(s),S=e.get(h);if(!S||h===f)continue;let b=Pv(f,h);if(r.has(b))continue;let v,m=1/0;for(let d of p)for(let g of S){if(++u>16384)return!0;let x=l(d,s.role),M=l(g,fM[s.role]);if(!x||!M)continue;let T=(d.x-g.x)**2+(d.y-g.y)**2;T<m&&(v={source:d,target:g,sourcePort:x,targetPort:M},m=T)}v&&(r.add(b),c++,a(v,s))}}return!1}function ja(e){let t=e.length===1?"root":JSON.stringify(e);return Ul(t)?t:null}function Bv(e,t){let n=new Map;for(let i of(e.editors??[]).slice(0,1)){if(i.occurrenceId==="root"&&i.nodeId===t){n.set("root",[t]);continue}try{let l=JSON.parse(i.occurrenceId);if(!Array.isArray(l)||l.length<2||l.length>ht.depth+1||!l.every(Ul)||l[0]!==t||l[l.length-1]!==i.nodeId||ja(l.map(Mn))!==i.occurrenceId)continue;n.set(i.occurrenceId,l.map(Mn))}catch{}}return n}function Gv(e){let t=pc(e.configuration),n=nl(e.state),i=e.layoutRoot;if(!t||n.version!==1||!i||!Number.isInteger(e.maximum)||e.maximum<1||e.read.node(i)?.id!==i||!e.read.isCurrent())return null;let l=ir(r0(n,i,Math.min(t.initialGenerations,t.maximumDepth)));if(!l)return null;let a=l,o=Math.min(t.maximumOccurrences,ht.occurrences,Math.max(1,e.maximum*8+1)),r=new Set(a.expanded),u=new Set(a.collapsed),c=Bv(e,i),f=new Set,p=new Map,s=new Set;for(let w of c.values())for(let N=1;N<=w.length;N++){let V=ja(w.slice(0,N));if(V&&(f.add(V),N<w.length)){let E=p.get(V)??new Set;E.add(w[N]),p.set(V,E),N>1&&s.add(w[N-1])}}let h=new Set([...(e.retainedScopes??[]).slice(0,16),...s].filter(w=>w!==i)),S=new Set,b=new Set,v=[],m=[],d=[{id:"root",lineage:[i],depth:0,side:1}],g=!1,x=(w,N,V)=>{let k=(V?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).map(_=>e.read.relations(w,_,N)),L=new Map;for(let _ of k)for(let q of _.items)L.has(q.node.id)||L.set(q.node.id,q);return{items:[...L.values()],truncated:k.some(_=>_.truncated),coverage:k.some(_=>_.coverage==="unavailable")?"unavailable":k.every(_=>_.coverage==="local")?"local":"cached"}},M=w=>{if(w===i||S.has(w))return!0;if(S.size>=ht.scopes)return!1;let N=[...h].filter(V=>!S.has(V)&&V!==w).length;return!h.has(w)&&S.size+N>=ht.scopes?!1:(S.add(w),!0)};for(;d.length&&v.length<o;){let w=d.shift(),N=w.lineage[w.lineage.length-1];if(b.has(w.id))continue;b.add(w.id);let V=e.read.node(N);if(!V||V.id!==N||!e.read.isCurrent())return null;let E=w.lineage.slice(0,-1).includes(N),k=p.has(w.id)?Math.max(t.maximumDepth,w.depth+1):t.maximumDepth,L=e.read.scope?.(N)??{coverage:"unavailable",prepared:!1,complete:!1,pending:!1},_=E?{items:[],truncated:!1,coverage:"cached"}:x(N,1,w.depth===0),q=!E&&w.depth<k&&!u.has(w.id)&&(r.has(w.id)||w.depth<a.initialGenerations),W=!E&&w.depth<k&&!(L.complete&&_.coverage!=="unavailable"&&_.items.length===0&&!_.truncated),ie=q&&W&&M(N),I=ie?x(N,Math.min(e.maximum,128),w.depth===0):_,ae=E||!q?"ready":L.pending?"loading":I.coverage==="unavailable"?"unavailable":L.complete?"ready":L.prepared||I.items.length>0?"partial":"unavailable";(q&&W&&!ie||ie&&I.truncated||!E&&w.depth>=k&&(I.items.length>0||!L.complete))&&(ae="limited",g=!0);let J=[];if(ie){let Y=new Map(I.items.map(H=>[H.node.id,H]));for(let H of p.get(w.id)??[])if(!Y.has(H)){let ue=(w.depth===0?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).flatMap(fe=>e.read.relation?.(N,H,fe)?.items??[]).find(fe=>fe.node.id===H);ue&&e.read.isCurrent()&&Y.set(H,ue)}if(w.depth===0&&L.complete&&!I.truncated&&I.coverage!=="unavailable"){let H=new Set([...Y.keys()].map(Z=>ja([i,Z])));a={...a,sides:Object.fromEntries(Object.entries(a.sides).filter(([Z])=>H.has(Z)))}}let ee=[...Y.values()].map(H=>{let Z=[...w.lineage,H.node.id],ue=ja(Z);return ue?{id:ue,lineage:Z,relation:H}:(g=!0,ae="limited",null)}).filter(H=>H!==null);ee.sort((H,Z)=>Number(f.has(Z.id))-Number(f.has(H.id))||e.read.compare(H.relation.node,Z.relation.node));let te=o-v.length-1-d.length;for(let H of ee){let Z=[...f].filter(ue=>ue!==w.id&&!b.has(ue)&&!d.some(fe=>fe.id===ue)&&!J.some(fe=>fe.id===ue)&&ue!==H.id).length;if(te<=0||!f.has(H.id)&&te<=Z){g=!0,ae="limited";continue}if(w.depth===0&&H.relation.role==="child"&&a.sides[H.id]===void 0){let ue=[...Y.keys()].flatMap(we=>{let Mt=ja([i,we]),je=Mt?a.sides[Mt]:void 0;return je===-1||je===1?[je]:[]}),fe=ue.filter(we=>we===-1).length<ue.filter(we=>we===1).length?-1:1,wt=ir({...a,sides:{...a.sides,[H.id]:fe}});if(!wt){g=!0,ae="limited";continue}a=wt}J.push(H),te--}J.sort((H,Z)=>e.read.compare(H.relation.node,Z.relation.node))}let C={parent:w.parent,depth:w.depth,side:w.side,expanded:ie,canExpand:W,reference:E,status:ae},P=w.depth===0||w.side===-1?"left":"right";v.push({id:w.id,nodeId:N,areaId:w.areaId,representation:"thought",role:w.relation?.role,relation:w.relation,branch:C,ports:w.depth===0?{top:"parent",bottom:"child",left:"left"}:w.side===1?{left:"parent",bottom:"child",right:"left"}:{left:"left",bottom:"child",right:"parent"},peerPort:{side:P,count:new Set(I.items.filter(Y=>["left","right","previous","next"].includes(Y.role)).map(Y=>Y.node.id)).size,complete:L.complete&&I.coverage!=="unavailable"&&!I.truncated&&!E},...!ie&&!E&&w.parent?{groupingPartition:JSON.stringify([w.parent,w.side])}:{}}),w.parent&&w.relation&&m.push({id:w.id,kind:"semantic",source:w.parent,target:w.id,sourceNode:w.lineage[w.lineage.length-2],targetNode:N,relation:w.relation,sourcePort:w.relation.role==="child"?"bottom":w.relation.role==="parent"?"top":w.side===1?"right":"left",targetPort:w.parent==="root"&&w.relation.role==="parent"?"bottom":w.side===1?"left":"right"});let O=0;for(let Y of J){let ee=Y.relation.role==="parent"&&t.parentColumns>1&&O++%t.parentColumns===0?-1:1,te=w.depth?w.side:Y.relation.role==="parent"?ee:Y.relation.role!=="child"||t.arrangement==="left"?-1:t.arrangement==="right"?1:a.sides[Y.id],H=w.depth?w.areaId:Y.relation.role==="parent"?"parent":Y.relation.role==="child"?te===-1?"child-left":"child-right":"left";d.push({...Y,parent:w.id,depth:w.depth+1,side:te,areaId:H})}}if(!e.read.isCurrent())return null;g||=d.length>0;let T=JSON.stringify(a)===JSON.stringify(n)?void 0:a;return{attention:e.attention,layoutRoot:i,root:"root",entry:"root",frame:"root",occurrences:v,edges:m,truncated:g,coverage:e.read.coverage,preparation:{parents:[...S]},stateSuggestion:T}}function dM(e){if(e.length>2048)throw new Error("Invalid measured area size");let t=new Set,n=[];for(let i of e){if(typeof i.id!="string"||!i.id||t.has(i.id)||!Number.isFinite(i.width)||i.width<=0||!Number.isFinite(i.height)||i.height<=0)throw new Error("Invalid measured area item");let l=i.insets?.top??0,a=i.insets?.right??0,o=i.insets?.bottom??0,r=i.insets?.left??0;for(let u of[l,a,o,r])if(!Number.isFinite(u)||u<0||u>1e5)throw new Error("Invalid measured area inset");t.add(i.id),n.push({item:i,top:l,right:a,bottom:o,left:r,width:i.width+r+a,height:i.height+l+o})}return n}function mM(e,t){let n=Array(t).fill(0);for(let i=0;i<e.length;i++)n[i%t]=Math.max(n[i%t],e[i].width);return n}function Yv(e,t,n,i,l=24,a=42,o=16){if(!Number.isInteger(t)||t<1||t>32||e.length>2048||![n,i,l,a,o].every(v=>Number.isFinite(v)&&v>=0))throw new Error("Invalid area grid policy");if(!e.length)return{positions:new Map,width:0,height:0};let r=dM(e),u=Math.min(t,e.length),c=mM(r,u),f=Array(Math.ceil(e.length/u)).fill(0);for(let v=0;v<r.length;v++)f[Math.floor(v/u)]=Math.max(f[Math.floor(v/u)],r[v].height);let p=[],s=[],h=l,S=a;for(let v of c)p.push(h+v/2),h+=v+n;for(let v of f)s.push(S+v/2),S+=v+i;let b=new Map;for(let v=0;v<r.length;v++){let m=r[v];b.set(m.item.id,{x:p[v%u]+(m.left-m.right)/2,y:s[Math.floor(v/u)]+(m.top-m.bottom)/2,width:m.item.width,height:m.item.height})}return{positions:b,width:h-n+l,height:S-i+o}}function qv(e,t,n,i={}){let l=n.horizontalSpacing/n.horizontalDensity,a=n.verticalSpacing/n.verticalDensity,o=e.entry,r=e.occurrences.filter(C=>!C.section),u=e.occurrences.filter(C=>C.section),c=new Map(t.map(C=>[C.id,C])),f=(C,P)=>C?c.get(C)?.controlReserve?.[P]??0:0;if(r.length>ht.occurrences||new Set(r.map(C=>C.id)).size!==r.length)throw new Error("Invalid hierarchy identity");let p=new Map;for(let C of r){let P=c.get(C.id);if(!P||![P.width,P.height].every(ee=>Number.isFinite(ee)&&ee>0)||!C.branch)throw new Error("Invalid measured hierarchy");if(P.controlReserve&&![P.controlReserve.right,P.controlReserve.bottom].every(ee=>Number.isFinite(ee)&&ee>=0&&ee<=64))throw new Error("Invalid measured control reserve");if(C.id===o){if(C.branch.parent)throw new Error("Root cannot have a parent");continue}let O=C.branch.parent;if(!O||!c.has(O))throw new Error("Missing hierarchy parent");let Y=p.get(O)??[];Y.push(C),p.set(O,Y)}let s=new Map,h=new Set,S=(C,P)=>{let O=s.get(C);if(O!==void 0)return O;if(P>ht.depth||h.has(C))throw new Error("Invalid hierarchy ancestry");h.add(C);let Y=p.get(C)??[],ee=Y.reduce((H,Z)=>H+S(Z.id,P+1),0)+Math.max(0,Y.length-1)*a,te=Math.max(c.get(C).height+f(C,"bottom"),ee);return h.delete(C),s.set(C,te),te};for(let C of r)S(C.id,0);let b=c.get(o);if(!b)throw new Error("Missing hierarchy root");let v=new Map([[o,{x:0,y:0,width:b.width,height:b.height}]]),m=(C,P,O,Y)=>{let ee=C.reduce((H,Z)=>H+s.get(Z.id),0)+Math.max(0,C.length-1)*a,te=P.y+f(Y,"bottom")/2-ee/2;for(let H of C){let Z=c.get(H.id),ue=s.get(H.id),fe={width:Z.width,height:Z.height,x:P.x+O*(P.width/2+l+Z.width/2+f(O===1?Y:H.id,"right")),y:te+ue/2-f(H.id,"bottom")/2};if(v.has(H.id))throw new Error("Repeated hierarchy parent");v.set(H.id,fe),m(p.get(H.id)??[],fe,O,H.id),te+=ue+a}},d=p.get(o)??[],g=d.filter(C=>C.role==="parent"),x=d.filter(C=>C.role!=="parent"),M=C=>c.get(C).width+f(C,"right")+(p.get(C)?.length??0?l+Math.max(...p.get(C).map(P=>M(P.id))):0),T=g.filter(C=>C.branch.side===-1),w=g.filter(C=>C.branch.side===1),N=n.parentColumns,V=[];for(;T.length||w.length;)for(let C=0;C<N;C++)V.push(N>1&&C===0?T.shift():w.shift()??(N===1?T.shift():void 0));let E=Yv(V.map((C,P)=>C?{id:C.id,width:M(C.id),height:s.get(C.id)}:{id:`empty-parent-cell-${P}`,width:1,height:1}),n.parentColumns,l,a),k=u.map(C=>{let P=c.get(C.id);if(!P)throw new Error("Missing measured section");return P}),L=Math.max(b.width+f(o,"right")*2,E.width,...k.map(C=>C.width)),_=Math.max(140,Math.min(800,i.parentHeight??300)),q=Math.max(_,E.height),W={x:-L/2,y:-b.height/2-a-q,width:L,height:q};if(!Number.isFinite(q))throw new Error("Invalid parent area height");for(let C of g){let P=E.positions.get(C.id),O=c.get(C.id),Y=N===1?1:C.branch.side,ee={x:W.x+(L-E.width)/2+P.x+Y*(-P.width/2+O.width/2)-(Y===-1?f(C.id,"right"):0),y:W.y+q-E.height+P.y-f(C.id,"bottom")/2,width:O.width,height:O.height};v.set(C.id,ee),m(p.get(C.id)??[],ee,Y,C.id)}let ie={...v.get(o),width:L};for(let C of[-1,1]){let P=x.filter(O=>O.branch?.side===C);m([...P.filter(O=>O.role!=="child"),...P.filter(O=>O.role==="child")],ie,C)}if(v.size!==r.length)throw new Error("Disconnected hierarchy");let I=b.height/2+f(o,"bottom")+Math.min(24,a);for(let C of k)v.set(C.id,{x:0,y:I+C.height/2,width:C.width,height:C.height}),I+=C.height+Math.min(24,a);let ae=[{id:"parent",labelKey:"graph.zoneParents",bounds:{...W,height:q},resizeEdge:"top",heightPreference:{key:"parentHeight",minimum:140,maximum:800,value:_},dropRole:"parent",viewport:{...W,height:q,contentTop:W.y,contentHeight:q,initialScrollTop:0,scrollable:!1},reflow:{columns:n.parentColumns,columnGap:l,rowGap:a,filterLayout:"keep"}}],J=Math.min(8,a/4,l/4);for(let[C,P]of[["child-left","child"],["child-right","child"],["left","left"]]){let O=r.filter(te=>te.areaId===C).map(te=>{let H=v.get(te.id),Z=f(te.id,"right"),ue=f(te.id,"bottom");return{...H,x:H.x+Z/2,y:H.y+ue/2,width:H.width+Z,height:H.height+ue}});if(!O.length)continue;let Y=Math.min(...O.map(te=>te.x-te.width/2))-J,ee=Math.min(...O.map(te=>te.y-te.height/2))-J;ae.push({id:C,labelKey:P==="child"?"graph.zoneChildren":"graph.zoneFriendsChallengers",dropRole:P,bounds:{x:Y,y:ee,width:Math.max(...O.map(te=>te.x+te.width/2))+J-Y,height:Math.max(...O.map(te=>te.y+te.height/2))+J-ee}})}return{positions:v,areas:ae}}function hM(e){if(!e.documentId||typeof e.path!="string"||!e.path||!e.revision||e.revision.length>256||e.rows.length>256||e.provenance.length>4096||e.visible.length>e.rows.length)return!1;let t=new Map(e.rows.map(n=>[n.id,n]));if(t.size!==e.rows.length||new Set(e.visible).size!==e.visible.length||e.visible.some(n=>!t.has(n)))return!1;for(let n of e.rows)if(!n.id||n.id.length>4096||typeof n.label!="string"||n.label.length>4096||!Number.isInteger(n.level)||n.level<1||n.level>6||!Number.isInteger(n.line)||n.line<1||!Number.isInteger(n.start)||!Number.isInteger(n.end)||n.start<0||n.end<n.start||n.parent!==null&&(!t.has(n.parent)||t.get(n.parent).level>=n.level)||new Set(n.children).size!==n.children.length||n.children.some(i=>t.get(i)?.parent!==n.id)||n.parent&&!t.get(n.parent).children.includes(n.id))return!1;return e.provenance.every(n=>(n.sectionId===null||t.has(n.sectionId))&&!!n.target&&["parent","child","left","right","previous","next","sibling"].includes(n.role))}function pM(e,t,n){let i=e.provenance.filter(c=>c.target===t&&c.role===n);if(!i.length||i.some(c=>c.sectionId===null))return null;let l=new Map(e.rows.map(c=>[c.id,c])),a=new Set(e.visible),o=c=>{let f=[];for(let p=0;c&&p<256;p++)a.has(c)&&f.push(c),c=l.get(c)?.parent??"";return f},r=i.map(c=>o(c.sectionId)),u=r[0].find(c=>r.every(f=>f.includes(c)));return u?{documentId:e.documentId,revision:e.revision,sectionId:u}:null}function jv(e,t,n){let i=e.occurrences.find(r=>r.id===(e.root??e.entry));if(!i?.nodeId||i.nodeId!==t.documentId||!hM(t)||!Number.isInteger(n)||n<e.occurrences.length||n>2048)throw new Error("Invalid central section projection");let l=new Set(t.visible),a=t.rows.filter(r=>l.has(r.id)),o=a.slice(0,n-e.occurrences.length).map(r=>({id:JSON.stringify(["section",r.id]),nodeId:t.documentId,representation:"thought",ports:{},section:{documentId:t.documentId,revision:t.revision,sectionId:r.id}}));return{...e,occurrences:[...e.occurrences,...o],truncated:e.truncated||o.length<a.length,edges:e.edges.map(r=>{if(r.kind!=="semantic"||r.source!==i.id)return r;let u=pM(t,r.targetNode,r.relation.role);return u?{...r,sourceSection:u}:r})}}var Xv={id:"mindmap",version:1,labelKey:"view.mindmap",icon:"network",navigation:"rooted",navigationEntry:"attention",editorHosting:"occurrence",capabilities:{sections:!0,descendants:!1,editor:!0,compact:!1},sectionSource:"layout-root",defaultState:Fd,hierarchy:{maximumScopes:ht.scopes,maximumDepth:ht.depth,primary:"center",controls:"measured",relations:"child-and-peer",reduce:yc},configuration:hc,restoreState:nl,project(e){let t=Gv(e);return t&&e.sections?.status==="available"?jv(t,e.sections.snapshot,Math.min(2048,e.maximum*8+1)):t},layout(e,t,n,i,l){let a=pc(l?.configuration);if(!a)throw new Error("Mind Map configuration unavailable");return qv(e,t,a,l?.areaHeights)}};var gM={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},Sm={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function Kv(e){return e==="left"||e==="right"||e==="sibling"}function Zv(e,t,n=!0,i="compass",l,a=!1,o){let{read:r}=e,u=e.manifest?.appearance,c=u?.flip??!1,f={...gM,...u?.geometry,flipEastWest:c};o!==void 0&&(f.childColumns=Math.min(f.childColumns,o)),e.manifest&&(f.siblingMaxHeight+=72);let p={baseFontSize:u?.typography?.baseFontSize??Sm.baseFontSize,wrapNodeLabels:u?.typography?.wrapNodeLabels??Sm.wrapNodeLabels,propertyFontSize:u?.typography?.propertyFontSize??Sm.propertyFontSize},s=Lc(c),h=i==="mindmap",S=h?Xv:Uv,b=S.project({attention:t,read:r,maximum:u?.maximum??100,...h?{layoutRoot:t,state:l}:{state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:c}}}});if(!b)throw new Error("Publication attention is unavailable");let v=b.occurrences.map(E=>{let k=E.nodeId&&r.node(E.nodeId);if(!k)throw new Error("Publication occurrence is unavailable");let L=E.id===b.entry,_=E.role==="sibling",q=_?Oc(f):1,W=e.published.get(k.id),ie=W?.roleStyles,I=E.relation?.relationType===2?ie?.inferred:void 0,ae=L?ie?.center:_?ie?.sibling:void 0,J={...W?.style,...I,...ae},C=ae?.fontSize??I?.fontSize??W?.style?.fontSize??(L?30:_?15:20),P=ae?.gateRadius??I?.gateRadius??W?.style?.gateRadius??5,O=ar(C*q,L,p.baseFontSize)*(_&&e.manifest?.7:1),Y=d0(k.name,C,p,L,k.maxLabelLength);J.icon!=null&&(Y.width+=L?22:17);let ee=m0(Y,q,C*q,p);return{occurrence:E,node:k,center:L,fontSize:O,style:J,gateSize:c0({gateRadius:P*q}),measurement:{id:E.id,...ee,expandedWidth:ee.width,expandedReserve:0,mini:null,envelope:null,controlReserve:E.branch?.canExpand?{right:0,bottom:23}:void 0}}}),m=S.layout(b,v.map(E=>E.measurement),{...f,alignSiblingsToFirstParent:!!e.manifest},!1),d=[],g=!1;if(a){let E=new Map;for(let{node:L,occurrence:_,center:q}of v){if(!h&&q)continue;let W=E.get(L.id)??[];W.push({...m.positions.get(_.id),node:L.id,occurrence:_}),E.set(L.id,W)}let k=b.edges.flatMap(L=>L.kind==="semantic"?[[L.sourceNode,L.targetNode]]:[]);g=Vv(E,k,function*(L){for(let _ of Qd)yield*r.relations(L.node,_).items},L=>L.node.id,(L,_)=>kv(h?L.occurrence.ports:s,L.occurrence.peerPort?.side,_),({source:L,target:_,sourcePort:q,targetPort:W},ie)=>{d.push({id:JSON.stringify(["cross",L.occurrence.id,_.occurrence.id]),kind:"semantic",source:L.occurrence.id,target:_.occurrence.id,sourceNode:L.node,targetNode:_.node,sourcePort:q,targetPort:W,relation:ie})})}let x=[...b.edges,...d],M=new Map;if(h){let E=(k,L)=>{let _=M.get(k)??new Map;_.set(L,(_.get(L)??0)+1),M.set(k,_)};for(let k of x)E(k.source,k.sourcePort),E(k.target,k.targetPort)}let T=new Map;if(!h)for(let{id:E,viewport:k}of m.areas)k&&Kv(E)&&T.set(E,k);let w=v.map(({occurrence:E,node:k,center:L,fontSize:_,gateSize:q,style:W})=>{let ie=E.areaId==="right"&&f.lateralArrangement==="left"?"left":E.areaId;return{id:E.id,node:k,center:L,fontSize:_,gateSize:q,style:W,role:E.role??"center",bounds:m.positions.get(E.id),branch:E.branch,strip:Kv(ie)&&T.has(ie)?ie:void 0,gates:h?[...M.get(E.id)??[]].map(([I,ae])=>({side:I,count:ae})):Object.keys(s).map(I=>{let ae=s[I],J=ae==="left"?"previous":ae==="right"?"next":null,C=r.relations(k.id,ae).items,P=J?new Set([...C,...r.relations(k.id,J).items].map(O=>O.node.id)).size:C.length;return{side:I,count:P}})}}),N=new Map(w.map(E=>[E.id,E])),V=x.map((E,k)=>{let L=N.get(E.source),_=N.get(E.target),q=gm(Cc(L.bounds,E.sourcePort,L.gateSize),Cc(_.bounds,E.targetPort,_.gateSize),E.sourcePort,E.targetPort,"bezier"),W=E.kind==="semantic"?E.relation.direction:null,ie=E.kind==="semantic"?e.linkStyle(E.sourceNode,E.targetNode,E.relation.role):void 0,I=E.kind==="semantic"?E.relation.definition??null:null;return{id:E.id,source:E.source,target:E.target,route:q,label:I,labelSize:ie?.labelSize,labelColor:ie?.labelColor,crossLink:k>=b.edges.length,sourcePort:E.sourcePort,targetPort:E.targetPort,stroke:ie?.stroke,strokeWidth:ie?.width,startHead:ie?.startHead??(ie?.arrowStart??(W===2||W===3)?"arrow":void 0),endHead:ie?.endHead??(ie?.arrowEnd??(W===1||W===3)?"arrow":void 0)}});return{cards:w,cardById:N,edges:V,strips:T,wrap:p.wrapNodeLabels,truncated:b.truncated||g,projection:b}}function _c(e,t,n){if(!t.strip)return t.bounds;let i=e.strips.get(t.strip);return{...t.bounds,y:t.bounds.y+i.y-i.contentTop-(n[t.strip]??i.initialScrollTop)}}function Qv(e,t,n,i){let l=Cc(_c(e,t,i),n,t.gateSize);if(!t.strip)return l;let{y:a,height:o}=e.strips.get(t.strip);return l.y>=a&&l.y<=a+o?l:null}function Iv(e,t,n){let i=e.cardById.get(t.source),l=e.cardById.get(t.target);if(!i.strip&&!l.strip)return t.route;let a=Qv(e,i,t.sourcePort,n),o=Qv(e,l,t.targetPort,n);return a&&o?gm(a,o,t.sourcePort,t.targetPort,"bezier"):null}function Hc(e,t){if(!/^(?:\d+(?:\.\d*)?|\.\d+)%?$/.test(e))return null;let n=Number(e.replace(/%$/,"")),i=e.endsWith("%")?100:t;return n>=0&&n<=i?n/i*t:null}function Uc(e){if(typeof e!="string"||e.length>180)return null;let t=e.trim();if(t.toLowerCase()==="transparent")return{red:0,green:0,blue:0,alpha:0};if(/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t)){let f=t.slice(1);return f.length<=4&&(f=[...f].map(p=>p+p).join("")),{red:parseInt(f.slice(0,2),16),green:parseInt(f.slice(2,4),16),blue:parseInt(f.slice(4,6),16),alpha:f.length===8?parseInt(f.slice(6),16)/255:1}}let n=/^rgba?\(\s*([^()]*)\s*\)$/i.exec(t);if(!n)return null;let i=n[1].trim(),l=i.includes(","),a=l?i.split(",").map(f=>f.trim()):i.split(/\s*\/\s*|\s+/);if(a.length<3||a.length>4||l&&i.includes("/")||!l&&a.length===4&&!i.includes("/"))return null;let o=Hc(a[0],255),r=Hc(a[1],255),u=Hc(a[2],255),c=a.length===4?Hc(a[3],1):1;return o===null||r===null||u===null||c===null?null:{red:o,green:r,blue:u,alpha:c}}function wm(e,t){let n=e.alpha+t.alpha*(1-e.alpha);if(n===0)return{red:0,green:0,blue:0,alpha:0};let i=(l,a)=>(l*e.alpha+a*t.alpha*(1-e.alpha))/n;return{red:i(e.red,t.red),green:i(e.green,t.green),blue:i(e.blue,t.blue),alpha:n}}function xm(e){let t=Math.max(0,Math.min(1,e/255));return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Jv(e,t){if(t.alpha<1||![e.red,e.green,e.blue,e.alpha,t.red,t.green,t.blue,t.alpha].every(Number.isFinite))return null;let n=wm(e,t),i=o=>.2126*xm(o.red)+.7152*xm(o.green)+.0722*xm(o.blue),l=i(n),a=i(t);return(Math.max(l,a)+.05)/(Math.min(l,a)+.05)}var yM=new Map([...["background-primary","background-secondary","background-modifier-border","background-modifier-hover","text-normal","text-muted","text-faint","interactive-accent","interactive-normal","interactive-hover","text-on-accent","kplex-publication-panel","kplex-publication-link","kplex-publication-canvas","link-color","link-color-hover","link-external-color","code-background","code-normal","blockquote-border-color","blockquote-color","table-border-color","table-header-background","text-highlight-bg","color-red","color-green","color-orange","color-blue","color-cyan","color-purple"].map(e=>[e,"color"]),...["font-interface","font-text","font-monospace","inline-title-font"].map(e=>[e,"font"]),...["font-ui-medium","font-text-size","p-spacing","heading-spacing","inline-title-size","input-radius","button-radius","callout-radius"].map(e=>[e,"length"]),["line-height-normal","line-height"],["inline-title-weight","weight"],["inline-title-color","color"],...[1,2,3,4,5,6].flatMap(e=>[["h"+e+"-color","color"],["h"+e+"-size","length"],["h"+e+"-weight","weight"],["h"+e+"-font","font"],["h"+e+"-line-height","line-height"],["h"+e+"-style","font-style"]])]),bM=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),vM=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function SM(e){let t=e.split(",");if(!t.length||t.length>10)return;let n=[];for(let i of t){let l=i.trim(),a=/^(['"])(.*?)\1$/u.exec(l),o=a?.[2]??l;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(o)&&o!=="-apple-system"||vM.has(o.toLowerCase()))return;n.push(!a&&bM.has(o.toLowerCase())?o.toLowerCase():JSON.stringify(o))}return n.join(", ")}function Fv(e){if(e==="0")return e;let t=/^(\d{1,3}(?:\.\d{1,4})?|\.\d{1,4})(px|rem|em)$/.exec(e);if(!t)return;let n=Number(t[1]),i=t[2];return n<=(i==="px"?160:8)?String(n)+i:void 0}function $v(e,t){let n=t.trim();if(!(!n||n.length>320))switch(yM.get(e)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return SM(n);case"length":return Fv(n);case"line-height":return/^(?:[1-3](?:\.\d{1,4})?|0\.[5-9]\d{0,3}|4(?:\.0{1,4})?)$/.test(n)?String(Number(n)):Fv(n);case"weight":return n==="normal"||n==="bold"||/^(?:[1-9]\d{0,2}|1000)$/.test(n)?n:void 0;case"font-style":return/^(?:normal|italic|oblique)$/.test(n)?n:void 0;default:return}}var Mm=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function Wv(e){if(!e.length||e.length>16*1024)throw new Error("Unsupported publication theme");let t={},n=new Set,i=0;for(;i<e.length;){Mm.lastIndex=i;let l=Mm.exec(e);if(!l)throw new Error("Unsupported publication theme");i=Mm.lastIndex;let a=(l[1]??l[3]).split(";").map(u=>u.trim()).filter(Boolean),o=a.filter(u=>u.startsWith("color-scheme"));if(o.length){let u=/^color-scheme\s*:\s*(light|dark)$/.exec(o[0])?.[1];if(!u||o.length!==1||l[2]||n.has("author"))throw new Error("Unsupported publication mode");t.colorScheme=u}let r=o.length?"author":l[2]??"light";if(n.has(r))throw new Error("Duplicate publication theme mode");n.add(r);for(let u of a){if(u===o[0])continue;let c=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(u),f=c&&$v(c[1],c[2]);if(!c||f===void 0||f===null)throw new Error("Unsupported publication theme token");t["--kplex-published-"+r+"-"+c[1]]=f}}return t}function e1(e,t){let n=`--kplex-published-${t}-`,i=`--kplex-published-${t==="dark"?"light":"dark"}-`,l=e??{},a=Uc(l[n+"text-normal"]),o=Uc(l[n+"background-secondary"]??l[n+"background-primary"]),r={colorScheme:t};for(let[u,c]of Object.entries(l)){if(!u.startsWith(n)||typeof c!="string")continue;let f=u.slice(n.length);if(a&&(f==="interactive-normal"||f==="interactive-hover")&&c===l[i+f]){let p=Uc(c),s=p&&Jv(a,o?wm(p,o):p);if(s!==null&&s<3)continue}r["--kplex-published-author-"+f]=c}return r}var G=X(me(),1),t1={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},Em={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"},xM={left:z.friends,right:z.challengers,sibling:z.siblings},Tm=[["light",il.light,"sun"],["dark",il.dark,"moon"],["system",il.auto,"sun-moon"]],wM=[["right",z.sidecarRight],["left",z.sidecarLeft],["bottom",z.sidecarBottom]],MM={right:"panel-right",left:"panel-left",bottom:"panel-bottom"},n1=600,i1={};function Nm(e,t){let n=t.ownerDocument.defaultView?.Element;return!!(n&&e.target instanceof n&&e.target.closest(kl))}function l1(e,t){return t?{x:(e.x+t.x)/2,y:(e.y+t.y)/2,distance:Math.max(1,Math.hypot(e.x-t.x,e.y-t.y))}:{...e,distance:1}}function a1({publication:e,markerPrefix:t,resources:n,browser:i}){let l=(0,F.useRef)(null),a=(0,F.useRef)(null),o=(0,F.useRef)(null),r=j0(a,o),u=O0(e,i,r.capture),c=u.attention.id,f={...qd,crosslinks:e.manifest?.appearance?.showCrossLinks??qd.crosslinks,...e.manifest?.canvasDefaults,...u.attention.canvas},{view:p,siblings:s,crosslinks:h,ontology:S,sidecar:b}=f,[v,m]=(0,F.useState)(),[d,g]=(0,F.useState)(null),x=(0,F.useRef)(null),[M,T]=(0,F.useState)(),[w,N]=(0,F.useState)(!0),V=w?f.dock:"bottom",E=(0,F.useMemo)(()=>Zv(e,c,s,p,v,h,M),[e,c,s,p,v,h,M]),k=p==="mindmap"?z.mindMap:z.view,L=E.cards.find(y=>y.center),[_,q]=(0,F.useState)(),W=_?.attention===c?_.offsets:i1,ie=(0,F.useRef)(null),I=(0,F.useRef)(null),ae=(0,F.useRef)({x:0,y:0,scale:1}),J=(0,F.useRef)(!1),C=(0,F.useRef)({points:new Map,origin:null,moved:!1}),P=(0,F.useRef)(!1),O=(0,F.useId)(),Y=(0,F.useRef)(null),[ee,te]=(0,F.useState)(0),[H,Z]=(0,F.useState)(null),[ue,fe]=(0,F.useState)(null),[wt,we]=(0,F.useState)(null),[Mt,je]=(0,F.useState)(!1),Rn=(0,F.useRef)(()=>{}),et=(0,F.useRef)(null),[Et,pn]=(0,F.useState)(),[Dt,wi]=(0,F.useState)(!1),[Fn,rl]=(0,F.useState)("light"),he=e.manifest?.colorMode,tt=e.manifest?.pins,Lt=Et?.colorScheme==="dark"?"dark":Et?.colorScheme==="light"?"light":void 0,Te=he==="both"?f.theme:he??Lt??"system",Cn=Te==="system"?Fn:Te,[,An,$n]=Tm.find(([y])=>y===Te),Yt=()=>u.changeCanvas({sidecar:!b}),ul=(0,F.useMemo)(()=>E.edges.flatMap(y=>{let A=Iv(E,y,W);return A?[{edge:y,route:A}]:[]}),[E,W]),Wn=new Set,zn=new Set;if(d)for(let{edge:y}of ul)(y.source===d.occurrence&&(!d.port||y.sourcePort===d.port)||y.target===d.occurrence&&(!d.port||y.targetPort===d.port))&&(Wn.add(y.id),zn.add(y.source),zn.add(y.target));let Pe=y=>y?" is-highlighted":Wn.size?" is-dimmed":"";(0,F.useLayoutEffect)(()=>{let y=l.current,A=a.current,B=y?.ownerDocument.defaultView;if(!y||!A||!B)return;let K=()=>{let j=A.clientWidth;N(y.clientWidth>=Ev),T(j<360?1:j<n1?2:j<880?3:void 0)},re=new B.ResizeObserver(K);return re.observe(y),re.observe(A),K(),()=>re.disconnect()},[]),(0,F.useLayoutEffect)(()=>{let y=a.current,A=y?.ownerDocument.defaultView;if(!y||!A)return;let B=new bc(A,!0,g);x.current=B;let K=u0(y,B);return()=>{x.current=null,K()}},[]),(0,F.useLayoutEffect)(()=>{x.current?.clear()},[E]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView;if(!Mt||!y)return;let A=y.setTimeout(()=>je(!1),3500);return()=>y.clearTimeout(A)},[Mt]),Rn.current=y=>{if(y.defaultPrevented||y.isComposing||y.ctrlKey||y.metaKey)return;if(n&&y.key===nr.key&&!y.altKey&&!y.shiftKey){y.preventDefault(),y.repeat||te(B=>B+1);return}let A=y.target;!y.altKey||A?.isContentEditable||A?.closest?.("input,textarea,select")||(n&&y.shiftKey&&(y.code==="KeyS"||y.key.toLowerCase()==="s")?(y.preventDefault(),y.repeat||Yt()):!y.shiftKey&&(y.key==="ArrowLeft"||y.key==="ArrowRight")&&(y.preventDefault(),y.repeat||u.move(y.key==="ArrowLeft"?-1:1)))},(0,F.useEffect)(()=>{if(!i)return;let y=A=>Rn.current(A);return i.addEventListener("keydown",y),()=>i.removeEventListener("keydown",y)},[i]),(0,F.useLayoutEffect)(()=>{let y=et.current;y&&(y.scrollLeft=y.scrollWidth)},[u.visits]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!y)return;let A=()=>rl(y.matches?"dark":"light");return A(),y.addEventListener("change",A),()=>y.removeEventListener("change",A)},[]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView;if(!y||!n?.has(Kd))return;let A=new y.AbortController,B=A.signal;return n.text(Kd,B).then(K=>{B.aborted||pn(Wv(K))}).catch(()=>{B.aborted||wi(!0)}),()=>A.abort()},[n]);function ei(y){ae.current=y,ie.current&&(ie.current.style.transform=`translate(${y.x}px, ${y.y}px) scale(${y.scale})`)}function Mi(){let y=a.current;if(!y)return;let A=1/0,B=-1/0,K=1/0,re=-1/0,j=(Le,jt,Xt,ii)=>{A=Math.min(A,Le),B=Math.max(B,Le+Xt),K=Math.min(K,jt),re=Math.max(re,jt+ii)};for(let{bounds:Le,strip:jt}of E.cards)jt||j(Le.x-Le.width/2,Le.y-Le.height/2,Le.width,Le.height);for(let{x:Le,y:jt,width:Xt,height:ii}of E.strips.values())j(Le,jt,Xt,ii);if(J.current=!1,y.clientWidth<n1){let Le=I.current?I.current.offsetHeight+10:0,jt=y.clientWidth-32,Xt=y.clientHeight-32-Le,ii=B-A,$a=re-K,Ei=Math.max(.25,Math.min(1,jt/ii,Xt/$a)),xr=ii*Ei<=jt?(A+B)/2:L.bounds.x,c1=$a*Ei<=Xt?(K+re)/2:L.bounds.y;ei({x:-xr*Ei,y:-c1*Ei-Le/2,scale:Ei});return}let _e=Math.max(L.bounds.x-A,B-L.bounds.x),pt=Math.max(L.bounds.y-K,re-L.bounds.y),Xe=Math.max(.25,Math.min(1,(y.clientWidth/2-22)/_e,(y.clientHeight/2-22)/pt));ei({x:-L.bounds.x*Xe,y:-L.bounds.y*Xe,scale:Xe})}function Xa(y,A,B){r.cancel(),x.current?.clear();let{x:K,y:re,scale:j}=ae.current,_e=Math.max(.25,Math.min(3,j*B));J.current=!0,ei({x:A.x-(y.x-K)*_e/j,y:A.y-(y.y-re)*_e/j,scale:_e})}function U(y){Xa({x:0,y:0},{x:0,y:0},y)}function le(y,A,B){let K=y.getBoundingClientRect();return{x:A-K.left-K.width/2,y:B-K.top-K.height/2}}(0,F.useLayoutEffect)(()=>{let y=a.current;if(!y)return;Mi(),r.play(c,ae.current.scale),P.current&&(y.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),P.current=!1);let A=re=>{if(Nm(re,y))return;re.preventDefault();let j=le(y,re.clientX,re.clientY),_e=re.deltaY*(re.deltaMode===1?16:re.deltaMode===2?y.clientHeight:1);Xa(j,j,Math.exp(-Math.max(-200,Math.min(200,_e))/350))},B=y.ownerDocument.defaultView,K=B?new B.ResizeObserver(()=>{J.current||Mi()}):null;return K?.observe(y),y.addEventListener("wheel",A,{passive:!1}),()=>{K?.disconnect(),y.removeEventListener("wheel",A)}},[e,c,p,s,v,M]);function Ge(y,A){let B=e.published.get(y)?.url?{sidecar:!0}:void 0;u.activate({id:y,canvas:B})&&y!==c&&(P.current=A)}function gn(){u.changeCanvas({sidecar:!1}),Y.current?.focus()}function Tt(y){u.activate(y)}function ti(){let y=i?.location.href??(n&&new URL("index.html",n.siteURL).href);if(!y)throw new Error("Publication address unavailable");let A=new URL(y);return A.search="",A.hash="",A}function Ka(y,A){fe(null),we(null),je(!1),Z({id:y,anchor:A})}function cl(y,A){Z(null),we(null),x.current?.clear(),fe({anchor:y,point:A})}function ni(y,A,B=!1){return(0,G.jsxs)("nav",{className:`kplex-publication-trail ${B?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":A,children:[(0,G.jsx)("span",{children:A}),(0,G.jsx)("ol",{ref:B?et:void 0,children:y.map(K=>{let re=e.published.get(K.id),j=re?.style,_e=j?.icon??re?.trailIcon,pt=_e===void 0?void 0:e.manifest?.icons?.[_e];return(0,G.jsx)("li",{children:(0,G.jsxs)("a",{href:Ba(ti(),{...K,canvas:{...u.attention.canvas,...K.canvas}}).href,"aria-current":K.id===c?"location":void 0,style:{backgroundColor:j?.fill,color:j?.color,"--kplex-publication-trail-border":j?.stroke},onClick:Xe=>{Xe.altKey||Xe.ctrlKey||Xe.metaKey||Xe.shiftKey||(Xe.preventDefault(),Tt(K))},children:[pt&&(0,G.jsx)(fm,{icon:pt,size:12}),(0,G.jsx)("span",{children:e.nodes.get(K.id)?.name})]})},K.id)})})]})}function qt(y){if(!y.altKey){if(y.target===y.currentTarget&&(y.key==="ContextMenu"||y.shiftKey&&y.key==="F10")){y.preventDefault();let{left:A,top:B}=y.currentTarget.getBoundingClientRect();cl(y.currentTarget,{x:A+12,y:B+12});return}if(!(y.target.matches?.(kl)&&["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(y.key))){if(y.key==="Home"||y.key==="0")r.cancel(),Mi();else if(y.key==="+"||y.key==="=")U(1.25);else if(y.key==="-")U(.8);else if(Object.prototype.hasOwnProperty.call(t1,y.key)){let[A,B]=t1[y.key],K=Array.from(y.currentTarget.querySelectorAll("[data-publication-node]")),re=K.find(Le=>Le===y.target)?.dataset.publicationOccurrence,j=_c(E,re?E.cardById.get(re)??L:L,W),_e=-1,pt=1/0;for(let[Le,jt]of K.entries()){let Xt=_c(E,E.cardById.get(jt.dataset.publicationOccurrence),W),ii=Xt.x-j.x,$a=Xt.y-j.y,Ei=ii*A+$a*B,xr=Ei+2*Math.abs(ii*B-$a*A);Ei>0&&xr<pt&&(_e=Le,pt=xr)}let Xe=K[_e];Xe?.focus({preventScroll:!Xe.closest(kl)})}else return;y.preventDefault()}}}function Qa(y){let A=y.currentTarget.ownerDocument.defaultView?.Element;if(!A||!(y.target instanceof A)||C.current.points.size)return;let B=y.target.closest("[data-publication-occurrence]")?.getAttribute("data-publication-occurrence"),K=y.target.closest("[data-kplex-gate]")?.getAttribute("data-kplex-gate")??void 0;B?x.current?.enter({occurrence:B,port:K},y):x.current?.clear()}function hr(y){if(y.button!==0||(ue&&fe(null),H&&Z(null),Nm(y,y.currentTarget)))return;let A=C.current;if(A.points.size>=2)return;let B={...le(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};A.points.size===0&&(A.origin=B,A.moved=!1),A.points.set(y.pointerId,B)}function pr(y){let A=C.current;if(!A.points.has(y.pointerId))return;let[B,K]=A.points.values(),re=l1(B,K),j={...le(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};A.points.set(y.pointerId,j);let[_e,pt]=A.points.values(),Xe=l1(_e,pt);if(!(!A.moved&&!pt&&A.origin&&Math.hypot(j.x-A.origin.x,j.y-A.origin.y)<5)){if(A.moved)y.currentTarget.hasPointerCapture(y.pointerId)||y.currentTarget.setPointerCapture(y.pointerId);else{A.moved=!0;for(let Le of A.points.keys())y.currentTarget.setPointerCapture(Le)}Xa(re,Xe,Xe.distance/re.distance)}}function On(y){C.current.points.delete(y.pointerId)}let gr=e.body(c),Za=()=>u.changeCanvas({siblings:!s}),yr=(0,G.jsx)(vt,{icon:"network",label:z.showSiblings,"data-publication-siblings-toggle":!0,title:s?z.hideSiblings:z.showSiblings,"aria-pressed":s,onClick:Za}),Ia=(0,G.jsxs)(G.Fragment,{children:[p==="compass"&&yr,(0,G.jsx)(vt,{icon:"minus",label:z.zoomOut,onClick:()=>U(.8)}),(0,G.jsx)(vt,{icon:"plus",label:z.zoomIn,onClick:()=>U(1.25)}),(0,G.jsx)(vt,{icon:"maximize",label:z.fit,onClick:()=>{r.cancel(),Mi()}}),(0,G.jsx)(vt,{icon:"ellipsis",label:z.graphOptions,"aria-haspopup":"menu","aria-expanded":!!ue,onClick:y=>cl(y.currentTarget)})]});function br(y,A){let B=A?{...y.bounds,x:y.bounds.x-A.x,y:y.bounds.y-A.contentTop}:y.bounds,K=e.manifest?.icons,re=y.style?.icon!=null?K?.[y.style.icon]:void 0;return(0,G.jsxs)(F.Fragment,{children:[(0,G.jsxs)(y0,{bounds:B,semanticRole:y.role,className:Pe(zn.has(y.id)).trim(),"data-publication-node":y.node.id,"data-publication-occurrence":y.id,"data-publication-center":y.center||void 0,role:"button",tabIndex:0,"aria-label":y.node.name,"aria-current":y.center||void 0,style:{fontSize:y.fontSize,backgroundColor:y.style?.fill,borderColor:y.style?.stroke,color:y.style?.color,"--kplex-gate-size":`${y.gateSize}px`,"--kplex-gate-fill":y.style?.gate},onClick:j=>Ge(y.node.id,j.detail===0),onContextMenu:j=>{n&&(j.preventDefault(),Ka(y.node.id,j.currentTarget))},onKeyDown:j=>{n&&(j.key==="ContextMenu"||j.shiftKey&&j.key==="F10")?(j.preventDefault(),Ka(y.node.id,j.currentTarget)):(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),Ge(y.node.id,!0))},children:[(0,G.jsxs)(v0,{wrap:E.wrap,children:[re&&(0,G.jsx)(fm,{icon:re,size:y.center?18:y.role==="sibling"?9:13,className:"kplex-publication-node-icon"}),(0,G.jsx)(b0,{label:y.node.name,maximum:y.node.maxLabelLength,center:y.center})]}),y.gates.map(({side:j,count:_e})=>(0,G.jsx)(S0,{side:j,connected:_e>0,count:_e?String(_e):null,highlighted:Wn.size>0&&d?.occurrence===y.id&&d.port===j,"aria-hidden":"true"},j))]}),y.branch?.canExpand&&(0,G.jsx)("button",{type:"button",className:"kplex-publication-branch","aria-expanded":y.branch.expanded,"aria-label":`${y.branch.expanded?z.collapseBranch:z.expandBranch} · ${y.node.name}`,style:{left:B.x+16,top:B.y+B.height/2+3},onClick:()=>m(j=>yc(j,E.projection,{kind:"toggle",occurrenceId:y.id})??j),children:y.branch.expanded?"−":"+"})]},`${y.id}:${y.node.id}`)}let vr=(0,G.jsxs)("div",{ref:a,className:"kplex-publication-viewport",role:"group","aria-label":k,tabIndex:0,onKeyDown:qt,onPointerOver:Qa,onPointerDown:hr,onPointerMove:pr,onPointerUp:On,onPointerCancel:On,onLostPointerCapture:On,onContextMenu:y=>{y.defaultPrevented||(y.preventDefault(),cl(y.currentTarget,{x:y.clientX,y:y.clientY}))},onPointerLeave:y=>{x.current?.clear(),y.currentTarget.hasPointerCapture(y.pointerId)||On(y)},onClickCapture:y=>{y.detail&&C.current.moved&&!Nm(y,y.currentTarget)&&(y.stopPropagation(),C.current.moved=!1)},children:[(0,G.jsxs)("div",{className:"kplex-camera",ref:ie,children:[(0,G.jsxs)("svg",{className:"kplex-links",width:"3200",height:"2400",viewBox:"-1600 -1200 3200 2400","aria-hidden":"true",children:[(0,G.jsx)(M0,{prefix:t}),ul.map(({edge:y,route:A})=>{let{id:B,source:K,target:re,label:j,stroke:_e,strokeWidth:pt,startHead:Xe,endHead:Le}=y;return(0,G.jsxs)("g",{className:`kplex-edge${Pe(Wn.has(B))}`,"data-publication-source":K,"data-publication-target":re,"data-publication-crosslink":y.crossLink||void 0,children:[(0,G.jsx)(x0,{d:A.d,stroke:_e??"var(--kplex-publication-link)",strokeWidth:pt??1.2,markerStart:tm(Xe,t),markerEnd:tm(Le,t)}),S&&(0,G.jsx)(w0,{label:j,midpoint:A.midpoint,fontSize:y.labelSize,color:y.labelColor??"var(--text-muted)",background:"var(--background-primary)"})]},B)})]}),(0,G.jsx)("div",{className:"kplex-nodes",children:E.cards.map(y=>y.strip?null:br(y))}),[...E.strips].map(([y,A])=>(0,G.jsx)(Y0,{id:y,panel:A,start:W[y]??A.initialScrollTop,label:y==="left"&&e.manifest?.appearance?.geometry?.lateralArrangement==="left"?z.lateral:xM[y],onScroll:B=>q(K=>{let re=K?.attention===c?K.offsets:i1;return re[y]===B?K:{attention:c,offsets:{...re,[y]:B}}}),children:E.cards.map(B=>B.strip===y?br(B,A):null)},JSON.stringify([c,y])))]}),(0,G.jsx)("div",{className:"kplex-publication-exits",ref:o,"aria-hidden":"true"})]}),Ja=H?T0(e,H.id):void 0,Fa=H&&{id:H.id,canvas:{...f,theme:Te}},Sr=he==="both"?e1(Et,Cn):he?{...Et,colorScheme:Cn}:Et;return(0,G.jsxs)("main",{ref:l,className:`kplex-publication${n?" kplex-publication-production":""}`,style:Sr,onKeyDown:i?void 0:y=>Rn.current(y.nativeEvent),children:[(0,G.jsxs)("header",{className:"kplex-publication-header",children:[(0,G.jsxs)("div",{className:"kplex-publication-heading",children:[(0,G.jsx)(P0,{}),(0,G.jsx)("h1",{children:e.title})]}),(0,G.jsxs)("div",{className:"kplex-publication-controls",children:[(0,G.jsx)(vt,{icon:"arrow-left",label:z.back,onClick:()=>u.move(-1),disabled:!u.canGoBack,"aria-keyshortcuts":Em.back,title:z.backTooltip}),(0,G.jsx)(vt,{icon:"arrow-right",label:z.forward,onClick:()=>u.move(1),disabled:!u.canGoForward,"aria-keyshortcuts":Em.forward,title:z.forwardTooltip}),n?(0,G.jsx)(vt,{ref:Y,icon:MM[V],label:b?z.hideSidecar:z.showSidecar,"aria-expanded":b,"aria-controls":`sidecar-${O}`,"aria-keyshortcuts":Em.sidecar,title:b?z.hideSidecarTooltip:z.showSidecarTooltip,onClick:Yt}):Ia,he==="both"&&(0,G.jsx)(vt,{icon:$n,label:il.trigger(An),"aria-haspopup":"menu","aria-expanded":!!wt,onClick:y=>{fe(null),Z(null),we(wt?null:y.currentTarget)}})]}),n&&(0,G.jsx)(nv,{publication:e,resources:n,page:ti,searchFocus:ee,onChoose:Tt}),n&&tt?.length?ni(tt.map(y=>({id:Mn(y)})),z.pins):null]}),n?(0,G.jsx)(Tv,{sidecarId:`sidecar-${O}`,sidecarOpen:b,dock:V,canDockLaterally:w,onDock:y=>u.changeCanvas({dock:y}),canvas:(0,G.jsxs)("div",{className:"kplex-publication-canvas",children:[vr,(0,G.jsx)("div",{ref:I,className:"kplex-publication-controls kplex-publication-camera-actions",children:Ia}),(0,G.jsxs)("div",{className:"kplex-publication-status","aria-live":"polite",children:[u.addressProblem&&(0,G.jsx)("p",{children:u.addressProblem==="ambiguous"?z.ambiguousAddress:z.nodeUnavailable}),E.truncated&&(0,G.jsx)("p",{children:z.sceneLimited}),Dt&&(0,G.jsx)("p",{children:z.themeUnavailable}),Mt&&(0,G.jsx)("p",{children:z.addressCopied})]})]}),renderSidecar:(y,A)=>(0,G.jsx)(wv,{publication:e,resources:n,id:`sidecar-${O}`,contentScope:`${t}-document`,location:u.attention,colorMode:Cn,onClose:gn,onNavigate:Tt,dock:y,onSwitchDock:A})}):(0,G.jsxs)(G.Fragment,{children:[vr,(0,G.jsxs)("section",{className:"kplex-publication-note","aria-labelledby":O,"aria-live":"polite",children:[(0,G.jsx)("h2",{id:O,children:L.node.name}),gr&&(0,G.jsx)("p",{children:gr})]})]}),n&&u.visits.length>1&&ni(u.visits,z.history,!0),wt&&(0,G.jsx)(ur,{anchor:wt,variant:"theme",onDismiss:()=>we(null),choices:Tm.map(([y,A,B])=>({label:A,icon:B,kind:"menuitemradio",checked:Te===y,select:()=>u.changeCanvas({theme:y})}))}),ue&&(0,G.jsx)(ur,{anchor:ue.anchor,point:ue.point,onDismiss:()=>fe(null),choices:[{label:z.view,kind:"menuitemradio",checked:p==="compass",select:()=>u.changeCanvas({view:"compass"})},{label:z.mindMap,kind:"menuitemradio",checked:p==="mindmap",select:()=>u.changeCanvas({view:"mindmap"})},{label:z.crossLinks,kind:"menuitemcheckbox",checked:h,select:()=>u.changeCanvas({crosslinks:!h})},...p==="compass"?[{label:z.showSiblings,kind:"menuitemcheckbox",checked:s,select:Za}]:[],{label:z.linkOntology,kind:"menuitemcheckbox",checked:S,select:()=>u.changeCanvas({ontology:!S})},...n?[{label:z.sidecar,choices:[{label:z.sidecarHide,kind:"menuitemradio",checked:!b,select:()=>u.changeCanvas({sidecar:!1})},...wM.filter(([y])=>w||y==="bottom").map(([y,A])=>({label:A,kind:"menuitemradio",checked:b&&V===y,select:()=>u.changeCanvas(w?{dock:y,sidecar:!0}:{sidecar:!0})}))]}]:[],...he==="both"?[{label:z.theme,choices:Tm.map(([y,A,B])=>({label:y==="system"?il.system:A,icon:B,kind:"menuitemradio",checked:Te===y,select:()=>u.changeCanvas({theme:y})}))}]:[],{label:z.about,choices:sm}]}),n&&H&&Fa&&(0,G.jsx)(H0,{anchor:H.anchor,address:Ba(ti(),Fa).href,shortAddress:Ja&&Ba(ti(),Fa,Ja).href,onDismiss:y=>{Z(null),y&&H.anchor.isConnected&&H.anchor.focus({preventScroll:!0})},onCopied:()=>je(!0)},H.id)]})}var u1=X(me(),1),Rm=new WeakSet,EM=0;function r1(e,t,n){return TM(e,t,n,!0)}function TM(e,t,n,i=!1,l){let a=e.ownerDocument.defaultView,o=new URL(n??"./publication.json",e.ownerDocument.baseURI),r=S=>{let b=N0(S);if(b.manifest&&(!a?.crypto.subtle||!l&&o.origin!==a.location.origin))throw new Error("Secure publication context unavailable");let v=b.manifest&&a?l?.(b.manifest)??vv(a,o,b.manifest):void 0;return{publication:b,resources:v}},u=r(t);if(Rm.has(e))throw new Error("A publication is already mounted in this element");let c=`kplex-publication-${++EM}`,f=(0,o1.createRoot)(e,{identifierPrefix:c});Rm.add(e);let p=0,s=!1,h=({publication:S,resources:b})=>{i&&(e.ownerDocument.title=S.title),f.render((0,u1.jsx)(a1,{publication:S,markerPrefix:c,resources:b,browser:i&&b&&a?a:void 0},p++))};return h(u),{update(S){if(s)throw new Error("Publication mount has been disposed");h(r(S))},dispose(){if(!s){s=!0;try{f.unmount()}finally{Rm.delete(e)}}}}}var Cm=document.querySelector("[data-kplex-demo]");if(Cm){{let e=Cm.ownerDocument,t=e.createElement("style");t.textContent=`@scope (.kplex-publication){.kplex-view-host,.kplex-view-host>div,.kplex-app{width:100%;height:100%;min-width:0;min-height:0}.kplex-canvas-usage-tips{position:absolute;z-index:4;top:32px;left:16px;right:16px;color:var(--text-muted);font-size:calc(var(--font-ui-smaller) - 1px);text-align:center;pointer-events:none;overflow-wrap:anywhere}.kplex-canvas-usage-tips.is-contextual{color:var(--text-normal)}.kplex-app{position:relative;color:var(--kplex-text, var(--text-normal));background:var(--kplex-panel, var(--background-primary));font-family:var(--font-interface);overflow:hidden}.kplex-main-column{height:100%;display:grid;grid-template-rows:46px minmax(0,1fr) 40px}.kplex-topbar{position:relative;z-index:30;display:flex;align-items:center;gap:7px;padding:0 10px;background:var(--kplex-panel-2, var(--background-secondary));border-bottom:1px solid var(--kplex-line, var(--background-modifier-border));box-shadow:var(--shadow-s)}.kplex-brand{display:flex;align-items:center;gap:7px;margin-right:4px;letter-spacing:.01em;white-space:nowrap}.kplex-index-status{position:relative;min-height:9px;max-height:9px;min-width:9px;max-width:9px;flex:0 0 9px;padding:0;border-radius:50%;border:1px solid var(--background-modifier-border);cursor:pointer}.kplex-index-activities{white-space:pre-line}.kplex-index-status:before{content:"";position:absolute;inset:-8px;border-radius:50%}.kplex-topbar button.kplex-index-status,.kplex-index-status-empty button.kplex-index-status{width:9px;height:9px;min-width:9px;padding:0;border:1px solid var(--background-modifier-border);border-radius:50%}.kplex-index-status:focus-visible{outline:2px solid var(--interactive-accent);outline-offset:4px}.kplex-index-status.is-ready,.kplex-topbar button.kplex-index-status.is-ready{background:var(--color-green);box-shadow:var(--shadow-s)}.kplex-index-status.is-updating,.kplex-topbar button.kplex-index-status.is-updating{background:var(--color-red);box-shadow:var(--shadow-s);animation:kplex-index-status-blink 1s ease-in-out infinite}.kplex-index-status.is-paused,.kplex-topbar button.kplex-index-status.is-paused{animation:none}.kplex-index-status-empty{position:absolute;top:18px;left:18px}@keyframes kplex-index-status-blink{0%,to{opacity:1}50%{opacity:.25}}@media (prefers-reduced-motion: reduce){.kplex-index-status.is-updating,.kplex-topbar button.kplex-index-status.is-updating{animation:none}}.kplex-info-bubble{z-index:1000;display:flex;flex-direction:column;box-sizing:border-box;padding:12px;color:var(--text-normal);background:var(--background-primary);border:1px solid var(--background-modifier-border);border-radius:var(--radius-m);box-shadow:var(--shadow-s)}.kplex-info-bubble-content{min-height:0;overflow:auto;overflow-wrap:anywhere}.kplex-info-bubble-pointer{position:absolute;top:-6px;left:10px;width:10px;height:10px;pointer-events:none;background:var(--background-primary);border-top:1px solid var(--background-modifier-border);border-left:1px solid var(--background-modifier-border);transform:rotate(45deg)}.kplex-info-bubble-message{font-size:var(--font-ui-small);line-height:1.4}.kplex-info-bubble-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:10px}.kplex-brand-mark{color:var(--interactive-accent);font-size:20px;text-shadow:none}.kplex-topbar button,.kplex-find button,button.kplex-footprints-trigger,button.kplex-layout-toggle,button.kplex-zone-filter-button,.kplex-sidecar-controls button,button.kplex-sidecar-unfold-plex,.kplex-central-editor-toolbar button,.kplex-zoom-controls button,.kplex-wander-controls button{color:var(--kplex-text, var(--text-normal));background:var(--kplex-control-bg, var(--interactive-normal));border:1px solid var(--kplex-control-border, var(--background-modifier-border));border-radius:7px;height:28px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;box-shadow:none;cursor:pointer}.kplex-topbar button:hover,.kplex-find button:hover,button.kplex-footprints-trigger:hover,button.kplex-layout-toggle:hover,button.kplex-zone-filter-button:hover,.kplex-sidecar-controls button:hover,button.kplex-sidecar-unfold-plex:hover,.kplex-central-editor-toolbar button:hover,.kplex-zoom-controls button:hover,.kplex-wander-controls button:hover{background:var(--kplex-control-hover, var(--interactive-hover))}.kplex-topbar button:disabled{opacity:.28;cursor:default}.kplex-topbar .kplex-action-button{color:var(--kplex-action-fg, var(--text-normal));background:var(--kplex-action-bg, var(--interactive-normal));border-color:var(--kplex-action-border, var(--background-modifier-border))}.kplex-topbar .kplex-action-button:hover{background:var(--kplex-action-bg-hover, var(--interactive-hover))}.kplex-topbar .kplex-action-button:disabled{opacity:var(--kplex-action-disabled-opacity, var(--disabled-opacity, .5))}.kplex-topbar .kplex-action-button:focus-visible{outline:2px solid var(--kplex-action-focus, var(--interactive-accent));outline-offset:2px}.kplex-view-host .kplex-icon-button{width:30px;padding:0;font-size:17px}.kplex-top-actions{display:flex;align-items:center;gap:5px;margin-left:auto}.kplex-top-actions .kplex-auto-open{width:32px;padding:0}.kplex-search-shell{position:relative;flex:1;max-width:520px;min-width:100px}.kplex-search-icon{position:absolute;left:10px;top:5px;color:var(--kplex-muted, var(--text-muted));font-size:18px;pointer-events:none}.kplex-view-host .kplex-search{width:100%;height:30px;padding:0 12px 0 33px;color:var(--kplex-text, var(--text-normal));background:var(--background-secondary);border:1px solid var(--background-modifier-border);border-radius:8px;box-shadow:var(--shadow-s)}.kplex-view-host .kplex-search:focus{border-color:var(--interactive-accent);box-shadow:0 0 0 1px var(--interactive-accent)}.kplex-search-results{position:absolute;z-index:60;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;border:1px solid var(--background-modifier-border);background:var(--background-secondary);border-radius:9px;box-shadow:var(--shadow-s);padding:6px}.kplex-search-results .kplex-search-result{width:100%;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:18px;text-align:left;border:0;color:var(--kplex-text, var(--text-normal));background:transparent;border-radius:6px;padding:8px 10px;cursor:pointer;height:auto;box-shadow:none}.kplex-search-results .kplex-search-result:hover{background:var(--background-modifier-hover)}.kplex-search-results .kplex-search-result+.kplex-search-result{border-top:1px solid var(--background-modifier-border-faint)}.kplex-search-result.has-prefix{grid-template-columns:16px minmax(0,.9fr) minmax(0,1.1fr);gap:10px}.kplex-search-result-prefix{display:inline-flex;align-items:center;justify-content:center;color:var(--text-muted)}.kplex-search-result>span,.kplex-search-result small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-search-result small{color:var(--kplex-muted, var(--text-muted));text-align:right}.kplex-create-folder-row{display:flex;align-items:center;gap:8px;min-width:0}.kplex-create-folder-caption{color:var(--text-muted);font-size:var(--font-ui-small);flex:none}.kplex-create-folder-row .kplex-folder-path-input{flex:1;min-width:0}.kplex-materialize-folder-input{width:100%;min-width:0}.kplex-materialize-folder-input .kplex-folder-path-input{width:100%;max-width:none;min-width:0}.kplex-materialize-folder-row{gap:8px}.kplex-materialize-folder-row .setting-item-info{flex:none;margin:0}.kplex-materialize-folder-row .setting-item-name{color:var(--text-muted);font-size:var(--font-ui-small)}.kplex-materialize-folder-row .setting-item-control{flex:1;min-width:0}.kplex-folder-path-results .kplex-search-result{display:block;height:auto}.kplex-folder-path-results .kplex-search-result>span{display:block;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:break-word}.kplex-workspace{min-height:0;display:flex}.kplex-graph-area{position:relative;min-width:0;min-height:0;flex:1;overflow:hidden}.kplex-plex{position:absolute;inset:0;overflow:clip;user-select:none;cursor:grab}.kplex-plex:active{cursor:grabbing}.kplex-plex:after{content:"";position:absolute;inset:0;pointer-events:none;background:none}.kplex-camera{position:absolute;width:0;height:0;transform-origin:0 0}.kplex-camera.is-camera-moving{will-change:transform}.kplex-links{position:absolute;left:-1600px;top:-1200px;overflow:visible;pointer-events:none;z-index:4}.kplex-nodes{position:absolute;left:0;top:0;z-index:8}.kplex-edge{transition:opacity .11s ease,filter .11s ease}.kplex-edge-visible{pointer-events:none;filter:none;transition:opacity .11s ease,filter .11s ease}.kplex-edge-hit{pointer-events:stroke;cursor:pointer}.kplex-edge.is-hover-peek .kplex-edge-hit{pointer-events:none}.kplex-edge.is-highlighted .kplex-edge-visible{filter:none}.kplex-edge.is-dimmed,.kplex-expanded-connector.is-dimmed{opacity:.16}.kplex-edge-label{pointer-events:none;paint-order:stroke;stroke:var(--kplex-link-label-background, var(--background-primary));stroke-width:3px;stroke-linejoin:round}.kplex-zone-label{position:absolute;z-index:3;pointer-events:none;font-size:9px;letter-spacing:.18em;color:var(--text-faint);font-weight:700}.zone-parent{top:12px;left:50%;transform:translate(-50%)}.zone-child{bottom:12px;left:50%;transform:translate(-50%)}.zone-left{top:50%;left:10px;transform:translateY(-50%) rotate(-90deg);transform-origin:left top}.zone-right{top:50%;right:10px;transform:translateY(-50%) rotate(90deg);transform-origin:right top}.kplex-thought{position:absolute;z-index:10;display:flex;align-items:center;justify-content:center;gap:6px;padding:4px 10px;box-sizing:border-box;text-align:center;line-height:1.2;box-shadow:var(--kplex-node-shadow, var(--shadow-s));cursor:pointer;transition:filter .11s ease,box-shadow .11s ease,opacity .11s ease}.kplex-thought:hover{filter:brightness(1.12);z-index:12}.kplex-thought.is-highlighted{filter:brightness(1.22);box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s);z-index:13}.kplex-thought.is-dimmed{opacity:.24;filter:saturate(.55) brightness(.72)}.kplex-thought.is-selected{box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s)}.kplex-keyboard-announcement,.kplex-accessible-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.kplex-hotkey-setting .setting-item-control{flex-wrap:wrap}.kplex-thought.is-selected.is-highlighted{box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s)}.kplex-role-center{font-weight:650;z-index:14;padding:8px 13px}.kplex-role-sibling{opacity:.86}.kplex-role-sibling.is-dimmed{opacity:.22}.kplex-thought-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-plex .kplex-thought>.kplex-thought-corner-action,.kplex-plex .kplex-thought>.kplex-section-fold-handle{box-sizing:border-box;appearance:none;-webkit-appearance:none;padding:0;margin:0}.kplex-thought-corner-action{position:absolute;z-index:22;top:-6px;right:-6px;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;min-width:16px;min-height:16px;max-width:16px;max-height:16px;padding:0;border:1px solid transparent;border-radius:4px;color:var(--kplex-muted, var(--text-muted));background:var(--background-secondary);cursor:pointer;opacity:.76}.kplex-thought-corner-action:hover,.kplex-thought-corner-action:focus-visible{color:var(--kplex-text, var(--text-normal));border-color:var(--kplex-line, var(--background-modifier-border));background:var(--background-modifier-hover);opacity:1}.kplex-thought-corner-action:focus-visible{outline:1px solid var(--kplex-accent, var(--interactive-accent));outline-offset:1px}.kplex-count{display:inline-flex;flex:0 0 auto;min-width:17px;height:17px;align-items:center;justify-content:center;border-radius:9px;font-size:9px;color:var(--text-muted);background:var(--background-secondary);border:1px solid var(--background-modifier-border)}.kplex-role-center .kplex-count{min-width:19px;height:19px;border-radius:10px;font-size:10px}.kplex-gate-wrap{position:absolute;z-index:18;width:var(--kplex-gate-size, 8px);height:var(--kplex-gate-size, 8px);pointer-events:none}.gate-wrap-top{top:calc(-1 * var(--kplex-gate-size, 8px) - 3px);left:50%;transform:translate(-50%)}.gate-wrap-bottom{bottom:calc(-1 * var(--kplex-gate-size, 8px) - 3px);left:50%;transform:translate(-50%)}.gate-wrap-left{left:calc(-1 * var(--kplex-gate-size, 8px) - 3px);top:50%;transform:translateY(-50%)}.gate-wrap-right{right:calc(-1 * var(--kplex-gate-size, 8px) - 3px);top:50%;transform:translateY(-50%)}.kplex-gate{position:relative;display:block;width:100%;height:100%;box-sizing:border-box;border-radius:50%;background:transparent;border:1.25px solid var(--kplex-gate-stroke, var(--background-modifier-border));opacity:.82;box-shadow:var(--shadow-s);pointer-events:auto;cursor:crosshair;transition:opacity .1s ease,box-shadow .1s ease,background .1s ease}.kplex-gate:after{content:"";position:absolute;inset:-5px;border-radius:50%}.kplex-gate.has-connections{background:var(--kplex-gate-fill, var(--interactive-accent))}.kplex-gate.is-empty{background:transparent}.kplex-gate.is-link-disabled{cursor:default;opacity:.56}.kplex-gate.is-link-disabled:after{display:none}.kplex-gate:hover,.kplex-gate.is-highlighted{opacity:1;box-shadow:0 0 0 2px var(--interactive-accent)}.kplex-gate-count{position:absolute;z-index:20;pointer-events:none;min-width:12px;color:var(--text-normal);font-size:8px;font-weight:650;line-height:1;text-shadow:none}.gate-wrap-top .kplex-gate-count,.gate-wrap-bottom .kplex-gate-count{left:calc(100% + 4px);top:50%;transform:translateY(-50%);text-align:left}.gate-wrap-left .kplex-gate-count{right:calc(100% + 4px);top:50%;transform:translateY(-50%);text-align:right}.gate-wrap-right .kplex-gate-count{left:calc(100% + 4px);top:50%;transform:translateY(-50%);text-align:left}.kplex-sibling-scroll{position:absolute;z-index:16;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-bg) transparent;overscroll-behavior:contain;border-radius:10px;background:transparent}.kplex-sibling-scroll::-webkit-scrollbar{width:7px}.kplex-sibling-scroll::-webkit-scrollbar-track{background:transparent}.kplex-sibling-scroll::-webkit-scrollbar-thumb{background:var(--background-modifier-hover);border-radius:8px}.kplex-sibling-content{position:relative;width:100%;min-height:100%}.kplex-zoom-controls{position:absolute;z-index:20;right:12px;bottom:clamp(0px,calc(100% - 42px),12px);display:flex;gap:5px}.kplex-zoom-controls button,button.kplex-layout-toggle,button.kplex-zone-filter-button,.kplex-sidecar-controls button,button.kplex-sidecar-unfold-plex,.kplex-central-editor-toolbar button,.kplex-find button{width:30px;padding:0}.kplex-history-bar{z-index:30;display:flex;align-items:center;gap:9px;padding:0 9px;background:var(--background-secondary);border-top:1px solid var(--background-modifier-border);overflow:hidden}.kplex-history-label{flex:0 0 auto;font-size:8px;font-weight:700;letter-spacing:.13em;color:var(--text-muted)}.kplex-history-list{min-width:0;display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;user-select:none}.kplex-history-list.is-mouse-scrolling,.kplex-history-list.is-mouse-scrolling button,.kplex-pinned-bar.is-mouse-scrolling,.kplex-pinned-bar.is-mouse-scrolling button{cursor:grabbing}.kplex-history-list::-webkit-scrollbar,.kplex-pinned-bar::-webkit-scrollbar{display:none}.kplex-history-list,.kplex-pinned-bar{touch-action:pan-x pinch-zoom;overscroll-behavior-x:contain}.kplex-history-list button{flex:0 0 auto;width:180px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;justify-content:flex-start;color:var(--text-normal);border:1px solid var(--background-modifier-border);border-radius:6px;background:var(--background-primary);padding:5px 9px;cursor:pointer;font-size:11px}.kplex-history-list button{display:flex;align-items:center;gap:5px}.kplex-history-list button>.kplex-icon,.kplex-pinned-open>.kplex-icon{flex:0 0 auto}.kplex-action-picker-row{display:flex;align-items:center;gap:8px}.kplex-action-picker-row .suggestion-icon{flex:0 0 auto;display:flex}.kplex-action-picker-row .suggestion-content{min-width:0}.kplex-history-text{flex:1 1 auto;min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;line-height:1.15}.kplex-main-column.is-two-line-history{grid-template-rows:auto minmax(0,1fr) 52px}.kplex-main-column.is-two-line-history .kplex-history-list button{height:40px}.kplex-main-column.is-two-line-history .kplex-history-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow-wrap:break-word;max-height:2.3em}.kplex-history-list button:hover{box-shadow:inset 0 0 0 1px var(--background-modifier-border-hover)}.kplex-history-list button.is-active{outline:1px solid var(--interactive-accent);outline-offset:-2px}.kplex-empty{display:grid;place-items:center;color:var(--text-muted)}@media (max-width: 900px){.kplex-brand strong{display:none}}.kplex-settings .setting-item-control textarea{width:100%;min-width:min(420px,52vw);max-width:780px;resize:vertical}@media (max-width: 900px){.kplex-settings .setting-item-control textarea{min-width:0;width:100%;max-width:none}}.kplex-icon{display:inline-flex;align-items:center;justify-content:center;line-height:0;flex:0 0 auto}.kplex-icon svg{display:block;stroke:currentColor}.kplex-brand-mark{color:var(--interactive-accent);filter:none}.kplex-index-background .kplex-icon.kplex-brand-mark{opacity:.5}.kplex-node-icon{opacity:.88;margin-right:4px}.kplex-thought-label{display:inline-flex;align-items:center;justify-content:center;min-width:0}.kplex-thought-label>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-thought-text{padding:.2em 0;box-sizing:content-box}.kplex-thought-caption{display:flex;flex-direction:column;min-width:0;width:100%;gap:4px}.kplex-thought-caption>.kplex-thought-label{flex-shrink:0}.kplex-node-properties{display:flex;flex-direction:column;min-width:0;font-size:var(--kplex-node-property-font-size, 12px);line-height:1.4;font-weight:400;text-align:start}.kplex-node-property{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden;white-space:nowrap}.kplex-node-property-icon{flex:0 0 1em;width:1em;height:1em;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}.kplex-node-property-icon svg{width:1em;height:1em}.kplex-node-property-label{flex:1 1 0;min-width:0;max-width:max-content;overflow:hidden;text-overflow:ellipsis;color:var(--text-muted)}.kplex-node-property-value{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.kplex-property-measurement{position:absolute;left:-100000px;top:0;visibility:hidden;pointer-events:none;width:max-content;max-width:none;height:auto;transform:none;transition:none;box-shadow:none}.kplex-node-details-editor{min-width:0}.kplex-node-detail-group{padding:8px 0;margin-block-end:16px;border-block-end:1px solid var(--background-modifier-border)}.kplex-node-detail-row .setting-item-control{display:flex;flex-wrap:wrap;gap:8px;width:100%}.kplex-node-detail-row .setting-item-control input[type=text]{flex:1 1 140px;min-width:0}.kplex-node-details-preview{padding:16px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-m);margin-block:16px}.kplex-note-type-review-group{margin-block-end:16px}.kplex-note-type-change-preview{white-space:pre-wrap;overflow-wrap:anywhere}@media (max-width: 480px){.kplex-node-detail-row .setting-item-control input[type=text]{flex-basis:100%}}.kplex-thought.is-dragging{cursor:grabbing;z-index:28;filter:brightness(1.16);box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s)}.kplex-role-parent,.kplex-role-child,.kplex-role-left,.kplex-role-right,.kplex-role-previous,.kplex-role-next{cursor:grab}.kplex-topbar{overflow:visible}.kplex-top-actions{min-width:0;max-width:58%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:2px 0}.kplex-top-actions::-webkit-scrollbar{display:none}.kplex-view-host .kplex-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px}.kplex-toolbar-divider{width:1px;height:20px;flex:0 0 1px;margin:0 2px;background:var(--background-modifier-hover)}.kplex-search-icon{display:flex;align-items:center;top:7px}.kplex-drag-connector{pointer-events:none;stroke:var(--interactive-accent);stroke-width:2.2px;stroke-dasharray:5 4;filter:none}.kplex-relation-actions button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:28px;padding:0;color:var(--text-normal);border:1px solid var(--background-modifier-border, var(--background-modifier-border));border-radius:6px;background:var(--background-secondary, var(--background-modifier-hover));cursor:pointer}.kplex-relation-label{display:block;margin:9px 0 5px;color:var(--text-muted);font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.06em}.kplex-relation-search-wrap{display:flex;align-items:center;gap:7px;padding:0 8px;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-secondary)}.kplex-relation-modal .kplex-relation-search-wrap input{width:100%;height:30px;padding:0;border:0;box-shadow:none;background:transparent}.kplex-relation-results{max-height:210px;overflow-y:auto;margin-top:6px;padding:3px;border-radius:7px;background:var(--background-secondary-alt, var(--background-secondary))}.kplex-relation-results button{width:100%;display:grid;grid-template-columns:18px minmax(80px,1fr) minmax(80px,.9fr);align-items:center;gap:6px;min-height:30px;padding:4px 7px;text-align:left;border:0;border-radius:5px;color:var(--text-normal);background:transparent;cursor:pointer}.kplex-relation-results button:hover,.kplex-relation-results button.is-selected{background:var(--background-modifier-hover, var(--background-modifier-hover))}.kplex-relation-results button.is-selected{box-shadow:inset 2px 0 0 var(--interactive-accent)}.kplex-relation-file-name,.kplex-relation-results small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-relation-results small{color:var(--text-muted);text-align:right}.kplex-relation-empty{padding:10px 8px;color:var(--text-muted);font-size:11px}.kplex-relation-hint{margin-top:8px;padding:7px 8px;color:var(--text-muted);background:var(--background-secondary);border-radius:6px;font-size:10px;line-height:1.35}.kplex-relation-summary{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border-radius:7px;background:var(--background-secondary)}.kplex-relation-summary>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-relation-direction{flex:0 0 auto;padding:2px 6px;color:var(--text-accent);border:1px solid var(--background-modifier-border);border-radius:10px;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.kplex-relation-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:10px}.modal.kplex-style-editor-modal{width:min(560px,calc(100vw - 32px));max-width:calc(100vw - 20px);box-sizing:border-box}.modal.kplex-style-editor-modal .modal-content{min-width:0;overflow-x:hidden}.kplex-style-editor>p{margin:0 0 var(--kplex-form-gap, var(--size-4-4))}.kplex-style-form,.kplex-style-row{min-width:0}.kplex-style-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;flex-wrap:wrap}.kplex-style-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.kplex-style-form input.is-invalid{border-color:var(--text-error)}.kplex-input-suggestion-line{display:flex;align-items:center;gap:7px;min-width:0}.kplex-input-suggestion-line .kplex-lucide{flex:0 0 auto;width:16px;height:16px;color:var(--text-muted)}.kplex-input-suggestion-line span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 520px){.kplex-style-actions button{flex:1 1 auto}}.kplex-main-column{grid-template-rows:auto minmax(0,1fr) 40px}.kplex-topbar{min-height:46px;height:auto;padding:6px 10px;flex-wrap:wrap;align-content:center;overflow:visible}.kplex-search-shell{flex:1 1 100px;max-width:560px}.kplex-top-actions{flex:0 0 auto;min-width:0;max-width:none;margin-left:auto;padding:0;overflow:visible;flex-wrap:wrap;justify-content:flex-end}.kplex-toolbar-divider{align-self:center}.kplex-area-frame{position:absolute;z-index:14;box-sizing:border-box;pointer-events:none;border:1px dashed var(--background-modifier-border-hover);border-radius:10px;opacity:.58;transition:opacity 90ms ease,border-color 90ms ease}.kplex-area-frame.is-settings-mode{border-color:var(--background-modifier-border-focus);opacity:.78}.kplex-area-frame.is-active{border-style:solid;border-color:var(--interactive-accent);opacity:.82}.kplex-area-frame.is-resizing{opacity:1}.theme-dark .kplex-area-frame:not(.is-active){border-color:var(--text-muted);opacity:.85}.kplex-area-frame.is-settings-mode:after,.kplex-area-frame.is-active:after{content:"";position:absolute;left:12px;right:12px;height:5px;border-radius:5px;background:var(--interactive-accent);opacity:.82}.kplex-area-frame.is-active:after,.kplex-area-frame.is-resizing:after{opacity:1}.kplex-area-frame.is-edge-top:after{top:-1px}.kplex-area-frame.is-edge-bottom:after{bottom:-1px}.kplex-area-keyboard-handle{position:absolute;left:12px;right:12px;height:5px;pointer-events:auto;cursor:ns-resize}.is-edge-top>.kplex-area-keyboard-handle{top:-1px}.is-edge-bottom>.kplex-area-keyboard-handle{bottom:-1px}.kplex-area-keyboard-handle:focus-visible{outline:2px solid var(--text-accent)}.kplex-plex.is-area-resize-ready,.kplex-plex.is-area-resizing{cursor:ns-resize}.kplex-area-frame.is-no-height-resize:after{content:none}.kplex-area-frame.is-width-resizable.is-settings-mode:before,.kplex-area-frame.is-width-resizable.is-active:before{content:"";position:absolute;top:12px;bottom:12px;width:5px;border-radius:5px;background:var(--interactive-accent);opacity:.82}.kplex-area-frame.is-side-left:before{left:-1px}.kplex-area-frame.is-side-right:before{right:-1px}.kplex-area-keyboard-handle.is-width-handle{inset:12px auto;width:5px;height:auto;cursor:ew-resize}.kplex-area-keyboard-handle.is-width-handle.is-edge-left{left:-1px}.kplex-area-keyboard-handle.is-width-handle.is-edge-right{right:-1px}.kplex-plex.is-area-width-resize{cursor:ew-resize}.kplex-zone-panel{position:absolute;z-index:16;overflow:visible;border-radius:10px;background:transparent}.kplex-zone-panel:focus-within{z-index:17}.kplex-zone-fixed{position:absolute;inset:0;z-index:1;overflow:visible}.kplex-zone-scroll{position:absolute;inset:0;z-index:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-bg) transparent}.kplex-zone-scroll::-webkit-scrollbar{width:7px}.kplex-zone-scroll::-webkit-scrollbar-track{background:transparent}.kplex-zone-scroll::-webkit-scrollbar-thumb{background:var(--background-modifier-hover);border-radius:8px}.kplex-zone-content{position:relative;width:100%;min-height:100%}.kplex-zone-tools{position:absolute;z-index:34;bottom:calc(100% + 6px);right:0;display:flex;align-items:center;justify-content:flex-end;gap:4px;pointer-events:none}.kplex-zone-tools>*{pointer-events:auto}.kplex-view-host .kplex-zone-filter-input{box-sizing:border-box;width:150px;flex:0 0 150px;height:28px;padding:0 7px;font-size:10px;border:1px solid var(--background-modifier-border);border-radius:6px;box-shadow:var(--shadow-s)}.kplex-thought.is-connect-blocked{opacity:.18;filter:saturate(.45) brightness(.68)}.kplex-thought.is-connect-candidate{opacity:1}.kplex-thought.is-connect-candidate:hover{box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s)}.kplex-thought.is-connect-origin{opacity:1;filter:brightness(1.16);box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s)}.kplex-relation-modal{width:min(620px,calc(100vw - 48px));max-width:min(620px,calc(100vw - 48px))}.kplex-relation-modal-content{display:flex;flex-direction:column;min-height:0}.kplex-relation-modal .kplex-relation-results{max-height:min(38vh,340px);overflow-y:auto}.kplex-relation-modal .kplex-relation-actions{position:sticky;bottom:0;z-index:4;padding-top:10px;background:var(--background-primary)}.kplex-relation-modal .kplex-relation-actions button{width:34px;height:30px}.kplex-relation-modal select{width:100%}.kplex-ontology-fields>.setting-items{width:100%}.kplex-ontology-fields>.setting-items>.setting-item{display:grid;grid-template-columns:minmax(220px,1fr) minmax(420px,1.35fr);gap:32px;align-items:start;width:100%}.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-info,.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-control{min-width:0;width:100%;max-width:none;margin:0}.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-control{display:block;justify-self:stretch}.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-control textarea{display:block;box-sizing:border-box;width:100%;min-width:100%;max-width:100%;resize:vertical}.kplex-import-file-row{margin:10px 0 7px}.kplex-import-file-row input[type=file]{width:100%}.kplex-import-status{color:var(--text-muted);font-size:var(--font-ui-small)}@media (max-width: 900px){.kplex-ontology-fields>.setting-items>.setting-item{grid-template-columns:minmax(0,1fr);row-gap:8px}.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-info,.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-control,.kplex-ontology-fields>.setting-items>.setting-item>.setting-item-control textarea{min-width:0;width:100%;max-width:100%}}.kplex-edge-label{paint-order:normal;stroke:none;font-weight:600}.kplex-zone-filter-control{position:relative;display:inline-flex;align-items:center;justify-content:center}.kplex-zone-count{position:absolute;right:1px;top:-11px;z-index:2;min-width:13px;height:12px;padding:0 3px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;color:var(--text-muted);background:var(--background-secondary);border:1px solid var(--background-modifier-border);font-size:8px;line-height:1;font-weight:700;pointer-events:none}.kplex-layout-controls{position:absolute;left:16px;bottom:17px;z-index:34;display:flex;align-items:flex-end;gap:12px;padding:5px 7px 4px;border-radius:8px;background:var(--background-secondary);backdrop-filter:blur(2px)}@media (max-width: 760px){.kplex-layout-controls{left:8px;bottom:12px;gap:6px;padding:4px}}.kplex-thought{padding:3px 8px}.kplex-role-center{padding:7px 11px}.kplex-expanded-cluster{position:absolute;z-index:19;overflow:visible;pointer-events:auto}.kplex-expanded-scroll{position:absolute;inset:0;overflow:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-bg) transparent}.kplex-expanded-scroll.is-scrollable{overflow-y:auto;overflow-x:hidden}.kplex-expanded-scroll::-webkit-scrollbar{width:5px}.kplex-expanded-scroll::-webkit-scrollbar-track{background:transparent}.kplex-expanded-scroll::-webkit-scrollbar-thumb{background:var(--background-modifier-hover);border-radius:8px}.kplex-expanded-content{position:relative;width:100%}.kplex-expanded-mini-thought{position:absolute;z-index:20;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:3px;padding:1px 4px;overflow:visible;border:1px solid var(--background-modifier-border);border-radius:6px;color:var(--text-muted);font-size:8px;line-height:1;opacity:.7;box-shadow:var(--shadow-s);cursor:pointer;transition:opacity .1s ease,filter .1s ease}.kplex-expanded-mini-thought:hover{opacity:.92;filter:brightness(1.12)}.kplex-expanded-mini-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-expanded-mini-icon{flex:0 0 auto;opacity:.82}.kplex-expanded-mini-gate{position:absolute;left:50%;top:-3px;width:4px;height:4px;transform:translate(-50%,-50%);border:1px solid var(--background-modifier-border);border-radius:50%;background:var(--background-modifier-border);pointer-events:none}.kplex-expanded-edge{pointer-events:none;opacity:.52;filter:none}.kplex-role-parent,.kplex-role-child,.kplex-role-left,.kplex-role-right,.kplex-role-previous,.kplex-role-next,.kplex-role-sibling,.kplex-thought.is-structural-thought{cursor:pointer}.kplex-thought:hover{filter:none}.kplex-thought.is-highlighted:hover{filter:brightness(1.22)}.kplex-thought.is-dragging{cursor:grabbing}.kplex-layout-controls{gap:14px;padding:6px 9px 5px;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-secondary);box-shadow:var(--shadow-s)}.kplex-view-host .kplex-thought{padding:1px 8px}.kplex-view-host .kplex-role-center{padding:2px 10px}.kplex-layout-controls{left:14px;bottom:clamp(0px,calc(100% - 45px),15px);gap:8px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}.kplex-density-control{width:126px;padding:5px 7px 6px;display:grid;grid-template-rows:14px 12px;gap:2px;box-sizing:border-box;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-secondary);box-shadow:var(--shadow-s);color:var(--text-muted);cursor:default;user-select:none}.kplex-density-heading{display:grid;grid-template-columns:13px 1fr auto;align-items:center;gap:4px;min-width:0}.kplex-density-heading,.kplex-wrap-label-caption{font-size:7px;line-height:1;letter-spacing:.055em;text-transform:uppercase}.kplex-density-heading svg{opacity:.7}.kplex-density-heading output{min-width:24px;text-align:right;color:var(--text-muted);font-variant-numeric:tabular-nums;letter-spacing:0;text-transform:none}.kplex-density-rail{position:relative;align-self:center;display:block;width:100%;height:12px}.kplex-density-rail:before{content:"";position:absolute;left:1px;right:1px;top:5px;height:1px;border-radius:999px;background:var(--background-modifier-border)}.kplex-density-rail.is-stepped:after{content:"";position:absolute;left:1px;right:1px;top:3px;height:5px;opacity:.28;background:repeating-linear-gradient(to right,transparent 0 calc(14.285% - 1px),var(--background-modifier-border) calc(14.285% - 1px) 14.285%);pointer-events:none}.kplex-density-fill{position:absolute;left:1px;top:5px;height:1px;border-radius:999px;background:var(--interactive-accent);pointer-events:none}.kplex-view-host .kplex-density-rail input[type=range]{-webkit-appearance:none;appearance:none;position:absolute;inset:0;width:100%;height:12px;min-height:12px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;outline:none;cursor:ew-resize}.kplex-view-host .kplex-density-rail input[type=range]::-webkit-slider-runnable-track{height:12px;border:0;background:transparent;box-shadow:none}.kplex-view-host .kplex-density-rail input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:8px;height:8px;min-width:8px;min-height:8px;margin-top:2px;padding:0;border:1px solid var(--background-modifier-border);border-radius:50%;background:var(--interactive-accent);box-shadow:var(--shadow-s)}.kplex-view-host .kplex-density-rail input[type=range]::-moz-range-track{height:12px;border:0;background:transparent}.kplex-view-host .kplex-density-rail input[type=range]::-moz-range-progress{background:transparent}.kplex-view-host .kplex-density-rail input[type=range]::-moz-range-thumb{width:8px;height:8px;border:1px solid var(--background-modifier-border);border-radius:50%;background:var(--interactive-accent);box-shadow:var(--shadow-s)}.kplex-top-stack{position:relative;z-index:30;min-width:0;background:var(--background-secondary);border-bottom:1px solid var(--kplex-line, var(--background-modifier-border))}.kplex-top-stack .kplex-topbar{border-bottom:0;box-shadow:none}.kplex-pinned-row{display:flex;min-width:0;align-items:center;background:var(--background-secondary)}.kplex-pin-tools{display:flex;flex:0 0 auto;gap:2px;padding:2px 2px 6px 8px}.kplex-pin-tools .kplex-icon-button{width:28px;height:28px}.kplex-calendar-modal{width:360px;max-width:calc(100vw - 24px)}.kplex-calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.kplex-calendar-heading>span{font-weight:600;text-align:center}.kplex-calendar-weekdays,.kplex-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.kplex-calendar-weekdays{color:var(--text-muted);text-align:center;font-size:var(--font-ui-smaller);margin-bottom:4px}.kplex-calendar-grid{margin-bottom:12px}.kplex-calendar-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;height:40px;padding:2px}.kplex-calendar-grid .is-other-month{color:var(--text-muted)}.kplex-calendar-grid .is-today{outline:2px solid var(--interactive-accent);outline-offset:-2px}.kplex-calendar-grid .has-note{font-weight:600}.kplex-calendar-note-dot{height:9px;line-height:9px;color:var(--interactive-accent)}.kplex-calendar-picker input[type=date]{width:100%}.kplex-pinned-bar{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:6px;min-height:30px;padding:2px 10px 6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;user-select:none;background:var(--background-secondary)}.kplex-pinned-chip{flex:0 0 auto;display:inline-flex;align-items:stretch;max-width:240px;border:1px solid var(--background-modifier-border);border-radius:7px;overflow:hidden;background:var(--background-modifier-hover)}.kplex-pinned-chip.is-active{outline:1px solid var(--interactive-accent);outline-offset:-2px}.kplex-pinned-chip.is-unavailable{color:var(--text-muted)}.kplex-pinned-bar.is-reordering{cursor:grabbing;background:color-mix(in srgb,var(--interactive-accent) 10%,var(--background-secondary))}.kplex-pinned-bar.is-reordering>.kplex-pinned-chip{opacity:.5}.kplex-pinned-bar.is-reordering>.kplex-pinned-chip.is-reorder-source{position:relative;z-index:2;opacity:1;outline:2px solid var(--interactive-accent);outline-offset:-2px;box-shadow:var(--shadow-s);transform:translate(var(--reorder-drag-x, 0px));pointer-events:none}.kplex-pinned-bar.is-reordering>.kplex-pinned-chip.is-reorder-before{opacity:1;box-shadow:inset 5px 0 var(--interactive-accent);border-left-color:var(--interactive-accent)}.kplex-pinned-bar.is-reorder-end>.kplex-pinned-chip:last-child{opacity:1;box-shadow:inset -5px 0 var(--interactive-accent)}.kplex-pinned-chip .kplex-pin-reorder-handle{width:18px;padding:0;cursor:grab;touch-action:none}.kplex-pinned-bar.is-reordering .kplex-pin-reorder-handle{cursor:grabbing}.kplex-pinned-chip button{height:25px;border:0;border-radius:0;background:transparent;color:inherit;cursor:pointer}.kplex-pinned-chip button:hover{background:var(--background-modifier-hover);color:inherit}.kplex-pinned-open{min-width:0;max-width:205px;display:inline-flex;align-items:center;gap:5px;padding:0 8px;text-align:left;font-size:10px}.kplex-pinned-open svg{flex:0 0 auto}.kplex-pinned-open span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-view-host .kplex-pinned-remove{width:25px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-left:1px solid var(--background-modifier-border);color:var(--text-muted)}.kplex-search-results .kplex-search-result.is-selected{color:var(--text-normal);background:var(--background-modifier-hover);box-shadow:inset 2px 0 0 var(--interactive-accent)}.kplex-expanded-mini-thought.is-sibling-descendant{opacity:.6;padding-left:3px;padding-right:3px}.kplex-settings .kplex-resource-links{display:flex;justify-content:center;align-items:center;gap:0;flex-wrap:wrap;padding:2px 0 10px;margin-bottom:2px;border-bottom:1px solid var(--background-modifier-border)}.kplex-settings .kplex-resource-links .setting-item{position:relative;flex:0 0 auto;width:auto;min-width:0;padding:0 10px;border:0}.kplex-settings .kplex-resource-links .setting-item+.setting-item:before{content:"|";position:absolute;left:-2px;top:50%;transform:translateY(-50%);color:var(--text-faint)}.kplex-settings .kplex-resource-links .setting-item-info{margin:0}.kplex-settings .kplex-resource-links .setting-item-name{color:var(--text-accent);font-size:var(--font-ui-small);white-space:nowrap}.kplex-settings .kplex-resource-links .setting-item-description{display:none}.kplex-settings .kplex-resource-links .setting-item-control{margin-left:5px}.kplex-settings .kplex-resource-links button{min-width:0;height:24px;padding:0 6px;font-size:var(--font-ui-smaller)}.kplex-explanation-modal{max-width:760px}.kplex-explanation-pair{margin-bottom:8px;font-size:1.05em}.kplex-explanation-result{margin:8px 0;font-weight:600}.kplex-explanation-summary{margin:8px 0 16px;color:var(--text-muted);line-height:1.45}.kplex-explanation-evidence{display:flex;flex-direction:column;gap:8px}.kplex-explanation-evidence-row{border:1px solid var(--background-modifier-border);border-radius:6px;padding:8px 10px}.kplex-explanation-evidence-row.is-suppressed{opacity:.72}.kplex-explanation-state{display:inline-block;min-width:82px;margin-right:8px;font-size:10px;font-weight:700;letter-spacing:.06em;color:var(--text-accent)}.kplex-explanation-evidence-row.is-suppressed .kplex-explanation-state{color:var(--text-muted)}.kplex-explanation-description{font-size:12px}.kplex-explanation-evidence code{display:block;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}.kplex-explanation-reason{margin-top:5px;color:var(--text-muted);font-size:11px}.kplex-explanation-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.kplex-explanation-navigate{height:28px;min-height:28px;padding:0 9px;font-size:var(--font-ui-smaller)}.kplex-explanation-empty{color:var(--text-muted)}.kplex-explanation-display-context{margin:8px 0;padding:8px 10px;border-left:3px solid var(--interactive-accent);background:var(--background-secondary);color:var(--text-muted)}.kplex-plex{overscroll-behavior:none;-webkit-user-select:none;user-select:none}.kplex-plex,.kplex-camera,.kplex-nodes{touch-action:none}.kplex-zone-scroll,.kplex-expanded-scroll,.kplex-relation-results{touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.kplex-filter>summary{list-style:none}.kplex-filter>summary::-webkit-details-marker{display:none}.kplex-filter.is-active>summary{color:var(--text-normal);border-color:var(--background-modifier-border);background:var(--background-modifier-hover)}.kplex-filter-panel{position:absolute;z-index:90;top:calc(100% + 6px);left:0;display:grid;grid-template-columns:minmax(155px,1fr);gap:8px;width:min(290px,calc(100vw - 28px));padding:10px;border:1px solid var(--background-modifier-border);border-radius:8px;background:var(--background-primary-alt, var(--background-primary));box-shadow:var(--shadow-s)}.kplex-filter-panel label{display:grid;gap:3px;color:var(--text-muted);font-size:10px;font-weight:600;letter-spacing:.025em}.kplex-filter-panel input,.kplex-filter-panel select{width:100%;min-width:0;font-size:var(--font-ui-small)}.kplex-filter-panel button{justify-self:end}.kplex-surface-sidepanel .kplex-topbar{gap:4px;padding:4px 6px;flex-wrap:wrap}.kplex-surface-sidepanel .kplex-brand{min-width:auto}.kplex-surface-sidepanel .kplex-brand strong{display:none}.kplex-surface-sidepanel .kplex-brand-mark{width:17px;height:17px}.kplex-surface-sidepanel .kplex-search{min-width:110px;flex:1 1 145px}.kplex-surface-sidepanel .kplex-top-actions{flex:1 1 100%;min-width:0;overflow-x:auto;overflow-y:hidden;justify-content:flex-start;scrollbar-width:none}.kplex-surface-sidepanel .kplex-top-actions::-webkit-scrollbar{display:none}.kplex-surface-sidepanel .kplex-topbar button{flex:0 0 auto}.kplex-surface-sidepanel .kplex-pinned-bar{padding-left:6px;padding-right:6px}.kplex-surface-sidepanel .kplex-history-label{display:none}.kplex-surface-sidepanel .kplex-history-bar{padding-left:5px;padding-right:5px}.kplex-surface-sidepanel .kplex-layout-controls{transform:scale(.92);transform-origin:bottom left}@keyframes kplex-edge-arrive{0%{opacity:0}to{opacity:1}}.kplex-plex.is-scene-transitioning .kplex-edge-paint{animation:kplex-edge-arrive max(.12s,calc(var(--kplex-motion-ms, .56s) * .55)) ease-out both}.kplex-plex.is-following-document .kplex-edge-paint{animation:none}@media (prefers-reduced-motion: reduce){.kplex-plex.is-scene-transitioning .kplex-edge-paint{animation:none}}.kplex-plex.is-section-expanded .kplex-thought.is-selected{box-shadow:0 0 0 2px var(--interactive-accent),var(--shadow-s)}.kplex-relation-new-note{display:inline-flex;align-items:center;gap:6px;margin-top:8px}.kplex-relation-new-note .kplex-lucide{width:14px;height:14px}@media (max-width: 700px){.kplex-view-host .kplex-topbar{gap:4px;padding:4px 5px}.kplex-view-host .kplex-brand strong{display:none}.kplex-view-host .kplex-topbar button:where(:not(.kplex-index-status)),.kplex-view-host .kplex-icon-button:where(:not(.kplex-index-status)),.kplex-view-host .kplex-zoom-controls button,.kplex-view-host button.kplex-zone-filter-button,.kplex-sidecar-controls button,.kplex-central-editor-toolbar button,button.kplex-sidecar-unfold-plex{min-width:30px;min-height:30px}.kplex-view-host .kplex-search{flex:1 1 130px;min-width:100px}.kplex-view-host .kplex-top-actions{flex:0 0 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.kplex-view-host .kplex-top-actions::-webkit-scrollbar{display:none}.kplex-view-host .kplex-filter-panel{position:fixed;top:max(52px,env(safe-area-inset-top));left:8px;right:8px;width:auto}.kplex-view-host .kplex-history-bar{min-height:26px}.kplex-view-host .kplex-layout-controls{max-width:calc(100% - 70px)}}@keyframes kplex-scene-arrive{0%{opacity:.82}to{opacity:1}}.kplex-plex.is-scene-transitioning{animation:kplex-scene-arrive max(.12s,calc(var(--kplex-motion-ms, .56s) * .72)) ease-out both}@media (prefers-reduced-motion: reduce){.kplex-plex.is-scene-transitioning{animation:none}}@media (hover: none) and (pointer: coarse){.kplex-camera.is-camera-moving{will-change:auto}.kplex-edge-visible,.kplex-edge.is-highlighted .kplex-edge-visible{filter:none}}.kplex-plex.is-touch-gesturing .kplex-thought,.kplex-plex.is-touch-gesturing .kplex-edge,.kplex-plex.is-touch-gesturing .kplex-expanded-edge,.kplex-plex.is-pinch-gesturing .kplex-camera{animation:none;transition:none}.kplex-plex.is-pinch-gesturing .kplex-thought{box-shadow:none}.kplex-plex.is-pinch-gesturing .kplex-edge-label-wrap{opacity:0}.kplex-plex.is-pinch-gesturing .kplex-section-tree-edge{filter:none}.kplex-plex.is-ios.is-pinch-gesturing .kplex-edge-visible,.kplex-plex.is-ios.is-pinch-gesturing .kplex-expanded-edge,.kplex-plex.is-ios.is-pinch-gesturing .kplex-section-tree-edge{opacity:0}.kplex-plex.is-ios.is-pinch-gesturing .kplex-thought{box-shadow:none;filter:none}.kplex-section-tree-edge{stroke:color-mix(in srgb,var(--interactive-accent) 64%,var(--text-muted));stroke-width:1.55;stroke-linecap:square;stroke-linejoin:miter;opacity:.9;pointer-events:none}.kplex-thought.is-kplex-section{border-radius:4px;border:1px solid color-mix(in srgb,var(--text-muted) 34%,var(--background-modifier-border));border-left:3px solid color-mix(in srgb,var(--interactive-accent) 66%,var(--text-accent));background:color-mix(in srgb,var(--background-secondary) 94%,var(--interactive-accent) 6%);color:var(--text-normal);box-shadow:var(--shadow-s)}.kplex-thought.is-kplex-section:hover{border-color:color-mix(in srgb,var(--interactive-accent) 58%,var(--background-modifier-border));border-left-color:var(--interactive-accent);background:color-mix(in srgb,var(--background-secondary) 90%,var(--interactive-accent) 10%);box-shadow:var(--shadow-s)}.kplex-thought.is-kplex-section:after{content:"";position:absolute;left:-4px;top:50%;width:7px;height:7px;transform:translate(-50%,-50%);border-radius:1px;background:var(--background-primary);border:1.5px solid color-mix(in srgb,var(--interactive-accent) 72%,var(--text-muted));pointer-events:none}.kplex-thought.is-kplex-section .kplex-thought-label{justify-content:flex-start;gap:8px;padding-inline:8px 10px;color:var(--text-normal);font-weight:570;letter-spacing:.003em}.kplex-section-heading-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:24px;padding:0 3px;border:0;border-radius:3px;background:color-mix(in srgb,var(--interactive-accent) 10%,transparent);color:color-mix(in srgb,var(--text-accent) 86%,var(--text-normal));font-size:9px;font-weight:760;line-height:18px}.kplex-thought.is-kplex-section .kplex-gate.is-empty,.kplex-thought.is-kplex-section .kplex-gate-wrap.is-empty .kplex-gate-count{opacity:0;pointer-events:none}.kplex-section-fold-handle{position:absolute;left:14px;bottom:-6px;width:10px;height:10px;min-width:10px;min-height:10px;padding:0;margin:0;transform:translate(-50%);border:1.5px solid color-mix(in srgb,var(--interactive-accent) 76%,var(--text-muted));border-radius:1px;background:var(--background-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--background-primary) 88%,transparent);z-index:8;cursor:pointer}.kplex-section-fold-handle.is-expanded:after{content:"";position:absolute;left:2px;right:2px;top:3px;height:1.5px;border-radius:1px;background:var(--interactive-accent)}.kplex-section-fold-handle.is-folded{background:color-mix(in srgb,var(--interactive-accent) 72%,var(--background-primary))}.kplex-section-fold-handle.is-folded:before,.kplex-section-fold-handle.is-folded:after{content:"";position:absolute;background:var(--background-primary);border-radius:1px}.kplex-section-fold-handle.is-folded:before{left:2px;right:2px;top:3px;height:1.5px}.kplex-section-fold-handle.is-folded:after{top:2px;bottom:2px;left:3px;width:1.5px}.kplex-section-fold-handle:hover{border-color:var(--interactive-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--interactive-accent) 16%,transparent)}.kplex-section-fold-handle.is-branch-disclosure{left:auto;right:-6px;transform:none;width:16px;height:16px;inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px;max-inline-size:16px;max-block-size:16px;flex:0 0 16px;bottom:-6px;display:flex;align-items:center;justify-content:center;border-radius:4px;color:var(--text-normal);background:var(--background-primary)}.kplex-section-fold-handle.is-branch-disclosure:before,.kplex-section-fold-handle.is-branch-disclosure:after{content:none}.kplex-branch-disclosure-symbol{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.kplex-section-fold-handle.is-branch-disclosure.has-expanded-hit-target{left:calc(100% - 10px);top:calc(100% - 10px);right:auto;bottom:auto;width:44px;height:44px;inline-size:44px;block-size:44px;min-inline-size:44px;min-block-size:44px;max-inline-size:44px;max-block-size:44px;flex-basis:44px;align-items:flex-start;justify-content:flex-start;padding:0;border:0;box-shadow:none;background:transparent}.has-expanded-hit-target .kplex-branch-disclosure-symbol{box-sizing:border-box;width:16px;height:16px;border:1px solid var(--interactive-accent);border-radius:4px;background:var(--background-primary)}.has-expanded-hit-target:hover .kplex-branch-disclosure-symbol{border-color:var(--interactive-accent-hover)}.kplex-node-status{position:absolute;left:0;bottom:-16px;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;line-height:12px;color:var(--text-muted);background:var(--background-primary);pointer-events:none}.kplex-relationship-updating{position:absolute;inset:0;z-index:90;display:flex;align-items:flex-start;justify-content:center;padding-top:56px;background:color-mix(in srgb,var(--background-primary) 5%,transparent);cursor:wait;pointer-events:auto}.kplex-relationship-updating>span,.kplex-relationship-updating>svg{pointer-events:none}.kplex-relationship-updating{gap:7px;color:var(--text-normal);font-size:var(--font-ui-small)}.kplex-relationship-updating:before{content:"";position:absolute;top:47px;width:190px;height:34px;border-radius:17px;background:var(--background-secondary-alt);border:1px solid var(--background-modifier-border);box-shadow:var(--shadow-s);z-index:-1}.kplex-relationship-updating svg{animation:kplex-spin 1s linear infinite}@keyframes kplex-spin{to{transform:rotate(360deg)}}.kplex-sidecar-controls{position:absolute;z-index:82;display:flex;gap:5px;padding:0}.kplex-sidecar-controls.is-right{right:4px;top:50%;transform:translateY(-50%);flex-direction:column}.kplex-sidecar-controls.is-left{left:4px;top:50%;transform:translateY(-50%);flex-direction:column}.kplex-sidecar-controls.is-above{top:4px;left:50%;transform:translate(-50%)}.kplex-sidecar-controls.is-below{bottom:4px;left:50%;transform:translate(-50%)}.kplex-top-actions.is-compact{flex-wrap:nowrap}.kplex-app.is-sidecar-condensed .kplex-brand strong{display:none}.kplex-section-root-port{fill:var(--background-primary);stroke:color-mix(in srgb,var(--interactive-accent) 65%,var(--text-muted));stroke-width:1.25;pointer-events:none}.kplex-add-related-modal{width:min(680px,calc(100vw - 24px));max-width:min(680px,calc(100vw - 24px))}.kplex-add-related-form{display:grid;gap:12px;min-width:0}.kplex-add-related-form .kplex-fuzzy-search{width:100%;max-width:none;min-width:0;flex:1 1 auto}.kplex-add-related-form .kplex-search,.kplex-import-modal .kplex-search,.kplex-folder-path-input .kplex-search{box-sizing:border-box;width:100%}.kplex-folder-path-input .kplex-search,.kplex-add-related-form .kplex-folder-path-input .kplex-search{width:100%;box-sizing:border-box}.kplex-add-related-form .kplex-search-icon,.kplex-import-modal .kplex-search-icon{top:10px;color:var(--text-muted)}.kplex-add-related-form .kplex-fuzzy-inline-results{left:0;right:0;top:calc(100% + 4px);max-height:min(36vh,300px);color:var(--text-normal);background:var(--background-primary);border-color:var(--background-modifier-border);box-shadow:var(--shadow-s)}.kplex-add-related-form .kplex-search-result{color:var(--text-normal)}.kplex-add-related-form .kplex-search-result small{color:var(--text-muted)}.kplex-add-related-form .kplex-search-result:hover,.kplex-add-related-form .kplex-search-result.is-selected{background:var(--background-modifier-hover)}.kplex-add-related-role-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.kplex-add-related-role-row button{min-width:0;height:30px;padding:0 8px}.kplex-add-related-role-row button.is-active{color:var(--text-on-accent);background:var(--interactive-accent)}.kplex-add-related-control-row{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.kplex-add-related-control-row .kplex-add-related-ontology-search{flex:1 1 280px}.kplex-edit-selected-ontology{flex:0 0 auto}.kplex-edge-ontology-field{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.kplex-relationship-direction{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:8px 0}.kplex-relationship-direction>.setting-item-description{flex:1 1 240px;overflow-wrap:anywhere}.kplex-relationship-direction>button{flex:0 0 auto}.kplex-add-related-footer{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px 16px}.kplex-creation-completion-row{display:flex;flex-wrap:wrap;gap:var(--size-4-2);justify-content:flex-end;min-width:0;padding:var(--size-4-3) 0}.kplex-add-related-control-row .kplex-add-related-role-select{max-width:100%}.kplex-add-related-compose-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;min-width:0}.kplex-add-related-action-area{min-width:0;display:flex;align-items:center;height:38px}.kplex-add-related-create-actions{display:flex;justify-content:flex-end;gap:10px;height:38px}.kplex-add-related-type-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:38px;min-width:42px;padding:0;border:1px solid var(--background-modifier-border);background:var(--background-primary)}.kplex-add-related-recovery{display:grid;gap:10px;min-width:0;padding:12px;border:1px solid var(--background-modifier-border);border-radius:var(--input-radius, 5px);background:var(--background-secondary);font-size:var(--font-ui-small);line-height:1.45;overflow-wrap:anywhere}.kplex-add-related-recovery-reason{color:var(--text-muted)}.kplex-add-related-recovery-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.kplex-add-related-recovery-actions button{max-width:100%;height:auto;min-height:var(--input-height);white-space:normal}.kplex-add-related-create-hint.is-error{color:var(--text-error)}.kplex-add-related-create-hint{margin-top:-4px;color:var(--text-muted);font-size:var(--font-ui-smaller);line-height:1.35}@media (max-width: 520px){.kplex-add-related-role-row{grid-template-columns:repeat(2,minmax(0,1fr))}.kplex-add-related-control-row{gap:7px}.kplex-add-related-control-row .kplex-add-related-ontology-search{flex-basis:210px}.kplex-add-related-compose-row{gap:7px}.kplex-add-related-action-area{min-width:83px}.kplex-add-related-create-actions{gap:6px}.kplex-add-related-type-button{width:36px;min-width:36px}.kplex-add-related-link-button{width:83px;min-width:83px}}@media (max-width: 380px){.kplex-add-related-modal{width:calc(100vw - 12px);max-width:calc(100vw - 12px)}.kplex-add-related-control-row .kplex-add-related-ontology-search{flex-basis:150px}.kplex-add-related-create-actions{gap:4px}.kplex-add-related-type-button{width:33px;min-width:33px}}.is-mobile .modal.kplex-mobile-fullscreen-modal{position:fixed;left:var(--kplex-visible-left, 0px);top:var(--kplex-visible-top, 0px);width:var(--kplex-visible-width, 100%);max-width:var(--kplex-visible-width, 100%);height:var(--kplex-visible-height, 100%);max-height:var(--kplex-visible-height, 100%);margin:0;border-radius:0;overflow:hidden}.is-mobile .modal.kplex-mobile-fullscreen-modal>.modal-content{flex:1 1 auto;min-height:0;overflow-y:auto}.kplex-draggable-dialog.is-positioned{position:fixed;left:var(--kplex-dialog-left);top:var(--kplex-dialog-top);right:auto;bottom:auto;margin:0}.kplex-draggable-dialog-handle{cursor:grab;user-select:none;touch-action:none}.kplex-draggable-dialog-handle.is-dragging{cursor:grabbing}.kplex-draggable-dialog-handle button,.kplex-draggable-dialog-handle input,.kplex-draggable-dialog-handle select,.kplex-draggable-dialog-handle textarea,.kplex-draggable-dialog-handle a,.kplex-draggable-dialog-handle [contenteditable=true],.kplex-draggable-dialog-handle [role=button],.kplex-draggable-dialog-handle [role=link]{cursor:auto;user-select:auto;touch-action:auto}.kplex-folded-workspace-group{display:none}.kplex-fold-recovery-host{position:relative}.kplex-sidecar-unfold-plex{position:absolute;z-index:1000}.kplex-sidecar-unfold-plex.is-left{left:5px;top:50%;transform:translateY(-50%)}.kplex-sidecar-unfold-plex.is-right{right:5px;top:50%;transform:translateY(-50%)}.kplex-sidecar-unfold-plex.is-top{top:5px;left:50%;transform:translate(-50%)}.kplex-sidecar-unfold-plex.is-bottom{bottom:5px;left:50%;transform:translate(-50%)}.kplex-settings .kplex-resource-links>:is(div,section):not(.setting-item){display:flex;align-items:center;justify-content:center;flex-wrap:wrap;width:100%}.kplex-fuzzy-floating-results{color:var(--text-normal);background:var(--background-primary);border-color:var(--background-modifier-border);box-shadow:var(--shadow-s)}.kplex-fuzzy-floating-results .kplex-search-result{color:var(--text-normal)}.kplex-fuzzy-floating-results .kplex-search-result small{color:var(--text-muted)}.kplex-fuzzy-floating-results .kplex-search-result:hover,.kplex-fuzzy-floating-results .kplex-search-result.is-selected{background:var(--background-modifier-hover)}.kplex-fuzzy-match{padding:0;color:var(--text-accent);background:transparent;font:inherit;font-weight:750}@keyframes kplex-new-relationship-flair{0%,to{box-shadow:var(--kplex-node-shadow, var(--shadow-s));filter:brightness(1)}12%,38%,64%{box-shadow:0 0 0 3px color-mix(in srgb,var(--interactive-accent) 82%,white),0 0 34px color-mix(in srgb,var(--interactive-accent) 58%,transparent),var(--shadow-s);filter:brightness(1.28)}25%,51%,77%{box-shadow:0 0 0 1px color-mix(in srgb,var(--interactive-accent) 50%,transparent),0 0 16px color-mix(in srgb,var(--interactive-accent) 34%,transparent),var(--shadow-s);filter:brightness(1.08)}}.kplex-thought.is-new-flair{z-index:35;animation:kplex-new-relationship-flair 3.6s ease-in-out both}@keyframes kplex-filter-flair{0%,to{box-shadow:none}12%,38%,64%{box-shadow:0 0 0 3px color-mix(in srgb,var(--interactive-accent) 75%,transparent),0 0 22px color-mix(in srgb,var(--interactive-accent) 48%,transparent)}25%,51%,77%{box-shadow:0 0 0 1px color-mix(in srgb,var(--interactive-accent) 45%,transparent)}}.kplex-zone-filter-control.is-new-flair{border-radius:7px;animation:kplex-filter-flair 3.6s ease-in-out both}.kplex-rename-note-modal .kplex-rename-note-name-setting{display:block}.kplex-rename-note-modal .kplex-rename-note-name-setting .setting-item-info{margin-bottom:8px}.kplex-rename-note-modal .kplex-rename-note-name-setting .setting-item-control,.kplex-rename-note-modal .kplex-rename-note-name-setting input[type=text]{width:100%}.kplex-filter>summary{position:relative}.kplex-lens-count{position:absolute;right:-5px;top:-5px;min-width:14px;height:14px;padding:0 3px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--interactive-accent);color:var(--text-on-accent);font-size:9px;line-height:1;font-weight:700}.kplex-filter-panel{width:min(390px,calc(100vw - 28px));max-height:min(72vh,720px);overflow:auto}.kplex-filter-panel textarea{width:100%;min-width:0;resize:vertical;font:var(--font-ui-smaller) var(--font-monospace)}.kplex-predicate-rule-editor,.kplex-predicate-expression-field{display:grid;gap:8px;min-width:0}.kplex-predicate-rule-editor label,.kplex-predicate-expression-field>label{display:grid;gap:4px;min-width:0}.kplex-predicate-expression-field>label{color:var(--text-muted);font-size:var(--font-ui-smaller)}.kplex-predicate-expression-field textarea{box-sizing:border-box;width:100%;min-width:0;min-height:6em;resize:vertical;font:var(--font-ui-smaller) var(--font-monospace);color:var(--text-normal)}.kplex-filter-section{display:grid;gap:8px}.kplex-filter-section+.kplex-filter-section,.kplex-view-controls+.kplex-filter-section{padding-top:10px;border-top:1px solid var(--background-modifier-border)}.kplex-view-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}.kplex-view-controls>.kplex-view-selector,.kplex-view-controls>.kplex-view-choice{flex:1 1 150px;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:end}.kplex-view-controls>.kplex-view-choice{flex-basis:240px;min-width:min(100%,220px);grid-template-columns:minmax(0,1fr) auto auto}.kplex-view-controls label{min-width:0;display:grid;gap:6px}.kplex-view-controls select{width:100%;min-width:0}.kplex-view-controls .kplex-lens-help{flex-basis:100%;grid-column:1 / -1}.kplex-filter-section-heading{color:var(--text-normal);font-size:11px;font-weight:700;letter-spacing:.025em}.kplex-visibility-bulk{display:flex;flex-direction:column;gap:6px}.kplex-visibility-bulk-buttons{display:flex;flex-wrap:wrap;gap:6px}.kplex-visibility-bulk-buttons button{min-height:32px}.kplex-lens-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.kplex-lens-heading .kplex-icon-button{justify-self:auto}.kplex-lens-empty,.kplex-lens-help{color:var(--text-muted);font-size:10px;line-height:1.35}.kplex-lens-help code{font-size:9px}.kplex-lens-list{display:grid;gap:4px}.kplex-lens-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:4px;padding:4px 5px;border:1px solid var(--background-modifier-border);border-radius:6px;opacity:.72}.kplex-lens-row.is-enabled{opacity:1;background:var(--background-secondary)}.kplex-lens-row.has-error{border-color:var(--text-error)}.kplex-lens-toggle{display:flex;place-items:center}.kplex-lens-toggle input{width:auto;margin:0}.kplex-lens-main{display:grid;gap:1px;min-width:0;padding:2px 4px;text-align:left;background:transparent;border:0;box-shadow:none;justify-self:stretch}.kplex-lens-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-normal);font-size:11px;font-weight:600}.kplex-lens-meta{color:var(--text-muted);font-size:9px;text-transform:capitalize}.kplex-lens-error-dot{color:var(--text-error);font-weight:800}.kplex-lens-editor{display:grid;gap:8px;padding:8px;border-radius:7px;background:var(--background-secondary)}.kplex-lens-editor-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.kplex-lens-editor-error{color:var(--text-error);font-size:10px;line-height:1.35}.kplex-lens-editor-actions{display:flex;justify-content:flex-end;gap:6px}.kplex-lens-editor-actions button{justify-self:auto}.kplex-filter{position:relative;flex:0 0 auto}.kplex-filter-trigger{position:relative}.kplex-filter.is-active .kplex-filter-trigger{color:var(--text-normal);border-color:var(--background-modifier-border);background:var(--background-modifier-hover)}.kplex-filter.is-open .kplex-filter-trigger{box-shadow:0 0 0 1px var(--background-modifier-border)}.kplex-filter-portal{z-index:var(--layer-popover, 30);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;color:var(--text-normal);background:var(--background-primary-alt, var(--background-primary));box-shadow:var(--shadow-s)}.kplex-app[data-floating-layer-boundary]>:is(.kplex-filter-portal,.kplex-footprints-panel,.kplex-info-bubble){z-index:95}body.kplex-filter-panel-open .tooltip{z-index:100300}.kplex-filter-portal button{justify-self:auto}.kplex-lens-heading-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;max-width:100%}.kplex-lens-disable-all{min-height:26px;padding:0 8px;border-radius:6px;color:var(--text-muted);font-size:10px}.kplex-lens-row{grid-template-columns:auto minmax(0,1fr) auto auto auto;opacity:.62}.kplex-lens-row.is-enabled{opacity:1}.kplex-lens-enable-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:1px solid var(--background-modifier-border);border-radius:7px;color:var(--text-faint);background:var(--background-secondary);cursor:pointer}.kplex-lens-enable-button.is-on{color:var(--text-accent);border-color:var(--interactive-accent);background:color-mix(in srgb,var(--interactive-accent) 12%,var(--background-secondary))}.kplex-lens-optional{color:var(--text-faint);font-size:9px;font-weight:500}.kplex-lens-editor-mode{display:flex;gap:4px;padding:3px;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-primary)}.kplex-lens-editor-mode button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:1 1 0;min-height:28px;border:0;border-radius:5px;color:var(--text-muted);background:transparent}.kplex-lens-editor-mode button.is-on{color:var(--text-normal);background:var(--background-modifier-hover);box-shadow:inset 0 0 0 1px var(--background-modifier-border)}.kplex-lens-simple-builder{display:grid;gap:8px;padding:8px;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-primary)}.kplex-lens-group-heading{display:flex;align-items:center;gap:7px;color:var(--text-muted);font-size:10px;font-weight:600}.kplex-lens-group-heading select{width:auto;min-width:170px}.kplex-lens-conditions{display:grid;gap:7px}.kplex-lens-condition{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:6px;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-secondary)}.kplex-lens-where{flex:0 0 auto;color:var(--text-muted);font-size:10px}.kplex-lens-condition-field{flex:1 1 145px;min-width:120px;width:auto}.kplex-lens-condition-property{flex:1 1 130px;min-width:110px;width:auto}.kplex-lens-condition-operator{flex:0 1 125px;min-width:105px;width:auto}.kplex-lens-condition-value{flex:1 1 140px;min-width:120px;width:auto}.kplex-lens-condition-remove{flex:0 0 30px}.kplex-lens-add-condition{display:inline-flex;align-items:center;gap:5px;justify-self:start;min-height:28px}.kplex-lens-help strong{color:var(--text-normal)}.kplex-gate-count{white-space:nowrap;min-width:max-content}@media (max-width: 520px){.kplex-lens-editor-row{grid-template-columns:1fr}.kplex-lens-condition-field,.kplex-lens-condition-property,.kplex-lens-condition-operator,.kplex-lens-condition-value{flex-basis:calc(50% - 16px)}}.kplex-filter-heading-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.kplex-filter-heading-row .kplex-filter-layout-toggle{display:inline-flex;align-items:center;gap:7px;margin:0;color:var(--text-muted);font-size:10px;font-weight:600;cursor:pointer}.kplex-filter-visibility-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.kplex-filter-visibility-options{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 14px}.kplex-filter-visibility-options .kplex-filter-layout-toggle{display:inline-flex;align-items:center;gap:7px;margin:0;color:var(--text-muted);font-size:10px;font-weight:600;cursor:pointer}.kplex-filter-layout-toggle input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.kplex-filter-switch{position:relative;width:31px;height:17px;border:1px solid var(--background-modifier-border);border-radius:999px;background:var(--background-modifier-form-field);transition:background .12s ease,border-color .12s ease}.kplex-filter-switch:after{content:"";position:absolute;top:2px;left:2px;width:11px;height:11px;border-radius:50%;background:var(--text-muted);transition:transform .12s ease,background .12s ease}.kplex-filter-layout-toggle input:checked+.kplex-filter-switch{border-color:var(--interactive-accent);background:color-mix(in srgb,var(--interactive-accent) 35%,var(--background-modifier-form-field))}.kplex-filter-layout-toggle input:checked+.kplex-filter-switch:after{transform:translate(14px);background:var(--text-on-accent, white)}.kplex-filter-layout-toggle:focus-within .kplex-filter-switch{box-shadow:0 0 0 2px color-mix(in srgb,var(--interactive-accent) 28%,transparent)}.kplex-lens-style-editor{display:grid;gap:8px;padding:8px;border:1px solid var(--background-modifier-border);border-radius:7px;background:var(--background-primary)}.kplex-lens-style-heading{color:var(--text-normal);font-size:10px;font-weight:700}.kplex-lens-style-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.kplex-lens-style-grid label{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0}.kplex-lens-style-grid input[type=color]{width:42px;min-width:42px;height:28px;padding:2px;border-radius:6px}.kplex-lens-style-grid input[type=number],.kplex-lens-style-grid select{width:104px;min-width:86px}.kplex-lens-style-grid .kplex-lens-style-check{display:flex;grid-column:1 / -1;align-items:center;justify-content:flex-start;gap:7px}.kplex-lens-style-check input{width:auto;margin:0}@media (max-width: 520px){.kplex-lens-style-grid{grid-template-columns:1fr}}.kplex-thought.has-node-visual .kplex-thought-label{overflow:visible;gap:5px}.kplex-node-visual{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:18px;height:18px;border-radius:4px;overflow:visible}.kplex-role-center .kplex-node-visual{width:24px;height:24px}.kplex-node-visual img{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;border-radius:inherit;object-fit:contain;background:var(--background-secondary);box-shadow:0 0 0 1px color-mix(in srgb,var(--text-muted) 28%,transparent);transition:transform .12s ease,box-shadow .12s ease;transform-origin:center}.kplex-node-visual.is-replace{width:26px;height:22px}.kplex-role-center .kplex-node-visual.is-replace{width:38px;height:30px}.kplex-node-visual.is-replace img{object-fit:contain}.kplex-node-visual.kplex-local-video-visual{width:13px;height:13px;margin-inline-end:.5rem}.kplex-role-center .kplex-node-visual.kplex-local-video-visual{width:18px;height:18px}.kplex-local-video-visual>.kplex-node-icon{margin-right:0}.kplex-local-video-slot,.kplex-local-video-slot img{position:absolute;inset:0}.kplex-local-video-slot{transform:translateY(.05em)}.kplex-thought-label>.kplex-node-visual:last-child{overflow:visible;text-overflow:clip}@media (hover: hover) and (pointer: fine){.kplex-thought.has-node-visual:hover{z-index:40}.kplex-node-visual:hover{z-index:70}.kplex-node-visual:hover img{transform:scale(7);box-shadow:0 0 0 1px var(--background-modifier-border)}}.kplex-edge-properties-modal{width:min(860px,calc(100vw - 36px));max-width:min(860px,calc(100vw - 36px))}.kplex-edge-connection-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--size-4-2);margin-top:var(--size-4-2)}.kplex-edge-ontology-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0 16px;padding:10px 12px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-s);background:var(--background-secondary)}.kplex-edge-ontology-copy{min-width:0;display:grid;gap:2px}.kplex-edge-ontology-value{color:var(--text-muted);overflow-wrap:anywhere}.kplex-edge-ontology-conflict{margin-top:var(--size-4-2)}.kplex-relation-additional{display:flex;flex-wrap:wrap;align-items:center;gap:var(--size-4-2);margin-block:var(--size-4-4)}.kplex-relation-additional[hidden]{display:none}.kplex-relation-additional .setting-item-description{flex:1 1 240px;min-width:0}.kplex-relation-additional button{margin-inline-start:auto}.kplex-edge-why{margin-bottom:14px}.kplex-edge-source-intro{margin:-3px 0 10px;color:var(--text-muted);line-height:1.4;font-size:var(--font-ui-small)}.kplex-edge-source-list{display:grid;gap:9px}.kplex-edge-source-card{min-width:0;padding:10px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-s);background:var(--background-secondary)}.kplex-edge-source-card.is-overridden{opacity:.74}.kplex-edge-source-header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:9px}.kplex-edge-source-title{min-width:0;overflow-wrap:anywhere}.kplex-edge-source-title span{color:var(--text-muted);font-size:var(--font-ui-smaller)}.kplex-edge-source-status{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px;max-width:55%}.kplex-edge-source-evaluations{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}.kplex-edge-source-evaluation{padding:2px 6px;border:1px solid var(--background-modifier-border);border-radius:999px;background:var(--background-primary-alt);color:var(--text-muted);font-size:9px;font-weight:650;white-space:nowrap}.kplex-edge-source-evaluation.is-active{color:var(--text-normal);border-color:color-mix(in srgb,var(--interactive-accent) 40%,var(--background-modifier-border))}.kplex-edge-source-evaluation.is-overridden{opacity:.72}.kplex-edge-source-state{flex:0 0 auto;padding:2px 5px;border-radius:4px;font-size:9px;font-weight:700;letter-spacing:.07em}.kplex-edge-source-state.is-used{color:var(--text-success);background:color-mix(in srgb,var(--text-success) 12%,transparent)}.kplex-edge-source-state.is-overridden{color:var(--text-muted);background:var(--background-modifier-hover)}.kplex-edge-source-text{max-height:180px;margin:8px 0;padding:8px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:var(--radius-s);background:var(--background-primary);border:1px solid var(--background-modifier-border);font-size:var(--font-ui-smaller)}.kplex-edge-source-reason{margin:5px 0;color:var(--text-muted);font-size:var(--font-ui-smaller)}.kplex-edge-source-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--size-4-2)}.kplex-edge-source-header>.kplex-edge-source-actions{flex-basis:100%}.kplex-edge-source-removal{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--size-4-2);margin-top:var(--size-4-2)}.kplex-edge-source-removal-coordinate{flex:1 1 220px;min-width:0;color:var(--text-muted);font-size:var(--font-ui-small);overflow-wrap:anywhere}.kplex-edge-declaration-actions{display:flex;gap:var(--size-4-2);margin-inline-start:auto}.kplex-edge-source-removal [data-kplex-remove-field]{color:var(--text-error)}.kplex-edge-removal-status{padding:var(--size-4-2) 0;color:var(--text-muted)}.kplex-edge-source-action{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:3px 8px;font-size:var(--font-ui-smaller)}.kplex-edge-source-action svg{width:14px;height:14px}.kplex-edge-hover-tooltip{position:absolute;z-index:95;max-width:min(360px,calc(100% - 24px));padding:7px 9px;border:1px solid var(--background-modifier-border-hover);border-radius:var(--radius-s);background:var(--background-primary);color:var(--text-normal);box-shadow:var(--shadow-s);font-size:var(--font-ui-smaller);line-height:1.35;white-space:pre-line;pointer-events:none}.modal.kplex-style-manager-modal{width:min(760px,calc(100vw - 48px));max-width:calc(100vw - 24px);box-sizing:border-box}.modal.kplex-style-manager-modal .modal-content{min-width:0;max-width:100%;overflow-x:clip}.kplex-style-manager{width:100%;min-width:0;max-width:100%;box-sizing:border-box;overflow-x:clip}.kplex-style-manager>p{max-width:64ch;margin:0 0 12px;color:var(--text-muted);line-height:1.45}.kplex-style-manager-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;width:100%;min-width:0;margin:12px 0 8px}.kplex-style-manager-search{min-width:0;max-width:100%}.kplex-style-manager-search input{width:100%;min-width:0;box-sizing:border-box}.kplex-style-manager-controls select,.kplex-style-manager-controls button{min-width:0;max-width:220px}.kplex-style-manager-controls button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.kplex-style-manager-status{margin:8px 0;color:var(--text-muted);font-size:var(--font-ui-smaller)}.kplex-style-manager-list{display:grid;gap:2px;width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:4px;border:1px solid var(--background-modifier-border);border-radius:10px;background:var(--background-secondary);overflow:clip}.kplex-style-manager-row{width:100%;min-width:0;max-width:100%;box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:9px 10px;color:var(--text-normal);text-align:left;border:0;border-radius:7px;background:transparent;box-shadow:none;cursor:pointer;overflow:hidden}.kplex-style-manager-row:hover,.kplex-style-manager-row:focus-visible{background:var(--background-modifier-hover)}.kplex-style-manager-row>.kplex-lucide{order:3;flex:0 0 auto;color:var(--text-muted)}button.kplex-style-manager-row{height:fit-content}.kplex-style-manager-copy{flex:1 1 auto;min-width:0;max-width:100%;display:grid;gap:2px;overflow:hidden}.kplex-style-manager-heading{min-width:0;max-width:100%;display:flex;align-items:center;gap:7px;flex-wrap:wrap;overflow:hidden}.kplex-style-manager-name{min-width:0;max-width:100%;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-style-manager-summary{min-width:0;max-width:100%;color:var(--text-muted);font-size:var(--font-ui-smaller);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-ontology-manager .kplex-style-manager-name,.kplex-ontology-manager .kplex-style-manager-summary{white-space:normal;overflow-wrap:break-word}.kplex-style-manager-badges{min-width:0;display:inline-flex;gap:4px;flex-wrap:wrap}.kplex-style-manager-badge{padding:1px 5px;color:var(--text-muted);border:1px solid var(--background-modifier-border);border-radius:999px;font-size:10px;font-weight:500}.kplex-style-manager-line-swatch{flex:0 0 28px;height:0;border-top:3px solid var(--kplex-style-swatch, var(--text-muted));border-radius:3px}.kplex-style-manager-node-swatch{flex:0 0 28px;width:28px;height:22px;border:2px solid var(--kplex-style-node-border, var(--background-modifier-border));border-radius:6px;background:var(--kplex-style-node-bg, var(--background-secondary-alt))}.kplex-style-manager-property-icon{display:inline-flex;flex:0 0 28px;align-items:center;justify-content:center;color:var(--text-muted)}.kplex-style-manager-empty,.kplex-style-manager-limit{padding:12px;color:var(--text-muted)}.kplex-style-manager-empty p{margin:0 0 10px}.kplex-style-manager-more{justify-self:center;margin:6px 0 2px}@media (max-width: 680px){.modal.kplex-style-manager-modal{width:calc(100vw - 20px);max-width:calc(100vw - 20px)}.kplex-style-manager-controls{grid-template-columns:minmax(0,1fr)}.kplex-style-manager-controls select,.kplex-style-manager-controls button{width:100%;max-width:none}.kplex-style-manager-summary{white-space:normal}}.kplex-style-manager-line-swatch.is-dashed{border-top-style:dashed}.kplex-style-manager-line-swatch.is-dotted{border-top-style:dotted}.kplex-linked-leaf-alert{border:3px;border-color:var(--text-warning, var(--interactive-accent));border-style:solid}.kplex-create-folder-note-modal .kplex-create-folder-note-name-setting{display:block}.kplex-create-folder-note-modal .kplex-create-folder-note-name-setting .setting-item-info{margin-bottom:8px}.kplex-create-folder-note-modal .kplex-create-folder-note-name-setting .setting-item-control,.kplex-create-folder-note-modal .kplex-create-folder-note-name-setting input[type=text]{width:100%;max-width:none}[data-kplex-tooltip-scope] button[aria-label],[data-kplex-tooltip-scope] input[aria-label],[data-kplex-tooltip-scope] [role=button][aria-label],[data-kplex-tooltip-scope] [role=group][aria-label],[data-kplex-tooltip-scope] [data-kplex-control-tooltip],[data-kplex-tooltip-scope] [data-kplex-long-press-tooltip]{--no-tooltip: true}.tooltip.kplex-control-tooltip{position:fixed;z-index:100300;max-width:min(300px,calc(100vw - 16px));transform:none;animation:none;pointer-events:none;white-space:normal}.tooltip.kplex-control-tooltip.is-measuring{visibility:hidden}.tooltip.kplex-control-tooltip.is-multiline{white-space:pre-line;text-align:left}.kplex-filter-visibility-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:6px 12px;overflow:hidden;padding:2px;margin:-2px}.kplex-filter-visibility-grid .kplex-filter-layout-toggle{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin:0;color:var(--text-muted);font-size:10px;font-weight:600;cursor:pointer}.kplex-filter-visibility-grid .kplex-filter-layout-toggle:before{content:"";position:absolute;left:-6px;top:-3px;bottom:-3px;border-left:1px solid var(--background-modifier-border);pointer-events:none}.kplex-filter-visibility-grid .kplex-filter-layout-toggle>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-quick-lens-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:7px;align-items:end}.kplex-filter-clear{justify-self:start}.kplex-create-name-pair{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0;width:100%}.kplex-creation-properties,.kplex-creation-property-section{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--kplex-form-gap, 16px);min-width:0}.kplex-creation-property-section>hr{box-sizing:border-box;width:100%;margin:0}.kplex-create-name-pair .kplex-add-related-note-search{width:100%;min-width:0;max-width:none}.kplex-create-alias-input{width:100%;min-width:0}@media (max-width: 520px){.kplex-filter-visibility-grid{grid-template-columns:1fr}.kplex-create-name-pair{gap:6px}.kplex-create-alias-input{min-width:62px}}.kplex-add-related-title{display:flex;align-items:center;gap:8px;min-width:0}.kplex-add-related-role-select{width:auto;min-width:128px;max-width:min(46vw,220px);flex:0 1 auto}.kplex-create-name-pair .kplex-add-related-note-search .kplex-search-icon{display:none}.kplex-section-fold-handle{inline-size:10px;block-size:10px;min-inline-size:10px;min-block-size:10px;max-inline-size:10px;max-block-size:10px;flex:0 0 10px;overflow:hidden;font-size:0;-webkit-touch-callout:none}.kplex-thought,.kplex-thought *{-webkit-touch-callout:none}@media (pointer: coarse){.kplex-section-fold-handle{width:14px;height:14px;min-width:14px;min-height:14px;max-width:14px;max-height:14px;inline-size:14px;block-size:14px;min-inline-size:14px;min-block-size:14px;max-inline-size:14px;max-block-size:14px;flex-basis:14px;bottom:-8px}.kplex-section-fold-handle.is-expanded:after,.kplex-section-fold-handle.is-folded:before{left:3px;right:3px;top:5px}.kplex-section-fold-handle.is-folded:after{top:3px;bottom:3px;left:5px}}.kplex-relation-modal .kplex-relation-actions{flex:0 0 auto;min-height:0;height:auto;padding-bottom:0}.kplex-relation-modal .kplex-relation-actions button{box-sizing:border-box;appearance:none;-webkit-appearance:none;flex:0 0 34px;width:34px;min-width:34px;max-width:34px;height:30px;min-height:30px;max-height:30px;padding:0;line-height:1}.kplex-relation-modal .kplex-relation-actions .kplex-lucide,.kplex-relation-modal .kplex-relation-actions svg{display:block;width:17px;height:17px;min-width:17px;min-height:17px;stroke:currentColor;color:inherit}@media (pointer: coarse){.kplex-relation-modal .kplex-relation-actions{position:static;margin-top:10px;padding-top:0;padding-bottom:0;align-items:center}}.kplex-central-editor-overlay{position:absolute;z-index:26;box-sizing:border-box;padding:6px;overflow:visible;border:1px solid var(--background-modifier-border-hover);border-radius:18px;background:var(--background-primary);color:var(--text-normal);box-shadow:0 0 0 1px var(--background-modifier-border),0 10px 34px var(--background-modifier-box-shadow)}.kplex-central-editor-overlay.is-maximized{box-shadow:0 0 0 1px var(--background-modifier-border-hover),0 12px 42px var(--background-modifier-box-shadow)}.kplex-central-editor-overlay.is-area-clipped{background:transparent;border-color:transparent;box-shadow:none;pointer-events:none}.kplex-central-editor-overlay.is-area-clipped .kplex-central-editor-document,.kplex-central-editor-overlay.is-area-clipped .kplex-central-editor-toolbar{pointer-events:auto}.kplex-central-editor-overlay.is-area-clipped:before{content:"";position:absolute;inset:-1px;border:1px solid var(--background-modifier-border-hover);border-radius:inherit;background:var(--background-primary);clip:var(--kplex-editor-frame-clip, auto);pointer-events:none}.kplex-central-editor-placeholder{width:100%;height:100%;pointer-events:none}.kplex-thought.has-embedded-content{padding:6px;overflow:visible;cursor:default;background:var(--background-primary);color:var(--text-normal);border-color:var(--background-modifier-border-hover);box-shadow:0 0 0 1px var(--background-modifier-border),0 10px 34px var(--background-modifier-box-shadow)}.kplex-thought.has-embedded-content:hover,.kplex-thought.has-embedded-content.is-highlighted{filter:none}.kplex-thought-embedded-content{position:relative;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;border-radius:12px;background:var(--background-primary);color:var(--text-normal);text-align:start;line-height:normal;user-select:text;cursor:text;touch-action:pan-x pan-y}.kplex-central-editor-content,.kplex-central-editor-document,.kplex-central-editor-leaf-host,.kplex-embedded-workspace-root{width:100%;height:100%;min-width:0;min-height:0}.kplex-central-editor-content{position:relative;overflow:visible;border-radius:inherit;color:var(--text-normal);isolation:isolate;touch-action:pan-x pan-y}.kplex-central-editor-document{position:absolute;inset:0;border-radius:inherit;background:var(--background-primary);clip:var(--kplex-editor-body-clip, auto)}.kplex-central-editor-content.is-edit-mode{cursor:default}.kplex-central-editor-leaf-host,.kplex-embedded-workspace-root{position:absolute;inset:0;overflow:hidden;border-radius:12px;background:var(--background-primary)}.kplex-central-editor-content.is-markdown-zoom-scaled>.kplex-central-editor-document>.kplex-central-editor-leaf-host{width:calc(100% / var(--kplex-editor-camera-scale, 1));height:calc(100% / var(--kplex-editor-camera-scale, 1));transform:scale(var(--kplex-editor-camera-scale, 1));transform-origin:top left}.kplex-embedded-workspace-split{display:flex;flex-direction:column}.kplex-central-editor-overlay.is-native-view-fullscreen{padding:0;border:0;border-radius:0;box-shadow:none}.kplex-central-editor-overlay.is-native-view-fullscreen .kplex-central-editor-document{clip:auto}.kplex-central-editor-overlay.is-native-view-fullscreen .kplex-central-editor-leaf-host,.kplex-central-editor-overlay.is-native-view-fullscreen .kplex-embedded-workspace-root{border-radius:0}.kplex-central-editor-overlay.is-native-view-fullscreen .kplex-central-editor-toolbar,.kplex-central-editor-leaf-host .workspace-tab-header-container,.kplex-central-editor-leaf-host .view-header{display:none}.kplex-central-editor-leaf-host .workspace-leaf,.kplex-central-editor-leaf-host .workspace-leaf-content,.kplex-central-editor-leaf-host .view-content,.kplex-central-editor-leaf-host .markdown-source-view,.kplex-central-editor-leaf-host .markdown-reading-view{width:100%;height:100%;min-width:0;min-height:0;box-sizing:border-box}.kplex-central-editor-leaf-host .workspace-leaf-content,.kplex-central-editor-leaf-host .view-content{overflow:hidden}.kplex-central-editor-leaf-host .cm-scroller,.kplex-central-editor-leaf-host .markdown-reading-view,.kplex-central-editor-leaf-host .markdown-preview-view{touch-action:pan-y;overscroll-behavior:contain}.kplex-central-editor-toolbar{position:absolute;z-index:32;top:var(--kplex-editor-toolbar-top, -34px);right:var(--kplex-editor-toolbar-right, 1px);left:var(--kplex-editor-toolbar-left, 1px);display:flex;gap:2px;align-items:center;padding:2px;border:1px solid var(--kplex-line, var(--background-modifier-border));border-radius:6px;background:var(--kplex-panel, var(--background-primary));box-shadow:var(--shadow-s)}.kplex-central-editor-title{flex:1 1 auto;min-width:0;padding:0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-ui-small);font-weight:var(--font-semibold)}.kplex-central-editor-toolbar>button{flex-shrink:0}.kplex-central-editor-status{position:absolute;z-index:31;left:50%;top:50%;transform:translate(-50%,-50%);max-width:calc(100% - 36px);padding:6px 9px;border-radius:7px;color:var(--text-muted);background:var(--background-secondary);font-size:var(--font-ui-smaller);pointer-events:none}.kplex-central-editor-status.is-error{color:var(--text-error)}.kplex-plex.is-central-editor-maximized .kplex-zoom-controls,.kplex-plex.is-central-editor-maximized .kplex-layout-controls{opacity:0;visibility:hidden;pointer-events:none}.kplex-plex.is-central-editor-maximized .kplex-role-center.has-embedded-content{box-shadow:none}.kplex-thought-label.is-two-line>.kplex-thought-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;line-height:1.2;max-height:2.4em;overflow:hidden;text-overflow:ellipsis}.kplex-central-editor-leaf-host [data-type=image] .view-content{display:flex;align-items:center;justify-content:center;padding:0}.kplex-central-editor-leaf-host [data-type=image] .image-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}.kplex-central-editor-leaf-host [data-type=image] .view-content img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.kplex-scene-tools{position:absolute;top:8px;right:8px;z-index:45;display:flex;align-items:center;gap:4px;max-width:calc(100% - 16px);padding:0}.kplex-scene-tools.is-suspended{display:none}.kplex-plex.is-short-canvas .kplex-scene-tools{top:0;left:60px;right:auto}.kplex-find{display:flex;align-items:center;gap:4px;min-width:0}.kplex-footprints-panel{position:fixed;box-sizing:border-box;z-index:var(--layer-popover);display:flex;flex-direction:column;overflow:hidden;color:var(--text-normal);background:var(--background-primary);border:1px solid var(--background-modifier-border);border-radius:var(--radius-m);box-shadow:var(--shadow-s)}.kplex-footprints-heading{display:flex;align-items:center;gap:var(--size-4-2);padding:var(--size-4-2)}.kplex-footprints-heading strong{flex:1;min-width:0;overflow-wrap:anywhere}.kplex-footprints-heading>span,.kplex-footprints-empty{color:var(--text-muted);font-size:var(--font-ui-small)}.kplex-footprints-empty{padding:var(--size-4-3)}.kplex-footprints-list{max-height:320px;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.kplex-footprints-row{display:flex;align-items:center;gap:var(--size-4-2);width:100%;height:40px;margin:0;padding:0 var(--size-4-3);border:0;border-radius:0;box-shadow:none;color:var(--text-normal);background:transparent;text-align:start}.kplex-footprints-row>span:not(.kplex-icon){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-footprints-row>.kplex-icon{flex-shrink:0}.kplex-footprints-row small{color:var(--text-muted)}.kplex-footprints-row[aria-current=location]{background:var(--background-secondary)}.kplex-footprints-row:hover,.kplex-footprints-row:focus-visible{background:var(--background-modifier-hover)}.kplex-footprints-row[aria-disabled=true]{color:var(--text-muted)}.kplex-view-host .kplex-find-input{width:170px;min-width:0;height:28px;border:1px solid var(--kplex-line, var(--background-modifier-border))}.kplex-view-host .kplex-find-input,.kplex-view-host .kplex-find-input:focus,.kplex-view-host .kplex-zone-filter-input,.kplex-view-host .kplex-zone-filter-input:focus{color:var(--text-normal);background:var(--background-primary)}.kplex-view-host .kplex-find-input::placeholder,.kplex-view-host .kplex-zone-filter-input::placeholder{color:var(--text-muted)}.kplex-find-count{color:var(--kplex-muted, var(--text-muted));font-size:var(--font-smallest);white-space:nowrap;background:var(--kplex-control-bg, var(--interactive-normal));border-radius:7px;padding:3px 5px}.kplex-type-selection{position:absolute;left:8px;top:8px;z-index:45;display:flex;align-items:center;gap:8px;box-sizing:border-box;max-width:calc(100% - 56px);min-height:28px;padding:4px 8px;border:1px solid var(--background-modifier-border);border-radius:7px;color:var(--text-normal);background:var(--background-primary);font-size:var(--font-ui-small);pointer-events:none}.kplex-type-selection-query{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kplex-type-selection-count{flex:0 0 auto;white-space:nowrap;color:var(--text-muted)}.kplex-thought.is-keyboard-selected,.kplex-expanded-mini-thought.is-keyboard-selected,.kplex-thought.is-selected.is-keyboard-selected,.kplex-plex.is-section-expanded .kplex-thought.is-selected.is-keyboard-selected,.kplex-plex.is-finding .kplex-thought.is-highlighted,.kplex-expanded-mini-thought.is-find-match{outline:3px solid var(--interactive-accent);outline-offset:3px;box-shadow:0 0 0 3px var(--background-primary),0 0 0 6px var(--interactive-accent),0 0 28px 6px var(--interactive-accent)}.kplex-plex.is-finding .kplex-edge.is-highlighted .kplex-edge-visible,.kplex-expanded-edge.is-find-match{stroke:var(--interactive-accent)}.kplex-vault-stats{display:grid;gap:4px;margin:8px 0 14px}.kplex-vault-stats-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:baseline}.kplex-vault-stats-row.is-nested{padding-left:18px;color:var(--text-muted)}.kplex-vault-stats-value{font-variant-numeric:tabular-nums;text-align:right}.kplex-add-related-ontology-search .kplex-search{padding-right:36px}.kplex-fuzzy-disclosure{position:absolute;right:4px;top:4px;display:flex;align-items:center;justify-content:center;width:28px;height:26px;padding:0;background:transparent;box-shadow:none;color:var(--text-muted)}.kplex-fuzzy-disclosure:hover{color:var(--text-normal);background:var(--background-modifier-hover)}.kplex-embedded-web-page{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:var(--background-primary)}.kplex-embedded-web-frame{display:flex;flex:0 0 auto;border:0}.kplex-index-status.is-incomplete,.kplex-topbar button.kplex-index-status.is-incomplete{background:var(--color-orange);box-shadow:none;animation:none}.kplex-find.is-suspended{display:none}.kplex-history-list button.is-relationship-drop-target,.kplex-pinned-open.is-relationship-drop-target{color:var(--text-normal);border-color:var(--interactive-accent);background:var(--background-secondary-alt);box-shadow:0 0 0 1px var(--interactive-accent)}.kplex-density-axes{display:grid;gap:4px}.kplex-layout-controls{flex-wrap:nowrap;align-items:flex-end;max-width:calc(100% - 84px)}.kplex-layout-controls .kplex-layout-toggle{flex:0 0 auto}.kplex-layout-panel{display:flex;align-items:flex-end;gap:8px;min-width:0;max-height:var(--kplex-layout-panel-height);overflow-y:auto;overflow-x:hidden;touch-action:pan-y}.kplex-layout-panel>.kplex-density-axes{flex:0 0 auto}.kplex-layout-panel>.kplex-typography-group{flex:0 0 auto}.kplex-layout-controls.is-stacked{flex-direction:column-reverse;align-items:flex-start}.kplex-layout-controls.is-stacked .kplex-layout-panel{flex-direction:column;align-items:stretch;width:198px;max-width:100%}.kplex-layout-controls.is-stacked .kplex-layout-panel>.kplex-density-axes>.kplex-density-control{width:100%}.kplex-layout-controls.is-stacked .kplex-density-control{grid-template-rows:auto 12px}.kplex-layout-controls.is-stacked .kplex-density-heading{font-size:var(--font-ui-smaller, 12px);line-height:1.2;letter-spacing:normal;text-transform:none}.kplex-layout-controls.is-stacked .kplex-density-heading>span{min-width:0;white-space:normal;overflow-wrap:anywhere}.kplex-topbar button.is-on,.kplex-find button[aria-pressed=true],button.kplex-footprints-trigger[aria-expanded=true],button.kplex-layout-toggle[aria-pressed=true],button.kplex-zone-filter-button.is-on,.kplex-sidecar-controls button[aria-pressed=true]{color:var(--text-accent);border-color:var(--interactive-accent)}.kplex-topbar button:focus-visible,.kplex-find button:focus-visible,button.kplex-footprints-trigger:focus-visible,button.kplex-layout-toggle:focus-visible,button.kplex-zone-filter-button:focus-visible,.kplex-sidecar-controls button:focus-visible,button.kplex-sidecar-unfold-plex:focus-visible,.kplex-central-editor-toolbar button:focus-visible,.kplex-zoom-controls button:focus-visible,.kplex-wander-controls button:focus-visible{outline:2px solid var(--interactive-accent);outline-offset:2px}.kplex-filter-panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.kplex-filter-panel-header>span{font-size:var(--font-ui-medium);font-weight:var(--font-semibold)}.kplex-filter-panel-header>button{flex:0 0 auto}.kplex-drop-area-preview{position:absolute;z-index:19;box-sizing:border-box;pointer-events:none;border:2px solid var(--interactive-accent);border-radius:10px;background:transparent;box-shadow:0 0 0 1px var(--interactive-accent)}.kplex-drop-area-preview:before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--interactive-accent);opacity:.08;pointer-events:none}.kplex-center-drop-preview{z-index:27;border-radius:18px}.kplex-typography-controls{min-width:0;max-width:100%;display:flex;flex-direction:column;align-items:stretch;gap:4px}.kplex-typography-controls .kplex-density-control{width:100%}.kplex-wrap-label-control{min-height:36px;display:flex;flex-direction:row;align-items:center;gap:8px;cursor:pointer}.kplex-wrap-label-caption{display:block;width:100%;line-height:1.4;text-align:left;white-space:normal;overflow-wrap:anywhere}.kplex-wrap-label-control input{margin:0}.kplex-typography-group{width:126px;min-width:0;max-width:100%;display:flex;flex-direction:column;gap:4px}.kplex-typography-scope{display:flex;align-items:center;justify-content:space-between;gap:4px;color:var(--text-muted);font-size:9px;line-height:1.2}.kplex-typography-scope>span{min-width:0;overflow-wrap:anywhere}.kplex-layout-controls.is-stacked .kplex-typography-group{width:100%}.kplex-layout-controls.is-stacked .kplex-typography-scope{font-size:var(--font-ui-smaller, 12px)}.kplex-typography-scope button{padding:2px;height:auto;min-height:20px;background:transparent;box-shadow:none;color:var(--text-muted)}.kplex-action-setting .setting-item-control{flex-wrap:wrap;gap:6px}.kplex-action-setting button.setting-hotkey{border:0;box-shadow:none;height:auto;min-height:0}.kplex-action-setting button.setting-add-hotkey-button{border:0;box-shadow:none;background-color:transparent}.kplex-action-setting .clickable-icon.is-active{color:var(--interactive-accent)}.kplex-action-settings-header .setting-item-info{display:none}.kplex-action-settings-header .setting-item-control{width:100%;flex-direction:column;align-items:stretch;gap:10px}.kplex-action-settings-header .search-input-container{width:100%}.kplex-action-settings-header input{padding-right:64px}.kplex-action-settings-header [data-kplex-action-control=search-hotkey]{position:absolute;right:28px;top:3px;bottom:3px}.kplex-action-filters{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.kplex-action-filters .filter-pill{border-radius:16px;padding:3px 10px;background-color:transparent;border:1px solid var(--background-modifier-border);box-shadow:none}.kplex-action-filters .filter-pill.is-active{color:var(--text-on-accent);background-color:var(--interactive-accent)}.kplex-action-filtered{display:none}.kplex-action-feedback{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.kplex-action-status{color:var(--text-muted);font-size:var(--font-ui-small);overflow-wrap:anywhere}.kplex-action-scope,.kplex-action-publication-state{color:var(--text-muted);font-size:var(--font-ui-small);margin-top:4px;overflow-wrap:anywhere}.kplex-action-publication-state.kplex-action-diagnostic-warning{color:var(--text-warning)}.kplex-action-suggestion{display:flex;align-items:center;gap:12px;min-width:0}.kplex-action-suggestion .suggestion-content{flex:1 1 auto;min-width:0}.kplex-action-suggestion .suggestion-title,.kplex-action-suggestion .suggestion-note{white-space:normal;overflow-wrap:anywhere}.kplex-action-suggestion .suggestion-aux{flex:0 1 auto;min-width:0;max-width:45%}.kplex-action-suggestion .setting-command-hotkeys{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;min-width:0;max-width:100%}.kplex-action-suggestion .suggestion-hotkey{margin:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.kplex-keyboard-help{display:flex;flex-direction:column;max-height:80vh}.kplex-keyboard-help .modal-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}.kplex-keyboard-help-header{display:flex;flex-direction:column;flex:0 0 auto;gap:12px;padding-bottom:12px}.kplex-keyboard-help-header p{margin:0;color:var(--text-muted);font-size:var(--font-ui-small)}.kplex-keyboard-help-header .search-input-container{width:100%}.kplex-keyboard-help-results{flex:1 1 auto;min-height:0;overflow-y:auto}.kplex-keyboard-help-footer{flex:0 0 auto;padding-top:12px}.kplex-keyboard-help-footer .setting-item{padding:0;border-top:0}@media (max-width: 600px){.kplex-action-setting{flex-wrap:wrap;gap:8px}.kplex-action-setting .setting-item-control{justify-content:flex-start}}.kplex-shortcut-recording-description{color:var(--text-muted);font-size:var(--font-ui-small)}.kplex-shortcut-matching{gap:12px;padding-top:0;border-top:0}.kplex-shortcut-recording-area{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:88px;padding:24px 16px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-m);background-color:var(--background-secondary)}.kplex-shortcut-recording-area:focus{border-color:var(--interactive-accent);outline:2px solid var(--interactive-accent);outline-offset:2px}.kplex-shortcut-recording-hint{color:var(--text-muted);font-size:var(--font-ui-small);text-align:center}.kplex-shortcut-recorder .modal-button-container{flex-wrap:wrap}@media (max-width: 600px){.kplex-shortcut-matching{flex-wrap:wrap}.kplex-shortcut-matching .setting-item-control{justify-content:flex-start}.kplex-shortcut-matching select{max-width:100%}}.kplex-action-setting .kplex-action-local-conflict,.kplex-action-setting .kplex-action-global-warning,.kplex-action-setting .kplex-action-global-self{display:inline-flex;align-items:center}.kplex-action-setting .kplex-action-global-warning{color:var(--text-warning)}.kplex-action-setting .kplex-action-global-self{color:var(--text-muted)}.kplex-action-setting .kplex-action-local-conflict svg,.kplex-action-setting .kplex-action-global-warning svg,.kplex-action-setting .kplex-action-global-self svg{width:14px;height:14px}.kplex-action-diagnostics{display:flex;flex-direction:column;gap:4px;margin-top:4px;font-size:var(--font-ui-small);overflow-wrap:anywhere}.kplex-action-diagnostic-error{color:var(--text-error)}.kplex-action-diagnostic-warning{color:var(--text-warning)}.kplex-action-diagnostic-info{color:var(--text-muted)}.kplex-action-filters .kplex-action-conflicts-filter{color:var(--text-error);border-color:var(--text-error)}.kplex-action-filters .kplex-action-conflicts-filter.is-active{color:var(--text-on-accent);background-color:var(--background-modifier-error);border-color:var(--background-modifier-error)}body.is-mobile>.app-container>.mobile-navbar.kplex-mobile-navbar-docked{position:relative}body.is-mobile>.app-container>.mobile-navbar.kplex-mobile-navbar-hidden{display:none}.kplex-fullscreen-anchor{display:none}.workspace-drawer.kplex-fullscreen-drawer,.workspace-drawer-backdrop.kplex-fullscreen-drawer,.workspace-split.mod-root.is-sliding-sidebar.kplex-fullscreen-drawer,.workspace-split.mod-root>.workspace-drawer-backdrop.kplex-fullscreen-drawer{z-index:var(--layer-sidedock, 10)}.kplex-fullscreen-overlay{position:fixed;inset:0;z-index:calc(var(--layer-popover, 30) - 1);overflow:hidden;background-color:var(--background-primary)}.kplex-fullscreen-overlay.kplex-windows-fullscreen .kplex-topbar{padding-right:calc(10px + var(--kplex-window-controls-inset, 0px))}.kplex-fullscreen-overlay.kplex-windows-fullscreen .kplex-app.is-zen .kplex-central-editor-overlay.is-maximized .kplex-central-editor-toolbar{right:calc(1px + var(--kplex-window-controls-inset, 0px))}.kplex-fullscreen-overlay>.kplex-view-host{padding:0}.kplex-app.is-zen>.kplex-main-column{grid-template-rows:minmax(0,1fr)}.kplex-app.is-zen>.kplex-main-column>.kplex-top-stack,.kplex-app.is-zen>.kplex-main-column>.kplex-history-bar{display:none}.kplex-support-report-modal{width:640px;max-width:calc(100vw - 32px)}.kplex-empty-support{position:absolute;top:12px;right:12px}.kplex-support-report-links{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px}.kplex-support-report-preview{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:180px;max-height:40vh;font-family:var(--font-monospace);font-size:var(--font-ui-small);resize:vertical}.kplex-layout-controls.kplex-wander-controls{z-index:35;bottom:12px;left:50%;transform:translate(-50%);max-width:calc(100% - 24px)}.kplex-color-modal{width:min(740px,94vw)}.kplex-color-source-editor{display:grid;gap:var(--size-4-3);margin-block:var(--size-4-3)}.kplex-color-source-editor label,.kplex-literal-controls label,.kplex-literal-opacity label{display:grid;gap:var(--size-4-1);min-width:0}.kplex-color-source-editor input[type=text]{width:100%}.kplex-literal-editor{border:1px solid var(--background-modifier-border);border-radius:var(--radius-m);margin:0;padding:var(--size-4-3);min-width:0}.kplex-literal-controls{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:end;gap:var(--size-4-2)}.kplex-color-swatch{background:var(--kplex-color-swatch);width:28px;height:28px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-s)}.kplex-literal-opacity{margin-top:var(--size-4-3)}.kplex-literal-opacity input{width:100%}.kplex-color-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--size-4-3);margin-top:var(--size-4-3)}.kplex-color-preview{border:1px solid var(--background-modifier-border);border-radius:var(--radius-m);padding:var(--size-4-2);min-width:0}.kplex-color-preview-heading{display:flex;align-items:baseline;justify-content:space-between;gap:var(--size-4-2)}.kplex-color-preview-canvas{position:relative;height:140px;overflow:hidden;border-radius:var(--radius-s);margin-top:var(--size-4-2);background:var(--_kplex-preview-base)}.kplex-color-preview-canvas svg{position:absolute;inset:0;width:100%;height:100%}.kplex-color-preview-canvas:before{content:"";position:absolute;inset:0;pointer-events:none;background:var(--_kplex-preview-canvas)}.kplex-color-preview-node{position:absolute;left:35%;top:27%;width:60%;min-height:56px;padding:var(--size-4-2);border:1px solid var(--_kplex-preview-node-border);border-radius:var(--radius-m);background:var(--_kplex-preview-node-fill);color:var(--_kplex-preview-node-text);font-size:var(--font-ui-small)}.kplex-color-preview-gate{position:absolute;width:10px;height:10px;left:-6px;top:calc(50% - 5px);border:1px solid var(--_kplex-preview-gate-stroke);border-radius:50%;background:var(--_kplex-preview-gate-fill)}.kplex-color-preview-gate.is-empty{left:auto;right:-6px;background:transparent}.kplex-color-preview-label{position:absolute;left:4%;bottom:8%;font-size:var(--font-ui-smaller);padding:2px 4px;border-radius:var(--radius-s);color:var(--_kplex-preview-label-text);background:var(--_kplex-preview-label-fill)}.kplex-color-preview-contrast{margin-top:var(--size-4-2);color:var(--text-muted);font-size:var(--font-ui-smaller)}@media (max-width: 500px){.kplex-color-previews{grid-template-columns:minmax(0,1fr)}}.kplex-color-source-editor select{width:100%;max-width:100%;min-width:0}.kplex-color-source-editor button{white-space:normal;overflow-wrap:anywhere;max-width:100%}.kplex-lens-fields{border:0;margin:0;padding:0;min-width:0}.kplex-palette-controls,.kplex-palette-row{display:flex;align-items:center;gap:.5em;flex-wrap:wrap}.kplex-palette-controls input{flex:1;min-width:8em}.kplex-palette-row{padding:var(--size-4-2) 0;border-bottom:var(--border-width) solid var(--background-modifier-border)}.kplex-palette-name{flex:1;min-width:8em;overflow-wrap:anywhere}.kplex-compass-background{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.kplex-compass-intensity{max-width:26em}@media (forced-colors: active){.kplex-compass-background,.kplex-color-preview-compass{display:none}}.kplex-color-strips{display:flex;flex-direction:column;gap:3px;min-width:0}.kplex-color-strip{display:flex;align-items:center;gap:var(--size-4-2)}.kplex-color-strip-label{color:var(--text-muted);font-size:var(--font-ui-smaller);min-width:3.5em}.kplex-color-strip-cells{display:flex;gap:1px;min-width:0}.kplex-color-strip-cells .kplex-color-swatch{display:inline-flex;align-items:center;justify-content:center;width:28px;height:16px;border-radius:0;flex-shrink:1}.setting-item-control>.kplex-color-strips{margin-inline-end:var(--size-4-2)}.kplex-style-row>.kplex-color-strips{margin-inline-start:auto}.kplex-color-suggestion{display:flex;align-items:center;gap:var(--size-4-3)}.kplex-color-suggestion>.suggestion-content{flex:1;min-width:0;overflow-wrap:anywhere}.kplex-color-suggestion>.kplex-color-strips{flex-shrink:0}.kplex-color-suggestion .kplex-color-strip-label{min-width:0}.kplex-color-suggestion .kplex-color-strip-cells .kplex-color-swatch{width:18px;height:12px}.modal.kplex-scroll-editor-modal{display:flex;flex-direction:column;max-height:90vh}.modal.kplex-scroll-editor-modal .modal-content{display:flex;flex-direction:column;min-height:0;overflow:hidden}.kplex-style-editor-body,.kplex-publish-sections{flex:1 1 auto;min-height:0;overflow-y:auto;padding-inline-end:var(--size-4-2);padding-bottom:var(--size-4-3)}.kplex-style-editor-actions{flex:0 0 auto;padding-top:var(--size-4-2);background:var(--modal-background, var(--background-primary))}.kplex-style-editor-actions .setting-item{border-top:var(--border-width) solid var(--background-modifier-border);padding-bottom:0}.kplex-scroll-editor-modal .setting-item-control{min-width:0}.kplex-scroll-editor-modal .setting-item-control select{min-width:0;max-width:100%}.kplex-modal-action-row button{display:inline-flex;align-items:center;gap:var(--size-4-1)}.kplex-modal-action-row .setting-item-info{display:none}.kplex-modal-action-row .setting-item-control{flex:1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.modal button.kplex-icon-action{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;min-width:36px;height:36px;padding:8px;font-size:0}.modal button.kplex-icon-action .kplex-lucide{width:18px;height:18px;flex:0 0 18px}.modal.kplex-facet-preset-editor{width:min(1120px,94vw);max-width:94vw;height:min(900px,90vh)}.modal.kplex-facet-preset-editor .modal-content{flex:1 1 auto}.kplex-facet-preset-editor .setting-item-control{min-width:0}.kplex-facet-preset-editor .setting-item-control>input[type=text]{width:min(420px,100%)}.kplex-facet-preset-editor .setting-item-control select{max-width:100%}.kplex-theme-setting .setting-item-control{flex-wrap:wrap;gap:var(--size-4-2)}.kplex-theme-setting select{max-width:min(260px,100%)}.kplex-group-count{position:absolute;right:-10px;bottom:-13px;color:var(--text-muted);font-size:10px;line-height:1;pointer-events:none}.kplex-thought.is-relation-group{cursor:pointer}.kplex-view-error{position:absolute;top:var(--size-4-3);left:var(--size-4-3);z-index:40;display:flex;align-items:center;gap:var(--size-4-2);padding:var(--size-4-2);border:1px solid var(--background-modifier-border);border-radius:var(--radius-s);background:var(--background-primary);color:var(--text-normal);font-size:var(--font-ui-small)}.kplex-view-decorations{position:absolute;left:0;top:0;width:1px;height:1px;overflow:visible;pointer-events:none}.kplex-view-region rect,.kplex-view-region>path{fill:var(--background-secondary);fill-opacity:.24;stroke:var(--background-modifier-border);stroke-width:1}.kplex-area-frame.is-shaped-area{border:none}.kplex-area-shape{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.kplex-area-shape path{fill:none;stroke:var(--background-modifier-border-focus);stroke-width:1;stroke-dasharray:4 4}.kplex-area-frame.is-active .kplex-area-shape path{stroke:var(--interactive-accent);stroke-dasharray:none}.kplex-drop-area-shape{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:20}.kplex-drop-area-shape path{fill:var(--interactive-accent);fill-opacity:.15;stroke:var(--interactive-accent);stroke-width:2}.kplex-facet-anchor-preview{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr auto;gap:12px;padding:16px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-m)}.kplex-facet-anchor-focus{padding:6px;border:1px solid var(--interactive-accent);border-radius:var(--radius-s);text-align:center}.kplex-facet-anchor-categories{grid-area:2 / 2;display:flex;gap:6px}.kplex-facet-anchor-categories span{padding:6px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-s)}.kplex-facet-anchor-preview.is-vertical .kplex-facet-anchor-categories{flex-direction:column}.kplex-facet-anchor-preview.is-anchor-top .kplex-facet-anchor-focus{grid-area:1 / 2}.kplex-facet-anchor-preview.is-anchor-bottom .kplex-facet-anchor-focus{grid-area:3 / 2}.kplex-facet-anchor-preview.is-anchor-left .kplex-facet-anchor-focus{grid-area:2 / 1;align-self:center}.kplex-facet-anchor-preview.is-anchor-right .kplex-facet-anchor-focus{grid-area:2 / 3;align-self:center}.kplex-markdown-help-modal{width:min(760px,94vw)}.kplex-markdown-help-content{overflow-wrap:break-word}.kplex-markdown-help-content pre{overflow-x:auto}.kplex-facet-help-settings textarea{width:100%;min-height:180px}.kplex-facet-help-source{flex-direction:column;align-items:stretch;gap:12px}.kplex-facet-help-source .setting-item-info{margin-right:0}.kplex-facet-help-source .setting-item-control{width:100%}.kplex-ontology-description-setting{flex-direction:column;align-items:stretch;gap:var(--size-4-2)}.kplex-ontology-description-setting .setting-item-info{margin-right:0}.kplex-ontology-description-setting .setting-item-control{width:100%}.kplex-ontology-description-setting textarea{width:100%;min-width:0;resize:vertical}.kplex-preset-help-preview{padding:12px}.kplex-view-region.is-water rect{fill:var(--color-blue);fill-opacity:.06}.kplex-view-region.is-wood rect{fill:var(--color-green);fill-opacity:.06}.kplex-view-region.is-fire rect{fill:var(--color-red);fill-opacity:.06}.kplex-view-region.is-earth rect{fill:var(--color-yellow);fill-opacity:.06}.kplex-view-region.is-metal rect{fill:var(--color-purple);fill-opacity:.06}.kplex-view-region text{fill:var(--text-normal);font-size:16px}.kplex-view-region .kplex-view-region-count{fill:var(--text-muted);font-size:11px}.kplex-view-guide{stroke:var(--text-faint);stroke-width:1;stroke-dasharray:5 7;opacity:.5}.kplex-view-guide.is-generating{stroke:var(--text-muted);stroke-dasharray:none}.kplex-view-guide.is-regulating{stroke:var(--text-muted);stroke-dasharray:3 5}.kplex-view-guide.is-no-line{stroke:none}.kplex-view-guide-caption rect{fill:var(--background-primary);stroke:var(--background-modifier-border);stroke-width:1}.kplex-view-guide-caption text{fill:var(--text-muted)}.kplex-view-region .kplex-view-region-description{fill:var(--text-muted);font-size:12px}.kplex-view-heading{position:absolute;z-index:2;top:12px;left:50%;transform:translate(-50%);max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:var(--font-ui-small);pointer-events:none}.kplex-view-status{position:absolute;z-index:3;top:38px;left:12px;max-width:70%;color:var(--text-muted);font-size:var(--font-ui-small)}.kplex-node-badge{position:absolute;display:flex;align-items:center;padding:3px 8px;border-radius:var(--radius-s);border:1px solid var(--background-modifier-border);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:var(--font-semibold);pointer-events:none}.kplex-node-badge>span{overflow:hidden;text-overflow:ellipsis}.modal.kplex-portable-package-modal{width:min(1100px,94vw);max-width:94vw}.kplex-package-intro{display:flex;align-items:flex-start;gap:12px}.kplex-package-intro p{flex:1;margin-top:0}.kplex-package-source{width:100%;min-height:140px;height:clamp(140px,24vh,260px);max-height:45vh;font-family:var(--font-monospace);resize:vertical}.kplex-package-json{white-space:pre-wrap;overflow-wrap:anywhere}.kplex-number-value{min-width:3em;text-align:end;font-variant-numeric:tabular-nums;color:var(--text-muted)}.kplex-number-setting .slider-value{display:none}.kplex-literal-opacity .setting-item{padding:0;border:0}.kplex-ontology-description{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:var(--font-ui-smaller)}.kplex-ontology-results .kplex-search-result{display:grid;gap:2px}.kplex-ontology-results .kplex-search-result small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre;text-align:left}.setting-item.kplex-periodic-pin-section{display:block;padding-block:var(--size-4-5)}.kplex-periodic-pin-section>.setting-item-info{width:100%;margin:0 0 var(--size-4-3);text-align:start}.kplex-periodic-pin-section>.setting-item-info>.setting-item-name{color:var(--text-normal);font-size:var(--font-ui-medium);font-weight:var(--font-semibold);white-space:normal;overflow:visible;text-overflow:clip}.kplex-periodic-pin-section>.setting-item-control{display:block;width:100%;min-width:0;padding:0;text-align:start}.kplex-periodic-pin-settings{width:100%;min-width:0}.kplex-periodic-pin-section .kplex-periodic-pin-settings .setting-item{align-items:center;flex-wrap:wrap;gap:var(--size-4-2) var(--size-4-4);padding-block:var(--size-4-3);padding-inline:0;border:0}.kplex-periodic-pin-section .kplex-periodic-pin-settings .setting-item:first-child{padding-top:0}.kplex-periodic-pin-section .kplex-periodic-pin-settings .setting-item:before{display:none}.kplex-periodic-pin-section .kplex-periodic-pin-settings :where(.setting-item:not(.kplex-form-field))>.setting-item-info{flex:1 1 12rem;min-width:0;margin:0;text-align:start}.kplex-periodic-pin-section .kplex-periodic-pin-settings :where(.setting-item:not(.kplex-form-field))>.setting-item-control{flex:1 1 16rem;min-width:0;padding:0;text-align:start}.kplex-periodic-pin-section .kplex-periodic-pin-toggle .setting-item-control{flex:0 0 auto}.kplex-periodic-pin-settings input[type=text],.kplex-periodic-pin-settings select{width:100%;min-width:0;max-width:100%}.kplex-periodic-pin-preview{margin-top:var(--size-4-2);padding:var(--size-4-3);border-radius:var(--radius-s);background:var(--background-secondary);color:var(--text-muted);line-height:1.5;text-align:start;white-space:normal;overflow-wrap:anywhere}.kplex-periodic-pin-preview>div{margin-top:var(--size-4-1)}.kplex-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--background-modifier-border);margin-bottom:16px;padding-bottom:8px}.kplex-tabs>[role=tab]{flex:1 1 140px;box-shadow:none}.kplex-tabs>[aria-selected=true]{color:var(--text-accent);background:var(--background-modifier-active-hover);outline:1px solid var(--interactive-accent)}.kplex-creation-types{min-width:0}.kplex-add-related-footer>.kplex-creation-types+.kplex-creation-completion{margin-top:var(--kplex-form-gap)}.kplex-creation-types>.kplex-tabs{gap:4px;margin-bottom:0;padding-bottom:0;border-bottom:0}.kplex-creation-types>.kplex-tabs>[role=tab]{flex:1 1 90px;min-width:0;min-height:var(--input-height);height:auto;white-space:normal;overflow-wrap:anywhere;border-end-start-radius:0;border-end-end-radius:0}.kplex-creation-type-panel{min-width:0;padding:16px;border:1px solid var(--background-modifier-border);border-radius:0 0 var(--radius-m) var(--radius-m)}.kplex-creation-type-panel>.kplex-form-actions{margin-bottom:0}.kplex-create-folder-note-modal [role=tabpanel][hidden]{display:none}.kplex-ownership-preview{padding:12px 16px;margin-bottom:12px;border:1px solid var(--background-modifier-border);border-radius:var(--radius-m)}.kplex-ownership-preview.is-after{border-color:var(--interactive-accent)}.kplex-ownership-preview h4{margin:0 0 8px;font-size:var(--font-ui-small);color:var(--text-muted)}.kplex-ownership-preview p{margin:0;overflow-wrap:anywhere}.kplex-import-files input{width:100%}.kplex-modal{--kplex-form-gap: 16px;--kplex-control-gap: 8px;--kplex-control-height: var(--input-height, 30px);font-family:var(--font-interface);font-size:var(--font-ui-medium)}.kplex-modal .modal-content{font-family:var(--font-interface);font-size:var(--font-ui-medium)}.modal.kplex-modal .modal-content .setting-item{padding:0;margin-block:0 var(--kplex-form-gap);border:0;gap:var(--kplex-control-gap)}.modal.kplex-modal .setting-item-name,.kplex-modal .kplex-form-option>label{font-size:var(--font-ui-medium);font-weight:var(--font-normal)}.modal.kplex-modal .setting-item-description,.kplex-modal .kplex-form-status{font-family:var(--font-interface);font-size:var(--font-ui-small);line-height:1.5}.kplex-modal .setting-item-control{min-width:0;gap:var(--kplex-control-gap)}.kplex-form-field{display:flex;flex-direction:column;align-items:stretch;gap:8px}.kplex-form-field>.setting-item-info{margin:0;width:100%;flex:0 0 auto}.kplex-form-field>.setting-item-control{width:100%;display:flex;flex-wrap:wrap;min-width:0;flex:0 0 auto}.kplex-form-field>.setting-item-control>input[type=text],.kplex-form-field>.setting-item-control>select,.kplex-form-field>.setting-item-control>textarea,.kplex-form-field>.setting-item-control>div{width:100%;min-width:0;flex:1 1 100%}.kplex-form-field textarea{width:100%;min-width:0;resize:vertical}.kplex-modal .kplex-form-field>.setting-item-control>select{max-width:none}.kplex-modal .kplex-predicate-expression-field textarea,.kplex-modal textarea.kplex-package-source,.kplex-modal textarea.kplex-support-report-preview{font-family:var(--font-monospace)}.kplex-form-option{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,1fr);align-items:center;gap:8px 16px;width:100%;margin-block:16px;font-family:var(--font-interface);font-size:var(--font-ui-medium)}.kplex-form-option>label{margin:0;color:var(--text-normal);text-align:start}.kplex-form-option>select{width:100%;max-width:none;margin:0}.kplex-modal .kplex-creation-completion-row{margin:0;padding:0}.kplex-modal .kplex-add-related-footer{display:block;width:100%;margin:0;padding:0}.kplex-modal .kplex-add-related-form{gap:var(--kplex-form-gap)}.kplex-modal .kplex-add-related-form .kplex-form-option{margin:0}.kplex-modal .kplex-add-related-compose-row{grid-template-columns:minmax(0,1fr)}.kplex-modal .kplex-add-related-action-area{justify-self:end}.kplex-modal .kplex-create-folder-row{display:flex;flex-direction:column;align-items:stretch;gap:8px}.kplex-modal .kplex-create-folder-row .kplex-folder-path-input{width:100%;max-width:none}.kplex-react-field>label{font-size:var(--font-ui-medium)}.kplex-react-field>input,.kplex-react-field>.kplex-search-shell{width:100%;min-width:0;max-width:none}.modal.kplex-modal .modal-content .kplex-form-actions,.modal.kplex-modal .modal-content .kplex-modal-action-row{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-block:20px 0;padding-block:16px 0;border-top:var(--border-width) solid var(--background-modifier-border)}.kplex-form-actions>.setting-item-info{margin:0;min-width:0;flex:1 1 180px}.kplex-form-actions>.setting-item-info>.setting-item-name:empty,.kplex-form-actions>.setting-item-info>.setting-item-description:empty{display:none}.kplex-form-actions>.setting-item-control{flex:1 1 auto;margin-inline-start:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.kplex-modal button.kplex-icon-action,.kplex-modal .kplex-add-related-type-button,.kplex-modal .kplex-edit-selected-ontology{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:var(--kplex-control-height);width:var(--kplex-control-height);height:var(--kplex-control-height);padding:8px;font-size:0}.kplex-modal .kplex-icon-action svg{width:18px;height:18px;flex:0 0 18px}.kplex-icon-action-label{display:none}.kplex-modal .kplex-add-related-action-area,.kplex-modal .kplex-add-related-create-actions{height:auto}.kplex-modal .kplex-add-related-create-actions{align-items:center}.kplex-relationship-field-control{width:100%;display:flex;align-items:center;gap:8px}.kplex-relationship-field-control>.kplex-add-related-role-select{flex:0 1 160px;min-width:90px}.kplex-relationship-field-control>.kplex-add-related-ontology-search{flex:1 1 160px;min-width:0;max-width:none}.kplex-import-modal .kplex-relationship-field-control{margin-block:0 16px}.kplex-native-combobox{position:relative}.kplex-native-combobox>input[type=text]{height:100%;width:100%;min-width:0;box-sizing:border-box;padding-block:0;padding-inline:24px 0;font:inherit;color:inherit;background:transparent;border:0;box-shadow:none}.kplex-native-combobox>input[type=text]:focus{box-shadow:none}.kplex-template-picker>input[type=text]{padding-inline:0 24px}.kplex-drawing-template>.kplex-template-picker{flex:0 0 auto}.kplex-native-combobox:focus-within{box-shadow:0 0 0 3px var(--background-modifier-border-focus)}.kplex-native-combobox .kplex-search-icon{top:50%;transform:translateY(-50%)}.kplex-native-combobox>.kplex-fuzzy-disclosure{inset-block:0;inset-inline-end:0;width:var(--dropdown-padding-end, 2.4em);height:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}@media (max-width: 480px){.kplex-form-option{grid-template-columns:minmax(0,1fr)}.kplex-relationship-field-control{flex-wrap:wrap}.kplex-relationship-field-control>.kplex-add-related-role-select{flex-basis:100%}}@media (pointer: coarse){.kplex-modal{--kplex-control-height: 44px}}.kplex-edge-source-actions{flex-wrap:wrap}.kplex-edge-source-actions .kplex-edge-source-action{max-width:100%;height:auto;white-space:normal;overflow-wrap:anywhere;text-align:start}.kplex-edge-source-actions .kplex-edge-source-action svg{flex:0 0 14px}.kplex-relationship-selection{width:100%;min-width:0}.kplex-relationship-selection-detail{margin-top:var(--size-4-2);white-space:pre-line;overflow-wrap:anywhere}.modal.kplex-modal .kplex-relationship-selection-detail{font-size:var(--font-ui-smaller, var(--font-ui-small))}.modal.kplex-modal .kplex-form-select-row{display:grid;grid-template-columns:fit-content(calc(40% - var(--kplex-control-gap))) minmax(0,1fr);align-items:center}.kplex-form-select-row>.setting-item-info{margin:0;max-width:200px;min-width:0;overflow-wrap:anywhere}.kplex-form-select-row>.setting-item-control{width:100%}.kplex-form-select-row>.setting-item-control>select{width:100%;max-width:none}.kplex-form-select-row>.setting-item-description{grid-column:1 / -1}.kplex-form-select-row>.setting-item-description:empty{display:none}.kplex-modal button.kplex-icon-action{gap:0}@media (max-width: 420px){.modal.kplex-modal .kplex-form-select-row{grid-template-columns:minmax(0,1fr)}.kplex-form-select-row>.setting-item-info{max-width:none}}.kplex-style-color-row>.setting-item-control{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--size-4-2)}.kplex-style-color-row button{flex:1 1 0;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.kplex-style-row .kplex-number-value{flex:0 0 7.5em;min-width:0;white-space:nowrap}.kplex-style-row .setting-item-control>input[type=range]{flex:1 1 0;min-width:0}.kplex-form-options .setting-item:not(.kplex-form-field)>.setting-item-info{flex:1 1 50%;min-width:0;margin:0}.kplex-form-options .setting-item:not(.kplex-form-field)>.setting-item-control{flex:1 1 50%;min-width:0}.kplex-form-options .setting-item-control>select{width:100%;max-width:none}.kplex-form-disclosure{margin-block-end:var(--kplex-form-gap, var(--size-4-4))}@media (max-width: 420px){.kplex-form-options .setting-item:not(.kplex-form-field){flex-wrap:wrap}.kplex-form-options .setting-item:not(.kplex-form-field)>.setting-item-info,.kplex-form-options .setting-item:not(.kplex-form-field)>.setting-item-control{flex-basis:100%}}.kplex-modal .kplex-form-inline{display:grid;grid-template-columns:minmax(0,5em) minmax(0,1fr);align-items:center;gap:var(--kplex-control-gap);min-width:0;width:100%}.kplex-form-inline>label{margin:0;overflow-wrap:anywhere}.kplex-modal .kplex-form-inline>:not(label):not(.kplex-field-actions){min-width:0;width:100%;max-width:none;box-sizing:border-box}.kplex-modal .kplex-form-inline.has-actions{grid-template-columns:minmax(0,5em) minmax(0,1fr) auto}.kplex-field-actions{display:flex;align-items:center;justify-content:flex-end;min-width:0;gap:var(--kplex-control-gap)}.kplex-field-actions .kplex-add-related-action-area{min-width:0;height:auto}.kplex-creation-types{container-type:inline-size}.kplex-creation-type-panel{padding:12px}.kplex-creation-type-actions{display:flex;justify-content:flex-end}.kplex-creation-status{margin-top:8px;color:var(--text-muted);font-size:var(--font-ui-small);overflow-wrap:anywhere}.kplex-creation-status .kplex-add-related-create-hint{margin-top:0}@container (max-width: 360px){.kplex-modal .kplex-drawing-template.has-actions{grid-template-columns:minmax(0,1fr) auto}.kplex-drawing-template.has-actions>label{grid-column:1 / -1}.kplex-drawing-template.has-actions>.kplex-template-picker{grid-column:1}.kplex-drawing-template.has-actions>.kplex-field-actions{grid-column:2}}.kplex-publish-modal{width:min(760px,94vw)}.modal.kplex-publish-modal .modal-content>.kplex-form-actions{flex:0 0 auto;margin-block-start:var(--size-4-2);padding-block-start:var(--size-4-2)}.kplex-publish-output-actions[hidden]{display:none}.kplex-publish-progress{display:block;width:min(14rem,100%);margin-block-start:var(--size-4-1);accent-color:var(--interactive-accent)}.kplex-publish-rules .setting-item-description code{display:block;margin-block-start:var(--size-4-1)}.kplex-publish-step{min-width:0;overflow-wrap:anywhere}.kplex-publish-step-heading{flex:0 0 auto;padding-block-end:var(--size-4-3)}.kplex-publish-step-heading>:is(h2,p){margin-block:0}.kplex-publish-step-heading>h2{margin-block:var(--size-4-1)}.kplex-publish-step-heading>p{color:var(--text-muted);overflow-wrap:anywhere}.kplex-publish-step-count{font-size:var(--font-ui-small)}.kplex-publish-step>h3,.kplex-publish-rules>h3,.kplex-publish-properties>h3{margin-block:12px 4px}.kplex-publish-choice.dropdown{width:100%;min-width:0;max-width:none}.kplex-publish-choice>input[type=text]{padding-inline:0 var(--dropdown-padding-end, 2.4em)}.kplex-publish-step .kplex-form-select-row>.setting-item-control>div{flex:1 1 100%;min-width:0}.kplex-publish-setup-actions>.setting-item-control{flex-wrap:wrap}.kplex-publish-selected{margin-block-end:var(--kplex-form-gap);margin-inline-start:var(--size-4-3);padding:var(--size-4-2) var(--size-4-3);border:var(--border-width) solid var(--background-modifier-border);border-radius:var(--radius-s)}.modal.kplex-publish-modal .kplex-publish-selected>.setting-item{margin-block-end:0}.modal.kplex-publish-modal .kplex-publish-selected>.setting-item+.setting-item{margin-block-start:var(--size-4-2);padding-block-start:var(--size-4-2);border-block-start:var(--border-width) solid var(--background-modifier-border)}.kplex-publish-options{border-block-start:var(--border-width) solid var(--background-modifier-border);padding-block-start:var(--kplex-form-gap)}.kplex-publish-list{margin-block:8px}.kplex-publish-list summary{cursor:pointer}.kplex-publish-list li{overflow-wrap:anywhere}.hover-popover.kplex-publish-hover{z-index:max(var(--layer-popover, 30),calc(var(--layer-modal, 50) + 1))}.modal.kplex-publish-modal .modal-content [hidden]{display:none}}.kplex-publication-demo{margin:0;background:#f5f7fa}.kplex-publication-licenses{padding:.5rem 1rem;color:CanvasText;background:Canvas;font:.875rem/1.5 system-ui,sans-serif}.kplex-publication-licenses pre{white-space:pre-wrap;overflow-wrap:anywhere}.kplex-publication{--background-primary: #f5f7fa;--background-modifier-border: #a7b5bf;--text-normal: #152934;--text-muted: #47606d;--interactive-accent: #207364;--kplex-publication-panel: #fff;--kplex-publication-link: #6f868c;--kplex-publication-card: #fff;--kplex-publication-center: #164f47;--kplex-publication-center-text: #fff;--kplex-publication-control-size: 2rem;--shadow-s: 0 2px 6px #1e374120;display:grid;grid-template-rows:auto minmax(18rem,1fr) auto;min-height:29rem;min-width:0;color:var(--text-normal);background:var(--background-primary);font:1rem/1.5 system-ui,sans-serif}.kplex-publication-demo .kplex-publication{min-height:100vh;min-height:100dvh}.kplex-publication-header,.kplex-publication-note{background:var(--kplex-publication-panel);padding:.8rem clamp(1rem,4vw,3rem)}.kplex-publication-header{display:flex;align-items:center;justify-content:space-between;gap:.65rem 1rem;flex-wrap:wrap;border-bottom:1px solid var(--background-modifier-border)}.kplex-publication-header h1,.kplex-publication-note h2{margin:0;font-size:1.05rem}.kplex-publication-header span{font-size:.85rem;color:var(--text-muted)}.kplex-publication-heading{display:flex;align-items:center;gap:.375rem;min-width:0}.kplex-publication-heading h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kplex-publication-header .kplex-publication-brand{display:grid;place-items:center;flex:none;width:var(--kplex-publication-control-size);height:var(--kplex-publication-control-size);padding:0;border-radius:.4rem;background:transparent;border:0;color:var(--interactive-accent);font:inherit;cursor:pointer}.kplex-publication-brand:is(:hover,[aria-expanded=true]){background:var(--background-primary)}.kplex-publication-controls{display:flex;flex-wrap:wrap;gap:.25rem}.kplex-publication .kplex-publication-icon-control{display:inline-grid;place-items:center;flex:none;box-sizing:border-box;width:var(--kplex-publication-control-size);min-width:0;height:var(--kplex-publication-control-size);min-height:0;padding:0;border:1px solid var(--background-modifier-border);border-radius:.45rem;background:var(--kplex-publication-panel);color:inherit;font:inherit;cursor:pointer;touch-action:manipulation}.kplex-publication-icon-control:disabled{opacity:.45;cursor:default}.kplex-publication .kplex-publication-icon-control:is([aria-pressed=true],[aria-expanded=true]){border-color:var(--interactive-accent);color:var(--interactive-accent)}.kplex-publication-icon-control svg{pointer-events:none}.kplex-publication :focus-visible{outline:2px solid var(--interactive-accent);outline-offset:3px}.kplex-publication-viewport{overflow:hidden;position:relative;color:var(--text-muted);background-image:radial-gradient(var(--background-modifier-border) .7px,transparent .7px);background-size:20px 20px;touch-action:none;user-select:none;cursor:grab}.kplex-publication-viewport:active{cursor:grabbing}.kplex-publication .kplex-camera{left:50%;top:50%}.kplex-publication-exits{position:absolute;inset:0;pointer-events:none}.kplex-publication .kplex-publication-strip-scroll{touch-action:pan-y;scrollbar-color:var(--background-modifier-border) transparent}.kplex-publication .kplex-publication-strip-scroll:focus-visible{outline-offset:-2px}.kplex-publication .kplex-thought{background:var(--kplex-publication-card);color:var(--text-normal);border:1px solid var(--background-modifier-border);border-radius:12px;font-weight:600}.kplex-publication .kplex-role-center{background:var(--kplex-publication-center);color:var(--kplex-publication-center-text);border-color:transparent;border-radius:18px}.kplex-publication .kplex-gate{pointer-events:auto}.kplex-publication .kplex-edge.is-highlighted .kplex-edge-visible{stroke-width:2.5px}.kplex-publication-branch{position:absolute;z-index:15;width:21px;height:21px;padding:0;border:1px solid var(--background-modifier-border);border-radius:50%;background:var(--kplex-publication-panel);color:var(--text-normal);font:14px/1 system-ui,sans-serif;cursor:pointer}.kplex-publication-note{border-top:1px solid var(--background-modifier-border)}.kplex-publication-note p{color:var(--text-muted);margin:.3rem 0 0;max-width:70ch}.kplex-publication-opening{margin:1.2rem;font:1rem/1.5 system-ui,sans-serif}.kplex-publication-production{--background-primary: var(--kplex-published-light-background-primary, #f5f7fa);--background-modifier-border: var(--kplex-published-light-background-modifier-border, #a7b5bf);--text-normal: var(--kplex-published-light-text-normal, #152934);--text-muted: var(--kplex-published-light-text-muted, #47606d);--interactive-accent: var(--kplex-published-light-interactive-accent, #207364);--kplex-publication-panel: var(--kplex-published-light-kplex-publication-panel, #fff);--kplex-publication-link: var(--kplex-published-light-kplex-publication-link, #6f868c);--background-primary-alt: var(--kplex-publication-panel);--background-secondary: var(--kplex-publication-panel);--background-secondary-alt: var(--background-primary);--background-modifier-hover: var(--background-primary);--text-accent: var(--interactive-accent);--text-faint: var(--text-muted);--input-height: var(--kplex-publication-control-size);position:relative;overflow-x:clip;grid-template-rows:auto minmax(24rem,1fr) auto}.kplex-publication-demo .kplex-publication-production{height:100vh;height:100dvh;grid-template-rows:auto minmax(0,1fr) auto}.kplex-publication-production .kplex-publication-header{container-type:inline-size;justify-content:flex-start;gap:.375rem .625rem;padding:.4rem clamp(.5rem,1.4vw,1.25rem)}.kplex-publication-production .kplex-publication-header h1{max-width:20rem}.kplex-publication-header>.kplex-publication-controls{flex:none;max-width:100%}.kplex-publication-tools{display:grid;grid-template-columns:minmax(0,1fr) clamp(9rem,32%,21rem);gap:.375rem .625rem;align-items:start;flex:1 1 26rem;min-width:0}.kplex-publication-search{display:flex;align-items:flex-start;gap:.25rem;min-width:0}.kplex-publication-tools .kplex-search-shell{flex:1 1 auto;min-width:0;max-width:none}.kplex-publication-tools .kplex-search-shell input{width:100%}.kplex-publication-production .kplex-search-results{max-width:calc(100% - 1rem)}.kplex-publication-tools input{min-width:0;max-width:100%;min-height:var(--input-height);box-sizing:border-box;border:1px solid var(--background-modifier-border);border-radius:.45rem;background:var(--kplex-publication-panel);color:inherit;font:inherit;padding:.3rem .55rem}.kplex-publication-tools input::placeholder{color:var(--text-muted)}.kplex-publication-tools button,.kplex-publication-note button,.kplex-publication-opening button{min-height:2.75rem;border:1px solid var(--background-modifier-border);border-radius:.45rem;background:var(--kplex-publication-panel);color:inherit;font:inherit;cursor:pointer;padding:.35rem .6rem}.kplex-publication-tools button[aria-pressed=true]{background:var(--background-primary);border-color:var(--interactive-accent)}.kplex-publication-search-options{position:relative;flex:none}.kplex-publication-search-options [role=status]{position:absolute;z-index:25;inset-block-start:100%;inset-inline-end:0;width:max-content;max-width:13rem;padding:.25rem .4rem;border-radius:.3rem;background:var(--kplex-publication-panel)}.kplex-publication-address{position:relative;margin:0;min-width:0}.kplex-publication-address .kplex-form-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem;align-items:center}.kplex-publication-address .kplex-form-inline label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.kplex-publication-address input{width:100%}.kplex-publication-address-matches{position:absolute;right:0;top:100%;z-index:5;max-width:100%;max-height:min(20rem,52vh);overflow:auto;padding:.65rem;box-sizing:border-box;background:var(--kplex-publication-panel);color:var(--text-normal);border:1px solid var(--background-modifier-border);border-radius:.45rem;box-shadow:var(--shadow-s)}.kplex-publication-address-matches ul{list-style:none;padding:0}.kplex-publication-address-matches button{max-width:100%;overflow-wrap:anywhere;text-align:start}.kplex-publication-trail{display:flex;align-items:center;gap:.65rem;min-width:0;background:var(--background-secondary);font-size:.875rem}.kplex-publication-pins{flex:1 1 100%}.kplex-publication-history{padding:.25rem clamp(.75rem,2vw,1.5rem);border-top:1px solid var(--background-modifier-border)}.kplex-publication-trail>span{flex:none;color:var(--text-muted)}.kplex-publication-trail ol{display:flex;align-items:center;gap:.3rem;min-width:0;margin:0;padding:.15rem 0;overflow-x:auto;list-style:none}.kplex-publication-trail li{flex:none;min-width:0}.kplex-publication-trail a{display:flex;align-items:center;gap:.3rem;max-width:min(18rem,55vw);padding:.25rem .55rem;border:1px solid var(--kplex-publication-trail-border, var(--background-modifier-border));border-radius:.75rem;color:inherit;text-decoration:none}.kplex-publication-trail a>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:inherit}.kplex-publication-trail a>svg{flex:none}.kplex-publication-trail a:hover,.kplex-publication-trail a[aria-current]{border-color:var(--interactive-accent)}.kplex-publication-address-menu{z-index:90;box-sizing:border-box;padding:.3rem;overflow:auto;background:var(--background-secondary);color:var(--text-normal);border:1px solid var(--background-modifier-border);border-radius:.45rem;box-shadow:var(--shadow-s)}.kplex-publication-address-menu :is(button,input){box-sizing:border-box;width:100%;min-height:2rem;padding:.25rem .5rem;color:inherit;background:var(--background-primary);font:inherit;border:1px solid var(--background-modifier-border);border-radius:.3rem}.kplex-publication-address-menu button{text-align:start;cursor:pointer}.kplex-publication-address-menu button+button{margin-block-start:.25rem}.kplex-publication-address-menu button:disabled{opacity:.6;cursor:default}.kplex-publication-address-menu p{margin:.25rem .4rem;color:var(--text-muted);font-size:.9em}.kplex-publication-canvas-menu{position:fixed}.kplex-publication-canvas-menu button{display:flex;align-items:center;gap:.45rem}.kplex-publication-canvas-menu a{display:flex;align-items:center;box-sizing:border-box;min-height:2rem;padding:.3rem .6rem;border-radius:.3rem;color:inherit;text-decoration:none}.kplex-publication-canvas-menu a:focus-visible{outline-offset:-2px}.kplex-publication-canvas-menu [aria-haspopup=menu]{margin-block:.25rem}.kplex-publication-canvas-menu [role=menu]{margin:0 0 .25rem .75rem}.kplex-publication-submenu-arrow{margin-inline-start:auto}.kplex-publication-menu-check{flex:0 0 1em;color:var(--interactive-accent)}.kplex-publication-canvas-menu :is(button,a):hover{background:var(--interactive-hover, var(--background-modifier-hover))}.kplex-publication-node-icon{flex:0 0 auto;margin-inline-end:4px;opacity:.88}.kplex-publication [data-publication-crosslink]:not(.is-highlighted,.is-dimmed){opacity:.5}.kplex-publication-workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-width:0;min-height:0}.kplex-publication-workspace[data-sidecar-dock=right]{grid-template-columns:minmax(0,1fr) var(--kplex-publication-divider-size) var(--kplex-publication-sidecar-size)}.kplex-publication-workspace[data-sidecar-dock=left]{grid-template-columns:var(--kplex-publication-sidecar-size) var(--kplex-publication-divider-size) minmax(0,1fr)}.kplex-publication-workspace[data-sidecar-dock=left]>*{grid-row:1}.kplex-publication-workspace[data-sidecar-dock=left]>.kplex-publication-note{grid-column:1}.kplex-publication-workspace[data-sidecar-dock=left]>.kplex-publication-divider{grid-column:2}.kplex-publication-workspace[data-sidecar-dock=left]>.kplex-publication-canvas{grid-column:3}.kplex-publication-workspace[data-sidecar-dock=bottom]{grid-template-rows:minmax(0,1fr) var(--kplex-publication-divider-size) var(--kplex-publication-sidecar-size)}.kplex-publication-divider{position:relative;z-index:1;display:grid;place-items:center;background:var(--kplex-publication-panel);cursor:col-resize;touch-action:none;user-select:none}.kplex-publication-divider:before{content:"";width:2px;height:2rem;border-radius:2px;background:var(--background-modifier-border)}.kplex-publication-divider:after{content:"";position:absolute;inset:0 -7px}.kplex-publication-divider:focus-visible{outline-offset:-2px}.kplex-publication-divider:is(:hover,:active,:focus-visible):before{background:var(--interactive-accent)}.kplex-publication-divider[aria-orientation=horizontal]{cursor:row-resize}.kplex-publication-divider[aria-orientation=horizontal]:before{width:2rem;height:2px}.kplex-publication-divider[aria-orientation=horizontal]:after{inset:-7px 0}.kplex-publication-canvas{position:relative;display:grid;min-width:0;min-height:0}.kplex-publication-camera-actions{position:absolute;z-index:20;bottom:.75rem;left:.75rem}.kplex-publication-status{position:absolute;top:.6rem;left:.75rem;right:8rem;pointer-events:none}.kplex-publication-status p{display:table;margin:0 0 .3rem;padding:.2rem .45rem;border-radius:.3rem;background:var(--kplex-publication-panel)}.kplex-publication-production .kplex-publication-note{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:1rem;border:0}.kplex-publication-sidecar-heading{display:flex;gap:.5rem;align-items:flex-start;justify-content:space-between;margin-bottom:.5rem}.kplex-publication-sidecar-heading h2{flex:1 1 9rem;min-width:0;font-size:1.25rem;overflow-wrap:anywhere}.kplex-publication-sidecar-actions{display:flex;flex:none;gap:.25rem}.kplex-publication-web-note{display:flex;flex-direction:column}.kplex-publication-web-source{margin-block-end:.6rem}.kplex-publication-web-source a{color:var(--interactive-accent)}.kplex-publication-web-frame{flex:1;width:100%;min-height:12rem;border:1px solid var(--background-modifier-border)}.kplex-publication-video-frame{flex:none;box-sizing:border-box;min-height:200px;border:0}.kplex-publication-github-preview{overflow-wrap:anywhere}.kplex-publication-github-preview h3{margin:.55rem 0}.kplex-publication-github-preview .kplex-publication-github-description{white-space:pre-wrap;color:var(--text-normal)}.kplex-publication-github-preview li+li{margin-block-start:.45rem}.kplex-publication-github-preview a{color:var(--interactive-accent)}.kplex-publication-note-content{min-width:0;overflow-wrap:anywhere}.kplex-publication-note-content :is(img,svg,audio,video){max-width:100%}.kplex-publication-note-content :is(img,svg,video){height:auto}.kplex-publication-note-content figure[data-publication-drawing]{margin-inline:0}.kplex-publication-note-content figure[data-publication-width]>img{width:var(--kplex-published-drawing-width)}.kplex-publication-note-content figure[data-publication-width]>svg{max-width:min(100%,var(--kplex-published-drawing-width))}.kplex-publication-note-content figure[data-publication-width][data-publication-height]>:is(img,svg){min-height:var(--kplex-published-drawing-height)}.kplex-publication-note-content figure[data-publication-height]:not([data-publication-width])>:is(img,svg){max-height:var(--kplex-published-drawing-height)}.kplex-publication-note-content img:not([src]){display:none}.kplex-publication-note-content a{color:var(--interactive-accent)}.kplex-publication-note-content svg a{cursor:pointer}.kplex-publication-note-content pre{overflow:auto;padding:.6rem;background:var(--background-primary)}.kplex-publication-note-content table{display:block;overflow:auto;border-collapse:collapse}.kplex-publication-note-content :is(td,th){padding:.2rem .45rem;border:1px solid var(--background-modifier-border)}.kplex-publication-note-content :is(blockquote,[data-callout]){padding:.2rem .65rem;margin-inline:0;border-inline-start:.2rem solid var(--interactive-accent)}@media (prefers-color-scheme: dark){.kplex-publication-demo{background:#141f25}.kplex-publication{--background-primary: #141f25;--background-modifier-border: #526c74;--text-normal: #edf5f6;--text-muted: #bdd0d4;--interactive-accent: #78cdb8;--kplex-publication-panel: #1b2b32;--kplex-publication-link: #89a6ac;--kplex-publication-card: #223940;--kplex-publication-center: #8ed9c4;--kplex-publication-center-text: #143028}.kplex-publication-production{--background-primary: var(--kplex-published-dark-background-primary, #141f25);--background-modifier-border: var(--kplex-published-dark-background-modifier-border, #526c74);--text-normal: var(--kplex-published-dark-text-normal, #edf5f6);--text-muted: var(--kplex-published-dark-text-muted, #bdd0d4);--interactive-accent: var(--kplex-published-dark-interactive-accent, #78cdb8);--kplex-publication-panel: var(--kplex-published-dark-kplex-publication-panel, #1b2b32);--kplex-publication-link: var(--kplex-published-dark-kplex-publication-link, #89a6ac)}}@container (max-width: 45rem){.kplex-publication-production .kplex-publication-heading{flex:1}.kplex-publication-tools{flex-basis:100%;grid-template-columns:minmax(0,1fr) minmax(0,.8fr)}}@container (max-width: 25rem){.kplex-publication-tools{grid-template-columns:minmax(0,1fr)}.kplex-publication-header .kplex-publication-heading h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.95rem;line-height:1.15;white-space:normal;overflow-wrap:anywhere}}@media (max-width: 46rem){.kplex-publication-demo .kplex-publication-production{grid-template-rows:auto minmax(20rem,1fr) auto}.kplex-publication-production .kplex-publication-note{padding:.65rem .75rem}.kplex-publication-camera-actions{bottom:.45rem;inset-inline:.5rem;pointer-events:none}.kplex-publication-camera-actions button{pointer-events:auto}}@media (pointer: coarse){.kplex-publication{--kplex-publication-control-size: 2.75rem}.kplex-publication-canvas-menu :is(button,a){min-height:2.75rem}.kplex-publication-tools input{font-size:max(16px,1em)}}.kplex-publication-production{color-scheme:light dark;--background-primary: var(--kplex-published-author-background-primary, var(--kplex-reader-legacy-background-primary, light-dark(#ffffff, #1e1e1e)));--background-modifier-border: var(--kplex-published-author-background-modifier-border, var(--kplex-reader-legacy-background-modifier-border, light-dark(#e4e4e4, #373737)));--text-normal: var(--kplex-published-author-text-normal, var(--kplex-reader-legacy-text-normal, light-dark(#222222, #dadada)));--text-muted: var(--kplex-published-author-text-muted, var(--kplex-reader-legacy-text-muted, light-dark(#575757, #b3b3b3)));--interactive-accent: var(--kplex-published-author-interactive-accent, var(--kplex-reader-legacy-interactive-accent, light-dark(#7852ee, #a882ff)));--kplex-publication-panel: var(--kplex-published-author-kplex-publication-panel, var(--kplex-reader-legacy-kplex-publication-panel, light-dark(#f6f6f6, #262626)));--kplex-publication-link: var(--kplex-published-author-kplex-publication-link, var(--kplex-reader-legacy-kplex-publication-link, light-dark(#8b8b8b, #888888)));--background-secondary: var(--kplex-published-author-background-secondary, var(--kplex-publication-panel));--background-modifier-hover: var(--kplex-published-author-background-modifier-hover, light-dark(#ebebeb, #353535));--text-faint: var(--kplex-published-author-text-faint, var(--text-muted));--interactive-normal: var(--kplex-published-author-interactive-normal, light-dark(#ffffff, #333333));--interactive-hover: var(--kplex-published-author-interactive-hover, light-dark(#fafafa, #3f3f3f));--text-on-accent: var(--kplex-published-author-text-on-accent, #ffffff);--kplex-publication-card: var(--background-primary);--kplex-publication-center: var(--interactive-accent);--kplex-publication-center-text: var(--text-on-accent);--kplex-reader-font-interface: var(--kplex-published-author-font-interface, system-ui);--kplex-reader-font-text: var(--kplex-published-author-font-text, system-ui);--kplex-reader-font-monospace: var(--kplex-published-author-font-monospace, ui-monospace);--kplex-reader-paragraph-spacing: var(--kplex-published-author-p-spacing, 1em);--kplex-reader-link: var(--kplex-published-author-link-color, var(--interactive-accent));--kplex-reader-code-bg: var(--kplex-published-author-code-background, var(--background-secondary));--kplex-reader-code-color: var(--kplex-published-author-code-normal, var(--text-normal));font-family:var(--kplex-reader-font-interface),system-ui,sans-serif;font-size:var(--kplex-published-author-font-ui-medium, 14px)}@media (prefers-color-scheme: light){.kplex-publication-production{--kplex-reader-legacy-background-primary: var(--kplex-published-light-background-primary);--kplex-reader-legacy-background-modifier-border: var(--kplex-published-light-background-modifier-border);--kplex-reader-legacy-text-normal: var(--kplex-published-light-text-normal);--kplex-reader-legacy-text-muted: var(--kplex-published-light-text-muted);--kplex-reader-legacy-interactive-accent: var(--kplex-published-light-interactive-accent);--kplex-reader-legacy-kplex-publication-panel: var(--kplex-published-light-kplex-publication-panel);--kplex-reader-legacy-kplex-publication-link: var(--kplex-published-light-kplex-publication-link)}}@media (prefers-color-scheme: dark){.kplex-publication-production{--kplex-reader-legacy-background-primary: var(--kplex-published-dark-background-primary);--kplex-reader-legacy-background-modifier-border: var(--kplex-published-dark-background-modifier-border);--kplex-reader-legacy-text-normal: var(--kplex-published-dark-text-normal);--kplex-reader-legacy-text-muted: var(--kplex-published-dark-text-muted);--kplex-reader-legacy-interactive-accent: var(--kplex-published-dark-interactive-accent);--kplex-reader-legacy-kplex-publication-panel: var(--kplex-published-dark-kplex-publication-panel);--kplex-reader-legacy-kplex-publication-link: var(--kplex-published-dark-kplex-publication-link)}}.kplex-publication-production .kplex-publication-viewport{background-color:var(--kplex-published-author-kplex-publication-canvas, var(--background-primary));background-image:none}.kplex-publication-production .kplex-publication-header{background:var(--background-secondary)}.kplex-publication-production .kplex-publication-tools input{border-radius:var(--kplex-published-author-input-radius, .35rem);background:var(--background-primary)}.kplex-publication-production :is(.kplex-publication-tools,.kplex-publication-note,.kplex-publication-controls) :is(button,select){border-radius:var(--kplex-published-author-button-radius, .35rem);background:var(--interactive-normal)}.kplex-publication-production :is(.kplex-publication-tools,.kplex-publication-note,.kplex-publication-controls) :is(button,select):hover:not(:disabled){background:var(--interactive-hover)}.kplex-publication-production .kplex-publication-tools button[aria-pressed=true]{background:var(--interactive-accent);color:var(--text-on-accent)}.kplex-publication-production .kplex-publication-note{background:var(--background-primary)}.kplex-publication-production .kplex-publication-sidecar-heading h2{color:var(--kplex-published-author-inline-title-color, var(--text-normal));font-family:var(--kplex-published-author-inline-title-font, var(--kplex-reader-font-text)),system-ui,sans-serif;font-size:var(--kplex-published-author-inline-title-size, 1.5em);font-weight:var(--kplex-published-author-inline-title-weight, 700);line-height:1.25}.kplex-publication-production .kplex-publication-note-content{color:var(--text-normal);font-family:var(--kplex-reader-font-text),system-ui,sans-serif;font-size:var(--kplex-published-author-font-text-size, 16px);line-height:var(--kplex-published-author-line-height-normal, 1.5)}.kplex-publication-production .kplex-publication-note-content p{color:inherit;margin:0 0 var(--kplex-reader-paragraph-spacing);max-width:none}.kplex-publication-production .kplex-publication-note-content :is(h1,h2,h3,h4,h5,h6){margin:var(--kplex-published-author-heading-spacing, 1.3em) 0 .45em}.kplex-publication-production .kplex-publication-note-content>:first-child{margin-block-start:0}.kplex-publication-production .kplex-publication-note-content h1{font:var(--kplex-published-author-h1-style, normal) var(--kplex-published-author-h1-weight, 700) var(--kplex-published-author-h1-size, 1.802em)/var(--kplex-published-author-h1-line-height, 1.3) var(--kplex-published-author-h1-font, var(--kplex-reader-font-text)),system-ui,sans-serif;color:var(--kplex-published-author-h1-color, var(--text-normal))}.kplex-publication-production .kplex-publication-note-content h2{font:var(--kplex-published-author-h2-style, normal) var(--kplex-published-author-h2-weight, 700) var(--kplex-published-author-h2-size, 1.602em)/var(--kplex-published-author-h2-line-height, 1.3) var(--kplex-published-author-h2-font, var(--kplex-reader-font-text)),system-ui,sans-serif;color:var(--kplex-published-author-h2-color, var(--text-normal))}.kplex-publication-production .kplex-publication-note-content h3{font:var(--kplex-published-author-h3-style, normal) var(--kplex-published-author-h3-weight, 600) var(--kplex-published-author-h3-size, 1.424em)/var(--kplex-published-author-h3-line-height, 1.3) var(--kplex-published-author-h3-font, var(--kplex-reader-font-text)),system-ui,sans-serif;color:var(--kplex-published-author-h3-color, var(--text-normal))}.kplex-publication-production .kplex-publication-note-content h4{font:var(--kplex-published-author-h4-style, normal) var(--kplex-published-author-h4-weight, 600) var(--kplex-published-author-h4-size, 1.266em)/var(--kplex-published-author-h4-line-height, 1.3) var(--kplex-published-author-h4-font, var(--kplex-reader-font-text)),system-ui,sans-serif;color:var(--kplex-published-author-h4-color, var(--text-normal))}.kplex-publication-production .kplex-publication-note-content h5{font:var(--kplex-published-author-h5-style, normal) var(--kplex-published-author-h5-weight, 600) var(--kplex-published-author-h5-size, 1.125em)/var(--kplex-published-author-h5-line-height, 1.3) var(--kplex-published-author-h5-font, var(--kplex-reader-font-text)),system-ui,sans-serif;color:var(--kplex-published-author-h5-color, var(--text-normal))}.kplex-publication-production .kplex-publication-note-content h6{font:var(--kplex-published-author-h6-style, normal) var(--kplex-published-author-h6-weight, 600) var(--kplex-published-author-h6-size, 1em)/var(--kplex-published-author-h6-line-height, 1.3) var(--kplex-published-author-h6-font, var(--kplex-reader-font-text)),system-ui,sans-serif;color:var(--kplex-published-author-h6-color, var(--text-normal))}.kplex-publication-production .kplex-publication-note-content a{color:var(--kplex-reader-link)}.kplex-publication-production .kplex-publication-note-content a[href^=http]{color:var(--kplex-published-author-link-external-color, var(--kplex-reader-link))}.kplex-publication-production .kplex-publication-note-content a:hover{color:var(--kplex-published-author-link-color-hover, var(--kplex-reader-link))}.kplex-publication-production .kplex-publication-note-content :is(code,pre){background:var(--kplex-reader-code-bg);color:var(--kplex-reader-code-color);border-radius:.25em;font-family:var(--kplex-reader-font-monospace),ui-monospace,monospace;font-size:.9em}.kplex-publication-production .kplex-publication-note-content code{padding:.1em .25em}.kplex-publication-production .kplex-publication-note-content pre{padding:.85em}.kplex-publication-production .kplex-publication-note-content pre code{padding:0;font-size:1em}.kplex-publication-production .kplex-publication-note-content mark{background:var(--kplex-published-author-text-highlight-bg, #fff3a3);color:inherit}.kplex-publication-production .kplex-publication-note-content hr{border:0;border-top:1px solid var(--background-modifier-border)}.kplex-publication-production .kplex-publication-note-content :is(td,th){border-color:var(--kplex-published-author-table-border-color, var(--background-modifier-border));padding:.35em .7em}.kplex-publication-production .kplex-publication-note-content th{background:var(--kplex-published-author-table-header-background, var(--background-secondary))}.kplex-publication-production .kplex-publication-note-content blockquote{border-inline-start-color:var(--kplex-published-author-blockquote-border-color, var(--interactive-accent));color:var(--kplex-published-author-blockquote-color, var(--text-muted))}.kplex-publication-production .kplex-publication-note-content [data-callout]{--kplex-reader-callout: var(--kplex-published-author-color-blue, var(--interactive-accent));border-inline-start-color:var(--kplex-reader-callout);border-radius:var(--kplex-published-author-callout-radius, .35rem);background:color-mix(in srgb,var(--kplex-reader-callout) 12%,var(--background-primary));color:var(--text-normal);padding:.6em .85em}.kplex-publication-production .kplex-publication-note-content [data-callout]>:last-child{margin-block-end:0}.kplex-publication-production .kplex-publication-note-content [data-callout]:is([data-callout=danger],[data-callout=error],[data-callout=failure],[data-callout=bug]){--kplex-reader-callout: var(--kplex-published-author-color-red, #d33649)}.kplex-publication-production .kplex-publication-note-content [data-callout]:is([data-callout=warning],[data-callout=caution],[data-callout=attention]){--kplex-reader-callout: var(--kplex-published-author-color-orange, #cf7324)}.kplex-publication-production .kplex-publication-note-content [data-callout]:is([data-callout=success],[data-callout=check],[data-callout=done]){--kplex-reader-callout: var(--kplex-published-author-color-green, #1a9b49)}.kplex-publication-production .kplex-publication-note-content [data-callout]:is([data-callout=tip],[data-callout=hint],[data-callout=important]){--kplex-reader-callout: var(--kplex-published-author-color-cyan, #169a9c)}.kplex-publication-production .kplex-publication-note-content [data-callout=example]{--kplex-reader-callout: var(--kplex-published-author-color-purple, #7852ee)}
13
+ `,e.head.append(t)}NM(Cm)}function NM(e){let t=e.ownerDocument.defaultView;if(!t)return;let n=new URL("./publication.json",e.ownerDocument.baseURI),i=new t.AbortController,l,a=async()=>{let o=e.ownerDocument.createElement("p");o.className="kplex-publication-opening",o.setAttribute("role","status"),o.textContent=z.loading,e.replaceChildren(o);try{let r=await bv(t,n,i.signal);i.signal.throwIfAborted(),l=r1(e,r,n)}catch{if(i.signal.aborted)return;o.setAttribute("role","alert"),o.textContent=t.crypto.subtle?z.loadFailed:z.insecure;let r=e.ownerDocument.createElement("button");r.type="button",r.textContent=z.retry,r.addEventListener("click",()=>{a()},{once:!0}),o.append(" ",r),r.focus()}};t.addEventListener("pagehide",o=>{o.persisted||(i.abort(),l?.dispose())}),a()}
771
14
  /*! Bundled license information:
772
15
 
773
16
  scheduler/cjs/scheduler.production.js: