<html lang="en">
<head></head>
<body>

<form id="mainForm" method="post" action="https://stackblitz.com/run" target="_self">
<input type="hidden" name="project[files][README.md]" value="# Stream Processor for RivetKit

Example project demonstrating real-time top-K stream processing with [RivetKit](https://rivetkit.org).

[Learn More →](https://github.com/rivet-gg/rivetkit)

[Discord](https://rivet.gg/discord) — [Documentation](https://rivetkit.org) — [Issues](https://github.com/rivet-gg/rivetkit/issues)

## Getting Started

### Prerequisites

- Node.js 18+

### Installation

```sh
git clone https://github.com/rivet-gg/rivetkit
cd rivetkit/examples/stream
npm install
```

### Development

```sh
npm run dev
```

Open your browser to `http://localhost:3000`

## Features

- **Top-K Processing**: Maintains the top 3 highest values in real-time
- **Real-time Updates**: All connected clients see changes immediately
- **Stream Statistics**: Total count, highest value, and live metrics
- **Interactive Input**: Add custom values or generate random numbers
- **Reset Functionality**: Clear the stream and start fresh
- **Responsive Design**: Clean, modern interface with live statistics

## How it works

This stream processor demonstrates:

1. **Top-K Algorithm**: Efficiently maintains the top 3 values using insertion sort
2. **Real-time Broadcasting**: Updates are instantly sent to all connected clients
3. **State Management**: Persistent tracking of values and statistics
4. **Event-driven Updates**: Live UI updates when new values are processed
5. **Collaborative Experience**: Multiple users can add values simultaneously

## Architecture

- **Backend**: RivetKit actor managing stream state and top-K algorithm
- **Frontend**: React application with real-time stream visualization
- **State Management**: Server-side state with client-side event subscriptions
- **Algorithm**: Insertion-based top-K maintenance with O(k) complexity

## Stream Processing Algorithm

### Value Insertion
```typescript
// Insert new value maintaining sorted order
const insertAt = topValues.findIndex(v =&gt; value &gt; v);
if (insertAt !== -1) {
    topValues.splice(insertAt, 0, value);
}

// Keep only top 3 values
if (topValues.length &gt; 3) {
    topValues.length = 3;
}
```

### Performance Characteristics
- **Time Complexity**: O(k) per insertion where k=3
- **Space Complexity**: O(k) for storing top values
- **Memory Efficient**: Only stores top values, not entire stream
- **Real-time**: Sub-millisecond processing for new values

## Use Cases

This pattern is perfect for:

- **Leaderboards**: Gaming high scores, competition rankings
- **Metrics Monitoring**: Top error rates, highest traffic spikes
- **Social Features**: Most popular posts, trending content
- **Analytics Dashboards**: Key performance indicators
- **Real-time Alerts**: Threshold monitoring and notifications

## Extending

This stream processor can be enhanced with:

- **Configurable K**: Allow different top-K sizes (top 5, top 10, etc.)
- **Time Windows**: Top values within specific time periods
- **Multiple Streams**: Separate processors for different categories
- **Persistence**: Database storage for stream history
- **Complex Events**: Pattern detection and complex event processing
- **Aggregations**: Sum, average, and other statistical operations
- **Filters**: Value range filtering and validation
- **Rate Limiting**: Throttle input to prevent spam

## Stream Processing Concepts

### Top-K Algorithms
- **Heap-based**: Efficient for large K values
- **Sort-based**: Simple implementation for small K
- **Probabilistic**: Approximate results for massive streams

### Real-time Considerations
- **Latency**: Sub-millisecond processing requirements
- **Throughput**: Handling high-volume input streams
- **Memory**: Bounded memory usage regardless of stream size
- **Accuracy**: Exact vs. approximate results trade-offs

## Testing

The example includes basic structural tests. For production use, consider adding:

- **Algorithm correctness**: Verify top-K accuracy
- **Concurrency testing**: Multiple simultaneous inputs
- **Performance testing**: High-volume stream simulation
- **Edge cases**: Duplicate values, negative numbers, overflow handling

## License

Apache 2.0">
<input type="hidden" name="project[files][package.json]" value="{&quot;name&quot;:&quot;example-stream&quot;,&quot;version&quot;:&quot;0.9.9&quot;,&quot;type&quot;:&quot;module&quot;,&quot;scripts&quot;:{&quot;dev&quot;:&quot;concurrently \&quot;tsx --watch src/backend/server.ts\&quot; \&quot;vite\&quot;&quot;,&quot;build&quot;:&quot;vite build&quot;,&quot;preview&quot;:&quot;vite preview&quot;,&quot;check-types&quot;:&quot;tsc --noEmit&quot;,&quot;test&quot;:&quot;vitest&quot;},&quot;dependencies&quot;:{&quot;@rivetkit/actor&quot;:&quot;https://pkg.pr.new/rivet-gg/rivetkit/@rivetkit/actor@27b9131c5788cdf2007730353b43b33a296aedf3&quot;,&quot;@rivetkit/react&quot;:&quot;https://pkg.pr.new/rivet-gg/rivetkit/@rivetkit/react@27b9131c5788cdf2007730353b43b33a296aedf3&quot;,&quot;react&quot;:&quot;^18.2.0&quot;,&quot;react-dom&quot;:&quot;^18.2.0&quot;},&quot;devDependencies&quot;:{&quot;@types/node&quot;:&quot;^20.0.0&quot;,&quot;@types/react&quot;:&quot;^18.2.0&quot;,&quot;@types/react-dom&quot;:&quot;^18.2.0&quot;,&quot;@vitejs/plugin-react&quot;:&quot;^4.0.0&quot;,&quot;concurrently&quot;:&quot;^8.2.0&quot;,&quot;tsx&quot;:&quot;^4.0.0&quot;,&quot;typescript&quot;:&quot;^5.0.0&quot;,&quot;vite&quot;:&quot;^5.0.0&quot;,&quot;vitest&quot;:&quot;^3.1.1&quot;}}">
<input type="hidden" name="project[files][tsconfig.json]" value="{
  &quot;compilerOptions&quot;: {
    &quot;target&quot;: &quot;ES2020&quot;,
    &quot;lib&quot;: [&quot;ES2020&quot;, &quot;DOM&quot;, &quot;DOM.Iterable&quot;],
    &quot;module&quot;: &quot;ESNext&quot;,
    &quot;skipLibCheck&quot;: true,
    &quot;moduleResolution&quot;: &quot;bundler&quot;,
    &quot;allowImportingTsExtensions&quot;: true,
    &quot;resolveJsonModule&quot;: true,
    &quot;isolatedModules&quot;: true,
    &quot;noEmit&quot;: true,
    &quot;jsx&quot;: &quot;react-jsx&quot;,
    &quot;strict&quot;: true,
    &quot;noUnusedLocals&quot;: true,
    &quot;noUnusedParameters&quot;: true,
    &quot;noFallthroughCasesInSwitch&quot;: true
  },
  &quot;include&quot;: [&quot;src&quot;, &quot;tests&quot;],
  &quot;exclude&quot;: [&quot;node_modules&quot;, &quot;dist&quot;]
}
">
<input type="hidden" name="project[files][turbo.json]" value="{
  &quot;$schema&quot;: &quot;https://turbo.build/schema.json&quot;,
  &quot;extends&quot;: [&quot;//&quot;]
}
">
<input type="hidden" name="project[files][vite.config.ts]" value="import react from &quot;@vitejs/plugin-react&quot;;
import { defineConfig } from &quot;vite&quot;;

export default defineConfig({
	plugins: [react()],
	root: &quot;src/frontend&quot;,
	server: {
		port: 3000,
	},
	build: {
		outDir: &quot;../../dist&quot;,
		emptyOutDir: true,
	},
});
">
<input type="hidden" name="project[files][vitest.config.ts]" value="import { defineConfig } from &quot;vitest/config&quot;;

export default defineConfig({
	test: {
		environment: &quot;node&quot;,
	},
});
">
<input type="hidden" name="project[files][.turbo/turbo-build.log]" value="
&gt; example-stream@0.9.9 build /home/runner/work/rivetkit/rivetkit/examples/stream
&gt; vite build

[36mvite v5.4.19 [32mbuilding for production...[36m[39m
transforming...
[32m✓[39m 219 modules transformed.
rendering chunks...
computing gzip size...
[2m../../dist/[22m[32mindex.html                  [39m[1m[2m  4.64 kB[22m[1m[22m[2m │ gzip:  1.11 kB[22m
[2m../../dist/[22m[2massets/[22m[36mbrowser-CfK1oeIK.js  [39m[1m[2m  0.57 kB[22m[1m[22m[2m │ gzip:  0.40 kB[22m
[2m../../dist/[22m[2massets/[22m[36mindex-z2Dkjsn_.js    [39m[1m[2m  6.73 kB[22m[1m[22m[2m │ gzip:  2.84 kB[22m
[2m../../dist/[22m[2massets/[22m[36mindex-DSeEwUmX.js    [39m[1m[2m277.38 kB[22m[1m[22m[2m │ gzip: 85.65 kB[22m
[32m✓ built in 11.18s[39m
">
<input type="hidden" name="project[files][dist/index.html]" value="&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
    &lt;title&gt;Stream Processor - RivetKit&lt;/title&gt;
    &lt;style&gt;
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f0f0f0;
        }
        .app-container {
            max-width: 800px;
            margin: 0 auto;
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        .header h1 {
            color: #333;
            margin: 0;
        }
        .header p {
            color: #666;
            margin: 10px 0;
        }
        .content {
            display: flex;
            gap: 30px;
        }
        .top-values-section {
            flex: 1;
        }
        .input-section {
            flex: 1;
        }
        .top-values-list {
            background-color: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 20px;
            min-height: 150px;
        }
        .top-values-list h3 {
            margin: 0 0 15px 0;
            color: #495057;
            text-align: center;
        }
        .value-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            margin: 8px 0;
            background-color: white;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .value-rank {
            font-weight: bold;
            color: #6c757d;
            font-size: 14px;
        }
        .value-number {
            font-size: 18px;
            font-weight: bold;
            color: #495057;
        }
        .empty-state {
            text-align: center;
            color: #6c757d;
            font-style: italic;
            padding: 40px 20px;
        }
        .input-form {
            background-color: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 20px;
        }
        .input-form h3 {
            margin: 0 0 15px 0;
            color: #495057;
            text-align: center;
        }
        .input-group {
            margin-bottom: 15px;
        }
        .input-group label {
            display: block;
            margin-bottom: 8px;
            color: #495057;
            font-weight: bold;
        }
        .input-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 16px;
            box-sizing: border-box;
        }
        .input-group input:focus {
            outline: none;
            border-color: #80bdff;
            box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
        }
        .submit-button {
            width: 100%;
            padding: 12px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .submit-button:hover {
            background-color: #0056b3;
        }
        .submit-button:disabled {
            background-color: #6c757d;
            cursor: not-allowed;
        }
        .info-box {
            background-color: #e8f4f8;
            border: 1px solid #b8d4da;
            border-radius: 6px;
            padding: 15px;
            margin-bottom: 20px;
        }
        .info-box h3 {
            margin: 0 0 10px 0;
            color: #2c5aa0;
        }
        .info-box p {
            margin: 0;
            color: #555;
            line-height: 1.5;
        }
        .stats {
            display: flex;
            justify-content: space-around;
            margin-top: 20px;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 6px;
        }
        .stat-item {
            text-align: center;
        }
        .stat-value {
            font-size: 24px;
            font-weight: bold;
            color: #007bff;
        }
        .stat-label {
            color: #6c757d;
            font-size: 14px;
        }
    &lt;/style&gt;
  &lt;script type=&quot;module&quot; crossorigin src=&quot;/assets/index-DSeEwUmX.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;">
<input type="hidden" name="project[files][tests/stream.test.ts]" value="import { setupTest } from &quot;@rivetkit/actor/test&quot;;
import { expect, test } from &quot;vitest&quot;;
import { registry } from &quot;../src/backend/registry&quot;;

test(&quot;Stream processor maintains top 3 values&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const stream = client.streamProcessor.getOrCreate([&quot;test-top3&quot;]);

	// Initial state should be empty
	const initial = await stream.getTopValues();
	expect(initial).toEqual([]);

	// Add first value
	const result1 = await stream.addValue(10);
	expect(result1).toEqual([10]);

	// Add second value (lower)
	const result2 = await stream.addValue(5);
	expect(result2).toEqual([10, 5]);

	// Add third value (higher)
	const result3 = await stream.addValue(15);
	expect(result3).toEqual([15, 10, 5]);

	// Add fourth value (should replace lowest)
	const result4 = await stream.addValue(8);
	expect(result4).toEqual([15, 10, 8]);

	// Add fifth value (should replace middle)
	const result5 = await stream.addValue(12);
	expect(result5).toEqual([15, 12, 10]);
});

test(&quot;Stream processor tracks statistics correctly&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const stream = client.streamProcessor.getOrCreate([&quot;test-stats&quot;]);

	// Initial stats
	const initialStats = await stream.getStats();
	expect(initialStats).toEqual({
		topValues: [],
		totalCount: 0,
		highestValue: null,
	});

	// Add some values
	await stream.addValue(20);
	await stream.addValue(30);
	await stream.addValue(10);

	const stats = await stream.getStats();
	expect(stats).toEqual({
		topValues: [30, 20, 10],
		totalCount: 3,
		highestValue: 30,
	});

	// Add more values to test count tracking
	await stream.addValue(5);
	await stream.addValue(25);

	const finalStats = await stream.getStats();
	expect(finalStats.totalCount).toBe(5);
	expect(finalStats.topValues).toEqual([30, 25, 20]);
	expect(finalStats.highestValue).toBe(30);
});

test(&quot;Stream processor handles duplicate values&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const stream = client.streamProcessor.getOrCreate([&quot;test-duplicates&quot;]);

	// Add duplicate values
	await stream.addValue(10);
	await stream.addValue(10);
	await stream.addValue(10);

	const result = await stream.getTopValues();
	expect(result).toEqual([10, 10, 10]);

	const stats = await stream.getStats();
	expect(stats.totalCount).toBe(3);
	expect(stats.highestValue).toBe(10);
});

test(&quot;Stream processor reset functionality&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const stream = client.streamProcessor.getOrCreate([&quot;test-reset&quot;]);

	// Add some values
	await stream.addValue(100);
	await stream.addValue(200);
	await stream.addValue(50);

	// Verify state before reset
	const beforeReset = await stream.getStats();
	expect(beforeReset.totalCount).toBe(3);
	expect(beforeReset.topValues).toEqual([200, 100, 50]);

	// Reset the stream
	const resetResult = await stream.reset();
	expect(resetResult).toEqual({
		topValues: [],
		totalCount: 0,
		highestValue: null,
	});

	// Verify state after reset
	const afterReset = await stream.getStats();
	expect(afterReset).toEqual({
		topValues: [],
		totalCount: 0,
		highestValue: null,
	});
});

test(&quot;Stream processor handles edge case values&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const stream = client.streamProcessor.getOrCreate([&quot;test-edge-cases&quot;]);

	// Test with zero
	await stream.addValue(0);
	expect(await stream.getTopValues()).toEqual([0]);

	// Test with negative numbers
	await stream.addValue(-5);
	await stream.addValue(-1);
	expect(await stream.getTopValues()).toEqual([0, -1, -5]);

	// Test with very large numbers
	await stream.addValue(1000000);
	expect(await stream.getTopValues()).toEqual([1000000, 0, -1]);

	const stats = await stream.getStats();
	expect(stats.totalCount).toBe(4);
	expect(stats.highestValue).toBe(1000000);
});
">
<input type="hidden" name="project[files][dist/assets/browser-CfK1oeIK.js]" value="import{g as a}from&quot;./index-DSeEwUmX.js&quot;;function f(t,s){for(var o=0;o&lt;s.length;o++){const e=s[o];if(typeof e!=&quot;string&quot;&amp;&amp;!Array.isArray(e)){for(const r in e)if(r!==&quot;default&quot;&amp;&amp;!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&amp;&amp;Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=&gt;e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:&quot;Module&quot;}))}var c=function(){throw new Error(&quot;ws does not work in the browser. Browser clients must use the native WebSocket object&quot;)};const i=a(c),u=f({__proto__:null,default:i},[c]);export{u as b};
">
<input type="hidden" name="project[files][dist/assets/index-DSeEwUmX.js]" value="var am=Object.defineProperty;var fc=e=&gt;{throw TypeError(e)};var um=(e,t,n)=&gt;t in e?am(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Rt=(e,t,n)=&gt;um(e,typeof t!=&quot;symbol&quot;?t+&quot;&quot;:t,n),so=(e,t,n)=&gt;t.has(e)||fc(&quot;Cannot &quot;+n);var k=(e,t,n)=&gt;(so(e,t,&quot;read from private field&quot;),n?n.call(e):t.get(e)),le=(e,t,n)=&gt;t.has(e)?fc(&quot;Cannot add the same private member more than once&quot;):t instanceof WeakSet?t.add(e):t.set(e,n),oe=(e,t,n,r)=&gt;(so(e,t,&quot;write to private field&quot;),r?r.call(e,n):t.set(e,n),n),ne=(e,t,n)=&gt;(so(e,t,&quot;access private method&quot;),n);(function(){const t=document.createElement(&quot;link&quot;).relList;if(t&amp;&amp;t.supports&amp;&amp;t.supports(&quot;modulepreload&quot;))return;for(const i of document.querySelectorAll(&#39;link[rel=&quot;modulepreload&quot;]&#39;))r(i);new MutationObserver(i=&gt;{for(const s of i)if(s.type===&quot;childList&quot;)for(const l of s.addedNodes)l.tagName===&quot;LINK&quot;&amp;&amp;l.rel===&quot;modulepreload&quot;&amp;&amp;r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&amp;&amp;(s.integrity=i.integrity),i.referrerPolicy&amp;&amp;(s.referrerPolicy=i.referrerPolicy),i.crossOrigin===&quot;use-credentials&quot;?s.credentials=&quot;include&quot;:i.crossOrigin===&quot;anonymous&quot;?s.credentials=&quot;omit&quot;:s.credentials=&quot;same-origin&quot;,s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function ad(e){return e&amp;&amp;e.__esModule&amp;&amp;Object.prototype.hasOwnProperty.call(e,&quot;default&quot;)?e.default:e}var ud={exports:{}},$l={},cd={exports:{}},q={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var os=Symbol.for(&quot;react.element&quot;),cm=Symbol.for(&quot;react.portal&quot;),fm=Symbol.for(&quot;react.fragment&quot;),dm=Symbol.for(&quot;react.strict_mode&quot;),hm=Symbol.for(&quot;react.profiler&quot;),pm=Symbol.for(&quot;react.provider&quot;),mm=Symbol.for(&quot;react.context&quot;),ym=Symbol.for(&quot;react.forward_ref&quot;),vm=Symbol.for(&quot;react.suspense&quot;),gm=Symbol.for(&quot;react.memo&quot;),wm=Symbol.for(&quot;react.lazy&quot;),dc=Symbol.iterator;function _m(e){return e===null||typeof e!=&quot;object&quot;?null:(e=dc&amp;&amp;e[dc]||e[&quot;@@iterator&quot;],typeof e==&quot;function&quot;?e:null)}var fd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dd=Object.assign,hd={};function ti(e,t,n){this.props=e,this.context=t,this.refs=hd,this.updater=n||fd}ti.prototype.isReactComponent={};ti.prototype.setState=function(e,t){if(typeof e!=&quot;object&quot;&amp;&amp;typeof e!=&quot;function&quot;&amp;&amp;e!=null)throw Error(&quot;setState(...): takes an object of state variables to update or a function which returns an object of state variables.&quot;);this.updater.enqueueSetState(this,e,t,&quot;setState&quot;)};ti.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,&quot;forceUpdate&quot;)};function pd(){}pd.prototype=ti.prototype;function au(e,t,n){this.props=e,this.context=t,this.refs=hd,this.updater=n||fd}var uu=au.prototype=new pd;uu.constructor=au;dd(uu,ti.prototype);uu.isPureReactComponent=!0;var hc=Array.isArray,md=Object.prototype.hasOwnProperty,cu={current:null},yd={key:!0,ref:!0,__self:!0,__source:!0};function vd(e,t,n){var r,i={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&amp;&amp;(l=t.ref),t.key!==void 0&amp;&amp;(s=&quot;&quot;+t.key),t)md.call(t,r)&amp;&amp;!yd.hasOwnProperty(r)&amp;&amp;(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1&lt;o){for(var a=Array(o),u=0;u&lt;o;u++)a[u]=arguments[u+2];i.children=a}if(e&amp;&amp;e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&amp;&amp;(i[r]=o[r]);return{$$typeof:os,type:e,key:s,ref:l,props:i,_owner:cu.current}}function xm(e,t){return{$$typeof:os,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function fu(e){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;e.$$typeof===os}function km(e){var t={&quot;=&quot;:&quot;=0&quot;,&quot;:&quot;:&quot;=2&quot;};return&quot;$&quot;+e.replace(/[=:]/g,function(n){return t[n]})}var pc=/\/+/g;function lo(e,t){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;e.key!=null?km(&quot;&quot;+e.key):t.toString(36)}function Us(e,t,n,r,i){var s=typeof e;(s===&quot;undefined&quot;||s===&quot;boolean&quot;)&amp;&amp;(e=null);var l=!1;if(e===null)l=!0;else switch(s){case&quot;string&quot;:case&quot;number&quot;:l=!0;break;case&quot;object&quot;:switch(e.$$typeof){case os:case cm:l=!0}}if(l)return l=e,i=i(l),e=r===&quot;&quot;?&quot;.&quot;+lo(l,0):r,hc(i)?(n=&quot;&quot;,e!=null&amp;&amp;(n=e.replace(pc,&quot;$&amp;/&quot;)+&quot;/&quot;),Us(i,t,n,&quot;&quot;,function(u){return u})):i!=null&amp;&amp;(fu(i)&amp;&amp;(i=xm(i,n+(!i.key||l&amp;&amp;l.key===i.key?&quot;&quot;:(&quot;&quot;+i.key).replace(pc,&quot;$&amp;/&quot;)+&quot;/&quot;)+e)),t.push(i)),1;if(l=0,r=r===&quot;&quot;?&quot;.&quot;:r+&quot;:&quot;,hc(e))for(var o=0;o&lt;e.length;o++){s=e[o];var a=r+lo(s,o);l+=Us(s,t,n,a,i)}else if(a=_m(e),typeof a==&quot;function&quot;)for(e=a.call(e),o=0;!(s=e.next()).done;)s=s.value,a=r+lo(s,o++),l+=Us(s,t,n,a,i);else if(s===&quot;object&quot;)throw t=String(e),Error(&quot;Objects are not valid as a React child (found: &quot;+(t===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(e).join(&quot;, &quot;)+&quot;}&quot;:t)+&quot;). If you meant to render a collection of children, use an array instead.&quot;);return l}function ps(e,t,n){if(e==null)return e;var r=[],i=0;return Us(e,r,&quot;&quot;,&quot;&quot;,function(s){return t.call(n,s,i++)}),r}function Sm(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&amp;&amp;(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&amp;&amp;(e._status=2,e._result=n)}),e._status===-1&amp;&amp;(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ze={current:null},$s={transition:null},Em={ReactCurrentDispatcher:Ze,ReactCurrentBatchConfig:$s,ReactCurrentOwner:cu};function gd(){throw Error(&quot;act(...) is not supported in production builds of React.&quot;)}q.Children={map:ps,forEach:function(e,t,n){ps(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ps(e,function(){t++}),t},toArray:function(e){return ps(e,function(t){return t})||[]},only:function(e){if(!fu(e))throw Error(&quot;React.Children.only expected to receive a single React element child.&quot;);return e}};q.Component=ti;q.Fragment=fm;q.Profiler=hm;q.PureComponent=au;q.StrictMode=dm;q.Suspense=vm;q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Em;q.act=gd;q.cloneElement=function(e,t,n){if(e==null)throw Error(&quot;React.cloneElement(...): The argument must be a React element, but you passed &quot;+e+&quot;.&quot;);var r=dd({},e.props),i=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&amp;&amp;(s=t.ref,l=cu.current),t.key!==void 0&amp;&amp;(i=&quot;&quot;+t.key),e.type&amp;&amp;e.type.defaultProps)var o=e.type.defaultProps;for(a in t)md.call(t,a)&amp;&amp;!yd.hasOwnProperty(a)&amp;&amp;(r[a]=t[a]===void 0&amp;&amp;o!==void 0?o[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1&lt;a){o=Array(a);for(var u=0;u&lt;a;u++)o[u]=arguments[u+2];r.children=o}return{$$typeof:os,type:e.type,key:i,ref:s,props:r,_owner:l}};q.createContext=function(e){return e={$$typeof:mm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pm,_context:e},e.Consumer=e};q.createElement=vd;q.createFactory=function(e){var t=vd.bind(null,e);return t.type=e,t};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:ym,render:e}};q.isValidElement=fu;q.lazy=function(e){return{$$typeof:wm,_payload:{_status:-1,_result:e},_init:Sm}};q.memo=function(e,t){return{$$typeof:gm,type:e,compare:t===void 0?null:t}};q.startTransition=function(e){var t=$s.transition;$s.transition={};try{e()}finally{$s.transition=t}};q.unstable_act=gd;q.useCallback=function(e,t){return Ze.current.useCallback(e,t)};q.useContext=function(e){return Ze.current.useContext(e)};q.useDebugValue=function(){};q.useDeferredValue=function(e){return Ze.current.useDeferredValue(e)};q.useEffect=function(e,t){return Ze.current.useEffect(e,t)};q.useId=function(){return Ze.current.useId()};q.useImperativeHandle=function(e,t,n){return Ze.current.useImperativeHandle(e,t,n)};q.useInsertionEffect=function(e,t){return Ze.current.useInsertionEffect(e,t)};q.useLayoutEffect=function(e,t){return Ze.current.useLayoutEffect(e,t)};q.useMemo=function(e,t){return Ze.current.useMemo(e,t)};q.useReducer=function(e,t,n){return Ze.current.useReducer(e,t,n)};q.useRef=function(e){return Ze.current.useRef(e)};q.useState=function(e){return Ze.current.useState(e)};q.useSyncExternalStore=function(e,t,n){return Ze.current.useSyncExternalStore(e,t,n)};q.useTransition=function(){return Ze.current.useTransition()};q.version=&quot;18.3.1&quot;;cd.exports=q;var We=cd.exports;/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Cm=We,Om=Symbol.for(&quot;react.element&quot;),Tm=Symbol.for(&quot;react.fragment&quot;),Nm=Object.prototype.hasOwnProperty,Rm=Cm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Am={key:!0,ref:!0,__self:!0,__source:!0};function wd(e,t,n){var r,i={},s=null,l=null;n!==void 0&amp;&amp;(s=&quot;&quot;+n),t.key!==void 0&amp;&amp;(s=&quot;&quot;+t.key),t.ref!==void 0&amp;&amp;(l=t.ref);for(r in t)Nm.call(t,r)&amp;&amp;!Am.hasOwnProperty(r)&amp;&amp;(i[r]=t[r]);if(e&amp;&amp;e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&amp;&amp;(i[r]=t[r]);return{$$typeof:Om,type:e,key:s,ref:l,props:i,_owner:Rm.current}}$l.Fragment=Tm;$l.jsx=wd;$l.jsxs=wd;ud.exports=$l;var Y=ud.exports,_d={exports:{}},at={},xd={exports:{}},kd={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(S,I){var P=S.length;S.push(I);e:for(;0&lt;P;){var B=P-1&gt;&gt;&gt;1,H=S[B];if(0&lt;i(H,I))S[B]=I,S[P]=H,P=B;else break e}}function n(S){return S.length===0?null:S[0]}function r(S){if(S.length===0)return null;var I=S[0],P=S.pop();if(P!==I){S[0]=P;e:for(var B=0,H=S.length,Pn=H&gt;&gt;&gt;1;B&lt;Pn;){var Ln=2*(B+1)-1,io=S[Ln],Mn=Ln+1,hs=S[Mn];if(0&gt;i(io,P))Mn&lt;H&amp;&amp;0&gt;i(hs,io)?(S[B]=hs,S[Mn]=P,B=Mn):(S[B]=io,S[Ln]=P,B=Ln);else if(Mn&lt;H&amp;&amp;0&gt;i(hs,P))S[B]=hs,S[Mn]=P,B=Mn;else break e}}return I}function i(S,I){var P=S.sortIndex-I.sortIndex;return P!==0?P:S.id-I.id}if(typeof performance==&quot;object&quot;&amp;&amp;typeof performance.now==&quot;function&quot;){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var a=[],u=[],c=1,p=null,y=3,w=!1,_=!1,E=!1,J=typeof setTimeout==&quot;function&quot;?setTimeout:null,m=typeof clearTimeout==&quot;function&quot;?clearTimeout:null,d=typeof setImmediate&lt;&quot;u&quot;?setImmediate:null;typeof navigator&lt;&quot;u&quot;&amp;&amp;navigator.scheduling!==void 0&amp;&amp;navigator.scheduling.isInputPending!==void 0&amp;&amp;navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(S){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime&lt;=S)r(u),I.sortIndex=I.expirationTime,t(a,I);else break;I=n(u)}}function O(S){if(E=!1,h(S),!_)if(n(a)!==null)_=!0,R(L);else{var I=n(u);I!==null&amp;&amp;C(O,I.startTime-S)}}function L(S,I){_=!1,E&amp;&amp;(E=!1,m(V),V=-1),w=!0;var P=y;try{for(h(I),p=n(a);p!==null&amp;&amp;(!(p.expirationTime&gt;I)||S&amp;&amp;!Ke());){var B=p.callback;if(typeof B==&quot;function&quot;){p.callback=null,y=p.priorityLevel;var H=B(p.expirationTime&lt;=I);I=e.unstable_now(),typeof H==&quot;function&quot;?p.callback=H:p===n(a)&amp;&amp;r(a),h(I)}else r(a);p=n(a)}if(p!==null)var Pn=!0;else{var Ln=n(u);Ln!==null&amp;&amp;C(O,Ln.startTime-I),Pn=!1}return Pn}finally{p=null,y=P,w=!1}}var z=!1,F=null,V=-1,ce=5,G=-1;function Ke(){return!(e.unstable_now()-G&lt;ce)}function qt(){if(F!==null){var S=e.unstable_now();G=S;var I=!0;try{I=F(!0,S)}finally{I?v():(z=!1,F=null)}}else z=!1}var v;if(typeof d==&quot;function&quot;)v=function(){d(qt)};else if(typeof MessageChannel&lt;&quot;u&quot;){var j=new MessageChannel,T=j.port2;j.port1.onmessage=qt,v=function(){T.postMessage(null)}}else v=function(){J(qt,0)};function R(S){F=S,z||(z=!0,v())}function C(S,I){V=J(function(){S(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(S){S.callback=null},e.unstable_continueExecution=function(){_||w||(_=!0,R(L))},e.unstable_forceFrameRate=function(S){0&gt;S||125&lt;S?console.error(&quot;forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported&quot;):ce=0&lt;S?Math.floor(1e3/S):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(S){switch(y){case 1:case 2:case 3:var I=3;break;default:I=y}var P=y;y=I;try{return S()}finally{y=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(S,I){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var P=y;y=S;try{return I()}finally{y=P}},e.unstable_scheduleCallback=function(S,I,P){var B=e.unstable_now();switch(typeof P==&quot;object&quot;&amp;&amp;P!==null?(P=P.delay,P=typeof P==&quot;number&quot;&amp;&amp;0&lt;P?B+P:B):P=B,S){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=P+H,S={id:c++,callback:I,priorityLevel:S,startTime:P,expirationTime:H,sortIndex:-1},P&gt;B?(S.sortIndex=P,t(u,S),n(a)===null&amp;&amp;S===n(u)&amp;&amp;(E?(m(V),V=-1):E=!0,C(O,P-B))):(S.sortIndex=H,t(a,S),_||w||(_=!0,R(L))),S},e.unstable_shouldYield=Ke,e.unstable_wrapCallback=function(S){var I=y;return function(){var P=y;y=I;try{return S.apply(this,arguments)}finally{y=P}}}})(kd);xd.exports=kd;var Im=xd.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Pm=We,lt=Im;function N(e){for(var t=&quot;https://reactjs.org/docs/error-decoder.html?invariant=&quot;+e,n=1;n&lt;arguments.length;n++)t+=&quot;&amp;args[]=&quot;+encodeURIComponent(arguments[n]);return&quot;Minified React error #&quot;+e+&quot;; visit &quot;+t+&quot; for the full message or use the non-minified dev environment for full errors and additional helpful warnings.&quot;}var Sd=new Set,Mi={};function lr(e,t){Vr(e,t),Vr(e+&quot;Capture&quot;,t)}function Vr(e,t){for(Mi[e]=t,e=0;e&lt;t.length;e++)Sd.add(t[e])}var Kt=!(typeof window&gt;&quot;u&quot;||typeof window.document&gt;&quot;u&quot;||typeof window.document.createElement&gt;&quot;u&quot;),Wo=Object.prototype.hasOwnProperty,Lm=/^[: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]*$/,mc={},yc={};function Mm(e){return Wo.call(yc,e)?!0:Wo.call(mc,e)?!1:Lm.test(e)?yc[e]=!0:(mc[e]=!0,!1)}function Dm(e,t,n,r){if(n!==null&amp;&amp;n.type===0)return!1;switch(typeof t){case&quot;function&quot;:case&quot;symbol&quot;:return!0;case&quot;boolean&quot;:return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!==&quot;data-&quot;&amp;&amp;e!==&quot;aria-&quot;);default:return!1}}function zm(e,t,n,r){if(t===null||typeof t&gt;&quot;u&quot;||Dm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1&gt;t}return!1}function Qe(e,t,n,r,i,s,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=l}var ze={};&quot;children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style&quot;.split(&quot; &quot;).forEach(function(e){ze[e]=new Qe(e,0,!1,e,null,!1,!1)});[[&quot;acceptCharset&quot;,&quot;accept-charset&quot;],[&quot;className&quot;,&quot;class&quot;],[&quot;htmlFor&quot;,&quot;for&quot;],[&quot;httpEquiv&quot;,&quot;http-equiv&quot;]].forEach(function(e){var t=e[0];ze[t]=new Qe(t,1,!1,e[1],null,!1,!1)});[&quot;contentEditable&quot;,&quot;draggable&quot;,&quot;spellCheck&quot;,&quot;value&quot;].forEach(function(e){ze[e]=new Qe(e,2,!1,e.toLowerCase(),null,!1,!1)});[&quot;autoReverse&quot;,&quot;externalResourcesRequired&quot;,&quot;focusable&quot;,&quot;preserveAlpha&quot;].forEach(function(e){ze[e]=new Qe(e,2,!1,e,null,!1,!1)});&quot;allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope&quot;.split(&quot; &quot;).forEach(function(e){ze[e]=new Qe(e,3,!1,e.toLowerCase(),null,!1,!1)});[&quot;checked&quot;,&quot;multiple&quot;,&quot;muted&quot;,&quot;selected&quot;].forEach(function(e){ze[e]=new Qe(e,3,!0,e,null,!1,!1)});[&quot;capture&quot;,&quot;download&quot;].forEach(function(e){ze[e]=new Qe(e,4,!1,e,null,!1,!1)});[&quot;cols&quot;,&quot;rows&quot;,&quot;size&quot;,&quot;span&quot;].forEach(function(e){ze[e]=new Qe(e,6,!1,e,null,!1,!1)});[&quot;rowSpan&quot;,&quot;start&quot;].forEach(function(e){ze[e]=new Qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var du=/[\-:]([a-z])/g;function hu(e){return e[1].toUpperCase()}&quot;accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height&quot;.split(&quot; &quot;).forEach(function(e){var t=e.replace(du,hu);ze[t]=new Qe(t,1,!1,e,null,!1,!1)});&quot;xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type&quot;.split(&quot; &quot;).forEach(function(e){var t=e.replace(du,hu);ze[t]=new Qe(t,1,!1,e,&quot;http://www.w3.org/1999/xlink&quot;,!1,!1)});[&quot;xml:base&quot;,&quot;xml:lang&quot;,&quot;xml:space&quot;].forEach(function(e){var t=e.replace(du,hu);ze[t]=new Qe(t,1,!1,e,&quot;http://www.w3.org/XML/1998/namespace&quot;,!1,!1)});[&quot;tabIndex&quot;,&quot;crossOrigin&quot;].forEach(function(e){ze[e]=new Qe(e,1,!1,e.toLowerCase(),null,!1,!1)});ze.xlinkHref=new Qe(&quot;xlinkHref&quot;,1,!1,&quot;xlink:href&quot;,&quot;http://www.w3.org/1999/xlink&quot;,!0,!1);[&quot;src&quot;,&quot;href&quot;,&quot;action&quot;,&quot;formAction&quot;].forEach(function(e){ze[e]=new Qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function pu(e,t,n,r){var i=ze.hasOwnProperty(t)?ze[t]:null;(i!==null?i.type!==0:r||!(2&lt;t.length)||t[0]!==&quot;o&quot;&amp;&amp;t[0]!==&quot;O&quot;||t[1]!==&quot;n&quot;&amp;&amp;t[1]!==&quot;N&quot;)&amp;&amp;(zm(t,n,i,r)&amp;&amp;(n=null),r||i===null?Mm(t)&amp;&amp;(n===null?e.removeAttribute(t):e.setAttribute(t,&quot;&quot;+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:&quot;&quot;:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&amp;&amp;n===!0?&quot;&quot;:&quot;&quot;+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Xt=Pm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ms=Symbol.for(&quot;react.element&quot;),dr=Symbol.for(&quot;react.portal&quot;),hr=Symbol.for(&quot;react.fragment&quot;),mu=Symbol.for(&quot;react.strict_mode&quot;),Ho=Symbol.for(&quot;react.profiler&quot;),Ed=Symbol.for(&quot;react.provider&quot;),Cd=Symbol.for(&quot;react.context&quot;),yu=Symbol.for(&quot;react.forward_ref&quot;),Zo=Symbol.for(&quot;react.suspense&quot;),Qo=Symbol.for(&quot;react.suspense_list&quot;),vu=Symbol.for(&quot;react.memo&quot;),nn=Symbol.for(&quot;react.lazy&quot;),Od=Symbol.for(&quot;react.offscreen&quot;),vc=Symbol.iterator;function ii(e){return e===null||typeof e!=&quot;object&quot;?null:(e=vc&amp;&amp;e[vc]||e[&quot;@@iterator&quot;],typeof e==&quot;function&quot;?e:null)}var ge=Object.assign,oo;function mi(e){if(oo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);oo=t&amp;&amp;t[1]||&quot;&quot;}return`
`+oo+e}var ao=!1;function uo(e,t){if(!e||ao)return&quot;&quot;;ao=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,&quot;props&quot;,{set:function(){throw Error()}}),typeof Reflect==&quot;object&quot;&amp;&amp;Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&amp;&amp;r&amp;&amp;typeof u.stack==&quot;string&quot;){for(var i=u.stack.split(`
`),s=r.stack.split(`
`),l=i.length-1,o=s.length-1;1&lt;=l&amp;&amp;0&lt;=o&amp;&amp;i[l]!==s[o];)o--;for(;1&lt;=l&amp;&amp;0&lt;=o;l--,o--)if(i[l]!==s[o]){if(l!==1||o!==1)do if(l--,o--,0&gt;o||i[l]!==s[o]){var a=`
`+i[l].replace(&quot; at new &quot;,&quot; at &quot;);return e.displayName&amp;&amp;a.includes(&quot;&lt;anonymous&gt;&quot;)&amp;&amp;(a=a.replace(&quot;&lt;anonymous&gt;&quot;,e.displayName)),a}while(1&lt;=l&amp;&amp;0&lt;=o);break}}}finally{ao=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:&quot;&quot;)?mi(e):&quot;&quot;}function jm(e){switch(e.tag){case 5:return mi(e.type);case 16:return mi(&quot;Lazy&quot;);case 13:return mi(&quot;Suspense&quot;);case 19:return mi(&quot;SuspenseList&quot;);case 0:case 2:case 15:return e=uo(e.type,!1),e;case 11:return e=uo(e.type.render,!1),e;case 1:return e=uo(e.type,!0),e;default:return&quot;&quot;}}function Ko(e){if(e==null)return null;if(typeof e==&quot;function&quot;)return e.displayName||e.name||null;if(typeof e==&quot;string&quot;)return e;switch(e){case hr:return&quot;Fragment&quot;;case dr:return&quot;Portal&quot;;case Ho:return&quot;Profiler&quot;;case mu:return&quot;StrictMode&quot;;case Zo:return&quot;Suspense&quot;;case Qo:return&quot;SuspenseList&quot;}if(typeof e==&quot;object&quot;)switch(e.$$typeof){case Cd:return(e.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case Ed:return(e._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||&quot;&quot;,e=e!==&quot;&quot;?&quot;ForwardRef(&quot;+e+&quot;)&quot;:&quot;ForwardRef&quot;),e;case vu:return t=e.displayName||null,t!==null?t:Ko(e.type)||&quot;Memo&quot;;case nn:t=e._payload,e=e._init;try{return Ko(e(t))}catch{}}return null}function Um(e){var t=e.type;switch(e.tag){case 24:return&quot;Cache&quot;;case 9:return(t.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case 10:return(t._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case 18:return&quot;DehydratedFragment&quot;;case 11:return e=t.render,e=e.displayName||e.name||&quot;&quot;,t.displayName||(e!==&quot;&quot;?&quot;ForwardRef(&quot;+e+&quot;)&quot;:&quot;ForwardRef&quot;);case 7:return&quot;Fragment&quot;;case 5:return t;case 4:return&quot;Portal&quot;;case 3:return&quot;Root&quot;;case 6:return&quot;Text&quot;;case 16:return Ko(t);case 8:return t===mu?&quot;StrictMode&quot;:&quot;Mode&quot;;case 22:return&quot;Offscreen&quot;;case 12:return&quot;Profiler&quot;;case 21:return&quot;Scope&quot;;case 13:return&quot;Suspense&quot;;case 19:return&quot;SuspenseList&quot;;case 25:return&quot;TracingMarker&quot;;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==&quot;function&quot;)return t.displayName||t.name||null;if(typeof t==&quot;string&quot;)return t}return null}function Cn(e){switch(typeof e){case&quot;boolean&quot;:case&quot;number&quot;:case&quot;string&quot;:case&quot;undefined&quot;:return e;case&quot;object&quot;:return e;default:return&quot;&quot;}}function Td(e){var t=e.type;return(e=e.nodeName)&amp;&amp;e.toLowerCase()===&quot;input&quot;&amp;&amp;(t===&quot;checkbox&quot;||t===&quot;radio&quot;)}function $m(e){var t=Td(e)?&quot;checked&quot;:&quot;value&quot;,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=&quot;&quot;+e[t];if(!e.hasOwnProperty(t)&amp;&amp;typeof n&lt;&quot;u&quot;&amp;&amp;typeof n.get==&quot;function&quot;&amp;&amp;typeof n.set==&quot;function&quot;){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=&quot;&quot;+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=&quot;&quot;+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ys(e){e._valueTracker||(e._valueTracker=$m(e))}function Nd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=&quot;&quot;;return e&amp;&amp;(r=Td(e)?e.checked?&quot;true&quot;:&quot;false&quot;:e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rl(e){if(e=e||(typeof document&lt;&quot;u&quot;?document:void 0),typeof e&gt;&quot;u&quot;)return null;try{return e.activeElement||e.body}catch{return e.body}}function bo(e,t){var n=t.checked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gc(e,t){var n=t.defaultValue==null?&quot;&quot;:t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Cn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===&quot;checkbox&quot;||t.type===&quot;radio&quot;?t.checked!=null:t.value!=null}}function Rd(e,t){t=t.checked,t!=null&amp;&amp;pu(e,&quot;checked&quot;,t,!1)}function Jo(e,t){Rd(e,t);var n=Cn(t.value),r=t.type;if(n!=null)r===&quot;number&quot;?(n===0&amp;&amp;e.value===&quot;&quot;||e.value!=n)&amp;&amp;(e.value=&quot;&quot;+n):e.value!==&quot;&quot;+n&amp;&amp;(e.value=&quot;&quot;+n);else if(r===&quot;submit&quot;||r===&quot;reset&quot;){e.removeAttribute(&quot;value&quot;);return}t.hasOwnProperty(&quot;value&quot;)?Go(e,t.type,n):t.hasOwnProperty(&quot;defaultValue&quot;)&amp;&amp;Go(e,t.type,Cn(t.defaultValue)),t.checked==null&amp;&amp;t.defaultChecked!=null&amp;&amp;(e.defaultChecked=!!t.defaultChecked)}function wc(e,t,n){if(t.hasOwnProperty(&quot;value&quot;)||t.hasOwnProperty(&quot;defaultValue&quot;)){var r=t.type;if(!(r!==&quot;submit&quot;&amp;&amp;r!==&quot;reset&quot;||t.value!==void 0&amp;&amp;t.value!==null))return;t=&quot;&quot;+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==&quot;&quot;&amp;&amp;(e.name=&quot;&quot;),e.defaultChecked=!!e._wrapperState.initialChecked,n!==&quot;&quot;&amp;&amp;(e.name=n)}function Go(e,t,n){(t!==&quot;number&quot;||rl(e.ownerDocument)!==e)&amp;&amp;(n==null?e.defaultValue=&quot;&quot;+e._wrapperState.initialValue:e.defaultValue!==&quot;&quot;+n&amp;&amp;(e.defaultValue=&quot;&quot;+n))}var yi=Array.isArray;function Or(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i&lt;n.length;i++)t[&quot;$&quot;+n[i]]=!0;for(n=0;n&lt;e.length;n++)i=t.hasOwnProperty(&quot;$&quot;+e[n].value),e[n].selected!==i&amp;&amp;(e[n].selected=i),i&amp;&amp;r&amp;&amp;(e[n].defaultSelected=!0)}else{for(n=&quot;&quot;+Cn(n),t=null,i=0;i&lt;e.length;i++){if(e[i].value===n){e[i].selected=!0,r&amp;&amp;(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&amp;&amp;(t.selected=!0)}}function Yo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return ge({},t,{value:void 0,defaultValue:void 0,children:&quot;&quot;+e._wrapperState.initialValue})}function _c(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(yi(n)){if(1&lt;n.length)throw Error(N(93));n=n[0]}t=n}t==null&amp;&amp;(t=&quot;&quot;),n=t}e._wrapperState={initialValue:Cn(n)}}function Ad(e,t){var n=Cn(t.value),r=Cn(t.defaultValue);n!=null&amp;&amp;(n=&quot;&quot;+n,n!==e.value&amp;&amp;(e.value=n),t.defaultValue==null&amp;&amp;e.defaultValue!==n&amp;&amp;(e.defaultValue=n)),r!=null&amp;&amp;(e.defaultValue=&quot;&quot;+r)}function xc(e){var t=e.textContent;t===e._wrapperState.initialValue&amp;&amp;t!==&quot;&quot;&amp;&amp;t!==null&amp;&amp;(e.value=t)}function Id(e){switch(e){case&quot;svg&quot;:return&quot;http://www.w3.org/2000/svg&quot;;case&quot;math&quot;:return&quot;http://www.w3.org/1998/Math/MathML&quot;;default:return&quot;http://www.w3.org/1999/xhtml&quot;}}function Xo(e,t){return e==null||e===&quot;http://www.w3.org/1999/xhtml&quot;?Id(t):e===&quot;http://www.w3.org/2000/svg&quot;&amp;&amp;t===&quot;foreignObject&quot;?&quot;http://www.w3.org/1999/xhtml&quot;:e}var vs,Pd=function(e){return typeof MSApp&lt;&quot;u&quot;&amp;&amp;MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==&quot;http://www.w3.org/2000/svg&quot;||&quot;innerHTML&quot;in e)e.innerHTML=t;else{for(vs=vs||document.createElement(&quot;div&quot;),vs.innerHTML=&quot;&lt;svg&gt;&quot;+t.valueOf().toString()+&quot;&lt;/svg&gt;&quot;,t=vs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Di(e,t){if(t){var n=e.firstChild;if(n&amp;&amp;n===e.lastChild&amp;&amp;n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Si={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fm=[&quot;Webkit&quot;,&quot;ms&quot;,&quot;Moz&quot;,&quot;O&quot;];Object.keys(Si).forEach(function(e){Fm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Si[t]=Si[e]})});function Ld(e,t,n){return t==null||typeof t==&quot;boolean&quot;||t===&quot;&quot;?&quot;&quot;:n||typeof t!=&quot;number&quot;||t===0||Si.hasOwnProperty(e)&amp;&amp;Si[e]?(&quot;&quot;+t).trim():t+&quot;px&quot;}function Md(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf(&quot;--&quot;)===0,i=Ld(n,t[n],r);n===&quot;float&quot;&amp;&amp;(n=&quot;cssFloat&quot;),r?e.setProperty(n,i):e[n]=i}}var Vm=ge({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qo(e,t){if(t){if(Vm[e]&amp;&amp;(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!=&quot;object&quot;||!(&quot;__html&quot;in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&amp;&amp;typeof t.style!=&quot;object&quot;)throw Error(N(62))}}function ea(e,t){if(e.indexOf(&quot;-&quot;)===-1)return typeof t.is==&quot;string&quot;;switch(e){case&quot;annotation-xml&quot;:case&quot;color-profile&quot;:case&quot;font-face&quot;:case&quot;font-face-src&quot;:case&quot;font-face-uri&quot;:case&quot;font-face-format&quot;:case&quot;font-face-name&quot;:case&quot;missing-glyph&quot;:return!1;default:return!0}}var ta=null;function gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&amp;&amp;(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var na=null,Tr=null,Nr=null;function kc(e){if(e=cs(e)){if(typeof na!=&quot;function&quot;)throw Error(N(280));var t=e.stateNode;t&amp;&amp;(t=Hl(t),na(e.stateNode,e.type,t))}}function Dd(e){Tr?Nr?Nr.push(e):Nr=[e]:Tr=e}function zd(){if(Tr){var e=Tr,t=Nr;if(Nr=Tr=null,kc(e),t)for(e=0;e&lt;t.length;e++)kc(t[e])}}function jd(e,t){return e(t)}function Ud(){}var co=!1;function $d(e,t,n){if(co)return e(t,n);co=!0;try{return jd(e,t,n)}finally{co=!1,(Tr!==null||Nr!==null)&amp;&amp;(Ud(),zd())}}function zi(e,t){var n=e.stateNode;if(n===null)return null;var r=Hl(n);if(r===null)return null;n=r[t];e:switch(t){case&quot;onClick&quot;:case&quot;onClickCapture&quot;:case&quot;onDoubleClick&quot;:case&quot;onDoubleClickCapture&quot;:case&quot;onMouseDown&quot;:case&quot;onMouseDownCapture&quot;:case&quot;onMouseMove&quot;:case&quot;onMouseMoveCapture&quot;:case&quot;onMouseUp&quot;:case&quot;onMouseUpCapture&quot;:case&quot;onMouseEnter&quot;:(r=!r.disabled)||(e=e.type,r=!(e===&quot;button&quot;||e===&quot;input&quot;||e===&quot;select&quot;||e===&quot;textarea&quot;)),e=!r;break e;default:e=!1}if(e)return null;if(n&amp;&amp;typeof n!=&quot;function&quot;)throw Error(N(231,t,typeof n));return n}var ra=!1;if(Kt)try{var si={};Object.defineProperty(si,&quot;passive&quot;,{get:function(){ra=!0}}),window.addEventListener(&quot;test&quot;,si,si),window.removeEventListener(&quot;test&quot;,si,si)}catch{ra=!1}function Bm(e,t,n,r,i,s,l,o,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ei=!1,il=null,sl=!1,ia=null,Wm={onError:function(e){Ei=!0,il=e}};function Hm(e,t,n,r,i,s,l,o,a){Ei=!1,il=null,Bm.apply(Wm,arguments)}function Zm(e,t,n,r,i,s,l,o,a){if(Hm.apply(this,arguments),Ei){if(Ei){var u=il;Ei=!1,il=null}else throw Error(N(198));sl||(sl=!0,ia=u)}}function or(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&amp;4098&amp;&amp;(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Fd(e){if(e.tag===13){var t=e.memoizedState;if(t===null&amp;&amp;(e=e.alternate,e!==null&amp;&amp;(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Sc(e){if(or(e)!==e)throw Error(N(188))}function Qm(e){var t=e.alternate;if(!t){if(t=or(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Sc(i),e;if(s===r)return Sc(i),t;s=s.sibling}throw Error(N(188))}if(n.return!==r.return)n=i,r=s;else{for(var l=!1,o=i.child;o;){if(o===n){l=!0,n=i,r=s;break}if(o===r){l=!0,r=i,n=s;break}o=o.sibling}if(!l){for(o=s.child;o;){if(o===n){l=!0,n=s,r=i;break}if(o===r){l=!0,r=s,n=i;break}o=o.sibling}if(!l)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function Vd(e){return e=Qm(e),e!==null?Bd(e):null}function Bd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Bd(e);if(t!==null)return t;e=e.sibling}return null}var Wd=lt.unstable_scheduleCallback,Ec=lt.unstable_cancelCallback,Km=lt.unstable_shouldYield,bm=lt.unstable_requestPaint,Se=lt.unstable_now,Jm=lt.unstable_getCurrentPriorityLevel,wu=lt.unstable_ImmediatePriority,Hd=lt.unstable_UserBlockingPriority,ll=lt.unstable_NormalPriority,Gm=lt.unstable_LowPriority,Zd=lt.unstable_IdlePriority,Fl=null,zt=null;function Ym(e){if(zt&amp;&amp;typeof zt.onCommitFiberRoot==&quot;function&quot;)try{zt.onCommitFiberRoot(Fl,e,void 0,(e.current.flags&amp;128)===128)}catch{}}var Ot=Math.clz32?Math.clz32:ey,Xm=Math.log,qm=Math.LN2;function ey(e){return e&gt;&gt;&gt;=0,e===0?32:31-(Xm(e)/qm|0)|0}var gs=64,ws=4194304;function vi(e){switch(e&amp;-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: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 e&amp;4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&amp;130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ol(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,l=n&amp;268435455;if(l!==0){var o=l&amp;~i;o!==0?r=vi(o):(s&amp;=l,s!==0&amp;&amp;(r=vi(s)))}else l=n&amp;~i,l!==0?r=vi(l):s!==0&amp;&amp;(r=vi(s));if(r===0)return 0;if(t!==0&amp;&amp;t!==r&amp;&amp;!(t&amp;i)&amp;&amp;(i=r&amp;-r,s=t&amp;-t,i&gt;=s||i===16&amp;&amp;(s&amp;4194240)!==0))return t;if(r&amp;4&amp;&amp;(r|=n&amp;16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&amp;=r;0&lt;t;)n=31-Ot(t),i=1&lt;&lt;n,r|=e[n],t&amp;=~i;return r}function ty(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ny(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0&lt;s;){var l=31-Ot(s),o=1&lt;&lt;l,a=i[l];a===-1?(!(o&amp;n)||o&amp;r)&amp;&amp;(i[l]=ty(o,t)):a&lt;=t&amp;&amp;(e.expiredLanes|=o),s&amp;=~o}}function sa(e){return e=e.pendingLanes&amp;-1073741825,e!==0?e:e&amp;1073741824?1073741824:0}function Qd(){var e=gs;return gs&lt;&lt;=1,!(gs&amp;4194240)&amp;&amp;(gs=64),e}function fo(e){for(var t=[],n=0;31&gt;n;n++)t.push(e);return t}function as(e,t,n){e.pendingLanes|=t,t!==536870912&amp;&amp;(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function ry(e,t){var n=e.pendingLanes&amp;~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&amp;=t,e.mutableReadLanes&amp;=t,e.entangledLanes&amp;=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0&lt;n;){var i=31-Ot(n),s=1&lt;&lt;i;t[i]=0,r[i]=-1,e[i]=-1,n&amp;=~s}}function _u(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ot(n),i=1&lt;&lt;r;i&amp;t|e[r]&amp;t&amp;&amp;(e[r]|=t),n&amp;=~i}}var ae=0;function Kd(e){return e&amp;=-e,1&lt;e?4&lt;e?e&amp;268435455?16:536870912:4:1}var bd,xu,Jd,Gd,Yd,la=!1,_s=[],mn=null,yn=null,vn=null,ji=new Map,Ui=new Map,ln=[],iy=&quot;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 submit&quot;.split(&quot; &quot;);function Cc(e,t){switch(e){case&quot;focusin&quot;:case&quot;focusout&quot;:mn=null;break;case&quot;dragenter&quot;:case&quot;dragleave&quot;:yn=null;break;case&quot;mouseover&quot;:case&quot;mouseout&quot;:vn=null;break;case&quot;pointerover&quot;:case&quot;pointerout&quot;:ji.delete(t.pointerId);break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:Ui.delete(t.pointerId)}}function li(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&amp;&amp;(t=cs(t),t!==null&amp;&amp;xu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&amp;&amp;t.indexOf(i)===-1&amp;&amp;t.push(i),e)}function sy(e,t,n,r,i){switch(t){case&quot;focusin&quot;:return mn=li(mn,e,t,n,r,i),!0;case&quot;dragenter&quot;:return yn=li(yn,e,t,n,r,i),!0;case&quot;mouseover&quot;:return vn=li(vn,e,t,n,r,i),!0;case&quot;pointerover&quot;:var s=i.pointerId;return ji.set(s,li(ji.get(s)||null,e,t,n,r,i)),!0;case&quot;gotpointercapture&quot;:return s=i.pointerId,Ui.set(s,li(Ui.get(s)||null,e,t,n,r,i)),!0}return!1}function Xd(e){var t=Fn(e.target);if(t!==null){var n=or(t);if(n!==null){if(t=n.tag,t===13){if(t=Fd(n),t!==null){e.blockedOn=t,Yd(e.priority,function(){Jd(n)});return}}else if(t===3&amp;&amp;n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0&lt;t.length;){var n=oa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ta=r,n.target.dispatchEvent(r),ta=null}else return t=cs(n),t!==null&amp;&amp;xu(t),e.blockedOn=n,!1;t.shift()}return!0}function Oc(e,t,n){Fs(e)&amp;&amp;n.delete(t)}function ly(){la=!1,mn!==null&amp;&amp;Fs(mn)&amp;&amp;(mn=null),yn!==null&amp;&amp;Fs(yn)&amp;&amp;(yn=null),vn!==null&amp;&amp;Fs(vn)&amp;&amp;(vn=null),ji.forEach(Oc),Ui.forEach(Oc)}function oi(e,t){e.blockedOn===t&amp;&amp;(e.blockedOn=null,la||(la=!0,lt.unstable_scheduleCallback(lt.unstable_NormalPriority,ly)))}function $i(e){function t(i){return oi(i,e)}if(0&lt;_s.length){oi(_s[0],e);for(var n=1;n&lt;_s.length;n++){var r=_s[n];r.blockedOn===e&amp;&amp;(r.blockedOn=null)}}for(mn!==null&amp;&amp;oi(mn,e),yn!==null&amp;&amp;oi(yn,e),vn!==null&amp;&amp;oi(vn,e),ji.forEach(t),Ui.forEach(t),n=0;n&lt;ln.length;n++)r=ln[n],r.blockedOn===e&amp;&amp;(r.blockedOn=null);for(;0&lt;ln.length&amp;&amp;(n=ln[0],n.blockedOn===null);)Xd(n),n.blockedOn===null&amp;&amp;ln.shift()}var Rr=Xt.ReactCurrentBatchConfig,al=!0;function oy(e,t,n,r){var i=ae,s=Rr.transition;Rr.transition=null;try{ae=1,ku(e,t,n,r)}finally{ae=i,Rr.transition=s}}function ay(e,t,n,r){var i=ae,s=Rr.transition;Rr.transition=null;try{ae=4,ku(e,t,n,r)}finally{ae=i,Rr.transition=s}}function ku(e,t,n,r){if(al){var i=oa(e,t,n,r);if(i===null)ko(e,t,r,ul,n),Cc(e,r);else if(sy(i,e,t,n,r))r.stopPropagation();else if(Cc(e,r),t&amp;4&amp;&amp;-1&lt;iy.indexOf(e)){for(;i!==null;){var s=cs(i);if(s!==null&amp;&amp;bd(s),s=oa(e,t,n,r),s===null&amp;&amp;ko(e,t,r,ul,n),s===i)break;i=s}i!==null&amp;&amp;r.stopPropagation()}else ko(e,t,r,null,n)}}var ul=null;function oa(e,t,n,r){if(ul=null,e=gu(r),e=Fn(e),e!==null)if(t=or(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Fd(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&amp;&amp;(e=null);return ul=e,null}function qd(e){switch(e){case&quot;cancel&quot;:case&quot;click&quot;:case&quot;close&quot;:case&quot;contextmenu&quot;:case&quot;copy&quot;:case&quot;cut&quot;:case&quot;auxclick&quot;:case&quot;dblclick&quot;:case&quot;dragend&quot;:case&quot;dragstart&quot;:case&quot;drop&quot;:case&quot;focusin&quot;:case&quot;focusout&quot;:case&quot;input&quot;:case&quot;invalid&quot;:case&quot;keydown&quot;:case&quot;keypress&quot;:case&quot;keyup&quot;:case&quot;mousedown&quot;:case&quot;mouseup&quot;:case&quot;paste&quot;:case&quot;pause&quot;:case&quot;play&quot;:case&quot;pointercancel&quot;:case&quot;pointerdown&quot;:case&quot;pointerup&quot;:case&quot;ratechange&quot;:case&quot;reset&quot;:case&quot;resize&quot;:case&quot;seeked&quot;:case&quot;submit&quot;:case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchstart&quot;:case&quot;volumechange&quot;:case&quot;change&quot;:case&quot;selectionchange&quot;:case&quot;textInput&quot;:case&quot;compositionstart&quot;:case&quot;compositionend&quot;:case&quot;compositionupdate&quot;:case&quot;beforeblur&quot;:case&quot;afterblur&quot;:case&quot;beforeinput&quot;:case&quot;blur&quot;:case&quot;fullscreenchange&quot;:case&quot;focus&quot;:case&quot;hashchange&quot;:case&quot;popstate&quot;:case&quot;select&quot;:case&quot;selectstart&quot;:return 1;case&quot;drag&quot;:case&quot;dragenter&quot;:case&quot;dragexit&quot;:case&quot;dragleave&quot;:case&quot;dragover&quot;:case&quot;mousemove&quot;:case&quot;mouseout&quot;:case&quot;mouseover&quot;:case&quot;pointermove&quot;:case&quot;pointerout&quot;:case&quot;pointerover&quot;:case&quot;scroll&quot;:case&quot;toggle&quot;:case&quot;touchmove&quot;:case&quot;wheel&quot;:case&quot;mouseenter&quot;:case&quot;mouseleave&quot;:case&quot;pointerenter&quot;:case&quot;pointerleave&quot;:return 4;case&quot;message&quot;:switch(Jm()){case wu:return 1;case Hd:return 4;case ll:case Gm:return 16;case Zd:return 536870912;default:return 16}default:return 16}}var dn=null,Su=null,Vs=null;function eh(){if(Vs)return Vs;var e,t=Su,n=t.length,r,i=&quot;value&quot;in dn?dn.value:dn.textContent,s=i.length;for(e=0;e&lt;n&amp;&amp;t[e]===i[e];e++);var l=n-e;for(r=1;r&lt;=l&amp;&amp;t[n-r]===i[s-r];r++);return Vs=i.slice(e,1&lt;r?1-r:void 0)}function Bs(e){var t=e.keyCode;return&quot;charCode&quot;in e?(e=e.charCode,e===0&amp;&amp;t===13&amp;&amp;(e=13)):e=t,e===10&amp;&amp;(e=13),32&lt;=e||e===13?e:0}function xs(){return!0}function Tc(){return!1}function ut(e){function t(n,r,i,s,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&amp;&amp;(n=e[o],this[o]=n?n(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?xs:Tc,this.isPropagationStopped=Tc,this}return ge(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&amp;&amp;(n.preventDefault?n.preventDefault():typeof n.returnValue!=&quot;unknown&quot;&amp;&amp;(n.returnValue=!1),this.isDefaultPrevented=xs)},stopPropagation:function(){var n=this.nativeEvent;n&amp;&amp;(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=&quot;unknown&quot;&amp;&amp;(n.cancelBubble=!0),this.isPropagationStopped=xs)},persist:function(){},isPersistent:xs}),t}var ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eu=ut(ni),us=ge({},ni,{view:0,detail:0}),uy=ut(us),ho,po,ai,Vl=ge({},us,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cu,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&quot;movementX&quot;in e?e.movementX:(e!==ai&amp;&amp;(ai&amp;&amp;e.type===&quot;mousemove&quot;?(ho=e.screenX-ai.screenX,po=e.screenY-ai.screenY):po=ho=0,ai=e),ho)},movementY:function(e){return&quot;movementY&quot;in e?e.movementY:po}}),Nc=ut(Vl),cy=ge({},Vl,{dataTransfer:0}),fy=ut(cy),dy=ge({},us,{relatedTarget:0}),mo=ut(dy),hy=ge({},ni,{animationName:0,elapsedTime:0,pseudoElement:0}),py=ut(hy),my=ge({},ni,{clipboardData:function(e){return&quot;clipboardData&quot;in e?e.clipboardData:window.clipboardData}}),yy=ut(my),vy=ge({},ni,{data:0}),Rc=ut(vy),gy={Esc:&quot;Escape&quot;,Spacebar:&quot; &quot;,Left:&quot;ArrowLeft&quot;,Up:&quot;ArrowUp&quot;,Right:&quot;ArrowRight&quot;,Down:&quot;ArrowDown&quot;,Del:&quot;Delete&quot;,Win:&quot;OS&quot;,Menu:&quot;ContextMenu&quot;,Apps:&quot;ContextMenu&quot;,Scroll:&quot;ScrollLock&quot;,MozPrintableKey:&quot;Unidentified&quot;},wy={8:&quot;Backspace&quot;,9:&quot;Tab&quot;,12:&quot;Clear&quot;,13:&quot;Enter&quot;,16:&quot;Shift&quot;,17:&quot;Control&quot;,18:&quot;Alt&quot;,19:&quot;Pause&quot;,20:&quot;CapsLock&quot;,27:&quot;Escape&quot;,32:&quot; &quot;,33:&quot;PageUp&quot;,34:&quot;PageDown&quot;,35:&quot;End&quot;,36:&quot;Home&quot;,37:&quot;ArrowLeft&quot;,38:&quot;ArrowUp&quot;,39:&quot;ArrowRight&quot;,40:&quot;ArrowDown&quot;,45:&quot;Insert&quot;,46:&quot;Delete&quot;,112:&quot;F1&quot;,113:&quot;F2&quot;,114:&quot;F3&quot;,115:&quot;F4&quot;,116:&quot;F5&quot;,117:&quot;F6&quot;,118:&quot;F7&quot;,119:&quot;F8&quot;,120:&quot;F9&quot;,121:&quot;F10&quot;,122:&quot;F11&quot;,123:&quot;F12&quot;,144:&quot;NumLock&quot;,145:&quot;ScrollLock&quot;,224:&quot;Meta&quot;},_y={Alt:&quot;altKey&quot;,Control:&quot;ctrlKey&quot;,Meta:&quot;metaKey&quot;,Shift:&quot;shiftKey&quot;};function xy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_y[e])?!!t[e]:!1}function Cu(){return xy}var ky=ge({},us,{key:function(e){if(e.key){var t=gy[e.key]||e.key;if(t!==&quot;Unidentified&quot;)return t}return e.type===&quot;keypress&quot;?(e=Bs(e),e===13?&quot;Enter&quot;:String.fromCharCode(e)):e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?wy[e.keyCode]||&quot;Unidentified&quot;:&quot;&quot;},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cu,charCode:function(e){return e.type===&quot;keypress&quot;?Bs(e):0},keyCode:function(e){return e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?e.keyCode:0},which:function(e){return e.type===&quot;keypress&quot;?Bs(e):e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?e.keyCode:0}}),Sy=ut(ky),Ey=ge({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ac=ut(Ey),Cy=ge({},us,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cu}),Oy=ut(Cy),Ty=ge({},ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ny=ut(Ty),Ry=ge({},Vl,{deltaX:function(e){return&quot;deltaX&quot;in e?e.deltaX:&quot;wheelDeltaX&quot;in e?-e.wheelDeltaX:0},deltaY:function(e){return&quot;deltaY&quot;in e?e.deltaY:&quot;wheelDeltaY&quot;in e?-e.wheelDeltaY:&quot;wheelDelta&quot;in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ay=ut(Ry),Iy=[9,13,27,32],Ou=Kt&amp;&amp;&quot;CompositionEvent&quot;in window,Ci=null;Kt&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;(Ci=document.documentMode);var Py=Kt&amp;&amp;&quot;TextEvent&quot;in window&amp;&amp;!Ci,th=Kt&amp;&amp;(!Ou||Ci&amp;&amp;8&lt;Ci&amp;&amp;11&gt;=Ci),Ic=&quot; &quot;,Pc=!1;function nh(e,t){switch(e){case&quot;keyup&quot;:return Iy.indexOf(t.keyCode)!==-1;case&quot;keydown&quot;:return t.keyCode!==229;case&quot;keypress&quot;:case&quot;mousedown&quot;:case&quot;focusout&quot;:return!0;default:return!1}}function rh(e){return e=e.detail,typeof e==&quot;object&quot;&amp;&amp;&quot;data&quot;in e?e.data:null}var pr=!1;function Ly(e,t){switch(e){case&quot;compositionend&quot;:return rh(t);case&quot;keypress&quot;:return t.which!==32?null:(Pc=!0,Ic);case&quot;textInput&quot;:return e=t.data,e===Ic&amp;&amp;Pc?null:e;default:return null}}function My(e,t){if(pr)return e===&quot;compositionend&quot;||!Ou&amp;&amp;nh(e,t)?(e=eh(),Vs=Su=dn=null,pr=!1,e):null;switch(e){case&quot;paste&quot;:return null;case&quot;keypress&quot;:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&amp;&amp;t.altKey){if(t.char&amp;&amp;1&lt;t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case&quot;compositionend&quot;:return th&amp;&amp;t.locale!==&quot;ko&quot;?null:t.data;default:return null}}var Dy={color:!0,date:!0,datetime:!0,&quot;datetime-local&quot;:!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Lc(e){var t=e&amp;&amp;e.nodeName&amp;&amp;e.nodeName.toLowerCase();return t===&quot;input&quot;?!!Dy[e.type]:t===&quot;textarea&quot;}function ih(e,t,n,r){Dd(r),t=cl(t,&quot;onChange&quot;),0&lt;t.length&amp;&amp;(n=new Eu(&quot;onChange&quot;,&quot;change&quot;,null,n,r),e.push({event:n,listeners:t}))}var Oi=null,Fi=null;function zy(e){mh(e,0)}function Bl(e){var t=vr(e);if(Nd(t))return e}function jy(e,t){if(e===&quot;change&quot;)return t}var sh=!1;if(Kt){var yo;if(Kt){var vo=&quot;oninput&quot;in document;if(!vo){var Mc=document.createElement(&quot;div&quot;);Mc.setAttribute(&quot;oninput&quot;,&quot;return;&quot;),vo=typeof Mc.oninput==&quot;function&quot;}yo=vo}else yo=!1;sh=yo&amp;&amp;(!document.documentMode||9&lt;document.documentMode)}function Dc(){Oi&amp;&amp;(Oi.detachEvent(&quot;onpropertychange&quot;,lh),Fi=Oi=null)}function lh(e){if(e.propertyName===&quot;value&quot;&amp;&amp;Bl(Fi)){var t=[];ih(t,Fi,e,gu(e)),$d(zy,t)}}function Uy(e,t,n){e===&quot;focusin&quot;?(Dc(),Oi=t,Fi=n,Oi.attachEvent(&quot;onpropertychange&quot;,lh)):e===&quot;focusout&quot;&amp;&amp;Dc()}function $y(e){if(e===&quot;selectionchange&quot;||e===&quot;keyup&quot;||e===&quot;keydown&quot;)return Bl(Fi)}function Fy(e,t){if(e===&quot;click&quot;)return Bl(t)}function Vy(e,t){if(e===&quot;input&quot;||e===&quot;change&quot;)return Bl(t)}function By(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var Nt=typeof Object.is==&quot;function&quot;?Object.is:By;function Vi(e,t){if(Nt(e,t))return!0;if(typeof e!=&quot;object&quot;||e===null||typeof t!=&quot;object&quot;||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r&lt;n.length;r++){var i=n[r];if(!Wo.call(t,i)||!Nt(e[i],t[i]))return!1}return!0}function zc(e){for(;e&amp;&amp;e.firstChild;)e=e.firstChild;return e}function jc(e,t){var n=zc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e&lt;=t&amp;&amp;r&gt;=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zc(n)}}function oh(e,t){return e&amp;&amp;t?e===t?!0:e&amp;&amp;e.nodeType===3?!1:t&amp;&amp;t.nodeType===3?oh(e,t.parentNode):&quot;contains&quot;in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&amp;16):!1:!1}function ah(){for(var e=window,t=rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==&quot;string&quot;}catch{n=!1}if(n)e=t.contentWindow;else break;t=rl(e.document)}return t}function Tu(e){var t=e&amp;&amp;e.nodeName&amp;&amp;e.nodeName.toLowerCase();return t&amp;&amp;(t===&quot;input&quot;&amp;&amp;(e.type===&quot;text&quot;||e.type===&quot;search&quot;||e.type===&quot;tel&quot;||e.type===&quot;url&quot;||e.type===&quot;password&quot;)||t===&quot;textarea&quot;||e.contentEditable===&quot;true&quot;)}function Wy(e){var t=ah(),n=e.focusedElem,r=e.selectionRange;if(t!==n&amp;&amp;n&amp;&amp;n.ownerDocument&amp;&amp;oh(n.ownerDocument.documentElement,n)){if(r!==null&amp;&amp;Tu(n)){if(t=r.start,e=r.end,e===void 0&amp;&amp;(e=t),&quot;selectionStart&quot;in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&amp;&amp;t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&amp;&amp;s&gt;r&amp;&amp;(i=r,r=s,s=i),i=jc(n,s);var l=jc(n,r);i&amp;&amp;l&amp;&amp;(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&amp;&amp;(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s&gt;r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&amp;&amp;t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==&quot;function&quot;&amp;&amp;n.focus(),n=0;n&lt;t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hy=Kt&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;11&gt;=document.documentMode,mr=null,aa=null,Ti=null,ua=!1;function Uc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ua||mr==null||mr!==rl(r)||(r=mr,&quot;selectionStart&quot;in r&amp;&amp;Tu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&amp;&amp;r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ti&amp;&amp;Vi(Ti,r)||(Ti=r,r=cl(aa,&quot;onSelect&quot;),0&lt;r.length&amp;&amp;(t=new Eu(&quot;onSelect&quot;,&quot;select&quot;,null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function ks(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[&quot;Webkit&quot;+e]=&quot;webkit&quot;+t,n[&quot;Moz&quot;+e]=&quot;moz&quot;+t,n}var yr={animationend:ks(&quot;Animation&quot;,&quot;AnimationEnd&quot;),animationiteration:ks(&quot;Animation&quot;,&quot;AnimationIteration&quot;),animationstart:ks(&quot;Animation&quot;,&quot;AnimationStart&quot;),transitionend:ks(&quot;Transition&quot;,&quot;TransitionEnd&quot;)},go={},uh={};Kt&amp;&amp;(uh=document.createElement(&quot;div&quot;).style,&quot;AnimationEvent&quot;in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),&quot;TransitionEvent&quot;in window||delete yr.transitionend.transition);function Wl(e){if(go[e])return go[e];if(!yr[e])return e;var t=yr[e],n;for(n in t)if(t.hasOwnProperty(n)&amp;&amp;n in uh)return go[e]=t[n];return e}var ch=Wl(&quot;animationend&quot;),fh=Wl(&quot;animationiteration&quot;),dh=Wl(&quot;animationstart&quot;),hh=Wl(&quot;transitionend&quot;),ph=new Map,$c=&quot;abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error 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&quot;.split(&quot; &quot;);function Rn(e,t){ph.set(e,t),lr(t,[e])}for(var wo=0;wo&lt;$c.length;wo++){var _o=$c[wo],Zy=_o.toLowerCase(),Qy=_o[0].toUpperCase()+_o.slice(1);Rn(Zy,&quot;on&quot;+Qy)}Rn(ch,&quot;onAnimationEnd&quot;);Rn(fh,&quot;onAnimationIteration&quot;);Rn(dh,&quot;onAnimationStart&quot;);Rn(&quot;dblclick&quot;,&quot;onDoubleClick&quot;);Rn(&quot;focusin&quot;,&quot;onFocus&quot;);Rn(&quot;focusout&quot;,&quot;onBlur&quot;);Rn(hh,&quot;onTransitionEnd&quot;);Vr(&quot;onMouseEnter&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]);Vr(&quot;onMouseLeave&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]);Vr(&quot;onPointerEnter&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]);Vr(&quot;onPointerLeave&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]);lr(&quot;onChange&quot;,&quot;change click focusin focusout input keydown keyup selectionchange&quot;.split(&quot; &quot;));lr(&quot;onSelect&quot;,&quot;focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange&quot;.split(&quot; &quot;));lr(&quot;onBeforeInput&quot;,[&quot;compositionend&quot;,&quot;keypress&quot;,&quot;textInput&quot;,&quot;paste&quot;]);lr(&quot;onCompositionEnd&quot;,&quot;compositionend focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));lr(&quot;onCompositionStart&quot;,&quot;compositionstart focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));lr(&quot;onCompositionUpdate&quot;,&quot;compositionupdate focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));var gi=&quot;abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting&quot;.split(&quot; &quot;),Ky=new Set(&quot;cancel close invalid load scroll toggle&quot;.split(&quot; &quot;).concat(gi));function Fc(e,t,n){var r=e.type||&quot;unknown-event&quot;;e.currentTarget=n,Zm(r,t,void 0,e),e.currentTarget=null}function mh(e,t){t=(t&amp;4)!==0;for(var n=0;n&lt;e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var l=r.length-1;0&lt;=l;l--){var o=r[l],a=o.instance,u=o.currentTarget;if(o=o.listener,a!==s&amp;&amp;i.isPropagationStopped())break e;Fc(i,o,u),s=a}else for(l=0;l&lt;r.length;l++){if(o=r[l],a=o.instance,u=o.currentTarget,o=o.listener,a!==s&amp;&amp;i.isPropagationStopped())break e;Fc(i,o,u),s=a}}}if(sl)throw e=ia,sl=!1,ia=null,e}function fe(e,t){var n=t[pa];n===void 0&amp;&amp;(n=t[pa]=new Set);var r=e+&quot;__bubble&quot;;n.has(r)||(yh(t,e,2,!1),n.add(r))}function xo(e,t,n){var r=0;t&amp;&amp;(r|=4),yh(n,e,r,t)}var Ss=&quot;_reactListening&quot;+Math.random().toString(36).slice(2);function Bi(e){if(!e[Ss]){e[Ss]=!0,Sd.forEach(function(n){n!==&quot;selectionchange&quot;&amp;&amp;(Ky.has(n)||xo(n,!1,e),xo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ss]||(t[Ss]=!0,xo(&quot;selectionchange&quot;,!1,t))}}function yh(e,t,n,r){switch(qd(t)){case 1:var i=oy;break;case 4:i=ay;break;default:i=ku}n=i.bind(null,t,n,e),i=void 0,!ra||t!==&quot;touchstart&quot;&amp;&amp;t!==&quot;touchmove&quot;&amp;&amp;t!==&quot;wheel&quot;||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ko(e,t,n,r,i){var s=r;if(!(t&amp;1)&amp;&amp;!(t&amp;2)&amp;&amp;r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&amp;&amp;o.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&amp;&amp;(a=l.stateNode.containerInfo,a===i||a.nodeType===8&amp;&amp;a.parentNode===i))return;l=l.return}for(;o!==null;){if(l=Fn(o),l===null)return;if(a=l.tag,a===5||a===6){r=s=l;continue e}o=o.parentNode}}r=r.return}$d(function(){var u=s,c=gu(n),p=[];e:{var y=ph.get(e);if(y!==void 0){var w=Eu,_=e;switch(e){case&quot;keypress&quot;:if(Bs(n)===0)break e;case&quot;keydown&quot;:case&quot;keyup&quot;:w=Sy;break;case&quot;focusin&quot;:_=&quot;focus&quot;,w=mo;break;case&quot;focusout&quot;:_=&quot;blur&quot;,w=mo;break;case&quot;beforeblur&quot;:case&quot;afterblur&quot;:w=mo;break;case&quot;click&quot;:if(n.button===2)break e;case&quot;auxclick&quot;:case&quot;dblclick&quot;:case&quot;mousedown&quot;:case&quot;mousemove&quot;:case&quot;mouseup&quot;:case&quot;mouseout&quot;:case&quot;mouseover&quot;:case&quot;contextmenu&quot;:w=Nc;break;case&quot;drag&quot;:case&quot;dragend&quot;:case&quot;dragenter&quot;:case&quot;dragexit&quot;:case&quot;dragleave&quot;:case&quot;dragover&quot;:case&quot;dragstart&quot;:case&quot;drop&quot;:w=fy;break;case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchmove&quot;:case&quot;touchstart&quot;:w=Oy;break;case ch:case fh:case dh:w=py;break;case hh:w=Ny;break;case&quot;scroll&quot;:w=uy;break;case&quot;wheel&quot;:w=Ay;break;case&quot;copy&quot;:case&quot;cut&quot;:case&quot;paste&quot;:w=yy;break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:case&quot;pointercancel&quot;:case&quot;pointerdown&quot;:case&quot;pointermove&quot;:case&quot;pointerout&quot;:case&quot;pointerover&quot;:case&quot;pointerup&quot;:w=Ac}var E=(t&amp;4)!==0,J=!E&amp;&amp;e===&quot;scroll&quot;,m=E?y!==null?y+&quot;Capture&quot;:null:y;E=[];for(var d=u,h;d!==null;){h=d;var O=h.stateNode;if(h.tag===5&amp;&amp;O!==null&amp;&amp;(h=O,m!==null&amp;&amp;(O=zi(d,m),O!=null&amp;&amp;E.push(Wi(d,O,h)))),J)break;d=d.return}0&lt;E.length&amp;&amp;(y=new w(y,_,null,n,c),p.push({event:y,listeners:E}))}}if(!(t&amp;7)){e:{if(y=e===&quot;mouseover&quot;||e===&quot;pointerover&quot;,w=e===&quot;mouseout&quot;||e===&quot;pointerout&quot;,y&amp;&amp;n!==ta&amp;&amp;(_=n.relatedTarget||n.fromElement)&amp;&amp;(Fn(_)||_[bt]))break e;if((w||y)&amp;&amp;(y=c.window===c?c:(y=c.ownerDocument)?y.defaultView||y.parentWindow:window,w?(_=n.relatedTarget||n.toElement,w=u,_=_?Fn(_):null,_!==null&amp;&amp;(J=or(_),_!==J||_.tag!==5&amp;&amp;_.tag!==6)&amp;&amp;(_=null)):(w=null,_=u),w!==_)){if(E=Nc,O=&quot;onMouseLeave&quot;,m=&quot;onMouseEnter&quot;,d=&quot;mouse&quot;,(e===&quot;pointerout&quot;||e===&quot;pointerover&quot;)&amp;&amp;(E=Ac,O=&quot;onPointerLeave&quot;,m=&quot;onPointerEnter&quot;,d=&quot;pointer&quot;),J=w==null?y:vr(w),h=_==null?y:vr(_),y=new E(O,d+&quot;leave&quot;,w,n,c),y.target=J,y.relatedTarget=h,O=null,Fn(c)===u&amp;&amp;(E=new E(m,d+&quot;enter&quot;,_,n,c),E.target=h,E.relatedTarget=J,O=E),J=O,w&amp;&amp;_)t:{for(E=w,m=_,d=0,h=E;h;h=ar(h))d++;for(h=0,O=m;O;O=ar(O))h++;for(;0&lt;d-h;)E=ar(E),d--;for(;0&lt;h-d;)m=ar(m),h--;for(;d--;){if(E===m||m!==null&amp;&amp;E===m.alternate)break t;E=ar(E),m=ar(m)}E=null}else E=null;w!==null&amp;&amp;Vc(p,y,w,E,!1),_!==null&amp;&amp;J!==null&amp;&amp;Vc(p,J,_,E,!0)}}e:{if(y=u?vr(u):window,w=y.nodeName&amp;&amp;y.nodeName.toLowerCase(),w===&quot;select&quot;||w===&quot;input&quot;&amp;&amp;y.type===&quot;file&quot;)var L=jy;else if(Lc(y))if(sh)L=Vy;else{L=$y;var z=Uy}else(w=y.nodeName)&amp;&amp;w.toLowerCase()===&quot;input&quot;&amp;&amp;(y.type===&quot;checkbox&quot;||y.type===&quot;radio&quot;)&amp;&amp;(L=Fy);if(L&amp;&amp;(L=L(e,u))){ih(p,L,n,c);break e}z&amp;&amp;z(e,y,u),e===&quot;focusout&quot;&amp;&amp;(z=y._wrapperState)&amp;&amp;z.controlled&amp;&amp;y.type===&quot;number&quot;&amp;&amp;Go(y,&quot;number&quot;,y.value)}switch(z=u?vr(u):window,e){case&quot;focusin&quot;:(Lc(z)||z.contentEditable===&quot;true&quot;)&amp;&amp;(mr=z,aa=u,Ti=null);break;case&quot;focusout&quot;:Ti=aa=mr=null;break;case&quot;mousedown&quot;:ua=!0;break;case&quot;contextmenu&quot;:case&quot;mouseup&quot;:case&quot;dragend&quot;:ua=!1,Uc(p,n,c);break;case&quot;selectionchange&quot;:if(Hy)break;case&quot;keydown&quot;:case&quot;keyup&quot;:Uc(p,n,c)}var F;if(Ou)e:{switch(e){case&quot;compositionstart&quot;:var V=&quot;onCompositionStart&quot;;break e;case&quot;compositionend&quot;:V=&quot;onCompositionEnd&quot;;break e;case&quot;compositionupdate&quot;:V=&quot;onCompositionUpdate&quot;;break e}V=void 0}else pr?nh(e,n)&amp;&amp;(V=&quot;onCompositionEnd&quot;):e===&quot;keydown&quot;&amp;&amp;n.keyCode===229&amp;&amp;(V=&quot;onCompositionStart&quot;);V&amp;&amp;(th&amp;&amp;n.locale!==&quot;ko&quot;&amp;&amp;(pr||V!==&quot;onCompositionStart&quot;?V===&quot;onCompositionEnd&quot;&amp;&amp;pr&amp;&amp;(F=eh()):(dn=c,Su=&quot;value&quot;in dn?dn.value:dn.textContent,pr=!0)),z=cl(u,V),0&lt;z.length&amp;&amp;(V=new Rc(V,e,null,n,c),p.push({event:V,listeners:z}),F?V.data=F:(F=rh(n),F!==null&amp;&amp;(V.data=F)))),(F=Py?Ly(e,n):My(e,n))&amp;&amp;(u=cl(u,&quot;onBeforeInput&quot;),0&lt;u.length&amp;&amp;(c=new Rc(&quot;onBeforeInput&quot;,&quot;beforeinput&quot;,null,n,c),p.push({event:c,listeners:u}),c.data=F))}mh(p,t)})}function Wi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function cl(e,t){for(var n=t+&quot;Capture&quot;,r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&amp;&amp;s!==null&amp;&amp;(i=s,s=zi(e,n),s!=null&amp;&amp;r.unshift(Wi(e,s,i)),s=zi(e,t),s!=null&amp;&amp;r.push(Wi(e,s,i))),e=e.return}return r}function ar(e){if(e===null)return null;do e=e.return;while(e&amp;&amp;e.tag!==5);return e||null}function Vc(e,t,n,r,i){for(var s=t._reactName,l=[];n!==null&amp;&amp;n!==r;){var o=n,a=o.alternate,u=o.stateNode;if(a!==null&amp;&amp;a===r)break;o.tag===5&amp;&amp;u!==null&amp;&amp;(o=u,i?(a=zi(n,s),a!=null&amp;&amp;l.unshift(Wi(n,a,o))):i||(a=zi(n,s),a!=null&amp;&amp;l.push(Wi(n,a,o)))),n=n.return}l.length!==0&amp;&amp;e.push({event:t,listeners:l})}var by=/\r\n?/g,Jy=/\u0000|\uFFFD/g;function Bc(e){return(typeof e==&quot;string&quot;?e:&quot;&quot;+e).replace(by,`
`).replace(Jy,&quot;&quot;)}function Es(e,t,n){if(t=Bc(t),Bc(e)!==t&amp;&amp;n)throw Error(N(425))}function fl(){}var ca=null,fa=null;function da(e,t){return e===&quot;textarea&quot;||e===&quot;noscript&quot;||typeof t.children==&quot;string&quot;||typeof t.children==&quot;number&quot;||typeof t.dangerouslySetInnerHTML==&quot;object&quot;&amp;&amp;t.dangerouslySetInnerHTML!==null&amp;&amp;t.dangerouslySetInnerHTML.__html!=null}var ha=typeof setTimeout==&quot;function&quot;?setTimeout:void 0,Gy=typeof clearTimeout==&quot;function&quot;?clearTimeout:void 0,Wc=typeof Promise==&quot;function&quot;?Promise:void 0,Yy=typeof queueMicrotask==&quot;function&quot;?queueMicrotask:typeof Wc&lt;&quot;u&quot;?function(e){return Wc.resolve(null).then(e).catch(Xy)}:ha;function Xy(e){setTimeout(function(){throw e})}function So(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&amp;&amp;i.nodeType===8)if(n=i.data,n===&quot;/$&quot;){if(r===0){e.removeChild(i),$i(t);return}r--}else n!==&quot;$&quot;&amp;&amp;n!==&quot;$?&quot;&amp;&amp;n!==&quot;$!&quot;||r++;n=i}while(n);$i(t)}function gn(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===&quot;$&quot;||t===&quot;$!&quot;||t===&quot;$?&quot;)break;if(t===&quot;/$&quot;)return null}}return e}function Hc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===&quot;$&quot;||n===&quot;$!&quot;||n===&quot;$?&quot;){if(t===0)return e;t--}else n===&quot;/$&quot;&amp;&amp;t++}e=e.previousSibling}return null}var ri=Math.random().toString(36).slice(2),Dt=&quot;__reactFiber$&quot;+ri,Hi=&quot;__reactProps$&quot;+ri,bt=&quot;__reactContainer$&quot;+ri,pa=&quot;__reactEvents$&quot;+ri,qy=&quot;__reactListeners$&quot;+ri,ev=&quot;__reactHandles$&quot;+ri;function Fn(e){var t=e[Dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[bt]||n[Dt]){if(n=t.alternate,t.child!==null||n!==null&amp;&amp;n.child!==null)for(e=Hc(e);e!==null;){if(n=e[Dt])return n;e=Hc(e)}return t}e=n,n=e.parentNode}return null}function cs(e){return e=e[Dt]||e[bt],!e||e.tag!==5&amp;&amp;e.tag!==6&amp;&amp;e.tag!==13&amp;&amp;e.tag!==3?null:e}function vr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function Hl(e){return e[Hi]||null}var ma=[],gr=-1;function An(e){return{current:e}}function pe(e){0&gt;gr||(e.current=ma[gr],ma[gr]=null,gr--)}function ue(e,t){gr++,ma[gr]=e.current,e.current=t}var On={},Fe=An(On),Ye=An(!1),qn=On;function Br(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&amp;&amp;r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&amp;&amp;(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xe(e){return e=e.childContextTypes,e!=null}function dl(){pe(Ye),pe(Fe)}function Zc(e,t,n){if(Fe.current!==On)throw Error(N(168));ue(Fe,t),ue(Ye,n)}function vh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!=&quot;function&quot;)return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(N(108,Um(e)||&quot;Unknown&quot;,i));return ge({},n,r)}function hl(e){return e=(e=e.stateNode)&amp;&amp;e.__reactInternalMemoizedMergedChildContext||On,qn=Fe.current,ue(Fe,e),ue(Ye,Ye.current),!0}function Qc(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=vh(e,t,qn),r.__reactInternalMemoizedMergedChildContext=e,pe(Ye),pe(Fe),ue(Fe,e)):pe(Ye),ue(Ye,n)}var Vt=null,Zl=!1,Eo=!1;function gh(e){Vt===null?Vt=[e]:Vt.push(e)}function tv(e){Zl=!0,gh(e)}function In(){if(!Eo&amp;&amp;Vt!==null){Eo=!0;var e=0,t=ae;try{var n=Vt;for(ae=1;e&lt;n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Vt=null,Zl=!1}catch(i){throw Vt!==null&amp;&amp;(Vt=Vt.slice(e+1)),Wd(wu,In),i}finally{ae=t,Eo=!1}}return null}var wr=[],_r=0,pl=null,ml=0,ct=[],ft=0,er=null,Ht=1,Zt=&quot;&quot;;function zn(e,t){wr[_r++]=ml,wr[_r++]=pl,pl=e,ml=t}function wh(e,t,n){ct[ft++]=Ht,ct[ft++]=Zt,ct[ft++]=er,er=e;var r=Ht;e=Zt;var i=32-Ot(r)-1;r&amp;=~(1&lt;&lt;i),n+=1;var s=32-Ot(t)+i;if(30&lt;s){var l=i-i%5;s=(r&amp;(1&lt;&lt;l)-1).toString(32),r&gt;&gt;=l,i-=l,Ht=1&lt;&lt;32-Ot(t)+i|n&lt;&lt;i|r,Zt=s+e}else Ht=1&lt;&lt;s|n&lt;&lt;i|r,Zt=e}function Nu(e){e.return!==null&amp;&amp;(zn(e,1),wh(e,1,0))}function Ru(e){for(;e===pl;)pl=wr[--_r],wr[_r]=null,ml=wr[--_r],wr[_r]=null;for(;e===er;)er=ct[--ft],ct[ft]=null,Zt=ct[--ft],ct[ft]=null,Ht=ct[--ft],ct[ft]=null}var st=null,rt=null,me=!1,Ct=null;function _h(e,t){var n=mt(5,null,null,0);n.elementType=&quot;DELETED&quot;,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Kc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,st=e,rt=gn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===&quot;&quot;||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,st=e,rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=er!==null?{id:Ht,overflow:Zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,st=e,rt=null,!0):!1;default:return!1}}function ya(e){return(e.mode&amp;1)!==0&amp;&amp;(e.flags&amp;128)===0}function va(e){if(me){var t=rt;if(t){var n=t;if(!Kc(e,t)){if(ya(e))throw Error(N(418));t=gn(n.nextSibling);var r=st;t&amp;&amp;Kc(e,t)?_h(r,n):(e.flags=e.flags&amp;-4097|2,me=!1,st=e)}}else{if(ya(e))throw Error(N(418));e.flags=e.flags&amp;-4097|2,me=!1,st=e}}}function bc(e){for(e=e.return;e!==null&amp;&amp;e.tag!==5&amp;&amp;e.tag!==3&amp;&amp;e.tag!==13;)e=e.return;st=e}function Cs(e){if(e!==st)return!1;if(!me)return bc(e),me=!0,!1;var t;if((t=e.tag!==3)&amp;&amp;!(t=e.tag!==5)&amp;&amp;(t=e.type,t=t!==&quot;head&quot;&amp;&amp;t!==&quot;body&quot;&amp;&amp;!da(e.type,e.memoizedProps)),t&amp;&amp;(t=rt)){if(ya(e))throw xh(),Error(N(418));for(;t;)_h(e,t),t=gn(t.nextSibling)}if(bc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===&quot;/$&quot;){if(t===0){rt=gn(e.nextSibling);break e}t--}else n!==&quot;$&quot;&amp;&amp;n!==&quot;$!&quot;&amp;&amp;n!==&quot;$?&quot;||t++}e=e.nextSibling}rt=null}}else rt=st?gn(e.stateNode.nextSibling):null;return!0}function xh(){for(var e=rt;e;)e=gn(e.nextSibling)}function Wr(){rt=st=null,me=!1}function Au(e){Ct===null?Ct=[e]:Ct.push(e)}var nv=Xt.ReactCurrentBatchConfig;function ui(e,t,n){if(e=n.ref,e!==null&amp;&amp;typeof e!=&quot;function&quot;&amp;&amp;typeof e!=&quot;object&quot;){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var i=r,s=&quot;&quot;+e;return t!==null&amp;&amp;t.ref!==null&amp;&amp;typeof t.ref==&quot;function&quot;&amp;&amp;t.ref._stringRef===s?t.ref:(t=function(l){var o=i.refs;l===null?delete o[s]:o[s]=l},t._stringRef=s,t)}if(typeof e!=&quot;string&quot;)throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Os(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(t).join(&quot;, &quot;)+&quot;}&quot;:e))}function Jc(e){var t=e._init;return t(e._payload)}function kh(e){function t(m,d){if(e){var h=m.deletions;h===null?(m.deletions=[d],m.flags|=16):h.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function r(m,d){for(m=new Map;d!==null;)d.key!==null?m.set(d.key,d):m.set(d.index,d),d=d.sibling;return m}function i(m,d){return m=kn(m,d),m.index=0,m.sibling=null,m}function s(m,d,h){return m.index=h,e?(h=m.alternate,h!==null?(h=h.index,h&lt;d?(m.flags|=2,d):h):(m.flags|=2,d)):(m.flags|=1048576,d)}function l(m){return e&amp;&amp;m.alternate===null&amp;&amp;(m.flags|=2),m}function o(m,d,h,O){return d===null||d.tag!==6?(d=Io(h,m.mode,O),d.return=m,d):(d=i(d,h),d.return=m,d)}function a(m,d,h,O){var L=h.type;return L===hr?c(m,d,h.props.children,O,h.key):d!==null&amp;&amp;(d.elementType===L||typeof L==&quot;object&quot;&amp;&amp;L!==null&amp;&amp;L.$$typeof===nn&amp;&amp;Jc(L)===d.type)?(O=i(d,h.props),O.ref=ui(m,d,h),O.return=m,O):(O=Js(h.type,h.key,h.props,null,m.mode,O),O.ref=ui(m,d,h),O.return=m,O)}function u(m,d,h,O){return d===null||d.tag!==4||d.stateNode.containerInfo!==h.containerInfo||d.stateNode.implementation!==h.implementation?(d=Po(h,m.mode,O),d.return=m,d):(d=i(d,h.children||[]),d.return=m,d)}function c(m,d,h,O,L){return d===null||d.tag!==7?(d=Jn(h,m.mode,O,L),d.return=m,d):(d=i(d,h),d.return=m,d)}function p(m,d,h){if(typeof d==&quot;string&quot;&amp;&amp;d!==&quot;&quot;||typeof d==&quot;number&quot;)return d=Io(&quot;&quot;+d,m.mode,h),d.return=m,d;if(typeof d==&quot;object&quot;&amp;&amp;d!==null){switch(d.$$typeof){case ms:return h=Js(d.type,d.key,d.props,null,m.mode,h),h.ref=ui(m,null,d),h.return=m,h;case dr:return d=Po(d,m.mode,h),d.return=m,d;case nn:var O=d._init;return p(m,O(d._payload),h)}if(yi(d)||ii(d))return d=Jn(d,m.mode,h,null),d.return=m,d;Os(m,d)}return null}function y(m,d,h,O){var L=d!==null?d.key:null;if(typeof h==&quot;string&quot;&amp;&amp;h!==&quot;&quot;||typeof h==&quot;number&quot;)return L!==null?null:o(m,d,&quot;&quot;+h,O);if(typeof h==&quot;object&quot;&amp;&amp;h!==null){switch(h.$$typeof){case ms:return h.key===L?a(m,d,h,O):null;case dr:return h.key===L?u(m,d,h,O):null;case nn:return L=h._init,y(m,d,L(h._payload),O)}if(yi(h)||ii(h))return L!==null?null:c(m,d,h,O,null);Os(m,h)}return null}function w(m,d,h,O,L){if(typeof O==&quot;string&quot;&amp;&amp;O!==&quot;&quot;||typeof O==&quot;number&quot;)return m=m.get(h)||null,o(d,m,&quot;&quot;+O,L);if(typeof O==&quot;object&quot;&amp;&amp;O!==null){switch(O.$$typeof){case ms:return m=m.get(O.key===null?h:O.key)||null,a(d,m,O,L);case dr:return m=m.get(O.key===null?h:O.key)||null,u(d,m,O,L);case nn:var z=O._init;return w(m,d,h,z(O._payload),L)}if(yi(O)||ii(O))return m=m.get(h)||null,c(d,m,O,L,null);Os(d,O)}return null}function _(m,d,h,O){for(var L=null,z=null,F=d,V=d=0,ce=null;F!==null&amp;&amp;V&lt;h.length;V++){F.index&gt;V?(ce=F,F=null):ce=F.sibling;var G=y(m,F,h[V],O);if(G===null){F===null&amp;&amp;(F=ce);break}e&amp;&amp;F&amp;&amp;G.alternate===null&amp;&amp;t(m,F),d=s(G,d,V),z===null?L=G:z.sibling=G,z=G,F=ce}if(V===h.length)return n(m,F),me&amp;&amp;zn(m,V),L;if(F===null){for(;V&lt;h.length;V++)F=p(m,h[V],O),F!==null&amp;&amp;(d=s(F,d,V),z===null?L=F:z.sibling=F,z=F);return me&amp;&amp;zn(m,V),L}for(F=r(m,F);V&lt;h.length;V++)ce=w(F,m,V,h[V],O),ce!==null&amp;&amp;(e&amp;&amp;ce.alternate!==null&amp;&amp;F.delete(ce.key===null?V:ce.key),d=s(ce,d,V),z===null?L=ce:z.sibling=ce,z=ce);return e&amp;&amp;F.forEach(function(Ke){return t(m,Ke)}),me&amp;&amp;zn(m,V),L}function E(m,d,h,O){var L=ii(h);if(typeof L!=&quot;function&quot;)throw Error(N(150));if(h=L.call(h),h==null)throw Error(N(151));for(var z=L=null,F=d,V=d=0,ce=null,G=h.next();F!==null&amp;&amp;!G.done;V++,G=h.next()){F.index&gt;V?(ce=F,F=null):ce=F.sibling;var Ke=y(m,F,G.value,O);if(Ke===null){F===null&amp;&amp;(F=ce);break}e&amp;&amp;F&amp;&amp;Ke.alternate===null&amp;&amp;t(m,F),d=s(Ke,d,V),z===null?L=Ke:z.sibling=Ke,z=Ke,F=ce}if(G.done)return n(m,F),me&amp;&amp;zn(m,V),L;if(F===null){for(;!G.done;V++,G=h.next())G=p(m,G.value,O),G!==null&amp;&amp;(d=s(G,d,V),z===null?L=G:z.sibling=G,z=G);return me&amp;&amp;zn(m,V),L}for(F=r(m,F);!G.done;V++,G=h.next())G=w(F,m,V,G.value,O),G!==null&amp;&amp;(e&amp;&amp;G.alternate!==null&amp;&amp;F.delete(G.key===null?V:G.key),d=s(G,d,V),z===null?L=G:z.sibling=G,z=G);return e&amp;&amp;F.forEach(function(qt){return t(m,qt)}),me&amp;&amp;zn(m,V),L}function J(m,d,h,O){if(typeof h==&quot;object&quot;&amp;&amp;h!==null&amp;&amp;h.type===hr&amp;&amp;h.key===null&amp;&amp;(h=h.props.children),typeof h==&quot;object&quot;&amp;&amp;h!==null){switch(h.$$typeof){case ms:e:{for(var L=h.key,z=d;z!==null;){if(z.key===L){if(L=h.type,L===hr){if(z.tag===7){n(m,z.sibling),d=i(z,h.props.children),d.return=m,m=d;break e}}else if(z.elementType===L||typeof L==&quot;object&quot;&amp;&amp;L!==null&amp;&amp;L.$$typeof===nn&amp;&amp;Jc(L)===z.type){n(m,z.sibling),d=i(z,h.props),d.ref=ui(m,z,h),d.return=m,m=d;break e}n(m,z);break}else t(m,z);z=z.sibling}h.type===hr?(d=Jn(h.props.children,m.mode,O,h.key),d.return=m,m=d):(O=Js(h.type,h.key,h.props,null,m.mode,O),O.ref=ui(m,d,h),O.return=m,m=O)}return l(m);case dr:e:{for(z=h.key;d!==null;){if(d.key===z)if(d.tag===4&amp;&amp;d.stateNode.containerInfo===h.containerInfo&amp;&amp;d.stateNode.implementation===h.implementation){n(m,d.sibling),d=i(d,h.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=Po(h,m.mode,O),d.return=m,m=d}return l(m);case nn:return z=h._init,J(m,d,z(h._payload),O)}if(yi(h))return _(m,d,h,O);if(ii(h))return E(m,d,h,O);Os(m,h)}return typeof h==&quot;string&quot;&amp;&amp;h!==&quot;&quot;||typeof h==&quot;number&quot;?(h=&quot;&quot;+h,d!==null&amp;&amp;d.tag===6?(n(m,d.sibling),d=i(d,h),d.return=m,m=d):(n(m,d),d=Io(h,m.mode,O),d.return=m,m=d),l(m)):n(m,d)}return J}var Hr=kh(!0),Sh=kh(!1),yl=An(null),vl=null,xr=null,Iu=null;function Pu(){Iu=xr=vl=null}function Lu(e){var t=yl.current;pe(yl),e._currentValue=t}function ga(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&amp;t)!==t?(e.childLanes|=t,r!==null&amp;&amp;(r.childLanes|=t)):r!==null&amp;&amp;(r.childLanes&amp;t)!==t&amp;&amp;(r.childLanes|=t),e===n)break;e=e.return}}function Ar(e,t){vl=e,Iu=xr=null,e=e.dependencies,e!==null&amp;&amp;e.firstContext!==null&amp;&amp;(e.lanes&amp;t&amp;&amp;(Ge=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(Iu!==e)if(e={context:e,memoizedValue:t,next:null},xr===null){if(vl===null)throw Error(N(308));xr=e,vl.dependencies={lanes:0,firstContext:e}}else xr=xr.next=e;return t}var Vn=null;function Mu(e){Vn===null?Vn=[e]:Vn.push(e)}function Eh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Mu(t)):(n.next=i.next,i.next=n),t.interleaved=n,Jt(e,r)}function Jt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&amp;&amp;(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&amp;&amp;(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rn=!1;function Du(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ch(e,t){e=e.updateQueue,t.updateQueue===e&amp;&amp;(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&amp;2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Jt(e,n)}return i=r.interleaved,i===null?(t.next=t,Mu(r)):(t.next=i.next,i.next=t),r.interleaved=t,Jt(e,n)}function Ws(e,t,n){if(t=t.updateQueue,t!==null&amp;&amp;(t=t.shared,(n&amp;4194240)!==0)){var r=t.lanes;r&amp;=e.pendingLanes,n|=r,t.lanes=n,_u(e,n)}}function Gc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&amp;&amp;(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function gl(e,t,n,r){var i=e.updateQueue;rn=!1;var s=i.firstBaseUpdate,l=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var a=o,u=a.next;a.next=null,l===null?s=u:l.next=u,l=a;var c=e.alternate;c!==null&amp;&amp;(c=c.updateQueue,o=c.lastBaseUpdate,o!==l&amp;&amp;(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=a))}if(s!==null){var p=i.baseState;l=0,c=u=a=null,o=s;do{var y=o.lane,w=o.eventTime;if((r&amp;y)===y){c!==null&amp;&amp;(c=c.next={eventTime:w,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var _=e,E=o;switch(y=t,w=n,E.tag){case 1:if(_=E.payload,typeof _==&quot;function&quot;){p=_.call(w,p,y);break e}p=_;break e;case 3:_.flags=_.flags&amp;-65537|128;case 0:if(_=E.payload,y=typeof _==&quot;function&quot;?_.call(w,p,y):_,y==null)break e;p=ge({},p,y);break e;case 2:rn=!0}}o.callback!==null&amp;&amp;o.lane!==0&amp;&amp;(e.flags|=64,y=i.effects,y===null?i.effects=[o]:y.push(o))}else w={eventTime:w,lane:y,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=w,a=p):c=c.next=w,l|=y;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;y=o,o=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);if(c===null&amp;&amp;(a=p),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else s===null&amp;&amp;(i.shared.lanes=0);nr|=l,e.lanes=l,e.memoizedState=p}}function Yc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t&lt;e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!=&quot;function&quot;)throw Error(N(191,i));i.call(r)}}}var fs={},jt=An(fs),Zi=An(fs),Qi=An(fs);function Bn(e){if(e===fs)throw Error(N(174));return e}function zu(e,t){switch(ue(Qi,t),ue(Zi,e),ue(jt,fs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xo(null,&quot;&quot;);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xo(t,e)}pe(jt),ue(jt,t)}function Zr(){pe(jt),pe(Zi),pe(Qi)}function Oh(e){Bn(Qi.current);var t=Bn(jt.current),n=Xo(t,e.type);t!==n&amp;&amp;(ue(Zi,e),ue(jt,n))}function ju(e){Zi.current===e&amp;&amp;(pe(jt),pe(Zi))}var ye=An(0);function wl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&amp;&amp;(n=n.dehydrated,n===null||n.data===&quot;$?&quot;||n.data===&quot;$!&quot;))return t}else if(t.tag===19&amp;&amp;t.memoizedProps.revealOrder!==void 0){if(t.flags&amp;128)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 Co=[];function Uu(){for(var e=0;e&lt;Co.length;e++)Co[e]._workInProgressVersionPrimary=null;Co.length=0}var Hs=Xt.ReactCurrentDispatcher,Oo=Xt.ReactCurrentBatchConfig,tr=0,ve=null,Ne=null,Pe=null,_l=!1,Ni=!1,Ki=0,rv=0;function je(){throw Error(N(321))}function $u(e,t){if(t===null)return!1;for(var n=0;n&lt;t.length&amp;&amp;n&lt;e.length;n++)if(!Nt(e[n],t[n]))return!1;return!0}function Fu(e,t,n,r,i,s){if(tr=s,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Hs.current=e===null||e.memoizedState===null?ov:av,e=n(r,i),Ni){s=0;do{if(Ni=!1,Ki=0,25&lt;=s)throw Error(N(301));s+=1,Pe=Ne=null,t.updateQueue=null,Hs.current=uv,e=n(r,i)}while(Ni)}if(Hs.current=xl,t=Ne!==null&amp;&amp;Ne.next!==null,tr=0,Pe=Ne=ve=null,_l=!1,t)throw Error(N(300));return e}function Vu(){var e=Ki!==0;return Ki=0,e}function Pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?ve.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function gt(){if(Ne===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Pe===null?ve.memoizedState:Pe.next;if(t!==null)Pe=t,Ne=e;else{if(e===null)throw Error(N(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Pe===null?ve.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function bi(e,t){return typeof t==&quot;function&quot;?t(e):t}function To(e){var t=gt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=Ne,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var l=i.next;i.next=s.next,s.next=l}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var o=l=null,a=null,u=s;do{var c=u.lane;if((tr&amp;c)===c)a!==null&amp;&amp;(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(o=a=p,l=r):a=a.next=p,ve.lanes|=c,nr|=c}u=u.next}while(u!==null&amp;&amp;u!==s);a===null?l=r:a.next=o,Nt(r,t.memoizedState)||(Ge=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,ve.lanes|=s,nr|=s,i=i.next;while(i!==e)}else i===null&amp;&amp;(n.lanes=0);return[t.memoizedState,n.dispatch]}function No(e){var t=gt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do s=e(s,l.action),l=l.next;while(l!==i);Nt(s,t.memoizedState)||(Ge=!0),t.memoizedState=s,t.baseQueue===null&amp;&amp;(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Th(){}function Nh(e,t){var n=ve,r=gt(),i=t(),s=!Nt(r.memoizedState,i);if(s&amp;&amp;(r.memoizedState=i,Ge=!0),r=r.queue,Bu(Ih.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Pe!==null&amp;&amp;Pe.memoizedState.tag&amp;1){if(n.flags|=2048,Ji(9,Ah.bind(null,n,r,i,t),void 0,null),Le===null)throw Error(N(349));tr&amp;30||Rh(n,t,i)}return i}function Rh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ah(e,t,n,r){t.value=n,t.getSnapshot=r,Ph(t)&amp;&amp;Lh(e)}function Ih(e,t,n){return n(function(){Ph(t)&amp;&amp;Lh(e)})}function Ph(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nt(e,n)}catch{return!0}}function Lh(e){var t=Jt(e,1);t!==null&amp;&amp;Tt(t,e,1,-1)}function Xc(e){var t=Pt();return typeof e==&quot;function&quot;&amp;&amp;(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:e},t.queue=e,e=e.dispatch=lv.bind(null,ve,e),[t.memoizedState,e]}function Ji(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Mh(){return gt().memoizedState}function Zs(e,t,n,r){var i=Pt();ve.flags|=e,i.memoizedState=Ji(1|t,n,void 0,r===void 0?null:r)}function Ql(e,t,n,r){var i=gt();r=r===void 0?null:r;var s=void 0;if(Ne!==null){var l=Ne.memoizedState;if(s=l.destroy,r!==null&amp;&amp;$u(r,l.deps)){i.memoizedState=Ji(t,n,s,r);return}}ve.flags|=e,i.memoizedState=Ji(1|t,n,s,r)}function qc(e,t){return Zs(8390656,8,e,t)}function Bu(e,t){return Ql(2048,8,e,t)}function Dh(e,t){return Ql(4,2,e,t)}function zh(e,t){return Ql(4,4,e,t)}function jh(e,t){if(typeof t==&quot;function&quot;)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Uh(e,t,n){return n=n!=null?n.concat([e]):null,Ql(4,4,jh.bind(null,t,e),n)}function Wu(){}function $h(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&amp;&amp;t!==null&amp;&amp;$u(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fh(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&amp;&amp;t!==null&amp;&amp;$u(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Vh(e,t,n){return tr&amp;21?(Nt(n,t)||(n=Qd(),ve.lanes|=n,nr|=n,e.baseState=!0),t):(e.baseState&amp;&amp;(e.baseState=!1,Ge=!0),e.memoizedState=n)}function iv(e,t){var n=ae;ae=n!==0&amp;&amp;4&gt;n?n:4,e(!0);var r=Oo.transition;Oo.transition={};try{e(!1),t()}finally{ae=n,Oo.transition=r}}function Bh(){return gt().memoizedState}function sv(e,t,n){var r=xn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wh(e))Hh(t,n);else if(n=Eh(e,t,n,r),n!==null){var i=He();Tt(n,e,r,i),Zh(n,t,r)}}function lv(e,t,n){var r=xn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wh(e))Hh(t,i);else{var s=e.alternate;if(e.lanes===0&amp;&amp;(s===null||s.lanes===0)&amp;&amp;(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,o=s(l,n);if(i.hasEagerState=!0,i.eagerState=o,Nt(o,l)){var a=t.interleaved;a===null?(i.next=i,Mu(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Eh(e,t,i,r),n!==null&amp;&amp;(i=He(),Tt(n,e,r,i),Zh(n,t,r))}}function Wh(e){var t=e.alternate;return e===ve||t!==null&amp;&amp;t===ve}function Hh(e,t){Ni=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zh(e,t,n){if(n&amp;4194240){var r=t.lanes;r&amp;=e.pendingLanes,n|=r,t.lanes=n,_u(e,n)}}var xl={readContext:vt,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},ov={readContext:vt,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:qc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zs(4194308,4,jh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zs(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sv.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:Xc,useDebugValue:Wu,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=Xc(!1),t=e[0];return e=iv.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ve,i=Pt();if(me){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Le===null)throw Error(N(349));tr&amp;30||Rh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,qc(Ih.bind(null,r,s,e),[e]),r.flags|=2048,Ji(9,Ah.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Le.identifierPrefix;if(me){var n=Zt,r=Ht;n=(r&amp;~(1&lt;&lt;32-Ot(r)-1)).toString(32)+n,t=&quot;:&quot;+t+&quot;R&quot;+n,n=Ki++,0&lt;n&amp;&amp;(t+=&quot;H&quot;+n.toString(32)),t+=&quot;:&quot;}else n=rv++,t=&quot;:&quot;+t+&quot;r&quot;+n.toString(32)+&quot;:&quot;;return e.memoizedState=t},unstable_isNewReconciler:!1},av={readContext:vt,useCallback:$h,useContext:vt,useEffect:Bu,useImperativeHandle:Uh,useInsertionEffect:Dh,useLayoutEffect:zh,useMemo:Fh,useReducer:To,useRef:Mh,useState:function(){return To(bi)},useDebugValue:Wu,useDeferredValue:function(e){var t=gt();return Vh(t,Ne.memoizedState,e)},useTransition:function(){var e=To(bi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Th,useSyncExternalStore:Nh,useId:Bh,unstable_isNewReconciler:!1},uv={readContext:vt,useCallback:$h,useContext:vt,useEffect:Bu,useImperativeHandle:Uh,useInsertionEffect:Dh,useLayoutEffect:zh,useMemo:Fh,useReducer:No,useRef:Mh,useState:function(){return No(bi)},useDebugValue:Wu,useDeferredValue:function(e){var t=gt();return Ne===null?t.memoizedState=e:Vh(t,Ne.memoizedState,e)},useTransition:function(){var e=No(bi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Th,useSyncExternalStore:Nh,useId:Bh,unstable_isNewReconciler:!1};function kt(e,t){if(e&amp;&amp;e.defaultProps){t=ge({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&amp;&amp;(t[n]=e[n]);return t}return t}function wa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ge({},t,n),e.memoizedState=n,e.lanes===0&amp;&amp;(e.updateQueue.baseState=n)}var Kl={isMounted:function(e){return(e=e._reactInternals)?or(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=He(),i=xn(e),s=Qt(r,i);s.payload=t,n!=null&amp;&amp;(s.callback=n),t=wn(e,s,i),t!==null&amp;&amp;(Tt(t,e,i,r),Ws(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=He(),i=xn(e),s=Qt(r,i);s.tag=1,s.payload=t,n!=null&amp;&amp;(s.callback=n),t=wn(e,s,i),t!==null&amp;&amp;(Tt(t,e,i,r),Ws(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=He(),r=xn(e),i=Qt(n,r);i.tag=2,t!=null&amp;&amp;(i.callback=t),t=wn(e,i,r),t!==null&amp;&amp;(Tt(t,e,r,n),Ws(t,e,r))}};function ef(e,t,n,r,i,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate==&quot;function&quot;?e.shouldComponentUpdate(r,s,l):t.prototype&amp;&amp;t.prototype.isPureReactComponent?!Vi(n,r)||!Vi(i,s):!0}function Qh(e,t,n){var r=!1,i=On,s=t.contextType;return typeof s==&quot;object&quot;&amp;&amp;s!==null?s=vt(s):(i=Xe(t)?qn:Fe.current,r=t.contextTypes,s=(r=r!=null)?Br(e,i):On),t=new t(n,s),e.memoizedState=t.state!==null&amp;&amp;t.state!==void 0?t.state:null,t.updater=Kl,e.stateNode=t,t._reactInternals=e,r&amp;&amp;(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function tf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==&quot;function&quot;&amp;&amp;t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==&quot;function&quot;&amp;&amp;t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&amp;&amp;Kl.enqueueReplaceState(t,t.state,null)}function _a(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Du(e);var s=t.contextType;typeof s==&quot;object&quot;&amp;&amp;s!==null?i.context=vt(s):(s=Xe(t)?qn:Fe.current,i.context=Br(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s==&quot;function&quot;&amp;&amp;(wa(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==&quot;function&quot;||typeof i.getSnapshotBeforeUpdate==&quot;function&quot;||typeof i.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof i.componentWillMount!=&quot;function&quot;||(t=i.state,typeof i.componentWillMount==&quot;function&quot;&amp;&amp;i.componentWillMount(),typeof i.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;i.UNSAFE_componentWillMount(),t!==i.state&amp;&amp;Kl.enqueueReplaceState(i,i.state,null),gl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==&quot;function&quot;&amp;&amp;(e.flags|=4194308)}function Qr(e,t){try{var n=&quot;&quot;,r=t;do n+=jm(r),r=r.return;while(r);var i=n}catch(s){i=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Ro(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function xa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cv=typeof WeakMap==&quot;function&quot;?WeakMap:Map;function Kh(e,t,n){n=Qt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sl||(Sl=!0,Ia=r),xa(e,t)},n}function bh(e,t,n){n=Qt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==&quot;function&quot;){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){xa(e,t)}}var s=e.stateNode;return s!==null&amp;&amp;typeof s.componentDidCatch==&quot;function&quot;&amp;&amp;(n.callback=function(){xa(e,t),typeof r!=&quot;function&quot;&amp;&amp;(_n===null?_n=new Set([this]):_n.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:&quot;&quot;})}),n}function nf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&amp;&amp;(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ev.bind(null,e,t,n),t.then(e,e))}function rf(e){do{var t;if((t=e.tag===13)&amp;&amp;(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sf(e,t,n,r,i){return e.mode&amp;1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&amp;=-52805,n.tag===1&amp;&amp;(n.alternate===null?n.tag=17:(t=Qt(-1,1),t.tag=2,wn(n,t,1))),n.lanes|=1),e)}var fv=Xt.ReactCurrentOwner,Ge=!1;function Ve(e,t,n,r){t.child=e===null?Sh(t,null,n,r):Hr(t,e.child,n,r)}function lf(e,t,n,r,i){n=n.render;var s=t.ref;return Ar(t,i),r=Fu(e,t,n,r,s,i),n=Vu(),e!==null&amp;&amp;!Ge?(t.updateQueue=e.updateQueue,t.flags&amp;=-2053,e.lanes&amp;=~i,Gt(e,t,i)):(me&amp;&amp;n&amp;&amp;Nu(t),t.flags|=1,Ve(e,t,r,i),t.child)}function of(e,t,n,r,i){if(e===null){var s=n.type;return typeof s==&quot;function&quot;&amp;&amp;!Yu(s)&amp;&amp;s.defaultProps===void 0&amp;&amp;n.compare===null&amp;&amp;n.defaultProps===void 0?(t.tag=15,t.type=s,Jh(e,t,s,r,i)):(e=Js(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&amp;i)){var l=s.memoizedProps;if(n=n.compare,n=n!==null?n:Vi,n(l,r)&amp;&amp;e.ref===t.ref)return Gt(e,t,i)}return t.flags|=1,e=kn(s,r),e.ref=t.ref,e.return=t,t.child=e}function Jh(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Vi(s,r)&amp;&amp;e.ref===t.ref)if(Ge=!1,t.pendingProps=r=s,(e.lanes&amp;i)!==0)e.flags&amp;131072&amp;&amp;(Ge=!0);else return t.lanes=e.lanes,Gt(e,t,i)}return ka(e,t,n,r,i)}function Gh(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode===&quot;hidden&quot;)if(!(t.mode&amp;1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Sr,nt),nt|=n;else{if(!(n&amp;1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(Sr,nt),nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ue(Sr,nt),nt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ue(Sr,nt),nt|=r;return Ve(e,t,i,n),t.child}function Yh(e,t){var n=t.ref;(e===null&amp;&amp;n!==null||e!==null&amp;&amp;e.ref!==n)&amp;&amp;(t.flags|=512,t.flags|=2097152)}function ka(e,t,n,r,i){var s=Xe(n)?qn:Fe.current;return s=Br(t,s),Ar(t,i),n=Fu(e,t,n,r,s,i),r=Vu(),e!==null&amp;&amp;!Ge?(t.updateQueue=e.updateQueue,t.flags&amp;=-2053,e.lanes&amp;=~i,Gt(e,t,i)):(me&amp;&amp;r&amp;&amp;Nu(t),t.flags|=1,Ve(e,t,n,i),t.child)}function af(e,t,n,r,i){if(Xe(n)){var s=!0;hl(t)}else s=!1;if(Ar(t,i),t.stateNode===null)Qs(e,t),Qh(t,n,r),_a(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,o=t.memoizedProps;l.props=o;var a=l.context,u=n.contextType;typeof u==&quot;object&quot;&amp;&amp;u!==null?u=vt(u):(u=Xe(n)?qn:Fe.current,u=Br(t,u));var c=n.getDerivedStateFromProps,p=typeof c==&quot;function&quot;||typeof l.getSnapshotBeforeUpdate==&quot;function&quot;;p||typeof l.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof l.componentWillReceiveProps!=&quot;function&quot;||(o!==r||a!==u)&amp;&amp;tf(t,l,r,u),rn=!1;var y=t.memoizedState;l.state=y,gl(t,r,l,i),a=t.memoizedState,o!==r||y!==a||Ye.current||rn?(typeof c==&quot;function&quot;&amp;&amp;(wa(t,n,c,r),a=t.memoizedState),(o=rn||ef(t,n,o,r,y,a,u))?(p||typeof l.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof l.componentWillMount!=&quot;function&quot;||(typeof l.componentWillMount==&quot;function&quot;&amp;&amp;l.componentWillMount(),typeof l.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;l.UNSAFE_componentWillMount()),typeof l.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308)):(typeof l.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=o):(typeof l.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308),r=!1)}else{l=t.stateNode,Ch(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:kt(t.type,o),l.props=u,p=t.pendingProps,y=l.context,a=n.contextType,typeof a==&quot;object&quot;&amp;&amp;a!==null?a=vt(a):(a=Xe(n)?qn:Fe.current,a=Br(t,a));var w=n.getDerivedStateFromProps;(c=typeof w==&quot;function&quot;||typeof l.getSnapshotBeforeUpdate==&quot;function&quot;)||typeof l.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof l.componentWillReceiveProps!=&quot;function&quot;||(o!==p||y!==a)&amp;&amp;tf(t,l,r,a),rn=!1,y=t.memoizedState,l.state=y,gl(t,r,l,i);var _=t.memoizedState;o!==p||y!==_||Ye.current||rn?(typeof w==&quot;function&quot;&amp;&amp;(wa(t,n,w,r),_=t.memoizedState),(u=rn||ef(t,n,u,r,y,_,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!=&quot;function&quot;&amp;&amp;typeof l.componentWillUpdate!=&quot;function&quot;||(typeof l.componentWillUpdate==&quot;function&quot;&amp;&amp;l.componentWillUpdate(r,_,a),typeof l.UNSAFE_componentWillUpdate==&quot;function&quot;&amp;&amp;l.UNSAFE_componentWillUpdate(r,_,a)),typeof l.componentDidUpdate==&quot;function&quot;&amp;&amp;(t.flags|=4),typeof l.getSnapshotBeforeUpdate==&quot;function&quot;&amp;&amp;(t.flags|=1024)):(typeof l.componentDidUpdate!=&quot;function&quot;||o===e.memoizedProps&amp;&amp;y===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!=&quot;function&quot;||o===e.memoizedProps&amp;&amp;y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=_),l.props=r,l.state=_,l.context=a,r=u):(typeof l.componentDidUpdate!=&quot;function&quot;||o===e.memoizedProps&amp;&amp;y===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!=&quot;function&quot;||o===e.memoizedProps&amp;&amp;y===e.memoizedState||(t.flags|=1024),r=!1)}return Sa(e,t,n,r,s,i)}function Sa(e,t,n,r,i,s){Yh(e,t);var l=(t.flags&amp;128)!==0;if(!r&amp;&amp;!l)return i&amp;&amp;Qc(t,n,!1),Gt(e,t,s);r=t.stateNode,fv.current=t;var o=l&amp;&amp;typeof n.getDerivedStateFromError!=&quot;function&quot;?null:r.render();return t.flags|=1,e!==null&amp;&amp;l?(t.child=Hr(t,e.child,null,s),t.child=Hr(t,null,o,s)):Ve(e,t,o,s),t.memoizedState=r.state,i&amp;&amp;Qc(t,n,!0),t.child}function Xh(e){var t=e.stateNode;t.pendingContext?Zc(e,t.pendingContext,t.pendingContext!==t.context):t.context&amp;&amp;Zc(e,t.context,!1),zu(e,t.containerInfo)}function uf(e,t,n,r,i){return Wr(),Au(i),t.flags|=256,Ve(e,t,n,r),t.child}var Ea={dehydrated:null,treeContext:null,retryLane:0};function Ca(e){return{baseLanes:e,cachePool:null,transitions:null}}function qh(e,t,n){var r=t.pendingProps,i=ye.current,s=!1,l=(t.flags&amp;128)!==0,o;if((o=l)||(o=e!==null&amp;&amp;e.memoizedState===null?!1:(i&amp;2)!==0),o?(s=!0,t.flags&amp;=-129):(e===null||e.memoizedState!==null)&amp;&amp;(i|=1),ue(ye,i&amp;1),e===null)return va(t),e=t.memoizedState,e!==null&amp;&amp;(e=e.dehydrated,e!==null)?(t.mode&amp;1?e.data===&quot;$!&quot;?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:&quot;hidden&quot;,children:l},!(r&amp;1)&amp;&amp;s!==null?(s.childLanes=0,s.pendingProps=l):s=Gl(l,r,0,null),e=Jn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ca(n),t.memoizedState=Ea,e):Hu(t,l));if(i=e.memoizedState,i!==null&amp;&amp;(o=i.dehydrated,o!==null))return dv(e,t,l,r,o,i,n);if(s){s=r.fallback,l=t.mode,i=e.child,o=i.sibling;var a={mode:&quot;hidden&quot;,children:r.children};return!(l&amp;1)&amp;&amp;t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=kn(i,a),r.subtreeFlags=i.subtreeFlags&amp;14680064),o!==null?s=kn(o,s):(s=Jn(s,l,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=e.child.memoizedState,l=l===null?Ca(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&amp;~n,t.memoizedState=Ea,r}return s=e.child,e=s.sibling,r=kn(s,{mode:&quot;visible&quot;,children:r.children}),!(t.mode&amp;1)&amp;&amp;(r.lanes=n),r.return=t,r.sibling=null,e!==null&amp;&amp;(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Hu(e,t){return t=Gl({mode:&quot;visible&quot;,children:t},e.mode,0,null),t.return=e,e.child=t}function Ts(e,t,n,r){return r!==null&amp;&amp;Au(r),Hr(t,e.child,null,n),e=Hu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dv(e,t,n,r,i,s,l){if(n)return t.flags&amp;256?(t.flags&amp;=-257,r=Ro(Error(N(422))),Ts(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Gl({mode:&quot;visible&quot;,children:r.children},i,0,null),s=Jn(s,i,l,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&amp;1&amp;&amp;Hr(t,e.child,null,l),t.child.memoizedState=Ca(l),t.memoizedState=Ea,s);if(!(t.mode&amp;1))return Ts(e,t,l,null);if(i.data===&quot;$!&quot;){if(r=i.nextSibling&amp;&amp;i.nextSibling.dataset,r)var o=r.dgst;return r=o,s=Error(N(419)),r=Ro(s,r,void 0),Ts(e,t,l,r)}if(o=(l&amp;e.childLanes)!==0,Ge||o){if(r=Le,r!==null){switch(l&amp;-l){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&amp;(r.suspendedLanes|l)?0:i,i!==0&amp;&amp;i!==s.retryLane&amp;&amp;(s.retryLane=i,Jt(e,i),Tt(r,e,i,-1))}return Gu(),r=Ro(Error(N(421))),Ts(e,t,l,r)}return i.data===&quot;$?&quot;?(t.flags|=128,t.child=e.child,t=Cv.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,rt=gn(i.nextSibling),st=t,me=!0,Ct=null,e!==null&amp;&amp;(ct[ft++]=Ht,ct[ft++]=Zt,ct[ft++]=er,Ht=e.id,Zt=e.overflow,er=t),t=Hu(t,r.children),t.flags|=4096,t)}function cf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&amp;&amp;(r.lanes|=t),ga(e.return,t,n)}function Ao(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function ep(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ve(e,t,r.children,n),r=ye.current,r&amp;2)r=r&amp;1|2,t.flags|=128;else{if(e!==null&amp;&amp;e.flags&amp;128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&amp;&amp;cf(e,n,t);else if(e.tag===19)cf(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}r&amp;=1}if(ue(ye,r),!(t.mode&amp;1))t.memoizedState=null;else switch(i){case&quot;forwards&quot;:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&amp;&amp;wl(e)===null&amp;&amp;(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ao(t,!1,i,n,s);break;case&quot;backwards&quot;:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&amp;&amp;wl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ao(t,!0,n,null,s);break;case&quot;together&quot;:Ao(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qs(e,t){!(t.mode&amp;1)&amp;&amp;e!==null&amp;&amp;(e.alternate=null,t.alternate=null,t.flags|=2)}function Gt(e,t,n){if(e!==null&amp;&amp;(t.dependencies=e.dependencies),nr|=t.lanes,!(n&amp;t.childLanes))return null;if(e!==null&amp;&amp;t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=kn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=kn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hv(e,t,n){switch(t.tag){case 3:Xh(t),Wr();break;case 5:Oh(t);break;case 1:Xe(t.type)&amp;&amp;hl(t);break;case 4:zu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ue(yl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(ye,ye.current&amp;1),t.flags|=128,null):n&amp;t.child.childLanes?qh(e,t,n):(ue(ye,ye.current&amp;1),e=Gt(e,t,n),e!==null?e.sibling:null);ue(ye,ye.current&amp;1);break;case 19:if(r=(n&amp;t.childLanes)!==0,e.flags&amp;128){if(r)return ep(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&amp;&amp;(i.rendering=null,i.tail=null,i.lastEffect=null),ue(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,Gh(e,t,n)}return Gt(e,t,n)}var tp,Oa,np,rp;tp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&amp;&amp;n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Oa=function(){};np=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Bn(jt.current);var s=null;switch(n){case&quot;input&quot;:i=bo(e,i),r=bo(e,r),s=[];break;case&quot;select&quot;:i=ge({},i,{value:void 0}),r=ge({},r,{value:void 0}),s=[];break;case&quot;textarea&quot;:i=Yo(e,i),r=Yo(e,r),s=[];break;default:typeof i.onClick!=&quot;function&quot;&amp;&amp;typeof r.onClick==&quot;function&quot;&amp;&amp;(e.onclick=fl)}qo(n,r);var l;n=null;for(u in i)if(!r.hasOwnProperty(u)&amp;&amp;i.hasOwnProperty(u)&amp;&amp;i[u]!=null)if(u===&quot;style&quot;){var o=i[u];for(l in o)o.hasOwnProperty(l)&amp;&amp;(n||(n={}),n[l]=&quot;&quot;)}else u!==&quot;dangerouslySetInnerHTML&quot;&amp;&amp;u!==&quot;children&quot;&amp;&amp;u!==&quot;suppressContentEditableWarning&quot;&amp;&amp;u!==&quot;suppressHydrationWarning&quot;&amp;&amp;u!==&quot;autoFocus&quot;&amp;&amp;(Mi.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(o=i!=null?i[u]:void 0,r.hasOwnProperty(u)&amp;&amp;a!==o&amp;&amp;(a!=null||o!=null))if(u===&quot;style&quot;)if(o){for(l in o)!o.hasOwnProperty(l)||a&amp;&amp;a.hasOwnProperty(l)||(n||(n={}),n[l]=&quot;&quot;);for(l in a)a.hasOwnProperty(l)&amp;&amp;o[l]!==a[l]&amp;&amp;(n||(n={}),n[l]=a[l])}else n||(s||(s=[]),s.push(u,n)),n=a;else u===&quot;dangerouslySetInnerHTML&quot;?(a=a?a.__html:void 0,o=o?o.__html:void 0,a!=null&amp;&amp;o!==a&amp;&amp;(s=s||[]).push(u,a)):u===&quot;children&quot;?typeof a!=&quot;string&quot;&amp;&amp;typeof a!=&quot;number&quot;||(s=s||[]).push(u,&quot;&quot;+a):u!==&quot;suppressContentEditableWarning&quot;&amp;&amp;u!==&quot;suppressHydrationWarning&quot;&amp;&amp;(Mi.hasOwnProperty(u)?(a!=null&amp;&amp;u===&quot;onScroll&quot;&amp;&amp;fe(&quot;scroll&quot;,e),s||o===a||(s=[])):(s=s||[]).push(u,a))}n&amp;&amp;(s=s||[]).push(&quot;style&quot;,n);var u=s;(t.updateQueue=u)&amp;&amp;(t.flags|=4)}};rp=function(e,t,n,r){n!==r&amp;&amp;(t.flags|=4)};function ci(e,t){if(!me)switch(e.tailMode){case&quot;hidden&quot;:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&amp;&amp;(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case&quot;collapsed&quot;:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&amp;&amp;(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ue(e){var t=e.alternate!==null&amp;&amp;e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&amp;14680064,r|=i.flags&amp;14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pv(e,t,n){var r=t.pendingProps;switch(Ru(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Xe(t.type)&amp;&amp;dl(),Ue(t),null;case 3:return r=t.stateNode,Zr(),pe(Ye),pe(Fe),Uu(),r.pendingContext&amp;&amp;(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&amp;&amp;(Cs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&amp;&amp;!(t.flags&amp;256)||(t.flags|=1024,Ct!==null&amp;&amp;(Ma(Ct),Ct=null))),Oa(e,t),Ue(t),null;case 5:ju(t);var i=Bn(Qi.current);if(n=t.type,e!==null&amp;&amp;t.stateNode!=null)np(e,t,n,r,i),e.ref!==t.ref&amp;&amp;(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return Ue(t),null}if(e=Bn(jt.current),Cs(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Dt]=t,r[Hi]=s,e=(t.mode&amp;1)!==0,n){case&quot;dialog&quot;:fe(&quot;cancel&quot;,r),fe(&quot;close&quot;,r);break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:fe(&quot;load&quot;,r);break;case&quot;video&quot;:case&quot;audio&quot;:for(i=0;i&lt;gi.length;i++)fe(gi[i],r);break;case&quot;source&quot;:fe(&quot;error&quot;,r);break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:fe(&quot;error&quot;,r),fe(&quot;load&quot;,r);break;case&quot;details&quot;:fe(&quot;toggle&quot;,r);break;case&quot;input&quot;:gc(r,s),fe(&quot;invalid&quot;,r);break;case&quot;select&quot;:r._wrapperState={wasMultiple:!!s.multiple},fe(&quot;invalid&quot;,r);break;case&quot;textarea&quot;:_c(r,s),fe(&quot;invalid&quot;,r)}qo(n,s),i=null;for(var l in s)if(s.hasOwnProperty(l)){var o=s[l];l===&quot;children&quot;?typeof o==&quot;string&quot;?r.textContent!==o&amp;&amp;(s.suppressHydrationWarning!==!0&amp;&amp;Es(r.textContent,o,e),i=[&quot;children&quot;,o]):typeof o==&quot;number&quot;&amp;&amp;r.textContent!==&quot;&quot;+o&amp;&amp;(s.suppressHydrationWarning!==!0&amp;&amp;Es(r.textContent,o,e),i=[&quot;children&quot;,&quot;&quot;+o]):Mi.hasOwnProperty(l)&amp;&amp;o!=null&amp;&amp;l===&quot;onScroll&quot;&amp;&amp;fe(&quot;scroll&quot;,r)}switch(n){case&quot;input&quot;:ys(r),wc(r,s,!0);break;case&quot;textarea&quot;:ys(r),xc(r);break;case&quot;select&quot;:case&quot;option&quot;:break;default:typeof s.onClick==&quot;function&quot;&amp;&amp;(r.onclick=fl)}r=i,t.updateQueue=r,r!==null&amp;&amp;(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e===&quot;http://www.w3.org/1999/xhtml&quot;&amp;&amp;(e=Id(n)),e===&quot;http://www.w3.org/1999/xhtml&quot;?n===&quot;script&quot;?(e=l.createElement(&quot;div&quot;),e.innerHTML=&quot;&lt;script&gt;&lt;\/script&gt;&quot;,e=e.removeChild(e.firstChild)):typeof r.is==&quot;string&quot;?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n===&quot;select&quot;&amp;&amp;(l=e,r.multiple?l.multiple=!0:r.size&amp;&amp;(l.size=r.size))):e=l.createElementNS(e,n),e[Dt]=t,e[Hi]=r,tp(e,t,!1,!1),t.stateNode=e;e:{switch(l=ea(n,r),n){case&quot;dialog&quot;:fe(&quot;cancel&quot;,e),fe(&quot;close&quot;,e),i=r;break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:fe(&quot;load&quot;,e),i=r;break;case&quot;video&quot;:case&quot;audio&quot;:for(i=0;i&lt;gi.length;i++)fe(gi[i],e);i=r;break;case&quot;source&quot;:fe(&quot;error&quot;,e),i=r;break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:fe(&quot;error&quot;,e),fe(&quot;load&quot;,e),i=r;break;case&quot;details&quot;:fe(&quot;toggle&quot;,e),i=r;break;case&quot;input&quot;:gc(e,r),i=bo(e,r),fe(&quot;invalid&quot;,e);break;case&quot;option&quot;:i=r;break;case&quot;select&quot;:e._wrapperState={wasMultiple:!!r.multiple},i=ge({},r,{value:void 0}),fe(&quot;invalid&quot;,e);break;case&quot;textarea&quot;:_c(e,r),i=Yo(e,r),fe(&quot;invalid&quot;,e);break;default:i=r}qo(n,i),o=i;for(s in o)if(o.hasOwnProperty(s)){var a=o[s];s===&quot;style&quot;?Md(e,a):s===&quot;dangerouslySetInnerHTML&quot;?(a=a?a.__html:void 0,a!=null&amp;&amp;Pd(e,a)):s===&quot;children&quot;?typeof a==&quot;string&quot;?(n!==&quot;textarea&quot;||a!==&quot;&quot;)&amp;&amp;Di(e,a):typeof a==&quot;number&quot;&amp;&amp;Di(e,&quot;&quot;+a):s!==&quot;suppressContentEditableWarning&quot;&amp;&amp;s!==&quot;suppressHydrationWarning&quot;&amp;&amp;s!==&quot;autoFocus&quot;&amp;&amp;(Mi.hasOwnProperty(s)?a!=null&amp;&amp;s===&quot;onScroll&quot;&amp;&amp;fe(&quot;scroll&quot;,e):a!=null&amp;&amp;pu(e,s,a,l))}switch(n){case&quot;input&quot;:ys(e),wc(e,r,!1);break;case&quot;textarea&quot;:ys(e),xc(e);break;case&quot;option&quot;:r.value!=null&amp;&amp;e.setAttribute(&quot;value&quot;,&quot;&quot;+Cn(r.value));break;case&quot;select&quot;:e.multiple=!!r.multiple,s=r.value,s!=null?Or(e,!!r.multiple,s,!1):r.defaultValue!=null&amp;&amp;Or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick==&quot;function&quot;&amp;&amp;(e.onclick=fl)}switch(n){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:r=!!r.autoFocus;break e;case&quot;img&quot;:r=!0;break e;default:r=!1}}r&amp;&amp;(t.flags|=4)}t.ref!==null&amp;&amp;(t.flags|=512,t.flags|=2097152)}return Ue(t),null;case 6:if(e&amp;&amp;t.stateNode!=null)rp(e,t,e.memoizedProps,r);else{if(typeof r!=&quot;string&quot;&amp;&amp;t.stateNode===null)throw Error(N(166));if(n=Bn(Qi.current),Bn(jt.current),Cs(t)){if(r=t.stateNode,n=t.memoizedProps,r[Dt]=t,(s=r.nodeValue!==n)&amp;&amp;(e=st,e!==null))switch(e.tag){case 3:Es(r.nodeValue,n,(e.mode&amp;1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&amp;&amp;Es(r.nodeValue,n,(e.mode&amp;1)!==0)}s&amp;&amp;(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Dt]=t,t.stateNode=r}return Ue(t),null;case 13:if(pe(ye),r=t.memoizedState,e===null||e.memoizedState!==null&amp;&amp;e.memoizedState.dehydrated!==null){if(me&amp;&amp;rt!==null&amp;&amp;t.mode&amp;1&amp;&amp;!(t.flags&amp;128))xh(),Wr(),t.flags|=98560,s=!1;else if(s=Cs(t),r!==null&amp;&amp;r.dehydrated!==null){if(e===null){if(!s)throw Error(N(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(N(317));s[Dt]=t}else Wr(),!(t.flags&amp;128)&amp;&amp;(t.memoizedState=null),t.flags|=4;Ue(t),s=!1}else Ct!==null&amp;&amp;(Ma(Ct),Ct=null),s=!0;if(!s)return t.flags&amp;65536?t:null}return t.flags&amp;128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&amp;&amp;e.memoizedState!==null)&amp;&amp;r&amp;&amp;(t.child.flags|=8192,t.mode&amp;1&amp;&amp;(e===null||ye.current&amp;1?Re===0&amp;&amp;(Re=3):Gu())),t.updateQueue!==null&amp;&amp;(t.flags|=4),Ue(t),null);case 4:return Zr(),Oa(e,t),e===null&amp;&amp;Bi(t.stateNode.containerInfo),Ue(t),null;case 10:return Lu(t.type._context),Ue(t),null;case 17:return Xe(t.type)&amp;&amp;dl(),Ue(t),null;case 19:if(pe(ye),s=t.memoizedState,s===null)return Ue(t),null;if(r=(t.flags&amp;128)!==0,l=s.rendering,l===null)if(r)ci(s,!1);else{if(Re!==0||e!==null&amp;&amp;e.flags&amp;128)for(e=t.child;e!==null;){if(l=wl(e),l!==null){for(t.flags|=128,ci(s,!1),r=l.updateQueue,r!==null&amp;&amp;(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&amp;=14680066,l=s.alternate,l===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ue(ye,ye.current&amp;1|2),t.child}e=e.sibling}s.tail!==null&amp;&amp;Se()&gt;Kr&amp;&amp;(t.flags|=128,r=!0,ci(s,!1),t.lanes=4194304)}else{if(!r)if(e=wl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&amp;&amp;(t.updateQueue=n,t.flags|=4),ci(s,!0),s.tail===null&amp;&amp;s.tailMode===&quot;hidden&quot;&amp;&amp;!l.alternate&amp;&amp;!me)return Ue(t),null}else 2*Se()-s.renderingStartTime&gt;Kr&amp;&amp;n!==1073741824&amp;&amp;(t.flags|=128,r=!0,ci(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Se(),t.sibling=null,n=ye.current,ue(ye,r?n&amp;1|2:n&amp;1),t):(Ue(t),null);case 22:case 23:return Ju(),r=t.memoizedState!==null,e!==null&amp;&amp;e.memoizedState!==null!==r&amp;&amp;(t.flags|=8192),r&amp;&amp;t.mode&amp;1?nt&amp;1073741824&amp;&amp;(Ue(t),t.subtreeFlags&amp;6&amp;&amp;(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function mv(e,t){switch(Ru(t),t.tag){case 1:return Xe(t.type)&amp;&amp;dl(),e=t.flags,e&amp;65536?(t.flags=e&amp;-65537|128,t):null;case 3:return Zr(),pe(Ye),pe(Fe),Uu(),e=t.flags,e&amp;65536&amp;&amp;!(e&amp;128)?(t.flags=e&amp;-65537|128,t):null;case 5:return ju(t),null;case 13:if(pe(ye),e=t.memoizedState,e!==null&amp;&amp;e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Wr()}return e=t.flags,e&amp;65536?(t.flags=e&amp;-65537|128,t):null;case 19:return pe(ye),null;case 4:return Zr(),null;case 10:return Lu(t.type._context),null;case 22:case 23:return Ju(),null;case 24:return null;default:return null}}var Ns=!1,$e=!1,yv=typeof WeakSet==&quot;function&quot;?WeakSet:Set,D=null;function kr(e,t){var n=e.ref;if(n!==null)if(typeof n==&quot;function&quot;)try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function Ta(e,t,n){try{n()}catch(r){xe(e,t,r)}}var ff=!1;function vv(e,t){if(ca=al,e=ah(),Tu(e)){if(&quot;selectionStart&quot;in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&amp;&amp;n.defaultView||window;var r=n.getSelection&amp;&amp;n.getSelection();if(r&amp;&amp;r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,o=-1,a=-1,u=0,c=0,p=e,y=null;t:for(;;){for(var w;p!==n||i!==0&amp;&amp;p.nodeType!==3||(o=l+i),p!==s||r!==0&amp;&amp;p.nodeType!==3||(a=l+r),p.nodeType===3&amp;&amp;(l+=p.nodeValue.length),(w=p.firstChild)!==null;)y=p,p=w;for(;;){if(p===e)break t;if(y===n&amp;&amp;++u===i&amp;&amp;(o=l),y===s&amp;&amp;++c===r&amp;&amp;(a=l),(w=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=w}n=o===-1||a===-1?null:{start:o,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(fa={focusedElem:e,selectionRange:n},al=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&amp;1028)!==0&amp;&amp;e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var _=t.alternate;if(t.flags&amp;1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var E=_.memoizedProps,J=_.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?E:kt(t.type,E),J);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent=&quot;&quot;:h.nodeType===9&amp;&amp;h.documentElement&amp;&amp;h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(O){xe(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return _=ff,ff=!1,_}function Ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&amp;e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&amp;&amp;Ta(t,n,s)}i=i.next}while(i!==r)}}function bl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&amp;e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Na(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==&quot;function&quot;?t(e):t.current=e}}function ip(e){var t=e.alternate;t!==null&amp;&amp;(e.alternate=null,ip(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&amp;&amp;(t=e.stateNode,t!==null&amp;&amp;(delete t[Dt],delete t[Hi],delete t[pa],delete t[qy],delete t[ev])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sp(e){return e.tag===5||e.tag===3||e.tag===4}function df(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&amp;&amp;e.tag!==6&amp;&amp;e.tag!==18;){if(e.flags&amp;2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&amp;2))return e.stateNode}}function Ra(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fl));else if(r!==4&amp;&amp;(e=e.child,e!==null))for(Ra(e,t,n),e=e.sibling;e!==null;)Ra(e,t,n),e=e.sibling}function Aa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&amp;&amp;(e=e.child,e!==null))for(Aa(e,t,n),e=e.sibling;e!==null;)Aa(e,t,n),e=e.sibling}var Me=null,Et=!1;function en(e,t,n){for(n=n.child;n!==null;)lp(e,t,n),n=n.sibling}function lp(e,t,n){if(zt&amp;&amp;typeof zt.onCommitFiberUnmount==&quot;function&quot;)try{zt.onCommitFiberUnmount(Fl,n)}catch{}switch(n.tag){case 5:$e||kr(n,t);case 6:var r=Me,i=Et;Me=null,en(e,t,n),Me=r,Et=i,Me!==null&amp;&amp;(Et?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&amp;&amp;(Et?(e=Me,n=n.stateNode,e.nodeType===8?So(e.parentNode,n):e.nodeType===1&amp;&amp;So(e,n),$i(e)):So(Me,n.stateNode));break;case 4:r=Me,i=Et,Me=n.stateNode.containerInfo,Et=!0,en(e,t,n),Me=r,Et=i;break;case 0:case 11:case 14:case 15:if(!$e&amp;&amp;(r=n.updateQueue,r!==null&amp;&amp;(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,l=s.destroy;s=s.tag,l!==void 0&amp;&amp;(s&amp;2||s&amp;4)&amp;&amp;Ta(n,t,l),i=i.next}while(i!==r)}en(e,t,n);break;case 1:if(!$e&amp;&amp;(kr(n,t),r=n.stateNode,typeof r.componentWillUnmount==&quot;function&quot;))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){xe(n,t,o)}en(e,t,n);break;case 21:en(e,t,n);break;case 22:n.mode&amp;1?($e=(r=$e)||n.memoizedState!==null,en(e,t,n),$e=r):en(e,t,n);break;default:en(e,t,n)}}function hf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&amp;&amp;(n=e.stateNode=new yv),t.forEach(function(r){var i=Ov.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r&lt;n.length;r++){var i=n[r];try{var s=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 5:Me=o.stateNode,Et=!1;break e;case 3:Me=o.stateNode.containerInfo,Et=!0;break e;case 4:Me=o.stateNode.containerInfo,Et=!0;break e}o=o.return}if(Me===null)throw Error(N(160));lp(s,l,i),Me=null,Et=!1;var a=i.alternate;a!==null&amp;&amp;(a.return=null),i.return=null}catch(u){xe(i,t,u)}}if(t.subtreeFlags&amp;12854)for(t=t.child;t!==null;)op(t,e),t=t.sibling}function op(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),At(e),r&amp;4){try{Ri(3,e,e.return),bl(3,e)}catch(E){xe(e,e.return,E)}try{Ri(5,e,e.return)}catch(E){xe(e,e.return,E)}}break;case 1:xt(t,e),At(e),r&amp;512&amp;&amp;n!==null&amp;&amp;kr(n,n.return);break;case 5:if(xt(t,e),At(e),r&amp;512&amp;&amp;n!==null&amp;&amp;kr(n,n.return),e.flags&amp;32){var i=e.stateNode;try{Di(i,&quot;&quot;)}catch(E){xe(e,e.return,E)}}if(r&amp;4&amp;&amp;(i=e.stateNode,i!=null)){var s=e.memoizedProps,l=n!==null?n.memoizedProps:s,o=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{o===&quot;input&quot;&amp;&amp;s.type===&quot;radio&quot;&amp;&amp;s.name!=null&amp;&amp;Rd(i,s),ea(o,l);var u=ea(o,s);for(l=0;l&lt;a.length;l+=2){var c=a[l],p=a[l+1];c===&quot;style&quot;?Md(i,p):c===&quot;dangerouslySetInnerHTML&quot;?Pd(i,p):c===&quot;children&quot;?Di(i,p):pu(i,c,p,u)}switch(o){case&quot;input&quot;:Jo(i,s);break;case&quot;textarea&quot;:Ad(i,s);break;case&quot;select&quot;:var y=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var w=s.value;w!=null?Or(i,!!s.multiple,w,!1):y!==!!s.multiple&amp;&amp;(s.defaultValue!=null?Or(i,!!s.multiple,s.defaultValue,!0):Or(i,!!s.multiple,s.multiple?[]:&quot;&quot;,!1))}i[Hi]=s}catch(E){xe(e,e.return,E)}}break;case 6:if(xt(t,e),At(e),r&amp;4){if(e.stateNode===null)throw Error(N(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(E){xe(e,e.return,E)}}break;case 3:if(xt(t,e),At(e),r&amp;4&amp;&amp;n!==null&amp;&amp;n.memoizedState.isDehydrated)try{$i(t.containerInfo)}catch(E){xe(e,e.return,E)}break;case 4:xt(t,e),At(e);break;case 13:xt(t,e),At(e),i=e.child,i.flags&amp;8192&amp;&amp;(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&amp;&amp;i.alternate.memoizedState!==null||(Ku=Se())),r&amp;4&amp;&amp;hf(e);break;case 22:if(c=n!==null&amp;&amp;n.memoizedState!==null,e.mode&amp;1?($e=(u=$e)||c,xt(t,e),$e=u):xt(t,e),At(e),r&amp;8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&amp;&amp;!c&amp;&amp;e.mode&amp;1)for(D=e,c=e.child;c!==null;){for(p=D=c;D!==null;){switch(y=D,w=y.child,y.tag){case 0:case 11:case 14:case 15:Ri(4,y,y.return);break;case 1:kr(y,y.return);var _=y.stateNode;if(typeof _.componentWillUnmount==&quot;function&quot;){r=y,n=y.return;try{t=r,_.props=t.memoizedProps,_.state=t.memoizedState,_.componentWillUnmount()}catch(E){xe(r,n,E)}}break;case 5:kr(y,y.return);break;case 22:if(y.memoizedState!==null){mf(p);continue}}w!==null?(w.return=y,D=w):mf(p)}c=c.sibling}e:for(c=null,p=e;;){if(p.tag===5){if(c===null){c=p;try{i=p.stateNode,u?(s=i.style,typeof s.setProperty==&quot;function&quot;?s.setProperty(&quot;display&quot;,&quot;none&quot;,&quot;important&quot;):s.display=&quot;none&quot;):(o=p.stateNode,a=p.memoizedProps.style,l=a!=null&amp;&amp;a.hasOwnProperty(&quot;display&quot;)?a.display:null,o.style.display=Ld(&quot;display&quot;,l))}catch(E){xe(e,e.return,E)}}}else if(p.tag===6){if(c===null)try{p.stateNode.nodeValue=u?&quot;&quot;:p.memoizedProps}catch(E){xe(e,e.return,E)}}else if((p.tag!==22&amp;&amp;p.tag!==23||p.memoizedState===null||p===e)&amp;&amp;p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;c===p&amp;&amp;(c=null),p=p.return}c===p&amp;&amp;(c=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:xt(t,e),At(e),r&amp;4&amp;&amp;hf(e);break;case 21:break;default:xt(t,e),At(e)}}function At(e){var t=e.flags;if(t&amp;2){try{e:{for(var n=e.return;n!==null;){if(sp(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&amp;32&amp;&amp;(Di(i,&quot;&quot;),r.flags&amp;=-33);var s=df(e);Aa(e,s,i);break;case 3:case 4:var l=r.stateNode.containerInfo,o=df(e);Ra(e,o,l);break;default:throw Error(N(161))}}catch(a){xe(e,e.return,a)}e.flags&amp;=-3}t&amp;4096&amp;&amp;(e.flags&amp;=-4097)}function gv(e,t,n){D=e,ap(e)}function ap(e,t,n){for(var r=(e.mode&amp;1)!==0;D!==null;){var i=D,s=i.child;if(i.tag===22&amp;&amp;r){var l=i.memoizedState!==null||Ns;if(!l){var o=i.alternate,a=o!==null&amp;&amp;o.memoizedState!==null||$e;o=Ns;var u=$e;if(Ns=l,($e=a)&amp;&amp;!u)for(D=i;D!==null;)l=D,a=l.child,l.tag===22&amp;&amp;l.memoizedState!==null?yf(i):a!==null?(a.return=l,D=a):yf(i);for(;s!==null;)D=s,ap(s),s=s.sibling;D=i,Ns=o,$e=u}pf(e)}else i.subtreeFlags&amp;8772&amp;&amp;s!==null?(s.return=i,D=s):pf(e)}}function pf(e){for(;D!==null;){var t=D;if(t.flags&amp;8772){var n=t.alternate;try{if(t.flags&amp;8772)switch(t.tag){case 0:case 11:case 15:$e||bl(5,t);break;case 1:var r=t.stateNode;if(t.flags&amp;4&amp;&amp;!$e)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:kt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&amp;&amp;Yc(t,s,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Yc(t,l,n)}break;case 5:var o=t.stateNode;if(n===null&amp;&amp;t.flags&amp;4){n=o;var a=t.memoizedProps;switch(t.type){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:a.autoFocus&amp;&amp;n.focus();break;case&quot;img&quot;:a.src&amp;&amp;(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var p=c.dehydrated;p!==null&amp;&amp;$i(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}$e||t.flags&amp;512&amp;&amp;Na(t)}catch(y){xe(t,t.return,y)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function mf(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function yf(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bl(4,t)}catch(a){xe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==&quot;function&quot;){var i=t.return;try{r.componentDidMount()}catch(a){xe(t,i,a)}}var s=t.return;try{Na(t)}catch(a){xe(t,s,a)}break;case 5:var l=t.return;try{Na(t)}catch(a){xe(t,l,a)}}}catch(a){xe(t,t.return,a)}if(t===e){D=null;break}var o=t.sibling;if(o!==null){o.return=t.return,D=o;break}D=t.return}}var wv=Math.ceil,kl=Xt.ReactCurrentDispatcher,Zu=Xt.ReactCurrentOwner,yt=Xt.ReactCurrentBatchConfig,re=0,Le=null,Ce=null,De=0,nt=0,Sr=An(0),Re=0,Gi=null,nr=0,Jl=0,Qu=0,Ai=null,be=null,Ku=0,Kr=1/0,Ft=null,Sl=!1,Ia=null,_n=null,Rs=!1,hn=null,El=0,Ii=0,Pa=null,Ks=-1,bs=0;function He(){return re&amp;6?Se():Ks!==-1?Ks:Ks=Se()}function xn(e){return e.mode&amp;1?re&amp;2&amp;&amp;De!==0?De&amp;-De:nv.transition!==null?(bs===0&amp;&amp;(bs=Qd()),bs):(e=ae,e!==0||(e=window.event,e=e===void 0?16:qd(e.type)),e):1}function Tt(e,t,n,r){if(50&lt;Ii)throw Ii=0,Pa=null,Error(N(185));as(e,n,r),(!(re&amp;2)||e!==Le)&amp;&amp;(e===Le&amp;&amp;(!(re&amp;2)&amp;&amp;(Jl|=n),Re===4&amp;&amp;on(e,De)),qe(e,r),n===1&amp;&amp;re===0&amp;&amp;!(t.mode&amp;1)&amp;&amp;(Kr=Se()+500,Zl&amp;&amp;In()))}function qe(e,t){var n=e.callbackNode;ny(e,t);var r=ol(e,e===Le?De:0);if(r===0)n!==null&amp;&amp;Ec(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&amp;-r,e.callbackPriority!==t){if(n!=null&amp;&amp;Ec(n),t===1)e.tag===0?tv(vf.bind(null,e)):gh(vf.bind(null,e)),Yy(function(){!(re&amp;6)&amp;&amp;In()}),n=null;else{switch(Kd(r)){case 1:n=wu;break;case 4:n=Hd;break;case 16:n=ll;break;case 536870912:n=Zd;break;default:n=ll}n=yp(n,up.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function up(e,t){if(Ks=-1,bs=0,re&amp;6)throw Error(N(327));var n=e.callbackNode;if(Ir()&amp;&amp;e.callbackNode!==n)return null;var r=ol(e,e===Le?De:0);if(r===0)return null;if(r&amp;30||r&amp;e.expiredLanes||t)t=Cl(e,r);else{t=r;var i=re;re|=2;var s=fp();(Le!==e||De!==t)&amp;&amp;(Ft=null,Kr=Se()+500,bn(e,t));do try{kv();break}catch(o){cp(e,o)}while(!0);Pu(),kl.current=s,re=i,Ce!==null?t=0:(Le=null,De=0,t=Re)}if(t!==0){if(t===2&amp;&amp;(i=sa(e),i!==0&amp;&amp;(r=i,t=La(e,i))),t===1)throw n=Gi,bn(e,0),on(e,r),qe(e,Se()),n;if(t===6)on(e,r);else{if(i=e.current.alternate,!(r&amp;30)&amp;&amp;!_v(i)&amp;&amp;(t=Cl(e,r),t===2&amp;&amp;(s=sa(e),s!==0&amp;&amp;(r=s,t=La(e,s))),t===1))throw n=Gi,bn(e,0),on(e,r),qe(e,Se()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:jn(e,be,Ft);break;case 3:if(on(e,r),(r&amp;130023424)===r&amp;&amp;(t=Ku+500-Se(),10&lt;t)){if(ol(e,0)!==0)break;if(i=e.suspendedLanes,(i&amp;r)!==r){He(),e.pingedLanes|=e.suspendedLanes&amp;i;break}e.timeoutHandle=ha(jn.bind(null,e,be,Ft),t);break}jn(e,be,Ft);break;case 4:if(on(e,r),(r&amp;4194240)===r)break;for(t=e.eventTimes,i=-1;0&lt;r;){var l=31-Ot(r);s=1&lt;&lt;l,l=t[l],l&gt;i&amp;&amp;(i=l),r&amp;=~s}if(r=i,r=Se()-r,r=(120&gt;r?120:480&gt;r?480:1080&gt;r?1080:1920&gt;r?1920:3e3&gt;r?3e3:4320&gt;r?4320:1960*wv(r/1960))-r,10&lt;r){e.timeoutHandle=ha(jn.bind(null,e,be,Ft),r);break}jn(e,be,Ft);break;case 5:jn(e,be,Ft);break;default:throw Error(N(329))}}}return qe(e,Se()),e.callbackNode===n?up.bind(null,e):null}function La(e,t){var n=Ai;return e.current.memoizedState.isDehydrated&amp;&amp;(bn(e,t).flags|=256),e=Cl(e,t),e!==2&amp;&amp;(t=be,be=n,t!==null&amp;&amp;Ma(t)),e}function Ma(e){be===null?be=e:be.push.apply(be,e)}function _v(e){for(var t=e;;){if(t.flags&amp;16384){var n=t.updateQueue;if(n!==null&amp;&amp;(n=n.stores,n!==null))for(var r=0;r&lt;n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Nt(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&amp;16384&amp;&amp;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 on(e,t){for(t&amp;=~Qu,t&amp;=~Jl,e.suspendedLanes|=t,e.pingedLanes&amp;=~t,e=e.expirationTimes;0&lt;t;){var n=31-Ot(t),r=1&lt;&lt;n;e[n]=-1,t&amp;=~r}}function vf(e){if(re&amp;6)throw Error(N(327));Ir();var t=ol(e,0);if(!(t&amp;1))return qe(e,Se()),null;var n=Cl(e,t);if(e.tag!==0&amp;&amp;n===2){var r=sa(e);r!==0&amp;&amp;(t=r,n=La(e,r))}if(n===1)throw n=Gi,bn(e,0),on(e,t),qe(e,Se()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jn(e,be,Ft),qe(e,Se()),null}function bu(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&amp;&amp;(Kr=Se()+500,Zl&amp;&amp;In())}}function rr(e){hn!==null&amp;&amp;hn.tag===0&amp;&amp;!(re&amp;6)&amp;&amp;Ir();var t=re;re|=1;var n=yt.transition,r=ae;try{if(yt.transition=null,ae=1,e)return e()}finally{ae=r,yt.transition=n,re=t,!(re&amp;6)&amp;&amp;In()}}function Ju(){nt=Sr.current,pe(Sr)}function bn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&amp;&amp;(e.timeoutHandle=-1,Gy(n)),Ce!==null)for(n=Ce.return;n!==null;){var r=n;switch(Ru(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&amp;&amp;dl();break;case 3:Zr(),pe(Ye),pe(Fe),Uu();break;case 5:ju(r);break;case 4:Zr();break;case 13:pe(ye);break;case 19:pe(ye);break;case 10:Lu(r.type._context);break;case 22:case 23:Ju()}n=n.return}if(Le=e,Ce=e=kn(e.current,null),De=nt=t,Re=0,Gi=null,Qu=Jl=nr=0,be=Ai=null,Vn!==null){for(t=0;t&lt;Vn.length;t++)if(n=Vn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var l=s.next;s.next=i,r.next=l}n.pending=r}Vn=null}return e}function cp(e,t){do{var n=Ce;try{if(Pu(),Hs.current=xl,_l){for(var r=ve.memoizedState;r!==null;){var i=r.queue;i!==null&amp;&amp;(i.pending=null),r=r.next}_l=!1}if(tr=0,Pe=Ne=ve=null,Ni=!1,Ki=0,Zu.current=null,n===null||n.return===null){Re=1,Gi=t,Ce=null;break}e:{var s=e,l=n.return,o=n,a=t;if(t=De,o.flags|=32768,a!==null&amp;&amp;typeof a==&quot;object&quot;&amp;&amp;typeof a.then==&quot;function&quot;){var u=a,c=o,p=c.tag;if(!(c.mode&amp;1)&amp;&amp;(p===0||p===11||p===15)){var y=c.alternate;y?(c.updateQueue=y.updateQueue,c.memoizedState=y.memoizedState,c.lanes=y.lanes):(c.updateQueue=null,c.memoizedState=null)}var w=rf(l);if(w!==null){w.flags&amp;=-257,sf(w,l,o,s,t),w.mode&amp;1&amp;&amp;nf(s,u,t),t=w,a=u;var _=t.updateQueue;if(_===null){var E=new Set;E.add(a),t.updateQueue=E}else _.add(a);break e}else{if(!(t&amp;1)){nf(s,u,t),Gu();break e}a=Error(N(426))}}else if(me&amp;&amp;o.mode&amp;1){var J=rf(l);if(J!==null){!(J.flags&amp;65536)&amp;&amp;(J.flags|=256),sf(J,l,o,s,t),Au(Qr(a,o));break e}}s=a=Qr(a,o),Re!==4&amp;&amp;(Re=2),Ai===null?Ai=[s]:Ai.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&amp;=-t,s.lanes|=t;var m=Kh(s,a,t);Gc(s,m);break e;case 1:o=a;var d=s.type,h=s.stateNode;if(!(s.flags&amp;128)&amp;&amp;(typeof d.getDerivedStateFromError==&quot;function&quot;||h!==null&amp;&amp;typeof h.componentDidCatch==&quot;function&quot;&amp;&amp;(_n===null||!_n.has(h)))){s.flags|=65536,t&amp;=-t,s.lanes|=t;var O=bh(s,o,t);Gc(s,O);break e}}s=s.return}while(s!==null)}hp(n)}catch(L){t=L,Ce===n&amp;&amp;n!==null&amp;&amp;(Ce=n=n.return);continue}break}while(!0)}function fp(){var e=kl.current;return kl.current=xl,e===null?xl:e}function Gu(){(Re===0||Re===3||Re===2)&amp;&amp;(Re=4),Le===null||!(nr&amp;268435455)&amp;&amp;!(Jl&amp;268435455)||on(Le,De)}function Cl(e,t){var n=re;re|=2;var r=fp();(Le!==e||De!==t)&amp;&amp;(Ft=null,bn(e,t));do try{xv();break}catch(i){cp(e,i)}while(!0);if(Pu(),re=n,kl.current=r,Ce!==null)throw Error(N(261));return Le=null,De=0,Re}function xv(){for(;Ce!==null;)dp(Ce)}function kv(){for(;Ce!==null&amp;&amp;!Km();)dp(Ce)}function dp(e){var t=mp(e.alternate,e,nt);e.memoizedProps=e.pendingProps,t===null?hp(e):Ce=t,Zu.current=null}function hp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&amp;32768){if(n=mv(n,t),n!==null){n.flags&amp;=32767,Ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Re=6,Ce=null;return}}else if(n=pv(n,t,nt),n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);Re===0&amp;&amp;(Re=5)}function jn(e,t,n){var r=ae,i=yt.transition;try{yt.transition=null,ae=1,Sv(e,t,n,r)}finally{yt.transition=i,ae=r}return null}function Sv(e,t,n,r){do Ir();while(hn!==null);if(re&amp;6)throw Error(N(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(ry(e,s),e===Le&amp;&amp;(Ce=Le=null,De=0),!(n.subtreeFlags&amp;2064)&amp;&amp;!(n.flags&amp;2064)||Rs||(Rs=!0,yp(ll,function(){return Ir(),null})),s=(n.flags&amp;15990)!==0,n.subtreeFlags&amp;15990||s){s=yt.transition,yt.transition=null;var l=ae;ae=1;var o=re;re|=4,Zu.current=null,vv(e,n),op(n,e),Wy(fa),al=!!ca,fa=ca=null,e.current=n,gv(n),bm(),re=o,ae=l,yt.transition=s}else e.current=n;if(Rs&amp;&amp;(Rs=!1,hn=e,El=i),s=e.pendingLanes,s===0&amp;&amp;(_n=null),Ym(n.stateNode),qe(e,Se()),t!==null)for(r=e.onRecoverableError,n=0;n&lt;t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Sl)throw Sl=!1,e=Ia,Ia=null,e;return El&amp;1&amp;&amp;e.tag!==0&amp;&amp;Ir(),s=e.pendingLanes,s&amp;1?e===Pa?Ii++:(Ii=0,Pa=e):Ii=0,In(),null}function Ir(){if(hn!==null){var e=Kd(El),t=yt.transition,n=ae;try{if(yt.transition=null,ae=16&gt;e?16:e,hn===null)var r=!1;else{if(e=hn,hn=null,El=0,re&amp;6)throw Error(N(331));var i=re;for(re|=4,D=e.current;D!==null;){var s=D,l=s.child;if(D.flags&amp;16){var o=s.deletions;if(o!==null){for(var a=0;a&lt;o.length;a++){var u=o[a];for(D=u;D!==null;){var c=D;switch(c.tag){case 0:case 11:case 15:Ri(8,c,s)}var p=c.child;if(p!==null)p.return=c,D=p;else for(;D!==null;){c=D;var y=c.sibling,w=c.return;if(ip(c),c===u){D=null;break}if(y!==null){y.return=w,D=y;break}D=w}}}var _=s.alternate;if(_!==null){var E=_.child;if(E!==null){_.child=null;do{var J=E.sibling;E.sibling=null,E=J}while(E!==null)}}D=s}}if(s.subtreeFlags&amp;2064&amp;&amp;l!==null)l.return=s,D=l;else e:for(;D!==null;){if(s=D,s.flags&amp;2048)switch(s.tag){case 0:case 11:case 15:Ri(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,D=m;break e}D=s.return}}var d=e.current;for(D=d;D!==null;){l=D;var h=l.child;if(l.subtreeFlags&amp;2064&amp;&amp;h!==null)h.return=l,D=h;else e:for(l=d;D!==null;){if(o=D,o.flags&amp;2048)try{switch(o.tag){case 0:case 11:case 15:bl(9,o)}}catch(L){xe(o,o.return,L)}if(o===l){D=null;break e}var O=o.sibling;if(O!==null){O.return=o.return,D=O;break e}D=o.return}}if(re=i,In(),zt&amp;&amp;typeof zt.onPostCommitFiberRoot==&quot;function&quot;)try{zt.onPostCommitFiberRoot(Fl,e)}catch{}r=!0}return r}finally{ae=n,yt.transition=t}}return!1}function gf(e,t,n){t=Qr(n,t),t=Kh(e,t,1),e=wn(e,t,1),t=He(),e!==null&amp;&amp;(as(e,1,t),qe(e,t))}function xe(e,t,n){if(e.tag===3)gf(e,e,n);else for(;t!==null;){if(t.tag===3){gf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==&quot;function&quot;||typeof r.componentDidCatch==&quot;function&quot;&amp;&amp;(_n===null||!_n.has(r))){e=Qr(n,e),e=bh(t,e,1),t=wn(t,e,1),e=He(),t!==null&amp;&amp;(as(t,1,e),qe(t,e));break}}t=t.return}}function Ev(e,t,n){var r=e.pingCache;r!==null&amp;&amp;r.delete(t),t=He(),e.pingedLanes|=e.suspendedLanes&amp;n,Le===e&amp;&amp;(De&amp;n)===n&amp;&amp;(Re===4||Re===3&amp;&amp;(De&amp;130023424)===De&amp;&amp;500&gt;Se()-Ku?bn(e,0):Qu|=n),qe(e,t)}function pp(e,t){t===0&amp;&amp;(e.mode&amp;1?(t=ws,ws&lt;&lt;=1,!(ws&amp;130023424)&amp;&amp;(ws=4194304)):t=1);var n=He();e=Jt(e,t),e!==null&amp;&amp;(as(e,t,n),qe(e,n))}function Cv(e){var t=e.memoizedState,n=0;t!==null&amp;&amp;(n=t.retryLane),pp(e,n)}function Ov(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&amp;&amp;(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&amp;&amp;r.delete(t),pp(e,n)}var mp;mp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Ge=!0;else{if(!(e.lanes&amp;n)&amp;&amp;!(t.flags&amp;128))return Ge=!1,hv(e,t,n);Ge=!!(e.flags&amp;131072)}else Ge=!1,me&amp;&amp;t.flags&amp;1048576&amp;&amp;wh(t,ml,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qs(e,t),e=t.pendingProps;var i=Br(t,Fe.current);Ar(t,n),i=Fu(null,t,r,e,i,n);var s=Vu();return t.flags|=1,typeof i==&quot;object&quot;&amp;&amp;i!==null&amp;&amp;typeof i.render==&quot;function&quot;&amp;&amp;i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xe(r)?(s=!0,hl(t)):s=!1,t.memoizedState=i.state!==null&amp;&amp;i.state!==void 0?i.state:null,Du(t),i.updater=Kl,t.stateNode=i,i._reactInternals=t,_a(t,r,e,n),t=Sa(null,t,r,!0,s,n)):(t.tag=0,me&amp;&amp;s&amp;&amp;Nu(t),Ve(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Nv(r),e=kt(r,e),i){case 0:t=ka(null,t,r,e,n);break e;case 1:t=af(null,t,r,e,n);break e;case 11:t=lf(null,t,r,e,n);break e;case 14:t=of(null,t,r,kt(r.type,e),n);break e}throw Error(N(306,r,&quot;&quot;))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),ka(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),af(e,t,r,i,n);case 3:e:{if(Xh(t),e===null)throw Error(N(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Ch(e,t),gl(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&amp;256){i=Qr(Error(N(423)),t),t=uf(e,t,r,n,i);break e}else if(r!==i){i=Qr(Error(N(424)),t),t=uf(e,t,r,n,i);break e}else for(rt=gn(t.stateNode.containerInfo.firstChild),st=t,me=!0,Ct=null,n=Sh(t,null,r,n),t.child=n;n;)n.flags=n.flags&amp;-3|4096,n=n.sibling;else{if(Wr(),r===i){t=Gt(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return Oh(t),e===null&amp;&amp;va(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,l=i.children,da(r,i)?l=null:s!==null&amp;&amp;da(r,s)&amp;&amp;(t.flags|=32),Yh(e,t),Ve(e,t,l,n),t.child;case 6:return e===null&amp;&amp;va(t),null;case 13:return qh(e,t,n);case 4:return zu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hr(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),lf(e,t,r,i,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,l=i.value,ue(yl,r._currentValue),r._currentValue=l,s!==null)if(Nt(s.value,l)){if(s.children===i.children&amp;&amp;!Ye.current){t=Gt(e,t,n);break e}}else for(s=t.child,s!==null&amp;&amp;(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){l=s.child;for(var a=o.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=Qt(-1,n&amp;-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&amp;&amp;(a.lanes|=n),ga(s.return,n,t),o.lanes|=n;break}a=a.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(N(341));l.lanes|=n,o=l.alternate,o!==null&amp;&amp;(o.lanes|=n),ga(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}Ve(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ar(t,n),i=vt(i),r=r(i),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,i=kt(r,t.pendingProps),i=kt(r.type,i),of(e,t,r,i,n);case 15:return Jh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Qs(e,t),t.tag=1,Xe(r)?(e=!0,hl(t)):e=!1,Ar(t,n),Qh(t,r,i),_a(t,r,i,n),Sa(null,t,r,!0,e,n);case 19:return ep(e,t,n);case 22:return Gh(e,t,n)}throw Error(N(156,t.tag))};function yp(e,t){return Wd(e,t)}function Tv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,n,r){return new Tv(e,t,n,r)}function Yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nv(e){if(typeof e==&quot;function&quot;)return Yu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yu)return 11;if(e===vu)return 14}return 2}function kn(e,t){var n=e.alternate;return n===null?(n=mt(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&amp;14680064,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}function Js(e,t,n,r,i,s){var l=2;if(r=e,typeof e==&quot;function&quot;)Yu(e)&amp;&amp;(l=1);else if(typeof e==&quot;string&quot;)l=5;else e:switch(e){case hr:return Jn(n.children,i,s,t);case mu:l=8,i|=8;break;case Ho:return e=mt(12,n,t,i|2),e.elementType=Ho,e.lanes=s,e;case Zo:return e=mt(13,n,t,i),e.elementType=Zo,e.lanes=s,e;case Qo:return e=mt(19,n,t,i),e.elementType=Qo,e.lanes=s,e;case Od:return Gl(n,i,s,t);default:if(typeof e==&quot;object&quot;&amp;&amp;e!==null)switch(e.$$typeof){case Ed:l=10;break e;case Cd:l=9;break e;case yu:l=11;break e;case vu:l=14;break e;case nn:l=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,&quot;&quot;))}return t=mt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Jn(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function Gl(e,t,n,r){return e=mt(22,e,r,t),e.elementType=Od,e.lanes=n,e.stateNode={isHidden:!1},e}function Io(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function Po(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fo(0),this.expirationTimes=fo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Xu(e,t,n,r,i,s,l,o,a){return e=new Rv(e,t,n,o,a),t===1?(t=1,s===!0&amp;&amp;(t|=8)):t=0,s=mt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Du(s),e}function Av(e,t,n){var r=3&lt;arguments.length&amp;&amp;arguments[3]!==void 0?arguments[3]:null;return{$$typeof:dr,key:r==null?null:&quot;&quot;+r,children:e,containerInfo:t,implementation:n}}function vp(e){if(!e)return On;e=e._reactInternals;e:{if(or(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(Xe(n))return vh(e,n,t)}return t}function gp(e,t,n,r,i,s,l,o,a){return e=Xu(n,r,!0,e,i,s,l,o,a),e.context=vp(null),n=e.current,r=He(),i=xn(n),s=Qt(r,i),s.callback=t??null,wn(n,s,i),e.current.lanes=i,as(e,i,r),qe(e,r),e}function Yl(e,t,n,r){var i=t.current,s=He(),l=xn(i);return n=vp(n),t.context===null?t.context=n:t.pendingContext=n,t=Qt(s,l),t.payload={element:e},r=r===void 0?null:r,r!==null&amp;&amp;(t.callback=r),e=wn(i,t,l),e!==null&amp;&amp;(Tt(e,i,l,s),Ws(e,i,l)),l}function Ol(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function wf(e,t){if(e=e.memoizedState,e!==null&amp;&amp;e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&amp;&amp;n&lt;t?n:t}}function qu(e,t){wf(e,t),(e=e.alternate)&amp;&amp;wf(e,t)}function Iv(){return null}var wp=typeof reportError==&quot;function&quot;?reportError:function(e){console.error(e)};function ec(e){this._internalRoot=e}Xl.prototype.render=ec.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Yl(e,t,null,null)};Xl.prototype.unmount=ec.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rr(function(){Yl(null,e,null,null)}),t[bt]=null}};function Xl(e){this._internalRoot=e}Xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gd();e={blockedOn:null,target:e,priority:t};for(var n=0;n&lt;ln.length&amp;&amp;t!==0&amp;&amp;t&lt;ln[n].priority;n++);ln.splice(n,0,e),n===0&amp;&amp;Xd(e)}};function tc(e){return!(!e||e.nodeType!==1&amp;&amp;e.nodeType!==9&amp;&amp;e.nodeType!==11)}function ql(e){return!(!e||e.nodeType!==1&amp;&amp;e.nodeType!==9&amp;&amp;e.nodeType!==11&amp;&amp;(e.nodeType!==8||e.nodeValue!==&quot; react-mount-point-unstable &quot;))}function _f(){}function Pv(e,t,n,r,i){if(i){if(typeof r==&quot;function&quot;){var s=r;r=function(){var u=Ol(l);s.call(u)}}var l=gp(t,r,e,0,null,!1,!1,&quot;&quot;,_f);return e._reactRootContainer=l,e[bt]=l.current,Bi(e.nodeType===8?e.parentNode:e),rr(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==&quot;function&quot;){var o=r;r=function(){var u=Ol(a);o.call(u)}}var a=Xu(e,0,!1,null,null,!1,!1,&quot;&quot;,_f);return e._reactRootContainer=a,e[bt]=a.current,Bi(e.nodeType===8?e.parentNode:e),rr(function(){Yl(t,a,n,r)}),a}function eo(e,t,n,r,i){var s=n._reactRootContainer;if(s){var l=s;if(typeof i==&quot;function&quot;){var o=i;i=function(){var a=Ol(l);o.call(a)}}Yl(t,l,e,i)}else l=Pv(n,t,e,i,r);return Ol(l)}bd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vi(t.pendingLanes);n!==0&amp;&amp;(_u(t,n|1),qe(t,Se()),!(re&amp;6)&amp;&amp;(Kr=Se()+500,In()))}break;case 13:rr(function(){var r=Jt(e,1);if(r!==null){var i=He();Tt(r,e,1,i)}}),qu(e,1)}};xu=function(e){if(e.tag===13){var t=Jt(e,134217728);if(t!==null){var n=He();Tt(t,e,134217728,n)}qu(e,134217728)}};Jd=function(e){if(e.tag===13){var t=xn(e),n=Jt(e,t);if(n!==null){var r=He();Tt(n,e,t,r)}qu(e,t)}};Gd=function(){return ae};Yd=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};na=function(e,t,n){switch(t){case&quot;input&quot;:if(Jo(e,n),t=n.name,n.type===&quot;radio&quot;&amp;&amp;t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(&quot;input[name=&quot;+JSON.stringify(&quot;&quot;+t)+&#39;][type=&quot;radio&quot;]&#39;),t=0;t&lt;n.length;t++){var r=n[t];if(r!==e&amp;&amp;r.form===e.form){var i=Hl(r);if(!i)throw Error(N(90));Nd(r),Jo(r,i)}}}break;case&quot;textarea&quot;:Ad(e,n);break;case&quot;select&quot;:t=n.value,t!=null&amp;&amp;Or(e,!!n.multiple,t,!1)}};jd=bu;Ud=rr;var Lv={usingClientEntryPoint:!1,Events:[cs,vr,Hl,Dd,zd,bu]},fi={findFiberByHostInstance:Fn,bundleType:0,version:&quot;18.3.1&quot;,rendererPackageName:&quot;react-dom&quot;},Mv={bundleType:fi.bundleType,version:fi.version,rendererPackageName:fi.rendererPackageName,rendererConfig:fi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Vd(e),e===null?null:e.stateNode},findFiberByHostInstance:fi.findFiberByHostInstance||Iv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:&quot;18.3.1-next-f1338f8080-20240426&quot;};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&lt;&quot;u&quot;){var As=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!As.isDisabled&amp;&amp;As.supportsFiber)try{Fl=As.inject(Mv),zt=As}catch{}}at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lv;at.createPortal=function(e,t){var n=2&lt;arguments.length&amp;&amp;arguments[2]!==void 0?arguments[2]:null;if(!tc(t))throw Error(N(200));return Av(e,t,null,n)};at.createRoot=function(e,t){if(!tc(e))throw Error(N(299));var n=!1,r=&quot;&quot;,i=wp;return t!=null&amp;&amp;(t.unstable_strictMode===!0&amp;&amp;(n=!0),t.identifierPrefix!==void 0&amp;&amp;(r=t.identifierPrefix),t.onRecoverableError!==void 0&amp;&amp;(i=t.onRecoverableError)),t=Xu(e,1,!1,null,null,n,!1,r,i),e[bt]=t.current,Bi(e.nodeType===8?e.parentNode:e),new ec(t)};at.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==&quot;function&quot;?Error(N(188)):(e=Object.keys(e).join(&quot;,&quot;),Error(N(268,e)));return e=Vd(t),e=e===null?null:e.stateNode,e};at.flushSync=function(e){return rr(e)};at.hydrate=function(e,t,n){if(!ql(t))throw Error(N(200));return eo(null,e,t,!0,n)};at.hydrateRoot=function(e,t,n){if(!tc(e))throw Error(N(405));var r=n!=null&amp;&amp;n.hydratedSources||null,i=!1,s=&quot;&quot;,l=wp;if(n!=null&amp;&amp;(n.unstable_strictMode===!0&amp;&amp;(i=!0),n.identifierPrefix!==void 0&amp;&amp;(s=n.identifierPrefix),n.onRecoverableError!==void 0&amp;&amp;(l=n.onRecoverableError)),t=gp(t,null,e,1,n??null,i,!1,s,l),e[bt]=t.current,Bi(e),r)for(e=0;e&lt;r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Xl(t)};at.render=function(e,t,n){if(!ql(t))throw Error(N(200));return eo(null,e,t,!1,n)};at.unmountComponentAtNode=function(e){if(!ql(e))throw Error(N(40));return e._reactRootContainer?(rr(function(){eo(null,null,e,!1,function(){e._reactRootContainer=null,e[bt]=null})}),!0):!1};at.unstable_batchedUpdates=bu;at.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ql(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return eo(e,t,n,!1,r)};at.version=&quot;18.3.1-next-f1338f8080-20240426&quot;;function _p(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&gt;&quot;u&quot;||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=&quot;function&quot;))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_p)}catch(e){console.error(e)}}_p(),_d.exports=at;var Dv=_d.exports,xp,xf=Dv;xp=xf.createRoot,xf.hydrateRoot;const Pr=new WeakMap,Gs=new WeakMap,Tl={current:[]};let Lo=!1;const Is=new Set,kf=new Map;function kp(e){const t=Array.from(e).sort((n,r)=&gt;n instanceof Sn&amp;&amp;n.options.deps.includes(r)?1:r instanceof Sn&amp;&amp;r.options.deps.includes(n)?-1:0);for(const n of t){if(Tl.current.includes(n))continue;Tl.current.push(n),n.recompute();const r=Gs.get(n);if(r)for(const i of r){const s=Pr.get(i);s&amp;&amp;kp(s)}}}function zv(e){e.listeners.forEach(t=&gt;t({prevVal:e.prevState,currentVal:e.state}))}function jv(e){e.listeners.forEach(t=&gt;t({prevVal:e.prevState,currentVal:e.state}))}function Uv(e){if(Is.add(e),!Lo)try{for(Lo=!0;Is.size&gt;0;){const t=Array.from(Is);Is.clear();for(const n of t){const r=kf.get(n)??n.prevState;n.prevState=r,zv(n)}for(const n of t){const r=Pr.get(n);r&amp;&amp;(Tl.current.push(n),kp(r))}for(const n of t){const r=Pr.get(n);if(r)for(const i of r)jv(i)}}}finally{Lo=!1,Tl.current=[],kf.clear()}}function $v(e){return typeof e==&quot;function&quot;}class Da{constructor(t,n){this.listeners=new Set,this.subscribe=r=&gt;{var i,s;this.listeners.add(r);const l=(s=(i=this.options)==null?void 0:i.onSubscribe)==null?void 0:s.call(i,r,this);return()=&gt;{this.listeners.delete(r),l==null||l()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,r,i;this.prevState=this.state,(n=this.options)!=null&amp;&amp;n.updateFn?this.state=this.options.updateFn(this.prevState)(t):$v(t)?this.state=t(this.prevState):this.state=t,(i=(r=this.options)==null?void 0:r.onUpdate)==null||i.call(r),Uv(this)}}class Sn{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=&gt;{const n=[],r=[];for(const i of this.options.deps)n.push(i.prevState),r.push(i.state);return this.lastSeenDepValues=r,{prevDepVals:n,currDepVals:r,prevVal:this.prevState??void 0}},this.recompute=()=&gt;{var n,r;this.prevState=this.state;const{prevDepVals:i,currDepVals:s,prevVal:l}=this.getDepVals();this.state=this.options.fn({prevDepVals:i,currDepVals:s,prevVal:l}),(r=(n=this.options).onUpdate)==null||r.call(n)},this.checkIfRecalculationNeededDeeply=()=&gt;{for(const s of this.options.deps)s instanceof Sn&amp;&amp;s.checkIfRecalculationNeededDeeply();let n=!1;const r=this.lastSeenDepValues,{currDepVals:i}=this.getDepVals();for(let s=0;s&lt;i.length;s++)if(i[s]!==r[s]){n=!0;break}n&amp;&amp;this.recompute()},this.mount=()=&gt;(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=&gt;{this.unregisterFromGraph();for(const n of this._subscriptions)n()}),this.subscribe=n=&gt;{var r,i;this.listeners.add(n);const s=(i=(r=this.options).onSubscribe)==null?void 0:i.call(r,n,this);return()=&gt;{this.listeners.delete(n),s==null||s()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const n of t)if(n instanceof Sn)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof Da){let r=Pr.get(n);r||(r=new Set,Pr.set(n,r)),r.add(this);let i=Gs.get(this);i||(i=new Set,Gs.set(this,i)),i.add(n)}}unregisterFromGraph(t=this.options.deps){for(const n of t)if(n instanceof Sn)this.unregisterFromGraph(n.options.deps);else if(n instanceof Da){const r=Pr.get(n);r&amp;&amp;r.delete(this);const i=Gs.get(this);i&amp;&amp;i.delete(n)}}}class Fv{constructor(t){const{eager:n,fn:r,...i}=t;this._derived=new Sn({...i,fn:()=&gt;{},onUpdate(){r()}}),n&amp;&amp;r()}mount(){return this._derived.mount()}}function Vv(e,t={}){const n=new Da({actors:{}}),r=t.hashFunction||Bv,i=new Map;function s(l){const o=r(l),a=i.get(o);if(a)return{...a,state:a.state};const u=new Sn({fn:({currDepVals:[_]})=&gt;_.actors[o],deps:[n]});function c(){async function _(){const E=n.state.actors[o];try{const J=e.getOrCreate(E.opts.name,E.opts.key,{params:E.opts.params,createInRegion:E.opts.createInRegion,createWithInput:E.opts.createWithInput}),m=J.connect();await J.resolve(),n.setState(d=&gt;({...d,actors:{...d.actors,[o]:{...d.actors[o],isConnected:!0,isConnecting:!1,handle:J,connection:m,isError:!1,error:null}}}))}catch(J){n.setState(m=&gt;({...m,actors:{...m.actors,[o]:{...m.actors[o],isError:!0,isConnecting:!1,error:J}}}))}}n.setState(E=&gt;(E.actors[o].isConnecting=!0,E.actors[o].isError=!1,E.actors[o].error=null,_(),E))}const p=new Fv({fn:()=&gt;{const _=n.state.actors[o];JSON.stringify(n.prevState.actors[o].opts)===JSON.stringify(n.state.actors[o].opts)&amp;&amp;!_.isConnected&amp;&amp;!_.isConnecting&amp;&amp;!_.isError&amp;&amp;_.opts.enabled&amp;&amp;c()},deps:[u]});n.setState(_=&gt;_.actors[o]?_:{..._,actors:{..._.actors,[o]:{hash:o,isConnected:!1,isConnecting:!1,connection:null,handle:null,isError:!1,error:null,opts:l}}});function y(_){n.setState(E=&gt;{const J=E.actors[o];if(!J)throw new Error(`Actor with key &quot;${o}&quot; does not exist.`);let m;return typeof _==&quot;function&quot;?m=_(J):m=_,{...E,actors:{...E.actors,[o]:m}}})}const w=()=&gt;{const _=u.mount(),E=p.mount();return()=&gt;{_(),E()}};return i.set(o,{state:u,key:o,mount:w,setState:y,create:c,addEventListener}),{mount:w,setState:y,state:u,create:c,key:o}}return{getOrCreateActor:s,store:n}}function Bv({name:e,key:t,params:n}){return JSON.stringify({name:e,key:t,params:n})}var Sp={exports:{}},Ep={},Cp={exports:{}},Op={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var br=We;function Wv(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var Hv=typeof Object.is==&quot;function&quot;?Object.is:Wv,Zv=br.useState,Qv=br.useEffect,Kv=br.useLayoutEffect,bv=br.useDebugValue;function Jv(e,t){var n=t(),r=Zv({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return Kv(function(){i.value=n,i.getSnapshot=t,Mo(i)&amp;&amp;s({inst:i})},[e,n,t]),Qv(function(){return Mo(i)&amp;&amp;s({inst:i}),e(function(){Mo(i)&amp;&amp;s({inst:i})})},[e]),bv(n),n}function Mo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hv(e,n)}catch{return!0}}function Gv(e,t){return t()}var Yv=typeof window&gt;&quot;u&quot;||typeof window.document&gt;&quot;u&quot;||typeof window.document.createElement&gt;&quot;u&quot;?Gv:Jv;Op.useSyncExternalStore=br.useSyncExternalStore!==void 0?br.useSyncExternalStore:Yv;Cp.exports=Op;var Xv=Cp.exports;/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var to=We,qv=Xv;function eg(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var tg=typeof Object.is==&quot;function&quot;?Object.is:eg,ng=qv.useSyncExternalStore,rg=to.useRef,ig=to.useEffect,sg=to.useMemo,lg=to.useDebugValue;Ep.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=rg(null);if(s.current===null){var l={hasValue:!1,value:null};s.current=l}else l=s.current;s=sg(function(){function a(w){if(!u){if(u=!0,c=w,w=r(w),i!==void 0&amp;&amp;l.hasValue){var _=l.value;if(i(_,w))return p=_}return p=w}if(_=p,tg(c,w))return _;var E=r(w);return i!==void 0&amp;&amp;i(_,E)?(c=w,_):(c=w,p=E)}var u=!1,c,p,y=n===void 0?null:n;return[function(){return a(t())},y===null?void 0:function(){return a(y())}]},[t,n,r,i]);var o=ng(e,s[0],s[1]);return ig(function(){l.hasValue=!0,l.value=o},[o]),lg(o),o};Sp.exports=Ep;var og=Sp.exports;function Sf(e,t=n=&gt;n){return og.useSyncExternalStoreWithSelector(e.subscribe,()=&gt;e.state,()=&gt;e.state,t,ag)}function ag(e,t){if(Object.is(e,t))return!0;if(typeof e!=&quot;object&quot;||e===null||typeof t!=&quot;object&quot;||t===null)return!1;if(e instanceof Map&amp;&amp;t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!t.has(r)||!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&amp;&amp;t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r&lt;n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}const ug=&quot;modulepreload&quot;,cg=function(e){return&quot;/&quot;+e},Ef={},Tp=function(t,n,r){let i=Promise.resolve();if(n&amp;&amp;n.length&gt;0){document.getElementsByTagName(&quot;link&quot;);const l=document.querySelector(&quot;meta[property=csp-nonce]&quot;),o=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute(&quot;nonce&quot;));i=Promise.allSettled(n.map(a=&gt;{if(a=cg(a),a in Ef)return;Ef[a]=!0;const u=a.endsWith(&quot;.css&quot;),c=u?&#39;[rel=&quot;stylesheet&quot;]&#39;:&quot;&quot;;if(document.querySelector(`link[href=&quot;${a}&quot;]${c}`))return;const p=document.createElement(&quot;link&quot;);if(p.rel=u?&quot;stylesheet&quot;:ug,u||(p.as=&quot;script&quot;),p.crossOrigin=&quot;&quot;,p.href=a,o&amp;&amp;p.setAttribute(&quot;nonce&quot;,o),document.head.appendChild(p),u)return new Promise((y,w)=&gt;{p.addEventListener(&quot;load&quot;,y),p.addEventListener(&quot;error&quot;,()=&gt;w(new Error(`Unable to preload CSS for ${a}`)))})}))}function s(l){const o=new Event(&quot;vite:preloadError&quot;,{cancelable:!0});if(o.payload=l,window.dispatchEvent(o),!o.defaultPrevented)throw l}return i.then(l=&gt;{for(const o of l||[])o.status===&quot;rejected&quot;&amp;&amp;s(o.reason);return t().catch(s)})};var fg=&quot;internal_error&quot;,dg=class extends Error{constructor(n,r,i){super(r,{cause:i==null?void 0:i.cause});Rt(this,&quot;__type&quot;,&quot;ActorError&quot;);Rt(this,&quot;public&quot;);Rt(this,&quot;metadata&quot;);Rt(this,&quot;statusCode&quot;,500);this.code=n,this.public=(i==null?void 0:i.public)??!1,this.metadata=i==null?void 0:i.metadata,i!=null&amp;&amp;i.public&amp;&amp;(this.statusCode=400)}static isActorError(n){return typeof n==&quot;object&quot;&amp;&amp;n.__type===&quot;ActorError&quot;}toString(){return this.message}serializeForHttp(){return{type:this.code,message:this.message,metadata:this.metadata}}},hg=class extends dg{constructor(e){super(fg,e)}},pg=class extends hg{constructor(e){super(`Unreachable case: ${e}`)}},mg={};function dt(e){throw new Error(`Unreachable case: ${e}`)}function Cf(e){if(e instanceof Error)return typeof process&lt;&quot;u&quot;&amp;&amp;Nl(&quot;_RIVETKIT_ERROR_STACK&quot;)===&quot;1&quot;?`${e.name}: ${e.message}${e.stack?`
${e.stack}`:&quot;&quot;}`:`${e.name}: ${e.message}`;if(typeof e==&quot;string&quot;)return e;if(typeof e==&quot;object&quot;&amp;&amp;e!==null)try{return`${JSON.stringify(e)}`}catch{return&quot;[cannot stringify error]&quot;}else return`Unknown error: ${yg(e)}`}function yg(e){return e&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;&quot;message&quot;in e&amp;&amp;typeof e.message==&quot;string&quot;?e.message:String(e)}var vg={version:&quot;0.9.9&quot;},gg=vg.version,Do;function Ys(){if(Do!==void 0)return Do;let e=`RivetKit/${gg}`;const t=typeof navigator&lt;&quot;u&quot;?navigator:void 0;return t!=null&amp;&amp;t.userAgent&amp;&amp;(e+=` ${t.userAgent}`),Do=e,e}function Nl(e){if(typeof Deno&lt;&quot;u&quot;)return Deno.env.get(e);if(typeof process&lt;&quot;u&quot;)return mg[e]}var Dn={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,CRITICAL:5},Np={0:&quot;TRACE&quot;,1:&quot;DEBUG&quot;,2:&quot;INFO&quot;,3:&quot;WARN&quot;,4:&quot;ERROR&quot;,5:&quot;CRITICAL&quot;};function wg(...e){let t=&quot;&quot;;for(let n=0;n&lt;e.length;n++){const[r,i]=e[n];let s=!1,l;i==null?(s=!0,l=&quot;&quot;):l=i.toString(),l.length&gt;512&amp;&amp;r!==&quot;msg&quot;&amp;&amp;r!==&quot;error&quot;&amp;&amp;(l=`${l.slice(0,512)}...`);const o=l.indexOf(&quot; &quot;)&gt;-1||l.indexOf(&quot;=&quot;)&gt;-1,a=l.indexOf(&#39;&quot;&#39;)&gt;-1||l.indexOf(&quot;\\&quot;)&gt;-1;l=l.replace(/\n/g,&quot;\\n&quot;),a&amp;&amp;(l=l.replace(/[&quot;\\]/g,&quot;\\$&amp;&quot;)),(o||a)&amp;&amp;(l=`&quot;${l}&quot;`),l===&quot;&quot;&amp;&amp;!s&amp;&amp;(l=&#39;&quot;&quot;&#39;),t+=`${r}=${l}`,n!==e.length-1&amp;&amp;(t+=&quot; &quot;)}return t}function _g(e){const t=e.getUTCFullYear(),n=String(e.getUTCMonth()+1).padStart(2,&quot;0&quot;),r=String(e.getUTCDate()).padStart(2,&quot;0&quot;),i=String(e.getUTCHours()).padStart(2,&quot;0&quot;),s=String(e.getUTCMinutes()).padStart(2,&quot;0&quot;),l=String(e.getUTCSeconds()).padStart(2,&quot;0&quot;),o=String(e.getUTCMilliseconds()).padStart(3,&quot;0&quot;);return`${t}-${n}-${r}T${i}:${s}:${l}.${o}Z`}function xg(e){if(typeof e==&quot;string&quot;||typeof e==&quot;number&quot;||typeof e==&quot;boolean&quot;||e===null||e===void 0)return e;if(e instanceof Error)return String(e);try{return JSON.stringify(e)}catch{return&quot;[cannot stringify]&quot;}}var ei,Rp,Ap,nd,kg=(nd=class{constructor(e,t){le(this,ei);Rt(this,&quot;name&quot;);Rt(this,&quot;level&quot;);this.name=e,this.level=t}log(e,t,...n){const r={msg:t,args:n,level:e,loggerName:this.name,datetime:new Date,levelName:Np[e]};ne(this,ei,Rp).call(this,e)&amp;&amp;ne(this,ei,Ap).call(this,r)}trace(e,...t){this.log(Dn.TRACE,e,...t)}debug(e,...t){this.log(Dn.DEBUG,e,...t)}info(e,...t){this.log(Dn.INFO,e,...t)}warn(e,...t){this.log(Dn.WARN,e,...t)}error(e,...t){this.log(Dn.ERROR,e,...t)}critical(e,...t){this.log(Dn.CRITICAL,e,...t)}},ei=new WeakSet,Rp=function(e){return e&gt;=Dn[this.level]},Ap=function(e){console.log(Sg(e))},nd),zo={};function Ip(e=&quot;default&quot;){const n=Nl(&quot;_LOG_LEVEL&quot;)??&quot;INFO&quot;;return zo[e]||(zo[e]=new kg(e,n)),zo[e]}function Sg(e){const t=[];for(let i=0;i&lt;e.args.length;i++){const s=e.args[i];if(s&amp;&amp;typeof s==&quot;object&quot;)for(const l in s){const o=s[l];Of(l,o,t)}else Of(`arg${i}`,s,t)}const n=Nl(&quot;_LOG_TIMESTAMP&quot;)===&quot;1&quot;,r=Nl(&quot;_LOG_TARGET&quot;)===&quot;1&quot;;return wg(...n?[[&quot;ts&quot;,_g(new Date)]]:[],[&quot;level&quot;,Np[e.level]],...r?[[&quot;target&quot;,e.loggerName]]:[],[&quot;msg&quot;,e.msg],...t)}function Of(e,t,n){n.push([e,xg(t)])}let za;try{za=new TextDecoder}catch{}let U,Gn,x=0;const Eg=105,Cg=57342,Og=57343,Tf=57337,Nf=6,ur={};let di=11281e4,$t=1681e4,ee={},ke,Rl,Al=0,Yi=0,Ae,ht,Oe=[],ja=[],Je,Be,wi,Rf={useRecords:!1,mapsAsObjects:!0},Xi=!1,Pp=2;try{new Function(&quot;&quot;)}catch{Pp=1/0}class qi{constructor(t){if(t&amp;&amp;((t.keyMap||t._keyMap)&amp;&amp;!t.useRecords&amp;&amp;(t.useRecords=!1,t.mapsAsObjects=!0),t.useRecords===!1&amp;&amp;t.mapsAsObjects===void 0&amp;&amp;(t.mapsAsObjects=!0),t.getStructures&amp;&amp;(t.getShared=t.getStructures),t.getShared&amp;&amp;!t.structures&amp;&amp;((t.structures=[]).uninitialized=!0),t.keyMap)){this.mapKey=new Map;for(let[n,r]of Object.entries(t.keyMap))this.mapKey.set(r,n)}Object.assign(this,t)}decodeKey(t){return this.keyMap&amp;&amp;this.mapKey.get(t)||t}encodeKey(t){return this.keyMap&amp;&amp;this.keyMap.hasOwnProperty(t)?this.keyMap[t]:t}encodeKeys(t){if(!this._keyMap)return t;let n=new Map;for(let[r,i]of Object.entries(t))n.set(this._keyMap.hasOwnProperty(r)?this._keyMap[r]:r,i);return n}decodeKeys(t){if(!this._keyMap||t.constructor.name!=&quot;Map&quot;)return t;if(!this._mapKey){this._mapKey=new Map;for(let[r,i]of Object.entries(this._keyMap))this._mapKey.set(i,r)}let n={};return t.forEach((r,i)=&gt;n[pt(this._mapKey.has(i)?this._mapKey.get(i):i)]=r),n}mapDecode(t,n){let r=this.decode(t);if(this._keyMap)switch(r.constructor.name){case&quot;Array&quot;:return r.map(i=&gt;this.decodeKeys(i))}return r}decode(t,n){if(U)return zp(()=&gt;(Va(),this?this.decode(t,n):qi.prototype.decode.call(Rf,t,n)));Gn=n&gt;-1?n:t.length,x=0,Yi=0,Rl=null,Ae=null,U=t;try{Be=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(r){throw U=null,t instanceof Uint8Array?r:new Error(&quot;Source must be a Uint8Array or Buffer but was a &quot;+(t&amp;&amp;typeof t==&quot;object&quot;?t.constructor.name:typeof t))}if(this instanceof qi){if(ee=this,Je=this.sharedValues&amp;&amp;(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return ke=this.structures,Ps();(!ke||ke.length&gt;0)&amp;&amp;(ke=[])}else ee=Rf,(!ke||ke.length&gt;0)&amp;&amp;(ke=[]),Je=null;return Ps()}decodeMultiple(t,n){let r,i=0;try{let s=t.length;Xi=!0;let l=this?this.decode(t,s):ic.decode(t,s);if(n){if(n(l)===!1)return;for(;x&lt;s;)if(i=x,n(Ps())===!1)return}else{for(r=[l];x&lt;s;)i=x,r.push(Ps());return r}}catch(s){throw s.lastPosition=i,s.values=r,s}finally{Xi=!1,Va()}}}function Ps(){try{let e=te();if(Ae){if(x&gt;=Ae.postBundlePosition){let t=new Error(&quot;Unexpected bundle position&quot;);throw t.incomplete=!0,t}x=Ae.postBundlePosition,Ae=null}if(x==Gn)ke=null,U=null,ht&amp;&amp;(ht=null);else if(x&gt;Gn){let t=new Error(&quot;Unexpected end of CBOR data&quot;);throw t.incomplete=!0,t}else if(!Xi)throw new Error(&quot;Data read, but end of buffer not reached&quot;);return e}catch(e){throw Va(),(e instanceof RangeError||e.message.startsWith(&quot;Unexpected end of buffer&quot;))&amp;&amp;(e.incomplete=!0),e}}function te(){let e=U[x++],t=e&gt;&gt;5;if(e=e&amp;31,e&gt;23)switch(e){case 24:e=U[x++];break;case 25:if(t==7)return Ag();e=Be.getUint16(x),x+=2;break;case 26:if(t==7){let n=Be.getFloat32(x);if(ee.useFloat32&gt;2){let r=rc[(U[x]&amp;127)&lt;&lt;1|U[x+1]&gt;&gt;7];return x+=4,(r*n+(n&gt;0?.5:-.5)&gt;&gt;0)/r}return x+=4,n}e=Be.getUint32(x),x+=4;break;case 27:if(t==7){let n=Be.getFloat64(x);return x+=8,n}if(t&gt;1){if(Be.getUint32(x)&gt;0)throw new Error(&quot;JavaScript does not support arrays, maps, or strings with length over 4294967295&quot;);e=Be.getUint32(x+4)}else ee.int64AsNumber?(e=Be.getUint32(x)*4294967296,e+=Be.getUint32(x+4)):e=Be.getBigUint64(x);x+=8;break;case 31:switch(t){case 2:case 3:throw new Error(&quot;Indefinite length not supported for byte or text strings&quot;);case 4:let n=[],r,i=0;for(;(r=te())!=ur;){if(i&gt;=di)throw new Error(`Array length exceeds ${di}`);n[i++]=r}return t==4?n:t==3?n.join(&quot;&quot;):Buffer.concat(n);case 5:let s;if(ee.mapsAsObjects){let l={},o=0;if(ee.keyMap)for(;(s=te())!=ur;){if(o++&gt;=$t)throw new Error(`Property count exceeds ${$t}`);l[pt(ee.decodeKey(s))]=te()}else for(;(s=te())!=ur;){if(o++&gt;=$t)throw new Error(`Property count exceeds ${$t}`);l[pt(s)]=te()}return l}else{wi&amp;&amp;(ee.mapsAsObjects=!0,wi=!1);let l=new Map;if(ee.keyMap){let o=0;for(;(s=te())!=ur;){if(o++&gt;=$t)throw new Error(`Map size exceeds ${$t}`);l.set(ee.decodeKey(s),te())}}else{let o=0;for(;(s=te())!=ur;){if(o++&gt;=$t)throw new Error(`Map size exceeds ${$t}`);l.set(s,te())}}return l}case 7:return ur;default:throw new Error(&quot;Invalid major type for indefinite length &quot;+t)}default:throw new Error(&quot;Unknown token &quot;+e)}switch(t){case 0:return e;case 1:return~e;case 2:return Rg(e);case 3:if(Yi&gt;=x)return Rl.slice(x-Al,(x+=e)-Al);if(Yi==0&amp;&amp;Gn&lt;140&amp;&amp;e&lt;32){let i=e&lt;16?Lp(e):Ng(e);if(i!=null)return i}return Tg(e);case 4:if(e&gt;=di)throw new Error(`Array length exceeds ${di}`);let n=new Array(e);for(let i=0;i&lt;e;i++)n[i]=te();return n;case 5:if(e&gt;=$t)throw new Error(`Map size exceeds ${di}`);if(ee.mapsAsObjects){let i={};if(ee.keyMap)for(let s=0;s&lt;e;s++)i[pt(ee.decodeKey(te()))]=te();else for(let s=0;s&lt;e;s++)i[pt(te())]=te();return i}else{wi&amp;&amp;(ee.mapsAsObjects=!0,wi=!1);let i=new Map;if(ee.keyMap)for(let s=0;s&lt;e;s++)i.set(ee.decodeKey(te()),te());else for(let s=0;s&lt;e;s++)i.set(te(),te());return i}case 6:if(e&gt;=Tf){let i=ke[e&amp;8191];if(i)return i.read||(i.read=Ua(i)),i.read();if(e&lt;65536){if(e==Og){let s=Er(),l=te(),o=te();Fa(l,o);let a={};if(ee.keyMap)for(let u=2;u&lt;s;u++){let c=ee.decodeKey(o[u-2]);a[pt(c)]=te()}else for(let u=2;u&lt;s;u++){let c=o[u-2];a[pt(c)]=te()}return a}else if(e==Cg){let s=Er(),l=te();for(let o=2;o&lt;s;o++)Fa(l++,te());return te()}else if(e==Tf)return zg();if(ee.getShared&amp;&amp;(nc(),i=ke[e&amp;8191],i))return i.read||(i.read=Ua(i)),i.read()}}let r=Oe[e];if(r)return r.handlesRead?r(te):r(te());{let i=te();for(let s=0;s&lt;ja.length;s++){let l=ja[s](e,i);if(l!==void 0)return l}return new ir(i,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case 31:default:let i=(Je||Un())[e];if(i!==void 0)return i;throw new Error(&quot;Unknown token &quot;+e)}default:if(isNaN(e)){let i=new Error(&quot;Unexpected end of CBOR data&quot;);throw i.incomplete=!0,i}throw new Error(&quot;Unknown CBOR token &quot;+e)}}const Af=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function Ua(e){if(!e)throw new Error(&quot;Structure is required in record definition&quot;);function t(){let n=U[x++];if(n=n&amp;31,n&gt;23)switch(n){case 24:n=U[x++];break;case 25:n=Be.getUint16(x),x+=2;break;case 26:n=Be.getUint32(x),x+=4;break;default:throw new Error(&quot;Expected array header, but got &quot;+U[x-1])}let r=this.compiledReader;for(;r;){if(r.propertyCount===n)return r(te);r=r.next}if(this.slowReads++&gt;=Pp){let s=this.length==n?this:this.slice(0,n);return r=ee.keyMap?new Function(&quot;r&quot;,&quot;return {&quot;+s.map(l=&gt;ee.decodeKey(l)).map(l=&gt;Af.test(l)?pt(l)+&quot;:r()&quot;:&quot;[&quot;+JSON.stringify(l)+&quot;]:r()&quot;).join(&quot;,&quot;)+&quot;}&quot;):new Function(&quot;r&quot;,&quot;return {&quot;+s.map(l=&gt;Af.test(l)?pt(l)+&quot;:r()&quot;:&quot;[&quot;+JSON.stringify(l)+&quot;]:r()&quot;).join(&quot;,&quot;)+&quot;}&quot;),this.compiledReader&amp;&amp;(r.next=this.compiledReader),r.propertyCount=n,this.compiledReader=r,r(te)}let i={};if(ee.keyMap)for(let s=0;s&lt;n;s++)i[pt(ee.decodeKey(this[s]))]=te();else for(let s=0;s&lt;n;s++)i[pt(this[s])]=te();return i}return e.slowReads=0,t}function pt(e){if(typeof e==&quot;string&quot;)return e===&quot;__proto__&quot;?&quot;__proto_&quot;:e;if(typeof e==&quot;number&quot;||typeof e==&quot;boolean&quot;||typeof e==&quot;bigint&quot;)return e.toString();if(e==null)return e+&quot;&quot;;throw new Error(&quot;Invalid property name type &quot;+typeof e)}let Tg=$a;function $a(e){let t;if(e&lt;16&amp;&amp;(t=Lp(e)))return t;if(e&gt;64&amp;&amp;za)return za.decode(U.subarray(x,x+=e));const n=x+e,r=[];for(t=&quot;&quot;;x&lt;n;){const i=U[x++];if(!(i&amp;128))r.push(i);else if((i&amp;224)===192){const s=U[x++]&amp;63;r.push((i&amp;31)&lt;&lt;6|s)}else if((i&amp;240)===224){const s=U[x++]&amp;63,l=U[x++]&amp;63;r.push((i&amp;31)&lt;&lt;12|s&lt;&lt;6|l)}else if((i&amp;248)===240){const s=U[x++]&amp;63,l=U[x++]&amp;63,o=U[x++]&amp;63;let a=(i&amp;7)&lt;&lt;18|s&lt;&lt;12|l&lt;&lt;6|o;a&gt;65535&amp;&amp;(a-=65536,r.push(a&gt;&gt;&gt;10&amp;1023|55296),a=56320|a&amp;1023),r.push(a)}else r.push(i);r.length&gt;=4096&amp;&amp;(t+=Ie.apply(String,r),r.length=0)}return r.length&gt;0&amp;&amp;(t+=Ie.apply(String,r)),t}let Ie=String.fromCharCode;function Ng(e){let t=x,n=new Array(e);for(let r=0;r&lt;e;r++){const i=U[x++];if((i&amp;128)&gt;0){x=t;return}n[r]=i}return Ie.apply(String,n)}function Lp(e){if(e&lt;4)if(e&lt;2){if(e===0)return&quot;&quot;;{let t=U[x++];if((t&amp;128)&gt;1){x-=1;return}return Ie(t)}}else{let t=U[x++],n=U[x++];if((t&amp;128)&gt;0||(n&amp;128)&gt;0){x-=2;return}if(e&lt;3)return Ie(t,n);let r=U[x++];if((r&amp;128)&gt;0){x-=3;return}return Ie(t,n,r)}else{let t=U[x++],n=U[x++],r=U[x++],i=U[x++];if((t&amp;128)&gt;0||(n&amp;128)&gt;0||(r&amp;128)&gt;0||(i&amp;128)&gt;0){x-=4;return}if(e&lt;6){if(e===4)return Ie(t,n,r,i);{let s=U[x++];if((s&amp;128)&gt;0){x-=5;return}return Ie(t,n,r,i,s)}}else if(e&lt;8){let s=U[x++],l=U[x++];if((s&amp;128)&gt;0||(l&amp;128)&gt;0){x-=6;return}if(e&lt;7)return Ie(t,n,r,i,s,l);let o=U[x++];if((o&amp;128)&gt;0){x-=7;return}return Ie(t,n,r,i,s,l,o)}else{let s=U[x++],l=U[x++],o=U[x++],a=U[x++];if((s&amp;128)&gt;0||(l&amp;128)&gt;0||(o&amp;128)&gt;0||(a&amp;128)&gt;0){x-=8;return}if(e&lt;10){if(e===8)return Ie(t,n,r,i,s,l,o,a);{let u=U[x++];if((u&amp;128)&gt;0){x-=9;return}return Ie(t,n,r,i,s,l,o,a,u)}}else if(e&lt;12){let u=U[x++],c=U[x++];if((u&amp;128)&gt;0||(c&amp;128)&gt;0){x-=10;return}if(e&lt;11)return Ie(t,n,r,i,s,l,o,a,u,c);let p=U[x++];if((p&amp;128)&gt;0){x-=11;return}return Ie(t,n,r,i,s,l,o,a,u,c,p)}else{let u=U[x++],c=U[x++],p=U[x++],y=U[x++];if((u&amp;128)&gt;0||(c&amp;128)&gt;0||(p&amp;128)&gt;0||(y&amp;128)&gt;0){x-=12;return}if(e&lt;14){if(e===12)return Ie(t,n,r,i,s,l,o,a,u,c,p,y);{let w=U[x++];if((w&amp;128)&gt;0){x-=13;return}return Ie(t,n,r,i,s,l,o,a,u,c,p,y,w)}}else{let w=U[x++],_=U[x++];if((w&amp;128)&gt;0||(_&amp;128)&gt;0){x-=14;return}if(e&lt;15)return Ie(t,n,r,i,s,l,o,a,u,c,p,y,w,_);let E=U[x++];if((E&amp;128)&gt;0){x-=15;return}return Ie(t,n,r,i,s,l,o,a,u,c,p,y,w,_,E)}}}}}function Rg(e){return ee.copyBuffers?Uint8Array.prototype.slice.call(U,x,x+=e):U.subarray(x,x+=e)}let Mp=new Float32Array(1),Ls=new Uint8Array(Mp.buffer,0,4);function Ag(){let e=U[x++],t=U[x++],n=(e&amp;127)&gt;&gt;2;if(n===31)return t||e&amp;3?NaN:e&amp;128?-1/0:1/0;if(n===0){let r=((e&amp;3)&lt;&lt;8|t)/16777216;return e&amp;128?-r:r}return Ls[3]=e&amp;128|(n&gt;&gt;1)+56,Ls[2]=(e&amp;7)&lt;&lt;5|t&gt;&gt;3,Ls[1]=t&lt;&lt;5,Ls[0]=0,Mp[0]}new Array(4096);class ir{constructor(t,n){this.value=t,this.tag=n}}Oe[0]=e=&gt;new Date(e);Oe[1]=e=&gt;new Date(Math.round(e*1e3));Oe[2]=e=&gt;{let t=BigInt(0);for(let n=0,r=e.byteLength;n&lt;r;n++)t=BigInt(e[n])+(t&lt;&lt;BigInt(8));return t};Oe[3]=e=&gt;BigInt(-1)-Oe[2](e);Oe[4]=e=&gt;+(e[1]+&quot;e&quot;+e[0]);Oe[5]=e=&gt;e[1]*Math.exp(e[0]*Math.log(2));const Fa=(e,t)=&gt;{e=e-57344;let n=ke[e];n&amp;&amp;n.isShared&amp;&amp;((ke.restoreStructures||(ke.restoreStructures=[]))[e]=n),ke[e]=t,t.read=Ua(t)};Oe[Eg]=e=&gt;{let t=e.length,n=e[1];Fa(e[0],n);let r={};for(let i=2;i&lt;t;i++){let s=n[i-2];r[pt(s)]=e[i]}return r};Oe[14]=e=&gt;Ae?Ae[0].slice(Ae.position0,Ae.position0+=e):new ir(e,14);Oe[15]=e=&gt;Ae?Ae[1].slice(Ae.position1,Ae.position1+=e):new ir(e,15);let Ig={Error,RegExp};Oe[27]=e=&gt;(Ig[e[0]]||Error)(e[1],e[2]);const Dp=e=&gt;{if(U[x++]!=132){let n=new Error(&quot;Packed values structure must be followed by a 4 element array&quot;);throw U.length&lt;x&amp;&amp;(n.incomplete=!0),n}let t=e();if(!t||!t.length){let n=new Error(&quot;Packed values structure must be followed by a 4 element array&quot;);throw n.incomplete=!0,n}return Je=Je?t.concat(Je.slice(t.length)):t,Je.prefixes=e(),Je.suffixes=e(),e()};Dp.handlesRead=!0;Oe[51]=Dp;Oe[Nf]=e=&gt;{if(!Je)if(ee.getShared)nc();else return new ir(e,Nf);if(typeof e==&quot;number&quot;)return Je[16+(e&gt;=0?2*e:-2*e-1)];let t=new Error(&quot;No support for non-integer packed references yet&quot;);throw e===void 0&amp;&amp;(t.incomplete=!0),t};Oe[28]=e=&gt;{ht||(ht=new Map,ht.id=0);let t=ht.id++,n=x,r=U[x],i;r&gt;&gt;5==4?i=[]:i={};let s={target:i};ht.set(t,s);let l=e();return s.used?(Object.getPrototypeOf(i)!==Object.getPrototypeOf(l)&amp;&amp;(x=n,i=l,ht.set(t,{target:i}),l=e()),Object.assign(i,l)):(s.target=l,l)};Oe[28].handlesRead=!0;Oe[29]=e=&gt;{let t=ht.get(e);return t.used=!0,t.target};Oe[258]=e=&gt;new Set(e);(Oe[259]=e=&gt;(ee.mapsAsObjects&amp;&amp;(ee.mapsAsObjects=!1,wi=!0),e())).handlesRead=!0;function cr(e,t){return typeof e==&quot;string&quot;?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function Un(){if(!Je)if(ee.getShared)nc();else throw new Error(&quot;No packed values available&quot;);return Je}const Pg=1399353956;ja.push((e,t)=&gt;{if(e&gt;=225&amp;&amp;e&lt;=255)return cr(Un().prefixes[e-224],t);if(e&gt;=28704&amp;&amp;e&lt;=32767)return cr(Un().prefixes[e-28672],t);if(e&gt;=1879052288&amp;&amp;e&lt;=2147483647)return cr(Un().prefixes[e-1879048192],t);if(e&gt;=216&amp;&amp;e&lt;=223)return cr(t,Un().suffixes[e-216]);if(e&gt;=27647&amp;&amp;e&lt;=28671)return cr(t,Un().suffixes[e-27639]);if(e&gt;=1811940352&amp;&amp;e&lt;=1879048191)return cr(t,Un().suffixes[e-1811939328]);if(e==Pg)return{packedValues:Je,structures:ke.slice(0),version:t};if(e==55799)return t});const Lg=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,If=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array&gt;&quot;u&quot;?{name:&quot;BigUint64Array&quot;}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array&gt;&quot;u&quot;?{name:&quot;BigInt64Array&quot;}:BigInt64Array,Float32Array,Float64Array],Mg=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e&lt;If.length;e++)Dg(If[e],Mg[e]);function Dg(e,t){let n=&quot;get&quot;+e.name.slice(0,-5),r;typeof e==&quot;function&quot;?r=e.BYTES_PER_ELEMENT:e=null;for(let i=0;i&lt;2;i++){if(!i&amp;&amp;r==1)continue;let s=r==2?1:r==4?2:r==8?3:0;Oe[i?t:t-4]=r==1||i==Lg?l=&gt;{if(!e)throw new Error(&quot;Could not find typed array for code &quot;+t);return!ee.copyBuffers&amp;&amp;(r===1||r===2&amp;&amp;!(l.byteOffset&amp;1)||r===4&amp;&amp;!(l.byteOffset&amp;3)||r===8&amp;&amp;!(l.byteOffset&amp;7))?new e(l.buffer,l.byteOffset,l.byteLength&gt;&gt;s):new e(Uint8Array.prototype.slice.call(l,0).buffer)}:l=&gt;{if(!e)throw new Error(&quot;Could not find typed array for code &quot;+t);let o=new DataView(l.buffer,l.byteOffset,l.byteLength),a=l.length&gt;&gt;s,u=new e(a),c=o[n];for(let p=0;p&lt;a;p++)u[p]=c.call(o,p&lt;&lt;s,i);return u}}}function zg(){let e=Er(),t=x+te();for(let r=2;r&lt;e;r++){let i=Er();x+=i}let n=x;return x=t,Ae=[$a(Er()),$a(Er())],Ae.position0=0,Ae.position1=0,Ae.postBundlePosition=x,x=n,te()}function Er(){let e=U[x++]&amp;31;if(e&gt;23)switch(e){case 24:e=U[x++];break;case 25:e=Be.getUint16(x),x+=2;break;case 26:e=Be.getUint32(x),x+=4;break}return e}function nc(){if(ee.getShared){let e=zp(()=&gt;(U=null,ee.getShared()))||{},t=e.structures||[];ee.sharedVersion=e.version,Je=ee.sharedValues=e.packedValues,ke===!0?ee.structures=ke=t:ke.splice.apply(ke,[0,t.length].concat(t))}}function zp(e){let t=Gn,n=x,r=Al,i=Yi,s=Rl,l=ht,o=Ae,a=new Uint8Array(U.slice(0,Gn)),u=ke,c=ee,p=Xi,y=e();return Gn=t,x=n,Al=r,Yi=i,Rl=s,ht=l,Ae=o,U=a,Xi=p,ke=u,ee=c,Be=new DataView(U.buffer,U.byteOffset,U.byteLength),y}function Va(){U=null,ht=null,ke=null}const rc=new Array(147);for(let e=0;e&lt;256;e++)rc[e]=+(&quot;1e&quot;+Math.floor(45.15-e*.30103));let ic=new qi({useRecords:!1});const Pi=ic.decode;ic.decodeMultiple;let Xs;try{Xs=new TextEncoder}catch{}let Ba,jp;const no=typeof globalThis==&quot;object&quot;&amp;&amp;globalThis.Buffer,ds=typeof no&lt;&quot;u&quot;,jo=ds?no.allocUnsafeSlow:Uint8Array,Pf=ds?no:Uint8Array,Lf=256,Mf=ds?4294967296:2144337920;let Uo,g,he,f=0,tn,Te=null;const jg=61440,Ug=/[\u0080-\uFFFF]/,et=Symbol(&quot;record-id&quot;);class $g extends qi{constructor(t){super(t),this.offset=0;let n,r,i,s,l;t=t||{};let o=Pf.prototype.utf8Write?function(v,j,T){return g.utf8Write(v,j,T)}:Xs&amp;&amp;Xs.encodeInto?function(v,j){return Xs.encodeInto(v,g.subarray(j)).written}:!1,a=this,u=t.structures||t.saveStructures,c=t.maxSharedStructures;if(c==null&amp;&amp;(c=u?128:0),c&gt;8190)throw new Error(&quot;Maximum maxSharedStructure is 8190&quot;);let p=t.sequential;p&amp;&amp;(c=0),this.structures||(this.structures=[]),this.saveStructures&amp;&amp;(this.saveShared=this.saveStructures);let y,w,_=t.sharedValues,E;if(_){E=Object.create(null);for(let v=0,j=_.length;v&lt;j;v++)E[_[v]]=v}let J=[],m=0,d=0;this.mapEncode=function(v,j){if(this._keyMap&amp;&amp;!this._mapped)switch(v.constructor.name){case&quot;Array&quot;:v=v.map(T=&gt;this.encodeKeys(T));break}return this.encode(v,j)},this.encode=function(v,j){if(g||(g=new jo(8192),he=new DataView(g.buffer,0,8192),f=0),tn=g.length-10,tn-f&lt;2048?(g=new jo(g.length),he=new DataView(g.buffer,0,g.length),tn=g.length-10,f=0):j===jf&amp;&amp;(f=f+7&amp;2147483640),n=f,a.useSelfDescribedHeader&amp;&amp;(he.setUint32(f,3654940416),f+=3),l=a.structuredClone?new Map:null,a.bundleStrings&amp;&amp;typeof v!=&quot;string&quot;?(Te=[],Te.size=1/0):Te=null,r=a.structures,r){if(r.uninitialized){let R=a.getShared()||{};a.structures=r=R.structures||[],a.sharedVersion=R.version;let C=a.sharedValues=R.packedValues;if(C){E={};for(let S=0,I=C.length;S&lt;I;S++)E[C[S]]=S}}let T=r.length;if(T&gt;c&amp;&amp;!p&amp;&amp;(T=c),!r.transitions){r.transitions=Object.create(null);for(let R=0;R&lt;T;R++){let C=r[R];if(!C)continue;let S,I=r.transitions;for(let P=0,B=C.length;P&lt;B;P++){I[et]===void 0&amp;&amp;(I[et]=R);let H=C[P];S=I[H],S||(S=I[H]=Object.create(null)),I=S}I[et]=R|1048576}}p||(r.nextId=T)}if(i&amp;&amp;(i=!1),s=r||[],w=E,t.pack){let T=new Map;if(T.values=[],T.encoder=a,T.maxValues=t.maxPrivatePackedValues||(E?16:1/0),T.objectMap=E||!1,T.samplingPackedValues=y,qs(v,T),T.values.length&gt;0){g[f++]=216,g[f++]=51,Lt(4);let R=T.values;h(R),Lt(0),Lt(0),w=Object.create(E||null);for(let C=0,S=R.length;C&lt;S;C++)w[R[C]]=C}}Uo=j&amp;Fo;try{if(Uo)return;if(h(v),Te&amp;&amp;zf(n,h),a.offset=f,l&amp;&amp;l.idsToInsert){f+=l.idsToInsert.length*2,f&gt;tn&amp;&amp;L(f),a.offset=f;let T=Bg(g.subarray(n,f),l.idsToInsert);return l=null,T}return j&amp;jf?(g.start=n,g.end=f,g):g.subarray(n,f)}finally{if(r){if(d&lt;10&amp;&amp;d++,r.length&gt;c&amp;&amp;(r.length=c),m&gt;1e4)r.transitions=null,d=0,m=0,J.length&gt;0&amp;&amp;(J=[]);else if(J.length&gt;0&amp;&amp;!p){for(let T=0,R=J.length;T&lt;R;T++)J[T][et]=void 0;J=[]}}if(i&amp;&amp;a.saveShared){a.structures.length&gt;c&amp;&amp;(a.structures=a.structures.slice(0,c));let T=g.subarray(n,f);return a.updateSharedData()===!1?a.encode(v):T}j&amp;Wg&amp;&amp;(f=n)}},this.findCommonStringsToPack=()=&gt;(y=new Map,E||(E=Object.create(null)),v=&gt;{let j=v&amp;&amp;v.threshold||4,T=this.pack?v.maxPrivatePackedValues||16:0;_||(_=this.sharedValues=[]);for(let[R,C]of y)C.count&gt;j&amp;&amp;(E[R]=T++,_.push(R),i=!0);for(;this.saveShared&amp;&amp;this.updateSharedData()===!1;);y=null});const h=v=&gt;{f&gt;tn&amp;&amp;(g=L(f));var j=typeof v,T;if(j===&quot;string&quot;){if(w){let I=w[v];if(I&gt;=0){I&lt;16?g[f++]=I+224:(g[f++]=198,I&amp;1?h(15-I&gt;&gt;1):h(I-16&gt;&gt;1));return}else if(y&amp;&amp;!t.pack){let P=y.get(v);P?P.count++:y.set(v,{count:1})}}let R=v.length;if(Te&amp;&amp;R&gt;=4&amp;&amp;R&lt;1024){if((Te.size+=R)&gt;jg){let P,B=(Te[0]?Te[0].length*3+Te[1].length:0)+10;f+B&gt;tn&amp;&amp;(g=L(f+B)),g[f++]=217,g[f++]=223,g[f++]=249,g[f++]=Te.position?132:130,g[f++]=26,P=f-n,f+=4,Te.position&amp;&amp;zf(n,h),Te=[&quot;&quot;,&quot;&quot;],Te.size=0,Te.position=P}let I=Ug.test(v);Te[I?0:1]+=v,g[f++]=I?206:207,h(R);return}let C;R&lt;32?C=1:R&lt;256?C=2:R&lt;65536?C=3:C=5;let S=R*3;if(f+S&gt;tn&amp;&amp;(g=L(f+S)),R&lt;64||!o){let I,P,B,H=f+C;for(I=0;I&lt;R;I++)P=v.charCodeAt(I),P&lt;128?g[H++]=P:P&lt;2048?(g[H++]=P&gt;&gt;6|192,g[H++]=P&amp;63|128):(P&amp;64512)===55296&amp;&amp;((B=v.charCodeAt(I+1))&amp;64512)===56320?(P=65536+((P&amp;1023)&lt;&lt;10)+(B&amp;1023),I++,g[H++]=P&gt;&gt;18|240,g[H++]=P&gt;&gt;12&amp;63|128,g[H++]=P&gt;&gt;6&amp;63|128,g[H++]=P&amp;63|128):(g[H++]=P&gt;&gt;12|224,g[H++]=P&gt;&gt;6&amp;63|128,g[H++]=P&amp;63|128);T=H-f-C}else T=o(v,f+C,S);T&lt;24?g[f++]=96|T:T&lt;256?(C&lt;2&amp;&amp;g.copyWithin(f+2,f+1,f+1+T),g[f++]=120,g[f++]=T):T&lt;65536?(C&lt;3&amp;&amp;g.copyWithin(f+3,f+2,f+2+T),g[f++]=121,g[f++]=T&gt;&gt;8,g[f++]=T&amp;255):(C&lt;5&amp;&amp;g.copyWithin(f+5,f+3,f+3+T),g[f++]=122,he.setUint32(f,T),f+=4),f+=T}else if(j===&quot;number&quot;)if(!this.alwaysUseFloat&amp;&amp;v&gt;&gt;&gt;0===v)v&lt;24?g[f++]=v:v&lt;256?(g[f++]=24,g[f++]=v):v&lt;65536?(g[f++]=25,g[f++]=v&gt;&gt;8,g[f++]=v&amp;255):(g[f++]=26,he.setUint32(f,v),f+=4);else if(!this.alwaysUseFloat&amp;&amp;v&gt;&gt;0===v)v&gt;=-24?g[f++]=31-v:v&gt;=-256?(g[f++]=56,g[f++]=~v):v&gt;=-65536?(g[f++]=57,he.setUint16(f,~v),f+=2):(g[f++]=58,he.setUint32(f,~v),f+=4);else{let R;if((R=this.useFloat32)&gt;0&amp;&amp;v&lt;4294967296&amp;&amp;v&gt;=-2147483648){g[f++]=250,he.setFloat32(f,v);let C;if(R&lt;4||(C=v*rc[(g[f]&amp;127)&lt;&lt;1|g[f+1]&gt;&gt;7])&gt;&gt;0===C){f+=4;return}else f--}g[f++]=251,he.setFloat64(f,v),f+=8}else if(j===&quot;object&quot;)if(!v)g[f++]=246;else{if(l){let C=l.get(v);if(C){if(g[f++]=216,g[f++]=29,g[f++]=25,!C.references){let S=l.idsToInsert||(l.idsToInsert=[]);C.references=[],S.push(C)}C.references.push(f-n),f+=2;return}else l.set(v,{offset:f-n})}let R=v.constructor;if(R===Object)O(v);else if(R===Array){T=v.length,T&lt;24?g[f++]=128|T:Lt(T);for(let C=0;C&lt;T;C++)h(v[C])}else if(R===Map)if((this.mapsAsObjects?this.useTag259ForMaps!==!1:this.useTag259ForMaps)&amp;&amp;(g[f++]=217,g[f++]=1,g[f++]=3),T=v.size,T&lt;24?g[f++]=160|T:T&lt;256?(g[f++]=184,g[f++]=T):T&lt;65536?(g[f++]=185,g[f++]=T&gt;&gt;8,g[f++]=T&amp;255):(g[f++]=186,he.setUint32(f,T),f+=4),a.keyMap)for(let[C,S]of v)h(a.encodeKey(C)),h(S);else for(let[C,S]of v)h(C),h(S);else{for(let C=0,S=Ba.length;C&lt;S;C++){let I=jp[C];if(v instanceof I){let P=Ba[C],B=P.tag;B==null&amp;&amp;(B=P.getTag&amp;&amp;P.getTag.call(this,v)),B&lt;24?g[f++]=192|B:B&lt;256?(g[f++]=216,g[f++]=B):B&lt;65536?(g[f++]=217,g[f++]=B&gt;&gt;8,g[f++]=B&amp;255):B&gt;-1&amp;&amp;(g[f++]=218,he.setUint32(f,B),f+=4),P.encode.call(this,v,h,L);return}}if(v[Symbol.iterator]){if(Uo){let C=new Error(&quot;Iterable should be serialized as iterator&quot;);throw C.iteratorNotHandled=!0,C}g[f++]=159;for(let C of v)h(C);g[f++]=255;return}if(v[Symbol.asyncIterator]||$o(v)){let C=new Error(&quot;Iterable/blob should be serialized as iterator&quot;);throw C.iteratorNotHandled=!0,C}if(this.useToJSON&amp;&amp;v.toJSON){const C=v.toJSON();if(C!==v)return h(C)}O(v)}}else if(j===&quot;boolean&quot;)g[f++]=v?245:244;else if(j===&quot;bigint&quot;){if(v&lt;BigInt(1)&lt;&lt;BigInt(64)&amp;&amp;v&gt;=0)g[f++]=27,he.setBigUint64(f,v);else if(v&gt;-(BigInt(1)&lt;&lt;BigInt(64))&amp;&amp;v&lt;0)g[f++]=59,he.setBigUint64(f,-v-BigInt(1));else if(this.largeBigIntToFloat)g[f++]=251,he.setFloat64(f,Number(v));else{v&gt;=BigInt(0)?g[f++]=194:(g[f++]=195,v=BigInt(-1)-v);let R=[];for(;v;)R.push(Number(v&amp;BigInt(255))),v&gt;&gt;=BigInt(8);Wa(new Uint8Array(R.reverse()),L);return}f+=8}else if(j===&quot;undefined&quot;)g[f++]=247;else throw new Error(&quot;Unknown type: &quot;+j)},O=this.useRecords===!1?this.variableMapSize?v=&gt;{let j=Object.keys(v),T=Object.values(v),R=j.length;if(R&lt;24?g[f++]=160|R:R&lt;256?(g[f++]=184,g[f++]=R):R&lt;65536?(g[f++]=185,g[f++]=R&gt;&gt;8,g[f++]=R&amp;255):(g[f++]=186,he.setUint32(f,R),f+=4),a.keyMap)for(let C=0;C&lt;R;C++)h(a.encodeKey(j[C])),h(T[C]);else for(let C=0;C&lt;R;C++)h(j[C]),h(T[C])}:v=&gt;{g[f++]=185;let j=f-n;f+=2;let T=0;if(a.keyMap)for(let R in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(R))&amp;&amp;(h(a.encodeKey(R)),h(v[R]),T++);else for(let R in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(R))&amp;&amp;(h(R),h(v[R]),T++);g[j+++n]=T&gt;&gt;8,g[j+n]=T&amp;255}:(v,j)=&gt;{let T,R=s.transitions||(s.transitions=Object.create(null)),C=0,S=0,I,P;if(this.keyMap){P=Object.keys(v).map(H=&gt;this.encodeKey(H)),S=P.length;for(let H=0;H&lt;S;H++){let Pn=P[H];T=R[Pn],T||(T=R[Pn]=Object.create(null),C++),R=T}}else for(let H in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(H))&amp;&amp;(T=R[H],T||(R[et]&amp;1048576&amp;&amp;(I=R[et]&amp;65535),T=R[H]=Object.create(null),C++),R=T,S++);let B=R[et];if(B!==void 0)B&amp;=65535,g[f++]=217,g[f++]=B&gt;&gt;8|224,g[f++]=B&amp;255;else if(P||(P=R.__keys__||(R.__keys__=Object.keys(v))),I===void 0?(B=s.nextId++,B||(B=0,s.nextId=1),B&gt;=Lf&amp;&amp;(s.nextId=(B=c)+1)):B=I,s[B]=P,B&lt;c){g[f++]=217,g[f++]=B&gt;&gt;8|224,g[f++]=B&amp;255,R=s.transitions;for(let H=0;H&lt;S;H++)(R[et]===void 0||R[et]&amp;1048576)&amp;&amp;(R[et]=B),R=R[P[H]];R[et]=B|1048576,i=!0}else{if(R[et]=B,he.setUint32(f,3655335680),f+=3,C&amp;&amp;(m+=d*C),J.length&gt;=Lf-c&amp;&amp;(J.shift()[et]=void 0),J.push(R),Lt(S+2),h(57344+B),h(P),j)return;for(let H in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(H))&amp;&amp;h(v[H]);return}if(S&lt;24?g[f++]=128|S:Lt(S),!j)for(let H in v)(typeof v.hasOwnProperty!=&quot;function&quot;||v.hasOwnProperty(H))&amp;&amp;h(v[H])},L=v=&gt;{let j;if(v&gt;16777216){if(v-n&gt;Mf)throw new Error(&quot;Encoded buffer would be larger than maximum buffer size&quot;);j=Math.min(Mf,Math.round(Math.max((v-n)*(v&gt;67108864?1.25:2),4194304)/4096)*4096)}else j=(Math.max(v-n&lt;&lt;2,g.length-1)&gt;&gt;12)+1&lt;&lt;12;let T=new jo(j);return he=new DataView(T.buffer,0,j),g.copy?g.copy(T,0,n,v):T.set(g.slice(n,v)),f-=n,n=0,tn=T.length-10,g=T};let z=100,F=1e3;this.encodeAsIterable=function(v,j){return Ke(v,j,V)},this.encodeAsAsyncIterable=function(v,j){return Ke(v,j,qt)};function*V(v,j,T){let R=v.constructor;if(R===Object){let C=a.useRecords!==!1;C?O(v,!0):Df(Object.keys(v).length,160);for(let S in v){let I=v[S];C||h(S),I&amp;&amp;typeof I==&quot;object&quot;?j[S]?yield*V(I,j[S]):yield*ce(I,j,S):h(I)}}else if(R===Array){let C=v.length;Lt(C);for(let S=0;S&lt;C;S++){let I=v[S];I&amp;&amp;(typeof I==&quot;object&quot;||f-n&gt;z)?j.element?yield*V(I,j.element):yield*ce(I,j,&quot;element&quot;):h(I)}}else if(v[Symbol.iterator]&amp;&amp;!v.buffer){g[f++]=159;for(let C of v)C&amp;&amp;(typeof C==&quot;object&quot;||f-n&gt;z)?j.element?yield*V(C,j.element):yield*ce(C,j,&quot;element&quot;):h(C);g[f++]=255}else $o(v)?(Df(v.size,64),yield g.subarray(n,f),yield v,G()):v[Symbol.asyncIterator]?(g[f++]=159,yield g.subarray(n,f),yield v,G(),g[f++]=255):h(v);T&amp;&amp;f&gt;n?yield g.subarray(n,f):f-n&gt;z&amp;&amp;(yield g.subarray(n,f),G())}function*ce(v,j,T){let R=f-n;try{h(v),f-n&gt;z&amp;&amp;(yield g.subarray(n,f),G())}catch(C){if(C.iteratorNotHandled)j[T]={},f=n+R,yield*V.call(this,v,j[T]);else throw C}}function G(){z=F,a.encode(null,Fo)}function Ke(v,j,T){return j&amp;&amp;j.chunkThreshold?z=F=j.chunkThreshold:z=100,v&amp;&amp;typeof v==&quot;object&quot;?(a.encode(null,Fo),T(v,a.iterateProperties||(a.iterateProperties={}),!0)):[a.encode(v)]}async function*qt(v,j){for(let T of V(v,j,!0)){let R=T.constructor;if(R===Pf||R===Uint8Array)yield T;else if($o(T)){let C=T.stream().getReader(),S;for(;!(S=await C.read()).done;)yield S.value}else if(T[Symbol.asyncIterator])for await(let C of T)G(),C?yield*qt(C,j.async||(j.async={})):yield a.encode(C);else yield T}}}useBuffer(t){g=t,he=new DataView(g.buffer,g.byteOffset,g.byteLength),f=0}clearSharedData(){this.structures&amp;&amp;(this.structures=[]),this.sharedValues&amp;&amp;(this.sharedValues=void 0)}updateSharedData(){let t=this.sharedVersion||0;this.sharedVersion=t+1;let n=this.structures.slice(0),r=new Up(n,this.sharedValues,this.sharedVersion),i=this.saveShared(r,s=&gt;(s&amp;&amp;s.version||0)==t);return i===!1?(r=this.getShared()||{},this.structures=r.structures||[],this.sharedValues=r.packedValues,this.sharedVersion=r.version,this.structures.nextId=this.structures.length):n.forEach((s,l)=&gt;this.structures[l]=s),i}}function Df(e,t){e&lt;24?g[f++]=t|e:e&lt;256?(g[f++]=t|24,g[f++]=e):e&lt;65536?(g[f++]=t|25,g[f++]=e&gt;&gt;8,g[f++]=e&amp;255):(g[f++]=t|26,he.setUint32(f,e),f+=4)}class Up{constructor(t,n,r){this.structures=t,this.packedValues=n,this.version=r}}function Lt(e){e&lt;24?g[f++]=128|e:e&lt;256?(g[f++]=152,g[f++]=e):e&lt;65536?(g[f++]=153,g[f++]=e&gt;&gt;8,g[f++]=e&amp;255):(g[f++]=154,he.setUint32(f,e),f+=4)}const Fg=typeof Blob&gt;&quot;u&quot;?function(){}:Blob;function $o(e){if(e instanceof Fg)return!0;let t=e[Symbol.toStringTag];return t===&quot;Blob&quot;||t===&quot;File&quot;}function qs(e,t){switch(typeof e){case&quot;string&quot;:if(e.length&gt;3){if(t.objectMap[e]&gt;-1||t.values.length&gt;=t.maxValues)return;let r=t.get(e);if(r)++r.count==2&amp;&amp;t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let i=t.samplingPackedValues.get(e);i?i.count++:t.samplingPackedValues.set(e,{count:1})}}break;case&quot;object&quot;:if(e)if(e instanceof Array)for(let r=0,i=e.length;r&lt;i;r++)qs(e[r],t);else{let r=!t.encoder.useRecords;for(var n in e)e.hasOwnProperty(n)&amp;&amp;(r&amp;&amp;qs(n,t),qs(e[n],t))}break;case&quot;function&quot;:console.log(e)}}const Vg=new Uint8Array(new Uint16Array([1]).buffer)[0]==1;jp=[Date,Set,Error,RegExp,ir,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array&gt;&quot;u&quot;?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array&gt;&quot;u&quot;?function(){}:BigInt64Array,Float32Array,Float64Array,Up];Ba=[{tag:1,encode(e,t){let n=e.getTime()/1e3;(this.useTimestamp32||e.getMilliseconds()===0)&amp;&amp;n&gt;=0&amp;&amp;n&lt;4294967296?(g[f++]=26,he.setUint32(f,n),f+=4):(g[f++]=251,he.setFloat64(f,n),f+=8)}},{tag:258,encode(e,t){let n=Array.from(e);t(n)}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t([&quot;RegExp&quot;,e.source,e.flags])}},{getTag(e){return e.tag},encode(e,t){t(e.value)}},{encode(e,t,n){Wa(e,n)}},{getTag(e){if(e.constructor===Uint8Array&amp;&amp;(this.tagUint8Array||ds&amp;&amp;this.tagUint8Array!==!1))return 64},encode(e,t,n){Wa(e,n)}},It(68,1),It(69,2),It(70,4),It(71,8),It(72,1),It(77,2),It(78,4),It(79,8),It(85,4),It(86,8),{encode(e,t){let n=e.packedValues||[],r=e.structures||[];if(n.values.length&gt;0){g[f++]=216,g[f++]=51,Lt(4);let i=n.values;t(i),Lt(0),Lt(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let s=0,l=i.length;s&lt;l;s++)packedObjectMap[i[s]]=s}if(r){he.setUint32(f,3655335424),f+=3;let i=r.slice(0);i.unshift(57344),i.push(new ir(e.version,1399353956)),t(i)}else t(new ir(e.version,1399353956))}}];function It(e,t){return!Vg&amp;&amp;t&gt;1&amp;&amp;(e-=4),{tag:e,encode:function(r,i){let s=r.byteLength,l=r.byteOffset||0,o=r.buffer||r;i(ds?no.from(o,l,s):new Uint8Array(o,l,s))}}}function Wa(e,t){let n=e.byteLength;n&lt;24?g[f++]=64+n:n&lt;256?(g[f++]=88,g[f++]=n):n&lt;65536?(g[f++]=89,g[f++]=n&gt;&gt;8,g[f++]=n&amp;255):(g[f++]=90,he.setUint32(f,n),f+=4),f+n&gt;=g.length&amp;&amp;t(f+n),g.set(e.buffer?e:new Uint8Array(e),f),f+=n}function Bg(e,t){let n,r=t.length*2,i=e.length-r;t.sort((s,l)=&gt;s.offset&gt;l.offset?1:-1);for(let s=0;s&lt;t.length;s++){let l=t[s];l.id=s;for(let o of l.references)e[o++]=s&gt;&gt;8,e[o]=s&amp;255}for(;n=t.pop();){let s=n.offset;e.copyWithin(s+r,s,i),r-=2;let l=s+r;e[l++]=216,e[l++]=28,i=s}return e}function zf(e,t){he.setUint32(Te.position+e,f-Te.position-e+1);let n=Te;Te=null,t(n[0]),t(n[1])}let sc=new $g({useRecords:!1});const $p=sc.encode;sc.encodeAsIterable;sc.encodeAsAsyncIterable;const jf=512,Wg=1024,Fo=2048;var se;(function(e){e.assertEqual=i=&gt;{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=&gt;{const s={};for(const l of i)s[l]=l;return s},e.getValidEnumValues=i=&gt;{const s=e.objectKeys(i).filter(o=&gt;typeof i[i[o]]!=&quot;number&quot;),l={};for(const o of s)l[o]=i[o];return e.objectValues(l)},e.objectValues=i=&gt;e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys==&quot;function&quot;?i=&gt;Object.keys(i):i=&gt;{const s=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&amp;&amp;s.push(l);return s},e.find=(i,s)=&gt;{for(const l of i)if(s(l))return l},e.isInteger=typeof Number.isInteger==&quot;function&quot;?i=&gt;Number.isInteger(i):i=&gt;typeof i==&quot;number&quot;&amp;&amp;Number.isFinite(i)&amp;&amp;Math.floor(i)===i;function r(i,s=&quot; | &quot;){return i.map(l=&gt;typeof l==&quot;string&quot;?`&#39;${l}&#39;`:l).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(i,s)=&gt;typeof s==&quot;bigint&quot;?s.toString():s})(se||(se={}));var Uf;(function(e){e.mergeShapes=(t,n)=&gt;({...t,...n})})(Uf||(Uf={}));const $=se.arrayToEnum([&quot;string&quot;,&quot;nan&quot;,&quot;number&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;boolean&quot;,&quot;date&quot;,&quot;bigint&quot;,&quot;symbol&quot;,&quot;function&quot;,&quot;undefined&quot;,&quot;null&quot;,&quot;array&quot;,&quot;object&quot;,&quot;unknown&quot;,&quot;promise&quot;,&quot;void&quot;,&quot;never&quot;,&quot;map&quot;,&quot;set&quot;]),sn=e=&gt;{switch(typeof e){case&quot;undefined&quot;:return $.undefined;case&quot;string&quot;:return $.string;case&quot;number&quot;:return Number.isNaN(e)?$.nan:$.number;case&quot;boolean&quot;:return $.boolean;case&quot;function&quot;:return $.function;case&quot;bigint&quot;:return $.bigint;case&quot;symbol&quot;:return $.symbol;case&quot;object&quot;:return Array.isArray(e)?$.array:e===null?$.null:e.then&amp;&amp;typeof e.then==&quot;function&quot;&amp;&amp;e.catch&amp;&amp;typeof e.catch==&quot;function&quot;?$.promise:typeof Map&lt;&quot;u&quot;&amp;&amp;e instanceof Map?$.map:typeof Set&lt;&quot;u&quot;&amp;&amp;e instanceof Set?$.set:typeof Date&lt;&quot;u&quot;&amp;&amp;e instanceof Date?$.date:$.object;default:return $.unknown}},A=se.arrayToEnum([&quot;invalid_type&quot;,&quot;invalid_literal&quot;,&quot;custom&quot;,&quot;invalid_union&quot;,&quot;invalid_union_discriminator&quot;,&quot;invalid_enum_value&quot;,&quot;unrecognized_keys&quot;,&quot;invalid_arguments&quot;,&quot;invalid_return_type&quot;,&quot;invalid_date&quot;,&quot;invalid_string&quot;,&quot;too_small&quot;,&quot;too_big&quot;,&quot;invalid_intersection_types&quot;,&quot;not_multiple_of&quot;,&quot;not_finite&quot;]);class Yt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=&gt;{this.issues=[...this.issues,r]},this.addIssues=(r=[])=&gt;{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name=&quot;ZodError&quot;,this.issues=t}format(t){const n=t||function(s){return s.message},r={_errors:[]},i=s=&gt;{for(const l of s.issues)if(l.code===&quot;invalid_union&quot;)l.unionErrors.map(i);else if(l.code===&quot;invalid_return_type&quot;)i(l.returnTypeError);else if(l.code===&quot;invalid_arguments&quot;)i(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let o=r,a=0;for(;a&lt;l.path.length;){const u=l.path[a];a===l.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(l))):o[u]=o[u]||{_errors:[]},o=o[u],a++}}};return i(this),r}static assert(t){if(!(t instanceof Yt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,se.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=&gt;n.message){const n={},r=[];for(const i of this.issues)if(i.path.length&gt;0){const s=i.path[0];n[s]=n[s]||[],n[s].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Yt.create=e=&gt;new Yt(e);const Ha=(e,t)=&gt;{let n;switch(e.code){case A.invalid_type:e.received===$.undefined?n=&quot;Required&quot;:n=`Expected ${e.expected}, received ${e.received}`;break;case A.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,se.jsonStringifyReplacer)}`;break;case A.unrecognized_keys:n=`Unrecognized key(s) in object: ${se.joinValues(e.keys,&quot;, &quot;)}`;break;case A.invalid_union:n=&quot;Invalid input&quot;;break;case A.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${se.joinValues(e.options)}`;break;case A.invalid_enum_value:n=`Invalid enum value. Expected ${se.joinValues(e.options)}, received &#39;${e.received}&#39;`;break;case A.invalid_arguments:n=&quot;Invalid function arguments&quot;;break;case A.invalid_return_type:n=&quot;Invalid function return type&quot;;break;case A.invalid_date:n=&quot;Invalid date&quot;;break;case A.invalid_string:typeof e.validation==&quot;object&quot;?&quot;includes&quot;in e.validation?(n=`Invalid input: must include &quot;${e.validation.includes}&quot;`,typeof e.validation.position==&quot;number&quot;&amp;&amp;(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):&quot;startsWith&quot;in e.validation?n=`Invalid input: must start with &quot;${e.validation.startsWith}&quot;`:&quot;endsWith&quot;in e.validation?n=`Invalid input: must end with &quot;${e.validation.endsWith}&quot;`:se.assertNever(e.validation):e.validation!==&quot;regex&quot;?n=`Invalid ${e.validation}`:n=&quot;Invalid&quot;;break;case A.too_small:e.type===&quot;array&quot;?n=`Array must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at least&quot;:&quot;more than&quot;} ${e.minimum} element(s)`:e.type===&quot;string&quot;?n=`String must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at least&quot;:&quot;over&quot;} ${e.minimum} character(s)`:e.type===&quot;number&quot;?n=`Number must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${e.minimum}`:e.type===&quot;bigint&quot;?n=`Number must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${e.minimum}`:e.type===&quot;date&quot;?n=`Date must be ${e.exact?&quot;exactly equal to &quot;:e.inclusive?&quot;greater than or equal to &quot;:&quot;greater than &quot;}${new Date(Number(e.minimum))}`:n=&quot;Invalid input&quot;;break;case A.too_big:e.type===&quot;array&quot;?n=`Array must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at most&quot;:&quot;less than&quot;} ${e.maximum} element(s)`:e.type===&quot;string&quot;?n=`String must contain ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;at most&quot;:&quot;under&quot;} ${e.maximum} character(s)`:e.type===&quot;number&quot;?n=`Number must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;less than or equal to&quot;:&quot;less than&quot;} ${e.maximum}`:e.type===&quot;bigint&quot;?n=`BigInt must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;less than or equal to&quot;:&quot;less than&quot;} ${e.maximum}`:e.type===&quot;date&quot;?n=`Date must be ${e.exact?&quot;exactly&quot;:e.inclusive?&quot;smaller than or equal to&quot;:&quot;smaller than&quot;} ${new Date(Number(e.maximum))}`:n=&quot;Invalid input&quot;;break;case A.custom:n=&quot;Invalid input&quot;;break;case A.invalid_intersection_types:n=&quot;Intersection results could not be merged&quot;;break;case A.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case A.not_finite:n=&quot;Number must be finite&quot;;break;default:n=t.defaultError,se.assertNever(e)}return{message:n}};let Hg=Ha;function Zg(){return Hg}const Qg=e=&gt;{const{data:t,path:n,errorMaps:r,issueData:i}=e,s=[...n,...i.path||[]],l={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o=&quot;&quot;;const a=r.filter(u=&gt;!!u).slice().reverse();for(const u of a)o=u(l,{data:t,defaultError:o}).message;return{...i,path:s,message:o}};function M(e,t){const n=Zg(),r=Qg({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ha?void 0:Ha].filter(i=&gt;!!i)});e.common.issues.push(r)}class ot{constructor(){this.value=&quot;valid&quot;}dirty(){this.value===&quot;valid&quot;&amp;&amp;(this.value=&quot;dirty&quot;)}abort(){this.value!==&quot;aborted&quot;&amp;&amp;(this.value=&quot;aborted&quot;)}static mergeArray(t,n){const r=[];for(const i of n){if(i.status===&quot;aborted&quot;)return Q;i.status===&quot;dirty&quot;&amp;&amp;t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const s=await i.key,l=await i.value;r.push({key:s,value:l})}return ot.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:s,value:l}=i;if(s.status===&quot;aborted&quot;||l.status===&quot;aborted&quot;)return Q;s.status===&quot;dirty&quot;&amp;&amp;t.dirty(),l.status===&quot;dirty&quot;&amp;&amp;t.dirty(),s.value!==&quot;__proto__&quot;&amp;&amp;(typeof l.value&lt;&quot;u&quot;||i.alwaysSet)&amp;&amp;(r[s.value]=l.value)}return{status:t.value,value:r}}}const Q=Object.freeze({status:&quot;aborted&quot;}),_i=e=&gt;({status:&quot;dirty&quot;,value:e}),_t=e=&gt;({status:&quot;valid&quot;,value:e}),$f=e=&gt;e.status===&quot;aborted&quot;,Ff=e=&gt;e.status===&quot;dirty&quot;,Jr=e=&gt;e.status===&quot;valid&quot;,Il=e=&gt;typeof Promise&lt;&quot;u&quot;&amp;&amp;e instanceof Promise;var W;(function(e){e.errToObj=t=&gt;typeof t==&quot;string&quot;?{message:t}:t||{},e.toString=t=&gt;typeof t==&quot;string&quot;?t:t==null?void 0:t.message})(W||(W={}));class Tn{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Vf=(e,t)=&gt;{if(Jr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error(&quot;Validation failed but no issues detected.&quot;);return{success:!1,get error(){if(this._error)return this._error;const n=new Yt(e.common.issues);return this._error=n,this._error}}};function X(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&amp;&amp;(n||r))throw new Error(`Can&#39;t use &quot;invalid_type_error&quot; or &quot;required_error&quot; in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(l,o)=&gt;{const{message:a}=e;return l.code===&quot;invalid_enum_value&quot;?{message:a??o.defaultError}:typeof o.data&gt;&quot;u&quot;?{message:a??r??o.defaultError}:l.code!==&quot;invalid_type&quot;?{message:o.defaultError}:{message:a??n??o.defaultError}},description:i}}class ie{get description(){return this._def.description}_getType(t){return sn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:sn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ot,ctx:{common:t.parent.common,data:t.data,parsedType:sn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Il(n))throw new Error(&quot;Synchronous parse encountered promise.&quot;);return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:sn(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Vf(r,i)}&quot;~validate&quot;(t){var r,i;const n={common:{issues:[],async:!!this[&quot;~standard&quot;].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:sn(t)};if(!this[&quot;~standard&quot;].async)try{const s=this._parseSync({data:t,path:[],parent:n});return Jr(s)?{value:s.value}:{issues:n.common.issues}}catch(s){(i=(r=s==null?void 0:s.message)==null?void 0:r.toLowerCase())!=null&amp;&amp;i.includes(&quot;encountered&quot;)&amp;&amp;(this[&quot;~standard&quot;].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=&gt;Jr(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:sn(t)},i=this._parse({data:t,path:r.path,parent:r}),s=await(Il(i)?i:Promise.resolve(i));return Vf(r,s)}refine(t,n){const r=i=&gt;typeof n==&quot;string&quot;||typeof n&gt;&quot;u&quot;?{message:n}:typeof n==&quot;function&quot;?n(i):n;return this._refinement((i,s)=&gt;{const l=t(i),o=()=&gt;s.addIssue({code:A.custom,...r(i)});return typeof Promise&lt;&quot;u&quot;&amp;&amp;l instanceof Promise?l.then(a=&gt;a?!0:(o(),!1)):l?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,i)=&gt;t(r)?!0:(i.addIssue(typeof n==&quot;function&quot;?n(r,i):n),!1))}_refinement(t){return new Xr({schema:this,typeName:K.ZodEffects,effect:{type:&quot;refinement&quot;,refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[&quot;~standard&quot;]={version:1,vendor:&quot;zod&quot;,validate:n=&gt;this[&quot;~validate&quot;](n)}}optional(){return En.create(this,this._def)}nullable(){return qr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ut.create(this)}promise(){return Dl.create(this,this._def)}or(t){return Ll.create([this,t],this._def)}and(t){return Ml.create(this,t,this._def)}transform(t){return new Xr({...X(this._def),schema:this,typeName:K.ZodEffects,effect:{type:&quot;transform&quot;,transform:t}})}default(t){const n=typeof t==&quot;function&quot;?t:()=&gt;t;return new ba({...X(this._def),innerType:this,defaultValue:n,typeName:K.ZodDefault})}brand(){return new m0({typeName:K.ZodBranded,type:this,...X(this._def)})}catch(t){const n=typeof t==&quot;function&quot;?t:()=&gt;t;return new Ja({...X(this._def),innerType:this,catchValue:n,typeName:K.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return lc.create(this,t)}readonly(){return Ga.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Kg=/^c[^\s-]{8,}$/i,bg=/^[0-9a-z]+$/,Jg=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Gg=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Yg=/^[a-z0-9_-]{21}$/i,Xg=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qg=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,e0=/^(?!\.)(?!.*\.\.)([A-Z0-9_&#39;+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,t0=&quot;^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$&quot;;let Vo;const n0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,r0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,i0=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,s0=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,l0=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,o0=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Fp=&quot;((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))&quot;,a0=new RegExp(`^${Fp}$`);function Vp(e){let t=&quot;[0-5]\\d&quot;;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&amp;&amp;(t=`${t}(\\.\\d+)?`);const n=e.precision?&quot;+&quot;:&quot;?&quot;;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function u0(e){return new RegExp(`^${Vp(e)}$`)}function c0(e){let t=`${Fp}T${Vp(e)}`;const n=[];return n.push(e.local?&quot;Z?&quot;:&quot;Z&quot;),e.offset&amp;&amp;n.push(&quot;([+-]\\d{2}:?\\d{2})&quot;),t=`${t}(${n.join(&quot;|&quot;)})`,new RegExp(`^${t}$`)}function f0(e,t){return!!((t===&quot;v4&quot;||!t)&amp;&amp;n0.test(e)||(t===&quot;v6&quot;||!t)&amp;&amp;i0.test(e))}function d0(e,t){if(!Xg.test(e))return!1;try{const[n]=e.split(&quot;.&quot;);if(!n)return!1;const r=n.replace(/-/g,&quot;+&quot;).replace(/_/g,&quot;/&quot;).padEnd(n.length+(4-n.length%4)%4,&quot;=&quot;),i=JSON.parse(atob(r));return!(typeof i!=&quot;object&quot;||i===null||&quot;typ&quot;in i&amp;&amp;(i==null?void 0:i.typ)!==&quot;JWT&quot;||!i.alg||t&amp;&amp;i.alg!==t)}catch{return!1}}function h0(e,t){return!!((t===&quot;v4&quot;||!t)&amp;&amp;r0.test(e)||(t===&quot;v6&quot;||!t)&amp;&amp;s0.test(e))}class pn extends ie{_parse(t){if(this._def.coerce&amp;&amp;(t.data=String(t.data)),this._getType(t)!==$.string){const s=this._getOrReturnCtx(t);return M(s,{code:A.invalid_type,expected:$.string,received:s.parsedType}),Q}const r=new ot;let i;for(const s of this._def.checks)if(s.kind===&quot;min&quot;)t.data.length&lt;s.value&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_small,minimum:s.value,type:&quot;string&quot;,inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind===&quot;max&quot;)t.data.length&gt;s.value&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_big,maximum:s.value,type:&quot;string&quot;,inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind===&quot;length&quot;){const l=t.data.length&gt;s.value,o=t.data.length&lt;s.value;(l||o)&amp;&amp;(i=this._getOrReturnCtx(t,i),l?M(i,{code:A.too_big,maximum:s.value,type:&quot;string&quot;,inclusive:!0,exact:!0,message:s.message}):o&amp;&amp;M(i,{code:A.too_small,minimum:s.value,type:&quot;string&quot;,inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind===&quot;email&quot;)e0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;email&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;emoji&quot;)Vo||(Vo=new RegExp(t0,&quot;u&quot;)),Vo.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;emoji&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;uuid&quot;)Gg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;uuid&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;nanoid&quot;)Yg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;nanoid&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;cuid&quot;)Kg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;cuid&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;cuid2&quot;)bg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;cuid2&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;ulid&quot;)Jg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;ulid&quot;,code:A.invalid_string,message:s.message}),r.dirty());else if(s.kind===&quot;url&quot;)try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;url&quot;,code:A.invalid_string,message:s.message}),r.dirty()}else s.kind===&quot;regex&quot;?(s.regex.lastIndex=0,s.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;regex&quot;,code:A.invalid_string,message:s.message}),r.dirty())):s.kind===&quot;trim&quot;?t.data=t.data.trim():s.kind===&quot;includes&quot;?t.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind===&quot;toLowerCase&quot;?t.data=t.data.toLowerCase():s.kind===&quot;toUpperCase&quot;?t.data=t.data.toUpperCase():s.kind===&quot;startsWith&quot;?t.data.startsWith(s.value)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind===&quot;endsWith&quot;?t.data.endsWith(s.value)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind===&quot;datetime&quot;?c0(s).test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:&quot;datetime&quot;,message:s.message}),r.dirty()):s.kind===&quot;date&quot;?a0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:&quot;date&quot;,message:s.message}),r.dirty()):s.kind===&quot;time&quot;?u0(s).test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_string,validation:&quot;time&quot;,message:s.message}),r.dirty()):s.kind===&quot;duration&quot;?qg.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;duration&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;ip&quot;?f0(t.data,s.version)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;ip&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;jwt&quot;?d0(t.data,s.alg)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;jwt&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;cidr&quot;?h0(t.data,s.version)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;cidr&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;base64&quot;?l0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;base64&quot;,code:A.invalid_string,message:s.message}),r.dirty()):s.kind===&quot;base64url&quot;?o0.test(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{validation:&quot;base64url&quot;,code:A.invalid_string,message:s.message}),r.dirty()):se.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=&gt;t.test(i),{validation:n,code:A.invalid_string,...W.errToObj(r)})}_addCheck(t){return new pn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:&quot;email&quot;,...W.errToObj(t)})}url(t){return this._addCheck({kind:&quot;url&quot;,...W.errToObj(t)})}emoji(t){return this._addCheck({kind:&quot;emoji&quot;,...W.errToObj(t)})}uuid(t){return this._addCheck({kind:&quot;uuid&quot;,...W.errToObj(t)})}nanoid(t){return this._addCheck({kind:&quot;nanoid&quot;,...W.errToObj(t)})}cuid(t){return this._addCheck({kind:&quot;cuid&quot;,...W.errToObj(t)})}cuid2(t){return this._addCheck({kind:&quot;cuid2&quot;,...W.errToObj(t)})}ulid(t){return this._addCheck({kind:&quot;ulid&quot;,...W.errToObj(t)})}base64(t){return this._addCheck({kind:&quot;base64&quot;,...W.errToObj(t)})}base64url(t){return this._addCheck({kind:&quot;base64url&quot;,...W.errToObj(t)})}jwt(t){return this._addCheck({kind:&quot;jwt&quot;,...W.errToObj(t)})}ip(t){return this._addCheck({kind:&quot;ip&quot;,...W.errToObj(t)})}cidr(t){return this._addCheck({kind:&quot;cidr&quot;,...W.errToObj(t)})}datetime(t){return typeof t==&quot;string&quot;?this._addCheck({kind:&quot;datetime&quot;,precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:&quot;datetime&quot;,precision:typeof(t==null?void 0:t.precision)&gt;&quot;u&quot;?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...W.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:&quot;date&quot;,message:t})}time(t){return typeof t==&quot;string&quot;?this._addCheck({kind:&quot;time&quot;,precision:null,message:t}):this._addCheck({kind:&quot;time&quot;,precision:typeof(t==null?void 0:t.precision)&gt;&quot;u&quot;?null:t==null?void 0:t.precision,...W.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:&quot;duration&quot;,...W.errToObj(t)})}regex(t,n){return this._addCheck({kind:&quot;regex&quot;,regex:t,...W.errToObj(n)})}includes(t,n){return this._addCheck({kind:&quot;includes&quot;,value:t,position:n==null?void 0:n.position,...W.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:&quot;startsWith&quot;,value:t,...W.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:&quot;endsWith&quot;,value:t,...W.errToObj(n)})}min(t,n){return this._addCheck({kind:&quot;min&quot;,value:t,...W.errToObj(n)})}max(t,n){return this._addCheck({kind:&quot;max&quot;,value:t,...W.errToObj(n)})}length(t,n){return this._addCheck({kind:&quot;length&quot;,value:t,...W.errToObj(n)})}nonempty(t){return this.min(1,W.errToObj(t))}trim(){return new pn({...this._def,checks:[...this._def.checks,{kind:&quot;trim&quot;}]})}toLowerCase(){return new pn({...this._def,checks:[...this._def.checks,{kind:&quot;toLowerCase&quot;}]})}toUpperCase(){return new pn({...this._def,checks:[...this._def.checks,{kind:&quot;toUpperCase&quot;}]})}get isDatetime(){return!!this._def.checks.find(t=&gt;t.kind===&quot;datetime&quot;)}get isDate(){return!!this._def.checks.find(t=&gt;t.kind===&quot;date&quot;)}get isTime(){return!!this._def.checks.find(t=&gt;t.kind===&quot;time&quot;)}get isDuration(){return!!this._def.checks.find(t=&gt;t.kind===&quot;duration&quot;)}get isEmail(){return!!this._def.checks.find(t=&gt;t.kind===&quot;email&quot;)}get isURL(){return!!this._def.checks.find(t=&gt;t.kind===&quot;url&quot;)}get isEmoji(){return!!this._def.checks.find(t=&gt;t.kind===&quot;emoji&quot;)}get isUUID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;uuid&quot;)}get isNANOID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;nanoid&quot;)}get isCUID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cuid&quot;)}get isCUID2(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cuid2&quot;)}get isULID(){return!!this._def.checks.find(t=&gt;t.kind===&quot;ulid&quot;)}get isIP(){return!!this._def.checks.find(t=&gt;t.kind===&quot;ip&quot;)}get isCIDR(){return!!this._def.checks.find(t=&gt;t.kind===&quot;cidr&quot;)}get isBase64(){return!!this._def.checks.find(t=&gt;t.kind===&quot;base64&quot;)}get isBase64url(){return!!this._def.checks.find(t=&gt;t.kind===&quot;base64url&quot;)}get minLength(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}}pn.create=e=&gt;new pn({checks:[],typeName:K.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...X(e)});function p0(e,t){const n=(e.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,r=(t.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,i=n&gt;r?n:r,s=Number.parseInt(e.toFixed(i).replace(&quot;.&quot;,&quot;&quot;)),l=Number.parseInt(t.toFixed(i).replace(&quot;.&quot;,&quot;&quot;));return s%l/10**i}class Gr extends ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&amp;&amp;(t.data=Number(t.data)),this._getType(t)!==$.number){const s=this._getOrReturnCtx(t);return M(s,{code:A.invalid_type,expected:$.number,received:s.parsedType}),Q}let r;const i=new ot;for(const s of this._def.checks)s.kind===&quot;int&quot;?se.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_type,expected:&quot;integer&quot;,received:&quot;float&quot;,message:s.message}),i.dirty()):s.kind===&quot;min&quot;?(s.inclusive?t.data&lt;s.value:t.data&lt;=s.value)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_small,minimum:s.value,type:&quot;number&quot;,inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind===&quot;max&quot;?(s.inclusive?t.data&gt;s.value:t.data&gt;=s.value)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_big,maximum:s.value,type:&quot;number&quot;,inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind===&quot;multipleOf&quot;?p0(t.data,s.value)!==0&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind===&quot;finite&quot;?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.not_finite,message:s.message}),i.dirty()):se.assertNever(s);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit(&quot;min&quot;,t,!0,W.toString(n))}gt(t,n){return this.setLimit(&quot;min&quot;,t,!1,W.toString(n))}lte(t,n){return this.setLimit(&quot;max&quot;,t,!0,W.toString(n))}lt(t,n){return this.setLimit(&quot;max&quot;,t,!1,W.toString(n))}setLimit(t,n,r,i){return new Gr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:W.toString(i)}]})}_addCheck(t){return new Gr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:&quot;int&quot;,message:W.toString(t)})}positive(t){return this._addCheck({kind:&quot;min&quot;,value:0,inclusive:!1,message:W.toString(t)})}negative(t){return this._addCheck({kind:&quot;max&quot;,value:0,inclusive:!1,message:W.toString(t)})}nonpositive(t){return this._addCheck({kind:&quot;max&quot;,value:0,inclusive:!0,message:W.toString(t)})}nonnegative(t){return this._addCheck({kind:&quot;min&quot;,value:0,inclusive:!0,message:W.toString(t)})}multipleOf(t,n){return this._addCheck({kind:&quot;multipleOf&quot;,value:t,message:W.toString(n)})}finite(t){return this._addCheck({kind:&quot;finite&quot;,message:W.toString(t)})}safe(t){return this._addCheck({kind:&quot;min&quot;,inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:W.toString(t)})._addCheck({kind:&quot;max&quot;,inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:W.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=&gt;t.kind===&quot;int&quot;||t.kind===&quot;multipleOf&quot;&amp;&amp;se.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind===&quot;finite&quot;||r.kind===&quot;int&quot;||r.kind===&quot;multipleOf&quot;)return!0;r.kind===&quot;min&quot;?(n===null||r.value&gt;n)&amp;&amp;(n=r.value):r.kind===&quot;max&quot;&amp;&amp;(t===null||r.value&lt;t)&amp;&amp;(t=r.value)}return Number.isFinite(n)&amp;&amp;Number.isFinite(t)}}Gr.create=e=&gt;new Gr({checks:[],typeName:K.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...X(e)});class es extends ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==$.bigint)return this._getInvalidInput(t);let r;const i=new ot;for(const s of this._def.checks)s.kind===&quot;min&quot;?(s.inclusive?t.data&lt;s.value:t.data&lt;=s.value)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_small,type:&quot;bigint&quot;,minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind===&quot;max&quot;?(s.inclusive?t.data&gt;s.value:t.data&gt;=s.value)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_big,type:&quot;bigint&quot;,maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind===&quot;multipleOf&quot;?t.data%s.value!==BigInt(0)&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):se.assertNever(s);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return M(n,{code:A.invalid_type,expected:$.bigint,received:n.parsedType}),Q}gte(t,n){return this.setLimit(&quot;min&quot;,t,!0,W.toString(n))}gt(t,n){return this.setLimit(&quot;min&quot;,t,!1,W.toString(n))}lte(t,n){return this.setLimit(&quot;max&quot;,t,!0,W.toString(n))}lt(t,n){return this.setLimit(&quot;max&quot;,t,!1,W.toString(n))}setLimit(t,n,r,i){return new es({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:W.toString(i)}]})}_addCheck(t){return new es({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:&quot;min&quot;,value:BigInt(0),inclusive:!1,message:W.toString(t)})}negative(t){return this._addCheck({kind:&quot;max&quot;,value:BigInt(0),inclusive:!1,message:W.toString(t)})}nonpositive(t){return this._addCheck({kind:&quot;max&quot;,value:BigInt(0),inclusive:!0,message:W.toString(t)})}nonnegative(t){return this._addCheck({kind:&quot;min&quot;,value:BigInt(0),inclusive:!0,message:W.toString(t)})}multipleOf(t,n){return this._addCheck({kind:&quot;multipleOf&quot;,value:t,message:W.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t}}es.create=e=&gt;new es({checks:[],typeName:K.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...X(e)});class Za extends ie{_parse(t){if(this._def.coerce&amp;&amp;(t.data=!!t.data),this._getType(t)!==$.boolean){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:$.boolean,received:r.parsedType}),Q}return _t(t.data)}}Za.create=e=&gt;new Za({typeName:K.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...X(e)});class Pl extends ie{_parse(t){if(this._def.coerce&amp;&amp;(t.data=new Date(t.data)),this._getType(t)!==$.date){const s=this._getOrReturnCtx(t);return M(s,{code:A.invalid_type,expected:$.date,received:s.parsedType}),Q}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return M(s,{code:A.invalid_date}),Q}const r=new ot;let i;for(const s of this._def.checks)s.kind===&quot;min&quot;?t.data.getTime()&lt;s.value&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:&quot;date&quot;}),r.dirty()):s.kind===&quot;max&quot;?t.data.getTime()&gt;s.value&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:&quot;date&quot;}),r.dirty()):se.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Pl({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:&quot;min&quot;,value:t.getTime(),message:W.toString(n)})}max(t,n){return this._addCheck({kind:&quot;max&quot;,value:t.getTime(),message:W.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind===&quot;min&quot;&amp;&amp;(t===null||n.value&gt;t)&amp;&amp;(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind===&quot;max&quot;&amp;&amp;(t===null||n.value&lt;t)&amp;&amp;(t=n.value);return t!=null?new Date(t):null}}Pl.create=e=&gt;new Pl({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:K.ZodDate,...X(e)});class Bf extends ie{_parse(t){if(this._getType(t)!==$.symbol){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:$.symbol,received:r.parsedType}),Q}return _t(t.data)}}Bf.create=e=&gt;new Bf({typeName:K.ZodSymbol,...X(e)});class Wf extends ie{_parse(t){if(this._getType(t)!==$.undefined){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:$.undefined,received:r.parsedType}),Q}return _t(t.data)}}Wf.create=e=&gt;new Wf({typeName:K.ZodUndefined,...X(e)});class Hf extends ie{_parse(t){if(this._getType(t)!==$.null){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:$.null,received:r.parsedType}),Q}return _t(t.data)}}Hf.create=e=&gt;new Hf({typeName:K.ZodNull,...X(e)});class Zf extends ie{constructor(){super(...arguments),this._any=!0}_parse(t){return _t(t.data)}}Zf.create=e=&gt;new Zf({typeName:K.ZodAny,...X(e)});class Qa extends ie{constructor(){super(...arguments),this._unknown=!0}_parse(t){return _t(t.data)}}Qa.create=e=&gt;new Qa({typeName:K.ZodUnknown,...X(e)});class Nn extends ie{_parse(t){const n=this._getOrReturnCtx(t);return M(n,{code:A.invalid_type,expected:$.never,received:n.parsedType}),Q}}Nn.create=e=&gt;new Nn({typeName:K.ZodNever,...X(e)});class Qf extends ie{_parse(t){if(this._getType(t)!==$.undefined){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:$.void,received:r.parsedType}),Q}return _t(t.data)}}Qf.create=e=&gt;new Qf({typeName:K.ZodVoid,...X(e)});class Ut extends ie{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==$.array)return M(n,{code:A.invalid_type,expected:$.array,received:n.parsedType}),Q;if(i.exactLength!==null){const l=n.data.length&gt;i.exactLength.value,o=n.data.length&lt;i.exactLength.value;(l||o)&amp;&amp;(M(n,{code:l?A.too_big:A.too_small,minimum:o?i.exactLength.value:void 0,maximum:l?i.exactLength.value:void 0,type:&quot;array&quot;,inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&amp;&amp;n.data.length&lt;i.minLength.value&amp;&amp;(M(n,{code:A.too_small,minimum:i.minLength.value,type:&quot;array&quot;,inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&amp;&amp;n.data.length&gt;i.maxLength.value&amp;&amp;(M(n,{code:A.too_big,maximum:i.maxLength.value,type:&quot;array&quot;,inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,o)=&gt;i.type._parseAsync(new Tn(n,l,n.path,o)))).then(l=&gt;ot.mergeArray(r,l));const s=[...n.data].map((l,o)=&gt;i.type._parseSync(new Tn(n,l,n.path,o)));return ot.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new Ut({...this._def,minLength:{value:t,message:W.toString(n)}})}max(t,n){return new Ut({...this._def,maxLength:{value:t,message:W.toString(n)}})}length(t,n){return new Ut({...this._def,exactLength:{value:t,message:W.toString(n)}})}nonempty(t){return this.min(1,t)}}Ut.create=(e,t)=&gt;new Ut({type:e,minLength:null,maxLength:null,exactLength:null,typeName:K.ZodArray,...X(t)});function fr(e){if(e instanceof Ee){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=En.create(fr(r))}return new Ee({...e._def,shape:()=&gt;t})}else return e instanceof Ut?new Ut({...e._def,type:fr(e.element)}):e instanceof En?En.create(fr(e.unwrap())):e instanceof qr?qr.create(fr(e.unwrap())):e instanceof sr?sr.create(e.items.map(t=&gt;fr(t))):e}class Ee extends ie{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=se.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==$.object){const u=this._getOrReturnCtx(t);return M(u,{code:A.invalid_type,expected:$.object,received:u.parsedType}),Q}const{status:r,ctx:i}=this._processInputParams(t),{shape:s,keys:l}=this._getCached(),o=[];if(!(this._def.catchall instanceof Nn&amp;&amp;this._def.unknownKeys===&quot;strip&quot;))for(const u in i.data)l.includes(u)||o.push(u);const a=[];for(const u of l){const c=s[u],p=i.data[u];a.push({key:{status:&quot;valid&quot;,value:u},value:c._parse(new Tn(i,p,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Nn){const u=this._def.unknownKeys;if(u===&quot;passthrough&quot;)for(const c of o)a.push({key:{status:&quot;valid&quot;,value:c},value:{status:&quot;valid&quot;,value:i.data[c]}});else if(u===&quot;strict&quot;)o.length&gt;0&amp;&amp;(M(i,{code:A.unrecognized_keys,keys:o}),r.dirty());else if(u!==&quot;strip&quot;)throw new Error(&quot;Internal ZodObject error: invalid unknownKeys value.&quot;)}else{const u=this._def.catchall;for(const c of o){const p=i.data[c];a.push({key:{status:&quot;valid&quot;,value:c},value:u._parse(new Tn(i,p,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=&gt;{const u=[];for(const c of a){const p=await c.key,y=await c.value;u.push({key:p,value:y,alwaysSet:c.alwaysSet})}return u}).then(u=&gt;ot.mergeObjectSync(r,u)):ot.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return W.errToObj,new Ee({...this._def,unknownKeys:&quot;strict&quot;,...t!==void 0?{errorMap:(n,r)=&gt;{var s,l;const i=((l=(s=this._def).errorMap)==null?void 0:l.call(s,n,r).message)??r.defaultError;return n.code===&quot;unrecognized_keys&quot;?{message:W.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Ee({...this._def,unknownKeys:&quot;strip&quot;})}passthrough(){return new Ee({...this._def,unknownKeys:&quot;passthrough&quot;})}extend(t){return new Ee({...this._def,shape:()=&gt;({...this._def.shape(),...t})})}merge(t){return new Ee({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=&gt;({...this._def.shape(),...t._def.shape()}),typeName:K.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ee({...this._def,catchall:t})}pick(t){const n={};for(const r of se.objectKeys(t))t[r]&amp;&amp;this.shape[r]&amp;&amp;(n[r]=this.shape[r]);return new Ee({...this._def,shape:()=&gt;n})}omit(t){const n={};for(const r of se.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Ee({...this._def,shape:()=&gt;n})}deepPartial(){return fr(this)}partial(t){const n={};for(const r of se.objectKeys(this.shape)){const i=this.shape[r];t&amp;&amp;!t[r]?n[r]=i:n[r]=i.optional()}return new Ee({...this._def,shape:()=&gt;n})}required(t){const n={};for(const r of se.objectKeys(this.shape))if(t&amp;&amp;!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof En;)s=s._def.innerType;n[r]=s}return new Ee({...this._def,shape:()=&gt;n})}keyof(){return Bp(se.objectKeys(this.shape))}}Ee.create=(e,t)=&gt;new Ee({shape:()=&gt;e,unknownKeys:&quot;strip&quot;,catchall:Nn.create(),typeName:K.ZodObject,...X(t)});Ee.strictCreate=(e,t)=&gt;new Ee({shape:()=&gt;e,unknownKeys:&quot;strict&quot;,catchall:Nn.create(),typeName:K.ZodObject,...X(t)});Ee.lazycreate=(e,t)=&gt;new Ee({shape:e,unknownKeys:&quot;strip&quot;,catchall:Nn.create(),typeName:K.ZodObject,...X(t)});class Ll extends ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(s){for(const o of s)if(o.result.status===&quot;valid&quot;)return o.result;for(const o of s)if(o.result.status===&quot;dirty&quot;)return n.common.issues.push(...o.ctx.common.issues),o.result;const l=s.map(o=&gt;new Yt(o.ctx.common.issues));return M(n,{code:A.invalid_union,unionErrors:l}),Q}if(n.common.async)return Promise.all(r.map(async s=&gt;{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(i);{let s;const l=[];for(const a of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=a._parseSync({data:n.data,path:n.path,parent:u});if(c.status===&quot;valid&quot;)return c;c.status===&quot;dirty&quot;&amp;&amp;!s&amp;&amp;(s={result:c,ctx:u}),u.common.issues.length&amp;&amp;l.push(u.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const o=l.map(a=&gt;new Yt(a));return M(n,{code:A.invalid_union,unionErrors:o}),Q}}get options(){return this._def.options}}Ll.create=(e,t)=&gt;new Ll({options:e,typeName:K.ZodUnion,...X(t)});function Ka(e,t){const n=sn(e),r=sn(t);if(e===t)return{valid:!0,data:e};if(n===$.object&amp;&amp;r===$.object){const i=se.objectKeys(t),s=se.objectKeys(e).filter(o=&gt;i.indexOf(o)!==-1),l={...e,...t};for(const o of s){const a=Ka(e[o],t[o]);if(!a.valid)return{valid:!1};l[o]=a.data}return{valid:!0,data:l}}else if(n===$.array&amp;&amp;r===$.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let s=0;s&lt;e.length;s++){const l=e[s],o=t[s],a=Ka(l,o);if(!a.valid)return{valid:!1};i.push(a.data)}return{valid:!0,data:i}}else return n===$.date&amp;&amp;r===$.date&amp;&amp;+e==+t?{valid:!0,data:e}:{valid:!1}}class Ml extends ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(s,l)=&gt;{if($f(s)||$f(l))return Q;const o=Ka(s.value,l.value);return o.valid?((Ff(s)||Ff(l))&amp;&amp;n.dirty(),{status:n.value,value:o.data}):(M(r,{code:A.invalid_intersection_types}),Q)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,l])=&gt;i(s,l)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ml.create=(e,t,n)=&gt;new Ml({left:e,right:t,typeName:K.ZodIntersection,...X(n)});class sr extends ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.array)return M(r,{code:A.invalid_type,expected:$.array,received:r.parsedType}),Q;if(r.data.length&lt;this._def.items.length)return M(r,{code:A.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:&quot;array&quot;}),Q;!this._def.rest&amp;&amp;r.data.length&gt;this._def.items.length&amp;&amp;(M(r,{code:A.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:&quot;array&quot;}),n.dirty());const s=[...r.data].map((l,o)=&gt;{const a=this._def.items[o]||this._def.rest;return a?a._parse(new Tn(r,l,r.path,o)):null}).filter(l=&gt;!!l);return r.common.async?Promise.all(s).then(l=&gt;ot.mergeArray(n,l)):ot.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new sr({...this._def,rest:t})}}sr.create=(e,t)=&gt;{if(!Array.isArray(e))throw new Error(&quot;You must pass an array of schemas to z.tuple([ ... ])&quot;);return new sr({items:e,typeName:K.ZodTuple,rest:null,...X(t)})};class Kf extends ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.map)return M(r,{code:A.invalid_type,expected:$.map,received:r.parsedType}),Q;const i=this._def.keyType,s=this._def.valueType,l=[...r.data.entries()].map(([o,a],u)=&gt;({key:i._parse(new Tn(r,o,r.path,[u,&quot;key&quot;])),value:s._parse(new Tn(r,a,r.path,[u,&quot;value&quot;]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=&gt;{for(const a of l){const u=await a.key,c=await a.value;if(u.status===&quot;aborted&quot;||c.status===&quot;aborted&quot;)return Q;(u.status===&quot;dirty&quot;||c.status===&quot;dirty&quot;)&amp;&amp;n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const a of l){const u=a.key,c=a.value;if(u.status===&quot;aborted&quot;||c.status===&quot;aborted&quot;)return Q;(u.status===&quot;dirty&quot;||c.status===&quot;dirty&quot;)&amp;&amp;n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}}}}Kf.create=(e,t,n)=&gt;new Kf({valueType:t,keyType:e,typeName:K.ZodMap,...X(n)});class ts extends ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.set)return M(r,{code:A.invalid_type,expected:$.set,received:r.parsedType}),Q;const i=this._def;i.minSize!==null&amp;&amp;r.data.size&lt;i.minSize.value&amp;&amp;(M(r,{code:A.too_small,minimum:i.minSize.value,type:&quot;set&quot;,inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&amp;&amp;r.data.size&gt;i.maxSize.value&amp;&amp;(M(r,{code:A.too_big,maximum:i.maxSize.value,type:&quot;set&quot;,inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const s=this._def.valueType;function l(a){const u=new Set;for(const c of a){if(c.status===&quot;aborted&quot;)return Q;c.status===&quot;dirty&quot;&amp;&amp;n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const o=[...r.data.values()].map((a,u)=&gt;s._parse(new Tn(r,a,r.path,u)));return r.common.async?Promise.all(o).then(a=&gt;l(a)):l(o)}min(t,n){return new ts({...this._def,minSize:{value:t,message:W.toString(n)}})}max(t,n){return new ts({...this._def,maxSize:{value:t,message:W.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ts.create=(e,t)=&gt;new ts({valueType:e,minSize:null,maxSize:null,typeName:K.ZodSet,...X(t)});class bf extends ie{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}bf.create=(e,t)=&gt;new bf({getter:e,typeName:K.ZodLazy,...X(t)});class Jf extends ie{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return M(n,{received:n.data,code:A.invalid_literal,expected:this._def.value}),Q}return{status:&quot;valid&quot;,value:t.data}}get value(){return this._def.value}}Jf.create=(e,t)=&gt;new Jf({value:e,typeName:K.ZodLiteral,...X(t)});function Bp(e,t){return new Yr({values:e,typeName:K.ZodEnum,...X(t)})}class Yr extends ie{_parse(t){if(typeof t.data!=&quot;string&quot;){const n=this._getOrReturnCtx(t),r=this._def.values;return M(n,{expected:se.joinValues(r),received:n.parsedType,code:A.invalid_type}),Q}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return M(n,{received:n.data,code:A.invalid_enum_value,options:r}),Q}return _t(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Yr.create(t,{...this._def,...n})}exclude(t,n=this._def){return Yr.create(this.options.filter(r=&gt;!t.includes(r)),{...this._def,...n})}}Yr.create=Bp;class Gf extends ie{_parse(t){const n=se.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==$.string&amp;&amp;r.parsedType!==$.number){const i=se.objectValues(n);return M(r,{expected:se.joinValues(i),received:r.parsedType,code:A.invalid_type}),Q}if(this._cache||(this._cache=new Set(se.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=se.objectValues(n);return M(r,{received:r.data,code:A.invalid_enum_value,options:i}),Q}return _t(t.data)}get enum(){return this._def.values}}Gf.create=(e,t)=&gt;new Gf({values:e,typeName:K.ZodNativeEnum,...X(t)});class Dl extends ie{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==$.promise&amp;&amp;n.common.async===!1)return M(n,{code:A.invalid_type,expected:$.promise,received:n.parsedType}),Q;const r=n.parsedType===$.promise?n.data:Promise.resolve(n.data);return _t(r.then(i=&gt;this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Dl.create=(e,t)=&gt;new Dl({type:e,typeName:K.ZodPromise,...X(t)});class Xr extends ie{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===K.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:l=&gt;{M(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),i.type===&quot;preprocess&quot;){const l=i.transform(r.data,s);if(r.common.async)return Promise.resolve(l).then(async o=&gt;{if(n.value===&quot;aborted&quot;)return Q;const a=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return a.status===&quot;aborted&quot;?Q:a.status===&quot;dirty&quot;||n.value===&quot;dirty&quot;?_i(a.value):a});{if(n.value===&quot;aborted&quot;)return Q;const o=this._def.schema._parseSync({data:l,path:r.path,parent:r});return o.status===&quot;aborted&quot;?Q:o.status===&quot;dirty&quot;||n.value===&quot;dirty&quot;?_i(o.value):o}}if(i.type===&quot;refinement&quot;){const l=o=&gt;{const a=i.refinement(o,s);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw new Error(&quot;Async refinement encountered during synchronous parse operation. Use .parseAsync instead.&quot;);return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status===&quot;aborted&quot;?Q:(o.status===&quot;dirty&quot;&amp;&amp;n.dirty(),l(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=&gt;o.status===&quot;aborted&quot;?Q:(o.status===&quot;dirty&quot;&amp;&amp;n.dirty(),l(o.value).then(()=&gt;({status:n.value,value:o.value}))))}if(i.type===&quot;transform&quot;)if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Jr(l))return Q;const o=i.transform(l.value,s);if(o instanceof Promise)throw new Error(&quot;Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.&quot;);return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=&gt;Jr(l)?Promise.resolve(i.transform(l.value,s)).then(o=&gt;({status:n.value,value:o})):Q);se.assertNever(i)}}Xr.create=(e,t,n)=&gt;new Xr({schema:e,typeName:K.ZodEffects,effect:t,...X(n)});Xr.createWithPreprocess=(e,t,n)=&gt;new Xr({schema:t,effect:{type:&quot;preprocess&quot;,transform:e},typeName:K.ZodEffects,...X(n)});class En extends ie{_parse(t){return this._getType(t)===$.undefined?_t(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}En.create=(e,t)=&gt;new En({innerType:e,typeName:K.ZodOptional,...X(t)});class qr extends ie{_parse(t){return this._getType(t)===$.null?_t(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qr.create=(e,t)=&gt;new qr({innerType:e,typeName:K.ZodNullable,...X(t)});class ba extends ie{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===$.undefined&amp;&amp;(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ba.create=(e,t)=&gt;new ba({innerType:e,typeName:K.ZodDefault,defaultValue:typeof t.default==&quot;function&quot;?t.default:()=&gt;t.default,...X(t)});class Ja extends ie{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Il(i)?i.then(s=&gt;({status:&quot;valid&quot;,value:s.status===&quot;valid&quot;?s.value:this._def.catchValue({get error(){return new Yt(r.common.issues)},input:r.data})})):{status:&quot;valid&quot;,value:i.status===&quot;valid&quot;?i.value:this._def.catchValue({get error(){return new Yt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ja.create=(e,t)=&gt;new Ja({innerType:e,typeName:K.ZodCatch,catchValue:typeof t.catch==&quot;function&quot;?t.catch:()=&gt;t.catch,...X(t)});class Yf extends ie{_parse(t){if(this._getType(t)!==$.nan){const r=this._getOrReturnCtx(t);return M(r,{code:A.invalid_type,expected:$.nan,received:r.parsedType}),Q}return{status:&quot;valid&quot;,value:t.data}}}Yf.create=e=&gt;new Yf({typeName:K.ZodNaN,...X(e)});class m0 extends ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class lc extends ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=&gt;{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status===&quot;aborted&quot;?Q:s.status===&quot;dirty&quot;?(n.dirty(),_i(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status===&quot;aborted&quot;?Q:i.status===&quot;dirty&quot;?(n.dirty(),{status:&quot;dirty&quot;,value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new lc({in:t,out:n,typeName:K.ZodPipeline})}}class Ga extends ie{_parse(t){const n=this._def.innerType._parse(t),r=i=&gt;(Jr(i)&amp;&amp;(i.value=Object.freeze(i.value)),i);return Il(n)?n.then(i=&gt;r(i)):r(n)}unwrap(){return this._def.innerType}}Ga.create=(e,t)=&gt;new Ga({innerType:e,typeName:K.ZodReadonly,...X(t)});var K;(function(e){e.ZodString=&quot;ZodString&quot;,e.ZodNumber=&quot;ZodNumber&quot;,e.ZodNaN=&quot;ZodNaN&quot;,e.ZodBigInt=&quot;ZodBigInt&quot;,e.ZodBoolean=&quot;ZodBoolean&quot;,e.ZodDate=&quot;ZodDate&quot;,e.ZodSymbol=&quot;ZodSymbol&quot;,e.ZodUndefined=&quot;ZodUndefined&quot;,e.ZodNull=&quot;ZodNull&quot;,e.ZodAny=&quot;ZodAny&quot;,e.ZodUnknown=&quot;ZodUnknown&quot;,e.ZodNever=&quot;ZodNever&quot;,e.ZodVoid=&quot;ZodVoid&quot;,e.ZodArray=&quot;ZodArray&quot;,e.ZodObject=&quot;ZodObject&quot;,e.ZodUnion=&quot;ZodUnion&quot;,e.ZodDiscriminatedUnion=&quot;ZodDiscriminatedUnion&quot;,e.ZodIntersection=&quot;ZodIntersection&quot;,e.ZodTuple=&quot;ZodTuple&quot;,e.ZodRecord=&quot;ZodRecord&quot;,e.ZodMap=&quot;ZodMap&quot;,e.ZodSet=&quot;ZodSet&quot;,e.ZodFunction=&quot;ZodFunction&quot;,e.ZodLazy=&quot;ZodLazy&quot;,e.ZodLiteral=&quot;ZodLiteral&quot;,e.ZodEnum=&quot;ZodEnum&quot;,e.ZodEffects=&quot;ZodEffects&quot;,e.ZodNativeEnum=&quot;ZodNativeEnum&quot;,e.ZodOptional=&quot;ZodOptional&quot;,e.ZodNullable=&quot;ZodNullable&quot;,e.ZodDefault=&quot;ZodDefault&quot;,e.ZodCatch=&quot;ZodCatch&quot;,e.ZodPromise=&quot;ZodPromise&quot;,e.ZodBranded=&quot;ZodBranded&quot;,e.ZodPipeline=&quot;ZodPipeline&quot;,e.ZodReadonly=&quot;ZodReadonly&quot;})(K||(K={}));const Wp=pn.create,y0=Gr.create,v0=Za.create,oc=Qa.create;Nn.create;const Hp=Ut.create,Yn=Ee.create,g0=Ll.create;Ml.create;sr.create;const Zp=Yr.create;Dl.create;En.create;qr.create;var w0=&quot;actor-runtime&quot;;function _0(){return Ip(w0)}function Xf(e){throw _0().error(&quot;unreachable&quot;,{value:`${e}`,stack:new Error().stack}),new pg(e)}Zp([&quot;json&quot;,&quot;cbor&quot;]);Yn({a:Hp(oc())});Yn({o:oc()});var x0=Yn({i:y0().int(),n:Wp(),a:Hp(oc())}),k0=Yn({e:Wp(),s:v0()});Yn({b:g0([Yn({ar:x0}),Yn({sr:k0})])});Zp([&quot;websocket&quot;,&quot;sse&quot;]);var Ms=&quot;X-RivetKit-Query&quot;,hi=&quot;X-RivetKit-Encoding&quot;,Ds=&quot;X-RivetKit-Conn-Params&quot;,S0=&quot;X-RivetKit-Actor&quot;,E0=&quot;X-RivetKit-Conn&quot;,C0=&quot;X-RivetKit-Conn-Token&quot;,O0=&quot;actor-client&quot;;function Z(){return Ip(O0)}var zs=null;async function T0(){return zs!==null||(zs=(async()=&gt;{let e;if(typeof WebSocket&lt;&quot;u&quot;)e=WebSocket,Z().debug(&quot;using native websocket&quot;);else try{e=(await Tp(()=&gt;import(&quot;./browser-CfK1oeIK.js&quot;).then(n=&gt;n.b),[])).default,Z().debug(&quot;using websocket from npm&quot;)}catch{e=class{constructor(){throw new Error(&#39;WebSocket support requires installing the &quot;ws&quot; peer dependency.&#39;)}},Z().debug(&quot;using mock websocket&quot;)}return e})()),zs}var N0=function(e,t,n,r,i,s,l,o){if(!e){var a;if(t===void 0)a=new Error(&quot;Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.&quot;);else{var u=[n,r,i,s,l,o],c=0;a=new Error(t.replace(/%s/g,function(){return u[c++]})),a.name=&quot;Invariant Violation&quot;}throw a.framesToPop=1,a}},R0=N0;const A0=ad(R0);/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2022 Joachim Wester
 * MIT licensed
 */var I0=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(r,i){r.__proto__=i}||function(r,i){for(var s in i)i.hasOwnProperty(s)&amp;&amp;(r[s]=i[s])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),P0=Object.prototype.hasOwnProperty;function Ya(e,t){return P0.call(e,t)}function Xa(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n&lt;t.length;n++)t[n]=&quot;&quot;+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var i in e)Ya(e,i)&amp;&amp;r.push(i);return r}function it(e){switch(typeof e){case&quot;object&quot;:return JSON.parse(JSON.stringify(e));case&quot;undefined&quot;:return null;default:return e}}function qa(e){for(var t=0,n=e.length,r;t&lt;n;){if(r=e.charCodeAt(t),r&gt;=48&amp;&amp;r&lt;=57){t++;continue}return!1}return!0}function $n(e){return e.indexOf(&quot;/&quot;)===-1&amp;&amp;e.indexOf(&quot;~&quot;)===-1?e:e.replace(/~/g,&quot;~0&quot;).replace(/\//g,&quot;~1&quot;)}function Qp(e){return e.replace(/~1/g,&quot;/&quot;).replace(/~0/g,&quot;~&quot;)}function eu(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t&lt;n;t++)if(eu(e[t]))return!0}else if(typeof e==&quot;object&quot;){for(var r=Xa(e),i=r.length,s=0;s&lt;i;s++)if(eu(e[r[s]]))return!0}}return!1}function qf(e,t){var n=[e];for(var r in t){var i=typeof t[r]==&quot;object&quot;?JSON.stringify(t[r],null,2):t[r];typeof i&lt;&quot;u&quot;&amp;&amp;n.push(r+&quot;: &quot;+i)}return n.join(`
`)}var Kp=function(e){I0(t,e);function t(n,r,i,s,l){var o=this.constructor,a=e.call(this,qf(n,{name:r,index:i,operation:s,tree:l}))||this;return a.name=r,a.index=i,a.operation=s,a.tree=l,Object.setPrototypeOf(a,o.prototype),a.message=qf(n,{name:r,index:i,operation:s,tree:l}),a}return t}(Error),_e=Kp,L0=it,Cr={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=zl(n,this.path);r&amp;&amp;(r=it(r));var i=Xn(n,{op:&quot;remove&quot;,path:this.from}).removed;return Xn(n,{op:&quot;add&quot;,path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=zl(n,this.from);return Xn(n,{op:&quot;add&quot;,path:this.path,value:it(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:ns(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},M0={add:function(e,t,n){return qa(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){var r=e.splice(t,1);return{newDocument:n,removed:r[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:Cr.move,copy:Cr.copy,test:Cr.test,_get:Cr._get};function zl(e,t){if(t==&quot;&quot;)return e;var n={op:&quot;_get&quot;,path:t};return Xn(e,n),n.value}function Xn(e,t,n,r,i,s){if(n===void 0&amp;&amp;(n=!1),r===void 0&amp;&amp;(r=!0),i===void 0&amp;&amp;(i=!0),s===void 0&amp;&amp;(s=0),n&amp;&amp;(typeof n==&quot;function&quot;?n(t,0,e,t.path):jl(t,0)),t.path===&quot;&quot;){var l={newDocument:e};if(t.op===&quot;add&quot;)return l.newDocument=t.value,l;if(t.op===&quot;replace&quot;)return l.newDocument=t.value,l.removed=e,l;if(t.op===&quot;move&quot;||t.op===&quot;copy&quot;)return l.newDocument=zl(e,t.from),t.op===&quot;move&quot;&amp;&amp;(l.removed=e),l;if(t.op===&quot;test&quot;){if(l.test=ns(e,t.value),l.test===!1)throw new _e(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,s,t,e);return l.newDocument=e,l}else{if(t.op===&quot;remove&quot;)return l.removed=e,l.newDocument=null,l;if(t.op===&quot;_get&quot;)return t.value=e,l;if(n)throw new _e(&quot;Operation `op` property is not one of operations defined in RFC-6902&quot;,&quot;OPERATION_OP_INVALID&quot;,s,t,e);return l}}else{r||(e=it(e));var o=t.path||&quot;&quot;,a=o.split(&quot;/&quot;),u=e,c=1,p=a.length,y=void 0,w=void 0,_=void 0;for(typeof n==&quot;function&quot;?_=n:_=jl;;){if(w=a[c],w&amp;&amp;w.indexOf(&quot;~&quot;)!=-1&amp;&amp;(w=Qp(w)),i&amp;&amp;(w==&quot;__proto__&quot;||w==&quot;prototype&quot;&amp;&amp;c&gt;0&amp;&amp;a[c-1]==&quot;constructor&quot;))throw new TypeError(&quot;JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README&quot;);if(n&amp;&amp;y===void 0&amp;&amp;(u[w]===void 0?y=a.slice(0,c).join(&quot;/&quot;):c==p-1&amp;&amp;(y=t.path),y!==void 0&amp;&amp;_(t,0,e,y)),c++,Array.isArray(u)){if(w===&quot;-&quot;)w=u.length;else{if(n&amp;&amp;!qa(w))throw new _e(&quot;Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index&quot;,&quot;OPERATION_PATH_ILLEGAL_ARRAY_INDEX&quot;,s,t,e);qa(w)&amp;&amp;(w=~~w)}if(c&gt;=p){if(n&amp;&amp;t.op===&quot;add&quot;&amp;&amp;w&gt;u.length)throw new _e(&quot;The specified index MUST NOT be greater than the number of elements in the array&quot;,&quot;OPERATION_VALUE_OUT_OF_BOUNDS&quot;,s,t,e);var l=M0[t.op].call(t,u,w,e);if(l.test===!1)throw new _e(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,s,t,e);return l}}else if(c&gt;=p){var l=Cr[t.op].call(t,u,w,e);if(l.test===!1)throw new _e(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,s,t,e);return l}if(u=u[w],n&amp;&amp;c&lt;p&amp;&amp;(!u||typeof u!=&quot;object&quot;))throw new _e(&quot;Cannot perform operation at the desired path&quot;,&quot;OPERATION_PATH_UNRESOLVABLE&quot;,s,t,e)}}}function ac(e,t,n,r,i){if(r===void 0&amp;&amp;(r=!0),i===void 0&amp;&amp;(i=!0),n&amp;&amp;!Array.isArray(t))throw new _e(&quot;Patch sequence must be an array&quot;,&quot;SEQUENCE_NOT_AN_ARRAY&quot;);r||(e=it(e));for(var s=new Array(t.length),l=0,o=t.length;l&lt;o;l++)s[l]=Xn(e,t[l],n,!0,i,l),e=s[l].newDocument;return s.newDocument=e,s}function D0(e,t,n){var r=Xn(e,t);if(r.test===!1)throw new _e(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,n,t,e);return r.newDocument}function jl(e,t,n,r){if(typeof e!=&quot;object&quot;||e===null||Array.isArray(e))throw new _e(&quot;Operation is not an object&quot;,&quot;OPERATION_NOT_AN_OBJECT&quot;,t,e,n);if(Cr[e.op]){if(typeof e.path!=&quot;string&quot;)throw new _e(&quot;Operation `path` property is not a string&quot;,&quot;OPERATION_PATH_INVALID&quot;,t,e,n);if(e.path.indexOf(&quot;/&quot;)!==0&amp;&amp;e.path.length&gt;0)throw new _e(&#39;Operation `path` property must start with &quot;/&quot;&#39;,&quot;OPERATION_PATH_INVALID&quot;,t,e,n);if((e.op===&quot;move&quot;||e.op===&quot;copy&quot;)&amp;&amp;typeof e.from!=&quot;string&quot;)throw new _e(&quot;Operation `from` property is not present (applicable in `move` and `copy` operations)&quot;,&quot;OPERATION_FROM_REQUIRED&quot;,t,e,n);if((e.op===&quot;add&quot;||e.op===&quot;replace&quot;||e.op===&quot;test&quot;)&amp;&amp;e.value===void 0)throw new _e(&quot;Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)&quot;,&quot;OPERATION_VALUE_REQUIRED&quot;,t,e,n);if((e.op===&quot;add&quot;||e.op===&quot;replace&quot;||e.op===&quot;test&quot;)&amp;&amp;eu(e.value))throw new _e(&quot;Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)&quot;,&quot;OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED&quot;,t,e,n);if(n){if(e.op==&quot;add&quot;){var i=e.path.split(&quot;/&quot;).length,s=r.split(&quot;/&quot;).length;if(i!==s+1&amp;&amp;i!==s)throw new _e(&quot;Cannot perform an `add` operation at the desired path&quot;,&quot;OPERATION_PATH_CANNOT_ADD&quot;,t,e,n)}else if(e.op===&quot;replace&quot;||e.op===&quot;remove&quot;||e.op===&quot;_get&quot;){if(e.path!==r)throw new _e(&quot;Cannot perform the operation at a path that does not exist&quot;,&quot;OPERATION_PATH_UNRESOLVABLE&quot;,t,e,n)}else if(e.op===&quot;move&quot;||e.op===&quot;copy&quot;){var l={op:&quot;_get&quot;,path:e.from,value:void 0},o=bp([l],n);if(o&amp;&amp;o.name===&quot;OPERATION_PATH_UNRESOLVABLE&quot;)throw new _e(&quot;Cannot perform the operation from a path that does not exist&quot;,&quot;OPERATION_FROM_UNRESOLVABLE&quot;,t,e,n)}}}else throw new _e(&quot;Operation `op` property is not one of operations defined in RFC-6902&quot;,&quot;OPERATION_OP_INVALID&quot;,t,e,n)}function bp(e,t,n){try{if(!Array.isArray(e))throw new _e(&quot;Patch sequence must be an array&quot;,&quot;SEQUENCE_NOT_AN_ARRAY&quot;);if(t)ac(it(t),it(e),n||!0);else{n=n||jl;for(var r=0;r&lt;e.length;r++)n(e[r],r,t,void 0)}}catch(i){if(i instanceof _e)return i;throw i}}function ns(e,t){if(e===t)return!0;if(e&amp;&amp;t&amp;&amp;typeof e==&quot;object&quot;&amp;&amp;typeof t==&quot;object&quot;){var n=Array.isArray(e),r=Array.isArray(t),i,s,l;if(n&amp;&amp;r){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!ns(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var o=Object.keys(e);if(s=o.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!t.hasOwnProperty(o[i]))return!1;for(i=s;i--!==0;)if(l=o[i],!ns(e[l],t[l]))return!1;return!0}return e!==e&amp;&amp;t!==t}const z0=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:_e,_areEquals:ns,applyOperation:Xn,applyPatch:ac,applyReducer:D0,deepClone:L0,getValueByPointer:zl,validate:bp,validator:jl},Symbol.toStringTag,{value:&quot;Module&quot;}));/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2021 Joachim Wester
 * MIT license
 */var uc=new WeakMap,j0=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),U0=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function $0(e){return uc.get(e)}function F0(e,t){return e.observers.get(t)}function V0(e,t){e.observers.delete(t.callback)}function B0(e,t){t.unobserve()}function W0(e,t){var n=[],r,i=$0(e);if(!i)i=new j0(e),uc.set(e,i);else{var s=F0(i,t);r=s&amp;&amp;s.observer}if(r)return r;if(r={},i.value=it(e),t){r.callback=t,r.next=null;var l=function(){tu(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(l)};typeof window&lt;&quot;u&quot;&amp;&amp;(window.addEventListener(&quot;mouseup&quot;,o),window.addEventListener(&quot;keyup&quot;,o),window.addEventListener(&quot;mousedown&quot;,o),window.addEventListener(&quot;keydown&quot;,o),window.addEventListener(&quot;change&quot;,o))}return r.patches=n,r.object=e,r.unobserve=function(){tu(r),clearTimeout(r.next),V0(i,r),typeof window&lt;&quot;u&quot;&amp;&amp;(window.removeEventListener(&quot;mouseup&quot;,o),window.removeEventListener(&quot;keyup&quot;,o),window.removeEventListener(&quot;mousedown&quot;,o),window.removeEventListener(&quot;keydown&quot;,o),window.removeEventListener(&quot;change&quot;,o))},i.observers.set(t,new U0(t,r)),r}function tu(e,t){t===void 0&amp;&amp;(t=!1);var n=uc.get(e.object);cc(n.value,e.object,e.patches,&quot;&quot;,t),e.patches.length&amp;&amp;ac(n.value,e.patches);var r=e.patches;return r.length&gt;0&amp;&amp;(e.patches=[],e.callback&amp;&amp;e.callback(r)),r}function cc(e,t,n,r,i){if(t!==e){typeof t.toJSON==&quot;function&quot;&amp;&amp;(t=t.toJSON());for(var s=Xa(t),l=Xa(e),o=!1,a=l.length-1;a&gt;=0;a--){var u=l[a],c=e[u];if(Ya(t,u)&amp;&amp;!(t[u]===void 0&amp;&amp;c!==void 0&amp;&amp;Array.isArray(t)===!1)){var p=t[u];typeof c==&quot;object&quot;&amp;&amp;c!=null&amp;&amp;typeof p==&quot;object&quot;&amp;&amp;p!=null&amp;&amp;Array.isArray(c)===Array.isArray(p)?cc(c,p,n,r+&quot;/&quot;+$n(u),i):c!==p&amp;&amp;(i&amp;&amp;n.push({op:&quot;test&quot;,path:r+&quot;/&quot;+$n(u),value:it(c)}),n.push({op:&quot;replace&quot;,path:r+&quot;/&quot;+$n(u),value:it(p)}))}else Array.isArray(e)===Array.isArray(t)?(i&amp;&amp;n.push({op:&quot;test&quot;,path:r+&quot;/&quot;+$n(u),value:it(c)}),n.push({op:&quot;remove&quot;,path:r+&quot;/&quot;+$n(u)}),o=!0):(i&amp;&amp;n.push({op:&quot;test&quot;,path:r,value:e}),n.push({op:&quot;replace&quot;,path:r,value:t}))}if(!(!o&amp;&amp;s.length==l.length))for(var a=0;a&lt;s.length;a++){var u=s[a];!Ya(e,u)&amp;&amp;t[u]!==void 0&amp;&amp;n.push({op:&quot;add&quot;,path:r+&quot;/&quot;+$n(u),value:it(t[u])})}}}function H0(e,t,n){n===void 0&amp;&amp;(n=!1);var r=[];return cc(e,t,r,&quot;&quot;,n),r}const Z0=Object.freeze(Object.defineProperty({__proto__:null,compare:H0,generate:tu,observe:W0,unobserve:B0},Symbol.toStringTag,{value:&quot;Module&quot;}));Object.assign({},z0,Z0,{JsonPatchError:Kp,deepClone:it,escapePathComponent:$n,unescapePathComponent:Qp});new Set(&quot;.\\+*[^]$()&quot;);var Jp={};function wt(e,t){typeof t==&quot;boolean&quot;&amp;&amp;(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&amp;&amp;t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&amp;&amp;(this._cachedTimeouts=this._timeouts.slice(0))}var Q0=wt;wt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};wt.prototype.stop=function(){this._timeout&amp;&amp;clearTimeout(this._timeout),this._timer&amp;&amp;clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};wt.prototype.retry=function(e){if(this._timeout&amp;&amp;clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&amp;&amp;t-this._operationStart&gt;=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error(&quot;RetryOperation timeout occurred&quot;)),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&amp;&amp;(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&amp;&amp;r._timeout.unref()),r._fn(r._attempts)},n),this._options.unref&amp;&amp;this._timer.unref(),!0};wt.prototype.attempt=function(e,t){this._fn=e,t&amp;&amp;(t.timeout&amp;&amp;(this._operationTimeout=t.timeout),t.cb&amp;&amp;(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&amp;&amp;(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};wt.prototype.try=function(e){console.log(&quot;Using RetryOperation.try() is deprecated&quot;),this.attempt(e)};wt.prototype.start=function(e){console.log(&quot;Using RetryOperation.start() is deprecated&quot;),this.attempt(e)};wt.prototype.start=wt.prototype.try;wt.prototype.errors=function(){return this._errors};wt.prototype.attempts=function(){return this._attempts};wt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,r=0;r&lt;this._errors.length;r++){var i=this._errors[r],s=i.message,l=(e[s]||0)+1;e[s]=l,l&gt;=n&amp;&amp;(t=i,n=l)}return t};(function(e){var t=Q0;e.operation=function(n){var r=e.timeouts(n);return new t(r,{forever:n&amp;&amp;(n.forever||n.retries===1/0),unref:n&amp;&amp;n.unref,maxRetryTime:n&amp;&amp;n.maxRetryTime})},e.timeouts=function(n){if(n instanceof Array)return[].concat(n);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in n)r[i]=n[i];if(r.minTimeout&gt;r.maxTimeout)throw new Error(&quot;minTimeout is greater than maxTimeout&quot;);for(var s=[],l=0;l&lt;r.retries;l++)s.push(this.createTimeout(l,r));return n&amp;&amp;n.forever&amp;&amp;!s.length&amp;&amp;s.push(this.createTimeout(l,r)),s.sort(function(o,a){return o-a}),s},e.createTimeout=function(n,r){var i=r.randomize?Math.random()+1:1,s=Math.round(i*Math.max(r.minTimeout,1)*Math.pow(r.factor,n));return s=Math.min(s,r.maxTimeout),s},e.wrap=function(n,r,i){if(r instanceof Array&amp;&amp;(i=r,r=null),!i){i=[];for(var s in n)typeof n[s]==&quot;function&quot;&amp;&amp;i.push(s)}for(var l=0;l&lt;i.length;l++){var o=i[l],a=n[o];n[o]=(function(c){var p=e.operation(r),y=Array.prototype.slice.call(arguments,1),w=y.pop();y.push(function(_){p.retry(_)||(_&amp;&amp;(arguments[0]=p.mainError()),w.apply(this,arguments))}),p.attempt(function(){c.apply(n,y)})}).bind(n,a),n[o].options=r}}})(Jp);var K0=Jp;const b0=ad(K0),J0=Object.prototype.toString,G0=e=&gt;J0.call(e)===&quot;[object Error]&quot;,Y0=new Set([&quot;network error&quot;,&quot;Failed to fetch&quot;,&quot;NetworkError when attempting to fetch resource.&quot;,&quot;The Internet connection appears to be offline.&quot;,&quot;Load failed&quot;,&quot;Network request failed&quot;,&quot;fetch failed&quot;,&quot;terminated&quot;]);function X0(e){return e&amp;&amp;G0(e)&amp;&amp;e.name===&quot;TypeError&quot;&amp;&amp;typeof e.message==&quot;string&quot;?e.message===&quot;Load failed&quot;?e.stack===void 0:Y0.has(e.message):!1}class q0 extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name=&quot;AbortError&quot;,this.message=t}}const ed=(e,t,n)=&gt;{const r=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=r,e};async function ew(e,t){return new Promise((n,r)=&gt;{t={...t},t.onFailedAttempt??(t.onFailedAttempt=()=&gt;{}),t.shouldRetry??(t.shouldRetry=()=&gt;!0),t.retries??(t.retries=10);const i=b0.operation(t),s=()=&gt;{var o;i.stop(),r((o=t.signal)==null?void 0:o.reason)};t.signal&amp;&amp;!t.signal.aborted&amp;&amp;t.signal.addEventListener(&quot;abort&quot;,s,{once:!0});const l=()=&gt;{var o;(o=t.signal)==null||o.removeEventListener(&quot;abort&quot;,s),i.stop()};i.attempt(async o=&gt;{try{const a=await e(o);l(),n(a)}catch(a){try{if(!(a instanceof Error))throw new TypeError(`Non-error was thrown: &quot;${a}&quot;. You should only throw errors.`);if(a instanceof q0)throw a.originalError;if(a instanceof TypeError&amp;&amp;!X0(a))throw a;if(ed(a,o,t),await t.shouldRetry(a)||(i.stop(),r(a)),await t.onFailedAttempt(a),!i.retry(a))throw i.mainError()}catch(u){ed(u,o,t),l(),r(u)}}})})}var ro=class extends Error{},xi=class extends ro{},Ul=class extends ro{constructor(t,n,r){super(n);Rt(this,&quot;__type&quot;,&quot;ActorError&quot;);this.code=t,this.metadata=r}},Bo=class extends ro{constructor(e,t){super(`HTTP request error: ${e}`,{cause:t==null?void 0:t.cause})}},tw=class extends ro{constructor(){super(&quot;Attempting to interact with a disposed actor connection.&quot;)}};async function nw(e,t,n,r,i){let s,l=i||{};if(typeof r==&quot;string&quot;)s=r;else if(r instanceof URL)s=r.pathname+r.search;else if(r instanceof Request){const o=new URL(r.url);s=o.pathname+o.search;const a=new Headers(r.headers),u=new Headers((i==null?void 0:i.headers)||{}),c=new Headers(a);for(const[p,y]of u)c.set(p,y);l={method:r.method,body:r.body,mode:r.mode,credentials:r.credentials,redirect:r.redirect,referrer:r.referrer,referrerPolicy:r.referrerPolicy,integrity:r.integrity,keepalive:r.keepalive,signal:r.signal,...l,headers:c},l.body&amp;&amp;(l.duplex=&quot;half&quot;)}else throw new TypeError(&quot;Invalid input type for fetch&quot;);return await e.rawHttpRequest(void 0,t,&quot;json&quot;,n,s,l,void 0)}async function rw(e,t,n,r,i){return await e.rawWebSocket(void 0,t,&quot;json&quot;,n,r||&quot;&quot;,i,void 0)}var Lr,Bt,Wn,we,Wt,rd,iw=(rd=class{constructor(e,t,n,r,i){le(this,Lr);le(this,Bt);le(this,Wn);le(this,we);le(this,Wt);oe(this,Lr,e),oe(this,Bt,t),oe(this,Wn,r),oe(this,we,i),oe(this,Wt,n)}async action(e){return await k(this,Bt).action(void 0,k(this,we),k(this,Wn),k(this,Wt),e.name,e.args,{signal:e.signal})}connect(){Z().debug(&quot;establishing connection from handle&quot;,{query:k(this,we)});const e=new aw(k(this,Lr),k(this,Bt),k(this,Wt),k(this,Wn),k(this,we));return k(this,Lr)[Gp](e)}async fetch(e,t){return nw(k(this,Bt),k(this,we),k(this,Wt),e,t)}async websocket(e,t){return rw(k(this,Bt),k(this,we),k(this,Wt),e,t)}async resolve({signal:e}={}){if(&quot;getForKey&quot;in k(this,we)||&quot;getOrCreateForKey&quot;in k(this,we)){let t;&quot;getForKey&quot;in k(this,we)?t=k(this,we).getForKey.name:&quot;getOrCreateForKey&quot;in k(this,we)?t=k(this,we).getOrCreateForKey.name:Xf(k(this,we));const n=await k(this,Bt).resolveActorId(void 0,k(this,we),k(this,Wn),k(this,Wt),e?{signal:e}:void 0);return oe(this,we,{getForId:{actorId:n,name:t}}),n}else{if(&quot;getForId&quot;in k(this,we))return k(this,we).getForId.actorId;&quot;create&quot;in k(this,we)?A0(!1,&quot;actorQuery cannot be create&quot;):Xf(k(this,we))}}},Lr=new WeakMap,Bt=new WeakMap,Wn=new WeakMap,we=new WeakMap,Wt=new WeakMap,rd),el=Symbol(&quot;actorConns&quot;),Gp=Symbol(&quot;createActorConnProxy&quot;),Li=Symbol(&quot;transport&quot;),id,sd,rs,Mr,Dr,Hn,ki,ld,sw=(ld=class{constructor(e,t){le(this,Hn);le(this,rs,!1);Rt(this,sd,new Set);le(this,Mr);le(this,Dr);Rt(this,id);oe(this,Mr,e),oe(this,Dr,(t==null?void 0:t.encoding)??&quot;cbor&quot;),this[Li]=(t==null?void 0:t.transport)??&quot;websocket&quot;}getForId(e,t,n){Z().debug(&quot;get handle to actor with id&quot;,{name:e,actorId:t,params:n==null?void 0:n.params});const r={getForId:{name:e,actorId:t}},i=ne(this,Hn,ki).call(this,n==null?void 0:n.params,r);return pi(i)}get(e,t,n){const r=typeof t==&quot;string&quot;?[t]:t||[];Z().debug(&quot;get handle to actor&quot;,{name:e,key:r,parameters:n==null?void 0:n.params});const i={getForKey:{name:e,key:r}},s=ne(this,Hn,ki).call(this,n==null?void 0:n.params,i);return pi(s)}getOrCreate(e,t,n){const r=typeof t==&quot;string&quot;?[t]:t||[];Z().debug(&quot;get or create handle to actor&quot;,{name:e,key:r,parameters:n==null?void 0:n.params,createInRegion:n==null?void 0:n.createInRegion});const i={getOrCreateForKey:{name:e,key:r,input:n==null?void 0:n.createWithInput,region:n==null?void 0:n.createInRegion}},s=ne(this,Hn,ki).call(this,n==null?void 0:n.params,i);return pi(s)}async create(e,t,n){const r=typeof t==&quot;string&quot;?[t]:t||[],i={create:{...n,name:e,key:r}};Z().debug(&quot;create actor handle&quot;,{name:e,key:r,parameters:n==null?void 0:n.params,create:i.create});const s=await k(this,Mr).resolveActorId(void 0,i,k(this,Dr),n==null?void 0:n.params,n!=null&amp;&amp;n.signal?{signal:n.signal}:void 0);Z().debug(&quot;created actor with ID&quot;,{name:e,key:r,actorId:s});const l={getForId:{name:e,actorId:s}},o=ne(this,Hn,ki).call(this,n==null?void 0:n.params,l);return pi(o)}[(sd=el,id=Li,Gp)](e){return this[el].add(e),e[Xp](),pi(e)}async dispose(){if(k(this,rs)){Z().warn(&quot;client already disconnected&quot;);return}oe(this,rs,!0),Z().debug(&quot;disposing client&quot;);const e=[];for(const t of this[el].values())e.push(t.dispose());await Promise.all(e)}},rs=new WeakMap,Mr=new WeakMap,Dr=new WeakMap,Hn=new WeakSet,ki=function(e,t){return new iw(this,k(this,Mr),e,k(this,Dr),t)},ld);function lw(e,t){const n=new sw(e,t);return new Proxy(n,{get:(r,i,s)=&gt;{if(typeof i==&quot;symbol&quot;||i in r){const l=Reflect.get(r,i,s);return typeof l==&quot;function&quot;?l.bind(r):l}if(typeof i==&quot;string&quot;)return{get:(l,o)=&gt;r.get(i,l,o),getOrCreate:(l,o)=&gt;r.getOrCreate(i,l,o),getForId:(l,o)=&gt;r.getForId(i,l,o),create:async(l,o={})=&gt;await r.create(i,l,o)}}})}function pi(e){const t=new Map;return new Proxy(e,{get(n,r,i){if(typeof r==&quot;symbol&quot;)return Reflect.get(n,r,i);if(r===&quot;constructor&quot;||r in n){const s=Reflect.get(n,r,i);return typeof s==&quot;function&quot;?s.bind(n):s}if(typeof r==&quot;string&quot;){if(r===&quot;then&quot;)return;let s=t.get(r);return s||(s=(...l)=&gt;n.action({name:r,args:l}),t.set(r,s)),s}},has(n,r){return typeof r==&quot;string&quot;?!0:Reflect.has(n,r)},getPrototypeOf(n){return Reflect.getPrototypeOf(n)},ownKeys(n){return Reflect.ownKeys(n)},getOwnPropertyDescriptor(n,r){const i=Reflect.getOwnPropertyDescriptor(n,r);if(i)return i;if(typeof r==&quot;string&quot;)return{configurable:!0,enumerable:!1,writable:!1,value:(...s)=&gt;n.action({name:r,args:s})}}})}function ow(e){if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer||e instanceof Uint8Array)return e.byteLength;if(typeof e==&quot;string&quot;)return e.length;dt(e)}async function td(e){Z().debug(&quot;sending http request&quot;,{url:e.url,encoding:e.encoding});let t,n;(e.method===&quot;POST&quot;||e.method===&quot;PUT&quot;)&amp;&amp;(e.encoding===&quot;json&quot;?(t=&quot;application/json&quot;,n=JSON.stringify(e.body)):e.encoding===&quot;cbor&quot;?(t=&quot;application/octet-stream&quot;,n=$p(e.body)):dt(e.encoding));let r;try{r=await(e.customFetch??fetch)(new Request(e.url,{method:e.method,headers:{...e.headers,...t?{&quot;Content-Type&quot;:t}:{},&quot;User-Agent&quot;:Ys()},body:n,credentials:&quot;include&quot;,signal:e.signal}))}catch(s){throw new Bo(`Request failed: ${s}`,{cause:s})}if(!r.ok){const s=await r.arrayBuffer();let l;try{if(e.encoding===&quot;json&quot;){const o=new TextDecoder().decode(s);l=JSON.parse(o)}else if(e.encoding===&quot;cbor&quot;){const o=new Uint8Array(s);l=Pi(o)}else dt(e.encoding)}catch{const a=new TextDecoder(&quot;utf-8&quot;,{fatal:!1}).decode(s);throw new Bo(`${r.statusText} (${r.status}):
${a}`)}throw new Ul(l.c,l.m,l.md)}if(e.skipParseResponse)return;let i;try{if(e.encoding===&quot;json&quot;)i=await r.json();else if(e.encoding===&quot;cbor&quot;){const s=await r.arrayBuffer(),l=new Uint8Array(s);i=Pi(l)}else dt(e.encoding)}catch(s){throw new Bo(`Failed to parse response: ${s}`,{cause:s})}return i}function Yp(e,t){if(e===&quot;json&quot;)return JSON.stringify(t);if(e===&quot;cbor&quot;)return $p(t);dt(e)}var Xp=Symbol(&quot;connect&quot;),an,is,zr,Zn,Qn,jr,de,un,cn,Mt,Ur,ss,ls,tt,fn,Kn,$r,St,Fr,b,nu,qp,em,tm,nm,ru,iu,su,lu,rm,im,ou,tl,sm,lm,nl,od,aw=(od=class{constructor(e,t,n,r,i){le(this,b);le(this,an,!1);le(this,is,new AbortController);le(this,zr,!1);le(this,Zn);le(this,Qn);le(this,jr);le(this,de);le(this,un,[]);le(this,cn,new Map);le(this,Mt,new Map);le(this,Ur,new Set);le(this,ss,0);le(this,ls);le(this,tt);le(this,fn);le(this,Kn);le(this,$r);le(this,St);le(this,Fr);this.client=e,this.driver=t,this.params=n,this.encodingKind=r,this.actorQuery=i,oe(this,fn,e),oe(this,Kn,t),oe(this,$r,n),oe(this,St,r),oe(this,Fr,i),oe(this,ls,setInterval(()=&gt;6e4))}async action(e){Z().debug(&quot;action&quot;,{name:e.name,args:e.args});const t=k(this,ss);oe(this,ss,k(this,ss)+1);const{promise:n,resolve:r,reject:i}=Promise.withResolvers();k(this,cn).set(t,{name:e.name,resolve:r,reject:i}),ne(this,b,tl).call(this,{b:{ar:{i:t,n:e.name,a:e.args}}});const{i:s,o:l}=await n;if(s!==t)throw new Error(`Request ID ${t} does not match response ID ${s}`);return l}[Xp](){ne(this,b,nu).call(this)}on(e,t){return ne(this,b,ou).call(this,e,t,!1)}once(e,t){return ne(this,b,ou).call(this,e,t,!0)}onError(e){return k(this,Ur).add(e),()=&gt;{k(this,Ur).delete(e)}}async dispose(){if(k(this,an)){Z().warn(&quot;connection already disconnected&quot;);return}if(oe(this,an,!0),Z().debug(&quot;disposing actor&quot;),clearInterval(k(this,ls)),k(this,is).abort(),k(this,fn)[el].delete(this),k(this,de))if(&quot;websocket&quot;in k(this,de)){const{promise:e,resolve:t}=Promise.withResolvers();k(this,de).websocket.addEventListener(&quot;close&quot;,()=&gt;{Z().debug(&quot;ws closed&quot;),t(void 0)}),k(this,de).websocket.close(),await e}else&quot;sse&quot;in k(this,de)?k(this,de).sse.close():dt(k(this,de));oe(this,de,void 0)}},an=new WeakMap,is=new WeakMap,zr=new WeakMap,Zn=new WeakMap,Qn=new WeakMap,jr=new WeakMap,de=new WeakMap,un=new WeakMap,cn=new WeakMap,Mt=new WeakMap,Ur=new WeakMap,ss=new WeakMap,ls=new WeakMap,tt=new WeakMap,fn=new WeakMap,Kn=new WeakMap,$r=new WeakMap,St=new WeakMap,Fr=new WeakMap,b=new WeakSet,nu=async function(){oe(this,zr,!0);try{await ew(ne(this,b,qp).bind(this),{forever:!0,minTimeout:250,maxTimeout:3e4,onFailedAttempt:e=&gt;{Z().warn(&quot;failed to reconnect&quot;,{attempt:e.attemptNumber,error:Cf(e)})},signal:k(this,is).signal})}catch(e){if(e.name===&quot;AbortError&quot;){Z().info(&quot;connection retry aborted&quot;);return}else throw e}oe(this,zr,!1)},qp=async function(){try{if(k(this,tt))throw new Error(&quot;#onOpenPromise already defined&quot;);oe(this,tt,Promise.withResolvers()),k(this,fn)[Li]===&quot;websocket&quot;?await ne(this,b,em).call(this):k(this,fn)[Li]===&quot;sse&quot;?await ne(this,b,tm).call(this):dt(k(this,fn)[Li]),await k(this,tt).promise}finally{oe(this,tt,void 0)}},em=async function({signal:e}={}){const t=await k(this,Kn).connectWebSocket(void 0,k(this,Fr),k(this,St),k(this,$r),e?{signal:e}:void 0);oe(this,de,{websocket:t}),t.addEventListener(&quot;open&quot;,()=&gt;{Z().debug(&quot;websocket open&quot;)}),t.addEventListener(&quot;message&quot;,async n=&gt;{ne(this,b,ru).call(this,n.data)}),t.addEventListener(&quot;close&quot;,n=&gt;{ne(this,b,iu).call(this,n)}),t.addEventListener(&quot;error&quot;,n=&gt;{ne(this,b,su).call(this)})},tm=async function({signal:e}={}){const t=await k(this,Kn).connectSse(void 0,k(this,Fr),k(this,St),k(this,$r),e?{signal:e}:void 0);oe(this,de,{sse:t}),t.onopen=()=&gt;{Z().debug(&quot;eventsource open&quot;)},t.onmessage=n=&gt;{ne(this,b,ru).call(this,n.data)},t.onerror=n=&gt;{t.readyState===t.CLOSED?ne(this,b,iu).call(this,new Event(&quot;error&quot;)):ne(this,b,su).call(this)}},nm=function(){Z().debug(&quot;socket open&quot;,{messageQueueLength:k(this,un).length}),k(this,tt)?k(this,tt).resolve(void 0):Z().warn(&quot;#onOpenPromise is undefined&quot;);for(const t of k(this,Mt).keys())ne(this,b,nl).call(this,t,!0);const e=k(this,un);oe(this,un,[]);for(const t of e)ne(this,b,tl).call(this,t)},ru=async function(e){var t;Z().trace(&quot;received message&quot;,{dataType:typeof e,isBlob:e instanceof Blob,isArrayBuffer:e instanceof ArrayBuffer});const n=await ne(this,b,lm).call(this,e);if(Z().trace(&quot;parsed message&quot;,{response:JSON.stringify(n).substring(0,100)+&quot;...&quot;}),&quot;i&quot;in n.b)oe(this,Zn,n.b.i.ai),oe(this,Qn,n.b.i.ci),oe(this,jr,n.b.i.ct),Z().trace(&quot;received init message&quot;,{actorId:k(this,Zn),connectionId:k(this,Qn)}),ne(this,b,nm).call(this);else if(&quot;e&quot;in n.b){const{c:r,m:i,md:s,ai:l}=n.b.e;if(l){const o=ne(this,b,lu).call(this,l);Z().warn(&quot;action error&quot;,{actionId:l,actionName:o==null?void 0:o.name,code:r,message:i,metadata:s}),o.reject(new Ul(r,i,s))}else{Z().warn(&quot;connection error&quot;,{code:r,message:i,metadata:s});const o=new Ul(r,i,s);k(this,tt)&amp;&amp;k(this,tt).reject(o);for(const[a,u]of k(this,cn).entries())u.reject(o),k(this,cn).delete(a);ne(this,b,im).call(this,o)}}else if(&quot;ar&quot;in n.b){const{i:r,o:i}=n.b.ar;Z().trace(&quot;received action response&quot;,{actionId:r,outputType:i});const s=ne(this,b,lu).call(this,r);Z().trace(&quot;resolving action promise&quot;,{actionId:r,actionName:s==null?void 0:s.name}),s.resolve(n.b.ar)}else&quot;ev&quot;in n.b?(Z().trace(&quot;received event&quot;,{name:n.b.ev.n,argsCount:(t=n.b.ev.a)==null?void 0:t.length}),ne(this,b,rm).call(this,n.b.ev)):dt(n.b)},iu=function(e){k(this,tt)&amp;&amp;k(this,tt).reject(new Error(&quot;Closed&quot;));const t=e;t.wasClean?Z().info(&quot;socket closed&quot;,{code:t.code,reason:t.reason,wasClean:t.wasClean}):Z().warn(&quot;socket closed&quot;,{code:t.code,reason:t.reason,wasClean:t.wasClean}),oe(this,de,void 0),!k(this,an)&amp;&amp;!k(this,zr)&amp;&amp;ne(this,b,nu).call(this)},su=function(){k(this,an)||Z().warn(&quot;socket error&quot;)},lu=function(e){const t=k(this,cn).get(e);if(!t)throw new xi(`No in flight response for ${e}`);return k(this,cn).delete(e),t},rm=function(e){const{n:t,a:n}=e,r=k(this,Mt).get(t);if(r){for(const i of[...r])i.callback(...n),i.once&amp;&amp;r.delete(i);r.size===0&amp;&amp;k(this,Mt).delete(t)}},im=function(e){for(const t of[...k(this,Ur)])try{t(e)}catch(n){Z().error(&quot;Error in connection error handler&quot;,{error:Cf(n)})}},ou=function(e,t,n){const r={callback:t,once:n};let i=k(this,Mt).get(e);return i===void 0&amp;&amp;(i=new Set,k(this,Mt).set(e,i),ne(this,b,nl).call(this,e,!0)),i.add(r),()=&gt;{const s=k(this,Mt).get(e);s&amp;&amp;(s.delete(r),s.size===0&amp;&amp;(k(this,Mt).delete(e),ne(this,b,nl).call(this,e,!1)))}},tl=function(e,t){if(k(this,an))throw new tw;let n=!1;if(!k(this,de))n=!0;else if(&quot;websocket&quot;in k(this,de))if(k(this,de).websocket.readyState===1)try{const r=Yp(k(this,St),e);k(this,de).websocket.send(r),Z().trace(&quot;sent websocket message&quot;,{len:ow(r)})}catch(r){Z().warn(&quot;failed to send message, added to queue&quot;,{error:r}),n=!0}else n=!0;else&quot;sse&quot;in k(this,de)?k(this,de).sse.readyState===1?ne(this,b,sm).call(this,e,t):n=!0:dt(k(this,de));!(t!=null&amp;&amp;t.ephemeral)&amp;&amp;n&amp;&amp;(k(this,un).push(e),Z().debug(&quot;queued connection message&quot;))},sm=async function(e,t){try{if(!k(this,Zn)||!k(this,Qn)||!k(this,jr))throw new xi(&quot;Missing connection ID or token.&quot;);Z().trace(&quot;sent http message&quot;,{message:JSON.stringify(e).substring(0,100)+&quot;...&quot;});const n=await k(this,Kn).sendHttpMessage(void 0,k(this,Zn),k(this,St),k(this,Qn),k(this,jr),e,t!=null&amp;&amp;t.signal?{signal:t.signal}:void 0);if(!n.ok)throw new xi(`Publish message over HTTP error (${n.statusText}):
${await n.text()}`);await n.json()}catch(n){Z().warn(&quot;failed to send message, added to queue&quot;,{error:n}),t!=null&amp;&amp;t.ephemeral||k(this,un).unshift(e)}},lm=async function(e){if(k(this,St)===&quot;json&quot;){if(typeof e!=&quot;string&quot;)throw new Error(&quot;received non-string for json parse&quot;);return JSON.parse(e)}else if(k(this,St)===&quot;cbor&quot;){if(k(this,de))if(&quot;sse&quot;in k(this,de))if(typeof e==&quot;string&quot;){const t=atob(e);e=new Uint8Array([...t].map(n=&gt;n.charCodeAt(0)))}else throw new xi(`Expected data to be a string for SSE, got ${e}.`);else&quot;websocket&quot;in k(this,de)||dt(k(this,de));else throw new Error(&quot;Cannot parse message when no transport defined&quot;);if(e instanceof Blob)return Pi(new Uint8Array(await e.arrayBuffer()));if(e instanceof ArrayBuffer)return Pi(new Uint8Array(e));if(e instanceof Uint8Array)return Pi(e);throw new Error(`received non-binary type for cbor parse: ${typeof e}`)}else dt(k(this,St))},nl=function(e,t){ne(this,b,tl).call(this,{b:{sr:{e,s:t}}},{ephemeral:!0})},od),js=null;async function uw(){return js!==null||(js=(async()=&gt;{let e;try{e=(await Tp(()=&gt;import(&quot;./index-z2Dkjsn_.js&quot;),[])).EventSource,Z().debug(&quot;using eventsource from npm&quot;)}catch{e=class{constructor(){throw new Error(&#39;EventSource support requires installing the &quot;eventsource&quot; peer dependency.&#39;)}},Z().debug(&quot;using mock eventsource&quot;)}return e})()),js}function cw(e){const t=(async()=&gt;{const[r,i]=await Promise.all([T0(),uw()]);return{WebSocket:r,EventSource:i}})();return{action:async(r,i,s,l,o,a,u)=&gt;(Z().debug(&quot;actor handle action&quot;,{name:o,args:a,query:i}),(await td({url:`${e}/registry/actors/actions/${encodeURIComponent(o)}`,method:&quot;POST&quot;,headers:{[hi]:s,[Ms]:JSON.stringify(i),...l!==void 0?{[Ds]:JSON.stringify(l)}:{}},body:{a},encoding:s,signal:u==null?void 0:u.signal})).o),resolveActorId:async(r,i,s,l)=&gt;{Z().debug(&quot;resolving actor ID&quot;,{query:i});try{const o=await td({url:`${e}/registry/actors/resolve`,method:&quot;POST&quot;,headers:{[hi]:s,[Ms]:JSON.stringify(i),...l!==void 0?{[Ds]:JSON.stringify(l)}:{}},body:{},encoding:s});return Z().debug(&quot;resolved actor ID&quot;,{actorId:o.i}),o.i}catch(o){throw Z().error(&quot;failed to resolve actor ID&quot;,{error:o}),o instanceof Ul?o:new xi(`Failed to resolve actor ID: ${String(o)}`)}},connectWebSocket:async(r,i,s,l)=&gt;{const{WebSocket:o}=await t,u=`${e.replace(/^http:/,&quot;ws:&quot;).replace(/^https:/,&quot;wss:&quot;)}/registry/actors/connect/websocket`,c=[`query.${encodeURIComponent(JSON.stringify(i))}`,`encoding.${s}`];l&amp;&amp;c.push(`conn_params.${encodeURIComponent(JSON.stringify(l))}`),c.push(&quot;rivetkit&quot;),Z().debug(&quot;connecting to websocket&quot;,{url:u});const p=new o(u,c);if(s===&quot;cbor&quot;)p.binaryType=&quot;arraybuffer&quot;;else if(s===&quot;json&quot;)try{p.binaryType=&quot;blob&quot;}catch{}else dt(s);return p},connectSse:async(r,i,s,l)=&gt;{const{EventSource:o}=await t,a=`${e}/registry/actors/connect/sse`;return Z().debug(&quot;connecting to sse&quot;,{url:a}),new o(a,{fetch:(c,p)=&gt;fetch(c,{...p,headers:{...p==null?void 0:p.headers,&quot;User-Agent&quot;:Ys(),[hi]:s,[Ms]:JSON.stringify(i),...l!==void 0?{[Ds]:JSON.stringify(l)}:{}},credentials:&quot;include&quot;})})},sendHttpMessage:async(r,i,s,l,o,a)=&gt;{const u=Yp(s,a);return await fetch(`${e}/registry/actors/message`,{method:&quot;POST&quot;,headers:{&quot;User-Agent&quot;:Ys(),[hi]:s,[S0]:i,[E0]:l,[C0]:o},body:u,credentials:&quot;include&quot;})},rawHttpRequest:async(r,i,s,l,o,a)=&gt;{const u=o.startsWith(&quot;/&quot;)?o.slice(1):o,c=`${e}/registry/actors/raw/http/${u}`;Z().debug(&quot;rewriting http url&quot;,{from:o,to:c});const p=new Headers(a.headers);return p.set(&quot;User-Agent&quot;,Ys()),p.set(Ms,JSON.stringify(i)),p.set(hi,s),l!==void 0&amp;&amp;p.set(Ds,JSON.stringify(l)),await fetch(c,{...a,headers:p})},rawWebSocket:async(r,i,s,l,o,a)=&gt;{const{WebSocket:u}=await t,c=e.replace(/^http:/,&quot;ws:&quot;).replace(/^https:/,&quot;wss:&quot;),p=o.startsWith(&quot;/&quot;)?o.slice(1):o,y=`${c}/registry/actors/raw/websocket/${p}`;Z().debug(&quot;rewriting websocket url&quot;,{from:o,to:y});const w=[];return w.push(`query.${encodeURIComponent(JSON.stringify(i))}`),w.push(`encoding.${s}`),l&amp;&amp;w.push(`conn_params.${encodeURIComponent(JSON.stringify(l))}`),w.push(&quot;rivetkit&quot;),a&amp;&amp;(Array.isArray(a)?w.push(...a):w.push(a)),Z().debug(&quot;opening raw websocket&quot;,{url:y}),new u(y,w)}}}function fw(e,t){const n=cw(e);return lw(n,t)}function dw(e,t={}){const{getOrCreateActor:n}=Vv(e,t);function r(i){const{mount:s,setState:l,state:o}=n(i);We.useEffect(()=&gt;{l(c=&gt;(c.opts={...i,enabled:i.enabled??!0},c))},[i,l]),We.useEffect(()=&gt;s(),[s]);const a=Sf(o)||{};function u(c,p){const y=We.useRef(p),w=Sf(o)||{};We.useEffect(()=&gt;{y.current=p},[p]),We.useEffect(()=&gt;{if(!(w!=null&amp;&amp;w.connection))return;function _(...E){y.current(...E)}return w.connection.on(c,_)},[w.connection,w.isConnected,w.hash,c])}return{...a,useEvent:u}}return{useActor:r}}const hw=fw(&quot;http://localhost:8080&quot;),{useActor:pw}=dw(hw);function mw(){const[e,t]=We.useState([]),[n,r]=We.useState(0),[i,s]=We.useState(0),[l,o]=We.useState(null),a=pw({name:&quot;streamProcessor&quot;,key:[&quot;global&quot;]});We.useEffect(()=&gt;{a.connection&amp;&amp;a.connection.getStats().then(w=&gt;{t(w.topValues),s(w.totalCount),o(w.highestValue)})},[a.connection]),a.useEvent(&quot;updated&quot;,({topValues:w,totalCount:_,highestValue:E})=&gt;{t(w),s(_),o(E)});const u=async()=&gt;{a.connection&amp;&amp;!isNaN(n)&amp;&amp;(await a.connection.addValue(n),r(0))},c=async()=&gt;{if(a.connection){const w=await a.connection.reset();t(w.topValues),s(w.totalCount),o(w.highestValue)}},p=w=&gt;{w.preventDefault(),u()},y=()=&gt;{const w=Math.floor(Math.random()*1e3)+1;r(w)};return Y.jsxs(&quot;div&quot;,{className:&quot;app-container&quot;,children:[Y.jsxs(&quot;div&quot;,{className:&quot;header&quot;,children:[Y.jsx(&quot;h1&quot;,{children:&quot;Stream Processor&quot;}),Y.jsx(&quot;p&quot;,{children:&quot;Real-time top-3 value tracking with RivetKit&quot;})]}),Y.jsxs(&quot;div&quot;,{className:&quot;info-box&quot;,children:[Y.jsx(&quot;h3&quot;,{children:&quot;How it works&quot;}),Y.jsx(&quot;p&quot;,{children:&quot;This stream processor maintains the top 3 highest values in real-time. Add numbers and watch as the system automatically keeps track of the highest values. All connected clients see updates immediately when new values are added.&quot;})]}),Y.jsxs(&quot;div&quot;,{className:&quot;content&quot;,children:[Y.jsx(&quot;div&quot;,{className:&quot;top-values-section&quot;,children:Y.jsxs(&quot;div&quot;,{className:&quot;top-values-list&quot;,children:[Y.jsx(&quot;h3&quot;,{children:&quot;🏆 Top 3 Values&quot;}),e.length===0?Y.jsxs(&quot;div&quot;,{className:&quot;empty-state&quot;,children:[&quot;No values added yet.&quot;,Y.jsx(&quot;br&quot;,{}),&quot;Add some numbers to get started!&quot;]}):e.map((w,_)=&gt;Y.jsxs(&quot;div&quot;,{className:&quot;value-item&quot;,children:[Y.jsxs(&quot;span&quot;,{className:&quot;value-rank&quot;,children:[&quot;#&quot;,_+1]}),Y.jsx(&quot;span&quot;,{className:&quot;value-number&quot;,children:w.toLocaleString()})]},`${w}-${_}`))]})}),Y.jsxs(&quot;div&quot;,{className:&quot;input-section&quot;,children:[Y.jsxs(&quot;form&quot;,{onSubmit:p,className:&quot;input-form&quot;,children:[Y.jsx(&quot;h3&quot;,{children:&quot;Add New Value&quot;}),Y.jsxs(&quot;div&quot;,{className:&quot;input-group&quot;,children:[Y.jsx(&quot;label&quot;,{htmlFor:&quot;value-input&quot;,children:&quot;Number:&quot;}),Y.jsx(&quot;input&quot;,{id:&quot;value-input&quot;,type:&quot;number&quot;,value:n||&quot;&quot;,onChange:w=&gt;r(Number(w.target.value)),placeholder:&quot;Enter any number...&quot;,disabled:!a.connection})]}),Y.jsx(&quot;button&quot;,{type:&quot;submit&quot;,className:&quot;submit-button&quot;,disabled:!a.connection||isNaN(n),children:&quot;Add to Stream&quot;})]}),Y.jsxs(&quot;div&quot;,{style:{marginTop:&quot;15px&quot;,display:&quot;flex&quot;,gap:&quot;10px&quot;},children:[Y.jsx(&quot;button&quot;,{onClick:y,style:{flex:1,padding:&quot;8px&quot;,backgroundColor:&quot;#28a745&quot;,color:&quot;white&quot;,border:&quot;none&quot;,borderRadius:&quot;4px&quot;,cursor:&quot;pointer&quot;},children:&quot;Random Value&quot;}),Y.jsx(&quot;button&quot;,{onClick:c,disabled:!a.connection,style:{flex:1,padding:&quot;8px&quot;,backgroundColor:&quot;#dc3545&quot;,color:&quot;white&quot;,border:&quot;none&quot;,borderRadius:&quot;4px&quot;,cursor:&quot;pointer&quot;},children:&quot;Reset Stream&quot;})]})]})]}),Y.jsxs(&quot;div&quot;,{className:&quot;stats&quot;,children:[Y.jsxs(&quot;div&quot;,{className:&quot;stat-item&quot;,children:[Y.jsx(&quot;div&quot;,{className:&quot;stat-value&quot;,children:i}),Y.jsx(&quot;div&quot;,{className:&quot;stat-label&quot;,children:&quot;Total Values&quot;})]}),Y.jsxs(&quot;div&quot;,{className:&quot;stat-item&quot;,children:[Y.jsx(&quot;div&quot;,{className:&quot;stat-value&quot;,children:(l==null?void 0:l.toLocaleString())||&quot;—&quot;}),Y.jsx(&quot;div&quot;,{className:&quot;stat-label&quot;,children:&quot;Highest Value&quot;})]}),Y.jsxs(&quot;div&quot;,{className:&quot;stat-item&quot;,children:[Y.jsx(&quot;div&quot;,{className:&quot;stat-value&quot;,children:e.length}),Y.jsx(&quot;div&quot;,{className:&quot;stat-label&quot;,children:&quot;Top Values Count&quot;})]})]})]})}const om=document.getElementById(&quot;root&quot;);if(!om)throw new Error(&quot;Root element not found&quot;);xp(om).render(Y.jsx(We.StrictMode,{children:Y.jsx(mw,{})}));export{ad as g};
">
<input type="hidden" name="project[files][dist/assets/index-z2Dkjsn_.js]" value="class V extends Error{constructor(e,s){super(e),this.name=&quot;ParseError&quot;,this.type=s.type,this.field=s.field,this.value=s.value,this.line=s.line}}function A(t){}function et(t){if(typeof t==&quot;function&quot;)throw new TypeError(&quot;`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?&quot;);const{onEvent:e=A,onError:s=A,onRetry:i=A,onComment:l}=t;let r=&quot;&quot;,d=!0,u,E=&quot;&quot;,f=&quot;&quot;;function $(a){const h=d?a.replace(/^\xEF\xBB\xBF/,&quot;&quot;):a,[m,P]=st(`${r}${h}`);for(const D of m)W(D);r=P,d=!1}function W(a){if(a===&quot;&quot;){U();return}if(a.startsWith(&quot;:&quot;)){l&amp;&amp;l(a.slice(a.startsWith(&quot;: &quot;)?2:1));return}const h=a.indexOf(&quot;:&quot;);if(h!==-1){const m=a.slice(0,h),P=a[h+1]===&quot; &quot;?2:1,D=a.slice(h+P);S(m,D,a);return}S(a,&quot;&quot;,a)}function S(a,h,m){switch(a){case&quot;event&quot;:f=h;break;case&quot;data&quot;:E=`${E}${h}
`;break;case&quot;id&quot;:u=h.includes(&quot;\0&quot;)?void 0:h;break;case&quot;retry&quot;:/^\d+$/.test(h)?i(parseInt(h,10)):s(new V(`Invalid \`retry\` value: &quot;${h}&quot;`,{type:&quot;invalid-retry&quot;,value:h,line:m}));break;default:s(new V(`Unknown field &quot;${a.length&gt;20?`${a.slice(0,20)}…`:a}&quot;`,{type:&quot;unknown-field&quot;,field:a,value:h,line:m}));break}}function U(){E.length&gt;0&amp;&amp;e({id:u,event:f||void 0,data:E.endsWith(`
`)?E.slice(0,-1):E}),u=void 0,E=&quot;&quot;,f=&quot;&quot;}function T(a={}){r&amp;&amp;a.consume&amp;&amp;W(r),d=!0,u=void 0,E=&quot;&quot;,f=&quot;&quot;,r=&quot;&quot;}return{feed:$,reset:T}}function st(t){const e=[];let s=&quot;&quot;,i=0;for(;i&lt;t.length;){const l=t.indexOf(&quot;\r&quot;,i),r=t.indexOf(`
`,i);let d=-1;if(l!==-1&amp;&amp;r!==-1?d=Math.min(l,r):l!==-1?d=l:r!==-1&amp;&amp;(d=r),d===-1){s=t.slice(i);break}else{const u=t.slice(i,d);e.push(u),i=d+1,t[i-1]===&quot;\r&quot;&amp;&amp;t[i]===`
`&amp;&amp;i++}}return[e,s]}class X extends Event{constructor(e,s){var i,l;super(e),this.code=(i=s==null?void 0:s.code)!=null?i:void 0,this.message=(l=s==null?void 0:s.message)!=null?l:void 0}[Symbol.for(&quot;nodejs.util.inspect.custom&quot;)](e,s,i){return i(Y(this),s)}[Symbol.for(&quot;Deno.customInspect&quot;)](e,s){return e(Y(this),s)}}function nt(t){const e=globalThis.DOMException;return typeof e==&quot;function&quot;?new e(t,&quot;SyntaxError&quot;):new SyntaxError(t)}function F(t){return t instanceof Error?&quot;errors&quot;in t&amp;&amp;Array.isArray(t.errors)?t.errors.map(F).join(&quot;, &quot;):&quot;cause&quot;in t&amp;&amp;t.cause instanceof Error?`${t}: ${F(t.cause)}`:t.message:`${t}`}function Y(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var tt=t=&gt;{throw TypeError(t)},Q=(t,e,s)=&gt;e.has(t)||tt(&quot;Cannot &quot;+s),n=(t,e,s)=&gt;(Q(t,e,&quot;read from private field&quot;),s?s.call(t):e.get(t)),c=(t,e,s)=&gt;e.has(t)?tt(&quot;Cannot add the same private member more than once&quot;):e instanceof WeakSet?e.add(t):e.set(t,s),o=(t,e,s,i)=&gt;(Q(t,e,&quot;write to private field&quot;),e.set(t,s),s),w=(t,e,s)=&gt;(Q(t,e,&quot;access private method&quot;),s),p,_,y,I,R,L,b,N,g,C,k,x,M,v,B,q,H,Z,j,z,O,J,K;class G extends EventTarget{constructor(e,s){var i,l;super(),c(this,v),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,c(this,p),c(this,_),c(this,y),c(this,I),c(this,R),c(this,L),c(this,b),c(this,N,null),c(this,g),c(this,C),c(this,k,null),c(this,x,null),c(this,M,null),c(this,q,async r=&gt;{var d;n(this,C).reset();const{body:u,redirected:E,status:f,headers:$}=r;if(f===204){w(this,v,O).call(this,&quot;Server sent HTTP 204, not reconnecting&quot;,204),this.close();return}if(E?o(this,y,new URL(r.url)):o(this,y,void 0),f!==200){w(this,v,O).call(this,`Non-200 status code (${f})`,f);return}if(!($.get(&quot;content-type&quot;)||&quot;&quot;).startsWith(&quot;text/event-stream&quot;)){w(this,v,O).call(this,&#39;Invalid content type, expected &quot;text/event-stream&quot;&#39;,f);return}if(n(this,p)===this.CLOSED)return;o(this,p,this.OPEN);const W=new Event(&quot;open&quot;);if((d=n(this,M))==null||d.call(this,W),this.dispatchEvent(W),typeof u!=&quot;object&quot;||!u||!(&quot;getReader&quot;in u)){w(this,v,O).call(this,&quot;Invalid response body, expected a web ReadableStream&quot;,f),this.close();return}const S=new TextDecoder,U=u.getReader();let T=!0;do{const{done:a,value:h}=await U.read();h&amp;&amp;n(this,C).feed(S.decode(h,{stream:!a})),a&amp;&amp;(T=!1,n(this,C).reset(),w(this,v,J).call(this))}while(T)}),c(this,H,r=&gt;{o(this,g,void 0),!(r.name===&quot;AbortError&quot;||r.type===&quot;aborted&quot;)&amp;&amp;w(this,v,J).call(this,F(r))}),c(this,j,r=&gt;{typeof r.id==&quot;string&quot;&amp;&amp;o(this,N,r.id);const d=new MessageEvent(r.event||&quot;message&quot;,{data:r.data,origin:n(this,y)?n(this,y).origin:n(this,_).origin,lastEventId:r.id||&quot;&quot;});n(this,x)&amp;&amp;(!r.event||r.event===&quot;message&quot;)&amp;&amp;n(this,x).call(this,d),this.dispatchEvent(d)}),c(this,z,r=&gt;{o(this,L,r)}),c(this,K,()=&gt;{o(this,b,void 0),n(this,p)===this.CONNECTING&amp;&amp;w(this,v,B).call(this)});try{if(e instanceof URL)o(this,_,e);else if(typeof e==&quot;string&quot;)o(this,_,new URL(e,it()));else throw new Error(&quot;Invalid URL&quot;)}catch{throw nt(&quot;An invalid or illegal string was specified&quot;)}o(this,C,et({onEvent:n(this,j),onRetry:n(this,z)})),o(this,p,this.CONNECTING),o(this,L,3e3),o(this,R,(i=s==null?void 0:s.fetch)!=null?i:globalThis.fetch),o(this,I,(l=s==null?void 0:s.withCredentials)!=null?l:!1),w(this,v,B).call(this)}get readyState(){return n(this,p)}get url(){return n(this,_).href}get withCredentials(){return n(this,I)}get onerror(){return n(this,k)}set onerror(e){o(this,k,e)}get onmessage(){return n(this,x)}set onmessage(e){o(this,x,e)}get onopen(){return n(this,M)}set onopen(e){o(this,M,e)}addEventListener(e,s,i){const l=s;super.addEventListener(e,l,i)}removeEventListener(e,s,i){const l=s;super.removeEventListener(e,l,i)}close(){n(this,b)&amp;&amp;clearTimeout(n(this,b)),n(this,p)!==this.CLOSED&amp;&amp;(n(this,g)&amp;&amp;n(this,g).abort(),o(this,p,this.CLOSED),o(this,g,void 0))}}p=new WeakMap,_=new WeakMap,y=new WeakMap,I=new WeakMap,R=new WeakMap,L=new WeakMap,b=new WeakMap,N=new WeakMap,g=new WeakMap,C=new WeakMap,k=new WeakMap,x=new WeakMap,M=new WeakMap,v=new WeakSet,B=function(){o(this,p,this.CONNECTING),o(this,g,new AbortController),n(this,R)(n(this,_),w(this,v,Z).call(this)).then(n(this,q)).catch(n(this,H))},q=new WeakMap,H=new WeakMap,Z=function(){var t;const e={mode:&quot;cors&quot;,redirect:&quot;follow&quot;,headers:{Accept:&quot;text/event-stream&quot;,...n(this,N)?{&quot;Last-Event-ID&quot;:n(this,N)}:void 0},cache:&quot;no-store&quot;,signal:(t=n(this,g))==null?void 0:t.signal};return&quot;window&quot;in globalThis&amp;&amp;(e.credentials=this.withCredentials?&quot;include&quot;:&quot;same-origin&quot;),e},j=new WeakMap,z=new WeakMap,O=function(t,e){var s;n(this,p)!==this.CLOSED&amp;&amp;o(this,p,this.CLOSED);const i=new X(&quot;error&quot;,{code:e,message:t});(s=n(this,k))==null||s.call(this,i),this.dispatchEvent(i)},J=function(t,e){var s;if(n(this,p)===this.CLOSED)return;o(this,p,this.CONNECTING);const i=new X(&quot;error&quot;,{code:e,message:t});(s=n(this,k))==null||s.call(this,i),this.dispatchEvent(i),o(this,b,setTimeout(n(this,K),n(this,L)))},K=new WeakMap,G.CONNECTING=0,G.OPEN=1,G.CLOSED=2;function it(){const t=&quot;document&quot;in globalThis?globalThis.document:void 0;return t&amp;&amp;typeof t==&quot;object&quot;&amp;&amp;&quot;baseURI&quot;in t&amp;&amp;typeof t.baseURI==&quot;string&quot;?t.baseURI:void 0}export{X as ErrorEvent,G as EventSource};
">
<input type="hidden" name="project[files][src/backend/registry.ts]" value="import { actor, setup } from &quot;@rivetkit/actor&quot;;

export type StreamState = {
	topValues: number[];
};

const streamProcessor = actor({
	onAuth: () =&gt; {},
	// Persistent state that survives restarts: https://rivet.gg/docs/actors/state
	state: {
		topValues: [] as number[],
		totalValues: 0,
	},

	actions: {
		// Callable functions from clients: https://rivet.gg/docs/actors/actions
		getTopValues: (c) =&gt; c.state.topValues,

		getStats: (c) =&gt; ({
			topValues: c.state.topValues,
			totalCount: c.state.totalValues,
			highestValue: c.state.topValues.length &gt; 0 ? c.state.topValues[0] : null,
		}),

		addValue: (c, value: number) =&gt; {
			// State changes are automatically persisted
			c.state.totalValues++;

			// Insert new value if needed
			const insertAt = c.state.topValues.findIndex((v) =&gt; value &gt; v);
			if (insertAt === -1 &amp;&amp; c.state.topValues.length &lt; 3) {
				// Add to end if not better than existing values but we have space
				c.state.topValues.push(value);
			} else if (insertAt !== -1) {
				// Insert at the correct position
				c.state.topValues.splice(insertAt, 0, value);
			}

			// Keep only top 3
			if (c.state.topValues.length &gt; 3) {
				c.state.topValues.length = 3;
			}

			// Sort descending to ensure correct order
			c.state.topValues.sort((a, b) =&gt; b - a);

			const result = {
				topValues: c.state.topValues,
				totalCount: c.state.totalValues,
				highestValue:
					c.state.topValues.length &gt; 0 ? c.state.topValues[0] : null,
			};

			// Send events to all connected clients: https://rivet.gg/docs/actors/events
			c.broadcast(&quot;updated&quot;, result);

			return c.state.topValues;
		},

		reset: (c) =&gt; {
			c.state.topValues = [];
			c.state.totalValues = 0;

			const result = {
				topValues: c.state.topValues,
				totalCount: c.state.totalValues,
				highestValue: null,
			};

			c.broadcast(&quot;updated&quot;, result);

			return result;
		},
	},
});

// Register actors for use: https://rivet.gg/docs/setup
export const registry = setup({
	use: { streamProcessor },
});
">
<input type="hidden" name="project[files][src/backend/server.ts]" value="import { registry } from &quot;./registry&quot;;

registry.runServer({
	cors: {
		origin: &quot;http://localhost:5173&quot;,
	},
});
">
<input type="hidden" name="project[files][src/frontend/App.tsx]" value="import { createClient, createRivetKit } from &quot;@rivetkit/react&quot;;
import { useEffect, useState } from &quot;react&quot;;
import type { registry } from &quot;../backend/registry&quot;;

const client = createClient&lt;typeof registry&gt;(&quot;http://localhost:8080&quot;);
const { useActor } = createRivetKit(client);

export function App() {
	const [topValues, setTopValues] = useState&lt;number[]&gt;([]);
	const [newValue, setNewValue] = useState&lt;number&gt;(0);
	const [totalCount, setTotalCount] = useState&lt;number&gt;(0);
	const [highestValue, setHighestValue] = useState&lt;number | null&gt;(null);

	const streamProcessor = useActor({
		name: &quot;streamProcessor&quot;,
		key: [&quot;global&quot;],
	});

	// Load initial stats
	useEffect(() =&gt; {
		if (streamProcessor.connection) {
			streamProcessor.connection.getStats().then((stats) =&gt; {
				setTopValues(stats.topValues);
				setTotalCount(stats.totalCount);
				setHighestValue(stats.highestValue);
			});
		}
	}, [streamProcessor.connection]);

	// Listen for updates from other clients
	streamProcessor.useEvent(&quot;updated&quot;, ({ topValues, totalCount, highestValue }: {
		topValues: number[];
		totalCount: number;
		highestValue: number | null;
	}) =&gt; {
		setTopValues(topValues);
		setTotalCount(totalCount);
		setHighestValue(highestValue);
	});

	// Add a new value to the stream
	const handleAddValue = async () =&gt; {
		if (streamProcessor.connection &amp;&amp; !isNaN(newValue)) {
			await streamProcessor.connection.addValue(newValue);
			setNewValue(0);
		}
	};

	// Reset the stream
	const handleReset = async () =&gt; {
		if (streamProcessor.connection) {
			const result = await streamProcessor.connection.reset();
			setTopValues(result.topValues);
			setTotalCount(result.totalCount);
			setHighestValue(result.highestValue);
		}
	};

	// Handle form submission
	const handleSubmit = (e: React.FormEvent) =&gt; {
		e.preventDefault();
		handleAddValue();
	};

	// Handle random value generation
	const handleRandomValue = () =&gt; {
		const randomValue = Math.floor(Math.random() * 1000) + 1;
		setNewValue(randomValue);
	};

	return (
		&lt;div className=&quot;app-container&quot;&gt;
			&lt;div className=&quot;header&quot;&gt;
				&lt;h1&gt;Stream Processor&lt;/h1&gt;
				&lt;p&gt;Real-time top-3 value tracking with RivetKit&lt;/p&gt;
			&lt;/div&gt;

			&lt;div className=&quot;info-box&quot;&gt;
				&lt;h3&gt;How it works&lt;/h3&gt;
				&lt;p&gt;
					This stream processor maintains the top 3 highest values in real-time. 
					Add numbers and watch as the system automatically keeps track of the highest values. 
					All connected clients see updates immediately when new values are added.
				&lt;/p&gt;
			&lt;/div&gt;

			&lt;div className=&quot;content&quot;&gt;
				&lt;div className=&quot;top-values-section&quot;&gt;
					&lt;div className=&quot;top-values-list&quot;&gt;
						&lt;h3&gt;🏆 Top 3 Values&lt;/h3&gt;
						{topValues.length === 0 ? (
							&lt;div className=&quot;empty-state&quot;&gt;
								No values added yet.&lt;br /&gt;
								Add some numbers to get started!
							&lt;/div&gt;
						) : (
							topValues.map((value, index) =&gt; (
								&lt;div key={`${value}-${index}`} className=&quot;value-item&quot;&gt;
									&lt;span className=&quot;value-rank&quot;&gt;#{index + 1}&lt;/span&gt;
									&lt;span className=&quot;value-number&quot;&gt;{value.toLocaleString()}&lt;/span&gt;
								&lt;/div&gt;
							))
						)}
					&lt;/div&gt;
				&lt;/div&gt;

				&lt;div className=&quot;input-section&quot;&gt;
					&lt;form onSubmit={handleSubmit} className=&quot;input-form&quot;&gt;
						&lt;h3&gt;Add New Value&lt;/h3&gt;
						
						&lt;div className=&quot;input-group&quot;&gt;
							&lt;label htmlFor=&quot;value-input&quot;&gt;Number:&lt;/label&gt;
							&lt;input
								id=&quot;value-input&quot;
								type=&quot;number&quot;
								value={newValue || &quot;&quot;}
								onChange={(e) =&gt; setNewValue(Number(e.target.value))}
								placeholder=&quot;Enter any number...&quot;
								disabled={!streamProcessor.connection}
							/&gt;
						&lt;/div&gt;

						&lt;button 
							type=&quot;submit&quot; 
							className=&quot;submit-button&quot;
							disabled={!streamProcessor.connection || isNaN(newValue)}
						&gt;
							Add to Stream
						&lt;/button&gt;
					&lt;/form&gt;

					&lt;div style={{ marginTop: &quot;15px&quot;, display: &quot;flex&quot;, gap: &quot;10px&quot; }}&gt;
						&lt;button 
							onClick={handleRandomValue}
							style={{
								flex: 1,
								padding: &quot;8px&quot;,
								backgroundColor: &quot;#28a745&quot;,
								color: &quot;white&quot;,
								border: &quot;none&quot;,
								borderRadius: &quot;4px&quot;,
								cursor: &quot;pointer&quot;
							}}
						&gt;
							Random Value
						&lt;/button&gt;
						&lt;button 
							onClick={handleReset}
							disabled={!streamProcessor.connection}
							style={{
								flex: 1,
								padding: &quot;8px&quot;,
								backgroundColor: &quot;#dc3545&quot;,
								color: &quot;white&quot;,
								border: &quot;none&quot;,
								borderRadius: &quot;4px&quot;,
								cursor: &quot;pointer&quot;
							}}
						&gt;
							Reset Stream
						&lt;/button&gt;
					&lt;/div&gt;
				&lt;/div&gt;
			&lt;/div&gt;

			&lt;div className=&quot;stats&quot;&gt;
				&lt;div className=&quot;stat-item&quot;&gt;
					&lt;div className=&quot;stat-value&quot;&gt;{totalCount}&lt;/div&gt;
					&lt;div className=&quot;stat-label&quot;&gt;Total Values&lt;/div&gt;
				&lt;/div&gt;
				&lt;div className=&quot;stat-item&quot;&gt;
					&lt;div className=&quot;stat-value&quot;&gt;{highestValue?.toLocaleString() || &quot;—&quot;}&lt;/div&gt;
					&lt;div className=&quot;stat-label&quot;&gt;Highest Value&lt;/div&gt;
				&lt;/div&gt;
				&lt;div className=&quot;stat-item&quot;&gt;
					&lt;div className=&quot;stat-value&quot;&gt;{topValues.length}&lt;/div&gt;
					&lt;div className=&quot;stat-label&quot;&gt;Top Values Count&lt;/div&gt;
				&lt;/div&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	);
}">
<input type="hidden" name="project[files][src/frontend/index.html]" value="&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
    &lt;title&gt;Stream Processor - RivetKit&lt;/title&gt;
    &lt;style&gt;
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f0f0f0;
        }
        .app-container {
            max-width: 800px;
            margin: 0 auto;
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        .header h1 {
            color: #333;
            margin: 0;
        }
        .header p {
            color: #666;
            margin: 10px 0;
        }
        .content {
            display: flex;
            gap: 30px;
        }
        .top-values-section {
            flex: 1;
        }
        .input-section {
            flex: 1;
        }
        .top-values-list {
            background-color: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 20px;
            min-height: 150px;
        }
        .top-values-list h3 {
            margin: 0 0 15px 0;
            color: #495057;
            text-align: center;
        }
        .value-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            margin: 8px 0;
            background-color: white;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .value-rank {
            font-weight: bold;
            color: #6c757d;
            font-size: 14px;
        }
        .value-number {
            font-size: 18px;
            font-weight: bold;
            color: #495057;
        }
        .empty-state {
            text-align: center;
            color: #6c757d;
            font-style: italic;
            padding: 40px 20px;
        }
        .input-form {
            background-color: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 20px;
        }
        .input-form h3 {
            margin: 0 0 15px 0;
            color: #495057;
            text-align: center;
        }
        .input-group {
            margin-bottom: 15px;
        }
        .input-group label {
            display: block;
            margin-bottom: 8px;
            color: #495057;
            font-weight: bold;
        }
        .input-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 16px;
            box-sizing: border-box;
        }
        .input-group input:focus {
            outline: none;
            border-color: #80bdff;
            box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
        }
        .submit-button {
            width: 100%;
            padding: 12px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .submit-button:hover {
            background-color: #0056b3;
        }
        .submit-button:disabled {
            background-color: #6c757d;
            cursor: not-allowed;
        }
        .info-box {
            background-color: #e8f4f8;
            border: 1px solid #b8d4da;
            border-radius: 6px;
            padding: 15px;
            margin-bottom: 20px;
        }
        .info-box h3 {
            margin: 0 0 10px 0;
            color: #2c5aa0;
        }
        .info-box p {
            margin: 0;
            color: #555;
            line-height: 1.5;
        }
        .stats {
            display: flex;
            justify-content: space-around;
            margin-top: 20px;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 6px;
        }
        .stat-item {
            text-align: center;
        }
        .stat-value {
            font-size: 24px;
            font-weight: bold;
            color: #007bff;
        }
        .stat-label {
            color: #6c757d;
            font-size: 14px;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;
    &lt;script type=&quot;module&quot; src=&quot;/main.tsx&quot;&gt;&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;">
<input type="hidden" name="project[files][src/frontend/main.tsx]" value="import { StrictMode } from &quot;react&quot;;
import { createRoot } from &quot;react-dom/client&quot;;
import { App } from &quot;./App&quot;;

const root = document.getElementById(&quot;root&quot;);
if (!root) throw new Error(&quot;Root element not found&quot;);

createRoot(root).render(
	&lt;StrictMode&gt;
		&lt;App /&gt;
	&lt;/StrictMode&gt;
);">
<input type="hidden" name="project[description]" value="generated by https://pkg.pr.new">
<input type="hidden" name="project[template]" value="node">
<input type="hidden" name="project[title]" value="example-stream">
</form>
<script>document.getElementById("mainForm").submit();</script>

</body></html>