<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="# Tenant Dashboard for RivetKit

Example project demonstrating multi-tenant organization management with role-based access control using [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/tenant
npm install
```

### Development

```sh
npm run dev
```

Open your browser to `http://localhost:3000`

## Features

- **Role-Based Access Control**: Different permissions for admin and member roles
- **Multi-Tenant Architecture**: Organization-scoped data and permissions
- **Authentication**: Token-based authentication with connection state
- **Real-time Updates**: Live updates when data changes across clients
- **Permission Enforcement**: Server-side permission checks for all operations
- **User Management**: Admin can add members and update roles
- **Invoice Management**: Admin-only access to billing information
- **Dashboard Analytics**: Role-specific statistics and insights

## How it works

This tenant system demonstrates:

1. **Authentication**: Token-based authentication with `createConnState`
2. **Authorization**: Role-based access control with server-side permission checks
3. **Multi-Tenancy**: Organization-scoped data isolation
4. **Real-time Collaboration**: Live updates across connected clients
5. **Permission Enforcement**: Different UI and API access based on user roles

## Architecture

- **Backend**: RivetKit actor with authentication and role-based permissions
- **Frontend**: React application with conditional rendering based on user roles
- **Authentication**: Token-based with connection state for user context
- **Authorization**: Server-side permission checks for all sensitive operations

## User Roles

### Admin Users
- **Full Access**: Can view all data and perform all operations
- **Member Management**: Add new members and update member roles
- **Invoice Access**: View and manage organization invoices
- **Dashboard Stats**: Access to comprehensive analytics including revenue

### Member Users
- **Limited Access**: Can only view basic organization information
- **Member List**: View team members and their roles
- **Dashboard Stats**: Access to basic member statistics only
- **No Invoice Access**: Cannot view or manage billing information

### Data Isolation
- Organization-scoped data using actor keys
- User context stored in connection state
- Role-based data filtering and access control

## API Endpoints

### Public (All Authenticated Users)
- `getOrganization()` - Get organization information
- `getMembers()` - Get list of all members
- `getCurrentUser()` - Get current user information
- `getDashboardStats()` - Get basic statistics

### Admin Only
- `getInvoices()` - Get all invoices
- `addMember(member)` - Add new member
- `updateMemberRole(memberId, role)` - Update member role
- `markInvoicePaid(invoiceId)` - Mark invoice as paid

## Real-time Updates

The system broadcasts updates to all connected clients:

```typescript
// When member is added
c.broadcast(&quot;memberAdded&quot;, { member: newMember });

// When member role is updated
c.broadcast(&quot;memberUpdated&quot;, { member });

// When invoice is updated
c.broadcast(&quot;invoiceUpdated&quot;, { invoice });
```

## Use Cases

This tenant pattern is perfect for:

- **SaaS Applications**: Multi-tenant software with organization accounts
- **Team Management**: Internal tools with role-based access
- **Project Management**: Collaborative tools with permission levels
- **CRM Systems**: Customer relationship management with user roles
- **Enterprise Software**: Business applications with admin/user hierarchies
- **Learning Management**: Educational platforms with teacher/student roles

## Extending

This tenant system can be enhanced with:

### Advanced Authentication
- **OAuth Integration**: Google, GitHub, Microsoft authentication
- **JWT Tokens**: Stateless authentication with signed tokens
- **Multi-Factor Auth**: SMS, email, or authenticator app verification
- **Session Management**: Secure session handling and expiration

### Enhanced Authorization
- **Custom Roles**: Define custom roles beyond admin/member
- **Permissions**: Granular permissions for specific operations
- **Role Hierarchy**: Nested roles with inheritance
- **Resource-Level Access**: Per-resource permissions

### Multi-Tenancy Features
- **Organization Settings**: Configurable organization preferences
- **Billing Integration**: Stripe, PayPal, or other payment processors
- **Usage Tracking**: Monitor and limit resource usage per tenant
- **Data Export**: Allow tenants to export their data

### Advanced Features
- **Audit Logging**: Track all user actions and changes
- **Activity Feeds**: Real-time activity notifications
- **Team Invitations**: Invite users via email with signup flow
- **API Keys**: Generate API keys for external integrations
- **Webhooks**: Notify external systems of events

## Testing Different Roles

To test the role-based access control:

1. **Login as Alice (Admin)**:
   - Can view members and invoices
   - Can add new members
   - Can update member roles
   - Can mark invoices as paid
   - Sees full dashboard statistics

2. **Login as Bob/Charlie (Member)**:
   - Can view members only
   - Cannot access invoices
   - Cannot manage members
   - Sees limited dashboard statistics
   - Gets permission denied errors for admin operations

## Security Considerations

### Server-Side Validation
- All permission checks happen on the server
- Client-side UI is for user experience only
- Never trust client-side role information

### Token Management
- Use secure token storage (httpOnly cookies in production)
- Implement token refresh mechanisms
- Add token expiration and revocation

### Data Protection
- Sanitize all user inputs
- Use parameterized queries for database operations
- Implement rate limiting for API endpoints
- Log security events and failed authentication attempts

## Performance Considerations

### Caching
- Cache user roles and permissions
- Use Redis for session storage in production
- Implement query result caching

### Scalability
- Separate read and write operations
- Use database read replicas for heavy read workloads
- Implement proper indexing for user and organization queries

## License

Apache 2.0
">
<input type="hidden" name="project[files][package.json]" value="{&quot;name&quot;:&quot;example-tenant&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@bc35a9428bedf1e7f4e2572638a04bd55aa08aa6&quot;,&quot;@rivetkit/react&quot;:&quot;https://pkg.pr.new/rivet-gg/rivetkit/@rivetkit/react@bc35a9428bedf1e7f4e2572638a04bd55aa08aa6&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-tenant@0.9.9 build /home/runner/work/rivetkit/rivetkit/examples/tenant
&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  6.78 kB[22m[1m[22m[2m │ gzip:   1.37 kB[22m
[2m../../dist/[22m[2massets/[22m[36mbrowser-B1U10RM1.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-BhFzKEqs.js    [39m[1m[2m476.61 kB[22m[1m[22m[2m │ gzip: 133.70 kB[22m
[32m✓ built in 3.98s[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;Tenant Dashboard - RivetKit&lt;/title&gt;
    &lt;style&gt;
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f0f0f0;
        }
        .app-container {
            max-width: 1000px;
            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;
            padding-bottom: 20px;
            border-bottom: 2px solid #e9ecef;
        }
        .header h1 {
            color: #333;
            margin: 0;
        }
        .header p {
            color: #666;
            margin: 10px 0;
        }
        .login-section {
            text-align: center;
            padding: 40px 20px;
        }
        .login-section h2 {
            color: #333;
            margin-bottom: 20px;
        }
        .login-section p {
            color: #666;
            margin-bottom: 30px;
        }
        .login-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        .login-button {
            padding: 15px 30px;
            font-size: 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            min-width: 200px;
        }
        .login-button.admin {
            background-color: #dc3545;
            color: white;
        }
        .login-button.admin:hover {
            background-color: #c82333;
        }
        .login-button.member {
            background-color: #007bff;
            color: white;
        }
        .login-button.member:hover {
            background-color: #0056b3;
        }
        .user-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 6px;
        }
        .user-info .user-details {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .user-badge {
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
        }
        .user-badge.admin {
            background-color: #f8d7da;
            color: #721c24;
        }
        .user-badge.member {
            background-color: #d1ecf1;
            color: #0c5460;
        }
        .logout-button {
            padding: 8px 16px;
            background-color: #6c757d;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        .logout-button:hover {
            background-color: #5a6268;
        }
        .section {
            margin-bottom: 40px;
        }
        .section h3 {
            color: #333;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e9ecef;
        }
        .data-table {
            width: 100%;
            border-collapse: collapse;
            background-color: white;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .data-table th {
            background-color: #f8f9fa;
            padding: 12px;
            text-align: left;
            font-weight: bold;
            color: #495057;
            border-bottom: 2px solid #e9ecef;
        }
        .data-table td {
            padding: 12px;
            border-bottom: 1px solid #e9ecef;
        }
        .data-table tbody tr:hover {
            background-color: #f8f9fa;
        }
        .role-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
        }
        .role-badge.admin {
            background-color: #f8d7da;
            color: #721c24;
        }
        .role-badge.member {
            background-color: #d4edda;
            color: #155724;
        }
        .status-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
        }
        .status-badge.paid {
            background-color: #d4edda;
            color: #155724;
        }
        .status-badge.unpaid {
            background-color: #fff3cd;
            color: #856404;
        }
        .error-message {
            padding: 15px;
            background-color: #f8d7da;
            border: 1px solid #f5c6cb;
            border-radius: 6px;
            color: #721c24;
            margin-bottom: 20px;
        }
        .error-message h4 {
            margin: 0 0 10px 0;
            color: #721c24;
        }
        .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;
        }
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: #6c757d;
            font-style: italic;
        }
        .organization-header {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 20px;
            margin-bottom: 30px;
        }
        .organization-header h2 {
            margin: 0 0 10px 0;
            color: #333;
        }
        .organization-header p {
            margin: 0;
            color: #666;
        }
        @media (max-width: 768px) {
            .login-buttons {
                flex-direction: column;
                align-items: center;
            }
            .user-info {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
            .data-table {
                font-size: 14px;
            }
            .data-table th,
            .data-table td {
                padding: 8px;
            }
        }
    &lt;/style&gt;
  &lt;script type=&quot;module&quot; crossorigin src=&quot;/assets/index-BhFzKEqs.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/tenant.test.ts]" value="import { setupTest } from &quot;@rivetkit/actor/test&quot;;
import { expect, test, vi } from &quot;vitest&quot;;
import { registry } from &quot;../src/backend/registry&quot;;

// Mock authentication function
vi.mock(&quot;../src/backend/registry&quot;, async (importOriginal) =&gt; {
	const mod = await importOriginal&lt;typeof import(&quot;../src/backend/registry&quot;)&gt;();
	return {
		...mod,
		// We&#39;ll need to test without connection state since it requires auth
	};
});

test(&quot;Tenant organization can provide basic info&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const tenant = client.tenant.getOrCreate([&quot;test-org&quot;]);

	// Get organization info
	const orgInfo = await tenant.getOrganization();
	expect(orgInfo).toMatchObject({
		id: expect.any(String),
		name: expect.any(String),
		memberCount: expect.any(Number),
	});
	expect(orgInfo.memberCount).toBeGreaterThan(0);
});

test(&quot;Tenant organization tracks members&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const tenant = client.tenant.getOrCreate([&quot;test-members&quot;]);

	// Get all members
	const members = await tenant.getMembers();
	expect(Array.isArray(members)).toBe(true);
	expect(members.length).toBeGreaterThan(0);

	// Verify member structure
	members.forEach((member) =&gt; {
		expect(member).toMatchObject({
			id: expect.any(String),
			name: expect.any(String),
			email: expect.any(String),
			role: expect.stringMatching(/^(admin|member)$/),
		});
	});
});

test(&quot;Tenant organization provides dashboard stats&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const tenant = client.tenant.getOrCreate([&quot;test-stats&quot;]);

	// Get dashboard stats (without admin privileges)
	const stats = await tenant.getDashboardStats();
	expect(stats).toMatchObject({
		totalMembers: expect.any(Number),
		adminCount: expect.any(Number),
		memberCount: expect.any(Number),
	});

	// Verify member counts add up
	expect(stats.adminCount + stats.memberCount).toBe(stats.totalMembers);
	expect(stats.totalMembers).toBeGreaterThan(0);
	expect(stats.adminCount).toBeGreaterThan(0);
});

test(&quot;Tenant organization validates member roles&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const tenant = client.tenant.getOrCreate([&quot;test-roles&quot;]);

	const members = await tenant.getMembers();
	const orgInfo = await tenant.getOrganization();

	// Verify at least one admin exists
	const admins = members.filter((m) =&gt; m.role === &quot;admin&quot;);
	const regularMembers = members.filter((m) =&gt; m.role === &quot;member&quot;);

	expect(admins.length).toBeGreaterThan(0);
	expect(members.length).toBe(orgInfo.memberCount);
	expect(admins.length + regularMembers.length).toBe(members.length);
});

test(&quot;Tenant organization handles initial data correctly&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const tenant = client.tenant.getOrCreate([&quot;test-initial-data&quot;]);

	// Verify initial state has expected structure
	const members = await tenant.getMembers();
	const orgInfo = await tenant.getOrganization();

	expect(orgInfo.name).toBeTruthy();
	expect(orgInfo.id).toBeTruthy();
	expect(members.length).toBe(orgInfo.memberCount);

	// Verify we have the expected sample data
	expect(members.some((m) =&gt; m.role === &quot;admin&quot;)).toBe(true);
	expect(members.some((m) =&gt; m.role === &quot;member&quot;)).toBe(true);

	// Verify email formats
	members.forEach((member) =&gt; {
		expect(member.email).toMatch(/@/);
		expect(member.name).toBeTruthy();
		expect(member.id).toBeTruthy();
	});
});

test(&quot;Tenant organization member data consistency&quot;, async (ctx) =&gt; {
	const { client } = await setupTest(ctx, registry);
	const tenant = client.tenant.getOrCreate([&quot;test-consistency&quot;]);

	// Get data multiple times to verify consistency
	const members1 = await tenant.getMembers();
	const members2 = await tenant.getMembers();
	const orgInfo1 = await tenant.getOrganization();
	const orgInfo2 = await tenant.getOrganization();

	expect(members1).toEqual(members2);
	expect(orgInfo1).toEqual(orgInfo2);
	expect(members1.length).toBe(orgInfo1.memberCount);
});
">
<input type="hidden" name="project[files][dist/assets/browser-B1U10RM1.js]" value="import{g as a}from&quot;./index-BhFzKEqs.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-BhFzKEqs.js]" value="var rk=Object.defineProperty;var xm=e=&gt;{throw TypeError(e)};var ik=(e,t,n)=&gt;t in e?rk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ht=(e,t,n)=&gt;ik(e,typeof t!=&quot;symbol&quot;?t+&quot;&quot;:t,n),ku=(e,t,n)=&gt;t.has(e)||xm(&quot;Cannot &quot;+n);var I=(e,t,n)=&gt;(ku(e,t,&quot;read from private field&quot;),n?n.call(e):t.get(e)),me=(e,t,n)=&gt;t.has(e)?xm(&quot;Cannot add the same private member more than once&quot;):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,i)=&gt;(ku(e,t,&quot;write to private field&quot;),i?i.call(e,n):t.set(e,n),n),le=(e,t,n)=&gt;(ku(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 r of document.querySelectorAll(&#39;link[rel=&quot;modulepreload&quot;]&#39;))i(r);new MutationObserver(r=&gt;{for(const o of r)if(o.type===&quot;childList&quot;)for(const a of o.addedNodes)a.tagName===&quot;LINK&quot;&amp;&amp;a.rel===&quot;modulepreload&quot;&amp;&amp;i(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&amp;&amp;(o.integrity=r.integrity),r.referrerPolicy&amp;&amp;(o.referrerPolicy=r.referrerPolicy),r.crossOrigin===&quot;use-credentials&quot;?o.credentials=&quot;include&quot;:r.crossOrigin===&quot;anonymous&quot;?o.credentials=&quot;omit&quot;:o.credentials=&quot;same-origin&quot;,o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Ah(e){return e&amp;&amp;e.__esModule&amp;&amp;Object.prototype.hasOwnProperty.call(e,&quot;default&quot;)?e.default:e}var Dh={exports:{}},Ls={},Rh={exports:{}},ae={};/**
 * @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 Ho=Symbol.for(&quot;react.element&quot;),ok=Symbol.for(&quot;react.portal&quot;),ak=Symbol.for(&quot;react.fragment&quot;),sk=Symbol.for(&quot;react.strict_mode&quot;),uk=Symbol.for(&quot;react.profiler&quot;),lk=Symbol.for(&quot;react.provider&quot;),ck=Symbol.for(&quot;react.context&quot;),dk=Symbol.for(&quot;react.forward_ref&quot;),fk=Symbol.for(&quot;react.suspense&quot;),mk=Symbol.for(&quot;react.memo&quot;),pk=Symbol.for(&quot;react.lazy&quot;),bm=Symbol.iterator;function hk(e){return e===null||typeof e!=&quot;object&quot;?null:(e=bm&amp;&amp;e[bm]||e[&quot;@@iterator&quot;],typeof e==&quot;function&quot;?e:null)}var Zh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lh=Object.assign,Mh={};function Pi(e,t,n){this.props=e,this.context=t,this.refs=Mh,this.updater=n||Zh}Pi.prototype.isReactComponent={};Pi.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;)};Pi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,&quot;forceUpdate&quot;)};function Fh(){}Fh.prototype=Pi.prototype;function Ac(e,t,n){this.props=e,this.context=t,this.refs=Mh,this.updater=n||Zh}var Dc=Ac.prototype=new Fh;Dc.constructor=Ac;Lh(Dc,Pi.prototype);Dc.isPureReactComponent=!0;var Im=Array.isArray,Vh=Object.prototype.hasOwnProperty,Rc={current:null},Bh={key:!0,ref:!0,__self:!0,__source:!0};function Wh(e,t,n){var i,r={},o=null,a=null;if(t!=null)for(i in t.ref!==void 0&amp;&amp;(a=t.ref),t.key!==void 0&amp;&amp;(o=&quot;&quot;+t.key),t)Vh.call(t,i)&amp;&amp;!Bh.hasOwnProperty(i)&amp;&amp;(r[i]=t[i]);var s=arguments.length-2;if(s===1)r.children=n;else if(1&lt;s){for(var u=Array(s),l=0;l&lt;s;l++)u[l]=arguments[l+2];r.children=u}if(e&amp;&amp;e.defaultProps)for(i in s=e.defaultProps,s)r[i]===void 0&amp;&amp;(r[i]=s[i]);return{$$typeof:Ho,type:e,key:o,ref:a,props:r,_owner:Rc.current}}function vk(e,t){return{$$typeof:Ho,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Zc(e){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;e.$$typeof===Ho}function gk(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 zm=/\/+/g;function Su(e,t){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;e.key!=null?gk(&quot;&quot;+e.key):t.toString(36)}function Ea(e,t,n,i,r){var o=typeof e;(o===&quot;undefined&quot;||o===&quot;boolean&quot;)&amp;&amp;(e=null);var a=!1;if(e===null)a=!0;else switch(o){case&quot;string&quot;:case&quot;number&quot;:a=!0;break;case&quot;object&quot;:switch(e.$$typeof){case Ho:case ok:a=!0}}if(a)return a=e,r=r(a),e=i===&quot;&quot;?&quot;.&quot;+Su(a,0):i,Im(r)?(n=&quot;&quot;,e!=null&amp;&amp;(n=e.replace(zm,&quot;$&amp;/&quot;)+&quot;/&quot;),Ea(r,t,n,&quot;&quot;,function(l){return l})):r!=null&amp;&amp;(Zc(r)&amp;&amp;(r=vk(r,n+(!r.key||a&amp;&amp;a.key===r.key?&quot;&quot;:(&quot;&quot;+r.key).replace(zm,&quot;$&amp;/&quot;)+&quot;/&quot;)+e)),t.push(r)),1;if(a=0,i=i===&quot;&quot;?&quot;.&quot;:i+&quot;:&quot;,Im(e))for(var s=0;s&lt;e.length;s++){o=e[s];var u=i+Su(o,s);a+=Ea(o,t,n,u,r)}else if(u=hk(e),typeof u==&quot;function&quot;)for(e=u.call(e),s=0;!(o=e.next()).done;)o=o.value,u=i+Su(o,s++),a+=Ea(o,t,n,u,r);else if(o===&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 a}function oa(e,t,n){if(e==null)return e;var i=[],r=0;return Ea(e,i,&quot;&quot;,&quot;&quot;,function(o){return t.call(n,o,r++)}),i}function yk(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 it={current:null},Na={transition:null},_k={ReactCurrentDispatcher:it,ReactCurrentBatchConfig:Na,ReactCurrentOwner:Rc};function Jh(){throw Error(&quot;act(...) is not supported in production builds of React.&quot;)}ae.Children={map:oa,forEach:function(e,t,n){oa(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return oa(e,function(){t++}),t},toArray:function(e){return oa(e,function(t){return t})||[]},only:function(e){if(!Zc(e))throw Error(&quot;React.Children.only expected to receive a single React element child.&quot;);return e}};ae.Component=Pi;ae.Fragment=ak;ae.Profiler=uk;ae.PureComponent=Ac;ae.StrictMode=sk;ae.Suspense=fk;ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_k;ae.act=Jh;ae.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 i=Lh({},e.props),r=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&amp;&amp;(o=t.ref,a=Rc.current),t.key!==void 0&amp;&amp;(r=&quot;&quot;+t.key),e.type&amp;&amp;e.type.defaultProps)var s=e.type.defaultProps;for(u in t)Vh.call(t,u)&amp;&amp;!Bh.hasOwnProperty(u)&amp;&amp;(i[u]=t[u]===void 0&amp;&amp;s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)i.children=n;else if(1&lt;u){s=Array(u);for(var l=0;l&lt;u;l++)s[l]=arguments[l+2];i.children=s}return{$$typeof:Ho,type:e.type,key:r,ref:o,props:i,_owner:a}};ae.createContext=function(e){return e={$$typeof:ck,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:lk,_context:e},e.Consumer=e};ae.createElement=Wh;ae.createFactory=function(e){var t=Wh.bind(null,e);return t.type=e,t};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:dk,render:e}};ae.isValidElement=Zc;ae.lazy=function(e){return{$$typeof:pk,_payload:{_status:-1,_result:e},_init:yk}};ae.memo=function(e,t){return{$$typeof:mk,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=Na.transition;Na.transition={};try{e()}finally{Na.transition=t}};ae.unstable_act=Jh;ae.useCallback=function(e,t){return it.current.useCallback(e,t)};ae.useContext=function(e){return it.current.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e){return it.current.useDeferredValue(e)};ae.useEffect=function(e,t){return it.current.useEffect(e,t)};ae.useId=function(){return it.current.useId()};ae.useImperativeHandle=function(e,t,n){return it.current.useImperativeHandle(e,t,n)};ae.useInsertionEffect=function(e,t){return it.current.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return it.current.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return it.current.useMemo(e,t)};ae.useReducer=function(e,t,n){return it.current.useReducer(e,t,n)};ae.useRef=function(e){return it.current.useRef(e)};ae.useState=function(e){return it.current.useState(e)};ae.useSyncExternalStore=function(e,t,n){return it.current.useSyncExternalStore(e,t,n)};ae.useTransition=function(){return it.current.useTransition()};ae.version=&quot;18.3.1&quot;;Rh.exports=ae;var Ke=Rh.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 wk=Ke,$k=Symbol.for(&quot;react.element&quot;),kk=Symbol.for(&quot;react.fragment&quot;),Sk=Object.prototype.hasOwnProperty,xk=wk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bk={key:!0,ref:!0,__self:!0,__source:!0};function Kh(e,t,n){var i,r={},o=null,a=null;n!==void 0&amp;&amp;(o=&quot;&quot;+n),t.key!==void 0&amp;&amp;(o=&quot;&quot;+t.key),t.ref!==void 0&amp;&amp;(a=t.ref);for(i in t)Sk.call(t,i)&amp;&amp;!bk.hasOwnProperty(i)&amp;&amp;(r[i]=t[i]);if(e&amp;&amp;e.defaultProps)for(i in t=e.defaultProps,t)r[i]===void 0&amp;&amp;(r[i]=t[i]);return{$$typeof:$k,type:e,key:o,ref:a,props:r,_owner:xk.current}}Ls.Fragment=kk;Ls.jsx=Kh;Ls.jsxs=Kh;Dh.exports=Ls;var G=Dh.exports,Hh={exports:{}},St={},Gh={exports:{}},Qh={};/**
 * @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(E,D){var R=E.length;E.push(D);e:for(;0&lt;R;){var K=R-1&gt;&gt;&gt;1,Q=E[K];if(0&lt;r(Q,D))E[K]=D,E[R]=Q,R=K;else break e}}function n(E){return E.length===0?null:E[0]}function i(E){if(E.length===0)return null;var D=E[0],R=E.pop();if(R!==D){E[0]=R;e:for(var K=0,Q=E.length,Xn=Q&gt;&gt;&gt;1;K&lt;Xn;){var Yn=2*(K+1)-1,$u=E[Yn],qn=Yn+1,ia=E[qn];if(0&gt;r($u,R))qn&lt;Q&amp;&amp;0&gt;r(ia,$u)?(E[K]=ia,E[qn]=R,K=qn):(E[K]=$u,E[Yn]=R,K=Yn);else if(qn&lt;Q&amp;&amp;0&gt;r(ia,R))E[K]=ia,E[qn]=R,K=qn;else break e}}return D}function r(E,D){var R=E.sortIndex-D.sortIndex;return R!==0?R:E.id-D.id}if(typeof performance==&quot;object&quot;&amp;&amp;typeof performance.now==&quot;function&quot;){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],m=1,p=null,h=3,y=!1,g=!1,S=!1,z=typeof setTimeout==&quot;function&quot;?setTimeout:null,c=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 f(E){for(var D=n(l);D!==null;){if(D.callback===null)i(l);else if(D.startTime&lt;=E)i(l),D.sortIndex=D.expirationTime,t(u,D);else break;D=n(l)}}function k(E){if(S=!1,f(E),!g)if(n(u)!==null)g=!0,C(O);else{var D=n(l);D!==null&amp;&amp;j(k,D.startTime-E)}}function O(E,D){g=!1,S&amp;&amp;(S=!1,c(F),F=-1),y=!0;var R=h;try{for(f(D),p=n(u);p!==null&amp;&amp;(!(p.expirationTime&gt;D)||E&amp;&amp;!at());){var K=p.callback;if(typeof K==&quot;function&quot;){p.callback=null,h=p.priorityLevel;var Q=K(p.expirationTime&lt;=D);D=e.unstable_now(),typeof Q==&quot;function&quot;?p.callback=Q:p===n(u)&amp;&amp;i(u),f(D)}else i(u);p=n(u)}if(p!==null)var Xn=!0;else{var Yn=n(l);Yn!==null&amp;&amp;j(k,Yn.startTime-D),Xn=!1}return Xn}finally{p=null,h=R,y=!1}}var P=!1,L=null,F=-1,ge=5,ne=-1;function at(){return!(e.unstable_now()-ne&lt;ge)}function wn(){if(L!==null){var E=e.unstable_now();ne=E;var D=!0;try{D=L(!0,E)}finally{D?_():(P=!1,L=null)}}else P=!1}var _;if(typeof d==&quot;function&quot;)_=function(){d(wn)};else if(typeof MessageChannel&lt;&quot;u&quot;){var B=new MessageChannel,T=B.port2;B.port1.onmessage=wn,_=function(){T.postMessage(null)}}else _=function(){z(wn,0)};function C(E){L=E,P||(P=!0,_())}function j(E,D){F=z(function(){E(e.unstable_now())},D)}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(E){E.callback=null},e.unstable_continueExecution=function(){g||y||(g=!0,C(O))},e.unstable_forceFrameRate=function(E){0&gt;E||125&lt;E?console.error(&quot;forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported&quot;):ge=0&lt;E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(E){switch(h){case 1:case 2:case 3:var D=3;break;default:D=h}var R=h;h=D;try{return E()}finally{h=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,D){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var R=h;h=E;try{return D()}finally{h=R}},e.unstable_scheduleCallback=function(E,D,R){var K=e.unstable_now();switch(typeof R==&quot;object&quot;&amp;&amp;R!==null?(R=R.delay,R=typeof R==&quot;number&quot;&amp;&amp;0&lt;R?K+R:K):R=K,E){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=R+Q,E={id:m++,callback:D,priorityLevel:E,startTime:R,expirationTime:Q,sortIndex:-1},R&gt;K?(E.sortIndex=R,t(l,E),n(u)===null&amp;&amp;E===n(l)&amp;&amp;(S?(c(F),F=-1):S=!0,j(k,R-K))):(E.sortIndex=Q,t(u,E),g||y||(g=!0,C(O))),E},e.unstable_shouldYield=at,e.unstable_wrapCallback=function(E){var D=h;return function(){var R=h;h=D;try{return E.apply(this,arguments)}finally{h=R}}}})(Qh);Gh.exports=Qh;var Ik=Gh.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 zk=Ke,$t=Ik;function U(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 Xh=new Set,go={};function Or(e,t){vi(e,t),vi(e+&quot;Capture&quot;,t)}function vi(e,t){for(go[e]=t,e=0;e&lt;t.length;e++)Xh.add(t[e])}var pn=!(typeof window&gt;&quot;u&quot;||typeof window.document&gt;&quot;u&quot;||typeof window.document.createElement&gt;&quot;u&quot;),ol=Object.prototype.hasOwnProperty,Ok=/^[: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]*$/,Om={},Em={};function Ek(e){return ol.call(Em,e)?!0:ol.call(Om,e)?!1:Ok.test(e)?Em[e]=!0:(Om[e]=!0,!1)}function Nk(e,t,n,i){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 i?!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 jk(e,t,n,i){if(t===null||typeof t&gt;&quot;u&quot;||Nk(e,t,n,i))return!0;if(i)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 ot(e,t,n,i,r,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Ge={};&quot;children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style&quot;.split(&quot; &quot;).forEach(function(e){Ge[e]=new ot(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];Ge[t]=new ot(t,1,!1,e[1],null,!1,!1)});[&quot;contentEditable&quot;,&quot;draggable&quot;,&quot;spellCheck&quot;,&quot;value&quot;].forEach(function(e){Ge[e]=new ot(e,2,!1,e.toLowerCase(),null,!1,!1)});[&quot;autoReverse&quot;,&quot;externalResourcesRequired&quot;,&quot;focusable&quot;,&quot;preserveAlpha&quot;].forEach(function(e){Ge[e]=new ot(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){Ge[e]=new ot(e,3,!1,e.toLowerCase(),null,!1,!1)});[&quot;checked&quot;,&quot;multiple&quot;,&quot;muted&quot;,&quot;selected&quot;].forEach(function(e){Ge[e]=new ot(e,3,!0,e,null,!1,!1)});[&quot;capture&quot;,&quot;download&quot;].forEach(function(e){Ge[e]=new ot(e,4,!1,e,null,!1,!1)});[&quot;cols&quot;,&quot;rows&quot;,&quot;size&quot;,&quot;span&quot;].forEach(function(e){Ge[e]=new ot(e,6,!1,e,null,!1,!1)});[&quot;rowSpan&quot;,&quot;start&quot;].forEach(function(e){Ge[e]=new ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var Lc=/[\-:]([a-z])/g;function Mc(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(Lc,Mc);Ge[t]=new ot(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(Lc,Mc);Ge[t]=new ot(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(Lc,Mc);Ge[t]=new ot(t,1,!1,e,&quot;http://www.w3.org/XML/1998/namespace&quot;,!1,!1)});[&quot;tabIndex&quot;,&quot;crossOrigin&quot;].forEach(function(e){Ge[e]=new ot(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new ot(&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){Ge[e]=new ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fc(e,t,n,i){var r=Ge.hasOwnProperty(t)?Ge[t]:null;(r!==null?r.type!==0:i||!(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;(jk(t,n,r,i)&amp;&amp;(n=null),i||r===null?Ek(t)&amp;&amp;(n===null?e.removeAttribute(t):e.setAttribute(t,&quot;&quot;+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:&quot;&quot;:n:(t=r.attributeName,i=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&amp;&amp;n===!0?&quot;&quot;:&quot;&quot;+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}var _n=zk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,aa=Symbol.for(&quot;react.element&quot;),Rr=Symbol.for(&quot;react.portal&quot;),Zr=Symbol.for(&quot;react.fragment&quot;),Vc=Symbol.for(&quot;react.strict_mode&quot;),al=Symbol.for(&quot;react.profiler&quot;),Yh=Symbol.for(&quot;react.provider&quot;),qh=Symbol.for(&quot;react.context&quot;),Bc=Symbol.for(&quot;react.forward_ref&quot;),sl=Symbol.for(&quot;react.suspense&quot;),ul=Symbol.for(&quot;react.suspense_list&quot;),Wc=Symbol.for(&quot;react.memo&quot;),Sn=Symbol.for(&quot;react.lazy&quot;),ev=Symbol.for(&quot;react.offscreen&quot;),Nm=Symbol.iterator;function Zi(e){return e===null||typeof e!=&quot;object&quot;?null:(e=Nm&amp;&amp;e[Nm]||e[&quot;@@iterator&quot;],typeof e==&quot;function&quot;?e:null)}var Oe=Object.assign,xu;function Gi(e){if(xu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);xu=t&amp;&amp;t[1]||&quot;&quot;}return`
`+xu+e}var bu=!1;function Iu(e,t){if(!e||bu)return&quot;&quot;;bu=!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(l){var i=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){i=l}e.call(t.prototype)}else{try{throw Error()}catch(l){i=l}e()}}catch(l){if(l&amp;&amp;i&amp;&amp;typeof l.stack==&quot;string&quot;){for(var r=l.stack.split(`
`),o=i.stack.split(`
`),a=r.length-1,s=o.length-1;1&lt;=a&amp;&amp;0&lt;=s&amp;&amp;r[a]!==o[s];)s--;for(;1&lt;=a&amp;&amp;0&lt;=s;a--,s--)if(r[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0&gt;s||r[a]!==o[s]){var u=`
`+r[a].replace(&quot; at new &quot;,&quot; at &quot;);return e.displayName&amp;&amp;u.includes(&quot;&lt;anonymous&gt;&quot;)&amp;&amp;(u=u.replace(&quot;&lt;anonymous&gt;&quot;,e.displayName)),u}while(1&lt;=a&amp;&amp;0&lt;=s);break}}}finally{bu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:&quot;&quot;)?Gi(e):&quot;&quot;}function Tk(e){switch(e.tag){case 5:return Gi(e.type);case 16:return Gi(&quot;Lazy&quot;);case 13:return Gi(&quot;Suspense&quot;);case 19:return Gi(&quot;SuspenseList&quot;);case 0:case 2:case 15:return e=Iu(e.type,!1),e;case 11:return e=Iu(e.type.render,!1),e;case 1:return e=Iu(e.type,!0),e;default:return&quot;&quot;}}function ll(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 Zr:return&quot;Fragment&quot;;case Rr:return&quot;Portal&quot;;case al:return&quot;Profiler&quot;;case Vc:return&quot;StrictMode&quot;;case sl:return&quot;Suspense&quot;;case ul:return&quot;SuspenseList&quot;}if(typeof e==&quot;object&quot;)switch(e.$$typeof){case qh:return(e.displayName||&quot;Context&quot;)+&quot;.Consumer&quot;;case Yh:return(e._context.displayName||&quot;Context&quot;)+&quot;.Provider&quot;;case Bc: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 Wc:return t=e.displayName||null,t!==null?t:ll(e.type)||&quot;Memo&quot;;case Sn:t=e._payload,e=e._init;try{return ll(e(t))}catch{}}return null}function Pk(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 ll(t);case 8:return t===Vc?&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 Bn(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 tv(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 Uk(e){var t=tv(e)?&quot;checked&quot;:&quot;value&quot;,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=&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 r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(a){i=&quot;&quot;+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(a){i=&quot;&quot;+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sa(e){e._valueTracker||(e._valueTracker=Uk(e))}function nv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i=&quot;&quot;;return e&amp;&amp;(i=tv(e)?e.checked?&quot;true&quot;:&quot;false&quot;:e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Ga(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 cl(e,t){var n=t.checked;return Oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jm(e,t){var n=t.defaultValue==null?&quot;&quot;:t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=Bn(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type===&quot;checkbox&quot;||t.type===&quot;radio&quot;?t.checked!=null:t.value!=null}}function rv(e,t){t=t.checked,t!=null&amp;&amp;Fc(e,&quot;checked&quot;,t,!1)}function dl(e,t){rv(e,t);var n=Bn(t.value),i=t.type;if(n!=null)i===&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(i===&quot;submit&quot;||i===&quot;reset&quot;){e.removeAttribute(&quot;value&quot;);return}t.hasOwnProperty(&quot;value&quot;)?fl(e,t.type,n):t.hasOwnProperty(&quot;defaultValue&quot;)&amp;&amp;fl(e,t.type,Bn(t.defaultValue)),t.checked==null&amp;&amp;t.defaultChecked!=null&amp;&amp;(e.defaultChecked=!!t.defaultChecked)}function Tm(e,t,n){if(t.hasOwnProperty(&quot;value&quot;)||t.hasOwnProperty(&quot;defaultValue&quot;)){var i=t.type;if(!(i!==&quot;submit&quot;&amp;&amp;i!==&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 fl(e,t,n){(t!==&quot;number&quot;||Ga(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 Qi=Array.isArray;function ei(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r&lt;n.length;r++)t[&quot;$&quot;+n[r]]=!0;for(n=0;n&lt;e.length;n++)r=t.hasOwnProperty(&quot;$&quot;+e[n].value),e[n].selected!==r&amp;&amp;(e[n].selected=r),r&amp;&amp;i&amp;&amp;(e[n].defaultSelected=!0)}else{for(n=&quot;&quot;+Bn(n),t=null,r=0;r&lt;e.length;r++){if(e[r].value===n){e[r].selected=!0,i&amp;&amp;(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&amp;&amp;(t.selected=!0)}}function ml(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return Oe({},t,{value:void 0,defaultValue:void 0,children:&quot;&quot;+e._wrapperState.initialValue})}function Pm(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(U(92));if(Qi(n)){if(1&lt;n.length)throw Error(U(93));n=n[0]}t=n}t==null&amp;&amp;(t=&quot;&quot;),n=t}e._wrapperState={initialValue:Bn(n)}}function iv(e,t){var n=Bn(t.value),i=Bn(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)),i!=null&amp;&amp;(e.defaultValue=&quot;&quot;+i)}function Um(e){var t=e.textContent;t===e._wrapperState.initialValue&amp;&amp;t!==&quot;&quot;&amp;&amp;t!==null&amp;&amp;(e.value=t)}function ov(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 pl(e,t){return e==null||e===&quot;http://www.w3.org/1999/xhtml&quot;?ov(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 ua,av=function(e){return typeof MSApp&lt;&quot;u&quot;&amp;&amp;MSApp.execUnsafeLocalFunction?function(t,n,i,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,r)})}: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(ua=ua||document.createElement(&quot;div&quot;),ua.innerHTML=&quot;&lt;svg&gt;&quot;+t.valueOf().toString()+&quot;&lt;/svg&gt;&quot;,t=ua.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function yo(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 oo={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},Ck=[&quot;Webkit&quot;,&quot;ms&quot;,&quot;Moz&quot;,&quot;O&quot;];Object.keys(oo).forEach(function(e){Ck.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),oo[t]=oo[e]})});function sv(e,t,n){return t==null||typeof t==&quot;boolean&quot;||t===&quot;&quot;?&quot;&quot;:n||typeof t!=&quot;number&quot;||t===0||oo.hasOwnProperty(e)&amp;&amp;oo[e]?(&quot;&quot;+t).trim():t+&quot;px&quot;}function uv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf(&quot;--&quot;)===0,r=sv(n,t[n],i);n===&quot;float&quot;&amp;&amp;(n=&quot;cssFloat&quot;),i?e.setProperty(n,r):e[n]=r}}var Ak=Oe({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 hl(e,t){if(t){if(Ak[e]&amp;&amp;(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!=&quot;object&quot;||!(&quot;__html&quot;in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&amp;&amp;typeof t.style!=&quot;object&quot;)throw Error(U(62))}}function vl(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 gl=null;function Jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&amp;&amp;(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yl=null,ti=null,ni=null;function Cm(e){if(e=Xo(e)){if(typeof yl!=&quot;function&quot;)throw Error(U(280));var t=e.stateNode;t&amp;&amp;(t=Ws(t),yl(e.stateNode,e.type,t))}}function lv(e){ti?ni?ni.push(e):ni=[e]:ti=e}function cv(){if(ti){var e=ti,t=ni;if(ni=ti=null,Cm(e),t)for(e=0;e&lt;t.length;e++)Cm(t[e])}}function dv(e,t){return e(t)}function fv(){}var zu=!1;function mv(e,t,n){if(zu)return e(t,n);zu=!0;try{return dv(e,t,n)}finally{zu=!1,(ti!==null||ni!==null)&amp;&amp;(fv(),cv())}}function _o(e,t){var n=e.stateNode;if(n===null)return null;var i=Ws(n);if(i===null)return null;n=i[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;:(i=!i.disabled)||(e=e.type,i=!(e===&quot;button&quot;||e===&quot;input&quot;||e===&quot;select&quot;||e===&quot;textarea&quot;)),e=!i;break e;default:e=!1}if(e)return null;if(n&amp;&amp;typeof n!=&quot;function&quot;)throw Error(U(231,t,typeof n));return n}var _l=!1;if(pn)try{var Li={};Object.defineProperty(Li,&quot;passive&quot;,{get:function(){_l=!0}}),window.addEventListener(&quot;test&quot;,Li,Li),window.removeEventListener(&quot;test&quot;,Li,Li)}catch{_l=!1}function Dk(e,t,n,i,r,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(m){this.onError(m)}}var ao=!1,Qa=null,Xa=!1,wl=null,Rk={onError:function(e){ao=!0,Qa=e}};function Zk(e,t,n,i,r,o,a,s,u){ao=!1,Qa=null,Dk.apply(Rk,arguments)}function Lk(e,t,n,i,r,o,a,s,u){if(Zk.apply(this,arguments),ao){if(ao){var l=Qa;ao=!1,Qa=null}else throw Error(U(198));Xa||(Xa=!0,wl=l)}}function Er(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 pv(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 Am(e){if(Er(e)!==e)throw Error(U(188))}function Mk(e){var t=e.alternate;if(!t){if(t=Er(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return Am(r),e;if(o===i)return Am(r),t;o=o.sibling}throw Error(U(188))}if(n.return!==i.return)n=r,i=o;else{for(var a=!1,s=r.child;s;){if(s===n){a=!0,n=r,i=o;break}if(s===i){a=!0,i=r,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,i=r;break}if(s===i){a=!0,i=o,n=r;break}s=s.sibling}if(!a)throw Error(U(189))}}if(n.alternate!==i)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function hv(e){return e=Mk(e),e!==null?vv(e):null}function vv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vv(e);if(t!==null)return t;e=e.sibling}return null}var gv=$t.unstable_scheduleCallback,Dm=$t.unstable_cancelCallback,Fk=$t.unstable_shouldYield,Vk=$t.unstable_requestPaint,Te=$t.unstable_now,Bk=$t.unstable_getCurrentPriorityLevel,Kc=$t.unstable_ImmediatePriority,yv=$t.unstable_UserBlockingPriority,Ya=$t.unstable_NormalPriority,Wk=$t.unstable_LowPriority,_v=$t.unstable_IdlePriority,Ms=null,tn=null;function Jk(e){if(tn&amp;&amp;typeof tn.onCommitFiberRoot==&quot;function&quot;)try{tn.onCommitFiberRoot(Ms,e,void 0,(e.current.flags&amp;128)===128)}catch{}}var Vt=Math.clz32?Math.clz32:Gk,Kk=Math.log,Hk=Math.LN2;function Gk(e){return e&gt;&gt;&gt;=0,e===0?32:31-(Kk(e)/Hk|0)|0}var la=64,ca=4194304;function Xi(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 qa(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,a=n&amp;268435455;if(a!==0){var s=a&amp;~r;s!==0?i=Xi(s):(o&amp;=a,o!==0&amp;&amp;(i=Xi(o)))}else a=n&amp;~r,a!==0?i=Xi(a):o!==0&amp;&amp;(i=Xi(o));if(i===0)return 0;if(t!==0&amp;&amp;t!==i&amp;&amp;!(t&amp;r)&amp;&amp;(r=i&amp;-i,o=t&amp;-t,r&gt;=o||r===16&amp;&amp;(o&amp;4194240)!==0))return t;if(i&amp;4&amp;&amp;(i|=n&amp;16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&amp;=i;0&lt;t;)n=31-Vt(t),r=1&lt;&lt;n,i|=e[n],t&amp;=~r;return i}function Qk(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 Xk(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes;0&lt;o;){var a=31-Vt(o),s=1&lt;&lt;a,u=r[a];u===-1?(!(s&amp;n)||s&amp;i)&amp;&amp;(r[a]=Qk(s,t)):u&lt;=t&amp;&amp;(e.expiredLanes|=s),o&amp;=~s}}function $l(e){return e=e.pendingLanes&amp;-1073741825,e!==0?e:e&amp;1073741824?1073741824:0}function wv(){var e=la;return la&lt;&lt;=1,!(la&amp;4194240)&amp;&amp;(la=64),e}function Ou(e){for(var t=[],n=0;31&gt;n;n++)t.push(e);return t}function Go(e,t,n){e.pendingLanes|=t,t!==536870912&amp;&amp;(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vt(t),e[t]=n}function Yk(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 i=e.eventTimes;for(e=e.expirationTimes;0&lt;n;){var r=31-Vt(n),o=1&lt;&lt;r;t[r]=0,i[r]=-1,e[r]=-1,n&amp;=~o}}function Hc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Vt(n),r=1&lt;&lt;i;r&amp;t|e[i]&amp;t&amp;&amp;(e[i]|=t),n&amp;=~r}}var ve=0;function $v(e){return e&amp;=-e,1&lt;e?4&lt;e?e&amp;268435455?16:536870912:4:1}var kv,Gc,Sv,xv,bv,kl=!1,da=[],Un=null,Cn=null,An=null,wo=new Map,$o=new Map,In=[],qk=&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 Rm(e,t){switch(e){case&quot;focusin&quot;:case&quot;focusout&quot;:Un=null;break;case&quot;dragenter&quot;:case&quot;dragleave&quot;:Cn=null;break;case&quot;mouseover&quot;:case&quot;mouseout&quot;:An=null;break;case&quot;pointerover&quot;:case&quot;pointerout&quot;:wo.delete(t.pointerId);break;case&quot;gotpointercapture&quot;:case&quot;lostpointercapture&quot;:$o.delete(t.pointerId)}}function Mi(e,t,n,i,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},t!==null&amp;&amp;(t=Xo(t),t!==null&amp;&amp;Gc(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&amp;&amp;t.indexOf(r)===-1&amp;&amp;t.push(r),e)}function eS(e,t,n,i,r){switch(t){case&quot;focusin&quot;:return Un=Mi(Un,e,t,n,i,r),!0;case&quot;dragenter&quot;:return Cn=Mi(Cn,e,t,n,i,r),!0;case&quot;mouseover&quot;:return An=Mi(An,e,t,n,i,r),!0;case&quot;pointerover&quot;:var o=r.pointerId;return wo.set(o,Mi(wo.get(o)||null,e,t,n,i,r)),!0;case&quot;gotpointercapture&quot;:return o=r.pointerId,$o.set(o,Mi($o.get(o)||null,e,t,n,i,r)),!0}return!1}function Iv(e){var t=ar(e.target);if(t!==null){var n=Er(t);if(n!==null){if(t=n.tag,t===13){if(t=pv(n),t!==null){e.blockedOn=t,bv(e.priority,function(){Sv(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 ja(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0&lt;t.length;){var n=Sl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);gl=i,n.target.dispatchEvent(i),gl=null}else return t=Xo(n),t!==null&amp;&amp;Gc(t),e.blockedOn=n,!1;t.shift()}return!0}function Zm(e,t,n){ja(e)&amp;&amp;n.delete(t)}function tS(){kl=!1,Un!==null&amp;&amp;ja(Un)&amp;&amp;(Un=null),Cn!==null&amp;&amp;ja(Cn)&amp;&amp;(Cn=null),An!==null&amp;&amp;ja(An)&amp;&amp;(An=null),wo.forEach(Zm),$o.forEach(Zm)}function Fi(e,t){e.blockedOn===t&amp;&amp;(e.blockedOn=null,kl||(kl=!0,$t.unstable_scheduleCallback($t.unstable_NormalPriority,tS)))}function ko(e){function t(r){return Fi(r,e)}if(0&lt;da.length){Fi(da[0],e);for(var n=1;n&lt;da.length;n++){var i=da[n];i.blockedOn===e&amp;&amp;(i.blockedOn=null)}}for(Un!==null&amp;&amp;Fi(Un,e),Cn!==null&amp;&amp;Fi(Cn,e),An!==null&amp;&amp;Fi(An,e),wo.forEach(t),$o.forEach(t),n=0;n&lt;In.length;n++)i=In[n],i.blockedOn===e&amp;&amp;(i.blockedOn=null);for(;0&lt;In.length&amp;&amp;(n=In[0],n.blockedOn===null);)Iv(n),n.blockedOn===null&amp;&amp;In.shift()}var ri=_n.ReactCurrentBatchConfig,es=!0;function nS(e,t,n,i){var r=ve,o=ri.transition;ri.transition=null;try{ve=1,Qc(e,t,n,i)}finally{ve=r,ri.transition=o}}function rS(e,t,n,i){var r=ve,o=ri.transition;ri.transition=null;try{ve=4,Qc(e,t,n,i)}finally{ve=r,ri.transition=o}}function Qc(e,t,n,i){if(es){var r=Sl(e,t,n,i);if(r===null)Ru(e,t,i,ts,n),Rm(e,i);else if(eS(r,e,t,n,i))i.stopPropagation();else if(Rm(e,i),t&amp;4&amp;&amp;-1&lt;qk.indexOf(e)){for(;r!==null;){var o=Xo(r);if(o!==null&amp;&amp;kv(o),o=Sl(e,t,n,i),o===null&amp;&amp;Ru(e,t,i,ts,n),o===r)break;r=o}r!==null&amp;&amp;i.stopPropagation()}else Ru(e,t,i,null,n)}}var ts=null;function Sl(e,t,n,i){if(ts=null,e=Jc(i),e=ar(e),e!==null)if(t=Er(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pv(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 ts=e,null}function zv(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(Bk()){case Kc:return 1;case yv:return 4;case Ya:case Wk:return 16;case _v:return 536870912;default:return 16}default:return 16}}var Tn=null,Xc=null,Ta=null;function Ov(){if(Ta)return Ta;var e,t=Xc,n=t.length,i,r=&quot;value&quot;in Tn?Tn.value:Tn.textContent,o=r.length;for(e=0;e&lt;n&amp;&amp;t[e]===r[e];e++);var a=n-e;for(i=1;i&lt;=a&amp;&amp;t[n-i]===r[o-i];i++);return Ta=r.slice(e,1&lt;i?1-i:void 0)}function Pa(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 fa(){return!0}function Lm(){return!1}function xt(e){function t(n,i,r,o,a){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&amp;&amp;(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?fa:Lm,this.isPropagationStopped=Lm,this}return Oe(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=fa)},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=fa)},persist:function(){},isPersistent:fa}),t}var Ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yc=xt(Ui),Qo=Oe({},Ui,{view:0,detail:0}),iS=xt(Qo),Eu,Nu,Vi,Fs=Oe({},Qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qc,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!==Vi&amp;&amp;(Vi&amp;&amp;e.type===&quot;mousemove&quot;?(Eu=e.screenX-Vi.screenX,Nu=e.screenY-Vi.screenY):Nu=Eu=0,Vi=e),Eu)},movementY:function(e){return&quot;movementY&quot;in e?e.movementY:Nu}}),Mm=xt(Fs),oS=Oe({},Fs,{dataTransfer:0}),aS=xt(oS),sS=Oe({},Qo,{relatedTarget:0}),ju=xt(sS),uS=Oe({},Ui,{animationName:0,elapsedTime:0,pseudoElement:0}),lS=xt(uS),cS=Oe({},Ui,{clipboardData:function(e){return&quot;clipboardData&quot;in e?e.clipboardData:window.clipboardData}}),dS=xt(cS),fS=Oe({},Ui,{data:0}),Fm=xt(fS),mS={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;},pS={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;},hS={Alt:&quot;altKey&quot;,Control:&quot;ctrlKey&quot;,Meta:&quot;metaKey&quot;,Shift:&quot;shiftKey&quot;};function vS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hS[e])?!!t[e]:!1}function qc(){return vS}var gS=Oe({},Qo,{key:function(e){if(e.key){var t=mS[e.key]||e.key;if(t!==&quot;Unidentified&quot;)return t}return e.type===&quot;keypress&quot;?(e=Pa(e),e===13?&quot;Enter&quot;:String.fromCharCode(e)):e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?pS[e.keyCode]||&quot;Unidentified&quot;:&quot;&quot;},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qc,charCode:function(e){return e.type===&quot;keypress&quot;?Pa(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;?Pa(e):e.type===&quot;keydown&quot;||e.type===&quot;keyup&quot;?e.keyCode:0}}),yS=xt(gS),_S=Oe({},Fs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vm=xt(_S),wS=Oe({},Qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qc}),$S=xt(wS),kS=Oe({},Ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),SS=xt(kS),xS=Oe({},Fs,{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}),bS=xt(xS),IS=[9,13,27,32],ed=pn&amp;&amp;&quot;CompositionEvent&quot;in window,so=null;pn&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;(so=document.documentMode);var zS=pn&amp;&amp;&quot;TextEvent&quot;in window&amp;&amp;!so,Ev=pn&amp;&amp;(!ed||so&amp;&amp;8&lt;so&amp;&amp;11&gt;=so),Bm=&quot; &quot;,Wm=!1;function Nv(e,t){switch(e){case&quot;keyup&quot;:return IS.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 jv(e){return e=e.detail,typeof e==&quot;object&quot;&amp;&amp;&quot;data&quot;in e?e.data:null}var Lr=!1;function OS(e,t){switch(e){case&quot;compositionend&quot;:return jv(t);case&quot;keypress&quot;:return t.which!==32?null:(Wm=!0,Bm);case&quot;textInput&quot;:return e=t.data,e===Bm&amp;&amp;Wm?null:e;default:return null}}function ES(e,t){if(Lr)return e===&quot;compositionend&quot;||!ed&amp;&amp;Nv(e,t)?(e=Ov(),Ta=Xc=Tn=null,Lr=!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 Ev&amp;&amp;t.locale!==&quot;ko&quot;?null:t.data;default:return null}}var NS={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 Jm(e){var t=e&amp;&amp;e.nodeName&amp;&amp;e.nodeName.toLowerCase();return t===&quot;input&quot;?!!NS[e.type]:t===&quot;textarea&quot;}function Tv(e,t,n,i){lv(i),t=ns(t,&quot;onChange&quot;),0&lt;t.length&amp;&amp;(n=new Yc(&quot;onChange&quot;,&quot;change&quot;,null,n,i),e.push({event:n,listeners:t}))}var uo=null,So=null;function jS(e){Vv(e,0)}function Vs(e){var t=Vr(e);if(nv(t))return e}function TS(e,t){if(e===&quot;change&quot;)return t}var Pv=!1;if(pn){var Tu;if(pn){var Pu=&quot;oninput&quot;in document;if(!Pu){var Km=document.createElement(&quot;div&quot;);Km.setAttribute(&quot;oninput&quot;,&quot;return;&quot;),Pu=typeof Km.oninput==&quot;function&quot;}Tu=Pu}else Tu=!1;Pv=Tu&amp;&amp;(!document.documentMode||9&lt;document.documentMode)}function Hm(){uo&amp;&amp;(uo.detachEvent(&quot;onpropertychange&quot;,Uv),So=uo=null)}function Uv(e){if(e.propertyName===&quot;value&quot;&amp;&amp;Vs(So)){var t=[];Tv(t,So,e,Jc(e)),mv(jS,t)}}function PS(e,t,n){e===&quot;focusin&quot;?(Hm(),uo=t,So=n,uo.attachEvent(&quot;onpropertychange&quot;,Uv)):e===&quot;focusout&quot;&amp;&amp;Hm()}function US(e){if(e===&quot;selectionchange&quot;||e===&quot;keyup&quot;||e===&quot;keydown&quot;)return Vs(So)}function CS(e,t){if(e===&quot;click&quot;)return Vs(t)}function AS(e,t){if(e===&quot;input&quot;||e===&quot;change&quot;)return Vs(t)}function DS(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var Jt=typeof Object.is==&quot;function&quot;?Object.is:DS;function xo(e,t){if(Jt(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),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i&lt;n.length;i++){var r=n[i];if(!ol.call(t,r)||!Jt(e[r],t[r]))return!1}return!0}function Gm(e){for(;e&amp;&amp;e.firstChild;)e=e.firstChild;return e}function Qm(e,t){var n=Gm(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e&lt;=t&amp;&amp;i&gt;=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gm(n)}}function Cv(e,t){return e&amp;&amp;t?e===t?!0:e&amp;&amp;e.nodeType===3?!1:t&amp;&amp;t.nodeType===3?Cv(e,t.parentNode):&quot;contains&quot;in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&amp;16):!1:!1}function Av(){for(var e=window,t=Ga();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=Ga(e.document)}return t}function td(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 RS(e){var t=Av(),n=e.focusedElem,i=e.selectionRange;if(t!==n&amp;&amp;n&amp;&amp;n.ownerDocument&amp;&amp;Cv(n.ownerDocument.documentElement,n)){if(i!==null&amp;&amp;td(n)){if(t=i.start,e=i.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 r=n.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!e.extend&amp;&amp;o&gt;i&amp;&amp;(r=i,i=o,o=r),r=Qm(n,o);var a=Qm(n,i);r&amp;&amp;a&amp;&amp;(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&amp;&amp;(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),o&gt;i?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 ZS=pn&amp;&amp;&quot;documentMode&quot;in document&amp;&amp;11&gt;=document.documentMode,Mr=null,xl=null,lo=null,bl=!1;function Xm(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bl||Mr==null||Mr!==Ga(i)||(i=Mr,&quot;selectionStart&quot;in i&amp;&amp;td(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&amp;&amp;i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),lo&amp;&amp;xo(lo,i)||(lo=i,i=ns(xl,&quot;onSelect&quot;),0&lt;i.length&amp;&amp;(t=new Yc(&quot;onSelect&quot;,&quot;select&quot;,null,t,n),e.push({event:t,listeners:i}),t.target=Mr)))}function ma(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 Fr={animationend:ma(&quot;Animation&quot;,&quot;AnimationEnd&quot;),animationiteration:ma(&quot;Animation&quot;,&quot;AnimationIteration&quot;),animationstart:ma(&quot;Animation&quot;,&quot;AnimationStart&quot;),transitionend:ma(&quot;Transition&quot;,&quot;TransitionEnd&quot;)},Uu={},Dv={};pn&amp;&amp;(Dv=document.createElement(&quot;div&quot;).style,&quot;AnimationEvent&quot;in window||(delete Fr.animationend.animation,delete Fr.animationiteration.animation,delete Fr.animationstart.animation),&quot;TransitionEvent&quot;in window||delete Fr.transitionend.transition);function Bs(e){if(Uu[e])return Uu[e];if(!Fr[e])return e;var t=Fr[e],n;for(n in t)if(t.hasOwnProperty(n)&amp;&amp;n in Dv)return Uu[e]=t[n];return e}var Rv=Bs(&quot;animationend&quot;),Zv=Bs(&quot;animationiteration&quot;),Lv=Bs(&quot;animationstart&quot;),Mv=Bs(&quot;transitionend&quot;),Fv=new Map,Ym=&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 Hn(e,t){Fv.set(e,t),Or(t,[e])}for(var Cu=0;Cu&lt;Ym.length;Cu++){var Au=Ym[Cu],LS=Au.toLowerCase(),MS=Au[0].toUpperCase()+Au.slice(1);Hn(LS,&quot;on&quot;+MS)}Hn(Rv,&quot;onAnimationEnd&quot;);Hn(Zv,&quot;onAnimationIteration&quot;);Hn(Lv,&quot;onAnimationStart&quot;);Hn(&quot;dblclick&quot;,&quot;onDoubleClick&quot;);Hn(&quot;focusin&quot;,&quot;onFocus&quot;);Hn(&quot;focusout&quot;,&quot;onBlur&quot;);Hn(Mv,&quot;onTransitionEnd&quot;);vi(&quot;onMouseEnter&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]);vi(&quot;onMouseLeave&quot;,[&quot;mouseout&quot;,&quot;mouseover&quot;]);vi(&quot;onPointerEnter&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]);vi(&quot;onPointerLeave&quot;,[&quot;pointerout&quot;,&quot;pointerover&quot;]);Or(&quot;onChange&quot;,&quot;change click focusin focusout input keydown keyup selectionchange&quot;.split(&quot; &quot;));Or(&quot;onSelect&quot;,&quot;focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange&quot;.split(&quot; &quot;));Or(&quot;onBeforeInput&quot;,[&quot;compositionend&quot;,&quot;keypress&quot;,&quot;textInput&quot;,&quot;paste&quot;]);Or(&quot;onCompositionEnd&quot;,&quot;compositionend focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));Or(&quot;onCompositionStart&quot;,&quot;compositionstart focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));Or(&quot;onCompositionUpdate&quot;,&quot;compositionupdate focusout keydown keypress keyup mousedown&quot;.split(&quot; &quot;));var Yi=&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;),FS=new Set(&quot;cancel close invalid load scroll toggle&quot;.split(&quot; &quot;).concat(Yi));function qm(e,t,n){var i=e.type||&quot;unknown-event&quot;;e.currentTarget=n,Lk(i,t,void 0,e),e.currentTarget=null}function Vv(e,t){t=(t&amp;4)!==0;for(var n=0;n&lt;e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var a=i.length-1;0&lt;=a;a--){var s=i[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&amp;&amp;r.isPropagationStopped())break e;qm(r,s,l),o=u}else for(a=0;a&lt;i.length;a++){if(s=i[a],u=s.instance,l=s.currentTarget,s=s.listener,u!==o&amp;&amp;r.isPropagationStopped())break e;qm(r,s,l),o=u}}}if(Xa)throw e=wl,Xa=!1,wl=null,e}function we(e,t){var n=t[Nl];n===void 0&amp;&amp;(n=t[Nl]=new Set);var i=e+&quot;__bubble&quot;;n.has(i)||(Bv(t,e,2,!1),n.add(i))}function Du(e,t,n){var i=0;t&amp;&amp;(i|=4),Bv(n,e,i,t)}var pa=&quot;_reactListening&quot;+Math.random().toString(36).slice(2);function bo(e){if(!e[pa]){e[pa]=!0,Xh.forEach(function(n){n!==&quot;selectionchange&quot;&amp;&amp;(FS.has(n)||Du(n,!1,e),Du(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pa]||(t[pa]=!0,Du(&quot;selectionchange&quot;,!1,t))}}function Bv(e,t,n,i){switch(zv(t)){case 1:var r=nS;break;case 4:r=rS;break;default:r=Qc}n=r.bind(null,t,n,e),r=void 0,!_l||t!==&quot;touchstart&quot;&amp;&amp;t!==&quot;touchmove&quot;&amp;&amp;t!==&quot;wheel&quot;||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Ru(e,t,n,i,r){var o=i;if(!(t&amp;1)&amp;&amp;!(t&amp;2)&amp;&amp;i!==null)e:for(;;){if(i===null)return;var a=i.tag;if(a===3||a===4){var s=i.stateNode.containerInfo;if(s===r||s.nodeType===8&amp;&amp;s.parentNode===r)break;if(a===4)for(a=i.return;a!==null;){var u=a.tag;if((u===3||u===4)&amp;&amp;(u=a.stateNode.containerInfo,u===r||u.nodeType===8&amp;&amp;u.parentNode===r))return;a=a.return}for(;s!==null;){if(a=ar(s),a===null)return;if(u=a.tag,u===5||u===6){i=o=a;continue e}s=s.parentNode}}i=i.return}mv(function(){var l=o,m=Jc(n),p=[];e:{var h=Fv.get(e);if(h!==void 0){var y=Yc,g=e;switch(e){case&quot;keypress&quot;:if(Pa(n)===0)break e;case&quot;keydown&quot;:case&quot;keyup&quot;:y=yS;break;case&quot;focusin&quot;:g=&quot;focus&quot;,y=ju;break;case&quot;focusout&quot;:g=&quot;blur&quot;,y=ju;break;case&quot;beforeblur&quot;:case&quot;afterblur&quot;:y=ju;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;:y=Mm;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;:y=aS;break;case&quot;touchcancel&quot;:case&quot;touchend&quot;:case&quot;touchmove&quot;:case&quot;touchstart&quot;:y=$S;break;case Rv:case Zv:case Lv:y=lS;break;case Mv:y=SS;break;case&quot;scroll&quot;:y=iS;break;case&quot;wheel&quot;:y=bS;break;case&quot;copy&quot;:case&quot;cut&quot;:case&quot;paste&quot;:y=dS;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;:y=Vm}var S=(t&amp;4)!==0,z=!S&amp;&amp;e===&quot;scroll&quot;,c=S?h!==null?h+&quot;Capture&quot;:null:h;S=[];for(var d=l,f;d!==null;){f=d;var k=f.stateNode;if(f.tag===5&amp;&amp;k!==null&amp;&amp;(f=k,c!==null&amp;&amp;(k=_o(d,c),k!=null&amp;&amp;S.push(Io(d,k,f)))),z)break;d=d.return}0&lt;S.length&amp;&amp;(h=new y(h,g,null,n,m),p.push({event:h,listeners:S}))}}if(!(t&amp;7)){e:{if(h=e===&quot;mouseover&quot;||e===&quot;pointerover&quot;,y=e===&quot;mouseout&quot;||e===&quot;pointerout&quot;,h&amp;&amp;n!==gl&amp;&amp;(g=n.relatedTarget||n.fromElement)&amp;&amp;(ar(g)||g[hn]))break e;if((y||h)&amp;&amp;(h=m.window===m?m:(h=m.ownerDocument)?h.defaultView||h.parentWindow:window,y?(g=n.relatedTarget||n.toElement,y=l,g=g?ar(g):null,g!==null&amp;&amp;(z=Er(g),g!==z||g.tag!==5&amp;&amp;g.tag!==6)&amp;&amp;(g=null)):(y=null,g=l),y!==g)){if(S=Mm,k=&quot;onMouseLeave&quot;,c=&quot;onMouseEnter&quot;,d=&quot;mouse&quot;,(e===&quot;pointerout&quot;||e===&quot;pointerover&quot;)&amp;&amp;(S=Vm,k=&quot;onPointerLeave&quot;,c=&quot;onPointerEnter&quot;,d=&quot;pointer&quot;),z=y==null?h:Vr(y),f=g==null?h:Vr(g),h=new S(k,d+&quot;leave&quot;,y,n,m),h.target=z,h.relatedTarget=f,k=null,ar(m)===l&amp;&amp;(S=new S(c,d+&quot;enter&quot;,g,n,m),S.target=f,S.relatedTarget=z,k=S),z=k,y&amp;&amp;g)t:{for(S=y,c=g,d=0,f=S;f;f=Pr(f))d++;for(f=0,k=c;k;k=Pr(k))f++;for(;0&lt;d-f;)S=Pr(S),d--;for(;0&lt;f-d;)c=Pr(c),f--;for(;d--;){if(S===c||c!==null&amp;&amp;S===c.alternate)break t;S=Pr(S),c=Pr(c)}S=null}else S=null;y!==null&amp;&amp;ep(p,h,y,S,!1),g!==null&amp;&amp;z!==null&amp;&amp;ep(p,z,g,S,!0)}}e:{if(h=l?Vr(l):window,y=h.nodeName&amp;&amp;h.nodeName.toLowerCase(),y===&quot;select&quot;||y===&quot;input&quot;&amp;&amp;h.type===&quot;file&quot;)var O=TS;else if(Jm(h))if(Pv)O=AS;else{O=US;var P=PS}else(y=h.nodeName)&amp;&amp;y.toLowerCase()===&quot;input&quot;&amp;&amp;(h.type===&quot;checkbox&quot;||h.type===&quot;radio&quot;)&amp;&amp;(O=CS);if(O&amp;&amp;(O=O(e,l))){Tv(p,O,n,m);break e}P&amp;&amp;P(e,h,l),e===&quot;focusout&quot;&amp;&amp;(P=h._wrapperState)&amp;&amp;P.controlled&amp;&amp;h.type===&quot;number&quot;&amp;&amp;fl(h,&quot;number&quot;,h.value)}switch(P=l?Vr(l):window,e){case&quot;focusin&quot;:(Jm(P)||P.contentEditable===&quot;true&quot;)&amp;&amp;(Mr=P,xl=l,lo=null);break;case&quot;focusout&quot;:lo=xl=Mr=null;break;case&quot;mousedown&quot;:bl=!0;break;case&quot;contextmenu&quot;:case&quot;mouseup&quot;:case&quot;dragend&quot;:bl=!1,Xm(p,n,m);break;case&quot;selectionchange&quot;:if(ZS)break;case&quot;keydown&quot;:case&quot;keyup&quot;:Xm(p,n,m)}var L;if(ed)e:{switch(e){case&quot;compositionstart&quot;:var F=&quot;onCompositionStart&quot;;break e;case&quot;compositionend&quot;:F=&quot;onCompositionEnd&quot;;break e;case&quot;compositionupdate&quot;:F=&quot;onCompositionUpdate&quot;;break e}F=void 0}else Lr?Nv(e,n)&amp;&amp;(F=&quot;onCompositionEnd&quot;):e===&quot;keydown&quot;&amp;&amp;n.keyCode===229&amp;&amp;(F=&quot;onCompositionStart&quot;);F&amp;&amp;(Ev&amp;&amp;n.locale!==&quot;ko&quot;&amp;&amp;(Lr||F!==&quot;onCompositionStart&quot;?F===&quot;onCompositionEnd&quot;&amp;&amp;Lr&amp;&amp;(L=Ov()):(Tn=m,Xc=&quot;value&quot;in Tn?Tn.value:Tn.textContent,Lr=!0)),P=ns(l,F),0&lt;P.length&amp;&amp;(F=new Fm(F,e,null,n,m),p.push({event:F,listeners:P}),L?F.data=L:(L=jv(n),L!==null&amp;&amp;(F.data=L)))),(L=zS?OS(e,n):ES(e,n))&amp;&amp;(l=ns(l,&quot;onBeforeInput&quot;),0&lt;l.length&amp;&amp;(m=new Fm(&quot;onBeforeInput&quot;,&quot;beforeinput&quot;,null,n,m),p.push({event:m,listeners:l}),m.data=L))}Vv(p,t)})}function Io(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ns(e,t){for(var n=t+&quot;Capture&quot;,i=[];e!==null;){var r=e,o=r.stateNode;r.tag===5&amp;&amp;o!==null&amp;&amp;(r=o,o=_o(e,n),o!=null&amp;&amp;i.unshift(Io(e,o,r)),o=_o(e,t),o!=null&amp;&amp;i.push(Io(e,o,r))),e=e.return}return i}function Pr(e){if(e===null)return null;do e=e.return;while(e&amp;&amp;e.tag!==5);return e||null}function ep(e,t,n,i,r){for(var o=t._reactName,a=[];n!==null&amp;&amp;n!==i;){var s=n,u=s.alternate,l=s.stateNode;if(u!==null&amp;&amp;u===i)break;s.tag===5&amp;&amp;l!==null&amp;&amp;(s=l,r?(u=_o(n,o),u!=null&amp;&amp;a.unshift(Io(n,u,s))):r||(u=_o(n,o),u!=null&amp;&amp;a.push(Io(n,u,s)))),n=n.return}a.length!==0&amp;&amp;e.push({event:t,listeners:a})}var VS=/\r\n?/g,BS=/\u0000|\uFFFD/g;function tp(e){return(typeof e==&quot;string&quot;?e:&quot;&quot;+e).replace(VS,`
`).replace(BS,&quot;&quot;)}function ha(e,t,n){if(t=tp(t),tp(e)!==t&amp;&amp;n)throw Error(U(425))}function rs(){}var Il=null,zl=null;function Ol(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 El=typeof setTimeout==&quot;function&quot;?setTimeout:void 0,WS=typeof clearTimeout==&quot;function&quot;?clearTimeout:void 0,np=typeof Promise==&quot;function&quot;?Promise:void 0,JS=typeof queueMicrotask==&quot;function&quot;?queueMicrotask:typeof np&lt;&quot;u&quot;?function(e){return np.resolve(null).then(e).catch(KS)}:El;function KS(e){setTimeout(function(){throw e})}function Zu(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&amp;&amp;r.nodeType===8)if(n=r.data,n===&quot;/$&quot;){if(i===0){e.removeChild(r),ko(t);return}i--}else n!==&quot;$&quot;&amp;&amp;n!==&quot;$?&quot;&amp;&amp;n!==&quot;$!&quot;||i++;n=r}while(n);ko(t)}function Dn(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 rp(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 Ci=Math.random().toString(36).slice(2),en=&quot;__reactFiber$&quot;+Ci,zo=&quot;__reactProps$&quot;+Ci,hn=&quot;__reactContainer$&quot;+Ci,Nl=&quot;__reactEvents$&quot;+Ci,HS=&quot;__reactListeners$&quot;+Ci,GS=&quot;__reactHandles$&quot;+Ci;function ar(e){var t=e[en];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hn]||n[en]){if(n=t.alternate,t.child!==null||n!==null&amp;&amp;n.child!==null)for(e=rp(e);e!==null;){if(n=e[en])return n;e=rp(e)}return t}e=n,n=e.parentNode}return null}function Xo(e){return e=e[en]||e[hn],!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(U(33))}function Ws(e){return e[zo]||null}var jl=[],Br=-1;function Gn(e){return{current:e}}function Se(e){0&gt;Br||(e.current=jl[Br],jl[Br]=null,Br--)}function ye(e,t){Br++,jl[Br]=e.current,e.current=t}var Wn={},qe=Gn(Wn),ct=Gn(!1),_r=Wn;function gi(e,t){var n=e.type.contextTypes;if(!n)return Wn;var i=e.stateNode;if(i&amp;&amp;i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=t[o];return i&amp;&amp;(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function dt(e){return e=e.childContextTypes,e!=null}function is(){Se(ct),Se(qe)}function ip(e,t,n){if(qe.current!==Wn)throw Error(U(168));ye(qe,t),ye(ct,n)}function Wv(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=&quot;function&quot;)return n;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(U(108,Pk(e)||&quot;Unknown&quot;,r));return Oe({},n,i)}function os(e){return e=(e=e.stateNode)&amp;&amp;e.__reactInternalMemoizedMergedChildContext||Wn,_r=qe.current,ye(qe,e),ye(ct,ct.current),!0}function op(e,t,n){var i=e.stateNode;if(!i)throw Error(U(169));n?(e=Wv(e,t,_r),i.__reactInternalMemoizedMergedChildContext=e,Se(ct),Se(qe),ye(qe,e)):Se(ct),ye(ct,n)}var sn=null,Js=!1,Lu=!1;function Jv(e){sn===null?sn=[e]:sn.push(e)}function QS(e){Js=!0,Jv(e)}function Qn(){if(!Lu&amp;&amp;sn!==null){Lu=!0;var e=0,t=ve;try{var n=sn;for(ve=1;e&lt;n.length;e++){var i=n[e];do i=i(!0);while(i!==null)}sn=null,Js=!1}catch(r){throw sn!==null&amp;&amp;(sn=sn.slice(e+1)),gv(Kc,Qn),r}finally{ve=t,Lu=!1}}return null}var Wr=[],Jr=0,as=null,ss=0,bt=[],It=0,wr=null,cn=1,dn=&quot;&quot;;function tr(e,t){Wr[Jr++]=ss,Wr[Jr++]=as,as=e,ss=t}function Kv(e,t,n){bt[It++]=cn,bt[It++]=dn,bt[It++]=wr,wr=e;var i=cn;e=dn;var r=32-Vt(i)-1;i&amp;=~(1&lt;&lt;r),n+=1;var o=32-Vt(t)+r;if(30&lt;o){var a=r-r%5;o=(i&amp;(1&lt;&lt;a)-1).toString(32),i&gt;&gt;=a,r-=a,cn=1&lt;&lt;32-Vt(t)+r|n&lt;&lt;r|i,dn=o+e}else cn=1&lt;&lt;o|n&lt;&lt;r|i,dn=e}function nd(e){e.return!==null&amp;&amp;(tr(e,1),Kv(e,1,0))}function rd(e){for(;e===as;)as=Wr[--Jr],Wr[Jr]=null,ss=Wr[--Jr],Wr[Jr]=null;for(;e===wr;)wr=bt[--It],bt[It]=null,dn=bt[--It],bt[It]=null,cn=bt[--It],bt[It]=null}var wt=null,yt=null,be=!1,Ft=null;function Hv(e,t){var n=Nt(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 ap(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,wt=e,yt=Dn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===&quot;&quot;||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,wt=e,yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wr!==null?{id:cn,overflow:dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Nt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,wt=e,yt=null,!0):!1;default:return!1}}function Tl(e){return(e.mode&amp;1)!==0&amp;&amp;(e.flags&amp;128)===0}function Pl(e){if(be){var t=yt;if(t){var n=t;if(!ap(e,t)){if(Tl(e))throw Error(U(418));t=Dn(n.nextSibling);var i=wt;t&amp;&amp;ap(e,t)?Hv(i,n):(e.flags=e.flags&amp;-4097|2,be=!1,wt=e)}}else{if(Tl(e))throw Error(U(418));e.flags=e.flags&amp;-4097|2,be=!1,wt=e}}}function sp(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;wt=e}function va(e){if(e!==wt)return!1;if(!be)return sp(e),be=!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;!Ol(e.type,e.memoizedProps)),t&amp;&amp;(t=yt)){if(Tl(e))throw Gv(),Error(U(418));for(;t;)Hv(e,t),t=Dn(t.nextSibling)}if(sp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===&quot;/$&quot;){if(t===0){yt=Dn(e.nextSibling);break e}t--}else n!==&quot;$&quot;&amp;&amp;n!==&quot;$!&quot;&amp;&amp;n!==&quot;$?&quot;||t++}e=e.nextSibling}yt=null}}else yt=wt?Dn(e.stateNode.nextSibling):null;return!0}function Gv(){for(var e=yt;e;)e=Dn(e.nextSibling)}function yi(){yt=wt=null,be=!1}function id(e){Ft===null?Ft=[e]:Ft.push(e)}var XS=_n.ReactCurrentBatchConfig;function Bi(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(U(309));var i=n.stateNode}if(!i)throw Error(U(147,e));var r=i,o=&quot;&quot;+e;return t!==null&amp;&amp;t.ref!==null&amp;&amp;typeof t.ref==&quot;function&quot;&amp;&amp;t.ref._stringRef===o?t.ref:(t=function(a){var s=r.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!=&quot;string&quot;)throw Error(U(284));if(!n._owner)throw Error(U(290,e))}return e}function ga(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e===&quot;[object Object]&quot;?&quot;object with keys {&quot;+Object.keys(t).join(&quot;, &quot;)+&quot;}&quot;:e))}function up(e){var t=e._init;return t(e._payload)}function Qv(e){function t(c,d){if(e){var f=c.deletions;f===null?(c.deletions=[d],c.flags|=16):f.push(d)}}function n(c,d){if(!e)return null;for(;d!==null;)t(c,d),d=d.sibling;return null}function i(c,d){for(c=new Map;d!==null;)d.key!==null?c.set(d.key,d):c.set(d.index,d),d=d.sibling;return c}function r(c,d){return c=Mn(c,d),c.index=0,c.sibling=null,c}function o(c,d,f){return c.index=f,e?(f=c.alternate,f!==null?(f=f.index,f&lt;d?(c.flags|=2,d):f):(c.flags|=2,d)):(c.flags|=1048576,d)}function a(c){return e&amp;&amp;c.alternate===null&amp;&amp;(c.flags|=2),c}function s(c,d,f,k){return d===null||d.tag!==6?(d=Ku(f,c.mode,k),d.return=c,d):(d=r(d,f),d.return=c,d)}function u(c,d,f,k){var O=f.type;return O===Zr?m(c,d,f.props.children,k,f.key):d!==null&amp;&amp;(d.elementType===O||typeof O==&quot;object&quot;&amp;&amp;O!==null&amp;&amp;O.$$typeof===Sn&amp;&amp;up(O)===d.type)?(k=r(d,f.props),k.ref=Bi(c,d,f),k.return=c,k):(k=La(f.type,f.key,f.props,null,c.mode,k),k.ref=Bi(c,d,f),k.return=c,k)}function l(c,d,f,k){return d===null||d.tag!==4||d.stateNode.containerInfo!==f.containerInfo||d.stateNode.implementation!==f.implementation?(d=Hu(f,c.mode,k),d.return=c,d):(d=r(d,f.children||[]),d.return=c,d)}function m(c,d,f,k,O){return d===null||d.tag!==7?(d=vr(f,c.mode,k,O),d.return=c,d):(d=r(d,f),d.return=c,d)}function p(c,d,f){if(typeof d==&quot;string&quot;&amp;&amp;d!==&quot;&quot;||typeof d==&quot;number&quot;)return d=Ku(&quot;&quot;+d,c.mode,f),d.return=c,d;if(typeof d==&quot;object&quot;&amp;&amp;d!==null){switch(d.$$typeof){case aa:return f=La(d.type,d.key,d.props,null,c.mode,f),f.ref=Bi(c,null,d),f.return=c,f;case Rr:return d=Hu(d,c.mode,f),d.return=c,d;case Sn:var k=d._init;return p(c,k(d._payload),f)}if(Qi(d)||Zi(d))return d=vr(d,c.mode,f,null),d.return=c,d;ga(c,d)}return null}function h(c,d,f,k){var O=d!==null?d.key:null;if(typeof f==&quot;string&quot;&amp;&amp;f!==&quot;&quot;||typeof f==&quot;number&quot;)return O!==null?null:s(c,d,&quot;&quot;+f,k);if(typeof f==&quot;object&quot;&amp;&amp;f!==null){switch(f.$$typeof){case aa:return f.key===O?u(c,d,f,k):null;case Rr:return f.key===O?l(c,d,f,k):null;case Sn:return O=f._init,h(c,d,O(f._payload),k)}if(Qi(f)||Zi(f))return O!==null?null:m(c,d,f,k,null);ga(c,f)}return null}function y(c,d,f,k,O){if(typeof k==&quot;string&quot;&amp;&amp;k!==&quot;&quot;||typeof k==&quot;number&quot;)return c=c.get(f)||null,s(d,c,&quot;&quot;+k,O);if(typeof k==&quot;object&quot;&amp;&amp;k!==null){switch(k.$$typeof){case aa:return c=c.get(k.key===null?f:k.key)||null,u(d,c,k,O);case Rr:return c=c.get(k.key===null?f:k.key)||null,l(d,c,k,O);case Sn:var P=k._init;return y(c,d,f,P(k._payload),O)}if(Qi(k)||Zi(k))return c=c.get(f)||null,m(d,c,k,O,null);ga(d,k)}return null}function g(c,d,f,k){for(var O=null,P=null,L=d,F=d=0,ge=null;L!==null&amp;&amp;F&lt;f.length;F++){L.index&gt;F?(ge=L,L=null):ge=L.sibling;var ne=h(c,L,f[F],k);if(ne===null){L===null&amp;&amp;(L=ge);break}e&amp;&amp;L&amp;&amp;ne.alternate===null&amp;&amp;t(c,L),d=o(ne,d,F),P===null?O=ne:P.sibling=ne,P=ne,L=ge}if(F===f.length)return n(c,L),be&amp;&amp;tr(c,F),O;if(L===null){for(;F&lt;f.length;F++)L=p(c,f[F],k),L!==null&amp;&amp;(d=o(L,d,F),P===null?O=L:P.sibling=L,P=L);return be&amp;&amp;tr(c,F),O}for(L=i(c,L);F&lt;f.length;F++)ge=y(L,c,F,f[F],k),ge!==null&amp;&amp;(e&amp;&amp;ge.alternate!==null&amp;&amp;L.delete(ge.key===null?F:ge.key),d=o(ge,d,F),P===null?O=ge:P.sibling=ge,P=ge);return e&amp;&amp;L.forEach(function(at){return t(c,at)}),be&amp;&amp;tr(c,F),O}function S(c,d,f,k){var O=Zi(f);if(typeof O!=&quot;function&quot;)throw Error(U(150));if(f=O.call(f),f==null)throw Error(U(151));for(var P=O=null,L=d,F=d=0,ge=null,ne=f.next();L!==null&amp;&amp;!ne.done;F++,ne=f.next()){L.index&gt;F?(ge=L,L=null):ge=L.sibling;var at=h(c,L,ne.value,k);if(at===null){L===null&amp;&amp;(L=ge);break}e&amp;&amp;L&amp;&amp;at.alternate===null&amp;&amp;t(c,L),d=o(at,d,F),P===null?O=at:P.sibling=at,P=at,L=ge}if(ne.done)return n(c,L),be&amp;&amp;tr(c,F),O;if(L===null){for(;!ne.done;F++,ne=f.next())ne=p(c,ne.value,k),ne!==null&amp;&amp;(d=o(ne,d,F),P===null?O=ne:P.sibling=ne,P=ne);return be&amp;&amp;tr(c,F),O}for(L=i(c,L);!ne.done;F++,ne=f.next())ne=y(L,c,F,ne.value,k),ne!==null&amp;&amp;(e&amp;&amp;ne.alternate!==null&amp;&amp;L.delete(ne.key===null?F:ne.key),d=o(ne,d,F),P===null?O=ne:P.sibling=ne,P=ne);return e&amp;&amp;L.forEach(function(wn){return t(c,wn)}),be&amp;&amp;tr(c,F),O}function z(c,d,f,k){if(typeof f==&quot;object&quot;&amp;&amp;f!==null&amp;&amp;f.type===Zr&amp;&amp;f.key===null&amp;&amp;(f=f.props.children),typeof f==&quot;object&quot;&amp;&amp;f!==null){switch(f.$$typeof){case aa:e:{for(var O=f.key,P=d;P!==null;){if(P.key===O){if(O=f.type,O===Zr){if(P.tag===7){n(c,P.sibling),d=r(P,f.props.children),d.return=c,c=d;break e}}else if(P.elementType===O||typeof O==&quot;object&quot;&amp;&amp;O!==null&amp;&amp;O.$$typeof===Sn&amp;&amp;up(O)===P.type){n(c,P.sibling),d=r(P,f.props),d.ref=Bi(c,P,f),d.return=c,c=d;break e}n(c,P);break}else t(c,P);P=P.sibling}f.type===Zr?(d=vr(f.props.children,c.mode,k,f.key),d.return=c,c=d):(k=La(f.type,f.key,f.props,null,c.mode,k),k.ref=Bi(c,d,f),k.return=c,c=k)}return a(c);case Rr:e:{for(P=f.key;d!==null;){if(d.key===P)if(d.tag===4&amp;&amp;d.stateNode.containerInfo===f.containerInfo&amp;&amp;d.stateNode.implementation===f.implementation){n(c,d.sibling),d=r(d,f.children||[]),d.return=c,c=d;break e}else{n(c,d);break}else t(c,d);d=d.sibling}d=Hu(f,c.mode,k),d.return=c,c=d}return a(c);case Sn:return P=f._init,z(c,d,P(f._payload),k)}if(Qi(f))return g(c,d,f,k);if(Zi(f))return S(c,d,f,k);ga(c,f)}return typeof f==&quot;string&quot;&amp;&amp;f!==&quot;&quot;||typeof f==&quot;number&quot;?(f=&quot;&quot;+f,d!==null&amp;&amp;d.tag===6?(n(c,d.sibling),d=r(d,f),d.return=c,c=d):(n(c,d),d=Ku(f,c.mode,k),d.return=c,c=d),a(c)):n(c,d)}return z}var _i=Qv(!0),Xv=Qv(!1),us=Gn(null),ls=null,Kr=null,od=null;function ad(){od=Kr=ls=null}function sd(e){var t=us.current;Se(us),e._currentValue=t}function Ul(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&amp;t)!==t?(e.childLanes|=t,i!==null&amp;&amp;(i.childLanes|=t)):i!==null&amp;&amp;(i.childLanes&amp;t)!==t&amp;&amp;(i.childLanes|=t),e===n)break;e=e.return}}function ii(e,t){ls=e,od=Kr=null,e=e.dependencies,e!==null&amp;&amp;e.firstContext!==null&amp;&amp;(e.lanes&amp;t&amp;&amp;(lt=!0),e.firstContext=null)}function Pt(e){var t=e._currentValue;if(od!==e)if(e={context:e,memoizedValue:t,next:null},Kr===null){if(ls===null)throw Error(U(308));Kr=e,ls.dependencies={lanes:0,firstContext:e}}else Kr=Kr.next=e;return t}var sr=null;function ud(e){sr===null?sr=[e]:sr.push(e)}function Yv(e,t,n,i){var r=t.interleaved;return r===null?(n.next=n,ud(t)):(n.next=r.next,r.next=n),t.interleaved=n,vn(e,i)}function vn(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 xn=!1;function ld(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qv(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 mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Rn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,ce&amp;2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,vn(e,n)}return r=i.interleaved,r===null?(t.next=t,ud(i)):(t.next=r.next,r.next=t),i.interleaved=t,vn(e,n)}function Ua(e,t,n){if(t=t.updateQueue,t!==null&amp;&amp;(t=t.shared,(n&amp;4194240)!==0)){var i=t.lanes;i&amp;=e.pendingLanes,n|=i,t.lanes=n,Hc(e,n)}}function lp(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&amp;&amp;(i=i.updateQueue,n===i)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?r=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cs(e,t,n,i){var r=e.updateQueue;xn=!1;var o=r.firstBaseUpdate,a=r.lastBaseUpdate,s=r.shared.pending;if(s!==null){r.shared.pending=null;var u=s,l=u.next;u.next=null,a===null?o=l:a.next=l,a=u;var m=e.alternate;m!==null&amp;&amp;(m=m.updateQueue,s=m.lastBaseUpdate,s!==a&amp;&amp;(s===null?m.firstBaseUpdate=l:s.next=l,m.lastBaseUpdate=u))}if(o!==null){var p=r.baseState;a=0,m=l=u=null,s=o;do{var h=s.lane,y=s.eventTime;if((i&amp;h)===h){m!==null&amp;&amp;(m=m.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,S=s;switch(h=t,y=n,S.tag){case 1:if(g=S.payload,typeof g==&quot;function&quot;){p=g.call(y,p,h);break e}p=g;break e;case 3:g.flags=g.flags&amp;-65537|128;case 0:if(g=S.payload,h=typeof g==&quot;function&quot;?g.call(y,p,h):g,h==null)break e;p=Oe({},p,h);break e;case 2:xn=!0}}s.callback!==null&amp;&amp;s.lane!==0&amp;&amp;(e.flags|=64,h=r.effects,h===null?r.effects=[s]:h.push(s))}else y={eventTime:y,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},m===null?(l=m=y,u=p):m=m.next=y,a|=h;if(s=s.next,s===null){if(s=r.shared.pending,s===null)break;h=s,s=h.next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}while(!0);if(m===null&amp;&amp;(u=p),r.baseState=u,r.firstBaseUpdate=l,r.lastBaseUpdate=m,t=r.shared.interleaved,t!==null){r=t;do a|=r.lane,r=r.next;while(r!==t)}else o===null&amp;&amp;(r.shared.lanes=0);kr|=a,e.lanes=a,e.memoizedState=p}}function cp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t&lt;e.length;t++){var i=e[t],r=i.callback;if(r!==null){if(i.callback=null,i=n,typeof r!=&quot;function&quot;)throw Error(U(191,r));r.call(i)}}}var Yo={},nn=Gn(Yo),Oo=Gn(Yo),Eo=Gn(Yo);function ur(e){if(e===Yo)throw Error(U(174));return e}function cd(e,t){switch(ye(Eo,t),ye(Oo,e),ye(nn,Yo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pl(null,&quot;&quot;);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=pl(t,e)}Se(nn),ye(nn,t)}function wi(){Se(nn),Se(Oo),Se(Eo)}function eg(e){ur(Eo.current);var t=ur(nn.current),n=pl(t,e.type);t!==n&amp;&amp;(ye(Oo,e),ye(nn,n))}function dd(e){Oo.current===e&amp;&amp;(Se(nn),Se(Oo))}var Ie=Gn(0);function ds(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 Mu=[];function fd(){for(var e=0;e&lt;Mu.length;e++)Mu[e]._workInProgressVersionPrimary=null;Mu.length=0}var Ca=_n.ReactCurrentDispatcher,Fu=_n.ReactCurrentBatchConfig,$r=0,ze=null,Re=null,Ve=null,fs=!1,co=!1,No=0,YS=0;function Qe(){throw Error(U(321))}function md(e,t){if(t===null)return!1;for(var n=0;n&lt;t.length&amp;&amp;n&lt;e.length;n++)if(!Jt(e[n],t[n]))return!1;return!0}function pd(e,t,n,i,r,o){if($r=o,ze=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ca.current=e===null||e.memoizedState===null?n1:r1,e=n(i,r),co){o=0;do{if(co=!1,No=0,25&lt;=o)throw Error(U(301));o+=1,Ve=Re=null,t.updateQueue=null,Ca.current=i1,e=n(i,r)}while(co)}if(Ca.current=ms,t=Re!==null&amp;&amp;Re.next!==null,$r=0,Ve=Re=ze=null,fs=!1,t)throw Error(U(300));return e}function hd(){var e=No!==0;return No=0,e}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?ze.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Ut(){if(Re===null){var e=ze.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ve===null?ze.memoizedState:Ve.next;if(t!==null)Ve=t,Re=e;else{if(e===null)throw Error(U(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ve===null?ze.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function jo(e,t){return typeof t==&quot;function&quot;?t(e):t}function Vu(e){var t=Ut(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var i=Re,r=i.baseQueue,o=n.pending;if(o!==null){if(r!==null){var a=r.next;r.next=o.next,o.next=a}i.baseQueue=r=o,n.pending=null}if(r!==null){o=r.next,i=i.baseState;var s=a=null,u=null,l=o;do{var m=l.lane;if(($r&amp;m)===m)u!==null&amp;&amp;(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),i=l.hasEagerState?l.eagerState:e(i,l.action);else{var p={lane:m,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(s=u=p,a=i):u=u.next=p,ze.lanes|=m,kr|=m}l=l.next}while(l!==null&amp;&amp;l!==o);u===null?a=i:u.next=s,Jt(i,t.memoizedState)||(lt=!0),t.memoizedState=i,t.baseState=a,t.baseQueue=u,n.lastRenderedState=i}if(e=n.interleaved,e!==null){r=e;do o=r.lane,ze.lanes|=o,kr|=o,r=r.next;while(r!==e)}else r===null&amp;&amp;(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bu(e){var t=Ut(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var a=r=r.next;do o=e(o,a.action),a=a.next;while(a!==r);Jt(o,t.memoizedState)||(lt=!0),t.memoizedState=o,t.baseQueue===null&amp;&amp;(t.baseState=o),n.lastRenderedState=o}return[o,i]}function tg(){}function ng(e,t){var n=ze,i=Ut(),r=t(),o=!Jt(i.memoizedState,r);if(o&amp;&amp;(i.memoizedState=r,lt=!0),i=i.queue,vd(og.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Ve!==null&amp;&amp;Ve.memoizedState.tag&amp;1){if(n.flags|=2048,To(9,ig.bind(null,n,i,r,t),void 0,null),Be===null)throw Error(U(349));$r&amp;30||rg(n,t,r)}return r}function rg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ze.updateQueue,t===null?(t={lastEffect:null,stores:null},ze.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ig(e,t,n,i){t.value=n,t.getSnapshot=i,ag(t)&amp;&amp;sg(e)}function og(e,t,n){return n(function(){ag(t)&amp;&amp;sg(e)})}function ag(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jt(e,n)}catch{return!0}}function sg(e){var t=vn(e,1);t!==null&amp;&amp;Bt(t,e,1,-1)}function dp(e){var t=Xt();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:jo,lastRenderedState:e},t.queue=e,e=e.dispatch=t1.bind(null,ze,e),[t.memoizedState,e]}function To(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},t=ze.updateQueue,t===null?(t={lastEffect:null,stores:null},ze.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e)),e}function ug(){return Ut().memoizedState}function Aa(e,t,n,i){var r=Xt();ze.flags|=e,r.memoizedState=To(1|t,n,void 0,i===void 0?null:i)}function Ks(e,t,n,i){var r=Ut();i=i===void 0?null:i;var o=void 0;if(Re!==null){var a=Re.memoizedState;if(o=a.destroy,i!==null&amp;&amp;md(i,a.deps)){r.memoizedState=To(t,n,o,i);return}}ze.flags|=e,r.memoizedState=To(1|t,n,o,i)}function fp(e,t){return Aa(8390656,8,e,t)}function vd(e,t){return Ks(2048,8,e,t)}function lg(e,t){return Ks(4,2,e,t)}function cg(e,t){return Ks(4,4,e,t)}function dg(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 fg(e,t,n){return n=n!=null?n.concat([e]):null,Ks(4,4,dg.bind(null,t,e),n)}function gd(){}function mg(e,t){var n=Ut();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&amp;&amp;t!==null&amp;&amp;md(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function pg(e,t){var n=Ut();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&amp;&amp;t!==null&amp;&amp;md(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function hg(e,t,n){return $r&amp;21?(Jt(n,t)||(n=wv(),ze.lanes|=n,kr|=n,e.baseState=!0),t):(e.baseState&amp;&amp;(e.baseState=!1,lt=!0),e.memoizedState=n)}function qS(e,t){var n=ve;ve=n!==0&amp;&amp;4&gt;n?n:4,e(!0);var i=Fu.transition;Fu.transition={};try{e(!1),t()}finally{ve=n,Fu.transition=i}}function vg(){return Ut().memoizedState}function e1(e,t,n){var i=Ln(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},gg(e))yg(t,n);else if(n=Yv(e,t,n,i),n!==null){var r=nt();Bt(n,e,i,r),_g(n,t,i)}}function t1(e,t,n){var i=Ln(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(gg(e))yg(t,r);else{var o=e.alternate;if(e.lanes===0&amp;&amp;(o===null||o.lanes===0)&amp;&amp;(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(r.hasEagerState=!0,r.eagerState=s,Jt(s,a)){var u=t.interleaved;u===null?(r.next=r,ud(t)):(r.next=u.next,u.next=r),t.interleaved=r;return}}catch{}finally{}n=Yv(e,t,r,i),n!==null&amp;&amp;(r=nt(),Bt(n,e,i,r),_g(n,t,i))}}function gg(e){var t=e.alternate;return e===ze||t!==null&amp;&amp;t===ze}function yg(e,t){co=fs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _g(e,t,n){if(n&amp;4194240){var i=t.lanes;i&amp;=e.pendingLanes,n|=i,t.lanes=n,Hc(e,n)}}var ms={readContext:Pt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},n1={readContext:Pt,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Pt,useEffect:fp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Aa(4194308,4,dg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Aa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Aa(4,2,e,t)},useMemo:function(e,t){var n=Xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Xt();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=e1.bind(null,ze,e),[i.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:dp,useDebugValue:gd,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=dp(!1),t=e[0];return e=qS.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ze,r=Xt();if(be){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Be===null)throw Error(U(349));$r&amp;30||rg(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,fp(og.bind(null,i,o,e),[e]),i.flags|=2048,To(9,ig.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Xt(),t=Be.identifierPrefix;if(be){var n=dn,i=cn;n=(i&amp;~(1&lt;&lt;32-Vt(i)-1)).toString(32)+n,t=&quot;:&quot;+t+&quot;R&quot;+n,n=No++,0&lt;n&amp;&amp;(t+=&quot;H&quot;+n.toString(32)),t+=&quot;:&quot;}else n=YS++,t=&quot;:&quot;+t+&quot;r&quot;+n.toString(32)+&quot;:&quot;;return e.memoizedState=t},unstable_isNewReconciler:!1},r1={readContext:Pt,useCallback:mg,useContext:Pt,useEffect:vd,useImperativeHandle:fg,useInsertionEffect:lg,useLayoutEffect:cg,useMemo:pg,useReducer:Vu,useRef:ug,useState:function(){return Vu(jo)},useDebugValue:gd,useDeferredValue:function(e){var t=Ut();return hg(t,Re.memoizedState,e)},useTransition:function(){var e=Vu(jo)[0],t=Ut().memoizedState;return[e,t]},useMutableSource:tg,useSyncExternalStore:ng,useId:vg,unstable_isNewReconciler:!1},i1={readContext:Pt,useCallback:mg,useContext:Pt,useEffect:vd,useImperativeHandle:fg,useInsertionEffect:lg,useLayoutEffect:cg,useMemo:pg,useReducer:Bu,useRef:ug,useState:function(){return Bu(jo)},useDebugValue:gd,useDeferredValue:function(e){var t=Ut();return Re===null?t.memoizedState=e:hg(t,Re.memoizedState,e)},useTransition:function(){var e=Bu(jo)[0],t=Ut().memoizedState;return[e,t]},useMutableSource:tg,useSyncExternalStore:ng,useId:vg,unstable_isNewReconciler:!1};function Zt(e,t){if(e&amp;&amp;e.defaultProps){t=Oe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&amp;&amp;(t[n]=e[n]);return t}return t}function Cl(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Oe({},t,n),e.memoizedState=n,e.lanes===0&amp;&amp;(e.updateQueue.baseState=n)}var Hs={isMounted:function(e){return(e=e._reactInternals)?Er(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=nt(),r=Ln(e),o=mn(i,r);o.payload=t,n!=null&amp;&amp;(o.callback=n),t=Rn(e,o,r),t!==null&amp;&amp;(Bt(t,e,r,i),Ua(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=nt(),r=Ln(e),o=mn(i,r);o.tag=1,o.payload=t,n!=null&amp;&amp;(o.callback=n),t=Rn(e,o,r),t!==null&amp;&amp;(Bt(t,e,r,i),Ua(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nt(),i=Ln(e),r=mn(n,i);r.tag=2,t!=null&amp;&amp;(r.callback=t),t=Rn(e,r,i),t!==null&amp;&amp;(Bt(t,e,i,n),Ua(t,e,i))}};function mp(e,t,n,i,r,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate==&quot;function&quot;?e.shouldComponentUpdate(i,o,a):t.prototype&amp;&amp;t.prototype.isPureReactComponent?!xo(n,i)||!xo(r,o):!0}function wg(e,t,n){var i=!1,r=Wn,o=t.contextType;return typeof o==&quot;object&quot;&amp;&amp;o!==null?o=Pt(o):(r=dt(t)?_r:qe.current,i=t.contextTypes,o=(i=i!=null)?gi(e,r):Wn),t=new t(n,o),e.memoizedState=t.state!==null&amp;&amp;t.state!==void 0?t.state:null,t.updater=Hs,e.stateNode=t,t._reactInternals=e,i&amp;&amp;(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function pp(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps==&quot;function&quot;&amp;&amp;t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps==&quot;function&quot;&amp;&amp;t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&amp;&amp;Hs.enqueueReplaceState(t,t.state,null)}function Al(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},ld(e);var o=t.contextType;typeof o==&quot;object&quot;&amp;&amp;o!==null?r.context=Pt(o):(o=dt(t)?_r:qe.current,r.context=gi(e,o)),r.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o==&quot;function&quot;&amp;&amp;(Cl(e,t,o,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps==&quot;function&quot;||typeof r.getSnapshotBeforeUpdate==&quot;function&quot;||typeof r.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof r.componentWillMount!=&quot;function&quot;||(t=r.state,typeof r.componentWillMount==&quot;function&quot;&amp;&amp;r.componentWillMount(),typeof r.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;r.UNSAFE_componentWillMount(),t!==r.state&amp;&amp;Hs.enqueueReplaceState(r,r.state,null),cs(e,n,r,i),r.state=e.memoizedState),typeof r.componentDidMount==&quot;function&quot;&amp;&amp;(e.flags|=4194308)}function $i(e,t){try{var n=&quot;&quot;,i=t;do n+=Tk(i),i=i.return;while(i);var r=n}catch(o){r=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:r,digest:null}}function Wu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Dl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var o1=typeof WeakMap==&quot;function&quot;?WeakMap:Map;function $g(e,t,n){n=mn(-1,n),n.tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){hs||(hs=!0,Kl=i),Dl(e,t)},n}function kg(e,t,n){n=mn(-1,n),n.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i==&quot;function&quot;){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){Dl(e,t)}}var o=e.stateNode;return o!==null&amp;&amp;typeof o.componentDidCatch==&quot;function&quot;&amp;&amp;(n.callback=function(){Dl(e,t),typeof i!=&quot;function&quot;&amp;&amp;(Zn===null?Zn=new Set([this]):Zn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:&quot;&quot;})}),n}function hp(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new o1;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&amp;&amp;(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=_1.bind(null,e,t,n),t.then(e,e))}function vp(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 gp(e,t,n,i,r){return e.mode&amp;1?(e.flags|=65536,e.lanes=r,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=mn(-1,1),t.tag=2,Rn(n,t,1))),n.lanes|=1),e)}var a1=_n.ReactCurrentOwner,lt=!1;function et(e,t,n,i){t.child=e===null?Xv(t,null,n,i):_i(t,e.child,n,i)}function yp(e,t,n,i,r){n=n.render;var o=t.ref;return ii(t,r),i=pd(e,t,n,i,o,r),n=hd(),e!==null&amp;&amp;!lt?(t.updateQueue=e.updateQueue,t.flags&amp;=-2053,e.lanes&amp;=~r,gn(e,t,r)):(be&amp;&amp;n&amp;&amp;nd(t),t.flags|=1,et(e,t,i,r),t.child)}function _p(e,t,n,i,r){if(e===null){var o=n.type;return typeof o==&quot;function&quot;&amp;&amp;!bd(o)&amp;&amp;o.defaultProps===void 0&amp;&amp;n.compare===null&amp;&amp;n.defaultProps===void 0?(t.tag=15,t.type=o,Sg(e,t,o,i,r)):(e=La(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&amp;r)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:xo,n(a,i)&amp;&amp;e.ref===t.ref)return gn(e,t,r)}return t.flags|=1,e=Mn(o,i),e.ref=t.ref,e.return=t,t.child=e}function Sg(e,t,n,i,r){if(e!==null){var o=e.memoizedProps;if(xo(o,i)&amp;&amp;e.ref===t.ref)if(lt=!1,t.pendingProps=i=o,(e.lanes&amp;r)!==0)e.flags&amp;131072&amp;&amp;(lt=!0);else return t.lanes=e.lanes,gn(e,t,r)}return Rl(e,t,n,i,r)}function xg(e,t,n){var i=t.pendingProps,r=i.children,o=e!==null?e.memoizedState:null;if(i.mode===&quot;hidden&quot;)if(!(t.mode&amp;1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(Gr,vt),vt|=n;else{if(!(n&amp;1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ye(Gr,vt),vt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=o!==null?o.baseLanes:n,ye(Gr,vt),vt|=i}else o!==null?(i=o.baseLanes|n,t.memoizedState=null):i=n,ye(Gr,vt),vt|=i;return et(e,t,r,n),t.child}function bg(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 Rl(e,t,n,i,r){var o=dt(n)?_r:qe.current;return o=gi(t,o),ii(t,r),n=pd(e,t,n,i,o,r),i=hd(),e!==null&amp;&amp;!lt?(t.updateQueue=e.updateQueue,t.flags&amp;=-2053,e.lanes&amp;=~r,gn(e,t,r)):(be&amp;&amp;i&amp;&amp;nd(t),t.flags|=1,et(e,t,n,r),t.child)}function wp(e,t,n,i,r){if(dt(n)){var o=!0;os(t)}else o=!1;if(ii(t,r),t.stateNode===null)Da(e,t),wg(t,n,i),Al(t,n,i,r),i=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;typeof l==&quot;object&quot;&amp;&amp;l!==null?l=Pt(l):(l=dt(n)?_r:qe.current,l=gi(t,l));var m=n.getDerivedStateFromProps,p=typeof m==&quot;function&quot;||typeof a.getSnapshotBeforeUpdate==&quot;function&quot;;p||typeof a.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof a.componentWillReceiveProps!=&quot;function&quot;||(s!==i||u!==l)&amp;&amp;pp(t,a,i,l),xn=!1;var h=t.memoizedState;a.state=h,cs(t,i,a,r),u=t.memoizedState,s!==i||h!==u||ct.current||xn?(typeof m==&quot;function&quot;&amp;&amp;(Cl(t,n,m,i),u=t.memoizedState),(s=xn||mp(t,n,s,i,h,u,l))?(p||typeof a.UNSAFE_componentWillMount!=&quot;function&quot;&amp;&amp;typeof a.componentWillMount!=&quot;function&quot;||(typeof a.componentWillMount==&quot;function&quot;&amp;&amp;a.componentWillMount(),typeof a.UNSAFE_componentWillMount==&quot;function&quot;&amp;&amp;a.UNSAFE_componentWillMount()),typeof a.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308)):(typeof a.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=u),a.props=i,a.state=u,a.context=l,i=s):(typeof a.componentDidMount==&quot;function&quot;&amp;&amp;(t.flags|=4194308),i=!1)}else{a=t.stateNode,qv(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Zt(t.type,s),a.props=l,p=t.pendingProps,h=a.context,u=n.contextType,typeof u==&quot;object&quot;&amp;&amp;u!==null?u=Pt(u):(u=dt(n)?_r:qe.current,u=gi(t,u));var y=n.getDerivedStateFromProps;(m=typeof y==&quot;function&quot;||typeof a.getSnapshotBeforeUpdate==&quot;function&quot;)||typeof a.UNSAFE_componentWillReceiveProps!=&quot;function&quot;&amp;&amp;typeof a.componentWillReceiveProps!=&quot;function&quot;||(s!==p||h!==u)&amp;&amp;pp(t,a,i,u),xn=!1,h=t.memoizedState,a.state=h,cs(t,i,a,r);var g=t.memoizedState;s!==p||h!==g||ct.current||xn?(typeof y==&quot;function&quot;&amp;&amp;(Cl(t,n,y,i),g=t.memoizedState),(l=xn||mp(t,n,l,i,h,g,u)||!1)?(m||typeof a.UNSAFE_componentWillUpdate!=&quot;function&quot;&amp;&amp;typeof a.componentWillUpdate!=&quot;function&quot;||(typeof a.componentWillUpdate==&quot;function&quot;&amp;&amp;a.componentWillUpdate(i,g,u),typeof a.UNSAFE_componentWillUpdate==&quot;function&quot;&amp;&amp;a.UNSAFE_componentWillUpdate(i,g,u)),typeof a.componentDidUpdate==&quot;function&quot;&amp;&amp;(t.flags|=4),typeof a.getSnapshotBeforeUpdate==&quot;function&quot;&amp;&amp;(t.flags|=1024)):(typeof a.componentDidUpdate!=&quot;function&quot;||s===e.memoizedProps&amp;&amp;h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=&quot;function&quot;||s===e.memoizedProps&amp;&amp;h===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=g),a.props=i,a.state=g,a.context=u,i=l):(typeof a.componentDidUpdate!=&quot;function&quot;||s===e.memoizedProps&amp;&amp;h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=&quot;function&quot;||s===e.memoizedProps&amp;&amp;h===e.memoizedState||(t.flags|=1024),i=!1)}return Zl(e,t,n,i,o,r)}function Zl(e,t,n,i,r,o){bg(e,t);var a=(t.flags&amp;128)!==0;if(!i&amp;&amp;!a)return r&amp;&amp;op(t,n,!1),gn(e,t,o);i=t.stateNode,a1.current=t;var s=a&amp;&amp;typeof n.getDerivedStateFromError!=&quot;function&quot;?null:i.render();return t.flags|=1,e!==null&amp;&amp;a?(t.child=_i(t,e.child,null,o),t.child=_i(t,null,s,o)):et(e,t,s,o),t.memoizedState=i.state,r&amp;&amp;op(t,n,!0),t.child}function Ig(e){var t=e.stateNode;t.pendingContext?ip(e,t.pendingContext,t.pendingContext!==t.context):t.context&amp;&amp;ip(e,t.context,!1),cd(e,t.containerInfo)}function $p(e,t,n,i,r){return yi(),id(r),t.flags|=256,et(e,t,n,i),t.child}var Ll={dehydrated:null,treeContext:null,retryLane:0};function Ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function zg(e,t,n){var i=t.pendingProps,r=Ie.current,o=!1,a=(t.flags&amp;128)!==0,s;if((s=a)||(s=e!==null&amp;&amp;e.memoizedState===null?!1:(r&amp;2)!==0),s?(o=!0,t.flags&amp;=-129):(e===null||e.memoizedState!==null)&amp;&amp;(r|=1),ye(Ie,r&amp;1),e===null)return Pl(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):(a=i.children,e=i.fallback,o?(i=t.mode,o=t.child,a={mode:&quot;hidden&quot;,children:a},!(i&amp;1)&amp;&amp;o!==null?(o.childLanes=0,o.pendingProps=a):o=Xs(a,i,0,null),e=vr(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ml(n),t.memoizedState=Ll,e):yd(t,a));if(r=e.memoizedState,r!==null&amp;&amp;(s=r.dehydrated,s!==null))return s1(e,t,a,i,s,r,n);if(o){o=i.fallback,a=t.mode,r=e.child,s=r.sibling;var u={mode:&quot;hidden&quot;,children:i.children};return!(a&amp;1)&amp;&amp;t.child!==r?(i=t.child,i.childLanes=0,i.pendingProps=u,t.deletions=null):(i=Mn(r,u),i.subtreeFlags=r.subtreeFlags&amp;14680064),s!==null?o=Mn(s,o):(o=vr(o,a,n,null),o.flags|=2),o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,a=e.child.memoizedState,a=a===null?Ml(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&amp;~n,t.memoizedState=Ll,i}return o=e.child,e=o.sibling,i=Mn(o,{mode:&quot;visible&quot;,children:i.children}),!(t.mode&amp;1)&amp;&amp;(i.lanes=n),i.return=t,i.sibling=null,e!==null&amp;&amp;(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function yd(e,t){return t=Xs({mode:&quot;visible&quot;,children:t},e.mode,0,null),t.return=e,e.child=t}function ya(e,t,n,i){return i!==null&amp;&amp;id(i),_i(t,e.child,null,n),e=yd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function s1(e,t,n,i,r,o,a){if(n)return t.flags&amp;256?(t.flags&amp;=-257,i=Wu(Error(U(422))),ya(e,t,a,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=i.fallback,r=t.mode,i=Xs({mode:&quot;visible&quot;,children:i.children},r,0,null),o=vr(o,r,a,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&amp;1&amp;&amp;_i(t,e.child,null,a),t.child.memoizedState=Ml(a),t.memoizedState=Ll,o);if(!(t.mode&amp;1))return ya(e,t,a,null);if(r.data===&quot;$!&quot;){if(i=r.nextSibling&amp;&amp;r.nextSibling.dataset,i)var s=i.dgst;return i=s,o=Error(U(419)),i=Wu(o,i,void 0),ya(e,t,a,i)}if(s=(a&amp;e.childLanes)!==0,lt||s){if(i=Be,i!==null){switch(a&amp;-a){case 4:r=2;break;case 16:r=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:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&amp;(i.suspendedLanes|a)?0:r,r!==0&amp;&amp;r!==o.retryLane&amp;&amp;(o.retryLane=r,vn(e,r),Bt(i,e,r,-1))}return xd(),i=Wu(Error(U(421))),ya(e,t,a,i)}return r.data===&quot;$?&quot;?(t.flags|=128,t.child=e.child,t=w1.bind(null,e),r._reactRetry=t,null):(e=o.treeContext,yt=Dn(r.nextSibling),wt=t,be=!0,Ft=null,e!==null&amp;&amp;(bt[It++]=cn,bt[It++]=dn,bt[It++]=wr,cn=e.id,dn=e.overflow,wr=t),t=yd(t,i.children),t.flags|=4096,t)}function kp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&amp;&amp;(i.lanes|=t),Ul(e.return,t,n)}function Ju(e,t,n,i,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=r)}function Og(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(et(e,t,i.children,n),i=Ie.current,i&amp;2)i=i&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;kp(e,n,t);else if(e.tag===19)kp(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}i&amp;=1}if(ye(Ie,i),!(t.mode&amp;1))t.memoizedState=null;else switch(r){case&quot;forwards&quot;:for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&amp;&amp;ds(e)===null&amp;&amp;(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Ju(t,!1,r,n,o);break;case&quot;backwards&quot;:for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&amp;&amp;ds(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Ju(t,!0,n,null,o);break;case&quot;together&quot;:Ju(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Da(e,t){!(t.mode&amp;1)&amp;&amp;e!==null&amp;&amp;(e.alternate=null,t.alternate=null,t.flags|=2)}function gn(e,t,n){if(e!==null&amp;&amp;(t.dependencies=e.dependencies),kr|=t.lanes,!(n&amp;t.childLanes))return null;if(e!==null&amp;&amp;t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=Mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function u1(e,t,n){switch(t.tag){case 3:Ig(t),yi();break;case 5:eg(t);break;case 1:dt(t.type)&amp;&amp;os(t);break;case 4:cd(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;ye(us,i._currentValue),i._currentValue=r;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(ye(Ie,Ie.current&amp;1),t.flags|=128,null):n&amp;t.child.childLanes?zg(e,t,n):(ye(Ie,Ie.current&amp;1),e=gn(e,t,n),e!==null?e.sibling:null);ye(Ie,Ie.current&amp;1);break;case 19:if(i=(n&amp;t.childLanes)!==0,e.flags&amp;128){if(i)return Og(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&amp;&amp;(r.rendering=null,r.tail=null,r.lastEffect=null),ye(Ie,Ie.current),i)break;return null;case 22:case 23:return t.lanes=0,xg(e,t,n)}return gn(e,t,n)}var Eg,Fl,Ng,jg;Eg=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}};Fl=function(){};Ng=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,ur(nn.current);var o=null;switch(n){case&quot;input&quot;:r=cl(e,r),i=cl(e,i),o=[];break;case&quot;select&quot;:r=Oe({},r,{value:void 0}),i=Oe({},i,{value:void 0}),o=[];break;case&quot;textarea&quot;:r=ml(e,r),i=ml(e,i),o=[];break;default:typeof r.onClick!=&quot;function&quot;&amp;&amp;typeof i.onClick==&quot;function&quot;&amp;&amp;(e.onclick=rs)}hl(n,i);var a;n=null;for(l in r)if(!i.hasOwnProperty(l)&amp;&amp;r.hasOwnProperty(l)&amp;&amp;r[l]!=null)if(l===&quot;style&quot;){var s=r[l];for(a in s)s.hasOwnProperty(a)&amp;&amp;(n||(n={}),n[a]=&quot;&quot;)}else l!==&quot;dangerouslySetInnerHTML&quot;&amp;&amp;l!==&quot;children&quot;&amp;&amp;l!==&quot;suppressContentEditableWarning&quot;&amp;&amp;l!==&quot;suppressHydrationWarning&quot;&amp;&amp;l!==&quot;autoFocus&quot;&amp;&amp;(go.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in i){var u=i[l];if(s=r!=null?r[l]:void 0,i.hasOwnProperty(l)&amp;&amp;u!==s&amp;&amp;(u!=null||s!=null))if(l===&quot;style&quot;)if(s){for(a in s)!s.hasOwnProperty(a)||u&amp;&amp;u.hasOwnProperty(a)||(n||(n={}),n[a]=&quot;&quot;);for(a in u)u.hasOwnProperty(a)&amp;&amp;s[a]!==u[a]&amp;&amp;(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(l,n)),n=u;else l===&quot;dangerouslySetInnerHTML&quot;?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&amp;&amp;s!==u&amp;&amp;(o=o||[]).push(l,u)):l===&quot;children&quot;?typeof u!=&quot;string&quot;&amp;&amp;typeof u!=&quot;number&quot;||(o=o||[]).push(l,&quot;&quot;+u):l!==&quot;suppressContentEditableWarning&quot;&amp;&amp;l!==&quot;suppressHydrationWarning&quot;&amp;&amp;(go.hasOwnProperty(l)?(u!=null&amp;&amp;l===&quot;onScroll&quot;&amp;&amp;we(&quot;scroll&quot;,e),o||s===u||(o=[])):(o=o||[]).push(l,u))}n&amp;&amp;(o=o||[]).push(&quot;style&quot;,n);var l=o;(t.updateQueue=l)&amp;&amp;(t.flags|=4)}};jg=function(e,t,n,i){n!==i&amp;&amp;(t.flags|=4)};function Wi(e,t){if(!be)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 i=null;n!==null;)n.alternate!==null&amp;&amp;(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Xe(e){var t=e.alternate!==null&amp;&amp;e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&amp;14680064,i|=r.flags&amp;14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function l1(e,t,n){var i=t.pendingProps;switch(rd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return dt(t.type)&amp;&amp;is(),Xe(t),null;case 3:return i=t.stateNode,wi(),Se(ct),Se(qe),fd(),i.pendingContext&amp;&amp;(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&amp;&amp;(va(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&amp;&amp;!(t.flags&amp;256)||(t.flags|=1024,Ft!==null&amp;&amp;(Ql(Ft),Ft=null))),Fl(e,t),Xe(t),null;case 5:dd(t);var r=ur(Eo.current);if(n=t.type,e!==null&amp;&amp;t.stateNode!=null)Ng(e,t,n,i,r),e.ref!==t.ref&amp;&amp;(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(U(166));return Xe(t),null}if(e=ur(nn.current),va(t)){i=t.stateNode,n=t.type;var o=t.memoizedProps;switch(i[en]=t,i[zo]=o,e=(t.mode&amp;1)!==0,n){case&quot;dialog&quot;:we(&quot;cancel&quot;,i),we(&quot;close&quot;,i);break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:we(&quot;load&quot;,i);break;case&quot;video&quot;:case&quot;audio&quot;:for(r=0;r&lt;Yi.length;r++)we(Yi[r],i);break;case&quot;source&quot;:we(&quot;error&quot;,i);break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:we(&quot;error&quot;,i),we(&quot;load&quot;,i);break;case&quot;details&quot;:we(&quot;toggle&quot;,i);break;case&quot;input&quot;:jm(i,o),we(&quot;invalid&quot;,i);break;case&quot;select&quot;:i._wrapperState={wasMultiple:!!o.multiple},we(&quot;invalid&quot;,i);break;case&quot;textarea&quot;:Pm(i,o),we(&quot;invalid&quot;,i)}hl(n,o),r=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a===&quot;children&quot;?typeof s==&quot;string&quot;?i.textContent!==s&amp;&amp;(o.suppressHydrationWarning!==!0&amp;&amp;ha(i.textContent,s,e),r=[&quot;children&quot;,s]):typeof s==&quot;number&quot;&amp;&amp;i.textContent!==&quot;&quot;+s&amp;&amp;(o.suppressHydrationWarning!==!0&amp;&amp;ha(i.textContent,s,e),r=[&quot;children&quot;,&quot;&quot;+s]):go.hasOwnProperty(a)&amp;&amp;s!=null&amp;&amp;a===&quot;onScroll&quot;&amp;&amp;we(&quot;scroll&quot;,i)}switch(n){case&quot;input&quot;:sa(i),Tm(i,o,!0);break;case&quot;textarea&quot;:sa(i),Um(i);break;case&quot;select&quot;:case&quot;option&quot;:break;default:typeof o.onClick==&quot;function&quot;&amp;&amp;(i.onclick=rs)}i=r,t.updateQueue=i,i!==null&amp;&amp;(t.flags|=4)}else{a=r.nodeType===9?r:r.ownerDocument,e===&quot;http://www.w3.org/1999/xhtml&quot;&amp;&amp;(e=ov(n)),e===&quot;http://www.w3.org/1999/xhtml&quot;?n===&quot;script&quot;?(e=a.createElement(&quot;div&quot;),e.innerHTML=&quot;&lt;script&gt;&lt;\/script&gt;&quot;,e=e.removeChild(e.firstChild)):typeof i.is==&quot;string&quot;?e=a.createElement(n,{is:i.is}):(e=a.createElement(n),n===&quot;select&quot;&amp;&amp;(a=e,i.multiple?a.multiple=!0:i.size&amp;&amp;(a.size=i.size))):e=a.createElementNS(e,n),e[en]=t,e[zo]=i,Eg(e,t,!1,!1),t.stateNode=e;e:{switch(a=vl(n,i),n){case&quot;dialog&quot;:we(&quot;cancel&quot;,e),we(&quot;close&quot;,e),r=i;break;case&quot;iframe&quot;:case&quot;object&quot;:case&quot;embed&quot;:we(&quot;load&quot;,e),r=i;break;case&quot;video&quot;:case&quot;audio&quot;:for(r=0;r&lt;Yi.length;r++)we(Yi[r],e);r=i;break;case&quot;source&quot;:we(&quot;error&quot;,e),r=i;break;case&quot;img&quot;:case&quot;image&quot;:case&quot;link&quot;:we(&quot;error&quot;,e),we(&quot;load&quot;,e),r=i;break;case&quot;details&quot;:we(&quot;toggle&quot;,e),r=i;break;case&quot;input&quot;:jm(e,i),r=cl(e,i),we(&quot;invalid&quot;,e);break;case&quot;option&quot;:r=i;break;case&quot;select&quot;:e._wrapperState={wasMultiple:!!i.multiple},r=Oe({},i,{value:void 0}),we(&quot;invalid&quot;,e);break;case&quot;textarea&quot;:Pm(e,i),r=ml(e,i),we(&quot;invalid&quot;,e);break;default:r=i}hl(n,r),s=r;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o===&quot;style&quot;?uv(e,u):o===&quot;dangerouslySetInnerHTML&quot;?(u=u?u.__html:void 0,u!=null&amp;&amp;av(e,u)):o===&quot;children&quot;?typeof u==&quot;string&quot;?(n!==&quot;textarea&quot;||u!==&quot;&quot;)&amp;&amp;yo(e,u):typeof u==&quot;number&quot;&amp;&amp;yo(e,&quot;&quot;+u):o!==&quot;suppressContentEditableWarning&quot;&amp;&amp;o!==&quot;suppressHydrationWarning&quot;&amp;&amp;o!==&quot;autoFocus&quot;&amp;&amp;(go.hasOwnProperty(o)?u!=null&amp;&amp;o===&quot;onScroll&quot;&amp;&amp;we(&quot;scroll&quot;,e):u!=null&amp;&amp;Fc(e,o,u,a))}switch(n){case&quot;input&quot;:sa(e),Tm(e,i,!1);break;case&quot;textarea&quot;:sa(e),Um(e);break;case&quot;option&quot;:i.value!=null&amp;&amp;e.setAttribute(&quot;value&quot;,&quot;&quot;+Bn(i.value));break;case&quot;select&quot;:e.multiple=!!i.multiple,o=i.value,o!=null?ei(e,!!i.multiple,o,!1):i.defaultValue!=null&amp;&amp;ei(e,!!i.multiple,i.defaultValue,!0);break;default:typeof r.onClick==&quot;function&quot;&amp;&amp;(e.onclick=rs)}switch(n){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:i=!!i.autoFocus;break e;case&quot;img&quot;:i=!0;break e;default:i=!1}}i&amp;&amp;(t.flags|=4)}t.ref!==null&amp;&amp;(t.flags|=512,t.flags|=2097152)}return Xe(t),null;case 6:if(e&amp;&amp;t.stateNode!=null)jg(e,t,e.memoizedProps,i);else{if(typeof i!=&quot;string&quot;&amp;&amp;t.stateNode===null)throw Error(U(166));if(n=ur(Eo.current),ur(nn.current),va(t)){if(i=t.stateNode,n=t.memoizedProps,i[en]=t,(o=i.nodeValue!==n)&amp;&amp;(e=wt,e!==null))switch(e.tag){case 3:ha(i.nodeValue,n,(e.mode&amp;1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&amp;&amp;ha(i.nodeValue,n,(e.mode&amp;1)!==0)}o&amp;&amp;(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[en]=t,t.stateNode=i}return Xe(t),null;case 13:if(Se(Ie),i=t.memoizedState,e===null||e.memoizedState!==null&amp;&amp;e.memoizedState.dehydrated!==null){if(be&amp;&amp;yt!==null&amp;&amp;t.mode&amp;1&amp;&amp;!(t.flags&amp;128))Gv(),yi(),t.flags|=98560,o=!1;else if(o=va(t),i!==null&amp;&amp;i.dehydrated!==null){if(e===null){if(!o)throw Error(U(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(U(317));o[en]=t}else yi(),!(t.flags&amp;128)&amp;&amp;(t.memoizedState=null),t.flags|=4;Xe(t),o=!1}else Ft!==null&amp;&amp;(Ql(Ft),Ft=null),o=!0;if(!o)return t.flags&amp;65536?t:null}return t.flags&amp;128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&amp;&amp;e.memoizedState!==null)&amp;&amp;i&amp;&amp;(t.child.flags|=8192,t.mode&amp;1&amp;&amp;(e===null||Ie.current&amp;1?Le===0&amp;&amp;(Le=3):xd())),t.updateQueue!==null&amp;&amp;(t.flags|=4),Xe(t),null);case 4:return wi(),Fl(e,t),e===null&amp;&amp;bo(t.stateNode.containerInfo),Xe(t),null;case 10:return sd(t.type._context),Xe(t),null;case 17:return dt(t.type)&amp;&amp;is(),Xe(t),null;case 19:if(Se(Ie),o=t.memoizedState,o===null)return Xe(t),null;if(i=(t.flags&amp;128)!==0,a=o.rendering,a===null)if(i)Wi(o,!1);else{if(Le!==0||e!==null&amp;&amp;e.flags&amp;128)for(e=t.child;e!==null;){if(a=ds(e),a!==null){for(t.flags|=128,Wi(o,!1),i=a.updateQueue,i!==null&amp;&amp;(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)o=n,e=i,o.flags&amp;=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ye(Ie,Ie.current&amp;1|2),t.child}e=e.sibling}o.tail!==null&amp;&amp;Te()&gt;ki&amp;&amp;(t.flags|=128,i=!0,Wi(o,!1),t.lanes=4194304)}else{if(!i)if(e=ds(a),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&amp;&amp;(t.updateQueue=n,t.flags|=4),Wi(o,!0),o.tail===null&amp;&amp;o.tailMode===&quot;hidden&quot;&amp;&amp;!a.alternate&amp;&amp;!be)return Xe(t),null}else 2*Te()-o.renderingStartTime&gt;ki&amp;&amp;n!==1073741824&amp;&amp;(t.flags|=128,i=!0,Wi(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Te(),t.sibling=null,n=Ie.current,ye(Ie,i?n&amp;1|2:n&amp;1),t):(Xe(t),null);case 22:case 23:return Sd(),i=t.memoizedState!==null,e!==null&amp;&amp;e.memoizedState!==null!==i&amp;&amp;(t.flags|=8192),i&amp;&amp;t.mode&amp;1?vt&amp;1073741824&amp;&amp;(Xe(t),t.subtreeFlags&amp;6&amp;&amp;(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function c1(e,t){switch(rd(t),t.tag){case 1:return dt(t.type)&amp;&amp;is(),e=t.flags,e&amp;65536?(t.flags=e&amp;-65537|128,t):null;case 3:return wi(),Se(ct),Se(qe),fd(),e=t.flags,e&amp;65536&amp;&amp;!(e&amp;128)?(t.flags=e&amp;-65537|128,t):null;case 5:return dd(t),null;case 13:if(Se(Ie),e=t.memoizedState,e!==null&amp;&amp;e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));yi()}return e=t.flags,e&amp;65536?(t.flags=e&amp;-65537|128,t):null;case 19:return Se(Ie),null;case 4:return wi(),null;case 10:return sd(t.type._context),null;case 22:case 23:return Sd(),null;case 24:return null;default:return null}}var _a=!1,Ye=!1,d1=typeof WeakSet==&quot;function&quot;?WeakSet:Set,V=null;function Hr(e,t){var n=e.ref;if(n!==null)if(typeof n==&quot;function&quot;)try{n(null)}catch(i){Ne(e,t,i)}else n.current=null}function Vl(e,t,n){try{n()}catch(i){Ne(e,t,i)}}var Sp=!1;function f1(e,t){if(Il=es,e=Av(),td(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 i=n.getSelection&amp;&amp;n.getSelection();if(i&amp;&amp;i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,u=-1,l=0,m=0,p=e,h=null;t:for(;;){for(var y;p!==n||r!==0&amp;&amp;p.nodeType!==3||(s=a+r),p!==o||i!==0&amp;&amp;p.nodeType!==3||(u=a+i),p.nodeType===3&amp;&amp;(a+=p.nodeValue.length),(y=p.firstChild)!==null;)h=p,p=y;for(;;){if(p===e)break t;if(h===n&amp;&amp;++l===r&amp;&amp;(s=a),h===o&amp;&amp;++m===i&amp;&amp;(u=a),(y=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=y}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(zl={focusedElem:e,selectionRange:n},es=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&amp;1028)!==0&amp;&amp;e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var g=t.alternate;if(t.flags&amp;1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,z=g.memoizedState,c=t.stateNode,d=c.getSnapshotBeforeUpdate(t.elementType===t.type?S:Zt(t.type,S),z);c.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent=&quot;&quot;:f.nodeType===9&amp;&amp;f.documentElement&amp;&amp;f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(k){Ne(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return g=Sp,Sp=!1,g}function fo(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&amp;e)===e){var o=r.destroy;r.destroy=void 0,o!==void 0&amp;&amp;Vl(t,n,o)}r=r.next}while(r!==i)}}function Gs(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 i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function Bl(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 Tg(e){var t=e.alternate;t!==null&amp;&amp;(e.alternate=null,Tg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&amp;&amp;(t=e.stateNode,t!==null&amp;&amp;(delete t[en],delete t[zo],delete t[Nl],delete t[HS],delete t[GS])),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 Pg(e){return e.tag===5||e.tag===3||e.tag===4}function xp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pg(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 Wl(e,t,n){var i=e.tag;if(i===5||i===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=rs));else if(i!==4&amp;&amp;(e=e.child,e!==null))for(Wl(e,t,n),e=e.sibling;e!==null;)Wl(e,t,n),e=e.sibling}function Jl(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&amp;&amp;(e=e.child,e!==null))for(Jl(e,t,n),e=e.sibling;e!==null;)Jl(e,t,n),e=e.sibling}var Je=null,Mt=!1;function $n(e,t,n){for(n=n.child;n!==null;)Ug(e,t,n),n=n.sibling}function Ug(e,t,n){if(tn&amp;&amp;typeof tn.onCommitFiberUnmount==&quot;function&quot;)try{tn.onCommitFiberUnmount(Ms,n)}catch{}switch(n.tag){case 5:Ye||Hr(n,t);case 6:var i=Je,r=Mt;Je=null,$n(e,t,n),Je=i,Mt=r,Je!==null&amp;&amp;(Mt?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&amp;&amp;(Mt?(e=Je,n=n.stateNode,e.nodeType===8?Zu(e.parentNode,n):e.nodeType===1&amp;&amp;Zu(e,n),ko(e)):Zu(Je,n.stateNode));break;case 4:i=Je,r=Mt,Je=n.stateNode.containerInfo,Mt=!0,$n(e,t,n),Je=i,Mt=r;break;case 0:case 11:case 14:case 15:if(!Ye&amp;&amp;(i=n.updateQueue,i!==null&amp;&amp;(i=i.lastEffect,i!==null))){r=i=i.next;do{var o=r,a=o.destroy;o=o.tag,a!==void 0&amp;&amp;(o&amp;2||o&amp;4)&amp;&amp;Vl(n,t,a),r=r.next}while(r!==i)}$n(e,t,n);break;case 1:if(!Ye&amp;&amp;(Hr(n,t),i=n.stateNode,typeof i.componentWillUnmount==&quot;function&quot;))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(s){Ne(n,t,s)}$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:n.mode&amp;1?(Ye=(i=Ye)||n.memoizedState!==null,$n(e,t,n),Ye=i):$n(e,t,n);break;default:$n(e,t,n)}}function bp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&amp;&amp;(n=e.stateNode=new d1),t.forEach(function(i){var r=$1.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i&lt;n.length;i++){var r=n[i];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Je=s.stateNode,Mt=!1;break e;case 3:Je=s.stateNode.containerInfo,Mt=!0;break e;case 4:Je=s.stateNode.containerInfo,Mt=!0;break e}s=s.return}if(Je===null)throw Error(U(160));Ug(o,a,r),Je=null,Mt=!1;var u=r.alternate;u!==null&amp;&amp;(u.return=null),r.return=null}catch(l){Ne(r,t,l)}}if(t.subtreeFlags&amp;12854)for(t=t.child;t!==null;)Cg(t,e),t=t.sibling}function Cg(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),Gt(e),i&amp;4){try{fo(3,e,e.return),Gs(3,e)}catch(S){Ne(e,e.return,S)}try{fo(5,e,e.return)}catch(S){Ne(e,e.return,S)}}break;case 1:Dt(t,e),Gt(e),i&amp;512&amp;&amp;n!==null&amp;&amp;Hr(n,n.return);break;case 5:if(Dt(t,e),Gt(e),i&amp;512&amp;&amp;n!==null&amp;&amp;Hr(n,n.return),e.flags&amp;32){var r=e.stateNode;try{yo(r,&quot;&quot;)}catch(S){Ne(e,e.return,S)}}if(i&amp;4&amp;&amp;(r=e.stateNode,r!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s===&quot;input&quot;&amp;&amp;o.type===&quot;radio&quot;&amp;&amp;o.name!=null&amp;&amp;rv(r,o),vl(s,a);var l=vl(s,o);for(a=0;a&lt;u.length;a+=2){var m=u[a],p=u[a+1];m===&quot;style&quot;?uv(r,p):m===&quot;dangerouslySetInnerHTML&quot;?av(r,p):m===&quot;children&quot;?yo(r,p):Fc(r,m,p,l)}switch(s){case&quot;input&quot;:dl(r,o);break;case&quot;textarea&quot;:iv(r,o);break;case&quot;select&quot;:var h=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?ei(r,!!o.multiple,y,!1):h!==!!o.multiple&amp;&amp;(o.defaultValue!=null?ei(r,!!o.multiple,o.defaultValue,!0):ei(r,!!o.multiple,o.multiple?[]:&quot;&quot;,!1))}r[zo]=o}catch(S){Ne(e,e.return,S)}}break;case 6:if(Dt(t,e),Gt(e),i&amp;4){if(e.stateNode===null)throw Error(U(162));r=e.stateNode,o=e.memoizedProps;try{r.nodeValue=o}catch(S){Ne(e,e.return,S)}}break;case 3:if(Dt(t,e),Gt(e),i&amp;4&amp;&amp;n!==null&amp;&amp;n.memoizedState.isDehydrated)try{ko(t.containerInfo)}catch(S){Ne(e,e.return,S)}break;case 4:Dt(t,e),Gt(e);break;case 13:Dt(t,e),Gt(e),r=e.child,r.flags&amp;8192&amp;&amp;(o=r.memoizedState!==null,r.stateNode.isHidden=o,!o||r.alternate!==null&amp;&amp;r.alternate.memoizedState!==null||($d=Te())),i&amp;4&amp;&amp;bp(e);break;case 22:if(m=n!==null&amp;&amp;n.memoizedState!==null,e.mode&amp;1?(Ye=(l=Ye)||m,Dt(t,e),Ye=l):Dt(t,e),Gt(e),i&amp;8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&amp;&amp;!m&amp;&amp;e.mode&amp;1)for(V=e,m=e.child;m!==null;){for(p=V=m;V!==null;){switch(h=V,y=h.child,h.tag){case 0:case 11:case 14:case 15:fo(4,h,h.return);break;case 1:Hr(h,h.return);var g=h.stateNode;if(typeof g.componentWillUnmount==&quot;function&quot;){i=h,n=h.return;try{t=i,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(S){Ne(i,n,S)}}break;case 5:Hr(h,h.return);break;case 22:if(h.memoizedState!==null){zp(p);continue}}y!==null?(y.return=h,V=y):zp(p)}m=m.sibling}e:for(m=null,p=e;;){if(p.tag===5){if(m===null){m=p;try{r=p.stateNode,l?(o=r.style,typeof o.setProperty==&quot;function&quot;?o.setProperty(&quot;display&quot;,&quot;none&quot;,&quot;important&quot;):o.display=&quot;none&quot;):(s=p.stateNode,u=p.memoizedProps.style,a=u!=null&amp;&amp;u.hasOwnProperty(&quot;display&quot;)?u.display:null,s.style.display=sv(&quot;display&quot;,a))}catch(S){Ne(e,e.return,S)}}}else if(p.tag===6){if(m===null)try{p.stateNode.nodeValue=l?&quot;&quot;:p.memoizedProps}catch(S){Ne(e,e.return,S)}}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;m===p&amp;&amp;(m=null),p=p.return}m===p&amp;&amp;(m=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Dt(t,e),Gt(e),i&amp;4&amp;&amp;bp(e);break;case 21:break;default:Dt(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&amp;2){try{e:{for(var n=e.return;n!==null;){if(Pg(n)){var i=n;break e}n=n.return}throw Error(U(160))}switch(i.tag){case 5:var r=i.stateNode;i.flags&amp;32&amp;&amp;(yo(r,&quot;&quot;),i.flags&amp;=-33);var o=xp(e);Jl(e,o,r);break;case 3:case 4:var a=i.stateNode.containerInfo,s=xp(e);Wl(e,s,a);break;default:throw Error(U(161))}}catch(u){Ne(e,e.return,u)}e.flags&amp;=-3}t&amp;4096&amp;&amp;(e.flags&amp;=-4097)}function m1(e,t,n){V=e,Ag(e)}function Ag(e,t,n){for(var i=(e.mode&amp;1)!==0;V!==null;){var r=V,o=r.child;if(r.tag===22&amp;&amp;i){var a=r.memoizedState!==null||_a;if(!a){var s=r.alternate,u=s!==null&amp;&amp;s.memoizedState!==null||Ye;s=_a;var l=Ye;if(_a=a,(Ye=u)&amp;&amp;!l)for(V=r;V!==null;)a=V,u=a.child,a.tag===22&amp;&amp;a.memoizedState!==null?Op(r):u!==null?(u.return=a,V=u):Op(r);for(;o!==null;)V=o,Ag(o),o=o.sibling;V=r,_a=s,Ye=l}Ip(e)}else r.subtreeFlags&amp;8772&amp;&amp;o!==null?(o.return=r,V=o):Ip(e)}}function Ip(e){for(;V!==null;){var t=V;if(t.flags&amp;8772){var n=t.alternate;try{if(t.flags&amp;8772)switch(t.tag){case 0:case 11:case 15:Ye||Gs(5,t);break;case 1:var i=t.stateNode;if(t.flags&amp;4&amp;&amp;!Ye)if(n===null)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:Zt(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&amp;&amp;cp(t,o,i);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}cp(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&amp;&amp;t.flags&amp;4){n=s;var u=t.memoizedProps;switch(t.type){case&quot;button&quot;:case&quot;input&quot;:case&quot;select&quot;:case&quot;textarea&quot;:u.autoFocus&amp;&amp;n.focus();break;case&quot;img&quot;:u.src&amp;&amp;(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var m=l.memoizedState;if(m!==null){var p=m.dehydrated;p!==null&amp;&amp;ko(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}Ye||t.flags&amp;512&amp;&amp;Bl(t)}catch(h){Ne(t,t.return,h)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function zp(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function Op(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Gs(4,t)}catch(u){Ne(t,n,u)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount==&quot;function&quot;){var r=t.return;try{i.componentDidMount()}catch(u){Ne(t,r,u)}}var o=t.return;try{Bl(t)}catch(u){Ne(t,o,u)}break;case 5:var a=t.return;try{Bl(t)}catch(u){Ne(t,a,u)}}}catch(u){Ne(t,t.return,u)}if(t===e){V=null;break}var s=t.sibling;if(s!==null){s.return=t.return,V=s;break}V=t.return}}var p1=Math.ceil,ps=_n.ReactCurrentDispatcher,_d=_n.ReactCurrentOwner,Tt=_n.ReactCurrentBatchConfig,ce=0,Be=null,Ue=null,He=0,vt=0,Gr=Gn(0),Le=0,Po=null,kr=0,Qs=0,wd=0,mo=null,st=null,$d=0,ki=1/0,an=null,hs=!1,Kl=null,Zn=null,wa=!1,Pn=null,vs=0,po=0,Hl=null,Ra=-1,Za=0;function nt(){return ce&amp;6?Te():Ra!==-1?Ra:Ra=Te()}function Ln(e){return e.mode&amp;1?ce&amp;2&amp;&amp;He!==0?He&amp;-He:XS.transition!==null?(Za===0&amp;&amp;(Za=wv()),Za):(e=ve,e!==0||(e=window.event,e=e===void 0?16:zv(e.type)),e):1}function Bt(e,t,n,i){if(50&lt;po)throw po=0,Hl=null,Error(U(185));Go(e,n,i),(!(ce&amp;2)||e!==Be)&amp;&amp;(e===Be&amp;&amp;(!(ce&amp;2)&amp;&amp;(Qs|=n),Le===4&amp;&amp;zn(e,He)),ft(e,i),n===1&amp;&amp;ce===0&amp;&amp;!(t.mode&amp;1)&amp;&amp;(ki=Te()+500,Js&amp;&amp;Qn()))}function ft(e,t){var n=e.callbackNode;Xk(e,t);var i=qa(e,e===Be?He:0);if(i===0)n!==null&amp;&amp;Dm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&amp;-i,e.callbackPriority!==t){if(n!=null&amp;&amp;Dm(n),t===1)e.tag===0?QS(Ep.bind(null,e)):Jv(Ep.bind(null,e)),JS(function(){!(ce&amp;6)&amp;&amp;Qn()}),n=null;else{switch($v(i)){case 1:n=Kc;break;case 4:n=yv;break;case 16:n=Ya;break;case 536870912:n=_v;break;default:n=Ya}n=Bg(n,Dg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Dg(e,t){if(Ra=-1,Za=0,ce&amp;6)throw Error(U(327));var n=e.callbackNode;if(oi()&amp;&amp;e.callbackNode!==n)return null;var i=qa(e,e===Be?He:0);if(i===0)return null;if(i&amp;30||i&amp;e.expiredLanes||t)t=gs(e,i);else{t=i;var r=ce;ce|=2;var o=Zg();(Be!==e||He!==t)&amp;&amp;(an=null,ki=Te()+500,hr(e,t));do try{g1();break}catch(s){Rg(e,s)}while(!0);ad(),ps.current=o,ce=r,Ue!==null?t=0:(Be=null,He=0,t=Le)}if(t!==0){if(t===2&amp;&amp;(r=$l(e),r!==0&amp;&amp;(i=r,t=Gl(e,r))),t===1)throw n=Po,hr(e,0),zn(e,i),ft(e,Te()),n;if(t===6)zn(e,i);else{if(r=e.current.alternate,!(i&amp;30)&amp;&amp;!h1(r)&amp;&amp;(t=gs(e,i),t===2&amp;&amp;(o=$l(e),o!==0&amp;&amp;(i=o,t=Gl(e,o))),t===1))throw n=Po,hr(e,0),zn(e,i),ft(e,Te()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(U(345));case 2:nr(e,st,an);break;case 3:if(zn(e,i),(i&amp;130023424)===i&amp;&amp;(t=$d+500-Te(),10&lt;t)){if(qa(e,0)!==0)break;if(r=e.suspendedLanes,(r&amp;i)!==i){nt(),e.pingedLanes|=e.suspendedLanes&amp;r;break}e.timeoutHandle=El(nr.bind(null,e,st,an),t);break}nr(e,st,an);break;case 4:if(zn(e,i),(i&amp;4194240)===i)break;for(t=e.eventTimes,r=-1;0&lt;i;){var a=31-Vt(i);o=1&lt;&lt;a,a=t[a],a&gt;r&amp;&amp;(r=a),i&amp;=~o}if(i=r,i=Te()-i,i=(120&gt;i?120:480&gt;i?480:1080&gt;i?1080:1920&gt;i?1920:3e3&gt;i?3e3:4320&gt;i?4320:1960*p1(i/1960))-i,10&lt;i){e.timeoutHandle=El(nr.bind(null,e,st,an),i);break}nr(e,st,an);break;case 5:nr(e,st,an);break;default:throw Error(U(329))}}}return ft(e,Te()),e.callbackNode===n?Dg.bind(null,e):null}function Gl(e,t){var n=mo;return e.current.memoizedState.isDehydrated&amp;&amp;(hr(e,t).flags|=256),e=gs(e,t),e!==2&amp;&amp;(t=st,st=n,t!==null&amp;&amp;Ql(t)),e}function Ql(e){st===null?st=e:st.push.apply(st,e)}function h1(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 i=0;i&lt;n.length;i++){var r=n[i],o=r.getSnapshot;r=r.value;try{if(!Jt(o(),r))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 zn(e,t){for(t&amp;=~wd,t&amp;=~Qs,e.suspendedLanes|=t,e.pingedLanes&amp;=~t,e=e.expirationTimes;0&lt;t;){var n=31-Vt(t),i=1&lt;&lt;n;e[n]=-1,t&amp;=~i}}function Ep(e){if(ce&amp;6)throw Error(U(327));oi();var t=qa(e,0);if(!(t&amp;1))return ft(e,Te()),null;var n=gs(e,t);if(e.tag!==0&amp;&amp;n===2){var i=$l(e);i!==0&amp;&amp;(t=i,n=Gl(e,i))}if(n===1)throw n=Po,hr(e,0),zn(e,t),ft(e,Te()),n;if(n===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nr(e,st,an),ft(e,Te()),null}function kd(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&amp;&amp;(ki=Te()+500,Js&amp;&amp;Qn())}}function Sr(e){Pn!==null&amp;&amp;Pn.tag===0&amp;&amp;!(ce&amp;6)&amp;&amp;oi();var t=ce;ce|=1;var n=Tt.transition,i=ve;try{if(Tt.transition=null,ve=1,e)return e()}finally{ve=i,Tt.transition=n,ce=t,!(ce&amp;6)&amp;&amp;Qn()}}function Sd(){vt=Gr.current,Se(Gr)}function hr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&amp;&amp;(e.timeoutHandle=-1,WS(n)),Ue!==null)for(n=Ue.return;n!==null;){var i=n;switch(rd(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&amp;&amp;is();break;case 3:wi(),Se(ct),Se(qe),fd();break;case 5:dd(i);break;case 4:wi();break;case 13:Se(Ie);break;case 19:Se(Ie);break;case 10:sd(i.type._context);break;case 22:case 23:Sd()}n=n.return}if(Be=e,Ue=e=Mn(e.current,null),He=vt=t,Le=0,Po=null,wd=Qs=kr=0,st=mo=null,sr!==null){for(t=0;t&lt;sr.length;t++)if(n=sr[t],i=n.interleaved,i!==null){n.interleaved=null;var r=i.next,o=n.pending;if(o!==null){var a=o.next;o.next=r,i.next=a}n.pending=i}sr=null}return e}function Rg(e,t){do{var n=Ue;try{if(ad(),Ca.current=ms,fs){for(var i=ze.memoizedState;i!==null;){var r=i.queue;r!==null&amp;&amp;(r.pending=null),i=i.next}fs=!1}if($r=0,Ve=Re=ze=null,co=!1,No=0,_d.current=null,n===null||n.return===null){Le=1,Po=t,Ue=null;break}e:{var o=e,a=n.return,s=n,u=t;if(t=He,s.flags|=32768,u!==null&amp;&amp;typeof u==&quot;object&quot;&amp;&amp;typeof u.then==&quot;function&quot;){var l=u,m=s,p=m.tag;if(!(m.mode&amp;1)&amp;&amp;(p===0||p===11||p===15)){var h=m.alternate;h?(m.updateQueue=h.updateQueue,m.memoizedState=h.memoizedState,m.lanes=h.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=vp(a);if(y!==null){y.flags&amp;=-257,gp(y,a,s,o,t),y.mode&amp;1&amp;&amp;hp(o,l,t),t=y,u=l;var g=t.updateQueue;if(g===null){var S=new Set;S.add(u),t.updateQueue=S}else g.add(u);break e}else{if(!(t&amp;1)){hp(o,l,t),xd();break e}u=Error(U(426))}}else if(be&amp;&amp;s.mode&amp;1){var z=vp(a);if(z!==null){!(z.flags&amp;65536)&amp;&amp;(z.flags|=256),gp(z,a,s,o,t),id($i(u,s));break e}}o=u=$i(u,s),Le!==4&amp;&amp;(Le=2),mo===null?mo=[o]:mo.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&amp;=-t,o.lanes|=t;var c=$g(o,u,t);lp(o,c);break e;case 1:s=u;var d=o.type,f=o.stateNode;if(!(o.flags&amp;128)&amp;&amp;(typeof d.getDerivedStateFromError==&quot;function&quot;||f!==null&amp;&amp;typeof f.componentDidCatch==&quot;function&quot;&amp;&amp;(Zn===null||!Zn.has(f)))){o.flags|=65536,t&amp;=-t,o.lanes|=t;var k=kg(o,s,t);lp(o,k);break e}}o=o.return}while(o!==null)}Mg(n)}catch(O){t=O,Ue===n&amp;&amp;n!==null&amp;&amp;(Ue=n=n.return);continue}break}while(!0)}function Zg(){var e=ps.current;return ps.current=ms,e===null?ms:e}function xd(){(Le===0||Le===3||Le===2)&amp;&amp;(Le=4),Be===null||!(kr&amp;268435455)&amp;&amp;!(Qs&amp;268435455)||zn(Be,He)}function gs(e,t){var n=ce;ce|=2;var i=Zg();(Be!==e||He!==t)&amp;&amp;(an=null,hr(e,t));do try{v1();break}catch(r){Rg(e,r)}while(!0);if(ad(),ce=n,ps.current=i,Ue!==null)throw Error(U(261));return Be=null,He=0,Le}function v1(){for(;Ue!==null;)Lg(Ue)}function g1(){for(;Ue!==null&amp;&amp;!Fk();)Lg(Ue)}function Lg(e){var t=Vg(e.alternate,e,vt);e.memoizedProps=e.pendingProps,t===null?Mg(e):Ue=t,_d.current=null}function Mg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&amp;32768){if(n=c1(n,t),n!==null){n.flags&amp;=32767,Ue=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Le=6,Ue=null;return}}else if(n=l1(n,t,vt),n!==null){Ue=n;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);Le===0&amp;&amp;(Le=5)}function nr(e,t,n){var i=ve,r=Tt.transition;try{Tt.transition=null,ve=1,y1(e,t,n,i)}finally{Tt.transition=r,ve=i}return null}function y1(e,t,n,i){do oi();while(Pn!==null);if(ce&amp;6)throw Error(U(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Yk(e,o),e===Be&amp;&amp;(Ue=Be=null,He=0),!(n.subtreeFlags&amp;2064)&amp;&amp;!(n.flags&amp;2064)||wa||(wa=!0,Bg(Ya,function(){return oi(),null})),o=(n.flags&amp;15990)!==0,n.subtreeFlags&amp;15990||o){o=Tt.transition,Tt.transition=null;var a=ve;ve=1;var s=ce;ce|=4,_d.current=null,f1(e,n),Cg(n,e),RS(zl),es=!!Il,zl=Il=null,e.current=n,m1(n),Vk(),ce=s,ve=a,Tt.transition=o}else e.current=n;if(wa&amp;&amp;(wa=!1,Pn=e,vs=r),o=e.pendingLanes,o===0&amp;&amp;(Zn=null),Jk(n.stateNode),ft(e,Te()),t!==null)for(i=e.onRecoverableError,n=0;n&lt;t.length;n++)r=t[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(hs)throw hs=!1,e=Kl,Kl=null,e;return vs&amp;1&amp;&amp;e.tag!==0&amp;&amp;oi(),o=e.pendingLanes,o&amp;1?e===Hl?po++:(po=0,Hl=e):po=0,Qn(),null}function oi(){if(Pn!==null){var e=$v(vs),t=Tt.transition,n=ve;try{if(Tt.transition=null,ve=16&gt;e?16:e,Pn===null)var i=!1;else{if(e=Pn,Pn=null,vs=0,ce&amp;6)throw Error(U(331));var r=ce;for(ce|=4,V=e.current;V!==null;){var o=V,a=o.child;if(V.flags&amp;16){var s=o.deletions;if(s!==null){for(var u=0;u&lt;s.length;u++){var l=s[u];for(V=l;V!==null;){var m=V;switch(m.tag){case 0:case 11:case 15:fo(8,m,o)}var p=m.child;if(p!==null)p.return=m,V=p;else for(;V!==null;){m=V;var h=m.sibling,y=m.return;if(Tg(m),m===l){V=null;break}if(h!==null){h.return=y,V=h;break}V=y}}}var g=o.alternate;if(g!==null){var S=g.child;if(S!==null){g.child=null;do{var z=S.sibling;S.sibling=null,S=z}while(S!==null)}}V=o}}if(o.subtreeFlags&amp;2064&amp;&amp;a!==null)a.return=o,V=a;else e:for(;V!==null;){if(o=V,o.flags&amp;2048)switch(o.tag){case 0:case 11:case 15:fo(9,o,o.return)}var c=o.sibling;if(c!==null){c.return=o.return,V=c;break e}V=o.return}}var d=e.current;for(V=d;V!==null;){a=V;var f=a.child;if(a.subtreeFlags&amp;2064&amp;&amp;f!==null)f.return=a,V=f;else e:for(a=d;V!==null;){if(s=V,s.flags&amp;2048)try{switch(s.tag){case 0:case 11:case 15:Gs(9,s)}}catch(O){Ne(s,s.return,O)}if(s===a){V=null;break e}var k=s.sibling;if(k!==null){k.return=s.return,V=k;break e}V=s.return}}if(ce=r,Qn(),tn&amp;&amp;typeof tn.onPostCommitFiberRoot==&quot;function&quot;)try{tn.onPostCommitFiberRoot(Ms,e)}catch{}i=!0}return i}finally{ve=n,Tt.transition=t}}return!1}function Np(e,t,n){t=$i(n,t),t=$g(e,t,1),e=Rn(e,t,1),t=nt(),e!==null&amp;&amp;(Go(e,1,t),ft(e,t))}function Ne(e,t,n){if(e.tag===3)Np(e,e,n);else for(;t!==null;){if(t.tag===3){Np(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError==&quot;function&quot;||typeof i.componentDidCatch==&quot;function&quot;&amp;&amp;(Zn===null||!Zn.has(i))){e=$i(n,e),e=kg(t,e,1),t=Rn(t,e,1),e=nt(),t!==null&amp;&amp;(Go(t,1,e),ft(t,e));break}}t=t.return}}function _1(e,t,n){var i=e.pingCache;i!==null&amp;&amp;i.delete(t),t=nt(),e.pingedLanes|=e.suspendedLanes&amp;n,Be===e&amp;&amp;(He&amp;n)===n&amp;&amp;(Le===4||Le===3&amp;&amp;(He&amp;130023424)===He&amp;&amp;500&gt;Te()-$d?hr(e,0):wd|=n),ft(e,t)}function Fg(e,t){t===0&amp;&amp;(e.mode&amp;1?(t=ca,ca&lt;&lt;=1,!(ca&amp;130023424)&amp;&amp;(ca=4194304)):t=1);var n=nt();e=vn(e,t),e!==null&amp;&amp;(Go(e,t,n),ft(e,n))}function w1(e){var t=e.memoizedState,n=0;t!==null&amp;&amp;(n=t.retryLane),Fg(e,n)}function $1(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&amp;&amp;(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(U(314))}i!==null&amp;&amp;i.delete(t),Fg(e,n)}var Vg;Vg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)lt=!0;else{if(!(e.lanes&amp;n)&amp;&amp;!(t.flags&amp;128))return lt=!1,u1(e,t,n);lt=!!(e.flags&amp;131072)}else lt=!1,be&amp;&amp;t.flags&amp;1048576&amp;&amp;Kv(t,ss,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Da(e,t),e=t.pendingProps;var r=gi(t,qe.current);ii(t,n),r=pd(null,t,i,e,r,n);var o=hd();return t.flags|=1,typeof r==&quot;object&quot;&amp;&amp;r!==null&amp;&amp;typeof r.render==&quot;function&quot;&amp;&amp;r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(i)?(o=!0,os(t)):o=!1,t.memoizedState=r.state!==null&amp;&amp;r.state!==void 0?r.state:null,ld(t),r.updater=Hs,t.stateNode=r,r._reactInternals=t,Al(t,i,e,n),t=Zl(null,t,i,!0,o,n)):(t.tag=0,be&amp;&amp;o&amp;&amp;nd(t),et(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Da(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=S1(i),e=Zt(i,e),r){case 0:t=Rl(null,t,i,e,n);break e;case 1:t=wp(null,t,i,e,n);break e;case 11:t=yp(null,t,i,e,n);break e;case 14:t=_p(null,t,i,Zt(i.type,e),n);break e}throw Error(U(306,i,&quot;&quot;))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Zt(i,r),Rl(e,t,i,r,n);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Zt(i,r),wp(e,t,i,r,n);case 3:e:{if(Ig(t),e===null)throw Error(U(387));i=t.pendingProps,o=t.memoizedState,r=o.element,qv(e,t),cs(t,i,null,n);var a=t.memoizedState;if(i=a.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&amp;256){r=$i(Error(U(423)),t),t=$p(e,t,i,n,r);break e}else if(i!==r){r=$i(Error(U(424)),t),t=$p(e,t,i,n,r);break e}else for(yt=Dn(t.stateNode.containerInfo.firstChild),wt=t,be=!0,Ft=null,n=Xv(t,null,i,n),t.child=n;n;)n.flags=n.flags&amp;-3|4096,n=n.sibling;else{if(yi(),i===r){t=gn(e,t,n);break e}et(e,t,i,n)}t=t.child}return t;case 5:return eg(t),e===null&amp;&amp;Pl(t),i=t.type,r=t.pendingProps,o=e!==null?e.memoizedProps:null,a=r.children,Ol(i,r)?a=null:o!==null&amp;&amp;Ol(i,o)&amp;&amp;(t.flags|=32),bg(e,t),et(e,t,a,n),t.child;case 6:return e===null&amp;&amp;Pl(t),null;case 13:return zg(e,t,n);case 4:return cd(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=_i(t,null,i,n):et(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Zt(i,r),yp(e,t,i,r,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,o=t.memoizedProps,a=r.value,ye(us,i._currentValue),i._currentValue=a,o!==null)if(Jt(o.value,a)){if(o.children===r.children&amp;&amp;!ct.current){t=gn(e,t,n);break e}}else for(o=t.child,o!==null&amp;&amp;(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var u=s.firstContext;u!==null;){if(u.context===i){if(o.tag===1){u=mn(-1,n&amp;-n),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var m=l.pending;m===null?u.next=u:(u.next=m.next,m.next=u),l.pending=u}}o.lanes|=n,u=o.alternate,u!==null&amp;&amp;(u.lanes|=n),Ul(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(U(341));a.lanes|=n,s=a.alternate,s!==null&amp;&amp;(s.lanes|=n),Ul(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}et(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,ii(t,n),r=Pt(r),i=i(r),t.flags|=1,et(e,t,i,n),t.child;case 14:return i=t.type,r=Zt(i,t.pendingProps),r=Zt(i.type,r),_p(e,t,i,r,n);case 15:return Sg(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:Zt(i,r),Da(e,t),t.tag=1,dt(i)?(e=!0,os(t)):e=!1,ii(t,n),wg(t,i,r),Al(t,i,r,n),Zl(null,t,i,!0,e,n);case 19:return Og(e,t,n);case 22:return xg(e,t,n)}throw Error(U(156,t.tag))};function Bg(e,t){return gv(e,t)}function k1(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,n,i){return new k1(e,t,n,i)}function bd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function S1(e){if(typeof e==&quot;function&quot;)return bd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bc)return 11;if(e===Wc)return 14}return 2}function Mn(e,t){var n=e.alternate;return n===null?(n=Nt(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 La(e,t,n,i,r,o){var a=2;if(i=e,typeof e==&quot;function&quot;)bd(e)&amp;&amp;(a=1);else if(typeof e==&quot;string&quot;)a=5;else e:switch(e){case Zr:return vr(n.children,r,o,t);case Vc:a=8,r|=8;break;case al:return e=Nt(12,n,t,r|2),e.elementType=al,e.lanes=o,e;case sl:return e=Nt(13,n,t,r),e.elementType=sl,e.lanes=o,e;case ul:return e=Nt(19,n,t,r),e.elementType=ul,e.lanes=o,e;case ev:return Xs(n,r,o,t);default:if(typeof e==&quot;object&quot;&amp;&amp;e!==null)switch(e.$$typeof){case Yh:a=10;break e;case qh:a=9;break e;case Bc:a=11;break e;case Wc:a=14;break e;case Sn:a=16,i=null;break e}throw Error(U(130,e==null?e:typeof e,&quot;&quot;))}return t=Nt(a,n,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function vr(e,t,n,i){return e=Nt(7,e,i,t),e.lanes=n,e}function Xs(e,t,n,i){return e=Nt(22,e,i,t),e.elementType=ev,e.lanes=n,e.stateNode={isHidden:!1},e}function Ku(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function Hu(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function x1(e,t,n,i,r){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=Ou(0),this.expirationTimes=Ou(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ou(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Id(e,t,n,i,r,o,a,s,u){return e=new x1(e,t,n,s,u),t===1?(t=1,o===!0&amp;&amp;(t|=8)):t=0,o=Nt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ld(o),e}function b1(e,t,n){var i=3&lt;arguments.length&amp;&amp;arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Rr,key:i==null?null:&quot;&quot;+i,children:e,containerInfo:t,implementation:n}}function Wg(e){if(!e)return Wn;e=e._reactInternals;e:{if(Er(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var n=e.type;if(dt(n))return Wv(e,n,t)}return t}function Jg(e,t,n,i,r,o,a,s,u){return e=Id(n,i,!0,e,r,o,a,s,u),e.context=Wg(null),n=e.current,i=nt(),r=Ln(n),o=mn(i,r),o.callback=t??null,Rn(n,o,r),e.current.lanes=r,Go(e,r,i),ft(e,i),e}function Ys(e,t,n,i){var r=t.current,o=nt(),a=Ln(r);return n=Wg(n),t.context===null?t.context=n:t.pendingContext=n,t=mn(o,a),t.payload={element:e},i=i===void 0?null:i,i!==null&amp;&amp;(t.callback=i),e=Rn(r,t,a),e!==null&amp;&amp;(Bt(e,r,a,o),Ua(e,r,a)),a}function ys(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 jp(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 zd(e,t){jp(e,t),(e=e.alternate)&amp;&amp;jp(e,t)}function I1(){return null}var Kg=typeof reportError==&quot;function&quot;?reportError:function(e){console.error(e)};function Od(e){this._internalRoot=e}qs.prototype.render=Od.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));Ys(e,t,null,null)};qs.prototype.unmount=Od.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Sr(function(){Ys(null,e,null,null)}),t[hn]=null}};function qs(e){this._internalRoot=e}qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=xv();e={blockedOn:null,target:e,priority:t};for(var n=0;n&lt;In.length&amp;&amp;t!==0&amp;&amp;t&lt;In[n].priority;n++);In.splice(n,0,e),n===0&amp;&amp;Iv(e)}};function Ed(e){return!(!e||e.nodeType!==1&amp;&amp;e.nodeType!==9&amp;&amp;e.nodeType!==11)}function eu(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 Tp(){}function z1(e,t,n,i,r){if(r){if(typeof i==&quot;function&quot;){var o=i;i=function(){var l=ys(a);o.call(l)}}var a=Jg(t,i,e,0,null,!1,!1,&quot;&quot;,Tp);return e._reactRootContainer=a,e[hn]=a.current,bo(e.nodeType===8?e.parentNode:e),Sr(),a}for(;r=e.lastChild;)e.removeChild(r);if(typeof i==&quot;function&quot;){var s=i;i=function(){var l=ys(u);s.call(l)}}var u=Id(e,0,!1,null,null,!1,!1,&quot;&quot;,Tp);return e._reactRootContainer=u,e[hn]=u.current,bo(e.nodeType===8?e.parentNode:e),Sr(function(){Ys(t,u,n,i)}),u}function tu(e,t,n,i,r){var o=n._reactRootContainer;if(o){var a=o;if(typeof r==&quot;function&quot;){var s=r;r=function(){var u=ys(a);s.call(u)}}Ys(t,a,e,r)}else a=z1(n,t,e,r,i);return ys(a)}kv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Xi(t.pendingLanes);n!==0&amp;&amp;(Hc(t,n|1),ft(t,Te()),!(ce&amp;6)&amp;&amp;(ki=Te()+500,Qn()))}break;case 13:Sr(function(){var i=vn(e,1);if(i!==null){var r=nt();Bt(i,e,1,r)}}),zd(e,1)}};Gc=function(e){if(e.tag===13){var t=vn(e,134217728);if(t!==null){var n=nt();Bt(t,e,134217728,n)}zd(e,134217728)}};Sv=function(e){if(e.tag===13){var t=Ln(e),n=vn(e,t);if(n!==null){var i=nt();Bt(n,e,t,i)}zd(e,t)}};xv=function(){return ve};bv=function(e,t){var n=ve;try{return ve=e,t()}finally{ve=n}};yl=function(e,t,n){switch(t){case&quot;input&quot;:if(dl(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 i=n[t];if(i!==e&amp;&amp;i.form===e.form){var r=Ws(i);if(!r)throw Error(U(90));nv(i),dl(i,r)}}}break;case&quot;textarea&quot;:iv(e,n);break;case&quot;select&quot;:t=n.value,t!=null&amp;&amp;ei(e,!!n.multiple,t,!1)}};dv=kd;fv=Sr;var O1={usingClientEntryPoint:!1,Events:[Xo,Vr,Ws,lv,cv,kd]},Ji={findFiberByHostInstance:ar,bundleType:0,version:&quot;18.3.1&quot;,rendererPackageName:&quot;react-dom&quot;},E1={bundleType:Ji.bundleType,version:Ji.version,rendererPackageName:Ji.rendererPackageName,rendererConfig:Ji.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_n.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hv(e),e===null?null:e.stateNode},findFiberByHostInstance:Ji.findFiberByHostInstance||I1,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 $a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$a.isDisabled&amp;&amp;$a.supportsFiber)try{Ms=$a.inject(E1),tn=$a}catch{}}St.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O1;St.createPortal=function(e,t){var n=2&lt;arguments.length&amp;&amp;arguments[2]!==void 0?arguments[2]:null;if(!Ed(t))throw Error(U(200));return b1(e,t,null,n)};St.createRoot=function(e,t){if(!Ed(e))throw Error(U(299));var n=!1,i=&quot;&quot;,r=Kg;return t!=null&amp;&amp;(t.unstable_strictMode===!0&amp;&amp;(n=!0),t.identifierPrefix!==void 0&amp;&amp;(i=t.identifierPrefix),t.onRecoverableError!==void 0&amp;&amp;(r=t.onRecoverableError)),t=Id(e,1,!1,null,null,n,!1,i,r),e[hn]=t.current,bo(e.nodeType===8?e.parentNode:e),new Od(t)};St.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(U(188)):(e=Object.keys(e).join(&quot;,&quot;),Error(U(268,e)));return e=hv(t),e=e===null?null:e.stateNode,e};St.flushSync=function(e){return Sr(e)};St.hydrate=function(e,t,n){if(!eu(t))throw Error(U(200));return tu(null,e,t,!0,n)};St.hydrateRoot=function(e,t,n){if(!Ed(e))throw Error(U(405));var i=n!=null&amp;&amp;n.hydratedSources||null,r=!1,o=&quot;&quot;,a=Kg;if(n!=null&amp;&amp;(n.unstable_strictMode===!0&amp;&amp;(r=!0),n.identifierPrefix!==void 0&amp;&amp;(o=n.identifierPrefix),n.onRecoverableError!==void 0&amp;&amp;(a=n.onRecoverableError)),t=Jg(t,null,e,1,n??null,r,!1,o,a),e[hn]=t.current,bo(e),i)for(e=0;e&lt;i.length;e++)n=i[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new qs(t)};St.render=function(e,t,n){if(!eu(t))throw Error(U(200));return tu(null,e,t,!1,n)};St.unmountComponentAtNode=function(e){if(!eu(e))throw Error(U(40));return e._reactRootContainer?(Sr(function(){tu(null,null,e,!1,function(){e._reactRootContainer=null,e[hn]=null})}),!0):!1};St.unstable_batchedUpdates=kd;St.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!eu(n))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return tu(e,t,n,!1,i)};St.version=&quot;18.3.1-next-f1338f8080-20240426&quot;;function Hg(){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(Hg)}catch(e){console.error(e)}}Hg(),Hh.exports=St;var N1=Hh.exports,Gg,Pp=N1;Gg=Pp.createRoot,Pp.hydrateRoot;const ai=new WeakMap,Ma=new WeakMap,_s={current:[]};let Gu=!1;const ka=new Set,Up=new Map;function Qg(e){const t=Array.from(e).sort((n,i)=&gt;n instanceof Fn&amp;&amp;n.options.deps.includes(i)?1:i instanceof Fn&amp;&amp;i.options.deps.includes(n)?-1:0);for(const n of t){if(_s.current.includes(n))continue;_s.current.push(n),n.recompute();const i=Ma.get(n);if(i)for(const r of i){const o=ai.get(r);o&amp;&amp;Qg(o)}}}function j1(e){e.listeners.forEach(t=&gt;t({prevVal:e.prevState,currentVal:e.state}))}function T1(e){e.listeners.forEach(t=&gt;t({prevVal:e.prevState,currentVal:e.state}))}function P1(e){if(ka.add(e),!Gu)try{for(Gu=!0;ka.size&gt;0;){const t=Array.from(ka);ka.clear();for(const n of t){const i=Up.get(n)??n.prevState;n.prevState=i,j1(n)}for(const n of t){const i=ai.get(n);i&amp;&amp;(_s.current.push(n),Qg(i))}for(const n of t){const i=ai.get(n);if(i)for(const r of i)T1(r)}}}finally{Gu=!1,_s.current=[],Up.clear()}}function U1(e){return typeof e==&quot;function&quot;}class Xl{constructor(t,n){this.listeners=new Set,this.subscribe=i=&gt;{var r,o;this.listeners.add(i);const a=(o=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:o.call(r,i,this);return()=&gt;{this.listeners.delete(i),a==null||a()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,i,r;this.prevState=this.state,(n=this.options)!=null&amp;&amp;n.updateFn?this.state=this.options.updateFn(this.prevState)(t):U1(t)?this.state=t(this.prevState):this.state=t,(r=(i=this.options)==null?void 0:i.onUpdate)==null||r.call(i),P1(this)}}class Fn{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=&gt;{const n=[],i=[];for(const r of this.options.deps)n.push(r.prevState),i.push(r.state);return this.lastSeenDepValues=i,{prevDepVals:n,currDepVals:i,prevVal:this.prevState??void 0}},this.recompute=()=&gt;{var n,i;this.prevState=this.state;const{prevDepVals:r,currDepVals:o,prevVal:a}=this.getDepVals();this.state=this.options.fn({prevDepVals:r,currDepVals:o,prevVal:a}),(i=(n=this.options).onUpdate)==null||i.call(n)},this.checkIfRecalculationNeededDeeply=()=&gt;{for(const o of this.options.deps)o instanceof Fn&amp;&amp;o.checkIfRecalculationNeededDeeply();let n=!1;const i=this.lastSeenDepValues,{currDepVals:r}=this.getDepVals();for(let o=0;o&lt;r.length;o++)if(r[o]!==i[o]){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 i,r;this.listeners.add(n);const o=(r=(i=this.options).onSubscribe)==null?void 0:r.call(i,n,this);return()=&gt;{this.listeners.delete(n),o==null||o()}},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 Fn)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof Xl){let i=ai.get(n);i||(i=new Set,ai.set(n,i)),i.add(this);let r=Ma.get(this);r||(r=new Set,Ma.set(this,r)),r.add(n)}}unregisterFromGraph(t=this.options.deps){for(const n of t)if(n instanceof Fn)this.unregisterFromGraph(n.options.deps);else if(n instanceof Xl){const i=ai.get(n);i&amp;&amp;i.delete(this);const r=Ma.get(this);r&amp;&amp;r.delete(n)}}}class C1{constructor(t){const{eager:n,fn:i,...r}=t;this._derived=new Fn({...r,fn:()=&gt;{},onUpdate(){i()}}),n&amp;&amp;i()}mount(){return this._derived.mount()}}function A1(e,t={}){const n=new Xl({actors:{}}),i=t.hashFunction||D1,r=new Map;function o(a){const s=i(a),u=r.get(s);if(u)return{...u,state:u.state};const l=new Fn({fn:({currDepVals:[g]})=&gt;g.actors[s],deps:[n]});function m(){async function g(){const S=n.state.actors[s];try{const z=e.getOrCreate(S.opts.name,S.opts.key,{params:S.opts.params,createInRegion:S.opts.createInRegion,createWithInput:S.opts.createWithInput}),c=z.connect();await z.resolve(),n.setState(d=&gt;({...d,actors:{...d.actors,[s]:{...d.actors[s],isConnected:!0,isConnecting:!1,handle:z,connection:c,isError:!1,error:null}}}))}catch(z){n.setState(c=&gt;({...c,actors:{...c.actors,[s]:{...c.actors[s],isError:!0,isConnecting:!1,error:z}}}))}}n.setState(S=&gt;(S.actors[s].isConnecting=!0,S.actors[s].isError=!1,S.actors[s].error=null,g(),S))}const p=new C1({fn:()=&gt;{const g=n.state.actors[s];JSON.stringify(n.prevState.actors[s].opts)===JSON.stringify(n.state.actors[s].opts)&amp;&amp;!g.isConnected&amp;&amp;!g.isConnecting&amp;&amp;!g.isError&amp;&amp;g.opts.enabled&amp;&amp;m()},deps:[l]});n.setState(g=&gt;g.actors[s]?g:{...g,actors:{...g.actors,[s]:{hash:s,isConnected:!1,isConnecting:!1,connection:null,handle:null,isError:!1,error:null,opts:a}}});function h(g){n.setState(S=&gt;{const z=S.actors[s];if(!z)throw new Error(`Actor with key &quot;${s}&quot; does not exist.`);let c;return typeof g==&quot;function&quot;?c=g(z):c=g,{...S,actors:{...S.actors,[s]:c}}})}const y=()=&gt;{const g=l.mount(),S=p.mount();return()=&gt;{g(),S()}};return r.set(s,{state:l,key:s,mount:y,setState:h,create:m,addEventListener}),{mount:y,setState:h,state:l,create:m,key:s}}return{getOrCreateActor:o,store:n}}function D1({name:e,key:t,params:n}){return JSON.stringify({name:e,key:t,params:n})}var Xg={exports:{}},Yg={},qg={exports:{}},ey={};/**
 * @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 Si=Ke;function R1(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var Z1=typeof Object.is==&quot;function&quot;?Object.is:R1,L1=Si.useState,M1=Si.useEffect,F1=Si.useLayoutEffect,V1=Si.useDebugValue;function B1(e,t){var n=t(),i=L1({inst:{value:n,getSnapshot:t}}),r=i[0].inst,o=i[1];return F1(function(){r.value=n,r.getSnapshot=t,Qu(r)&amp;&amp;o({inst:r})},[e,n,t]),M1(function(){return Qu(r)&amp;&amp;o({inst:r}),e(function(){Qu(r)&amp;&amp;o({inst:r})})},[e]),V1(n),n}function Qu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Z1(e,n)}catch{return!0}}function W1(e,t){return t()}var J1=typeof window&gt;&quot;u&quot;||typeof window.document&gt;&quot;u&quot;||typeof window.document.createElement&gt;&quot;u&quot;?W1:B1;ey.useSyncExternalStore=Si.useSyncExternalStore!==void 0?Si.useSyncExternalStore:J1;qg.exports=ey;var K1=qg.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 nu=Ke,H1=K1;function G1(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}var Q1=typeof Object.is==&quot;function&quot;?Object.is:G1,X1=H1.useSyncExternalStore,Y1=nu.useRef,q1=nu.useEffect,ex=nu.useMemo,tx=nu.useDebugValue;Yg.useSyncExternalStoreWithSelector=function(e,t,n,i,r){var o=Y1(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=ex(function(){function u(y){if(!l){if(l=!0,m=y,y=i(y),r!==void 0&amp;&amp;a.hasValue){var g=a.value;if(r(g,y))return p=g}return p=y}if(g=p,Q1(m,y))return g;var S=i(y);return r!==void 0&amp;&amp;r(g,S)?(m=y,g):(m=y,p=S)}var l=!1,m,p,h=n===void 0?null:n;return[function(){return u(t())},h===null?void 0:function(){return u(h())}]},[t,n,i,r]);var s=X1(e,o[0],o[1]);return q1(function(){a.hasValue=!0,a.value=s},[s]),tx(s),s};Xg.exports=Yg;var nx=Xg.exports;function Cp(e,t=n=&gt;n){return nx.useSyncExternalStoreWithSelector(e.subscribe,()=&gt;e.state,()=&gt;e.state,t,rx)}function rx(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[i,r]of e)if(!t.has(i)||!Object.is(r,t.get(i)))return!1;return!0}if(e instanceof Set&amp;&amp;t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i&lt;n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Object.is(e[n[i]],t[n[i]]))return!1;return!0}const ix=&quot;modulepreload&quot;,ox=function(e){return&quot;/&quot;+e},Ap={},ty=function(t,n,i){let r=Promise.resolve();if(n&amp;&amp;n.length&gt;0){document.getElementsByTagName(&quot;link&quot;);const a=document.querySelector(&quot;meta[property=csp-nonce]&quot;),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute(&quot;nonce&quot;));r=Promise.allSettled(n.map(u=&gt;{if(u=ox(u),u in Ap)return;Ap[u]=!0;const l=u.endsWith(&quot;.css&quot;),m=l?&#39;[rel=&quot;stylesheet&quot;]&#39;:&quot;&quot;;if(document.querySelector(`link[href=&quot;${u}&quot;]${m}`))return;const p=document.createElement(&quot;link&quot;);if(p.rel=l?&quot;stylesheet&quot;:ix,l||(p.as=&quot;script&quot;),p.crossOrigin=&quot;&quot;,p.href=u,s&amp;&amp;p.setAttribute(&quot;nonce&quot;,s),document.head.appendChild(p),l)return new Promise((h,y)=&gt;{p.addEventListener(&quot;load&quot;,h),p.addEventListener(&quot;error&quot;,()=&gt;y(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(a){const s=new Event(&quot;vite:preloadError&quot;,{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return r.then(a=&gt;{for(const s of a||[])s.status===&quot;rejected&quot;&amp;&amp;o(s.reason);return t().catch(o)})};var ax=&quot;internal_error&quot;,sx=class extends Error{constructor(n,i,r){super(i,{cause:r==null?void 0:r.cause});Ht(this,&quot;__type&quot;,&quot;ActorError&quot;);Ht(this,&quot;public&quot;);Ht(this,&quot;metadata&quot;);Ht(this,&quot;statusCode&quot;,500);this.code=n,this.public=(r==null?void 0:r.public)??!1,this.metadata=r==null?void 0:r.metadata,r!=null&amp;&amp;r.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}}},ux=class extends sx{constructor(e){super(ax,e)}},lx=class extends ux{constructor(e){super(`Unreachable case: ${e}`)}},cx={};function zt(e){throw new Error(`Unreachable case: ${e}`)}function Dp(e){if(e instanceof Error)return typeof process&lt;&quot;u&quot;&amp;&amp;ws(&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: ${dx(e)}`}function dx(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 fx={version:&quot;0.9.9&quot;},mx=fx.version,Xu;function Fa(){if(Xu!==void 0)return Xu;let e=`RivetKit/${mx}`;const t=typeof navigator&lt;&quot;u&quot;?navigator:void 0;return t!=null&amp;&amp;t.userAgent&amp;&amp;(e+=` ${t.userAgent}`),Xu=e,e}function ws(e){if(typeof Deno&lt;&quot;u&quot;)return Deno.env.get(e);if(typeof process&lt;&quot;u&quot;)return cx[e]}var er={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,CRITICAL:5},ny={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 px(...e){let t=&quot;&quot;;for(let n=0;n&lt;e.length;n++){const[i,r]=e[n];let o=!1,a;r==null?(o=!0,a=&quot;&quot;):a=r.toString(),a.length&gt;512&amp;&amp;i!==&quot;msg&quot;&amp;&amp;i!==&quot;error&quot;&amp;&amp;(a=`${a.slice(0,512)}...`);const s=a.indexOf(&quot; &quot;)&gt;-1||a.indexOf(&quot;=&quot;)&gt;-1,u=a.indexOf(&#39;&quot;&#39;)&gt;-1||a.indexOf(&quot;\\&quot;)&gt;-1;a=a.replace(/\n/g,&quot;\\n&quot;),u&amp;&amp;(a=a.replace(/[&quot;\\]/g,&quot;\\$&amp;&quot;)),(s||u)&amp;&amp;(a=`&quot;${a}&quot;`),a===&quot;&quot;&amp;&amp;!o&amp;&amp;(a=&#39;&quot;&quot;&#39;),t+=`${i}=${a}`,n!==e.length-1&amp;&amp;(t+=&quot; &quot;)}return t}function hx(e){const t=e.getUTCFullYear(),n=String(e.getUTCMonth()+1).padStart(2,&quot;0&quot;),i=String(e.getUTCDate()).padStart(2,&quot;0&quot;),r=String(e.getUTCHours()).padStart(2,&quot;0&quot;),o=String(e.getUTCMinutes()).padStart(2,&quot;0&quot;),a=String(e.getUTCSeconds()).padStart(2,&quot;0&quot;),s=String(e.getUTCMilliseconds()).padStart(3,&quot;0&quot;);return`${t}-${n}-${i}T${r}:${o}:${a}.${s}Z`}function vx(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 Ti,ry,iy,Nh,gx=(Nh=class{constructor(e,t){me(this,Ti);Ht(this,&quot;name&quot;);Ht(this,&quot;level&quot;);this.name=e,this.level=t}log(e,t,...n){const i={msg:t,args:n,level:e,loggerName:this.name,datetime:new Date,levelName:ny[e]};le(this,Ti,ry).call(this,e)&amp;&amp;le(this,Ti,iy).call(this,i)}trace(e,...t){this.log(er.TRACE,e,...t)}debug(e,...t){this.log(er.DEBUG,e,...t)}info(e,...t){this.log(er.INFO,e,...t)}warn(e,...t){this.log(er.WARN,e,...t)}error(e,...t){this.log(er.ERROR,e,...t)}critical(e,...t){this.log(er.CRITICAL,e,...t)}},Ti=new WeakSet,ry=function(e){return e&gt;=er[this.level]},iy=function(e){console.log(yx(e))},Nh),Yu={};function oy(e=&quot;default&quot;){const n=ws(&quot;_LOG_LEVEL&quot;)??&quot;INFO&quot;;return Yu[e]||(Yu[e]=new gx(e,n)),Yu[e]}function yx(e){const t=[];for(let r=0;r&lt;e.args.length;r++){const o=e.args[r];if(o&amp;&amp;typeof o==&quot;object&quot;)for(const a in o){const s=o[a];Rp(a,s,t)}else Rp(`arg${r}`,o,t)}const n=ws(&quot;_LOG_TIMESTAMP&quot;)===&quot;1&quot;,i=ws(&quot;_LOG_TARGET&quot;)===&quot;1&quot;;return px(...n?[[&quot;ts&quot;,hx(new Date)]]:[],[&quot;level&quot;,ny[e.level]],...i?[[&quot;target&quot;,e.loggerName]]:[],[&quot;msg&quot;,e.msg],...t)}function Rp(e,t,n){n.push([e,vx(t)])}var _x=&quot;actor-client&quot;;function X(){return oy(_x)}var Sa=null;async function wx(){return Sa!==null||(Sa=(async()=&gt;{let e;if(typeof WebSocket&lt;&quot;u&quot;)e=WebSocket,X().debug(&quot;using native websocket&quot;);else try{e=(await ty(()=&gt;import(&quot;./browser-B1U10RM1.js&quot;).then(n=&gt;n.b),[])).default,X().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;)}},X().debug(&quot;using mock websocket&quot;)}return e})()),Sa}let Yl;try{Yl=new TextDecoder}catch{}let W,gr,b=0;const $x=105,kx=57342,Sx=57343,Zp=57337,Lp=6,Ur={};let Ki=11281e4,on=1681e4,se={},je,$s,ks=0,Uo=0,Me,Ot,Ce=[],ql=[],ut,tt,qi,Mp={useRecords:!1,mapsAsObjects:!0},Co=!1,ay=2;try{new Function(&quot;&quot;)}catch{ay=1/0}class Ao{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,i]of Object.entries(t.keyMap))this.mapKey.set(i,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[i,r]of Object.entries(t))n.set(this._keyMap.hasOwnProperty(i)?this._keyMap[i]:i,r);return n}decodeKeys(t){if(!this._keyMap||t.constructor.name!=&quot;Map&quot;)return t;if(!this._mapKey){this._mapKey=new Map;for(let[i,r]of Object.entries(this._keyMap))this._mapKey.set(r,i)}let n={};return t.forEach((i,r)=&gt;n[Et(this._mapKey.has(r)?this._mapKey.get(r):r)]=i),n}mapDecode(t,n){let i=this.decode(t);if(this._keyMap)switch(i.constructor.name){case&quot;Array&quot;:return i.map(r=&gt;this.decodeKeys(r))}return i}decode(t,n){if(W)return cy(()=&gt;(rc(),this?this.decode(t,n):Ao.prototype.decode.call(Mp,t,n)));gr=n&gt;-1?n:t.length,b=0,Uo=0,$s=null,Me=null,W=t;try{tt=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(i){throw W=null,t instanceof Uint8Array?i: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 Ao){if(se=this,ut=this.sharedValues&amp;&amp;(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return je=this.structures,xa();(!je||je.length&gt;0)&amp;&amp;(je=[])}else se=Mp,(!je||je.length&gt;0)&amp;&amp;(je=[]),ut=null;return xa()}decodeMultiple(t,n){let i,r=0;try{let o=t.length;Co=!0;let a=this?this.decode(t,o):Td.decode(t,o);if(n){if(n(a)===!1)return;for(;b&lt;o;)if(r=b,n(xa())===!1)return}else{for(i=[a];b&lt;o;)r=b,i.push(xa());return i}}catch(o){throw o.lastPosition=r,o.values=i,o}finally{Co=!1,rc()}}}function xa(){try{let e=ue();if(Me){if(b&gt;=Me.postBundlePosition){let t=new Error(&quot;Unexpected bundle position&quot;);throw t.incomplete=!0,t}b=Me.postBundlePosition,Me=null}if(b==gr)je=null,W=null,Ot&amp;&amp;(Ot=null);else if(b&gt;gr){let t=new Error(&quot;Unexpected end of CBOR data&quot;);throw t.incomplete=!0,t}else if(!Co)throw new Error(&quot;Data read, but end of buffer not reached&quot;);return e}catch(e){throw rc(),(e instanceof RangeError||e.message.startsWith(&quot;Unexpected end of buffer&quot;))&amp;&amp;(e.incomplete=!0),e}}function ue(){let e=W[b++],t=e&gt;&gt;5;if(e=e&amp;31,e&gt;23)switch(e){case 24:e=W[b++];break;case 25:if(t==7)return zx();e=tt.getUint16(b),b+=2;break;case 26:if(t==7){let n=tt.getFloat32(b);if(se.useFloat32&gt;2){let i=jd[(W[b]&amp;127)&lt;&lt;1|W[b+1]&gt;&gt;7];return b+=4,(i*n+(n&gt;0?.5:-.5)&gt;&gt;0)/i}return b+=4,n}e=tt.getUint32(b),b+=4;break;case 27:if(t==7){let n=tt.getFloat64(b);return b+=8,n}if(t&gt;1){if(tt.getUint32(b)&gt;0)throw new Error(&quot;JavaScript does not support arrays, maps, or strings with length over 4294967295&quot;);e=tt.getUint32(b+4)}else se.int64AsNumber?(e=tt.getUint32(b)*4294967296,e+=tt.getUint32(b+4)):e=tt.getBigUint64(b);b+=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=[],i,r=0;for(;(i=ue())!=Ur;){if(r&gt;=Ki)throw new Error(`Array length exceeds ${Ki}`);n[r++]=i}return t==4?n:t==3?n.join(&quot;&quot;):Buffer.concat(n);case 5:let o;if(se.mapsAsObjects){let a={},s=0;if(se.keyMap)for(;(o=ue())!=Ur;){if(s++&gt;=on)throw new Error(`Property count exceeds ${on}`);a[Et(se.decodeKey(o))]=ue()}else for(;(o=ue())!=Ur;){if(s++&gt;=on)throw new Error(`Property count exceeds ${on}`);a[Et(o)]=ue()}return a}else{qi&amp;&amp;(se.mapsAsObjects=!0,qi=!1);let a=new Map;if(se.keyMap){let s=0;for(;(o=ue())!=Ur;){if(s++&gt;=on)throw new Error(`Map size exceeds ${on}`);a.set(se.decodeKey(o),ue())}}else{let s=0;for(;(o=ue())!=Ur;){if(s++&gt;=on)throw new Error(`Map size exceeds ${on}`);a.set(o,ue())}}return a}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 Ix(e);case 3:if(Uo&gt;=b)return $s.slice(b-ks,(b+=e)-ks);if(Uo==0&amp;&amp;gr&lt;140&amp;&amp;e&lt;32){let r=e&lt;16?sy(e):bx(e);if(r!=null)return r}return xx(e);case 4:if(e&gt;=Ki)throw new Error(`Array length exceeds ${Ki}`);let n=new Array(e);for(let r=0;r&lt;e;r++)n[r]=ue();return n;case 5:if(e&gt;=on)throw new Error(`Map size exceeds ${Ki}`);if(se.mapsAsObjects){let r={};if(se.keyMap)for(let o=0;o&lt;e;o++)r[Et(se.decodeKey(ue()))]=ue();else for(let o=0;o&lt;e;o++)r[Et(ue())]=ue();return r}else{qi&amp;&amp;(se.mapsAsObjects=!0,qi=!1);let r=new Map;if(se.keyMap)for(let o=0;o&lt;e;o++)r.set(se.decodeKey(ue()),ue());else for(let o=0;o&lt;e;o++)r.set(ue(),ue());return r}case 6:if(e&gt;=Zp){let r=je[e&amp;8191];if(r)return r.read||(r.read=ec(r)),r.read();if(e&lt;65536){if(e==Sx){let o=Qr(),a=ue(),s=ue();nc(a,s);let u={};if(se.keyMap)for(let l=2;l&lt;o;l++){let m=se.decodeKey(s[l-2]);u[Et(m)]=ue()}else for(let l=2;l&lt;o;l++){let m=s[l-2];u[Et(m)]=ue()}return u}else if(e==kx){let o=Qr(),a=ue();for(let s=2;s&lt;o;s++)nc(a++,ue());return ue()}else if(e==Zp)return Px();if(se.getShared&amp;&amp;(Nd(),r=je[e&amp;8191],r))return r.read||(r.read=ec(r)),r.read()}}let i=Ce[e];if(i)return i.handlesRead?i(ue):i(ue());{let r=ue();for(let o=0;o&lt;ql.length;o++){let a=ql[o](e,r);if(a!==void 0)return a}return new xr(r,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case 31:default:let r=(ut||rr())[e];if(r!==void 0)return r;throw new Error(&quot;Unknown token &quot;+e)}default:if(isNaN(e)){let r=new Error(&quot;Unexpected end of CBOR data&quot;);throw r.incomplete=!0,r}throw new Error(&quot;Unknown CBOR token &quot;+e)}}const Fp=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function ec(e){if(!e)throw new Error(&quot;Structure is required in record definition&quot;);function t(){let n=W[b++];if(n=n&amp;31,n&gt;23)switch(n){case 24:n=W[b++];break;case 25:n=tt.getUint16(b),b+=2;break;case 26:n=tt.getUint32(b),b+=4;break;default:throw new Error(&quot;Expected array header, but got &quot;+W[b-1])}let i=this.compiledReader;for(;i;){if(i.propertyCount===n)return i(ue);i=i.next}if(this.slowReads++&gt;=ay){let o=this.length==n?this:this.slice(0,n);return i=se.keyMap?new Function(&quot;r&quot;,&quot;return {&quot;+o.map(a=&gt;se.decodeKey(a)).map(a=&gt;Fp.test(a)?Et(a)+&quot;:r()&quot;:&quot;[&quot;+JSON.stringify(a)+&quot;]:r()&quot;).join(&quot;,&quot;)+&quot;}&quot;):new Function(&quot;r&quot;,&quot;return {&quot;+o.map(a=&gt;Fp.test(a)?Et(a)+&quot;:r()&quot;:&quot;[&quot;+JSON.stringify(a)+&quot;]:r()&quot;).join(&quot;,&quot;)+&quot;}&quot;),this.compiledReader&amp;&amp;(i.next=this.compiledReader),i.propertyCount=n,this.compiledReader=i,i(ue)}let r={};if(se.keyMap)for(let o=0;o&lt;n;o++)r[Et(se.decodeKey(this[o]))]=ue();else for(let o=0;o&lt;n;o++)r[Et(this[o])]=ue();return r}return e.slowReads=0,t}function Et(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 xx=tc;function tc(e){let t;if(e&lt;16&amp;&amp;(t=sy(e)))return t;if(e&gt;64&amp;&amp;Yl)return Yl.decode(W.subarray(b,b+=e));const n=b+e,i=[];for(t=&quot;&quot;;b&lt;n;){const r=W[b++];if(!(r&amp;128))i.push(r);else if((r&amp;224)===192){const o=W[b++]&amp;63;i.push((r&amp;31)&lt;&lt;6|o)}else if((r&amp;240)===224){const o=W[b++]&amp;63,a=W[b++]&amp;63;i.push((r&amp;31)&lt;&lt;12|o&lt;&lt;6|a)}else if((r&amp;248)===240){const o=W[b++]&amp;63,a=W[b++]&amp;63,s=W[b++]&amp;63;let u=(r&amp;7)&lt;&lt;18|o&lt;&lt;12|a&lt;&lt;6|s;u&gt;65535&amp;&amp;(u-=65536,i.push(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|u&amp;1023),i.push(u)}else i.push(r);i.length&gt;=4096&amp;&amp;(t+=Fe.apply(String,i),i.length=0)}return i.length&gt;0&amp;&amp;(t+=Fe.apply(String,i)),t}let Fe=String.fromCharCode;function bx(e){let t=b,n=new Array(e);for(let i=0;i&lt;e;i++){const r=W[b++];if((r&amp;128)&gt;0){b=t;return}n[i]=r}return Fe.apply(String,n)}function sy(e){if(e&lt;4)if(e&lt;2){if(e===0)return&quot;&quot;;{let t=W[b++];if((t&amp;128)&gt;1){b-=1;return}return Fe(t)}}else{let t=W[b++],n=W[b++];if((t&amp;128)&gt;0||(n&amp;128)&gt;0){b-=2;return}if(e&lt;3)return Fe(t,n);let i=W[b++];if((i&amp;128)&gt;0){b-=3;return}return Fe(t,n,i)}else{let t=W[b++],n=W[b++],i=W[b++],r=W[b++];if((t&amp;128)&gt;0||(n&amp;128)&gt;0||(i&amp;128)&gt;0||(r&amp;128)&gt;0){b-=4;return}if(e&lt;6){if(e===4)return Fe(t,n,i,r);{let o=W[b++];if((o&amp;128)&gt;0){b-=5;return}return Fe(t,n,i,r,o)}}else if(e&lt;8){let o=W[b++],a=W[b++];if((o&amp;128)&gt;0||(a&amp;128)&gt;0){b-=6;return}if(e&lt;7)return Fe(t,n,i,r,o,a);let s=W[b++];if((s&amp;128)&gt;0){b-=7;return}return Fe(t,n,i,r,o,a,s)}else{let o=W[b++],a=W[b++],s=W[b++],u=W[b++];if((o&amp;128)&gt;0||(a&amp;128)&gt;0||(s&amp;128)&gt;0||(u&amp;128)&gt;0){b-=8;return}if(e&lt;10){if(e===8)return Fe(t,n,i,r,o,a,s,u);{let l=W[b++];if((l&amp;128)&gt;0){b-=9;return}return Fe(t,n,i,r,o,a,s,u,l)}}else if(e&lt;12){let l=W[b++],m=W[b++];if((l&amp;128)&gt;0||(m&amp;128)&gt;0){b-=10;return}if(e&lt;11)return Fe(t,n,i,r,o,a,s,u,l,m);let p=W[b++];if((p&amp;128)&gt;0){b-=11;return}return Fe(t,n,i,r,o,a,s,u,l,m,p)}else{let l=W[b++],m=W[b++],p=W[b++],h=W[b++];if((l&amp;128)&gt;0||(m&amp;128)&gt;0||(p&amp;128)&gt;0||(h&amp;128)&gt;0){b-=12;return}if(e&lt;14){if(e===12)return Fe(t,n,i,r,o,a,s,u,l,m,p,h);{let y=W[b++];if((y&amp;128)&gt;0){b-=13;return}return Fe(t,n,i,r,o,a,s,u,l,m,p,h,y)}}else{let y=W[b++],g=W[b++];if((y&amp;128)&gt;0||(g&amp;128)&gt;0){b-=14;return}if(e&lt;15)return Fe(t,n,i,r,o,a,s,u,l,m,p,h,y,g);let S=W[b++];if((S&amp;128)&gt;0){b-=15;return}return Fe(t,n,i,r,o,a,s,u,l,m,p,h,y,g,S)}}}}}function Ix(e){return se.copyBuffers?Uint8Array.prototype.slice.call(W,b,b+=e):W.subarray(b,b+=e)}let uy=new Float32Array(1),ba=new Uint8Array(uy.buffer,0,4);function zx(){let e=W[b++],t=W[b++],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 i=((e&amp;3)&lt;&lt;8|t)/16777216;return e&amp;128?-i:i}return ba[3]=e&amp;128|(n&gt;&gt;1)+56,ba[2]=(e&amp;7)&lt;&lt;5|t&gt;&gt;3,ba[1]=t&lt;&lt;5,ba[0]=0,uy[0]}new Array(4096);class xr{constructor(t,n){this.value=t,this.tag=n}}Ce[0]=e=&gt;new Date(e);Ce[1]=e=&gt;new Date(Math.round(e*1e3));Ce[2]=e=&gt;{let t=BigInt(0);for(let n=0,i=e.byteLength;n&lt;i;n++)t=BigInt(e[n])+(t&lt;&lt;BigInt(8));return t};Ce[3]=e=&gt;BigInt(-1)-Ce[2](e);Ce[4]=e=&gt;+(e[1]+&quot;e&quot;+e[0]);Ce[5]=e=&gt;e[1]*Math.exp(e[0]*Math.log(2));const nc=(e,t)=&gt;{e=e-57344;let n=je[e];n&amp;&amp;n.isShared&amp;&amp;((je.restoreStructures||(je.restoreStructures=[]))[e]=n),je[e]=t,t.read=ec(t)};Ce[$x]=e=&gt;{let t=e.length,n=e[1];nc(e[0],n);let i={};for(let r=2;r&lt;t;r++){let o=n[r-2];i[Et(o)]=e[r]}return i};Ce[14]=e=&gt;Me?Me[0].slice(Me.position0,Me.position0+=e):new xr(e,14);Ce[15]=e=&gt;Me?Me[1].slice(Me.position1,Me.position1+=e):new xr(e,15);let Ox={Error,RegExp};Ce[27]=e=&gt;(Ox[e[0]]||Error)(e[1],e[2]);const ly=e=&gt;{if(W[b++]!=132){let n=new Error(&quot;Packed values structure must be followed by a 4 element array&quot;);throw W.length&lt;b&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 ut=ut?t.concat(ut.slice(t.length)):t,ut.prefixes=e(),ut.suffixes=e(),e()};ly.handlesRead=!0;Ce[51]=ly;Ce[Lp]=e=&gt;{if(!ut)if(se.getShared)Nd();else return new xr(e,Lp);if(typeof e==&quot;number&quot;)return ut[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};Ce[28]=e=&gt;{Ot||(Ot=new Map,Ot.id=0);let t=Ot.id++,n=b,i=W[b],r;i&gt;&gt;5==4?r=[]:r={};let o={target:r};Ot.set(t,o);let a=e();return o.used?(Object.getPrototypeOf(r)!==Object.getPrototypeOf(a)&amp;&amp;(b=n,r=a,Ot.set(t,{target:r}),a=e()),Object.assign(r,a)):(o.target=a,a)};Ce[28].handlesRead=!0;Ce[29]=e=&gt;{let t=Ot.get(e);return t.used=!0,t.target};Ce[258]=e=&gt;new Set(e);(Ce[259]=e=&gt;(se.mapsAsObjects&amp;&amp;(se.mapsAsObjects=!1,qi=!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 rr(){if(!ut)if(se.getShared)Nd();else throw new Error(&quot;No packed values available&quot;);return ut}const Ex=1399353956;ql.push((e,t)=&gt;{if(e&gt;=225&amp;&amp;e&lt;=255)return Cr(rr().prefixes[e-224],t);if(e&gt;=28704&amp;&amp;e&lt;=32767)return Cr(rr().prefixes[e-28672],t);if(e&gt;=1879052288&amp;&amp;e&lt;=2147483647)return Cr(rr().prefixes[e-1879048192],t);if(e&gt;=216&amp;&amp;e&lt;=223)return Cr(t,rr().suffixes[e-216]);if(e&gt;=27647&amp;&amp;e&lt;=28671)return Cr(t,rr().suffixes[e-27639]);if(e&gt;=1811940352&amp;&amp;e&lt;=1879048191)return Cr(t,rr().suffixes[e-1811939328]);if(e==Ex)return{packedValues:ut,structures:je.slice(0),version:t};if(e==55799)return t});const Nx=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,Vp=[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],jx=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e&lt;Vp.length;e++)Tx(Vp[e],jx[e]);function Tx(e,t){let n=&quot;get&quot;+e.name.slice(0,-5),i;typeof e==&quot;function&quot;?i=e.BYTES_PER_ELEMENT:e=null;for(let r=0;r&lt;2;r++){if(!r&amp;&amp;i==1)continue;let o=i==2?1:i==4?2:i==8?3:0;Ce[r?t:t-4]=i==1||r==Nx?a=&gt;{if(!e)throw new Error(&quot;Could not find typed array for code &quot;+t);return!se.copyBuffers&amp;&amp;(i===1||i===2&amp;&amp;!(a.byteOffset&amp;1)||i===4&amp;&amp;!(a.byteOffset&amp;3)||i===8&amp;&amp;!(a.byteOffset&amp;7))?new e(a.buffer,a.byteOffset,a.byteLength&gt;&gt;o):new e(Uint8Array.prototype.slice.call(a,0).buffer)}:a=&gt;{if(!e)throw new Error(&quot;Could not find typed array for code &quot;+t);let s=new DataView(a.buffer,a.byteOffset,a.byteLength),u=a.length&gt;&gt;o,l=new e(u),m=s[n];for(let p=0;p&lt;u;p++)l[p]=m.call(s,p&lt;&lt;o,r);return l}}}function Px(){let e=Qr(),t=b+ue();for(let i=2;i&lt;e;i++){let r=Qr();b+=r}let n=b;return b=t,Me=[tc(Qr()),tc(Qr())],Me.position0=0,Me.position1=0,Me.postBundlePosition=b,b=n,ue()}function Qr(){let e=W[b++]&amp;31;if(e&gt;23)switch(e){case 24:e=W[b++];break;case 25:e=tt.getUint16(b),b+=2;break;case 26:e=tt.getUint32(b),b+=4;break}return e}function Nd(){if(se.getShared){let e=cy(()=&gt;(W=null,se.getShared()))||{},t=e.structures||[];se.sharedVersion=e.version,ut=se.sharedValues=e.packedValues,je===!0?se.structures=je=t:je.splice.apply(je,[0,t.length].concat(t))}}function cy(e){let t=gr,n=b,i=ks,r=Uo,o=$s,a=Ot,s=Me,u=new Uint8Array(W.slice(0,gr)),l=je,m=se,p=Co,h=e();return gr=t,b=n,ks=i,Uo=r,$s=o,Ot=a,Me=s,W=u,Co=p,je=l,se=m,tt=new DataView(W.buffer,W.byteOffset,W.byteLength),h}function rc(){W=null,Ot=null,je=null}const jd=new Array(147);for(let e=0;e&lt;256;e++)jd[e]=+(&quot;1e&quot;+Math.floor(45.15-e*.30103));let Td=new Ao({useRecords:!1});const ho=Td.decode;Td.decodeMultiple;let Va;try{Va=new TextEncoder}catch{}let ic,dy;const ru=typeof globalThis==&quot;object&quot;&amp;&amp;globalThis.Buffer,qo=typeof ru&lt;&quot;u&quot;,qu=qo?ru.allocUnsafeSlow:Uint8Array,Bp=qo?ru:Uint8Array,Wp=256,Jp=qo?4294967296:2144337920;let el,$,ke,v=0,kn,De=null;const Ux=61440,Cx=/[\u0080-\uFFFF]/,pt=Symbol(&quot;record-id&quot;);class Ax extends Ao{constructor(t){super(t),this.offset=0;let n,i,r,o,a;t=t||{};let s=Bp.prototype.utf8Write?function(_,B,T){return $.utf8Write(_,B,T)}:Va&amp;&amp;Va.encodeInto?function(_,B){return Va.encodeInto(_,$.subarray(B)).written}:!1,u=this,l=t.structures||t.saveStructures,m=t.maxSharedStructures;if(m==null&amp;&amp;(m=l?128:0),m&gt;8190)throw new Error(&quot;Maximum maxSharedStructure is 8190&quot;);let p=t.sequential;p&amp;&amp;(m=0),this.structures||(this.structures=[]),this.saveStructures&amp;&amp;(this.saveShared=this.saveStructures);let h,y,g=t.sharedValues,S;if(g){S=Object.create(null);for(let _=0,B=g.length;_&lt;B;_++)S[g[_]]=_}let z=[],c=0,d=0;this.mapEncode=function(_,B){if(this._keyMap&amp;&amp;!this._mapped)switch(_.constructor.name){case&quot;Array&quot;:_=_.map(T=&gt;this.encodeKeys(T));break}return this.encode(_,B)},this.encode=function(_,B){if($||($=new qu(8192),ke=new DataView($.buffer,0,8192),v=0),kn=$.length-10,kn-v&lt;2048?($=new qu($.length),ke=new DataView($.buffer,0,$.length),kn=$.length-10,v=0):B===Gp&amp;&amp;(v=v+7&amp;2147483640),n=v,u.useSelfDescribedHeader&amp;&amp;(ke.setUint32(v,3654940416),v+=3),a=u.structuredClone?new Map:null,u.bundleStrings&amp;&amp;typeof _!=&quot;string&quot;?(De=[],De.size=1/0):De=null,i=u.structures,i){if(i.uninitialized){let C=u.getShared()||{};u.structures=i=C.structures||[],u.sharedVersion=C.version;let j=u.sharedValues=C.packedValues;if(j){S={};for(let E=0,D=j.length;E&lt;D;E++)S[j[E]]=E}}let T=i.length;if(T&gt;m&amp;&amp;!p&amp;&amp;(T=m),!i.transitions){i.transitions=Object.create(null);for(let C=0;C&lt;T;C++){let j=i[C];if(!j)continue;let E,D=i.transitions;for(let R=0,K=j.length;R&lt;K;R++){D[pt]===void 0&amp;&amp;(D[pt]=C);let Q=j[R];E=D[Q],E||(E=D[Q]=Object.create(null)),D=E}D[pt]=C|1048576}}p||(i.nextId=T)}if(r&amp;&amp;(r=!1),o=i||[],y=S,t.pack){let T=new Map;if(T.values=[],T.encoder=u,T.maxValues=t.maxPrivatePackedValues||(S?16:1/0),T.objectMap=S||!1,T.samplingPackedValues=h,Ba(_,T),T.values.length&gt;0){$[v++]=216,$[v++]=51,Yt(4);let C=T.values;f(C),Yt(0),Yt(0),y=Object.create(S||null);for(let j=0,E=C.length;j&lt;E;j++)y[C[j]]=j}}el=B&amp;nl;try{if(el)return;if(f(_),De&amp;&amp;Hp(n,f),u.offset=v,a&amp;&amp;a.idsToInsert){v+=a.idsToInsert.length*2,v&gt;kn&amp;&amp;O(v),u.offset=v;let T=Zx($.subarray(n,v),a.idsToInsert);return a=null,T}return B&amp;Gp?($.start=n,$.end=v,$):$.subarray(n,v)}finally{if(i){if(d&lt;10&amp;&amp;d++,i.length&gt;m&amp;&amp;(i.length=m),c&gt;1e4)i.transitions=null,d=0,c=0,z.length&gt;0&amp;&amp;(z=[]);else if(z.length&gt;0&amp;&amp;!p){for(let T=0,C=z.length;T&lt;C;T++)z[T][pt]=void 0;z=[]}}if(r&amp;&amp;u.saveShared){u.structures.length&gt;m&amp;&amp;(u.structures=u.structures.slice(0,m));let T=$.subarray(n,v);return u.updateSharedData()===!1?u.encode(_):T}B&amp;Lx&amp;&amp;(v=n)}},this.findCommonStringsToPack=()=&gt;(h=new Map,S||(S=Object.create(null)),_=&gt;{let B=_&amp;&amp;_.threshold||4,T=this.pack?_.maxPrivatePackedValues||16:0;g||(g=this.sharedValues=[]);for(let[C,j]of h)j.count&gt;B&amp;&amp;(S[C]=T++,g.push(C),r=!0);for(;this.saveShared&amp;&amp;this.updateSharedData()===!1;);h=null});const f=_=&gt;{v&gt;kn&amp;&amp;($=O(v));var B=typeof _,T;if(B===&quot;string&quot;){if(y){let D=y[_];if(D&gt;=0){D&lt;16?$[v++]=D+224:($[v++]=198,D&amp;1?f(15-D&gt;&gt;1):f(D-16&gt;&gt;1));return}else if(h&amp;&amp;!t.pack){let R=h.get(_);R?R.count++:h.set(_,{count:1})}}let C=_.length;if(De&amp;&amp;C&gt;=4&amp;&amp;C&lt;1024){if((De.size+=C)&gt;Ux){let R,K=(De[0]?De[0].length*3+De[1].length:0)+10;v+K&gt;kn&amp;&amp;($=O(v+K)),$[v++]=217,$[v++]=223,$[v++]=249,$[v++]=De.position?132:130,$[v++]=26,R=v-n,v+=4,De.position&amp;&amp;Hp(n,f),De=[&quot;&quot;,&quot;&quot;],De.size=0,De.position=R}let D=Cx.test(_);De[D?0:1]+=_,$[v++]=D?206:207,f(C);return}let j;C&lt;32?j=1:C&lt;256?j=2:C&lt;65536?j=3:j=5;let E=C*3;if(v+E&gt;kn&amp;&amp;($=O(v+E)),C&lt;64||!s){let D,R,K,Q=v+j;for(D=0;D&lt;C;D++)R=_.charCodeAt(D),R&lt;128?$[Q++]=R:R&lt;2048?($[Q++]=R&gt;&gt;6|192,$[Q++]=R&amp;63|128):(R&amp;64512)===55296&amp;&amp;((K=_.charCodeAt(D+1))&amp;64512)===56320?(R=65536+((R&amp;1023)&lt;&lt;10)+(K&amp;1023),D++,$[Q++]=R&gt;&gt;18|240,$[Q++]=R&gt;&gt;12&amp;63|128,$[Q++]=R&gt;&gt;6&amp;63|128,$[Q++]=R&amp;63|128):($[Q++]=R&gt;&gt;12|224,$[Q++]=R&gt;&gt;6&amp;63|128,$[Q++]=R&amp;63|128);T=Q-v-j}else T=s(_,v+j,E);T&lt;24?$[v++]=96|T:T&lt;256?(j&lt;2&amp;&amp;$.copyWithin(v+2,v+1,v+1+T),$[v++]=120,$[v++]=T):T&lt;65536?(j&lt;3&amp;&amp;$.copyWithin(v+3,v+2,v+2+T),$[v++]=121,$[v++]=T&gt;&gt;8,$[v++]=T&amp;255):(j&lt;5&amp;&amp;$.copyWithin(v+5,v+3,v+3+T),$[v++]=122,ke.setUint32(v,T),v+=4),v+=T}else if(B===&quot;number&quot;)if(!this.alwaysUseFloat&amp;&amp;_&gt;&gt;&gt;0===_)_&lt;24?$[v++]=_:_&lt;256?($[v++]=24,$[v++]=_):_&lt;65536?($[v++]=25,$[v++]=_&gt;&gt;8,$[v++]=_&amp;255):($[v++]=26,ke.setUint32(v,_),v+=4);else if(!this.alwaysUseFloat&amp;&amp;_&gt;&gt;0===_)_&gt;=-24?$[v++]=31-_:_&gt;=-256?($[v++]=56,$[v++]=~_):_&gt;=-65536?($[v++]=57,ke.setUint16(v,~_),v+=2):($[v++]=58,ke.setUint32(v,~_),v+=4);else{let C;if((C=this.useFloat32)&gt;0&amp;&amp;_&lt;4294967296&amp;&amp;_&gt;=-2147483648){$[v++]=250,ke.setFloat32(v,_);let j;if(C&lt;4||(j=_*jd[($[v]&amp;127)&lt;&lt;1|$[v+1]&gt;&gt;7])&gt;&gt;0===j){v+=4;return}else v--}$[v++]=251,ke.setFloat64(v,_),v+=8}else if(B===&quot;object&quot;)if(!_)$[v++]=246;else{if(a){let j=a.get(_);if(j){if($[v++]=216,$[v++]=29,$[v++]=25,!j.references){let E=a.idsToInsert||(a.idsToInsert=[]);j.references=[],E.push(j)}j.references.push(v-n),v+=2;return}else a.set(_,{offset:v-n})}let C=_.constructor;if(C===Object)k(_);else if(C===Array){T=_.length,T&lt;24?$[v++]=128|T:Yt(T);for(let j=0;j&lt;T;j++)f(_[j])}else if(C===Map)if((this.mapsAsObjects?this.useTag259ForMaps!==!1:this.useTag259ForMaps)&amp;&amp;($[v++]=217,$[v++]=1,$[v++]=3),T=_.size,T&lt;24?$[v++]=160|T:T&lt;256?($[v++]=184,$[v++]=T):T&lt;65536?($[v++]=185,$[v++]=T&gt;&gt;8,$[v++]=T&amp;255):($[v++]=186,ke.setUint32(v,T),v+=4),u.keyMap)for(let[j,E]of _)f(u.encodeKey(j)),f(E);else for(let[j,E]of _)f(j),f(E);else{for(let j=0,E=ic.length;j&lt;E;j++){let D=dy[j];if(_ instanceof D){let R=ic[j],K=R.tag;K==null&amp;&amp;(K=R.getTag&amp;&amp;R.getTag.call(this,_)),K&lt;24?$[v++]=192|K:K&lt;256?($[v++]=216,$[v++]=K):K&lt;65536?($[v++]=217,$[v++]=K&gt;&gt;8,$[v++]=K&amp;255):K&gt;-1&amp;&amp;($[v++]=218,ke.setUint32(v,K),v+=4),R.encode.call(this,_,f,O);return}}if(_[Symbol.iterator]){if(el){let j=new Error(&quot;Iterable should be serialized as iterator&quot;);throw j.iteratorNotHandled=!0,j}$[v++]=159;for(let j of _)f(j);$[v++]=255;return}if(_[Symbol.asyncIterator]||tl(_)){let j=new Error(&quot;Iterable/blob should be serialized as iterator&quot;);throw j.iteratorNotHandled=!0,j}if(this.useToJSON&amp;&amp;_.toJSON){const j=_.toJSON();if(j!==_)return f(j)}k(_)}}else if(B===&quot;boolean&quot;)$[v++]=_?245:244;else if(B===&quot;bigint&quot;){if(_&lt;BigInt(1)&lt;&lt;BigInt(64)&amp;&amp;_&gt;=0)$[v++]=27,ke.setBigUint64(v,_);else if(_&gt;-(BigInt(1)&lt;&lt;BigInt(64))&amp;&amp;_&lt;0)$[v++]=59,ke.setBigUint64(v,-_-BigInt(1));else if(this.largeBigIntToFloat)$[v++]=251,ke.setFloat64(v,Number(_));else{_&gt;=BigInt(0)?$[v++]=194:($[v++]=195,_=BigInt(-1)-_);let C=[];for(;_;)C.push(Number(_&amp;BigInt(255))),_&gt;&gt;=BigInt(8);oc(new Uint8Array(C.reverse()),O);return}v+=8}else if(B===&quot;undefined&quot;)$[v++]=247;else throw new Error(&quot;Unknown type: &quot;+B)},k=this.useRecords===!1?this.variableMapSize?_=&gt;{let B=Object.keys(_),T=Object.values(_),C=B.length;if(C&lt;24?$[v++]=160|C:C&lt;256?($[v++]=184,$[v++]=C):C&lt;65536?($[v++]=185,$[v++]=C&gt;&gt;8,$[v++]=C&amp;255):($[v++]=186,ke.setUint32(v,C),v+=4),u.keyMap)for(let j=0;j&lt;C;j++)f(u.encodeKey(B[j])),f(T[j]);else for(let j=0;j&lt;C;j++)f(B[j]),f(T[j])}:_=&gt;{$[v++]=185;let B=v-n;v+=2;let T=0;if(u.keyMap)for(let C in _)(typeof _.hasOwnProperty!=&quot;function&quot;||_.hasOwnProperty(C))&amp;&amp;(f(u.encodeKey(C)),f(_[C]),T++);else for(let C in _)(typeof _.hasOwnProperty!=&quot;function&quot;||_.hasOwnProperty(C))&amp;&amp;(f(C),f(_[C]),T++);$[B+++n]=T&gt;&gt;8,$[B+n]=T&amp;255}:(_,B)=&gt;{let T,C=o.transitions||(o.transitions=Object.create(null)),j=0,E=0,D,R;if(this.keyMap){R=Object.keys(_).map(Q=&gt;this.encodeKey(Q)),E=R.length;for(let Q=0;Q&lt;E;Q++){let Xn=R[Q];T=C[Xn],T||(T=C[Xn]=Object.create(null),j++),C=T}}else for(let Q in _)(typeof _.hasOwnProperty!=&quot;function&quot;||_.hasOwnProperty(Q))&amp;&amp;(T=C[Q],T||(C[pt]&amp;1048576&amp;&amp;(D=C[pt]&amp;65535),T=C[Q]=Object.create(null),j++),C=T,E++);let K=C[pt];if(K!==void 0)K&amp;=65535,$[v++]=217,$[v++]=K&gt;&gt;8|224,$[v++]=K&amp;255;else if(R||(R=C.__keys__||(C.__keys__=Object.keys(_))),D===void 0?(K=o.nextId++,K||(K=0,o.nextId=1),K&gt;=Wp&amp;&amp;(o.nextId=(K=m)+1)):K=D,o[K]=R,K&lt;m){$[v++]=217,$[v++]=K&gt;&gt;8|224,$[v++]=K&amp;255,C=o.transitions;for(let Q=0;Q&lt;E;Q++)(C[pt]===void 0||C[pt]&amp;1048576)&amp;&amp;(C[pt]=K),C=C[R[Q]];C[pt]=K|1048576,r=!0}else{if(C[pt]=K,ke.setUint32(v,3655335680),v+=3,j&amp;&amp;(c+=d*j),z.length&gt;=Wp-m&amp;&amp;(z.shift()[pt]=void 0),z.push(C),Yt(E+2),f(57344+K),f(R),B)return;for(let Q in _)(typeof _.hasOwnProperty!=&quot;function&quot;||_.hasOwnProperty(Q))&amp;&amp;f(_[Q]);return}if(E&lt;24?$[v++]=128|E:Yt(E),!B)for(let Q in _)(typeof _.hasOwnProperty!=&quot;function&quot;||_.hasOwnProperty(Q))&amp;&amp;f(_[Q])},O=_=&gt;{let B;if(_&gt;16777216){if(_-n&gt;Jp)throw new Error(&quot;Encoded buffer would be larger than maximum buffer size&quot;);B=Math.min(Jp,Math.round(Math.max((_-n)*(_&gt;67108864?1.25:2),4194304)/4096)*4096)}else B=(Math.max(_-n&lt;&lt;2,$.length-1)&gt;&gt;12)+1&lt;&lt;12;let T=new qu(B);return ke=new DataView(T.buffer,0,B),$.copy?$.copy(T,0,n,_):T.set($.slice(n,_)),v-=n,n=0,kn=T.length-10,$=T};let P=100,L=1e3;this.encodeAsIterable=function(_,B){return at(_,B,F)},this.encodeAsAsyncIterable=function(_,B){return at(_,B,wn)};function*F(_,B,T){let C=_.constructor;if(C===Object){let j=u.useRecords!==!1;j?k(_,!0):Kp(Object.keys(_).length,160);for(let E in _){let D=_[E];j||f(E),D&amp;&amp;typeof D==&quot;object&quot;?B[E]?yield*F(D,B[E]):yield*ge(D,B,E):f(D)}}else if(C===Array){let j=_.length;Yt(j);for(let E=0;E&lt;j;E++){let D=_[E];D&amp;&amp;(typeof D==&quot;object&quot;||v-n&gt;P)?B.element?yield*F(D,B.element):yield*ge(D,B,&quot;element&quot;):f(D)}}else if(_[Symbol.iterator]&amp;&amp;!_.buffer){$[v++]=159;for(let j of _)j&amp;&amp;(typeof j==&quot;object&quot;||v-n&gt;P)?B.element?yield*F(j,B.element):yield*ge(j,B,&quot;element&quot;):f(j);$[v++]=255}else tl(_)?(Kp(_.size,64),yield $.subarray(n,v),yield _,ne()):_[Symbol.asyncIterator]?($[v++]=159,yield $.subarray(n,v),yield _,ne(),$[v++]=255):f(_);T&amp;&amp;v&gt;n?yield $.subarray(n,v):v-n&gt;P&amp;&amp;(yield $.subarray(n,v),ne())}function*ge(_,B,T){let C=v-n;try{f(_),v-n&gt;P&amp;&amp;(yield $.subarray(n,v),ne())}catch(j){if(j.iteratorNotHandled)B[T]={},v=n+C,yield*F.call(this,_,B[T]);else throw j}}function ne(){P=L,u.encode(null,nl)}function at(_,B,T){return B&amp;&amp;B.chunkThreshold?P=L=B.chunkThreshold:P=100,_&amp;&amp;typeof _==&quot;object&quot;?(u.encode(null,nl),T(_,u.iterateProperties||(u.iterateProperties={}),!0)):[u.encode(_)]}async function*wn(_,B){for(let T of F(_,B,!0)){let C=T.constructor;if(C===Bp||C===Uint8Array)yield T;else if(tl(T)){let j=T.stream().getReader(),E;for(;!(E=await j.read()).done;)yield E.value}else if(T[Symbol.asyncIterator])for await(let j of T)ne(),j?yield*wn(j,B.async||(B.async={})):yield u.encode(j);else yield T}}}useBuffer(t){$=t,ke=new DataView($.buffer,$.byteOffset,$.byteLength),v=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),i=new fy(n,this.sharedValues,this.sharedVersion),r=this.saveShared(i,o=&gt;(o&amp;&amp;o.version||0)==t);return r===!1?(i=this.getShared()||{},this.structures=i.structures||[],this.sharedValues=i.packedValues,this.sharedVersion=i.version,this.structures.nextId=this.structures.length):n.forEach((o,a)=&gt;this.structures[a]=o),r}}function Kp(e,t){e&lt;24?$[v++]=t|e:e&lt;256?($[v++]=t|24,$[v++]=e):e&lt;65536?($[v++]=t|25,$[v++]=e&gt;&gt;8,$[v++]=e&amp;255):($[v++]=t|26,ke.setUint32(v,e),v+=4)}class fy{constructor(t,n,i){this.structures=t,this.packedValues=n,this.version=i}}function Yt(e){e&lt;24?$[v++]=128|e:e&lt;256?($[v++]=152,$[v++]=e):e&lt;65536?($[v++]=153,$[v++]=e&gt;&gt;8,$[v++]=e&amp;255):($[v++]=154,ke.setUint32(v,e),v+=4)}const Dx=typeof Blob&gt;&quot;u&quot;?function(){}:Blob;function tl(e){if(e instanceof Dx)return!0;let t=e[Symbol.toStringTag];return t===&quot;Blob&quot;||t===&quot;File&quot;}function Ba(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 i=t.get(e);if(i)++i.count==2&amp;&amp;t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let r=t.samplingPackedValues.get(e);r?r.count++:t.samplingPackedValues.set(e,{count:1})}}break;case&quot;object&quot;:if(e)if(e instanceof Array)for(let i=0,r=e.length;i&lt;r;i++)Ba(e[i],t);else{let i=!t.encoder.useRecords;for(var n in e)e.hasOwnProperty(n)&amp;&amp;(i&amp;&amp;Ba(n,t),Ba(e[n],t))}break;case&quot;function&quot;:console.log(e)}}const Rx=new Uint8Array(new Uint16Array([1]).buffer)[0]==1;dy=[Date,Set,Error,RegExp,xr,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,fy];ic=[{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?($[v++]=26,ke.setUint32(v,n),v+=4):($[v++]=251,ke.setFloat64(v,n),v+=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){oc(e,n)}},{getTag(e){if(e.constructor===Uint8Array&amp;&amp;(this.tagUint8Array||qo&amp;&amp;this.tagUint8Array!==!1))return 64},encode(e,t,n){oc(e,n)}},Qt(68,1),Qt(69,2),Qt(70,4),Qt(71,8),Qt(72,1),Qt(77,2),Qt(78,4),Qt(79,8),Qt(85,4),Qt(86,8),{encode(e,t){let n=e.packedValues||[],i=e.structures||[];if(n.values.length&gt;0){$[v++]=216,$[v++]=51,Yt(4);let r=n.values;t(r),Yt(0),Yt(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let o=0,a=r.length;o&lt;a;o++)packedObjectMap[r[o]]=o}if(i){ke.setUint32(v,3655335424),v+=3;let r=i.slice(0);r.unshift(57344),r.push(new xr(e.version,1399353956)),t(r)}else t(new xr(e.version,1399353956))}}];function Qt(e,t){return!Rx&amp;&amp;t&gt;1&amp;&amp;(e-=4),{tag:e,encode:function(i,r){let o=i.byteLength,a=i.byteOffset||0,s=i.buffer||i;r(qo?ru.from(s,a,o):new Uint8Array(s,a,o))}}}function oc(e,t){let n=e.byteLength;n&lt;24?$[v++]=64+n:n&lt;256?($[v++]=88,$[v++]=n):n&lt;65536?($[v++]=89,$[v++]=n&gt;&gt;8,$[v++]=n&amp;255):($[v++]=90,ke.setUint32(v,n),v+=4),v+n&gt;=$.length&amp;&amp;t(v+n),$.set(e.buffer?e:new Uint8Array(e),v),v+=n}function Zx(e,t){let n,i=t.length*2,r=e.length-i;t.sort((o,a)=&gt;o.offset&gt;a.offset?1:-1);for(let o=0;o&lt;t.length;o++){let a=t[o];a.id=o;for(let s of a.references)e[s++]=o&gt;&gt;8,e[s]=o&amp;255}for(;n=t.pop();){let o=n.offset;e.copyWithin(o+i,o,r),i-=2;let a=o+i;e[a++]=216,e[a++]=28,r=o}return e}function Hp(e,t){ke.setUint32(De.position+e,v-De.position-e+1);let n=De;De=null,t(n[0]),t(n[1])}let Pd=new Ax({useRecords:!1});const my=Pd.encode;Pd.encodeAsIterable;Pd.encodeAsAsyncIterable;const Gp=512,Lx=1024,nl=2048;var fe;(function(e){e.assertEqual=r=&gt;{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=&gt;{const o={};for(const a of r)o[a]=a;return o},e.getValidEnumValues=r=&gt;{const o=e.objectKeys(r).filter(s=&gt;typeof r[r[s]]!=&quot;number&quot;),a={};for(const s of o)a[s]=r[s];return e.objectValues(a)},e.objectValues=r=&gt;e.objectKeys(r).map(function(o){return r[o]}),e.objectKeys=typeof Object.keys==&quot;function&quot;?r=&gt;Object.keys(r):r=&gt;{const o=[];for(const a in r)Object.prototype.hasOwnProperty.call(r,a)&amp;&amp;o.push(a);return o},e.find=(r,o)=&gt;{for(const a of r)if(o(a))return a},e.isInteger=typeof Number.isInteger==&quot;function&quot;?r=&gt;Number.isInteger(r):r=&gt;typeof r==&quot;number&quot;&amp;&amp;Number.isFinite(r)&amp;&amp;Math.floor(r)===r;function i(r,o=&quot; | &quot;){return r.map(a=&gt;typeof a==&quot;string&quot;?`&#39;${a}&#39;`:a).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(r,o)=&gt;typeof o==&quot;bigint&quot;?o.toString():o})(fe||(fe={}));var Qp;(function(e){e.mergeShapes=(t,n)=&gt;({...t,...n})})(Qp||(Qp={}));const J=fe.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;]),bn=e=&gt;{switch(typeof e){case&quot;undefined&quot;:return J.undefined;case&quot;string&quot;:return J.string;case&quot;number&quot;:return Number.isNaN(e)?J.nan:J.number;case&quot;boolean&quot;:return J.boolean;case&quot;function&quot;:return J.function;case&quot;bigint&quot;:return J.bigint;case&quot;symbol&quot;:return J.symbol;case&quot;object&quot;:return Array.isArray(e)?J.array:e===null?J.null:e.then&amp;&amp;typeof e.then==&quot;function&quot;&amp;&amp;e.catch&amp;&amp;typeof e.catch==&quot;function&quot;?J.promise:typeof Map&lt;&quot;u&quot;&amp;&amp;e instanceof Map?J.map:typeof Set&lt;&quot;u&quot;&amp;&amp;e instanceof Set?J.set:typeof Date&lt;&quot;u&quot;&amp;&amp;e instanceof Date?J.date:J.object;default:return J.unknown}},A=fe.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;]);let br=class py extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=&gt;{this.issues=[...this.issues,i]},this.addIssues=(i=[])=&gt;{this.issues=[...this.issues,...i]};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(o){return o.message},i={_errors:[]},r=o=&gt;{for(const a of o.issues)if(a.code===&quot;invalid_union&quot;)a.unionErrors.map(r);else if(a.code===&quot;invalid_return_type&quot;)r(a.returnTypeError);else if(a.code===&quot;invalid_arguments&quot;)r(a.argumentsError);else if(a.path.length===0)i._errors.push(n(a));else{let s=i,u=0;for(;u&lt;a.path.length;){const l=a.path[u];u===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(a))):s[l]=s[l]||{_errors:[]},s=s[l],u++}}};return r(this),i}static assert(t){if(!(t instanceof py))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=&gt;n.message){const n={},i=[];for(const r of this.issues)if(r.path.length&gt;0){const o=r.path[0];n[o]=n[o]||[],n[o].push(t(r))}else i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};br.create=e=&gt;new br(e);const ac=(e,t)=&gt;{let n;switch(e.code){case A.invalid_type:e.received===J.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,fe.jsonStringifyReplacer)}`;break;case A.unrecognized_keys:n=`Unrecognized key(s) in object: ${fe.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 ${fe.joinValues(e.options)}`;break;case A.invalid_enum_value:n=`Invalid enum value. Expected ${fe.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;`:fe.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,fe.assertNever(e)}return{message:n}};let Mx=ac;function Fx(){return Mx}const Vx=e=&gt;{const{data:t,path:n,errorMaps:i,issueData:r}=e,o=[...n,...r.path||[]],a={...r,path:o};if(r.message!==void 0)return{...r,path:o,message:r.message};let s=&quot;&quot;;const u=i.filter(l=&gt;!!l).slice().reverse();for(const l of u)s=l(a,{data:t,defaultError:s}).message;return{...r,path:o,message:s}};function M(e,t){const n=Fx(),i=Vx({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ac?void 0:ac].filter(r=&gt;!!r)});e.common.issues.push(i)}class kt{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 i=[];for(const r of n){if(r.status===&quot;aborted&quot;)return Y;r.status===&quot;dirty&quot;&amp;&amp;t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const r of n){const o=await r.key,a=await r.value;i.push({key:o,value:a})}return kt.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const r of n){const{key:o,value:a}=r;if(o.status===&quot;aborted&quot;||a.status===&quot;aborted&quot;)return Y;o.status===&quot;dirty&quot;&amp;&amp;t.dirty(),a.status===&quot;dirty&quot;&amp;&amp;t.dirty(),o.value!==&quot;__proto__&quot;&amp;&amp;(typeof a.value&lt;&quot;u&quot;||r.alwaysSet)&amp;&amp;(i[o.value]=a.value)}return{status:t.value,value:i}}}const Y=Object.freeze({status:&quot;aborted&quot;}),eo=e=&gt;({status:&quot;dirty&quot;,value:e}),At=e=&gt;({status:&quot;valid&quot;,value:e}),Xp=e=&gt;e.status===&quot;aborted&quot;,Yp=e=&gt;e.status===&quot;dirty&quot;,xi=e=&gt;e.status===&quot;valid&quot;,Ss=e=&gt;typeof Promise&lt;&quot;u&quot;&amp;&amp;e instanceof Promise;var H;(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})(H||(H={}));class Jn{constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=r}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 qp=(e,t)=&gt;{if(xi(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 br(e.common.issues);return this._error=n,this._error}}};function oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&amp;&amp;(n||i))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:r}:{errorMap:(a,s)=&gt;{const{message:u}=e;return a.code===&quot;invalid_enum_value&quot;?{message:u??s.defaultError}:typeof s.data&gt;&quot;u&quot;?{message:u??i??s.defaultError}:a.code!==&quot;invalid_type&quot;?{message:s.defaultError}:{message:u??n??s.defaultError}},description:r}}let de=class{get description(){return this._def.description}_getType(t){return bn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:bn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new kt,ctx:{common:t.parent.common,data:t.data,parsedType:bn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ss(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 i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){const i={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:bn(t)},r=this._parseSync({data:t,path:i.path,parent:i});return qp(i,r)}&quot;~validate&quot;(t){var i,r;const n={common:{issues:[],async:!!this[&quot;~standard&quot;].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bn(t)};if(!this[&quot;~standard&quot;].async)try{const o=this._parseSync({data:t,path:[],parent:n});return xi(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(r=(i=o==null?void 0:o.message)==null?void 0:i.toLowerCase())!=null&amp;&amp;r.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(o=&gt;xi(o)?{value:o.value}:{issues:n.common.issues})}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={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:bn(t)},r=this._parse({data:t,path:i.path,parent:i}),o=await(Ss(r)?r:Promise.resolve(r));return qp(i,o)}refine(t,n){const i=r=&gt;typeof n==&quot;string&quot;||typeof n&gt;&quot;u&quot;?{message:n}:typeof n==&quot;function&quot;?n(r):n;return this._refinement((r,o)=&gt;{const a=t(r),s=()=&gt;o.addIssue({code:A.custom,...i(r)});return typeof Promise&lt;&quot;u&quot;&amp;&amp;a instanceof Promise?a.then(u=&gt;u?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((i,r)=&gt;t(i)?!0:(r.addIssue(typeof n==&quot;function&quot;?n(i,r):n),!1))}_refinement(t){return new Ii({schema:this,typeName:q.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 Vn.create(this,this._def)}nullable(){return zi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return bi.create(this)}promise(){return Is.create(this,this._def)}or(t){return xs.create([this,t],this._def)}and(t){return bs.create(this,t,this._def)}transform(t){return new Ii({...oe(this._def),schema:this,typeName:q.ZodEffects,effect:{type:&quot;transform&quot;,transform:t}})}default(t){const n=typeof t==&quot;function&quot;?t:()=&gt;t;return new vc({...oe(this._def),innerType:this,defaultValue:n,typeName:q.ZodDefault})}brand(){return new fb({typeName:q.ZodBranded,type:this,...oe(this._def)})}catch(t){const n=typeof t==&quot;function&quot;?t:()=&gt;t;return new gc({...oe(this._def),innerType:this,catchValue:n,typeName:q.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Cd.create(this,t)}readonly(){return yc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const Bx=/^c[^\s-]{8,}$/i,Wx=/^[0-9a-z]+$/,Jx=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Kx=/^[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,Hx=/^[a-z0-9_-]{21}$/i,Gx=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Qx=/^[-+]?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)?)??$/,Xx=/^(?!\.)(?!.*\.\.)([A-Z0-9_&#39;+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Yx=&quot;^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$&quot;;let rl;const qx=/^(?:(?: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])$/,eb=/^(?:(?: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])$/,tb=/^(([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]))$/,nb=/^(([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])$/,rb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ib=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,hy=&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;,ob=new RegExp(`^${hy}$`);function vy(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 ab(e){return new RegExp(`^${vy(e)}$`)}function sb(e){let t=`${hy}T${vy(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 ub(e,t){return!!((t===&quot;v4&quot;||!t)&amp;&amp;qx.test(e)||(t===&quot;v6&quot;||!t)&amp;&amp;tb.test(e))}function lb(e,t){if(!Gx.test(e))return!1;try{const[n]=e.split(&quot;.&quot;);if(!n)return!1;const i=n.replace(/-/g,&quot;+&quot;).replace(/_/g,&quot;/&quot;).padEnd(n.length+(4-n.length%4)%4,&quot;=&quot;),r=JSON.parse(atob(i));return!(typeof r!=&quot;object&quot;||r===null||&quot;typ&quot;in r&amp;&amp;(r==null?void 0:r.typ)!==&quot;JWT&quot;||!r.alg||t&amp;&amp;r.alg!==t)}catch{return!1}}function cb(e,t){return!!((t===&quot;v4&quot;||!t)&amp;&amp;eb.test(e)||(t===&quot;v6&quot;||!t)&amp;&amp;nb.test(e))}let sc=class to extends de{_parse(t){if(this._def.coerce&amp;&amp;(t.data=String(t.data)),this._getType(t)!==J.string){const o=this._getOrReturnCtx(t);return M(o,{code:A.invalid_type,expected:J.string,received:o.parsedType}),Y}const i=new kt;let r;for(const o of this._def.checks)if(o.kind===&quot;min&quot;)t.data.length&lt;o.value&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_small,minimum:o.value,type:&quot;string&quot;,inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind===&quot;max&quot;)t.data.length&gt;o.value&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_big,maximum:o.value,type:&quot;string&quot;,inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind===&quot;length&quot;){const a=t.data.length&gt;o.value,s=t.data.length&lt;o.value;(a||s)&amp;&amp;(r=this._getOrReturnCtx(t,r),a?M(r,{code:A.too_big,maximum:o.value,type:&quot;string&quot;,inclusive:!0,exact:!0,message:o.message}):s&amp;&amp;M(r,{code:A.too_small,minimum:o.value,type:&quot;string&quot;,inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind===&quot;email&quot;)Xx.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;email&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;emoji&quot;)rl||(rl=new RegExp(Yx,&quot;u&quot;)),rl.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;emoji&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;uuid&quot;)Kx.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;uuid&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;nanoid&quot;)Hx.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;nanoid&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;cuid&quot;)Bx.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;cuid&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;cuid2&quot;)Wx.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;cuid2&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;ulid&quot;)Jx.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;ulid&quot;,code:A.invalid_string,message:o.message}),i.dirty());else if(o.kind===&quot;url&quot;)try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;url&quot;,code:A.invalid_string,message:o.message}),i.dirty()}else o.kind===&quot;regex&quot;?(o.regex.lastIndex=0,o.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;regex&quot;,code:A.invalid_string,message:o.message}),i.dirty())):o.kind===&quot;trim&quot;?t.data=t.data.trim():o.kind===&quot;includes&quot;?t.data.includes(o.value,o.position)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind===&quot;toLowerCase&quot;?t.data=t.data.toLowerCase():o.kind===&quot;toUpperCase&quot;?t.data=t.data.toUpperCase():o.kind===&quot;startsWith&quot;?t.data.startsWith(o.value)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind===&quot;endsWith&quot;?t.data.endsWith(o.value)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind===&quot;datetime&quot;?sb(o).test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_string,validation:&quot;datetime&quot;,message:o.message}),i.dirty()):o.kind===&quot;date&quot;?ob.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_string,validation:&quot;date&quot;,message:o.message}),i.dirty()):o.kind===&quot;time&quot;?ab(o).test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:A.invalid_string,validation:&quot;time&quot;,message:o.message}),i.dirty()):o.kind===&quot;duration&quot;?Qx.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;duration&quot;,code:A.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;ip&quot;?ub(t.data,o.version)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;ip&quot;,code:A.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;jwt&quot;?lb(t.data,o.alg)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;jwt&quot;,code:A.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;cidr&quot;?cb(t.data,o.version)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;cidr&quot;,code:A.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;base64&quot;?rb.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;base64&quot;,code:A.invalid_string,message:o.message}),i.dirty()):o.kind===&quot;base64url&quot;?ib.test(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{validation:&quot;base64url&quot;,code:A.invalid_string,message:o.message}),i.dirty()):fe.assertNever(o);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=&gt;t.test(r),{validation:n,code:A.invalid_string,...H.errToObj(i)})}_addCheck(t){return new to({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:&quot;email&quot;,...H.errToObj(t)})}url(t){return this._addCheck({kind:&quot;url&quot;,...H.errToObj(t)})}emoji(t){return this._addCheck({kind:&quot;emoji&quot;,...H.errToObj(t)})}uuid(t){return this._addCheck({kind:&quot;uuid&quot;,...H.errToObj(t)})}nanoid(t){return this._addCheck({kind:&quot;nanoid&quot;,...H.errToObj(t)})}cuid(t){return this._addCheck({kind:&quot;cuid&quot;,...H.errToObj(t)})}cuid2(t){return this._addCheck({kind:&quot;cuid2&quot;,...H.errToObj(t)})}ulid(t){return this._addCheck({kind:&quot;ulid&quot;,...H.errToObj(t)})}base64(t){return this._addCheck({kind:&quot;base64&quot;,...H.errToObj(t)})}base64url(t){return this._addCheck({kind:&quot;base64url&quot;,...H.errToObj(t)})}jwt(t){return this._addCheck({kind:&quot;jwt&quot;,...H.errToObj(t)})}ip(t){return this._addCheck({kind:&quot;ip&quot;,...H.errToObj(t)})}cidr(t){return this._addCheck({kind:&quot;cidr&quot;,...H.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,...H.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,...H.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:&quot;duration&quot;,...H.errToObj(t)})}regex(t,n){return this._addCheck({kind:&quot;regex&quot;,regex:t,...H.errToObj(n)})}includes(t,n){return this._addCheck({kind:&quot;includes&quot;,value:t,position:n==null?void 0:n.position,...H.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:&quot;startsWith&quot;,value:t,...H.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:&quot;endsWith&quot;,value:t,...H.errToObj(n)})}min(t,n){return this._addCheck({kind:&quot;min&quot;,value:t,...H.errToObj(n)})}max(t,n){return this._addCheck({kind:&quot;max&quot;,value:t,...H.errToObj(n)})}length(t,n){return this._addCheck({kind:&quot;length&quot;,value:t,...H.errToObj(n)})}nonempty(t){return this.min(1,H.errToObj(t))}trim(){return new to({...this._def,checks:[...this._def.checks,{kind:&quot;trim&quot;}]})}toLowerCase(){return new to({...this._def,checks:[...this._def.checks,{kind:&quot;toLowerCase&quot;}]})}toUpperCase(){return new to({...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}};sc.create=e=&gt;new sc({checks:[],typeName:q.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...oe(e)});function db(e,t){const n=(e.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,i=(t.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,r=n&gt;i?n:i,o=Number.parseInt(e.toFixed(r).replace(&quot;.&quot;,&quot;&quot;)),a=Number.parseInt(t.toFixed(r).replace(&quot;.&quot;,&quot;&quot;));return o%a/10**r}let uc=class lc extends de{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)!==J.number){const o=this._getOrReturnCtx(t);return M(o,{code:A.invalid_type,expected:J.number,received:o.parsedType}),Y}let i;const r=new kt;for(const o of this._def.checks)o.kind===&quot;int&quot;?fe.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.invalid_type,expected:&quot;integer&quot;,received:&quot;float&quot;,message:o.message}),r.dirty()):o.kind===&quot;min&quot;?(o.inclusive?t.data&lt;o.value:t.data&lt;=o.value)&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_small,minimum:o.value,type:&quot;number&quot;,inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind===&quot;max&quot;?(o.inclusive?t.data&gt;o.value:t.data&gt;=o.value)&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_big,maximum:o.value,type:&quot;number&quot;,inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind===&quot;multipleOf&quot;?db(t.data,o.value)!==0&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):o.kind===&quot;finite&quot;?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),M(i,{code:A.not_finite,message:o.message}),r.dirty()):fe.assertNever(o);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit(&quot;min&quot;,t,!0,H.toString(n))}gt(t,n){return this.setLimit(&quot;min&quot;,t,!1,H.toString(n))}lte(t,n){return this.setLimit(&quot;max&quot;,t,!0,H.toString(n))}lt(t,n){return this.setLimit(&quot;max&quot;,t,!1,H.toString(n))}setLimit(t,n,i,r){return new lc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:H.toString(r)}]})}_addCheck(t){return new lc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:&quot;int&quot;,message:H.toString(t)})}positive(t){return this._addCheck({kind:&quot;min&quot;,value:0,inclusive:!1,message:H.toString(t)})}negative(t){return this._addCheck({kind:&quot;max&quot;,value:0,inclusive:!1,message:H.toString(t)})}nonpositive(t){return this._addCheck({kind:&quot;max&quot;,value:0,inclusive:!0,message:H.toString(t)})}nonnegative(t){return this._addCheck({kind:&quot;min&quot;,value:0,inclusive:!0,message:H.toString(t)})}multipleOf(t,n){return this._addCheck({kind:&quot;multipleOf&quot;,value:t,message:H.toString(n)})}finite(t){return this._addCheck({kind:&quot;finite&quot;,message:H.toString(t)})}safe(t){return this._addCheck({kind:&quot;min&quot;,inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:H.toString(t)})._addCheck({kind:&quot;max&quot;,inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:H.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;fe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind===&quot;finite&quot;||i.kind===&quot;int&quot;||i.kind===&quot;multipleOf&quot;)return!0;i.kind===&quot;min&quot;?(n===null||i.value&gt;n)&amp;&amp;(n=i.value):i.kind===&quot;max&quot;&amp;&amp;(t===null||i.value&lt;t)&amp;&amp;(t=i.value)}return Number.isFinite(n)&amp;&amp;Number.isFinite(t)}};uc.create=e=&gt;new uc({checks:[],typeName:q.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});let eh=class cc extends de{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)!==J.bigint)return this._getInvalidInput(t);let i;const r=new kt;for(const o of this._def.checks)o.kind===&quot;min&quot;?(o.inclusive?t.data&lt;o.value:t.data&lt;=o.value)&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_small,type:&quot;bigint&quot;,minimum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind===&quot;max&quot;?(o.inclusive?t.data&gt;o.value:t.data&gt;=o.value)&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.too_big,type:&quot;bigint&quot;,maximum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind===&quot;multipleOf&quot;?t.data%o.value!==BigInt(0)&amp;&amp;(i=this._getOrReturnCtx(t,i),M(i,{code:A.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):fe.assertNever(o);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return M(n,{code:A.invalid_type,expected:J.bigint,received:n.parsedType}),Y}gte(t,n){return this.setLimit(&quot;min&quot;,t,!0,H.toString(n))}gt(t,n){return this.setLimit(&quot;min&quot;,t,!1,H.toString(n))}lte(t,n){return this.setLimit(&quot;max&quot;,t,!0,H.toString(n))}lt(t,n){return this.setLimit(&quot;max&quot;,t,!1,H.toString(n))}setLimit(t,n,i,r){return new cc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:H.toString(r)}]})}_addCheck(t){return new cc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:&quot;min&quot;,value:BigInt(0),inclusive:!1,message:H.toString(t)})}negative(t){return this._addCheck({kind:&quot;max&quot;,value:BigInt(0),inclusive:!1,message:H.toString(t)})}nonpositive(t){return this._addCheck({kind:&quot;max&quot;,value:BigInt(0),inclusive:!0,message:H.toString(t)})}nonnegative(t){return this._addCheck({kind:&quot;min&quot;,value:BigInt(0),inclusive:!0,message:H.toString(t)})}multipleOf(t,n){return this._addCheck({kind:&quot;multipleOf&quot;,value:t,message:H.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}};eh.create=e=&gt;new eh({checks:[],typeName:q.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...oe(e)});let dc=class extends de{_parse(t){if(this._def.coerce&amp;&amp;(t.data=!!t.data),this._getType(t)!==J.boolean){const i=this._getOrReturnCtx(t);return M(i,{code:A.invalid_type,expected:J.boolean,received:i.parsedType}),Y}return At(t.data)}};dc.create=e=&gt;new dc({typeName:q.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});let th=class gy extends de{_parse(t){if(this._def.coerce&amp;&amp;(t.data=new Date(t.data)),this._getType(t)!==J.date){const o=this._getOrReturnCtx(t);return M(o,{code:A.invalid_type,expected:J.date,received:o.parsedType}),Y}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return M(o,{code:A.invalid_date}),Y}const i=new kt;let r;for(const o of this._def.checks)o.kind===&quot;min&quot;?t.data.getTime()&lt;o.value&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:&quot;date&quot;}),i.dirty()):o.kind===&quot;max&quot;?t.data.getTime()&gt;o.value&amp;&amp;(r=this._getOrReturnCtx(t,r),M(r,{code:A.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:&quot;date&quot;}),i.dirty()):fe.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new gy({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:&quot;min&quot;,value:t.getTime(),message:H.toString(n)})}max(t,n){return this._addCheck({kind:&quot;max&quot;,value:t.getTime(),message:H.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}};th.create=e=&gt;new th({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:q.ZodDate,...oe(e)});let nh=class extends de{_parse(t){if(this._getType(t)!==J.symbol){const i=this._getOrReturnCtx(t);return M(i,{code:A.invalid_type,expected:J.symbol,received:i.parsedType}),Y}return At(t.data)}};nh.create=e=&gt;new nh({typeName:q.ZodSymbol,...oe(e)});let rh=class extends de{_parse(t){if(this._getType(t)!==J.undefined){const i=this._getOrReturnCtx(t);return M(i,{code:A.invalid_type,expected:J.undefined,received:i.parsedType}),Y}return At(t.data)}};rh.create=e=&gt;new rh({typeName:q.ZodUndefined,...oe(e)});let ih=class extends de{_parse(t){if(this._getType(t)!==J.null){const i=this._getOrReturnCtx(t);return M(i,{code:A.invalid_type,expected:J.null,received:i.parsedType}),Y}return At(t.data)}};ih.create=e=&gt;new ih({typeName:q.ZodNull,...oe(e)});let oh=class extends de{constructor(){super(...arguments),this._any=!0}_parse(t){return At(t.data)}};oh.create=e=&gt;new oh({typeName:q.ZodAny,...oe(e)});let fc=class extends de{constructor(){super(...arguments),this._unknown=!0}_parse(t){return At(t.data)}};fc.create=e=&gt;new fc({typeName:q.ZodUnknown,...oe(e)});let Kn=class extends de{_parse(t){const n=this._getOrReturnCtx(t);return M(n,{code:A.invalid_type,expected:J.never,received:n.parsedType}),Y}};Kn.create=e=&gt;new Kn({typeName:q.ZodNever,...oe(e)});let ah=class extends de{_parse(t){if(this._getType(t)!==J.undefined){const i=this._getOrReturnCtx(t);return M(i,{code:A.invalid_type,expected:J.void,received:i.parsedType}),Y}return At(t.data)}};ah.create=e=&gt;new ah({typeName:q.ZodVoid,...oe(e)});let bi=class Wa extends de{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==J.array)return M(n,{code:A.invalid_type,expected:J.array,received:n.parsedType}),Y;if(r.exactLength!==null){const a=n.data.length&gt;r.exactLength.value,s=n.data.length&lt;r.exactLength.value;(a||s)&amp;&amp;(M(n,{code:a?A.too_big:A.too_small,minimum:s?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:&quot;array&quot;,inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&amp;&amp;n.data.length&lt;r.minLength.value&amp;&amp;(M(n,{code:A.too_small,minimum:r.minLength.value,type:&quot;array&quot;,inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&amp;&amp;n.data.length&gt;r.maxLength.value&amp;&amp;(M(n,{code:A.too_big,maximum:r.maxLength.value,type:&quot;array&quot;,inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=&gt;r.type._parseAsync(new Jn(n,a,n.path,s)))).then(a=&gt;kt.mergeArray(i,a));const o=[...n.data].map((a,s)=&gt;r.type._parseSync(new Jn(n,a,n.path,s)));return kt.mergeArray(i,o)}get element(){return this._def.type}min(t,n){return new Wa({...this._def,minLength:{value:t,message:H.toString(n)}})}max(t,n){return new Wa({...this._def,maxLength:{value:t,message:H.toString(n)}})}length(t,n){return new Wa({...this._def,exactLength:{value:t,message:H.toString(n)}})}nonempty(t){return this.min(1,t)}};bi.create=(e,t)=&gt;new bi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:q.ZodArray,...oe(t)});function Ar(e){if(e instanceof yn){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=Vn.create(Ar(i))}return new yn({...e._def,shape:()=&gt;t})}else return e instanceof bi?new bi({...e._def,type:Ar(e.element)}):e instanceof Vn?Vn.create(Ar(e.unwrap())):e instanceof zi?zi.create(Ar(e.unwrap())):e instanceof Do?Do.create(e.items.map(t=&gt;Ar(t))):e}let yn=class Rt extends de{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=fe.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==J.object){const l=this._getOrReturnCtx(t);return M(l,{code:A.invalid_type,expected:J.object,received:l.parsedType}),Y}const{status:i,ctx:r}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Kn&amp;&amp;this._def.unknownKeys===&quot;strip&quot;))for(const l in r.data)a.includes(l)||s.push(l);const u=[];for(const l of a){const m=o[l],p=r.data[l];u.push({key:{status:&quot;valid&quot;,value:l},value:m._parse(new Jn(r,p,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof Kn){const l=this._def.unknownKeys;if(l===&quot;passthrough&quot;)for(const m of s)u.push({key:{status:&quot;valid&quot;,value:m},value:{status:&quot;valid&quot;,value:r.data[m]}});else if(l===&quot;strict&quot;)s.length&gt;0&amp;&amp;(M(r,{code:A.unrecognized_keys,keys:s}),i.dirty());else if(l!==&quot;strip&quot;)throw new Error(&quot;Internal ZodObject error: invalid unknownKeys value.&quot;)}else{const l=this._def.catchall;for(const m of s){const p=r.data[m];u.push({key:{status:&quot;valid&quot;,value:m},value:l._parse(new Jn(r,p,r.path,m)),alwaysSet:m in r.data})}}return r.common.async?Promise.resolve().then(async()=&gt;{const l=[];for(const m of u){const p=await m.key,h=await m.value;l.push({key:p,value:h,alwaysSet:m.alwaysSet})}return l}).then(l=&gt;kt.mergeObjectSync(i,l)):kt.mergeObjectSync(i,u)}get shape(){return this._def.shape()}strict(t){return H.errToObj,new Rt({...this._def,unknownKeys:&quot;strict&quot;,...t!==void 0?{errorMap:(n,i)=&gt;{var o,a;const r=((a=(o=this._def).errorMap)==null?void 0:a.call(o,n,i).message)??i.defaultError;return n.code===&quot;unrecognized_keys&quot;?{message:H.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new Rt({...this._def,unknownKeys:&quot;strip&quot;})}passthrough(){return new Rt({...this._def,unknownKeys:&quot;passthrough&quot;})}extend(t){return new Rt({...this._def,shape:()=&gt;({...this._def.shape(),...t})})}merge(t){return new Rt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=&gt;({...this._def.shape(),...t._def.shape()}),typeName:q.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Rt({...this._def,catchall:t})}pick(t){const n={};for(const i of fe.objectKeys(t))t[i]&amp;&amp;this.shape[i]&amp;&amp;(n[i]=this.shape[i]);return new Rt({...this._def,shape:()=&gt;n})}omit(t){const n={};for(const i of fe.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new Rt({...this._def,shape:()=&gt;n})}deepPartial(){return Ar(this)}partial(t){const n={};for(const i of fe.objectKeys(this.shape)){const r=this.shape[i];t&amp;&amp;!t[i]?n[i]=r:n[i]=r.optional()}return new Rt({...this._def,shape:()=&gt;n})}required(t){const n={};for(const i of fe.objectKeys(this.shape))if(t&amp;&amp;!t[i])n[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof Vn;)o=o._def.innerType;n[i]=o}return new Rt({...this._def,shape:()=&gt;n})}keyof(){return _y(fe.objectKeys(this.shape))}};yn.create=(e,t)=&gt;new yn({shape:()=&gt;e,unknownKeys:&quot;strip&quot;,catchall:Kn.create(),typeName:q.ZodObject,...oe(t)});yn.strictCreate=(e,t)=&gt;new yn({shape:()=&gt;e,unknownKeys:&quot;strict&quot;,catchall:Kn.create(),typeName:q.ZodObject,...oe(t)});yn.lazycreate=(e,t)=&gt;new yn({shape:e,unknownKeys:&quot;strip&quot;,catchall:Kn.create(),typeName:q.ZodObject,...oe(t)});let xs=class extends de{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function r(o){for(const s of o)if(s.result.status===&quot;valid&quot;)return s.result;for(const s of o)if(s.result.status===&quot;dirty&quot;)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=&gt;new br(s.ctx.common.issues));return M(n,{code:A.invalid_union,unionErrors:a}),Y}if(n.common.async)return Promise.all(i.map(async o=&gt;{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(r);{let o;const a=[];for(const u of i){const l={...n,common:{...n.common,issues:[]},parent:null},m=u._parseSync({data:n.data,path:n.path,parent:l});if(m.status===&quot;valid&quot;)return m;m.status===&quot;dirty&quot;&amp;&amp;!o&amp;&amp;(o={result:m,ctx:l}),l.common.issues.length&amp;&amp;a.push(l.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(u=&gt;new br(u));return M(n,{code:A.invalid_union,unionErrors:s}),Y}}get options(){return this._def.options}};xs.create=(e,t)=&gt;new xs({options:e,typeName:q.ZodUnion,...oe(t)});function mc(e,t){const n=bn(e),i=bn(t);if(e===t)return{valid:!0,data:e};if(n===J.object&amp;&amp;i===J.object){const r=fe.objectKeys(t),o=fe.objectKeys(e).filter(s=&gt;r.indexOf(s)!==-1),a={...e,...t};for(const s of o){const u=mc(e[s],t[s]);if(!u.valid)return{valid:!1};a[s]=u.data}return{valid:!0,data:a}}else if(n===J.array&amp;&amp;i===J.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let o=0;o&lt;e.length;o++){const a=e[o],s=t[o],u=mc(a,s);if(!u.valid)return{valid:!1};r.push(u.data)}return{valid:!0,data:r}}else return n===J.date&amp;&amp;i===J.date&amp;&amp;+e==+t?{valid:!0,data:e}:{valid:!1}}let bs=class extends de{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),r=(o,a)=&gt;{if(Xp(o)||Xp(a))return Y;const s=mc(o.value,a.value);return s.valid?((Yp(o)||Yp(a))&amp;&amp;n.dirty(),{status:n.value,value:s.data}):(M(i,{code:A.invalid_intersection_types}),Y)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,a])=&gt;r(o,a)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};bs.create=(e,t,n)=&gt;new bs({left:e,right:t,typeName:q.ZodIntersection,...oe(n)});let Do=class yy extends de{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==J.array)return M(i,{code:A.invalid_type,expected:J.array,received:i.parsedType}),Y;if(i.data.length&lt;this._def.items.length)return M(i,{code:A.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:&quot;array&quot;}),Y;!this._def.rest&amp;&amp;i.data.length&gt;this._def.items.length&amp;&amp;(M(i,{code:A.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:&quot;array&quot;}),n.dirty());const o=[...i.data].map((a,s)=&gt;{const u=this._def.items[s]||this._def.rest;return u?u._parse(new Jn(i,a,i.path,s)):null}).filter(a=&gt;!!a);return i.common.async?Promise.all(o).then(a=&gt;kt.mergeArray(n,a)):kt.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new yy({...this._def,rest:t})}};Do.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 Do({items:e,typeName:q.ZodTuple,rest:null,...oe(t)})};let sh=class extends de{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==J.map)return M(i,{code:A.invalid_type,expected:J.map,received:i.parsedType}),Y;const r=this._def.keyType,o=this._def.valueType,a=[...i.data.entries()].map(([s,u],l)=&gt;({key:r._parse(new Jn(i,s,i.path,[l,&quot;key&quot;])),value:o._parse(new Jn(i,u,i.path,[l,&quot;value&quot;]))}));if(i.common.async){const s=new Map;return Promise.resolve().then(async()=&gt;{for(const u of a){const l=await u.key,m=await u.value;if(l.status===&quot;aborted&quot;||m.status===&quot;aborted&quot;)return Y;(l.status===&quot;dirty&quot;||m.status===&quot;dirty&quot;)&amp;&amp;n.dirty(),s.set(l.value,m.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const u of a){const l=u.key,m=u.value;if(l.status===&quot;aborted&quot;||m.status===&quot;aborted&quot;)return Y;(l.status===&quot;dirty&quot;||m.status===&quot;dirty&quot;)&amp;&amp;n.dirty(),s.set(l.value,m.value)}return{status:n.value,value:s}}}};sh.create=(e,t,n)=&gt;new sh({valueType:t,keyType:e,typeName:q.ZodMap,...oe(n)});let uh=class pc extends de{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==J.set)return M(i,{code:A.invalid_type,expected:J.set,received:i.parsedType}),Y;const r=this._def;r.minSize!==null&amp;&amp;i.data.size&lt;r.minSize.value&amp;&amp;(M(i,{code:A.too_small,minimum:r.minSize.value,type:&quot;set&quot;,inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&amp;&amp;i.data.size&gt;r.maxSize.value&amp;&amp;(M(i,{code:A.too_big,maximum:r.maxSize.value,type:&quot;set&quot;,inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const o=this._def.valueType;function a(u){const l=new Set;for(const m of u){if(m.status===&quot;aborted&quot;)return Y;m.status===&quot;dirty&quot;&amp;&amp;n.dirty(),l.add(m.value)}return{status:n.value,value:l}}const s=[...i.data.values()].map((u,l)=&gt;o._parse(new Jn(i,u,i.path,l)));return i.common.async?Promise.all(s).then(u=&gt;a(u)):a(s)}min(t,n){return new pc({...this._def,minSize:{value:t,message:H.toString(n)}})}max(t,n){return new pc({...this._def,maxSize:{value:t,message:H.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};uh.create=(e,t)=&gt;new uh({valueType:e,minSize:null,maxSize:null,typeName:q.ZodSet,...oe(t)});let lh=class extends de{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})}};lh.create=(e,t)=&gt;new lh({getter:e,typeName:q.ZodLazy,...oe(t)});let ch=class extends de{_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}),Y}return{status:&quot;valid&quot;,value:t.data}}get value(){return this._def.value}};ch.create=(e,t)=&gt;new ch({value:e,typeName:q.ZodLiteral,...oe(t)});function _y(e,t){return new Ud({values:e,typeName:q.ZodEnum,...oe(t)})}let Ud=class hc extends de{_parse(t){if(typeof t.data!=&quot;string&quot;){const n=this._getOrReturnCtx(t),i=this._def.values;return M(n,{expected:fe.joinValues(i),received:n.parsedType,code:A.invalid_type}),Y}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return M(n,{received:n.data,code:A.invalid_enum_value,options:i}),Y}return At(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 hc.create(t,{...this._def,...n})}exclude(t,n=this._def){return hc.create(this.options.filter(i=&gt;!t.includes(i)),{...this._def,...n})}};Ud.create=_y;class dh extends de{_parse(t){const n=fe.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==J.string&amp;&amp;i.parsedType!==J.number){const r=fe.objectValues(n);return M(i,{expected:fe.joinValues(r),received:i.parsedType,code:A.invalid_type}),Y}if(this._cache||(this._cache=new Set(fe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const r=fe.objectValues(n);return M(i,{received:i.data,code:A.invalid_enum_value,options:r}),Y}return At(t.data)}get enum(){return this._def.values}}dh.create=(e,t)=&gt;new dh({values:e,typeName:q.ZodNativeEnum,...oe(t)});let Is=class extends de{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==J.promise&amp;&amp;n.common.async===!1)return M(n,{code:A.invalid_type,expected:J.promise,received:n.parsedType}),Y;const i=n.parsedType===J.promise?n.data:Promise.resolve(n.data);return At(i.then(r=&gt;this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Is.create=(e,t)=&gt;new Is({type:e,typeName:q.ZodPromise,...oe(t)});class Ii extends de{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,o={addIssue:a=&gt;{M(i,a),a.fatal?n.abort():n.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),r.type===&quot;preprocess&quot;){const a=r.transform(i.data,o);if(i.common.async)return Promise.resolve(a).then(async s=&gt;{if(n.value===&quot;aborted&quot;)return Y;const u=await this._def.schema._parseAsync({data:s,path:i.path,parent:i});return u.status===&quot;aborted&quot;?Y:u.status===&quot;dirty&quot;||n.value===&quot;dirty&quot;?eo(u.value):u});{if(n.value===&quot;aborted&quot;)return Y;const s=this._def.schema._parseSync({data:a,path:i.path,parent:i});return s.status===&quot;aborted&quot;?Y:s.status===&quot;dirty&quot;||n.value===&quot;dirty&quot;?eo(s.value):s}}if(r.type===&quot;refinement&quot;){const a=s=&gt;{const u=r.refinement(s,o);if(i.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error(&quot;Async refinement encountered during synchronous parse operation. Use .parseAsync instead.&quot;);return s};if(i.common.async===!1){const s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return s.status===&quot;aborted&quot;?Y:(s.status===&quot;dirty&quot;&amp;&amp;n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=&gt;s.status===&quot;aborted&quot;?Y:(s.status===&quot;dirty&quot;&amp;&amp;n.dirty(),a(s.value).then(()=&gt;({status:n.value,value:s.value}))))}if(r.type===&quot;transform&quot;)if(i.common.async===!1){const a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!xi(a))return Y;const s=r.transform(a.value,o);if(s instanceof Promise)throw new Error(&quot;Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.&quot;);return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=&gt;xi(a)?Promise.resolve(r.transform(a.value,o)).then(s=&gt;({status:n.value,value:s})):Y);fe.assertNever(r)}}Ii.create=(e,t,n)=&gt;new Ii({schema:e,typeName:q.ZodEffects,effect:t,...oe(n)});Ii.createWithPreprocess=(e,t,n)=&gt;new Ii({schema:t,effect:{type:&quot;preprocess&quot;,transform:e},typeName:q.ZodEffects,...oe(n)});let Vn=class extends de{_parse(t){return this._getType(t)===J.undefined?At(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Vn.create=(e,t)=&gt;new Vn({innerType:e,typeName:q.ZodOptional,...oe(t)});let zi=class extends de{_parse(t){return this._getType(t)===J.null?At(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};zi.create=(e,t)=&gt;new zi({innerType:e,typeName:q.ZodNullable,...oe(t)});let vc=class extends de{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===J.undefined&amp;&amp;(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};vc.create=(e,t)=&gt;new vc({innerType:e,typeName:q.ZodDefault,defaultValue:typeof t.default==&quot;function&quot;?t.default:()=&gt;t.default,...oe(t)});let gc=class extends de{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ss(r)?r.then(o=&gt;({status:&quot;valid&quot;,value:o.status===&quot;valid&quot;?o.value:this._def.catchValue({get error(){return new br(i.common.issues)},input:i.data})})):{status:&quot;valid&quot;,value:r.status===&quot;valid&quot;?r.value:this._def.catchValue({get error(){return new br(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};gc.create=(e,t)=&gt;new gc({innerType:e,typeName:q.ZodCatch,catchValue:typeof t.catch==&quot;function&quot;?t.catch:()=&gt;t.catch,...oe(t)});let fh=class extends de{_parse(t){if(this._getType(t)!==J.nan){const i=this._getOrReturnCtx(t);return M(i,{code:A.invalid_type,expected:J.nan,received:i.parsedType}),Y}return{status:&quot;valid&quot;,value:t.data}}};fh.create=e=&gt;new fh({typeName:q.ZodNaN,...oe(e)});class fb extends de{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class Cd extends de{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=&gt;{const o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status===&quot;aborted&quot;?Y:o.status===&quot;dirty&quot;?(n.dirty(),eo(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{const r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status===&quot;aborted&quot;?Y:r.status===&quot;dirty&quot;?(n.dirty(),{status:&quot;dirty&quot;,value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new Cd({in:t,out:n,typeName:q.ZodPipeline})}}let yc=class extends de{_parse(t){const n=this._def.innerType._parse(t),i=r=&gt;(xi(r)&amp;&amp;(r.value=Object.freeze(r.value)),r);return Ss(n)?n.then(r=&gt;i(r)):i(n)}unwrap(){return this._def.innerType}};yc.create=(e,t)=&gt;new yc({innerType:e,typeName:q.ZodReadonly,...oe(t)});var q;(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;})(q||(q={}));const mt=sc.create,mb=uc.create,pb=dc.create,Ai=fc.create;Kn.create;const Ad=bi.create,Ze=yn.create,wy=xs.create;bs.create;Do.create;const $y=Ud.create;Is.create;Vn.create;zi.create;const ky=Object.freeze({status:&quot;aborted&quot;});function w(e,t,n){function i(s,u){var l;Object.defineProperty(s,&quot;_zod&quot;,{value:s._zod??{},enumerable:!1}),(l=s._zod).traits??(l.traits=new Set),s._zod.traits.add(e),t(s,u);for(const m in a.prototype)m in s||Object.defineProperty(s,m,{value:a.prototype[m].bind(s)});s._zod.constr=a,s._zod.def=u}const r=(n==null?void 0:n.Parent)??Object;class o extends r{}Object.defineProperty(o,&quot;name&quot;,{value:e});function a(s){var u;const l=n!=null&amp;&amp;n.Parent?new o:this;i(l,s),(u=l._zod).deferred??(u.deferred=[]);for(const m of l._zod.deferred)m();return l}return Object.defineProperty(a,&quot;init&quot;,{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=&gt;{var u,l;return n!=null&amp;&amp;n.Parent&amp;&amp;s instanceof n.Parent?!0:(l=(u=s==null?void 0:s._zod)==null?void 0:u.traits)==null?void 0:l.has(e)}}),Object.defineProperty(a,&quot;name&quot;,{value:e}),a}const Sy=Symbol(&quot;zod_brand&quot;);class Oi extends Error{constructor(){super(&quot;Encountered Promise during synchronous parse. Use .parseAsync() instead.&quot;)}}const zs={};function rt(e){return e&amp;&amp;Object.assign(zs,e),zs}function hb(e){return e}function vb(e){return e}function gb(e){}function yb(e){throw new Error}function _b(e){}function Dd(e){const t=Object.values(e).filter(i=&gt;typeof i==&quot;number&quot;);return Object.entries(e).filter(([i,r])=&gt;t.indexOf(+i)===-1).map(([i,r])=&gt;r)}function Z(e,t=&quot;|&quot;){return e.map(n=&gt;re(n)).join(t)}function xy(e,t){return typeof t==&quot;bigint&quot;?t.toString():t}function iu(e){return{get value(){{const t=e();return Object.defineProperty(this,&quot;value&quot;,{value:t}),t}}}}function Nr(e){return e==null}function ou(e){const t=e.startsWith(&quot;^&quot;)?1:0,n=e.endsWith(&quot;$&quot;)?e.length-1:e.length;return e.slice(t,n)}function by(e,t){const n=(e.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,i=(t.toString().split(&quot;.&quot;)[1]||&quot;&quot;).length,r=n&gt;i?n:i,o=Number.parseInt(e.toFixed(r).replace(&quot;.&quot;,&quot;&quot;)),a=Number.parseInt(t.toFixed(r).replace(&quot;.&quot;,&quot;&quot;));return o%a/10**r}function pe(e,t,n){Object.defineProperty(e,t,{get(){{const i=n();return e[t]=i,i}},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Di(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function wb(e,t){return t?t.reduce((n,i)=&gt;n==null?void 0:n[i],e):e}function $b(e){const t=Object.keys(e),n=t.map(i=&gt;e[i]);return Promise.all(n).then(i=&gt;{const r={};for(let o=0;o&lt;t.length;o++)r[t[o]]=i[o];return r})}function kb(e=10){const t=&quot;abcdefghijklmnopqrstuvwxyz&quot;;let n=&quot;&quot;;for(let i=0;i&lt;e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function Dr(e){return JSON.stringify(e)}const Rd=Error.captureStackTrace?Error.captureStackTrace:(...e)=&gt;{};function Ro(e){return typeof e==&quot;object&quot;&amp;&amp;e!==null&amp;&amp;!Array.isArray(e)}const Iy=iu(()=&gt;{var e;if(typeof navigator&lt;&quot;u&quot;&amp;&amp;((e=navigator==null?void 0:navigator.userAgent)!=null&amp;&amp;e.includes(&quot;Cloudflare&quot;)))return!1;try{const t=Function;return new t(&quot;&quot;),!0}catch{return!1}});function Zo(e){if(Ro(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Ro(n)===!1||Object.prototype.hasOwnProperty.call(n,&quot;isPrototypeOf&quot;)===!1)}function Sb(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;t++;return t}const xb=e=&gt;{const t=typeof e;switch(t){case&quot;undefined&quot;:return&quot;undefined&quot;;case&quot;string&quot;:return&quot;string&quot;;case&quot;number&quot;:return Number.isNaN(e)?&quot;nan&quot;:&quot;number&quot;;case&quot;boolean&quot;:return&quot;boolean&quot;;case&quot;function&quot;:return&quot;function&quot;;case&quot;bigint&quot;:return&quot;bigint&quot;;case&quot;symbol&quot;:return&quot;symbol&quot;;case&quot;object&quot;:return Array.isArray(e)?&quot;array&quot;:e===null?&quot;null&quot;:e.then&amp;&amp;typeof e.then==&quot;function&quot;&amp;&amp;e.catch&amp;&amp;typeof e.catch==&quot;function&quot;?&quot;promise&quot;:typeof Map&lt;&quot;u&quot;&amp;&amp;e instanceof Map?&quot;map&quot;:typeof Set&lt;&quot;u&quot;&amp;&amp;e instanceof Set?&quot;set&quot;:typeof Date&lt;&quot;u&quot;&amp;&amp;e instanceof Date?&quot;date&quot;:typeof File&lt;&quot;u&quot;&amp;&amp;e instanceof File?&quot;file&quot;:&quot;object&quot;;default:throw new Error(`Unknown data type: ${t}`)}},Os=new Set([&quot;string&quot;,&quot;number&quot;,&quot;symbol&quot;]),zy=new Set([&quot;string&quot;,&quot;number&quot;,&quot;bigint&quot;,&quot;boolean&quot;,&quot;symbol&quot;,&quot;undefined&quot;]);function jr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,&quot;\\$&amp;&quot;)}function rn(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n!=null&amp;&amp;n.parent)&amp;&amp;(i._zod.parent=e),i}function N(e){const t=e;if(!t)return{};if(typeof t==&quot;string&quot;)return{error:()=&gt;t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error(&quot;Cannot specify both `message` and `error` params&quot;);t.error=t.message}return delete t.message,typeof t.error==&quot;string&quot;?{...t,error:()=&gt;t.error}:t}function bb(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function re(e){return typeof e==&quot;bigint&quot;?e.toString()+&quot;n&quot;:typeof e==&quot;string&quot;?`&quot;${e}&quot;`:`${e}`}function Oy(e){return Object.keys(e).filter(t=&gt;e[t]._zod.optin===&quot;optional&quot;&amp;&amp;e[t]._zod.optout===&quot;optional&quot;)}const Ey={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ny={int64:[BigInt(&quot;-9223372036854775808&quot;),BigInt(&quot;9223372036854775807&quot;)],uint64:[BigInt(0),BigInt(&quot;18446744073709551615&quot;)]};function jy(e,t){const n={},i=e._zod.def;for(const r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: &quot;${r}&quot;`);t[r]&amp;&amp;(n[r]=i.shape[r])}return rn(e,{...e._zod.def,shape:n,checks:[]})}function Ty(e,t){const n={...e._zod.def.shape},i=e._zod.def;for(const r in t){if(!(r in i.shape))throw new Error(`Unrecognized key: &quot;${r}&quot;`);t[r]&amp;&amp;delete n[r]}return rn(e,{...e._zod.def,shape:n,checks:[]})}function Py(e,t){if(!Zo(t))throw new Error(&quot;Invalid input to extend: expected a plain object&quot;);const n={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return Di(this,&quot;shape&quot;,i),i},checks:[]};return rn(e,n)}function Uy(e,t){return rn(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Di(this,&quot;shape&quot;,n),n},catchall:t._zod.def.catchall,checks:[]})}function Cy(e,t,n){const i=t._zod.def.shape,r={...i};if(n)for(const o in n){if(!(o in i))throw new Error(`Unrecognized key: &quot;${o}&quot;`);n[o]&amp;&amp;(r[o]=e?new e({type:&quot;optional&quot;,innerType:i[o]}):i[o])}else for(const o in i)r[o]=e?new e({type:&quot;optional&quot;,innerType:i[o]}):i[o];return rn(t,{...t._zod.def,shape:r,checks:[]})}function Ay(e,t,n){const i=t._zod.def.shape,r={...i};if(n)for(const o in n){if(!(o in r))throw new Error(`Unrecognized key: &quot;${o}&quot;`);n[o]&amp;&amp;(r[o]=new e({type:&quot;nonoptional&quot;,innerType:i[o]}))}else for(const o in i)r[o]=new e({type:&quot;nonoptional&quot;,innerType:i[o]});return rn(t,{...t._zod.def,shape:r,checks:[]})}function si(e,t=0){var n;for(let i=t;i&lt;e.issues.length;i++)if(((n=e.issues[i])==null?void 0:n.continue)!==!0)return!0;return!1}function jt(e,t){return t.map(n=&gt;{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function no(e){return typeof e==&quot;string&quot;?e:e==null?void 0:e.message}function Kt(e,t,n){var r,o,a,s,u,l;const i={...e,path:e.path??[]};if(!e.message){const m=no((a=(o=(r=e.inst)==null?void 0:r._zod.def)==null?void 0:o.error)==null?void 0:a.call(o,e))??no((s=t==null?void 0:t.error)==null?void 0:s.call(t,e))??no((u=n.customError)==null?void 0:u.call(n,e))??no((l=n.localeError)==null?void 0:l.call(n,e))??&quot;Invalid input&quot;;i.message=m}return delete i.inst,delete i.continue,t!=null&amp;&amp;t.reportInput||delete i.input,i}function au(e){return e instanceof Set?&quot;set&quot;:e instanceof Map?&quot;map&quot;:e instanceof File?&quot;file&quot;:&quot;unknown&quot;}function su(e){return Array.isArray(e)?&quot;array&quot;:typeof e==&quot;string&quot;?&quot;string&quot;:&quot;unknown&quot;}function Ei(...e){const[t,n,i]=e;return typeof t==&quot;string&quot;?{message:t,code:&quot;custom&quot;,input:n,inst:i}:{...t}}function Ib(e){return Object.entries(e).filter(([t,n])=&gt;Number.isNaN(Number.parseInt(t,10))).map(t=&gt;t[1])}class zb{constructor(...t){}}const Ob=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:Ny,Class:zb,NUMBER_FORMAT_RANGES:Ey,aborted:si,allowsEval:Iy,assert:_b,assertEqual:hb,assertIs:gb,assertNever:yb,assertNotEqual:vb,assignProp:Di,cached:iu,captureStackTrace:Rd,cleanEnum:Ib,cleanRegex:ou,clone:rn,createTransparentProxy:bb,defineLazy:pe,esc:Dr,escapeRegex:jr,extend:Py,finalizeIssue:Kt,floatSafeRemainder:by,getElementAtPath:wb,getEnumValues:Dd,getLengthableOrigin:su,getParsedType:xb,getSizableOrigin:au,isObject:Ro,isPlainObject:Zo,issue:Ei,joinValues:Z,jsonStringifyReplacer:xy,merge:Uy,normalizeParams:N,nullish:Nr,numKeys:Sb,omit:Ty,optionalKeys:Oy,partial:Cy,pick:jy,prefixIssues:jt,primitiveTypes:zy,promiseAllObject:$b,propertyKeyTypes:Os,randomString:kb,required:Ay,stringifyPrimitive:re,unwrapMessage:no},Symbol.toStringTag,{value:&quot;Module&quot;})),Dy=(e,t)=&gt;{e.name=&quot;$ZodError&quot;,Object.defineProperty(e,&quot;_zod&quot;,{value:e._zod,enumerable:!1}),Object.defineProperty(e,&quot;issues&quot;,{value:t,enumerable:!1}),Object.defineProperty(e,&quot;message&quot;,{get(){return JSON.stringify(t,xy,2)},enumerable:!0}),Object.defineProperty(e,&quot;toString&quot;,{value:()=&gt;e.message,enumerable:!1})},Zd=w(&quot;$ZodError&quot;,Dy),ea=w(&quot;$ZodError&quot;,Dy,{Parent:Error});function Ld(e,t=n=&gt;n.message){const n={},i=[];for(const r of e.issues)r.path.length&gt;0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function Md(e,t){const n=t||function(o){return o.message},i={_errors:[]},r=o=&gt;{for(const a of o.issues)if(a.code===&quot;invalid_union&quot;&amp;&amp;a.errors.length)a.errors.map(s=&gt;r({issues:s}));else if(a.code===&quot;invalid_key&quot;)r({issues:a.issues});else if(a.code===&quot;invalid_element&quot;)r({issues:a.issues});else if(a.path.length===0)i._errors.push(n(a));else{let s=i,u=0;for(;u&lt;a.path.length;){const l=a.path[u];u===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(a))):s[l]=s[l]||{_errors:[]},s=s[l],u++}}};return r(e),i}function Ry(e,t){const n=t||function(o){return o.message},i={errors:[]},r=(o,a=[])=&gt;{var s,u;for(const l of o.issues)if(l.code===&quot;invalid_union&quot;&amp;&amp;l.errors.length)l.errors.map(m=&gt;r({issues:m},l.path));else if(l.code===&quot;invalid_key&quot;)r({issues:l.issues},l.path);else if(l.code===&quot;invalid_element&quot;)r({issues:l.issues},l.path);else{const m=[...a,...l.path];if(m.length===0){i.errors.push(n(l));continue}let p=i,h=0;for(;h&lt;m.length;){const y=m[h],g=h===m.length-1;typeof y==&quot;string&quot;?(p.properties??(p.properties={}),(s=p.properties)[y]??(s[y]={errors:[]}),p=p.properties[y]):(p.items??(p.items=[]),(u=p.items)[y]??(u[y]={errors:[]}),p=p.items[y]),g&amp;&amp;p.errors.push(n(l)),h++}}};return r(e),i}function Zy(e){const t=[];for(const n of e)typeof n==&quot;number&quot;?t.push(`[${n}]`):typeof n==&quot;symbol&quot;?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&amp;&amp;t.push(&quot;.&quot;),t.push(n));return t.join(&quot;&quot;)}function Ly(e){var i;const t=[],n=[...e.issues].sort((r,o)=&gt;r.path.length-o.path.length);for(const r of n)t.push(`✖ ${r.message}`),(i=r.path)!=null&amp;&amp;i.length&amp;&amp;t.push(`  → at ${Zy(r.path)}`);return t.join(`
`)}const Fd=e=&gt;(t,n,i,r)=&gt;{const o=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Oi;if(a.issues.length){const s=new((r==null?void 0:r.Err)??e)(a.issues.map(u=&gt;Kt(u,o,rt())));throw Rd(s,r==null?void 0:r.callee),s}return a.value},_c=Fd(ea),Vd=e=&gt;async(t,n,i,r)=&gt;{const o=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&amp;&amp;(a=await a),a.issues.length){const s=new((r==null?void 0:r.Err)??e)(a.issues.map(u=&gt;Kt(u,o,rt())));throw Rd(s,r==null?void 0:r.callee),s}return a.value},wc=Vd(ea),Bd=e=&gt;(t,n,i)=&gt;{const r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Oi;return o.issues.length?{success:!1,error:new(e??Zd)(o.issues.map(a=&gt;Kt(a,r,rt())))}:{success:!0,data:o.value}},My=Bd(ea),Wd=e=&gt;async(t,n,i)=&gt;{const r=i?Object.assign(i,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&amp;&amp;(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=&gt;Kt(a,r,rt())))}:{success:!0,data:o.value}},Fy=Wd(ea),Vy=/^[cC][^\s-]{8,}$/,By=/^[0-9a-z]+$/,Wy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Jy=/^[0-9a-vA-V]{20}$/,Ky=/^[A-Za-z0-9]{27}$/,Hy=/^[a-zA-Z0-9_-]{21}$/,Gy=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Eb=/^[-+]?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)?)??$/,Qy=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ni=e=&gt;e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,Nb=Ni(4),jb=Ni(6),Tb=Ni(7),Xy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_&#39;+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Pb=/^[a-zA-Z0-9.!#$%&amp;&#39;*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ub=/^(([^&lt;&gt;()\[\]\\.,;:\s@&quot;]+(\.[^&lt;&gt;()\[\]\\.,;:\s@&quot;]+)*)|(&quot;.+&quot;))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Cb=/^[^\s@&quot;]{1,64}@[^\s@]{1,255}$/u,Ab=/^[a-zA-Z0-9.!#$%&amp;&#39;*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Yy=&quot;^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$&quot;;function qy(){return new RegExp(Yy,&quot;u&quot;)}const e_=/^(?:(?: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])$/,t_=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,n_=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,r_=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,i_=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Jd=/^[A-Za-z0-9_-]*$/,o_=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Db=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,a_=/^\+(?:[0-9]){6,14}[0-9]$/,s_=&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;,u_=new RegExp(`^${s_}$`);function l_(e){const t=&quot;(?:[01]\\d|2[0-3]):[0-5]\\d&quot;;return typeof e.precision==&quot;number&quot;?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function c_(e){return new RegExp(`^${l_(e)}$`)}function d_(e){const t=l_({precision:e.precision}),n=[&quot;Z&quot;];e.local&amp;&amp;n.push(&quot;&quot;),e.offset&amp;&amp;n.push(&quot;([+-]\\d{2}:\\d{2})&quot;);const i=`${t}(?:${n.join(&quot;|&quot;)})`;return new RegExp(`^${s_}T(?:${i})$`)}const f_=e=&gt;{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??&quot;&quot;}}`:&quot;[\\s\\S]*&quot;;return new RegExp(`^${t}$`)},m_=/^\d+n?$/,p_=/^\d+$/,h_=/^-?\d+(?:\.\d+)?/i,v_=/true|false/i,g_=/null/i,y_=/undefined/i,__=/^[^A-Z]*$/,w_=/^[^a-z]*$/,$_=Object.freeze(Object.defineProperty({__proto__:null,_emoji:Yy,base64:i_,base64url:Jd,bigint:m_,boolean:v_,browserEmail:Ab,cidrv4:n_,cidrv6:r_,cuid:Vy,cuid2:By,date:u_,datetime:d_,domain:Db,duration:Gy,e164:a_,email:Xy,emoji:qy,extendedDuration:Eb,guid:Qy,hostname:o_,html5Email:Pb,integer:p_,ipv4:e_,ipv6:t_,ksuid:Ky,lowercase:__,nanoid:Hy,null:g_,number:h_,rfc5322Email:Ub,string:f_,time:c_,ulid:Wy,undefined:y_,unicodeEmail:Cb,uppercase:w_,uuid:Ni,uuid4:Nb,uuid6:jb,uuid7:Tb,xid:Jy},Symbol.toStringTag,{value:&quot;Module&quot;})),Pe=w(&quot;$ZodCheck&quot;,(e,t)=&gt;{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),k_={number:&quot;number&quot;,bigint:&quot;bigint&quot;,object:&quot;date&quot;},Kd=w(&quot;$ZodCheckLessThan&quot;,(e,t)=&gt;{Pe.init(e,t);const n=k_[typeof t.value];e._zod.onattach.push(i=&gt;{const r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value&lt;o&amp;&amp;(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=&gt;{(t.inclusive?i.value&lt;=t.value:i.value&lt;t.value)||i.issues.push({origin:n,code:&quot;too_big&quot;,maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Hd=w(&quot;$ZodCheckGreaterThan&quot;,(e,t)=&gt;{Pe.init(e,t);const n=k_[typeof t.value];e._zod.onattach.push(i=&gt;{const r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value&gt;o&amp;&amp;(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=&gt;{(t.inclusive?i.value&gt;=t.value:i.value&gt;t.value)||i.issues.push({origin:n,code:&quot;too_small&quot;,minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),S_=w(&quot;$ZodCheckMultipleOf&quot;,(e,t)=&gt;{Pe.init(e,t),e._zod.onattach.push(n=&gt;{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=&gt;{if(typeof n.value!=typeof t.value)throw new Error(&quot;Cannot mix number and bigint in multiple_of check.&quot;);(typeof n.value==&quot;bigint&quot;?n.value%t.value===BigInt(0):by(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:&quot;not_multiple_of&quot;,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),x_=w(&quot;$ZodCheckNumberFormat&quot;,(e,t)=&gt;{var a;Pe.init(e,t),t.format=t.format||&quot;float64&quot;;const n=(a=t.format)==null?void 0:a.includes(&quot;int&quot;),i=n?&quot;int&quot;:&quot;number&quot;,[r,o]=Ey[t.format];e._zod.onattach.push(s=&gt;{const u=s._zod.bag;u.format=t.format,u.minimum=r,u.maximum=o,n&amp;&amp;(u.pattern=p_)}),e._zod.check=s=&gt;{const u=s.value;if(n){if(!Number.isInteger(u)){s.issues.push({expected:i,format:t.format,code:&quot;invalid_type&quot;,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u&gt;0?s.issues.push({input:u,code:&quot;too_big&quot;,maximum:Number.MAX_SAFE_INTEGER,note:&quot;Integers must be within the safe integer range.&quot;,inst:e,origin:i,continue:!t.abort}):s.issues.push({input:u,code:&quot;too_small&quot;,minimum:Number.MIN_SAFE_INTEGER,note:&quot;Integers must be within the safe integer range.&quot;,inst:e,origin:i,continue:!t.abort});return}}u&lt;r&amp;&amp;s.issues.push({origin:&quot;number&quot;,input:u,code:&quot;too_small&quot;,minimum:r,inclusive:!0,inst:e,continue:!t.abort}),u&gt;o&amp;&amp;s.issues.push({origin:&quot;number&quot;,input:u,code:&quot;too_big&quot;,maximum:o,inst:e})}}),b_=w(&quot;$ZodCheckBigIntFormat&quot;,(e,t)=&gt;{Pe.init(e,t);const[n,i]=Ny[t.format];e._zod.onattach.push(r=&gt;{const o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=&gt;{const o=r.value;o&lt;n&amp;&amp;r.issues.push({origin:&quot;bigint&quot;,input:o,code:&quot;too_small&quot;,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o&gt;i&amp;&amp;r.issues.push({origin:&quot;bigint&quot;,input:o,code:&quot;too_big&quot;,maximum:i,inst:e})}}),I_=w(&quot;$ZodCheckMaxSize&quot;,(e,t)=&gt;{var n;Pe.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!Nr(r)&amp;&amp;r.size!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum&lt;r&amp;&amp;(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=&gt;{const r=i.value;r.size&lt;=t.maximum||i.issues.push({origin:au(r),code:&quot;too_big&quot;,maximum:t.maximum,input:r,inst:e,continue:!t.abort})}}),z_=w(&quot;$ZodCheckMinSize&quot;,(e,t)=&gt;{var n;Pe.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!Nr(r)&amp;&amp;r.size!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum&gt;r&amp;&amp;(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=&gt;{const r=i.value;r.size&gt;=t.minimum||i.issues.push({origin:au(r),code:&quot;too_small&quot;,minimum:t.minimum,input:r,inst:e,continue:!t.abort})}}),O_=w(&quot;$ZodCheckSizeEquals&quot;,(e,t)=&gt;{var n;Pe.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!Nr(r)&amp;&amp;r.size!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=i=&gt;{const r=i.value,o=r.size;if(o===t.size)return;const a=o&gt;t.size;i.issues.push({origin:au(r),...a?{code:&quot;too_big&quot;,maximum:t.size}:{code:&quot;too_small&quot;,minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),E_=w(&quot;$ZodCheckMaxLength&quot;,(e,t)=&gt;{var n;Pe.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!Nr(r)&amp;&amp;r.length!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum&lt;r&amp;&amp;(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=&gt;{const r=i.value;if(r.length&lt;=t.maximum)return;const a=su(r);i.issues.push({origin:a,code:&quot;too_big&quot;,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),N_=w(&quot;$ZodCheckMinLength&quot;,(e,t)=&gt;{var n;Pe.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!Nr(r)&amp;&amp;r.length!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum&gt;r&amp;&amp;(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=&gt;{const r=i.value;if(r.length&gt;=t.minimum)return;const a=su(r);i.issues.push({origin:a,code:&quot;too_small&quot;,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),j_=w(&quot;$ZodCheckLengthEquals&quot;,(e,t)=&gt;{var n;Pe.init(e,t),(n=e._zod.def).when??(n.when=i=&gt;{const r=i.value;return!Nr(r)&amp;&amp;r.length!==void 0}),e._zod.onattach.push(i=&gt;{const r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=&gt;{const r=i.value,o=r.length;if(o===t.length)return;const a=su(r),s=o&gt;t.length;i.issues.push({origin:a,...s?{code:&quot;too_big&quot;,maximum:t.length}:{code:&quot;too_small&quot;,minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),ta=w(&quot;$ZodCheckStringFormat&quot;,(e,t)=&gt;{var n,i;Pe.init(e,t),e._zod.onattach.push(r=&gt;{const o=r._zod.bag;o.format=t.format,t.pattern&amp;&amp;(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=&gt;{t.pattern.lastIndex=0,!t.pattern.test(r.value)&amp;&amp;r.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=&gt;{})}),T_=w(&quot;$ZodCheckRegex&quot;,(e,t)=&gt;{ta.init(e,t),e._zod.check=n=&gt;{t.pattern.lastIndex=0,!t.pattern.test(n.value)&amp;&amp;n.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;regex&quot;,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),P_=w(&quot;$ZodCheckLowerCase&quot;,(e,t)=&gt;{t.pattern??(t.pattern=__),ta.init(e,t)}),U_=w(&quot;$ZodCheckUpperCase&quot;,(e,t)=&gt;{t.pattern??(t.pattern=w_),ta.init(e,t)}),C_=w(&quot;$ZodCheckIncludes&quot;,(e,t)=&gt;{Pe.init(e,t);const n=jr(t.includes),i=new RegExp(typeof t.position==&quot;number&quot;?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=&gt;{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=&gt;{r.value.includes(t.includes,t.position)||r.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;includes&quot;,includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),A_=w(&quot;$ZodCheckStartsWith&quot;,(e,t)=&gt;{Pe.init(e,t);const n=new RegExp(`^${jr(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=&gt;{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=&gt;{i.value.startsWith(t.prefix)||i.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;starts_with&quot;,prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),D_=w(&quot;$ZodCheckEndsWith&quot;,(e,t)=&gt;{Pe.init(e,t);const n=new RegExp(`.*${jr(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=&gt;{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=&gt;{i.value.endsWith(t.suffix)||i.issues.push({origin:&quot;string&quot;,code:&quot;invalid_format&quot;,format:&quot;ends_with&quot;,suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function mh(e,t,n){e.issues.length&amp;&amp;t.issues.push(...jt(n,e.issues))}const R_=w(&quot;$ZodCheckProperty&quot;,(e,t)=&gt;{Pe.init(e,t),e._zod.check=n=&gt;{const i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=&gt;mh(r,n,t.property));mh(i,n,t.property)}}),Z_=w(&quot;$ZodCheckMimeType&quot;,(e,t)=&gt;{Pe.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(i=&gt;{i._zod.bag.mime=t.mime}),e._zod.check=i=&gt;{n.has(i.value.type)||i.issues.push({code:&quot;invalid_value&quot;,values:t.mime,input:i.value.type,inst:e})}}),L_=w(&quot;$ZodCheckOverwrite&quot;,(e,t)=&gt;{Pe.init(e,t),e._zod.check=n=&gt;{n.value=t.tx(n.value)}});class M_{constructor(t=[]){this.content=[],this.indent=0,this&amp;&amp;(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t==&quot;function&quot;){t(this,{execution:&quot;sync&quot;}),t(this,{execution:&quot;async&quot;});return}const i=t.split(`
`).filter(a=&gt;a),r=Math.min(...i.map(a=&gt;a.length-a.trimStart().length)),o=i.map(a=&gt;a.slice(r)).map(a=&gt;&quot; &quot;.repeat(this.indent*2)+a);for(const a of o)this.content.push(a)}compile(){const t=Function,n=this==null?void 0:this.args,r=[...((this==null?void 0:this.content)??[&quot;&quot;]).map(o=&gt;`  ${o}`)];return new t(...n,r.join(`
`))}}const F_={major:4,minor:0,patch:0},te=w(&quot;$ZodType&quot;,(e,t)=&gt;{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=F_;const i=[...e._zod.def.checks??[]];e._zod.traits.has(&quot;$ZodCheck&quot;)&amp;&amp;i.unshift(e);for(const o of i)for(const a of o._zod.onattach)a(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=&gt;{e._zod.run=e._zod.parse});else{const o=(a,s,u)=&gt;{let l=si(a),m;for(const p of s){if(p._zod.def.when){if(!p._zod.def.when(a))continue}else if(l)continue;const h=a.issues.length,y=p._zod.check(a);if(y instanceof Promise&amp;&amp;(u==null?void 0:u.async)===!1)throw new Oi;if(m||y instanceof Promise)m=(m??Promise.resolve()).then(async()=&gt;{await y,a.issues.length!==h&amp;&amp;(l||(l=si(a,h)))});else{if(a.issues.length===h)continue;l||(l=si(a,h))}}return m?m.then(()=&gt;a):a};e._zod.run=(a,s)=&gt;{const u=e._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new Oi;return u.then(l=&gt;o(l,i,s))}return o(u,i,s)}}e[&quot;~standard&quot;]={validate:o=&gt;{var a;try{const s=My(e,o);return s.success?{value:s.data}:{issues:(a=s.error)==null?void 0:a.issues}}catch{return Fy(e,o).then(u=&gt;{var l;return u.success?{value:u.data}:{issues:(l=u.error)==null?void 0:l.issues}})}},vendor:&quot;zod&quot;,version:1}}),na=w(&quot;$ZodString&quot;,(e,t)=&gt;{var n;te.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??f_(e._zod.bag),e._zod.parse=(i,r)=&gt;{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value==&quot;string&quot;||i.issues.push({expected:&quot;string&quot;,code:&quot;invalid_type&quot;,input:i.value,inst:e}),i}}),_e=w(&quot;$ZodStringFormat&quot;,(e,t)=&gt;{ta.init(e,t),na.init(e,t)}),V_=w(&quot;$ZodGUID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Qy),_e.init(e,t)}),B_=w(&quot;$ZodUUID&quot;,(e,t)=&gt;{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: &quot;${t.version}&quot;`);t.pattern??(t.pattern=Ni(i))}else t.pattern??(t.pattern=Ni());_e.init(e,t)}),W_=w(&quot;$ZodEmail&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Xy),_e.init(e,t)}),J_=w(&quot;$ZodURL&quot;,(e,t)=&gt;{_e.init(e,t),e._zod.check=n=&gt;{try{const i=n.value,r=new URL(i),o=r.href;t.hostname&amp;&amp;(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;url&quot;,note:&quot;Invalid hostname&quot;,pattern:o_.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&amp;&amp;(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(&quot;:&quot;)?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;url&quot;,note:&quot;Invalid protocol&quot;,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!i.endsWith(&quot;/&quot;)&amp;&amp;o.endsWith(&quot;/&quot;)?n.value=o.slice(0,-1):n.value=o;return}catch{n.issues.push({code:&quot;invalid_format&quot;,format:&quot;url&quot;,input:n.value,inst:e,continue:!t.abort})}}}),K_=w(&quot;$ZodEmoji&quot;,(e,t)=&gt;{t.pattern??(t.pattern=qy()),_e.init(e,t)}),H_=w(&quot;$ZodNanoID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Hy),_e.init(e,t)}),G_=w(&quot;$ZodCUID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Vy),_e.init(e,t)}),Q_=w(&quot;$ZodCUID2&quot;,(e,t)=&gt;{t.pattern??(t.pattern=By),_e.init(e,t)}),X_=w(&quot;$ZodULID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Wy),_e.init(e,t)}),Y_=w(&quot;$ZodXID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Jy),_e.init(e,t)}),q_=w(&quot;$ZodKSUID&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Ky),_e.init(e,t)}),e0=w(&quot;$ZodISODateTime&quot;,(e,t)=&gt;{t.pattern??(t.pattern=d_(t)),_e.init(e,t)}),t0=w(&quot;$ZodISODate&quot;,(e,t)=&gt;{t.pattern??(t.pattern=u_),_e.init(e,t)}),n0=w(&quot;$ZodISOTime&quot;,(e,t)=&gt;{t.pattern??(t.pattern=c_(t)),_e.init(e,t)}),r0=w(&quot;$ZodISODuration&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Gy),_e.init(e,t)}),i0=w(&quot;$ZodIPv4&quot;,(e,t)=&gt;{t.pattern??(t.pattern=e_),_e.init(e,t),e._zod.onattach.push(n=&gt;{const i=n._zod.bag;i.format=&quot;ipv4&quot;})}),o0=w(&quot;$ZodIPv6&quot;,(e,t)=&gt;{t.pattern??(t.pattern=t_),_e.init(e,t),e._zod.onattach.push(n=&gt;{const i=n._zod.bag;i.format=&quot;ipv6&quot;}),e._zod.check=n=&gt;{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:&quot;invalid_format&quot;,format:&quot;ipv6&quot;,input:n.value,inst:e,continue:!t.abort})}}}),a0=w(&quot;$ZodCIDRv4&quot;,(e,t)=&gt;{t.pattern??(t.pattern=n_),_e.init(e,t)}),s0=w(&quot;$ZodCIDRv6&quot;,(e,t)=&gt;{t.pattern??(t.pattern=r_),_e.init(e,t),e._zod.check=n=&gt;{const[i,r]=n.value.split(&quot;/&quot;);try{if(!r)throw new Error;const o=Number(r);if(`${o}`!==r)throw new Error;if(o&lt;0||o&gt;128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:&quot;invalid_format&quot;,format:&quot;cidrv6&quot;,input:n.value,inst:e,continue:!t.abort})}}});function Gd(e){if(e===&quot;&quot;)return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const u0=w(&quot;$ZodBase64&quot;,(e,t)=&gt;{t.pattern??(t.pattern=i_),_e.init(e,t),e._zod.onattach.push(n=&gt;{n._zod.bag.contentEncoding=&quot;base64&quot;}),e._zod.check=n=&gt;{Gd(n.value)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;base64&quot;,input:n.value,inst:e,continue:!t.abort})}});function l0(e){if(!Jd.test(e))return!1;const t=e.replace(/[-_]/g,i=&gt;i===&quot;-&quot;?&quot;+&quot;:&quot;/&quot;),n=t.padEnd(Math.ceil(t.length/4)*4,&quot;=&quot;);return Gd(n)}const c0=w(&quot;$ZodBase64URL&quot;,(e,t)=&gt;{t.pattern??(t.pattern=Jd),_e.init(e,t),e._zod.onattach.push(n=&gt;{n._zod.bag.contentEncoding=&quot;base64url&quot;}),e._zod.check=n=&gt;{l0(n.value)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;base64url&quot;,input:n.value,inst:e,continue:!t.abort})}}),d0=w(&quot;$ZodE164&quot;,(e,t)=&gt;{t.pattern??(t.pattern=a_),_e.init(e,t)});function f0(e,t=null){try{const n=e.split(&quot;.&quot;);if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const r=JSON.parse(atob(i));return!(&quot;typ&quot;in r&amp;&amp;(r==null?void 0:r.typ)!==&quot;JWT&quot;||!r.alg||t&amp;&amp;(!(&quot;alg&quot;in r)||r.alg!==t))}catch{return!1}}const m0=w(&quot;$ZodJWT&quot;,(e,t)=&gt;{_e.init(e,t),e._zod.check=n=&gt;{f0(n.value,t.alg)||n.issues.push({code:&quot;invalid_format&quot;,format:&quot;jwt&quot;,input:n.value,inst:e,continue:!t.abort})}}),p0=w(&quot;$ZodCustomStringFormat&quot;,(e,t)=&gt;{_e.init(e,t),e._zod.check=n=&gt;{t.fn(n.value)||n.issues.push({code:&quot;invalid_format&quot;,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Qd=w(&quot;$ZodNumber&quot;,(e,t)=&gt;{te.init(e,t),e._zod.pattern=e._zod.bag.pattern??h_,e._zod.parse=(n,i)=&gt;{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r==&quot;number&quot;&amp;&amp;!Number.isNaN(r)&amp;&amp;Number.isFinite(r))return n;const o=typeof r==&quot;number&quot;?Number.isNaN(r)?&quot;NaN&quot;:Number.isFinite(r)?void 0:&quot;Infinity&quot;:void 0;return n.issues.push({expected:&quot;number&quot;,code:&quot;invalid_type&quot;,input:r,inst:e,...o?{received:o}:{}}),n}}),h0=w(&quot;$ZodNumber&quot;,(e,t)=&gt;{x_.init(e,t),Qd.init(e,t)}),Xd=w(&quot;$ZodBoolean&quot;,(e,t)=&gt;{te.init(e,t),e._zod.pattern=v_,e._zod.parse=(n,i)=&gt;{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r==&quot;boolean&quot;||n.issues.push({expected:&quot;boolean&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),Yd=w(&quot;$ZodBigInt&quot;,(e,t)=&gt;{te.init(e,t),e._zod.pattern=m_,e._zod.parse=(n,i)=&gt;{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==&quot;bigint&quot;||n.issues.push({expected:&quot;bigint&quot;,code:&quot;invalid_type&quot;,input:n.value,inst:e}),n}}),v0=w(&quot;$ZodBigInt&quot;,(e,t)=&gt;{b_.init(e,t),Yd.init(e,t)}),g0=w(&quot;$ZodSymbol&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;return typeof r==&quot;symbol&quot;||n.issues.push({expected:&quot;symbol&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),y0=w(&quot;$ZodUndefined&quot;,(e,t)=&gt;{te.init(e,t),e._zod.pattern=y_,e._zod.values=new Set([void 0]),e._zod.optin=&quot;optional&quot;,e._zod.optout=&quot;optional&quot;,e._zod.parse=(n,i)=&gt;{const r=n.value;return typeof r&gt;&quot;u&quot;||n.issues.push({expected:&quot;undefined&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),_0=w(&quot;$ZodNull&quot;,(e,t)=&gt;{te.init(e,t),e._zod.pattern=g_,e._zod.values=new Set([null]),e._zod.parse=(n,i)=&gt;{const r=n.value;return r===null||n.issues.push({expected:&quot;null&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),w0=w(&quot;$ZodAny&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=n=&gt;n}),Es=w(&quot;$ZodUnknown&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=n=&gt;n}),$0=w(&quot;$ZodNever&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;(n.issues.push({expected:&quot;never&quot;,code:&quot;invalid_type&quot;,input:n.value,inst:e}),n)}),k0=w(&quot;$ZodVoid&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;return typeof r&gt;&quot;u&quot;||n.issues.push({expected:&quot;void&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),S0=w(&quot;$ZodDate&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;{if(t.coerce)try{n.value=new Date(n.value)}catch{}const r=n.value,o=r instanceof Date;return o&amp;&amp;!Number.isNaN(r.getTime())||n.issues.push({expected:&quot;date&quot;,code:&quot;invalid_type&quot;,input:r,...o?{received:&quot;Invalid Date&quot;}:{},inst:e}),n}});function ph(e,t,n){e.issues.length&amp;&amp;t.issues.push(...jt(n,e.issues)),t.value[n]=e.value}const qd=w(&quot;$ZodArray&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:&quot;array&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n;n.value=Array(r.length);const o=[];for(let a=0;a&lt;r.length;a++){const s=r[a],u=t.element._zod.run({value:s,issues:[]},i);u instanceof Promise?o.push(u.then(l=&gt;ph(l,n,a))):ph(u,n,a)}return o.length?Promise.all(o).then(()=&gt;n):n}});function Ia(e,t,n){e.issues.length&amp;&amp;t.issues.push(...jt(n,e.issues)),t.value[n]=e.value}function hh(e,t,n,i){e.issues.length?i[n]===void 0?n in i?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...jt(n,e.issues)):e.value===void 0?n in i&amp;&amp;(t.value[n]=void 0):t.value[n]=e.value}const x0=w(&quot;$ZodObject&quot;,(e,t)=&gt;{te.init(e,t);const n=iu(()=&gt;{const p=Object.keys(t.shape);for(const y of p)if(!(t.shape[y]instanceof te))throw new Error(`Invalid element at key &quot;${y}&quot;: expected a Zod schema`);const h=Oy(t.shape);return{shape:t.shape,keys:p,keySet:new Set(p),numKeys:p.length,optionalKeys:new Set(h)}});pe(e._zod,&quot;propValues&quot;,()=&gt;{const p=t.shape,h={};for(const y in p){const g=p[y]._zod;if(g.values){h[y]??(h[y]=new Set);for(const S of g.values)h[y].add(S)}}return h});const i=p=&gt;{const h=new M_([&quot;shape&quot;,&quot;payload&quot;,&quot;ctx&quot;]),y=n.value,g=d=&gt;{const f=Dr(d);return`shape[${f}]._zod.run({ value: input[${f}], issues: [] }, ctx)`};h.write(&quot;const input = payload.value;&quot;);const S=Object.create(null);let z=0;for(const d of y.keys)S[d]=`key_${z++}`;h.write(&quot;const newResult = {}&quot;);for(const d of y.keys)if(y.optionalKeys.has(d)){const f=S[d];h.write(`const ${f} = ${g(d)};`);const k=Dr(d);h.write(`
        if (${f}.issues.length) {
          if (input[${k}] === undefined) {
            if (${k} in input) {
              newResult[${k}] = undefined;
            }
          } else {
            payload.issues = payload.issues.concat(
              ${f}.issues.map((iss) =&gt; ({
                ...iss,
                path: iss.path ? [${k}, ...iss.path] : [${k}],
              }))
            );
          }
        } else if (${f}.value === undefined) {
          if (${k} in input) newResult[${k}] = undefined;
        } else {
          newResult[${k}] = ${f}.value;
        }
        `)}else{const f=S[d];h.write(`const ${f} = ${g(d)};`),h.write(`
          if (${f}.issues.length) payload.issues = payload.issues.concat(${f}.issues.map(iss =&gt; ({
            ...iss,
            path: iss.path ? [${Dr(d)}, ...iss.path] : [${Dr(d)}]
          })));`),h.write(`newResult[${Dr(d)}] = ${f}.value`)}h.write(&quot;payload.value = newResult;&quot;),h.write(&quot;return payload;&quot;);const c=h.compile();return(d,f)=&gt;c(p,d,f)};let r;const o=Ro,a=!zs.jitless,u=a&amp;&amp;Iy.value,l=t.catchall;let m;e._zod.parse=(p,h)=&gt;{m??(m=n.value);const y=p.value;if(!o(y))return p.issues.push({expected:&quot;object&quot;,code:&quot;invalid_type&quot;,input:y,inst:e}),p;const g=[];if(a&amp;&amp;u&amp;&amp;(h==null?void 0:h.async)===!1&amp;&amp;h.jitless!==!0)r||(r=i(t.shape)),p=r(p,h);else{p.value={};const f=m.shape;for(const k of m.keys){const O=f[k],P=O._zod.run({value:y[k],issues:[]},h),L=O._zod.optin===&quot;optional&quot;&amp;&amp;O._zod.optout===&quot;optional&quot;;P instanceof Promise?g.push(P.then(F=&gt;L?hh(F,p,k,y):Ia(F,p,k))):L?hh(P,p,k,y):Ia(P,p,k)}}if(!l)return g.length?Promise.all(g).then(()=&gt;p):p;const S=[],z=m.keySet,c=l._zod,d=c.def.type;for(const f of Object.keys(y)){if(z.has(f))continue;if(d===&quot;never&quot;){S.push(f);continue}const k=c.run({value:y[f],issues:[]},h);k instanceof Promise?g.push(k.then(O=&gt;Ia(O,p,f))):Ia(k,p,f)}return S.length&amp;&amp;p.issues.push({code:&quot;unrecognized_keys&quot;,keys:S,input:y,inst:e}),g.length?Promise.all(g).then(()=&gt;p):p}});function vh(e,t,n,i){for(const r of e)if(r.issues.length===0)return t.value=r.value,t;return t.issues.push({code:&quot;invalid_union&quot;,input:t.value,inst:n,errors:e.map(r=&gt;r.issues.map(o=&gt;Kt(o,i,rt())))}),t}const ef=w(&quot;$ZodUnion&quot;,(e,t)=&gt;{te.init(e,t),pe(e._zod,&quot;optin&quot;,()=&gt;t.options.some(n=&gt;n._zod.optin===&quot;optional&quot;)?&quot;optional&quot;:void 0),pe(e._zod,&quot;optout&quot;,()=&gt;t.options.some(n=&gt;n._zod.optout===&quot;optional&quot;)?&quot;optional&quot;:void 0),pe(e._zod,&quot;values&quot;,()=&gt;{if(t.options.every(n=&gt;n._zod.values))return new Set(t.options.flatMap(n=&gt;Array.from(n._zod.values)))}),pe(e._zod,&quot;pattern&quot;,()=&gt;{if(t.options.every(n=&gt;n._zod.pattern)){const n=t.options.map(i=&gt;i._zod.pattern);return new RegExp(`^(${n.map(i=&gt;ou(i.source)).join(&quot;|&quot;)})$`)}}),e._zod.parse=(n,i)=&gt;{let r=!1;const o=[];for(const a of t.options){const s=a._zod.run({value:n.value,issues:[]},i);if(s instanceof Promise)o.push(s),r=!0;else{if(s.issues.length===0)return s;o.push(s)}}return r?Promise.all(o).then(a=&gt;vh(a,n,e,i)):vh(o,n,e,i)}}),b0=w(&quot;$ZodDiscriminatedUnion&quot;,(e,t)=&gt;{ef.init(e,t);const n=e._zod.parse;pe(e._zod,&quot;propValues&quot;,()=&gt;{const r={};for(const o of t.options){const a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index &quot;${t.options.indexOf(o)}&quot;`);for(const[s,u]of Object.entries(a)){r[s]||(r[s]=new Set);for(const l of u)r[s].add(l)}}return r});const i=iu(()=&gt;{const r=t.options,o=new Map;for(const a of r){const s=a._zod.propValues[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index &quot;${t.options.indexOf(a)}&quot;`);for(const u of s){if(o.has(u))throw new Error(`Duplicate discriminator value &quot;${String(u)}&quot;`);o.set(u,a)}}return o});e._zod.parse=(r,o)=&gt;{const a=r.value;if(!Ro(a))return r.issues.push({code:&quot;invalid_type&quot;,expected:&quot;object&quot;,input:a,inst:e}),r;const s=i.value.get(a==null?void 0:a[t.discriminator]);return s?s._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:&quot;invalid_union&quot;,errors:[],note:&quot;No matching discriminator&quot;,input:a,path:[t.discriminator],inst:e}),r)}}),I0=w(&quot;$ZodIntersection&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([u,l])=&gt;gh(n,u,l)):gh(n,o,a)}});function $c(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&amp;&amp;t instanceof Date&amp;&amp;+e==+t)return{valid:!0,data:e};if(Zo(e)&amp;&amp;Zo(t)){const n=Object.keys(t),i=Object.keys(e).filter(o=&gt;n.indexOf(o)!==-1),r={...e,...t};for(const o of i){const a=$c(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&amp;&amp;Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i&lt;e.length;i++){const r=e[i],o=t[i],a=$c(r,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function gh(e,t,n){if(t.issues.length&amp;&amp;e.issues.push(...t.issues),n.issues.length&amp;&amp;e.issues.push(...n.issues),si(e))return e;const i=$c(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const uu=w(&quot;$ZodTuple&quot;,(e,t)=&gt;{te.init(e,t);const n=t.items,i=n.length-[...n].reverse().findIndex(r=&gt;r._zod.optin!==&quot;optional&quot;);e._zod.parse=(r,o)=&gt;{const a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:&quot;tuple&quot;,code:&quot;invalid_type&quot;}),r;r.value=[];const s=[];if(!t.rest){const l=a.length&gt;n.length,m=a.length&lt;i-1;if(l||m)return r.issues.push({input:a,inst:e,origin:&quot;array&quot;,...l?{code:&quot;too_big&quot;,maximum:n.length}:{code:&quot;too_small&quot;,minimum:n.length}}),r}let u=-1;for(const l of n){if(u++,u&gt;=a.length&amp;&amp;u&gt;=i)continue;const m=l._zod.run({value:a[u],issues:[]},o);m instanceof Promise?s.push(m.then(p=&gt;za(p,r,u))):za(m,r,u)}if(t.rest){const l=a.slice(n.length);for(const m of l){u++;const p=t.rest._zod.run({value:m,issues:[]},o);p instanceof Promise?s.push(p.then(h=&gt;za(h,r,u))):za(p,r,u)}}return s.length?Promise.all(s).then(()=&gt;r):r}});function za(e,t,n){e.issues.length&amp;&amp;t.issues.push(...jt(n,e.issues)),t.value[n]=e.value}const z0=w(&quot;$ZodRecord&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;if(!Zo(r))return n.issues.push({expected:&quot;record&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n;const o=[];if(t.keyType._zod.values){const a=t.keyType._zod.values;n.value={};for(const u of a)if(typeof u==&quot;string&quot;||typeof u==&quot;number&quot;||typeof u==&quot;symbol&quot;){const l=t.valueType._zod.run({value:r[u],issues:[]},i);l instanceof Promise?o.push(l.then(m=&gt;{m.issues.length&amp;&amp;n.issues.push(...jt(u,m.issues)),n.value[u]=m.value})):(l.issues.length&amp;&amp;n.issues.push(...jt(u,l.issues)),n.value[u]=l.value)}let s;for(const u in r)a.has(u)||(s=s??[],s.push(u));s&amp;&amp;s.length&gt;0&amp;&amp;n.issues.push({code:&quot;unrecognized_keys&quot;,input:r,inst:e,keys:s})}else{n.value={};for(const a of Reflect.ownKeys(r)){if(a===&quot;__proto__&quot;)continue;const s=t.keyType._zod.run({value:a,issues:[]},i);if(s instanceof Promise)throw new Error(&quot;Async schemas not supported in object keys currently&quot;);if(s.issues.length){n.issues.push({origin:&quot;record&quot;,code:&quot;invalid_key&quot;,issues:s.issues.map(l=&gt;Kt(l,i,rt())),input:a,path:[a],inst:e}),n.value[s.value]=s.value;continue}const u=t.valueType._zod.run({value:r[a],issues:[]},i);u instanceof Promise?o.push(u.then(l=&gt;{l.issues.length&amp;&amp;n.issues.push(...jt(a,l.issues)),n.value[s.value]=l.value})):(u.issues.length&amp;&amp;n.issues.push(...jt(a,u.issues)),n.value[s.value]=u.value)}}return o.length?Promise.all(o).then(()=&gt;n):n}}),O0=w(&quot;$ZodMap&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;if(!(r instanceof Map))return n.issues.push({expected:&quot;map&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n;const o=[];n.value=new Map;for(const[a,s]of r){const u=t.keyType._zod.run({value:a,issues:[]},i),l=t.valueType._zod.run({value:s,issues:[]},i);u instanceof Promise||l instanceof Promise?o.push(Promise.all([u,l]).then(([m,p])=&gt;{yh(m,p,n,a,r,e,i)})):yh(u,l,n,a,r,e,i)}return o.length?Promise.all(o).then(()=&gt;n):n}});function yh(e,t,n,i,r,o,a){e.issues.length&amp;&amp;(Os.has(typeof i)?n.issues.push(...jt(i,e.issues)):n.issues.push({origin:&quot;map&quot;,code:&quot;invalid_key&quot;,input:r,inst:o,issues:e.issues.map(s=&gt;Kt(s,a,rt()))})),t.issues.length&amp;&amp;(Os.has(typeof i)?n.issues.push(...jt(i,t.issues)):n.issues.push({origin:&quot;map&quot;,code:&quot;invalid_element&quot;,input:r,inst:o,key:i,issues:t.issues.map(s=&gt;Kt(s,a,rt()))})),n.value.set(e.value,t.value)}const E0=w(&quot;$ZodSet&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:&quot;set&quot;,code:&quot;invalid_type&quot;}),n;const o=[];n.value=new Set;for(const a of r){const s=t.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(u=&gt;_h(u,n))):_h(s,n)}return o.length?Promise.all(o).then(()=&gt;n):n}});function _h(e,t){e.issues.length&amp;&amp;t.issues.push(...e.issues),t.value.add(e.value)}const N0=w(&quot;$ZodEnum&quot;,(e,t)=&gt;{te.init(e,t);const n=Dd(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(i=&gt;Os.has(typeof i)).map(i=&gt;typeof i==&quot;string&quot;?jr(i):i.toString()).join(&quot;|&quot;)})$`),e._zod.parse=(i,r)=&gt;{const o=i.value;return e._zod.values.has(o)||i.issues.push({code:&quot;invalid_value&quot;,values:n,input:o,inst:e}),i}}),j0=w(&quot;$ZodLiteral&quot;,(e,t)=&gt;{te.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=&gt;typeof n==&quot;string&quot;?jr(n):n?n.toString():String(n)).join(&quot;|&quot;)})$`),e._zod.parse=(n,i)=&gt;{const r=n.value;return e._zod.values.has(r)||n.issues.push({code:&quot;invalid_value&quot;,values:t.values,input:r,inst:e}),n}}),T0=w(&quot;$ZodFile&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;{const r=n.value;return r instanceof File||n.issues.push({expected:&quot;file&quot;,code:&quot;invalid_type&quot;,input:r,inst:e}),n}}),tf=w(&quot;$ZodTransform&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;{const r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=&gt;(n.value=a,n));if(r instanceof Promise)throw new Oi;return n.value=r,n}}),P0=w(&quot;$ZodOptional&quot;,(e,t)=&gt;{te.init(e,t),e._zod.optin=&quot;optional&quot;,e._zod.optout=&quot;optional&quot;,pe(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),pe(e._zod,&quot;pattern&quot;,()=&gt;{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ou(n.source)})?$`):void 0}),e._zod.parse=(n,i)=&gt;t.innerType._zod.optin===&quot;optional&quot;?t.innerType._zod.run(n,i):n.value===void 0?n:t.innerType._zod.run(n,i)}),U0=w(&quot;$ZodNullable&quot;,(e,t)=&gt;{te.init(e,t),pe(e._zod,&quot;optin&quot;,()=&gt;t.innerType._zod.optin),pe(e._zod,&quot;optout&quot;,()=&gt;t.innerType._zod.optout),pe(e._zod,&quot;pattern&quot;,()=&gt;{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ou(n.source)}|null)$`):void 0}),pe(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=&gt;n.value===null?n:t.innerType._zod.run(n,i)}),C0=w(&quot;$ZodDefault&quot;,(e,t)=&gt;{te.init(e,t),e._zod.optin=&quot;optional&quot;,pe(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),e._zod.parse=(n,i)=&gt;{if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;wh(o,t)):wh(r,t)}});function wh(e,t){return e.value===void 0&amp;&amp;(e.value=t.defaultValue),e}const A0=w(&quot;$ZodPrefault&quot;,(e,t)=&gt;{te.init(e,t),e._zod.optin=&quot;optional&quot;,pe(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),e._zod.parse=(n,i)=&gt;(n.value===void 0&amp;&amp;(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),D0=w(&quot;$ZodNonOptional&quot;,(e,t)=&gt;{te.init(e,t),pe(e._zod,&quot;values&quot;,()=&gt;{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=&gt;i!==void 0)):void 0}),e._zod.parse=(n,i)=&gt;{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;$h(o,e)):$h(r,e)}});function $h(e,t){return!e.issues.length&amp;&amp;e.value===void 0&amp;&amp;e.issues.push({code:&quot;invalid_type&quot;,expected:&quot;nonoptional&quot;,input:e.value,inst:t}),e}const R0=w(&quot;$ZodSuccess&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),Z0=w(&quot;$ZodCatch&quot;,(e,t)=&gt;{te.init(e,t),e._zod.optin=&quot;optional&quot;,pe(e._zod,&quot;optout&quot;,()=&gt;t.innerType._zod.optout),pe(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),e._zod.parse=(n,i)=&gt;{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;(n.value=o.value,o.issues.length&amp;&amp;(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=&gt;Kt(a,i,rt()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&amp;&amp;(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=&gt;Kt(o,i,rt()))},input:n.value}),n.issues=[]),n)}}),L0=w(&quot;$ZodNaN&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;((typeof n.value!=&quot;number&quot;||!Number.isNaN(n.value))&amp;&amp;n.issues.push({input:n.value,inst:e,expected:&quot;nan&quot;,code:&quot;invalid_type&quot;}),n)}),nf=w(&quot;$ZodPipe&quot;,(e,t)=&gt;{te.init(e,t),pe(e._zod,&quot;values&quot;,()=&gt;t.in._zod.values),pe(e._zod,&quot;optin&quot;,()=&gt;t.in._zod.optin),pe(e._zod,&quot;optout&quot;,()=&gt;t.out._zod.optout),e._zod.parse=(n,i)=&gt;{const r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=&gt;kh(o,t,i)):kh(r,t,i)}});function kh(e,t,n){return si(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const M0=w(&quot;$ZodReadonly&quot;,(e,t)=&gt;{te.init(e,t),pe(e._zod,&quot;propValues&quot;,()=&gt;t.innerType._zod.propValues),pe(e._zod,&quot;values&quot;,()=&gt;t.innerType._zod.values),pe(e._zod,&quot;optin&quot;,()=&gt;t.innerType._zod.optin),pe(e._zod,&quot;optout&quot;,()=&gt;t.innerType._zod.optout),e._zod.parse=(n,i)=&gt;{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(Sh):Sh(r)}});function Sh(e){return e.value=Object.freeze(e.value),e}const F0=w(&quot;$ZodTemplateLiteral&quot;,(e,t)=&gt;{te.init(e,t);const n=[];for(const i of t.parts)if(i instanceof te){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const o=r.startsWith(&quot;^&quot;)?1:0,a=r.endsWith(&quot;$&quot;)?r.length-1:r.length;n.push(r.slice(o,a))}else if(i===null||zy.has(typeof i))n.push(jr(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join(&quot;&quot;)}$`),e._zod.parse=(i,r)=&gt;typeof i.value!=&quot;string&quot;?(i.issues.push({input:i.value,inst:e,expected:&quot;template_literal&quot;,code:&quot;invalid_type&quot;}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:&quot;invalid_format&quot;,format:&quot;template_literal&quot;,pattern:e._zod.pattern.source}),i)}),V0=w(&quot;$ZodPromise&quot;,(e,t)=&gt;{te.init(e,t),e._zod.parse=(n,i)=&gt;Promise.resolve(n.value).then(r=&gt;t.innerType._zod.run({value:r,issues:[]},i))}),B0=w(&quot;$ZodLazy&quot;,(e,t)=&gt;{te.init(e,t),pe(e._zod,&quot;innerType&quot;,()=&gt;t.getter()),pe(e._zod,&quot;pattern&quot;,()=&gt;e._zod.innerType._zod.pattern),pe(e._zod,&quot;propValues&quot;,()=&gt;e._zod.innerType._zod.propValues),pe(e._zod,&quot;optin&quot;,()=&gt;e._zod.innerType._zod.optin),pe(e._zod,&quot;optout&quot;,()=&gt;e._zod.innerType._zod.optout),e._zod.parse=(n,i)=&gt;e._zod.innerType._zod.run(n,i)}),W0=w(&quot;$ZodCustom&quot;,(e,t)=&gt;{Pe.init(e,t),te.init(e,t),e._zod.parse=(n,i)=&gt;n,e._zod.check=n=&gt;{const i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=&gt;xh(o,n,i,e));xh(r,n,i,e)}});function xh(e,t,n,i){if(!e){const r={code:&quot;custom&quot;,input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&amp;&amp;(r.params=i._zod.def.params),t.issues.push(Ei(r))}}const Rb=()=&gt;{const e={string:{unit:&quot;حرف&quot;,verb:&quot;أن يحوي&quot;},file:{unit:&quot;بايت&quot;,verb:&quot;أن يحوي&quot;},array:{unit:&quot;عنصر&quot;,verb:&quot;أن يحوي&quot;},set:{unit:&quot;عنصر&quot;,verb:&quot;أن يحوي&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;مدخل&quot;,email:&quot;بريد إلكتروني&quot;,url:&quot;رابط&quot;,emoji:&quot;إيموجي&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;تاريخ ووقت بمعيار ISO&quot;,date:&quot;تاريخ بمعيار ISO&quot;,time:&quot;وقت بمعيار ISO&quot;,duration:&quot;مدة بمعيار ISO&quot;,ipv4:&quot;عنوان IPv4&quot;,ipv6:&quot;عنوان IPv6&quot;,cidrv4:&quot;مدى عناوين بصيغة IPv4&quot;,cidrv6:&quot;مدى عناوين بصيغة IPv6&quot;,base64:&quot;نَص بترميز base64-encoded&quot;,base64url:&quot;نَص بترميز base64url-encoded&quot;,json_string:&quot;نَص على هيئة JSON&quot;,e164:&quot;رقم هاتف بمعيار E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;مدخل&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`مدخلات غير مقبولة: يفترض إدخال ${r.expected}، ولكن تم إدخال ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${re(r.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?` أكبر من اللازم: يفترض أن تكون ${r.origin??&quot;القيمة&quot;} ${o} ${r.maximum.toString()} ${a.unit??&quot;عنصر&quot;}`:`أكبر من اللازم: يفترض أن تكون ${r.origin??&quot;القيمة&quot;} ${o} ${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${o} ${r.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${o} ${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`نَص غير مقبول: يجب أن يبدأ بـ &quot;${r.prefix}&quot;`:o.format===&quot;ends_with&quot;?`نَص غير مقبول: يجب أن ينتهي بـ &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`نَص غير مقبول: يجب أن يتضمَّن &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${i[o.format]??r.format} غير مقبول`}case&quot;not_multiple_of&quot;:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`معرف${r.keys.length&gt;1?&quot;ات&quot;:&quot;&quot;} غريب${r.keys.length&gt;1?&quot;ة&quot;:&quot;&quot;}: ${Z(r.keys,&quot;، &quot;)}`;case&quot;invalid_key&quot;:return`معرف غير مقبول في ${r.origin}`;case&quot;invalid_union&quot;:return&quot;مدخل غير مقبول&quot;;case&quot;invalid_element&quot;:return`مدخل غير مقبول في ${r.origin}`;default:return&quot;مدخل غير مقبول&quot;}}};function Zb(){return{localeError:Rb()}}const Lb=()=&gt;{const e={string:{unit:&quot;simvol&quot;,verb:&quot;olmalıdır&quot;},file:{unit:&quot;bayt&quot;,verb:&quot;olmalıdır&quot;},array:{unit:&quot;element&quot;,verb:&quot;olmalıdır&quot;},set:{unit:&quot;element&quot;,verb:&quot;olmalıdır&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;email address&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datetime&quot;,date:&quot;ISO date&quot;,time:&quot;ISO time&quot;,duration:&quot;ISO duration&quot;,ipv4:&quot;IPv4 address&quot;,ipv6:&quot;IPv6 address&quot;,cidrv4:&quot;IPv4 range&quot;,cidrv6:&quot;IPv6 range&quot;,base64:&quot;base64-encoded string&quot;,base64url:&quot;base64url-encoded string&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164 number&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Yanlış dəyər: gözlənilən ${r.expected}, daxil olan ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Yanlış dəyər: gözlənilən ${re(r.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Çox böyük: gözlənilən ${r.origin??&quot;dəyər&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;element&quot;}`:`Çox böyük: gözlənilən ${r.origin??&quot;dəyər&quot;} ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Çox kiçik: gözlənilən ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${r.origin} ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Yanlış mətn: &quot;${o.prefix}&quot; ilə başlamalıdır`:o.format===&quot;ends_with&quot;?`Yanlış mətn: &quot;${o.suffix}&quot; ilə bitməlidir`:o.format===&quot;includes&quot;?`Yanlış mətn: &quot;${o.includes}&quot; daxil olmalıdır`:o.format===&quot;regex&quot;?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Yanlış ədəd: ${r.divisor} ilə bölünə bilən olmalıdır`;case&quot;unrecognized_keys&quot;:return`Tanınmayan açar${r.keys.length&gt;1?&quot;lar&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} daxilində yanlış açar`;case&quot;invalid_union&quot;:return&quot;Yanlış dəyər&quot;;case&quot;invalid_element&quot;:return`${r.origin} daxilində yanlış dəyər`;default:return&quot;Yanlış dəyər&quot;}}};function Mb(){return{localeError:Lb()}}function bh(e,t,n,i){const r=Math.abs(e),o=r%10,a=r%100;return a&gt;=11&amp;&amp;a&lt;=19?i:o===1?t:o&gt;=2&amp;&amp;o&lt;=4?n:i}const Fb=()=&gt;{const e={string:{unit:{one:&quot;сімвал&quot;,few:&quot;сімвалы&quot;,many:&quot;сімвалаў&quot;},verb:&quot;мець&quot;},array:{unit:{one:&quot;элемент&quot;,few:&quot;элементы&quot;,many:&quot;элементаў&quot;},verb:&quot;мець&quot;},set:{unit:{one:&quot;элемент&quot;,few:&quot;элементы&quot;,many:&quot;элементаў&quot;},verb:&quot;мець&quot;},file:{unit:{one:&quot;байт&quot;,few:&quot;байты&quot;,many:&quot;байтаў&quot;},verb:&quot;мець&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;лік&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;масіў&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;увод&quot;,email:&quot;email адрас&quot;,url:&quot;URL&quot;,emoji:&quot;эмодзі&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO дата і час&quot;,date:&quot;ISO дата&quot;,time:&quot;ISO час&quot;,duration:&quot;ISO працягласць&quot;,ipv4:&quot;IPv4 адрас&quot;,ipv6:&quot;IPv6 адрас&quot;,cidrv4:&quot;IPv4 дыяпазон&quot;,cidrv6:&quot;IPv6 дыяпазон&quot;,base64:&quot;радок у фармаце base64&quot;,base64url:&quot;радок у фармаце base64url&quot;,json_string:&quot;JSON радок&quot;,e164:&quot;нумар E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;увод&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Няправільны ўвод: чакаўся ${r.expected}, атрымана ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Няправільны ўвод: чакалася ${re(r.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);if(a){const s=Number(r.maximum),u=bh(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${r.origin??&quot;значэнне&quot;} павінна ${a.verb} ${o}${r.maximum.toString()} ${u}`}return`Занадта вялікі: чакалася, што ${r.origin??&quot;значэнне&quot;} павінна быць ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);if(a){const s=Number(r.minimum),u=bh(s,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${r.origin} павінна ${a.verb} ${o}${r.minimum.toString()} ${u}`}return`Занадта малы: чакалася, што ${r.origin} павінна быць ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Няправільны радок: павінен пачынацца з &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Няправільны радок: павінен заканчвацца на &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Няправільны радок: павінен змяшчаць &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Няправільны лік: павінен быць кратным ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Нераспазнаны ${r.keys.length&gt;1?&quot;ключы&quot;:&quot;ключ&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Няправільны ключ у ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Няправільны ўвод&quot;;case&quot;invalid_element&quot;:return`Няправільнае значэнне ў ${r.origin}`;default:return&quot;Няправільны ўвод&quot;}}};function Vb(){return{localeError:Fb()}}const Bb=()=&gt;{const e={string:{unit:&quot;caràcters&quot;,verb:&quot;contenir&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;contenir&quot;},array:{unit:&quot;elements&quot;,verb:&quot;contenir&quot;},set:{unit:&quot;elements&quot;,verb:&quot;contenir&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;entrada&quot;,email:&quot;adreça electrònica&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;data i hora ISO&quot;,date:&quot;data ISO&quot;,time:&quot;hora ISO&quot;,duration:&quot;durada ISO&quot;,ipv4:&quot;adreça IPv4&quot;,ipv6:&quot;adreça IPv6&quot;,cidrv4:&quot;rang IPv4&quot;,cidrv6:&quot;rang IPv6&quot;,base64:&quot;cadena codificada en base64&quot;,base64url:&quot;cadena codificada en base64url&quot;,json_string:&quot;cadena JSON&quot;,e164:&quot;número E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrada&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Tipus invàlid: s&#39;esperava ${r.expected}, s&#39;ha rebut ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Valor invàlid: s&#39;esperava ${re(r.values[0])}`:`Opció invàlida: s&#39;esperava una de ${Z(r.values,&quot; o &quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;com a màxim&quot;:&quot;menys de&quot;,a=t(r.origin);return a?`Massa gran: s&#39;esperava que ${r.origin??&quot;el valor&quot;} contingués ${o} ${r.maximum.toString()} ${a.unit??&quot;elements&quot;}`:`Massa gran: s&#39;esperava que ${r.origin??&quot;el valor&quot;} fos ${o} ${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;com a mínim&quot;:&quot;més de&quot;,a=t(r.origin);return a?`Massa petit: s&#39;esperava que ${r.origin} contingués ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s&#39;esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Format invàlid: ha de començar amb &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Format invàlid: ha d&#39;acabar amb &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Format invàlid: ha d&#39;incloure &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Número invàlid: ha de ser múltiple de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Clau${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} no reconeguda${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Clau invàlida a ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrada invàlida&quot;;case&quot;invalid_element&quot;:return`Element invàlid a ${r.origin}`;default:return&quot;Entrada invàlida&quot;}}};function Wb(){return{localeError:Bb()}}const Jb=()=&gt;{const e={string:{unit:&quot;znaků&quot;,verb:&quot;mít&quot;},file:{unit:&quot;bajtů&quot;,verb:&quot;mít&quot;},array:{unit:&quot;prvků&quot;,verb:&quot;mít&quot;},set:{unit:&quot;prvků&quot;,verb:&quot;mít&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;číslo&quot;;case&quot;string&quot;:return&quot;řetězec&quot;;case&quot;boolean&quot;:return&quot;boolean&quot;;case&quot;bigint&quot;:return&quot;bigint&quot;;case&quot;function&quot;:return&quot;funkce&quot;;case&quot;symbol&quot;:return&quot;symbol&quot;;case&quot;undefined&quot;:return&quot;undefined&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;pole&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;regulární výraz&quot;,email:&quot;e-mailová adresa&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;datum a čas ve formátu ISO&quot;,date:&quot;datum ve formátu ISO&quot;,time:&quot;čas ve formátu ISO&quot;,duration:&quot;doba trvání ISO&quot;,ipv4:&quot;IPv4 adresa&quot;,ipv6:&quot;IPv6 adresa&quot;,cidrv4:&quot;rozsah IPv4&quot;,cidrv6:&quot;rozsah IPv6&quot;,base64:&quot;řetězec zakódovaný ve formátu base64&quot;,base64url:&quot;řetězec zakódovaný ve formátu base64url&quot;,json_string:&quot;řetězec ve formátu JSON&quot;,e164:&quot;číslo E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;vstup&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Neplatný vstup: očekáváno ${r.expected}, obdrženo ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Neplatný vstup: očekáváno ${re(r.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Hodnota je příliš velká: ${r.origin??&quot;hodnota&quot;} musí mít ${o}${r.maximum.toString()} ${a.unit??&quot;prvků&quot;}`:`Hodnota je příliš velká: ${r.origin??&quot;hodnota&quot;} musí být ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Hodnota je příliš malá: ${r.origin??&quot;hodnota&quot;} musí mít ${o}${r.minimum.toString()} ${a.unit??&quot;prvků&quot;}`:`Hodnota je příliš malá: ${r.origin??&quot;hodnota&quot;} musí být ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Neplatný řetězec: musí začínat na &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Neplatný řetězec: musí končit na &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Neplatný řetězec: musí obsahovat &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Neplatné číslo: musí být násobkem ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Neznámé klíče: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Neplatný klíč v ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Neplatný vstup&quot;;case&quot;invalid_element&quot;:return`Neplatná hodnota v ${r.origin}`;default:return&quot;Neplatný vstup&quot;}}};function Kb(){return{localeError:Jb()}}const Hb=()=&gt;{const e={string:{unit:&quot;Zeichen&quot;,verb:&quot;zu haben&quot;},file:{unit:&quot;Bytes&quot;,verb:&quot;zu haben&quot;},array:{unit:&quot;Elemente&quot;,verb:&quot;zu haben&quot;},set:{unit:&quot;Elemente&quot;,verb:&quot;zu haben&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;Zahl&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;Array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;Eingabe&quot;,email:&quot;E-Mail-Adresse&quot;,url:&quot;URL&quot;,emoji:&quot;Emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO-Datum und -Uhrzeit&quot;,date:&quot;ISO-Datum&quot;,time:&quot;ISO-Uhrzeit&quot;,duration:&quot;ISO-Dauer&quot;,ipv4:&quot;IPv4-Adresse&quot;,ipv6:&quot;IPv6-Adresse&quot;,cidrv4:&quot;IPv4-Bereich&quot;,cidrv6:&quot;IPv6-Bereich&quot;,base64:&quot;Base64-codierter String&quot;,base64url:&quot;Base64-URL-codierter String&quot;,json_string:&quot;JSON-String&quot;,e164:&quot;E.164-Nummer&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;Eingabe&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Ungültige Eingabe: erwartet ${r.expected}, erhalten ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Ungültige Eingabe: erwartet ${re(r.values[0])}`:`Ungültige Option: erwartet eine von ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Zu groß: erwartet, dass ${r.origin??&quot;Wert&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;Elemente&quot;} hat`:`Zu groß: erwartet, dass ${r.origin??&quot;Wert&quot;} ${o}${r.maximum.toString()} ist`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Ungültiger String: muss mit &quot;${o.prefix}&quot; beginnen`:o.format===&quot;ends_with&quot;?`Ungültiger String: muss mit &quot;${o.suffix}&quot; enden`:o.format===&quot;includes&quot;?`Ungültiger String: muss &quot;${o.includes}&quot; enthalten`:o.format===&quot;regex&quot;?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Ungültige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Unbekannte Schlüssel&quot;:&quot;Unbekannter Schlüssel&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Ungültiger Schlüssel in ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Ungültige Eingabe&quot;;case&quot;invalid_element&quot;:return`Ungültiger Wert in ${r.origin}`;default:return&quot;Ungültige Eingabe&quot;}}};function Gb(){return{localeError:Hb()}}const Qb=e=&gt;{const t=typeof e;switch(t){case&quot;number&quot;:return Number.isNaN(e)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(e))return&quot;array&quot;;if(e===null)return&quot;null&quot;;if(Object.getPrototypeOf(e)!==Object.prototype&amp;&amp;e.constructor)return e.constructor.name}}return t},Xb=()=&gt;{const e={string:{unit:&quot;characters&quot;,verb:&quot;to have&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;to have&quot;},array:{unit:&quot;items&quot;,verb:&quot;to have&quot;},set:{unit:&quot;items&quot;,verb:&quot;to have&quot;}};function t(i){return e[i]??null}const n={regex:&quot;input&quot;,email:&quot;email address&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datetime&quot;,date:&quot;ISO date&quot;,time:&quot;ISO time&quot;,duration:&quot;ISO duration&quot;,ipv4:&quot;IPv4 address&quot;,ipv6:&quot;IPv6 address&quot;,cidrv4:&quot;IPv4 range&quot;,cidrv6:&quot;IPv6 range&quot;,base64:&quot;base64-encoded string&quot;,base64url:&quot;base64url-encoded string&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164 number&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return i=&gt;{switch(i.code){case&quot;invalid_type&quot;:return`Invalid input: expected ${i.expected}, received ${Qb(i.input)}`;case&quot;invalid_value&quot;:return i.values.length===1?`Invalid input: expected ${re(i.values[0])}`:`Invalid option: expected one of ${Z(i.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const r=i.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,o=t(i.origin);return o?`Too big: expected ${i.origin??&quot;value&quot;} to have ${r}${i.maximum.toString()} ${o.unit??&quot;elements&quot;}`:`Too big: expected ${i.origin??&quot;value&quot;} to be ${r}${i.maximum.toString()}`}case&quot;too_small&quot;:{const r=i.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,o=t(i.origin);return o?`Too small: expected ${i.origin} to have ${r}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${r}${i.minimum.toString()}`}case&quot;invalid_format&quot;:{const r=i;return r.format===&quot;starts_with&quot;?`Invalid string: must start with &quot;${r.prefix}&quot;`:r.format===&quot;ends_with&quot;?`Invalid string: must end with &quot;${r.suffix}&quot;`:r.format===&quot;includes&quot;?`Invalid string: must include &quot;${r.includes}&quot;`:r.format===&quot;regex&quot;?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.format]??i.format}`}case&quot;not_multiple_of&quot;:return`Invalid number: must be a multiple of ${i.divisor}`;case&quot;unrecognized_keys&quot;:return`Unrecognized key${i.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(i.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Invalid key in ${i.origin}`;case&quot;invalid_union&quot;:return&quot;Invalid input&quot;;case&quot;invalid_element&quot;:return`Invalid value in ${i.origin}`;default:return&quot;Invalid input&quot;}}};function J0(){return{localeError:Xb()}}const Yb=e=&gt;{const t=typeof e;switch(t){case&quot;number&quot;:return Number.isNaN(e)?&quot;NaN&quot;:&quot;nombro&quot;;case&quot;object&quot;:{if(Array.isArray(e))return&quot;tabelo&quot;;if(e===null)return&quot;senvalora&quot;;if(Object.getPrototypeOf(e)!==Object.prototype&amp;&amp;e.constructor)return e.constructor.name}}return t},qb=()=&gt;{const e={string:{unit:&quot;karaktrojn&quot;,verb:&quot;havi&quot;},file:{unit:&quot;bajtojn&quot;,verb:&quot;havi&quot;},array:{unit:&quot;elementojn&quot;,verb:&quot;havi&quot;},set:{unit:&quot;elementojn&quot;,verb:&quot;havi&quot;}};function t(i){return e[i]??null}const n={regex:&quot;enigo&quot;,email:&quot;retadreso&quot;,url:&quot;URL&quot;,emoji:&quot;emoĝio&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO-datotempo&quot;,date:&quot;ISO-dato&quot;,time:&quot;ISO-tempo&quot;,duration:&quot;ISO-daŭro&quot;,ipv4:&quot;IPv4-adreso&quot;,ipv6:&quot;IPv6-adreso&quot;,cidrv4:&quot;IPv4-rango&quot;,cidrv6:&quot;IPv6-rango&quot;,base64:&quot;64-ume kodita karaktraro&quot;,base64url:&quot;URL-64-ume kodita karaktraro&quot;,json_string:&quot;JSON-karaktraro&quot;,e164:&quot;E.164-nombro&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;enigo&quot;};return i=&gt;{switch(i.code){case&quot;invalid_type&quot;:return`Nevalida enigo: atendiĝis ${i.expected}, riceviĝis ${Yb(i.input)}`;case&quot;invalid_value&quot;:return i.values.length===1?`Nevalida enigo: atendiĝis ${re(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${Z(i.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const r=i.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,o=t(i.origin);return o?`Tro granda: atendiĝis ke ${i.origin??&quot;valoro&quot;} havu ${r}${i.maximum.toString()} ${o.unit??&quot;elementojn&quot;}`:`Tro granda: atendiĝis ke ${i.origin??&quot;valoro&quot;} havu ${r}${i.maximum.toString()}`}case&quot;too_small&quot;:{const r=i.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,o=t(i.origin);return o?`Tro malgranda: atendiĝis ke ${i.origin} havu ${r}${i.minimum.toString()} ${o.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${r}${i.minimum.toString()}`}case&quot;invalid_format&quot;:{const r=i;return r.format===&quot;starts_with&quot;?`Nevalida karaktraro: devas komenciĝi per &quot;${r.prefix}&quot;`:r.format===&quot;ends_with&quot;?`Nevalida karaktraro: devas finiĝi per &quot;${r.suffix}&quot;`:r.format===&quot;includes&quot;?`Nevalida karaktraro: devas inkluzivi &quot;${r.includes}&quot;`:r.format===&quot;regex&quot;?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${n[r.format]??i.format}`}case&quot;not_multiple_of&quot;:return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case&quot;unrecognized_keys&quot;:return`Nekonata${i.keys.length&gt;1?&quot;j&quot;:&quot;&quot;} ŝlosilo${i.keys.length&gt;1?&quot;j&quot;:&quot;&quot;}: ${Z(i.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Nevalida ŝlosilo en ${i.origin}`;case&quot;invalid_union&quot;:return&quot;Nevalida enigo&quot;;case&quot;invalid_element&quot;:return`Nevalida valoro en ${i.origin}`;default:return&quot;Nevalida enigo&quot;}}};function eI(){return{localeError:qb()}}const tI=()=&gt;{const e={string:{unit:&quot;caracteres&quot;,verb:&quot;tener&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;tener&quot;},array:{unit:&quot;elementos&quot;,verb:&quot;tener&quot;},set:{unit:&quot;elementos&quot;,verb:&quot;tener&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;número&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;arreglo&quot;;if(r===null)return&quot;nulo&quot;;if(Object.getPrototypeOf(r)!==Object.prototype)return r.constructor.name}}return o},i={regex:&quot;entrada&quot;,email:&quot;dirección de correo electrónico&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;fecha y hora ISO&quot;,date:&quot;fecha ISO&quot;,time:&quot;hora ISO&quot;,duration:&quot;duración ISO&quot;,ipv4:&quot;dirección IPv4&quot;,ipv6:&quot;dirección IPv6&quot;,cidrv4:&quot;rango IPv4&quot;,cidrv6:&quot;rango IPv6&quot;,base64:&quot;cadena codificada en base64&quot;,base64url:&quot;URL codificada en base64&quot;,json_string:&quot;cadena JSON&quot;,e164:&quot;número E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrada&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Entrada inválida: se esperaba ${r.expected}, recibido ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Entrada inválida: se esperaba ${re(r.values[0])}`:`Opción inválida: se esperaba una de ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Demasiado grande: se esperaba que ${r.origin??&quot;valor&quot;} tuviera ${o}${r.maximum.toString()} ${a.unit??&quot;elementos&quot;}`:`Demasiado grande: se esperaba que ${r.origin??&quot;valor&quot;} fuera ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Demasiado pequeño: se esperaba que ${r.origin} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado pequeño: se esperaba que ${r.origin} fuera ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Cadena inválida: debe comenzar con &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Cadena inválida: debe terminar en &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Cadena inválida: debe incluir &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Cadena inválida: debe coincidir con el patrón ${o.pattern}`:`Inválido ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Número inválido: debe ser múltiplo de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Llave${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} desconocida${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Llave inválida en ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrada inválida&quot;;case&quot;invalid_element&quot;:return`Valor inválido en ${r.origin}`;default:return&quot;Entrada inválida&quot;}}};function nI(){return{localeError:tI()}}const rI=()=&gt;{const e={string:{unit:&quot;کاراکتر&quot;,verb:&quot;داشته باشد&quot;},file:{unit:&quot;بایت&quot;,verb:&quot;داشته باشد&quot;},array:{unit:&quot;آیتم&quot;,verb:&quot;داشته باشد&quot;},set:{unit:&quot;آیتم&quot;,verb:&quot;داشته باشد&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;عدد&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;آرایه&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ورودی&quot;,email:&quot;آدرس ایمیل&quot;,url:&quot;URL&quot;,emoji:&quot;ایموجی&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;تاریخ و زمان ایزو&quot;,date:&quot;تاریخ ایزو&quot;,time:&quot;زمان ایزو&quot;,duration:&quot;مدت زمان ایزو&quot;,ipv4:&quot;IPv4 آدرس&quot;,ipv6:&quot;IPv6 آدرس&quot;,cidrv4:&quot;IPv4 دامنه&quot;,cidrv6:&quot;IPv6 دامنه&quot;,base64:&quot;base64-encoded رشته&quot;,base64url:&quot;base64url-encoded رشته&quot;,json_string:&quot;JSON رشته&quot;,e164:&quot;E.164 عدد&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;ورودی&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`ورودی نامعتبر: می‌بایست ${r.expected} می‌بود، ${n(r.input)} دریافت شد`;case&quot;invalid_value&quot;:return r.values.length===1?`ورودی نامعتبر: می‌بایست ${re(r.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${Z(r.values,&quot;|&quot;)} می‌بود`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`خیلی بزرگ: ${r.origin??&quot;مقدار&quot;} باید ${o}${r.maximum.toString()} ${a.unit??&quot;عنصر&quot;} باشد`:`خیلی بزرگ: ${r.origin??&quot;مقدار&quot;} باید ${o}${r.maximum.toString()} باشد`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`خیلی کوچک: ${r.origin} باید ${o}${r.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${r.origin} باید ${o}${r.minimum.toString()} باشد`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`رشته نامعتبر: باید با &quot;${o.prefix}&quot; شروع شود`:o.format===&quot;ends_with&quot;?`رشته نامعتبر: باید با &quot;${o.suffix}&quot; تمام شود`:o.format===&quot;includes&quot;?`رشته نامعتبر: باید شامل &quot;${o.includes}&quot; باشد`:o.format===&quot;regex&quot;?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${i[o.format]??r.format} نامعتبر`}case&quot;not_multiple_of&quot;:return`عدد نامعتبر: باید مضرب ${r.divisor} باشد`;case&quot;unrecognized_keys&quot;:return`کلید${r.keys.length&gt;1?&quot;های&quot;:&quot;&quot;} ناشناس: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`کلید ناشناس در ${r.origin}`;case&quot;invalid_union&quot;:return&quot;ورودی نامعتبر&quot;;case&quot;invalid_element&quot;:return`مقدار نامعتبر در ${r.origin}`;default:return&quot;ورودی نامعتبر&quot;}}};function iI(){return{localeError:rI()}}const oI=()=&gt;{const e={string:{unit:&quot;merkkiä&quot;,subject:&quot;merkkijonon&quot;},file:{unit:&quot;tavua&quot;,subject:&quot;tiedoston&quot;},array:{unit:&quot;alkiota&quot;,subject:&quot;listan&quot;},set:{unit:&quot;alkiota&quot;,subject:&quot;joukon&quot;},number:{unit:&quot;&quot;,subject:&quot;luvun&quot;},bigint:{unit:&quot;&quot;,subject:&quot;suuren kokonaisluvun&quot;},int:{unit:&quot;&quot;,subject:&quot;kokonaisluvun&quot;},date:{unit:&quot;&quot;,subject:&quot;päivämäärän&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;säännöllinen lauseke&quot;,email:&quot;sähköpostiosoite&quot;,url:&quot;URL-osoite&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO-aikaleima&quot;,date:&quot;ISO-päivämäärä&quot;,time:&quot;ISO-aika&quot;,duration:&quot;ISO-kesto&quot;,ipv4:&quot;IPv4-osoite&quot;,ipv6:&quot;IPv6-osoite&quot;,cidrv4:&quot;IPv4-alue&quot;,cidrv6:&quot;IPv6-alue&quot;,base64:&quot;base64-koodattu merkkijono&quot;,base64url:&quot;base64url-koodattu merkkijono&quot;,json_string:&quot;JSON-merkkijono&quot;,e164:&quot;E.164-luku&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;templaattimerkkijono&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Virheellinen syöte: täytyy olla ${re(r.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Virheellinen syöte: täytyy alkaa &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Virheellinen syöte: täytyy loppua &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Virheellinen syöte: täytyy sisältää &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Virheellinen luku: täytyy olla luvun ${r.divisor} monikerta`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Tuntemattomat avaimet&quot;:&quot;Tuntematon avain&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return&quot;Virheellinen avain tietueessa&quot;;case&quot;invalid_union&quot;:return&quot;Virheellinen unioni&quot;;case&quot;invalid_element&quot;:return&quot;Virheellinen arvo joukossa&quot;;default:return&quot;Virheellinen syöte&quot;}}};function aI(){return{localeError:oI()}}const sI=()=&gt;{const e={string:{unit:&quot;caractères&quot;,verb:&quot;avoir&quot;},file:{unit:&quot;octets&quot;,verb:&quot;avoir&quot;},array:{unit:&quot;éléments&quot;,verb:&quot;avoir&quot;},set:{unit:&quot;éléments&quot;,verb:&quot;avoir&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;nombre&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;tableau&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;entrée&quot;,email:&quot;adresse e-mail&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;date et heure ISO&quot;,date:&quot;date ISO&quot;,time:&quot;heure ISO&quot;,duration:&quot;durée ISO&quot;,ipv4:&quot;adresse IPv4&quot;,ipv6:&quot;adresse IPv6&quot;,cidrv4:&quot;plage IPv4&quot;,cidrv6:&quot;plage IPv6&quot;,base64:&quot;chaîne encodée en base64&quot;,base64url:&quot;chaîne encodée en base64url&quot;,json_string:&quot;chaîne JSON&quot;,e164:&quot;numéro E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrée&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Entrée invalide : ${r.expected} attendu, ${n(r.input)} reçu`;case&quot;invalid_value&quot;:return r.values.length===1?`Entrée invalide : ${re(r.values[0])} attendu`:`Option invalide : une valeur parmi ${Z(r.values,&quot;|&quot;)} attendue`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Trop grand : ${r.origin??&quot;valeur&quot;} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??&quot;élément(s)&quot;}`:`Trop grand : ${r.origin??&quot;valeur&quot;} doit être ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit être ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Chaîne invalide : doit commencer par &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Chaîne invalide : doit se terminer par &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Chaîne invalide : doit inclure &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${i[o.format]??r.format} invalide`}case&quot;not_multiple_of&quot;:return`Nombre invalide : doit être un multiple de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Clé${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} non reconnue${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} : ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Clé invalide dans ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrée invalide&quot;;case&quot;invalid_element&quot;:return`Valeur invalide dans ${r.origin}`;default:return&quot;Entrée invalide&quot;}}};function uI(){return{localeError:sI()}}const lI=()=&gt;{const e={string:{unit:&quot;caractères&quot;,verb:&quot;avoir&quot;},file:{unit:&quot;octets&quot;,verb:&quot;avoir&quot;},array:{unit:&quot;éléments&quot;,verb:&quot;avoir&quot;},set:{unit:&quot;éléments&quot;,verb:&quot;avoir&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;entrée&quot;,email:&quot;adresse courriel&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;date-heure ISO&quot;,date:&quot;date ISO&quot;,time:&quot;heure ISO&quot;,duration:&quot;durée ISO&quot;,ipv4:&quot;adresse IPv4&quot;,ipv6:&quot;adresse IPv6&quot;,cidrv4:&quot;plage IPv4&quot;,cidrv6:&quot;plage IPv6&quot;,base64:&quot;chaîne encodée en base64&quot;,base64url:&quot;chaîne encodée en base64url&quot;,json_string:&quot;chaîne JSON&quot;,e164:&quot;numéro E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrée&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Entrée invalide : attendu ${r.expected}, reçu ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Entrée invalide : attendu ${re(r.values[0])}`:`Option invalide : attendu l&#39;une des valeurs suivantes ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;≤&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??&quot;la valeur&quot;} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??&quot;la valeur&quot;} soit ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;≥&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Chaîne invalide : doit commencer par &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Chaîne invalide : doit se terminer par &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Chaîne invalide : doit inclure &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${i[o.format]??r.format} invalide`}case&quot;not_multiple_of&quot;:return`Nombre invalide : doit être un multiple de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Clé${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} non reconnue${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} : ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Clé invalide dans ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrée invalide&quot;;case&quot;invalid_element&quot;:return`Valeur invalide dans ${r.origin}`;default:return&quot;Entrée invalide&quot;}}};function cI(){return{localeError:lI()}}const dI=()=&gt;{const e={string:{unit:&quot;אותיות&quot;,verb:&quot;לכלול&quot;},file:{unit:&quot;בייטים&quot;,verb:&quot;לכלול&quot;},array:{unit:&quot;פריטים&quot;,verb:&quot;לכלול&quot;},set:{unit:&quot;פריטים&quot;,verb:&quot;לכלול&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;קלט&quot;,email:&quot;כתובת אימייל&quot;,url:&quot;כתובת רשת&quot;,emoji:&quot;אימוג&#39;י&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;תאריך וזמן ISO&quot;,date:&quot;תאריך ISO&quot;,time:&quot;זמן ISO&quot;,duration:&quot;משך זמן ISO&quot;,ipv4:&quot;כתובת IPv4&quot;,ipv6:&quot;כתובת IPv6&quot;,cidrv4:&quot;טווח IPv4&quot;,cidrv6:&quot;טווח IPv6&quot;,base64:&quot;מחרוזת בבסיס 64&quot;,base64url:&quot;מחרוזת בבסיס 64 לכתובות רשת&quot;,json_string:&quot;מחרוזת JSON&quot;,e164:&quot;מספר E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;קלט&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`קלט לא תקין: צריך ${r.expected}, התקבל ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`קלט לא תקין: צריך ${re(r.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות  ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`גדול מדי: ${r.origin??&quot;value&quot;} צריך להיות ${o}${r.maximum.toString()} ${a.unit??&quot;elements&quot;}`:`גדול מדי: ${r.origin??&quot;value&quot;} צריך להיות ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`קטן מדי: ${r.origin} צריך להיות ${o}${r.minimum.toString()} ${a.unit}`:`קטן מדי: ${r.origin} צריך להיות ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`מחרוזת לא תקינה: חייבת להתחיל ב&quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`מחרוזת לא תקינה: חייבת להסתיים ב &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`מחרוזת לא תקינה: חייבת לכלול &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${o.pattern}`:`${i[o.format]??r.format} לא תקין`}case&quot;not_multiple_of&quot;:return`מספר לא תקין: חייב להיות מכפלה של ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`מפתח${r.keys.length&gt;1?&quot;ות&quot;:&quot;&quot;} לא מזוה${r.keys.length&gt;1?&quot;ים&quot;:&quot;ה&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`מפתח לא תקין ב${r.origin}`;case&quot;invalid_union&quot;:return&quot;קלט לא תקין&quot;;case&quot;invalid_element&quot;:return`ערך לא תקין ב${r.origin}`;default:return&quot;קלט לא תקין&quot;}}};function fI(){return{localeError:dI()}}const mI=()=&gt;{const e={string:{unit:&quot;karakter&quot;,verb:&quot;legyen&quot;},file:{unit:&quot;byte&quot;,verb:&quot;legyen&quot;},array:{unit:&quot;elem&quot;,verb:&quot;legyen&quot;},set:{unit:&quot;elem&quot;,verb:&quot;legyen&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;szám&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;tömb&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;bemenet&quot;,email:&quot;email cím&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO időbélyeg&quot;,date:&quot;ISO dátum&quot;,time:&quot;ISO idő&quot;,duration:&quot;ISO időintervallum&quot;,ipv4:&quot;IPv4 cím&quot;,ipv6:&quot;IPv6 cím&quot;,cidrv4:&quot;IPv4 tartomány&quot;,cidrv6:&quot;IPv6 tartomány&quot;,base64:&quot;base64-kódolt string&quot;,base64url:&quot;base64url-kódolt string&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164 szám&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;bemenet&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Érvénytelen bemenet: a várt érték ${r.expected}, a kapott érték ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Érvénytelen bemenet: a várt érték ${re(r.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Túl nagy: ${r.origin??&quot;érték&quot;} mérete túl nagy ${o}${r.maximum.toString()} ${a.unit??&quot;elem&quot;}`:`Túl nagy: a bemeneti érték ${r.origin??&quot;érték&quot;} túl nagy: ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Túl kicsi: a bemeneti érték ${r.origin} mérete túl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${r.origin} túl kicsi ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Érvénytelen string: &quot;${o.prefix}&quot; értékkel kell kezdődnie`:o.format===&quot;ends_with&quot;?`Érvénytelen string: &quot;${o.suffix}&quot; értékkel kell végződnie`:o.format===&quot;includes&quot;?`Érvénytelen string: &quot;${o.includes}&quot; értéket kell tartalmaznia`:o.format===&quot;regex&quot;?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Érvénytelen szám: ${r.divisor} többszörösének kell lennie`;case&quot;unrecognized_keys&quot;:return`Ismeretlen kulcs${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Érvénytelen kulcs ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Érvénytelen bemenet&quot;;case&quot;invalid_element&quot;:return`Érvénytelen érték: ${r.origin}`;default:return&quot;Érvénytelen bemenet&quot;}}};function pI(){return{localeError:mI()}}const hI=()=&gt;{const e={string:{unit:&quot;karakter&quot;,verb:&quot;memiliki&quot;},file:{unit:&quot;byte&quot;,verb:&quot;memiliki&quot;},array:{unit:&quot;item&quot;,verb:&quot;memiliki&quot;},set:{unit:&quot;item&quot;,verb:&quot;memiliki&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;alamat email&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;tanggal dan waktu format ISO&quot;,date:&quot;tanggal format ISO&quot;,time:&quot;jam format ISO&quot;,duration:&quot;durasi format ISO&quot;,ipv4:&quot;alamat IPv4&quot;,ipv6:&quot;alamat IPv6&quot;,cidrv4:&quot;rentang alamat IPv4&quot;,cidrv6:&quot;rentang alamat IPv6&quot;,base64:&quot;string dengan enkode base64&quot;,base64url:&quot;string dengan enkode base64url&quot;,json_string:&quot;string JSON&quot;,e164:&quot;angka E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Input tidak valid: diharapkan ${r.expected}, diterima ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Input tidak valid: diharapkan ${re(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??&quot;value&quot;} memiliki ${o}${r.maximum.toString()} ${a.unit??&quot;elemen&quot;}`:`Terlalu besar: diharapkan ${r.origin??&quot;value&quot;} menjadi ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`String tidak valid: harus dimulai dengan &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`String tidak valid: harus berakhir dengan &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`String tidak valid: harus menyertakan &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`String tidak valid: harus sesuai pola ${o.pattern}`:`${i[o.format]??r.format} tidak valid`}case&quot;not_multiple_of&quot;:return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Kunci tidak dikenali ${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Kunci tidak valid di ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Input tidak valid&quot;;case&quot;invalid_element&quot;:return`Nilai tidak valid di ${r.origin}`;default:return&quot;Input tidak valid&quot;}}};function vI(){return{localeError:hI()}}const gI=()=&gt;{const e={string:{unit:&quot;caratteri&quot;,verb:&quot;avere&quot;},file:{unit:&quot;byte&quot;,verb:&quot;avere&quot;},array:{unit:&quot;elementi&quot;,verb:&quot;avere&quot;},set:{unit:&quot;elementi&quot;,verb:&quot;avere&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;numero&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;vettore&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;indirizzo email&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;data e ora ISO&quot;,date:&quot;data ISO&quot;,time:&quot;ora ISO&quot;,duration:&quot;durata ISO&quot;,ipv4:&quot;indirizzo IPv4&quot;,ipv6:&quot;indirizzo IPv6&quot;,cidrv4:&quot;intervallo IPv4&quot;,cidrv6:&quot;intervallo IPv6&quot;,base64:&quot;stringa codificata in base64&quot;,base64url:&quot;URL codificata in base64&quot;,json_string:&quot;stringa JSON&quot;,e164:&quot;numero E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Input non valido: atteso ${r.expected}, ricevuto ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Input non valido: atteso ${re(r.values[0])}`:`Opzione non valida: atteso uno tra ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Troppo grande: ${r.origin??&quot;valore&quot;} deve avere ${o}${r.maximum.toString()} ${a.unit??&quot;elementi&quot;}`:`Troppo grande: ${r.origin??&quot;valore&quot;} deve essere ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Stringa non valida: deve iniziare con &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Stringa non valida: deve terminare con &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Stringa non valida: deve includere &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Chiav${r.keys.length&gt;1?&quot;i&quot;:&quot;e&quot;} non riconosciut${r.keys.length&gt;1?&quot;e&quot;:&quot;a&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Chiave non valida in ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Input non valido&quot;;case&quot;invalid_element&quot;:return`Valore non valido in ${r.origin}`;default:return&quot;Input non valido&quot;}}};function yI(){return{localeError:gI()}}const _I=()=&gt;{const e={string:{unit:&quot;文字&quot;,verb:&quot;である&quot;},file:{unit:&quot;バイト&quot;,verb:&quot;である&quot;},array:{unit:&quot;要素&quot;,verb:&quot;である&quot;},set:{unit:&quot;要素&quot;,verb:&quot;である&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;数値&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;配列&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;入力値&quot;,email:&quot;メールアドレス&quot;,url:&quot;URL&quot;,emoji:&quot;絵文字&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO日時&quot;,date:&quot;ISO日付&quot;,time:&quot;ISO時刻&quot;,duration:&quot;ISO期間&quot;,ipv4:&quot;IPv4アドレス&quot;,ipv6:&quot;IPv6アドレス&quot;,cidrv4:&quot;IPv4範囲&quot;,cidrv6:&quot;IPv6範囲&quot;,base64:&quot;base64エンコード文字列&quot;,base64url:&quot;base64urlエンコード文字列&quot;,json_string:&quot;JSON文字列&quot;,e164:&quot;E.164番号&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;入力値&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`無効な入力: ${r.expected}が期待されましたが、${n(r.input)}が入力されました`;case&quot;invalid_value&quot;:return r.values.length===1?`無効な入力: ${re(r.values[0])}が期待されました`:`無効な選択: ${Z(r.values,&quot;、&quot;)}のいずれかである必要があります`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;以下である&quot;:&quot;より小さい&quot;,a=t(r.origin);return a?`大きすぎる値: ${r.origin??&quot;値&quot;}は${r.maximum.toString()}${a.unit??&quot;要素&quot;}${o}必要があります`:`大きすぎる値: ${r.origin??&quot;値&quot;}は${r.maximum.toString()}${o}必要があります`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;以上である&quot;:&quot;より大きい&quot;,a=t(r.origin);return a?`小さすぎる値: ${r.origin}は${r.minimum.toString()}${a.unit}${o}必要があります`:`小さすぎる値: ${r.origin}は${r.minimum.toString()}${o}必要があります`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`無効な文字列: &quot;${o.prefix}&quot;で始まる必要があります`:o.format===&quot;ends_with&quot;?`無効な文字列: &quot;${o.suffix}&quot;で終わる必要があります`:o.format===&quot;includes&quot;?`無効な文字列: &quot;${o.includes}&quot;を含む必要があります`:o.format===&quot;regex&quot;?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`無効な数値: ${r.divisor}の倍数である必要があります`;case&quot;unrecognized_keys&quot;:return`認識されていないキー${r.keys.length&gt;1?&quot;群&quot;:&quot;&quot;}: ${Z(r.keys,&quot;、&quot;)}`;case&quot;invalid_key&quot;:return`${r.origin}内の無効なキー`;case&quot;invalid_union&quot;:return&quot;無効な入力&quot;;case&quot;invalid_element&quot;:return`${r.origin}内の無効な値`;default:return&quot;無効な入力&quot;}}};function wI(){return{localeError:_I()}}const $I=()=&gt;{const e={string:{unit:&quot;តួអក្សរ&quot;,verb:&quot;គួរមាន&quot;},file:{unit:&quot;បៃ&quot;,verb:&quot;គួរមាន&quot;},array:{unit:&quot;ធាតុ&quot;,verb:&quot;គួរមាន&quot;},set:{unit:&quot;ធាតុ&quot;,verb:&quot;គួរមាន&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;មិនមែនជាលេខ (NaN)&quot;:&quot;លេខ&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;អារេ (Array)&quot;;if(r===null)return&quot;គ្មានតម្លៃ (null)&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ទិន្នន័យបញ្ចូល&quot;,email:&quot;អាសយដ្ឋានអ៊ីមែល&quot;,url:&quot;URL&quot;,emoji:&quot;សញ្ញាអារម្មណ៍&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;កាលបរិច្ឆេទ និងម៉ោង ISO&quot;,date:&quot;កាលបរិច្ឆេទ ISO&quot;,time:&quot;ម៉ោង ISO&quot;,duration:&quot;រយៈពេល ISO&quot;,ipv4:&quot;អាសយដ្ឋាន IPv4&quot;,ipv6:&quot;អាសយដ្ឋាន IPv6&quot;,cidrv4:&quot;ដែនអាសយដ្ឋាន IPv4&quot;,cidrv6:&quot;ដែនអាសយដ្ឋាន IPv6&quot;,base64:&quot;ខ្សែអក្សរអ៊ិកូដ base64&quot;,base64url:&quot;ខ្សែអក្សរអ៊ិកូដ base64url&quot;,json_string:&quot;ខ្សែអក្សរ JSON&quot;,e164:&quot;លេខ E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;ទិន្នន័យបញ្ចូល&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${r.expected} ប៉ុន្តែទទួលបាន ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${re(r.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`ធំពេក៖ ត្រូវការ ${r.origin??&quot;តម្លៃ&quot;} ${o} ${r.maximum.toString()} ${a.unit??&quot;ធាតុ&quot;}`:`ធំពេក៖ ត្រូវការ ${r.origin??&quot;តម្លៃ&quot;} ${o} ${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`តូចពេក៖ ត្រូវការ ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${r.origin} ${o} ${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`រកឃើញសោមិនស្គាល់៖ ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`សោមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;case&quot;invalid_union&quot;:return&quot;ទិន្នន័យមិនត្រឹមត្រូវ&quot;;case&quot;invalid_element&quot;:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;default:return&quot;ទិន្នន័យមិនត្រឹមត្រូវ&quot;}}};function kI(){return{localeError:$I()}}const SI=()=&gt;{const e={string:{unit:&quot;문자&quot;,verb:&quot;to have&quot;},file:{unit:&quot;바이트&quot;,verb:&quot;to have&quot;},array:{unit:&quot;개&quot;,verb:&quot;to have&quot;},set:{unit:&quot;개&quot;,verb:&quot;to have&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;입력&quot;,email:&quot;이메일 주소&quot;,url:&quot;URL&quot;,emoji:&quot;이모지&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO 날짜시간&quot;,date:&quot;ISO 날짜&quot;,time:&quot;ISO 시간&quot;,duration:&quot;ISO 기간&quot;,ipv4:&quot;IPv4 주소&quot;,ipv6:&quot;IPv6 주소&quot;,cidrv4:&quot;IPv4 범위&quot;,cidrv6:&quot;IPv6 범위&quot;,base64:&quot;base64 인코딩 문자열&quot;,base64url:&quot;base64url 인코딩 문자열&quot;,json_string:&quot;JSON 문자열&quot;,e164:&quot;E.164 번호&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;입력&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`잘못된 입력: 예상 타입은 ${r.expected}, 받은 타입은 ${n(r.input)}입니다`;case&quot;invalid_value&quot;:return r.values.length===1?`잘못된 입력: 값은 ${re(r.values[0])} 이어야 합니다`:`잘못된 옵션: ${Z(r.values,&quot;또는 &quot;)} 중 하나여야 합니다`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;이하&quot;:&quot;미만&quot;,a=o===&quot;미만&quot;?&quot;이어야 합니다&quot;:&quot;여야 합니다&quot;,s=t(r.origin),u=(s==null?void 0:s.unit)??&quot;요소&quot;;return s?`${r.origin??&quot;값&quot;}이 너무 큽니다: ${r.maximum.toString()}${u} ${o}${a}`:`${r.origin??&quot;값&quot;}이 너무 큽니다: ${r.maximum.toString()} ${o}${a}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;이상&quot;:&quot;초과&quot;,a=o===&quot;이상&quot;?&quot;이어야 합니다&quot;:&quot;여야 합니다&quot;,s=t(r.origin),u=(s==null?void 0:s.unit)??&quot;요소&quot;;return s?`${r.origin??&quot;값&quot;}이 너무 작습니다: ${r.minimum.toString()}${u} ${o}${a}`:`${r.origin??&quot;값&quot;}이 너무 작습니다: ${r.minimum.toString()} ${o}${a}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`잘못된 문자열: &quot;${o.prefix}&quot;(으)로 시작해야 합니다`:o.format===&quot;ends_with&quot;?`잘못된 문자열: &quot;${o.suffix}&quot;(으)로 끝나야 합니다`:o.format===&quot;includes&quot;?`잘못된 문자열: &quot;${o.includes}&quot;을(를) 포함해야 합니다`:o.format===&quot;regex&quot;?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`잘못된 숫자: ${r.divisor}의 배수여야 합니다`;case&quot;unrecognized_keys&quot;:return`인식할 수 없는 키: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`잘못된 키: ${r.origin}`;case&quot;invalid_union&quot;:return&quot;잘못된 입력&quot;;case&quot;invalid_element&quot;:return`잘못된 값: ${r.origin}`;default:return&quot;잘못된 입력&quot;}}};function xI(){return{localeError:SI()}}const bI=()=&gt;{const e={string:{unit:&quot;знаци&quot;,verb:&quot;да имаат&quot;},file:{unit:&quot;бајти&quot;,verb:&quot;да имаат&quot;},array:{unit:&quot;ставки&quot;,verb:&quot;да имаат&quot;},set:{unit:&quot;ставки&quot;,verb:&quot;да имаат&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;број&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;низа&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;внес&quot;,email:&quot;адреса на е-пошта&quot;,url:&quot;URL&quot;,emoji:&quot;емоџи&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO датум и време&quot;,date:&quot;ISO датум&quot;,time:&quot;ISO време&quot;,duration:&quot;ISO времетраење&quot;,ipv4:&quot;IPv4 адреса&quot;,ipv6:&quot;IPv6 адреса&quot;,cidrv4:&quot;IPv4 опсег&quot;,cidrv6:&quot;IPv6 опсег&quot;,base64:&quot;base64-енкодирана низа&quot;,base64url:&quot;base64url-енкодирана низа&quot;,json_string:&quot;JSON низа&quot;,e164:&quot;E.164 број&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;внес&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Грешен внес: се очекува ${r.expected}, примено ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Invalid input: expected ${re(r.values[0])}`:`Грешана опција: се очекува една ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Премногу голем: се очекува ${r.origin??&quot;вредноста&quot;} да има ${o}${r.maximum.toString()} ${a.unit??&quot;елементи&quot;}`:`Премногу голем: се очекува ${r.origin??&quot;вредноста&quot;} да биде ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Премногу мал: се очекува ${r.origin} да има ${o}${r.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${r.origin} да биде ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Неважечка низа: мора да започнува со &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Неважечка низа: мора да завршува со &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Неважечка низа: мора да вклучува &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Грешен број: мора да биде делив со ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Непрепознаени клучеви&quot;:&quot;Непрепознаен клуч&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Грешен клуч во ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Грешен внес&quot;;case&quot;invalid_element&quot;:return`Грешна вредност во ${r.origin}`;default:return&quot;Грешен внес&quot;}}};function II(){return{localeError:bI()}}const zI=()=&gt;{const e={string:{unit:&quot;aksara&quot;,verb:&quot;mempunyai&quot;},file:{unit:&quot;bait&quot;,verb:&quot;mempunyai&quot;},array:{unit:&quot;elemen&quot;,verb:&quot;mempunyai&quot;},set:{unit:&quot;elemen&quot;,verb:&quot;mempunyai&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;nombor&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;alamat e-mel&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;tarikh masa ISO&quot;,date:&quot;tarikh ISO&quot;,time:&quot;masa ISO&quot;,duration:&quot;tempoh ISO&quot;,ipv4:&quot;alamat IPv4&quot;,ipv6:&quot;alamat IPv6&quot;,cidrv4:&quot;julat IPv4&quot;,cidrv6:&quot;julat IPv6&quot;,base64:&quot;string dikodkan base64&quot;,base64url:&quot;string dikodkan base64url&quot;,json_string:&quot;string JSON&quot;,e164:&quot;nombor E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Input tidak sah: dijangka ${r.expected}, diterima ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Input tidak sah: dijangka ${re(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??&quot;nilai&quot;} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??&quot;elemen&quot;}`:`Terlalu besar: dijangka ${r.origin??&quot;nilai&quot;} adalah ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`String tidak sah: mesti bermula dengan &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`String tidak sah: mesti berakhir dengan &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`String tidak sah: mesti mengandungi &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${i[o.format]??r.format} tidak sah`}case&quot;not_multiple_of&quot;:return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Kunci tidak dikenali: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Kunci tidak sah dalam ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Input tidak sah&quot;;case&quot;invalid_element&quot;:return`Nilai tidak sah dalam ${r.origin}`;default:return&quot;Input tidak sah&quot;}}};function OI(){return{localeError:zI()}}const EI=()=&gt;{const e={string:{unit:&quot;tekens&quot;},file:{unit:&quot;bytes&quot;},array:{unit:&quot;elementen&quot;},set:{unit:&quot;elementen&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;getal&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;invoer&quot;,email:&quot;emailadres&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datum en tijd&quot;,date:&quot;ISO datum&quot;,time:&quot;ISO tijd&quot;,duration:&quot;ISO duur&quot;,ipv4:&quot;IPv4-adres&quot;,ipv6:&quot;IPv6-adres&quot;,cidrv4:&quot;IPv4-bereik&quot;,cidrv6:&quot;IPv6-bereik&quot;,base64:&quot;base64-gecodeerde tekst&quot;,base64url:&quot;base64 URL-gecodeerde tekst&quot;,json_string:&quot;JSON string&quot;,e164:&quot;E.164-nummer&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;invoer&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Ongeldige invoer: verwacht ${r.expected}, ontving ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Ongeldige invoer: verwacht ${re(r.values[0])}`:`Ongeldige optie: verwacht één van ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Te lang: verwacht dat ${r.origin??&quot;waarde&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;elementen&quot;} bevat`:`Te lang: verwacht dat ${r.origin??&quot;waarde&quot;} ${o}${r.maximum.toString()} is`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Ongeldige tekst: moet met &quot;${o.prefix}&quot; beginnen`:o.format===&quot;ends_with&quot;?`Ongeldige tekst: moet op &quot;${o.suffix}&quot; eindigen`:o.format===&quot;includes&quot;?`Ongeldige tekst: moet &quot;${o.includes}&quot; bevatten`:o.format===&quot;regex&quot;?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case&quot;unrecognized_keys&quot;:return`Onbekende key${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Ongeldige key in ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Ongeldige invoer&quot;;case&quot;invalid_element&quot;:return`Ongeldige waarde in ${r.origin}`;default:return&quot;Ongeldige invoer&quot;}}};function NI(){return{localeError:EI()}}const jI=()=&gt;{const e={string:{unit:&quot;tegn&quot;,verb:&quot;å ha&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;å ha&quot;},array:{unit:&quot;elementer&quot;,verb:&quot;å inneholde&quot;},set:{unit:&quot;elementer&quot;,verb:&quot;å inneholde&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;tall&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;liste&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;input&quot;,email:&quot;e-postadresse&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO dato- og klokkeslett&quot;,date:&quot;ISO-dato&quot;,time:&quot;ISO-klokkeslett&quot;,duration:&quot;ISO-varighet&quot;,ipv4:&quot;IPv4-område&quot;,ipv6:&quot;IPv6-område&quot;,cidrv4:&quot;IPv4-spekter&quot;,cidrv6:&quot;IPv6-spekter&quot;,base64:&quot;base64-enkodet streng&quot;,base64url:&quot;base64url-enkodet streng&quot;,json_string:&quot;JSON-streng&quot;,e164:&quot;E.164-nummer&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Ugyldig input: forventet ${r.expected}, fikk ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Ugyldig verdi: forventet ${re(r.values[0])}`:`Ugyldig valg: forventet en av ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`For stor(t): forventet ${r.origin??&quot;value&quot;} til å ha ${o}${r.maximum.toString()} ${a.unit??&quot;elementer&quot;}`:`For stor(t): forventet ${r.origin??&quot;value&quot;} til å ha ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til å ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til å ha ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Ugyldig streng: må starte med &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Ugyldig streng: må ende med &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Ugyldig streng: må inneholde &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Ugyldig tall: må være et multiplum av ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Ukjente nøkler&quot;:&quot;Ukjent nøkkel&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Ugyldig nøkkel i ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Ugyldig input&quot;;case&quot;invalid_element&quot;:return`Ugyldig verdi i ${r.origin}`;default:return&quot;Ugyldig input&quot;}}};function TI(){return{localeError:jI()}}const PI=()=&gt;{const e={string:{unit:&quot;harf&quot;,verb:&quot;olmalıdır&quot;},file:{unit:&quot;bayt&quot;,verb:&quot;olmalıdır&quot;},array:{unit:&quot;unsur&quot;,verb:&quot;olmalıdır&quot;},set:{unit:&quot;unsur&quot;,verb:&quot;olmalıdır&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;numara&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;saf&quot;;if(r===null)return&quot;gayb&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;giren&quot;,email:&quot;epostagâh&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO hengâmı&quot;,date:&quot;ISO tarihi&quot;,time:&quot;ISO zamanı&quot;,duration:&quot;ISO müddeti&quot;,ipv4:&quot;IPv4 nişânı&quot;,ipv6:&quot;IPv6 nişânı&quot;,cidrv4:&quot;IPv4 menzili&quot;,cidrv6:&quot;IPv6 menzili&quot;,base64:&quot;base64-şifreli metin&quot;,base64url:&quot;base64url-şifreli metin&quot;,json_string:&quot;JSON metin&quot;,e164:&quot;E.164 sayısı&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;giren&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Fâsit giren: umulan ${r.expected}, alınan ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Fâsit giren: umulan ${re(r.values[0])}`:`Fâsit tercih: mûteberler ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Fazla büyük: ${r.origin??&quot;value&quot;}, ${o}${r.maximum.toString()} ${a.unit??&quot;elements&quot;} sahip olmalıydı.`:`Fazla büyük: ${r.origin??&quot;value&quot;}, ${o}${r.maximum.toString()} olmalıydı.`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Fazla küçük: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${r.origin}, ${o}${r.minimum.toString()} olmalıydı.`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Fâsit metin: &quot;${o.prefix}&quot; ile başlamalı.`:o.format===&quot;ends_with&quot;?`Fâsit metin: &quot;${o.suffix}&quot; ile bitmeli.`:o.format===&quot;includes&quot;?`Fâsit metin: &quot;${o.includes}&quot; ihtivâ etmeli.`:o.format===&quot;regex&quot;?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Fâsit sayı: ${r.divisor} katı olmalıydı.`;case&quot;unrecognized_keys&quot;:return`Tanınmayan anahtar ${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} için tanınmayan anahtar var.`;case&quot;invalid_union&quot;:return&quot;Giren tanınamadı.&quot;;case&quot;invalid_element&quot;:return`${r.origin} için tanınmayan kıymet var.`;default:return&quot;Kıymet tanınamadı.&quot;}}};function UI(){return{localeError:PI()}}const CI=()=&gt;{const e={string:{unit:&quot;توکي&quot;,verb:&quot;ولري&quot;},file:{unit:&quot;بایټس&quot;,verb:&quot;ولري&quot;},array:{unit:&quot;توکي&quot;,verb:&quot;ولري&quot;},set:{unit:&quot;توکي&quot;,verb:&quot;ولري&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;عدد&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;ارې&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ورودي&quot;,email:&quot;بریښنالیک&quot;,url:&quot;یو آر ال&quot;,emoji:&quot;ایموجي&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;نیټه او وخت&quot;,date:&quot;نېټه&quot;,time:&quot;وخت&quot;,duration:&quot;موده&quot;,ipv4:&quot;د IPv4 پته&quot;,ipv6:&quot;د IPv6 پته&quot;,cidrv4:&quot;د IPv4 ساحه&quot;,cidrv6:&quot;د IPv6 ساحه&quot;,base64:&quot;base64-encoded متن&quot;,base64url:&quot;base64url-encoded متن&quot;,json_string:&quot;JSON متن&quot;,e164:&quot;د E.164 شمېره&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;ورودي&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`ناسم ورودي: باید ${r.expected} وای, مګر ${n(r.input)} ترلاسه شو`;case&quot;invalid_value&quot;:return r.values.length===1?`ناسم ورودي: باید ${re(r.values[0])} وای`:`ناسم انتخاب: باید یو له ${Z(r.values,&quot;|&quot;)} څخه وای`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`ډیر لوی: ${r.origin??&quot;ارزښت&quot;} باید ${o}${r.maximum.toString()} ${a.unit??&quot;عنصرونه&quot;} ولري`:`ډیر لوی: ${r.origin??&quot;ارزښت&quot;} باید ${o}${r.maximum.toString()} وي`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`ډیر کوچنی: ${r.origin} باید ${o}${r.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${r.origin} باید ${o}${r.minimum.toString()} وي`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`ناسم متن: باید د &quot;${o.prefix}&quot; سره پیل شي`:o.format===&quot;ends_with&quot;?`ناسم متن: باید د &quot;${o.suffix}&quot; سره پای ته ورسيږي`:o.format===&quot;includes&quot;?`ناسم متن: باید &quot;${o.includes}&quot; ولري`:o.format===&quot;regex&quot;?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${i[o.format]??r.format} ناسم دی`}case&quot;not_multiple_of&quot;:return`ناسم عدد: باید د ${r.divisor} مضرب وي`;case&quot;unrecognized_keys&quot;:return`ناسم ${r.keys.length&gt;1?&quot;کلیډونه&quot;:&quot;کلیډ&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`ناسم کلیډ په ${r.origin} کې`;case&quot;invalid_union&quot;:return&quot;ناسمه ورودي&quot;;case&quot;invalid_element&quot;:return`ناسم عنصر په ${r.origin} کې`;default:return&quot;ناسمه ورودي&quot;}}};function AI(){return{localeError:CI()}}const DI=()=&gt;{const e={string:{unit:&quot;znaków&quot;,verb:&quot;mieć&quot;},file:{unit:&quot;bajtów&quot;,verb:&quot;mieć&quot;},array:{unit:&quot;elementów&quot;,verb:&quot;mieć&quot;},set:{unit:&quot;elementów&quot;,verb:&quot;mieć&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;liczba&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;tablica&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;wyrażenie&quot;,email:&quot;adres email&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;data i godzina w formacie ISO&quot;,date:&quot;data w formacie ISO&quot;,time:&quot;godzina w formacie ISO&quot;,duration:&quot;czas trwania ISO&quot;,ipv4:&quot;adres IPv4&quot;,ipv6:&quot;adres IPv6&quot;,cidrv4:&quot;zakres IPv4&quot;,cidrv6:&quot;zakres IPv6&quot;,base64:&quot;ciąg znaków zakodowany w formacie base64&quot;,base64url:&quot;ciąg znaków zakodowany w formacie base64url&quot;,json_string:&quot;ciąg znaków w formacie JSON&quot;,e164:&quot;liczba E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;wejście&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Nieprawidłowe dane wejściowe: oczekiwano ${r.expected}, otrzymano ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${re(r.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Za duża wartość: oczekiwano, że ${r.origin??&quot;wartość&quot;} będzie mieć ${o}${r.maximum.toString()} ${a.unit??&quot;elementów&quot;}`:`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??&quot;wartość&quot;} będzie wynosić ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Za mała wartość: oczekiwano, że ${r.origin??&quot;wartość&quot;} będzie mieć ${o}${r.minimum.toString()} ${a.unit??&quot;elementów&quot;}`:`Zbyt mał(y/a/e): oczekiwano, że ${r.origin??&quot;wartość&quot;} będzie wynosić ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Nieprawidłowy ciąg znaków: musi zaczynać się od &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Nieprawidłowy ciąg znaków: musi kończyć się na &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Nieprawidłowy ciąg znaków: musi zawierać &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Nieprawidłowa liczba: musi być wielokrotnością ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Nierozpoznane klucze${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Nieprawidłowy klucz w ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Nieprawidłowe dane wejściowe&quot;;case&quot;invalid_element&quot;:return`Nieprawidłowa wartość w ${r.origin}`;default:return&quot;Nieprawidłowe dane wejściowe&quot;}}};function RI(){return{localeError:DI()}}const ZI=()=&gt;{const e={string:{unit:&quot;caracteres&quot;,verb:&quot;ter&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;ter&quot;},array:{unit:&quot;itens&quot;,verb:&quot;ter&quot;},set:{unit:&quot;itens&quot;,verb:&quot;ter&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;número&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;nulo&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;padrão&quot;,email:&quot;endereço de e-mail&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;data e hora ISO&quot;,date:&quot;data ISO&quot;,time:&quot;hora ISO&quot;,duration:&quot;duração ISO&quot;,ipv4:&quot;endereço IPv4&quot;,ipv6:&quot;endereço IPv6&quot;,cidrv4:&quot;faixa de IPv4&quot;,cidrv6:&quot;faixa de IPv6&quot;,base64:&quot;texto codificado em base64&quot;,base64url:&quot;URL codificada em base64&quot;,json_string:&quot;texto JSON&quot;,e164:&quot;número E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;entrada&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Tipo inválido: esperado ${r.expected}, recebido ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Entrada inválida: esperado ${re(r.values[0])}`:`Opção inválida: esperada uma das ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??&quot;valor&quot;} tivesse ${o}${r.maximum.toString()} ${a.unit??&quot;elementos&quot;}`:`Muito grande: esperado que ${r.origin??&quot;valor&quot;} fosse ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Texto inválido: deve começar com &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Texto inválido: deve terminar com &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Texto inválido: deve incluir &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${i[o.format]??r.format} inválido`}case&quot;not_multiple_of&quot;:return`Número inválido: deve ser múltiplo de ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Chave${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;} desconhecida${r.keys.length&gt;1?&quot;s&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Chave inválida em ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Entrada inválida&quot;;case&quot;invalid_element&quot;:return`Valor inválido em ${r.origin}`;default:return&quot;Campo inválido&quot;}}};function LI(){return{localeError:ZI()}}function Ih(e,t,n,i){const r=Math.abs(e),o=r%10,a=r%100;return a&gt;=11&amp;&amp;a&lt;=19?i:o===1?t:o&gt;=2&amp;&amp;o&lt;=4?n:i}const MI=()=&gt;{const e={string:{unit:{one:&quot;символ&quot;,few:&quot;символа&quot;,many:&quot;символов&quot;},verb:&quot;иметь&quot;},file:{unit:{one:&quot;байт&quot;,few:&quot;байта&quot;,many:&quot;байт&quot;},verb:&quot;иметь&quot;},array:{unit:{one:&quot;элемент&quot;,few:&quot;элемента&quot;,many:&quot;элементов&quot;},verb:&quot;иметь&quot;},set:{unit:{one:&quot;элемент&quot;,few:&quot;элемента&quot;,many:&quot;элементов&quot;},verb:&quot;иметь&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;число&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;массив&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ввод&quot;,email:&quot;email адрес&quot;,url:&quot;URL&quot;,emoji:&quot;эмодзи&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO дата и время&quot;,date:&quot;ISO дата&quot;,time:&quot;ISO время&quot;,duration:&quot;ISO длительность&quot;,ipv4:&quot;IPv4 адрес&quot;,ipv6:&quot;IPv6 адрес&quot;,cidrv4:&quot;IPv4 диапазон&quot;,cidrv6:&quot;IPv6 диапазон&quot;,base64:&quot;строка в формате base64&quot;,base64url:&quot;строка в формате base64url&quot;,json_string:&quot;JSON строка&quot;,e164:&quot;номер E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;ввод&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Неверный ввод: ожидалось ${r.expected}, получено ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Неверный ввод: ожидалось ${re(r.values[0])}`:`Неверный вариант: ожидалось одно из ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);if(a){const s=Number(r.maximum),u=Ih(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${r.origin??&quot;значение&quot;} будет иметь ${o}${r.maximum.toString()} ${u}`}return`Слишком большое значение: ожидалось, что ${r.origin??&quot;значение&quot;} будет ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);if(a){const s=Number(r.minimum),u=Ih(s,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${r.origin} будет иметь ${o}${r.minimum.toString()} ${u}`}return`Слишком маленькое значение: ожидалось, что ${r.origin} будет ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Неверная строка: должна начинаться с &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Неверная строка: должна заканчиваться на &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Неверная строка: должна содержать &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Неверное число: должно быть кратным ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Нераспознанн${r.keys.length&gt;1?&quot;ые&quot;:&quot;ый&quot;} ключ${r.keys.length&gt;1?&quot;и&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Неверный ключ в ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Неверные входные данные&quot;;case&quot;invalid_element&quot;:return`Неверное значение в ${r.origin}`;default:return&quot;Неверные входные данные&quot;}}};function FI(){return{localeError:MI()}}const VI=()=&gt;{const e={string:{unit:&quot;znakov&quot;,verb:&quot;imeti&quot;},file:{unit:&quot;bajtov&quot;,verb:&quot;imeti&quot;},array:{unit:&quot;elementov&quot;,verb:&quot;imeti&quot;},set:{unit:&quot;elementov&quot;,verb:&quot;imeti&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;število&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;tabela&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;vnos&quot;,email:&quot;e-poštni naslov&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO datum in čas&quot;,date:&quot;ISO datum&quot;,time:&quot;ISO čas&quot;,duration:&quot;ISO trajanje&quot;,ipv4:&quot;IPv4 naslov&quot;,ipv6:&quot;IPv6 naslov&quot;,cidrv4:&quot;obseg IPv4&quot;,cidrv6:&quot;obseg IPv6&quot;,base64:&quot;base64 kodiran niz&quot;,base64url:&quot;base64url kodiran niz&quot;,json_string:&quot;JSON niz&quot;,e164:&quot;E.164 številka&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;vnos&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Neveljaven vnos: pričakovano ${r.expected}, prejeto ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Neveljaven vnos: pričakovano ${re(r.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Preveliko: pričakovano, da bo ${r.origin??&quot;vrednost&quot;} imelo ${o}${r.maximum.toString()} ${a.unit??&quot;elementov&quot;}`:`Preveliko: pričakovano, da bo ${r.origin??&quot;vrednost&quot;} ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Premajhno: pričakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Neveljaven niz: mora se začeti z &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Neveljaven niz: mora se končati z &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Neveljaven niz: mora vsebovati &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Neveljavno število: mora biti večkratnik ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Neprepoznan${r.keys.length&gt;1?&quot;i ključi&quot;:&quot; ključ&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Neveljaven ključ v ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Neveljaven vnos&quot;;case&quot;invalid_element&quot;:return`Neveljavna vrednost v ${r.origin}`;default:return&quot;Neveljaven vnos&quot;}}};function BI(){return{localeError:VI()}}const WI=()=&gt;{const e={string:{unit:&quot;tecken&quot;,verb:&quot;att ha&quot;},file:{unit:&quot;bytes&quot;,verb:&quot;att ha&quot;},array:{unit:&quot;objekt&quot;,verb:&quot;att innehålla&quot;},set:{unit:&quot;objekt&quot;,verb:&quot;att innehålla&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;antal&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;lista&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;reguljärt uttryck&quot;,email:&quot;e-postadress&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO-datum och tid&quot;,date:&quot;ISO-datum&quot;,time:&quot;ISO-tid&quot;,duration:&quot;ISO-varaktighet&quot;,ipv4:&quot;IPv4-intervall&quot;,ipv6:&quot;IPv6-intervall&quot;,cidrv4:&quot;IPv4-spektrum&quot;,cidrv6:&quot;IPv6-spektrum&quot;,base64:&quot;base64-kodad sträng&quot;,base64url:&quot;base64url-kodad sträng&quot;,json_string:&quot;JSON-sträng&quot;,e164:&quot;E.164-nummer&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;mall-literal&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Ogiltig inmatning: förväntat ${r.expected}, fick ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Ogiltig inmatning: förväntat ${re(r.values[0])}`:`Ogiltigt val: förväntade en av ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`För stor(t): förväntade ${r.origin??&quot;värdet&quot;} att ha ${o}${r.maximum.toString()} ${a.unit??&quot;element&quot;}`:`För stor(t): förväntat ${r.origin??&quot;värdet&quot;} att ha ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`För lite(t): förväntade ${r.origin??&quot;värdet&quot;} att ha ${o}${r.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${r.origin??&quot;värdet&quot;} att ha ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Ogiltig sträng: måste börja med &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Ogiltig sträng: måste sluta med &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Ogiltig sträng: måste innehålla &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Ogiltig sträng: måste matcha mönstret &quot;${o.pattern}&quot;`:`Ogiltig(t) ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Ogiltigt tal: måste vara en multipel av ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`${r.keys.length&gt;1?&quot;Okända nycklar&quot;:&quot;Okänd nyckel&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Ogiltig nyckel i ${r.origin??&quot;värdet&quot;}`;case&quot;invalid_union&quot;:return&quot;Ogiltig input&quot;;case&quot;invalid_element&quot;:return`Ogiltigt värde i ${r.origin??&quot;värdet&quot;}`;default:return&quot;Ogiltig input&quot;}}};function JI(){return{localeError:WI()}}const KI=()=&gt;{const e={string:{unit:&quot;எழுத்துக்கள்&quot;,verb:&quot;கொண்டிருக்க வேண்டும்&quot;},file:{unit:&quot;பைட்டுகள்&quot;,verb:&quot;கொண்டிருக்க வேண்டும்&quot;},array:{unit:&quot;உறுப்புகள்&quot;,verb:&quot;கொண்டிருக்க வேண்டும்&quot;},set:{unit:&quot;உறுப்புகள்&quot;,verb:&quot;கொண்டிருக்க வேண்டும்&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;எண் அல்லாதது&quot;:&quot;எண்&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;அணி&quot;;if(r===null)return&quot;வெறுமை&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;உள்ளீடு&quot;,email:&quot;மின்னஞ்சல் முகவரி&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO தேதி நேரம்&quot;,date:&quot;ISO தேதி&quot;,time:&quot;ISO நேரம்&quot;,duration:&quot;ISO கால அளவு&quot;,ipv4:&quot;IPv4 முகவரி&quot;,ipv6:&quot;IPv6 முகவரி&quot;,cidrv4:&quot;IPv4 வரம்பு&quot;,cidrv6:&quot;IPv6 வரம்பு&quot;,base64:&quot;base64-encoded சரம்&quot;,base64url:&quot;base64url-encoded சரம்&quot;,json_string:&quot;JSON சரம்&quot;,e164:&quot;E.164 எண்&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;input&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${r.expected}, பெறப்பட்டது ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${re(r.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${Z(r.values,&quot;|&quot;)} இல் ஒன்று`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??&quot;மதிப்பு&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;உறுப்புகள்&quot;} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??&quot;மதிப்பு&quot;} ${o}${r.maximum.toString()} ஆக இருக்க வேண்டும்`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${o}${r.minimum.toString()} ஆக இருக்க வேண்டும்`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`தவறான சரம்: &quot;${o.prefix}&quot; இல் தொடங்க வேண்டும்`:o.format===&quot;ends_with&quot;?`தவறான சரம்: &quot;${o.suffix}&quot; இல் முடிவடைய வேண்டும்`:o.format===&quot;includes&quot;?`தவறான சரம்: &quot;${o.includes}&quot; ஐ உள்ளடக்க வேண்டும்`:o.format===&quot;regex&quot;?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`தவறான எண்: ${r.divisor} இன் பலமாக இருக்க வேண்டும்`;case&quot;unrecognized_keys&quot;:return`அடையாளம் தெரியாத விசை${r.keys.length&gt;1?&quot;கள்&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} இல் தவறான விசை`;case&quot;invalid_union&quot;:return&quot;தவறான உள்ளீடு&quot;;case&quot;invalid_element&quot;:return`${r.origin} இல் தவறான மதிப்பு`;default:return&quot;தவறான உள்ளீடு&quot;}}};function HI(){return{localeError:KI()}}const GI=()=&gt;{const e={string:{unit:&quot;ตัวอักษร&quot;,verb:&quot;ควรมี&quot;},file:{unit:&quot;ไบต์&quot;,verb:&quot;ควรมี&quot;},array:{unit:&quot;รายการ&quot;,verb:&quot;ควรมี&quot;},set:{unit:&quot;รายการ&quot;,verb:&quot;ควรมี&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;ไม่ใช่ตัวเลข (NaN)&quot;:&quot;ตัวเลข&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;อาร์เรย์ (Array)&quot;;if(r===null)return&quot;ไม่มีค่า (null)&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ข้อมูลที่ป้อน&quot;,email:&quot;ที่อยู่อีเมล&quot;,url:&quot;URL&quot;,emoji:&quot;อิโมจิ&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;วันที่เวลาแบบ ISO&quot;,date:&quot;วันที่แบบ ISO&quot;,time:&quot;เวลาแบบ ISO&quot;,duration:&quot;ช่วงเวลาแบบ ISO&quot;,ipv4:&quot;ที่อยู่ IPv4&quot;,ipv6:&quot;ที่อยู่ IPv6&quot;,cidrv4:&quot;ช่วง IP แบบ IPv4&quot;,cidrv6:&quot;ช่วง IP แบบ IPv6&quot;,base64:&quot;ข้อความแบบ Base64&quot;,base64url:&quot;ข้อความแบบ Base64 สำหรับ URL&quot;,json_string:&quot;ข้อความแบบ JSON&quot;,e164:&quot;เบอร์โทรศัพท์ระหว่างประเทศ (E.164)&quot;,jwt:&quot;โทเคน JWT&quot;,template_literal:&quot;ข้อมูลที่ป้อน&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${r.expected} แต่ได้รับ ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${re(r.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;ไม่เกิน&quot;:&quot;น้อยกว่า&quot;,a=t(r.origin);return a?`เกินกำหนด: ${r.origin??&quot;ค่า&quot;} ควรมี${o} ${r.maximum.toString()} ${a.unit??&quot;รายการ&quot;}`:`เกินกำหนด: ${r.origin??&quot;ค่า&quot;} ควรมี${o} ${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;อย่างน้อย&quot;:&quot;มากกว่า&quot;,a=t(r.origin);return a?`น้อยกว่ากำหนด: ${r.origin} ควรมี${o} ${r.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${r.origin} ควรมี${o} ${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี &quot;${o.includes}&quot; อยู่ในข้อความ`:o.format===&quot;regex&quot;?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${r.divisor} ได้ลงตัว`;case&quot;unrecognized_keys&quot;:return`พบคีย์ที่ไม่รู้จัก: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`คีย์ไม่ถูกต้องใน ${r.origin}`;case&quot;invalid_union&quot;:return&quot;ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้&quot;;case&quot;invalid_element&quot;:return`ข้อมูลไม่ถูกต้องใน ${r.origin}`;default:return&quot;ข้อมูลไม่ถูกต้อง&quot;}}};function QI(){return{localeError:GI()}}const XI=e=&gt;{const t=typeof e;switch(t){case&quot;number&quot;:return Number.isNaN(e)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(e))return&quot;array&quot;;if(e===null)return&quot;null&quot;;if(Object.getPrototypeOf(e)!==Object.prototype&amp;&amp;e.constructor)return e.constructor.name}}return t},YI=()=&gt;{const e={string:{unit:&quot;karakter&quot;,verb:&quot;olmalı&quot;},file:{unit:&quot;bayt&quot;,verb:&quot;olmalı&quot;},array:{unit:&quot;öğe&quot;,verb:&quot;olmalı&quot;},set:{unit:&quot;öğe&quot;,verb:&quot;olmalı&quot;}};function t(i){return e[i]??null}const n={regex:&quot;girdi&quot;,email:&quot;e-posta adresi&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO tarih ve saat&quot;,date:&quot;ISO tarih&quot;,time:&quot;ISO saat&quot;,duration:&quot;ISO süre&quot;,ipv4:&quot;IPv4 adresi&quot;,ipv6:&quot;IPv6 adresi&quot;,cidrv4:&quot;IPv4 aralığı&quot;,cidrv6:&quot;IPv6 aralığı&quot;,base64:&quot;base64 ile şifrelenmiş metin&quot;,base64url:&quot;base64url ile şifrelenmiş metin&quot;,json_string:&quot;JSON dizesi&quot;,e164:&quot;E.164 sayısı&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;Şablon dizesi&quot;};return i=&gt;{switch(i.code){case&quot;invalid_type&quot;:return`Geçersiz değer: beklenen ${i.expected}, alınan ${XI(i.input)}`;case&quot;invalid_value&quot;:return i.values.length===1?`Geçersiz değer: beklenen ${re(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${Z(i.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const r=i.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,o=t(i.origin);return o?`Çok büyük: beklenen ${i.origin??&quot;değer&quot;} ${r}${i.maximum.toString()} ${o.unit??&quot;öğe&quot;}`:`Çok büyük: beklenen ${i.origin??&quot;değer&quot;} ${r}${i.maximum.toString()}`}case&quot;too_small&quot;:{const r=i.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,o=t(i.origin);return o?`Çok küçük: beklenen ${i.origin} ${r}${i.minimum.toString()} ${o.unit}`:`Çok küçük: beklenen ${i.origin} ${r}${i.minimum.toString()}`}case&quot;invalid_format&quot;:{const r=i;return r.format===&quot;starts_with&quot;?`Geçersiz metin: &quot;${r.prefix}&quot; ile başlamalı`:r.format===&quot;ends_with&quot;?`Geçersiz metin: &quot;${r.suffix}&quot; ile bitmeli`:r.format===&quot;includes&quot;?`Geçersiz metin: &quot;${r.includes}&quot; içermeli`:r.format===&quot;regex&quot;?`Geçersiz metin: ${r.pattern} desenine uymalı`:`Geçersiz ${n[r.format]??i.format}`}case&quot;not_multiple_of&quot;:return`Geçersiz sayı: ${i.divisor} ile tam bölünebilmeli`;case&quot;unrecognized_keys&quot;:return`Tanınmayan anahtar${i.keys.length&gt;1?&quot;lar&quot;:&quot;&quot;}: ${Z(i.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${i.origin} içinde geçersiz anahtar`;case&quot;invalid_union&quot;:return&quot;Geçersiz değer&quot;;case&quot;invalid_element&quot;:return`${i.origin} içinde geçersiz değer`;default:return&quot;Geçersiz değer&quot;}}};function qI(){return{localeError:YI()}}const ez=()=&gt;{const e={string:{unit:&quot;символів&quot;,verb:&quot;матиме&quot;},file:{unit:&quot;байтів&quot;,verb:&quot;матиме&quot;},array:{unit:&quot;елементів&quot;,verb:&quot;матиме&quot;},set:{unit:&quot;елементів&quot;,verb:&quot;матиме&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;число&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;масив&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;вхідні дані&quot;,email:&quot;адреса електронної пошти&quot;,url:&quot;URL&quot;,emoji:&quot;емодзі&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;дата та час ISO&quot;,date:&quot;дата ISO&quot;,time:&quot;час ISO&quot;,duration:&quot;тривалість ISO&quot;,ipv4:&quot;адреса IPv4&quot;,ipv6:&quot;адреса IPv6&quot;,cidrv4:&quot;діапазон IPv4&quot;,cidrv6:&quot;діапазон IPv6&quot;,base64:&quot;рядок у кодуванні base64&quot;,base64url:&quot;рядок у кодуванні base64url&quot;,json_string:&quot;рядок JSON&quot;,e164:&quot;номер E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;вхідні дані&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Неправильні вхідні дані: очікується ${r.expected}, отримано ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Неправильні вхідні дані: очікується ${re(r.values[0])}`:`Неправильна опція: очікується одне з ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Занадто велике: очікується, що ${r.origin??&quot;значення&quot;} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??&quot;елементів&quot;}`:`Занадто велике: очікується, що ${r.origin??&quot;значення&quot;} буде ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Занадто мале: очікується, що ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${r.origin} буде ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Неправильний рядок: повинен починатися з &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Неправильний рядок: повинен закінчуватися на &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Неправильний рядок: повинен містити &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`Неправильне число: повинно бути кратним ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Нерозпізнаний ключ${r.keys.length&gt;1?&quot;і&quot;:&quot;&quot;}: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Неправильний ключ у ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Неправильні вхідні дані&quot;;case&quot;invalid_element&quot;:return`Неправильне значення у ${r.origin}`;default:return&quot;Неправильні вхідні дані&quot;}}};function tz(){return{localeError:ez()}}const nz=()=&gt;{const e={string:{unit:&quot;حروف&quot;,verb:&quot;ہونا&quot;},file:{unit:&quot;بائٹس&quot;,verb:&quot;ہونا&quot;},array:{unit:&quot;آئٹمز&quot;,verb:&quot;ہونا&quot;},set:{unit:&quot;آئٹمز&quot;,verb:&quot;ہونا&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;نمبر&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;آرے&quot;;if(r===null)return&quot;نل&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;ان پٹ&quot;,email:&quot;ای میل ایڈریس&quot;,url:&quot;یو آر ایل&quot;,emoji:&quot;ایموجی&quot;,uuid:&quot;یو یو آئی ڈی&quot;,uuidv4:&quot;یو یو آئی ڈی وی 4&quot;,uuidv6:&quot;یو یو آئی ڈی وی 6&quot;,nanoid:&quot;نینو آئی ڈی&quot;,guid:&quot;جی یو آئی ڈی&quot;,cuid:&quot;سی یو آئی ڈی&quot;,cuid2:&quot;سی یو آئی ڈی 2&quot;,ulid:&quot;یو ایل آئی ڈی&quot;,xid:&quot;ایکس آئی ڈی&quot;,ksuid:&quot;کے ایس یو آئی ڈی&quot;,datetime:&quot;آئی ایس او ڈیٹ ٹائم&quot;,date:&quot;آئی ایس او تاریخ&quot;,time:&quot;آئی ایس او وقت&quot;,duration:&quot;آئی ایس او مدت&quot;,ipv4:&quot;آئی پی وی 4 ایڈریس&quot;,ipv6:&quot;آئی پی وی 6 ایڈریس&quot;,cidrv4:&quot;آئی پی وی 4 رینج&quot;,cidrv6:&quot;آئی پی وی 6 رینج&quot;,base64:&quot;بیس 64 ان کوڈڈ سٹرنگ&quot;,base64url:&quot;بیس 64 یو آر ایل ان کوڈڈ سٹرنگ&quot;,json_string:&quot;جے ایس او این سٹرنگ&quot;,e164:&quot;ای 164 نمبر&quot;,jwt:&quot;جے ڈبلیو ٹی&quot;,template_literal:&quot;ان پٹ&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`غلط ان پٹ: ${r.expected} متوقع تھا، ${n(r.input)} موصول ہوا`;case&quot;invalid_value&quot;:return r.values.length===1?`غلط ان پٹ: ${re(r.values[0])} متوقع تھا`:`غلط آپشن: ${Z(r.values,&quot;|&quot;)} میں سے ایک متوقع تھا`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`بہت بڑا: ${r.origin??&quot;ویلیو&quot;} کے ${o}${r.maximum.toString()} ${a.unit??&quot;عناصر&quot;} ہونے متوقع تھے`:`بہت بڑا: ${r.origin??&quot;ویلیو&quot;} کا ${o}${r.maximum.toString()} ہونا متوقع تھا`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`بہت چھوٹا: ${r.origin} کے ${o}${r.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${r.origin} کا ${o}${r.minimum.toString()} ہونا متوقع تھا`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`غلط سٹرنگ: &quot;${o.prefix}&quot; سے شروع ہونا چاہیے`:o.format===&quot;ends_with&quot;?`غلط سٹرنگ: &quot;${o.suffix}&quot; پر ختم ہونا چاہیے`:o.format===&quot;includes&quot;?`غلط سٹرنگ: &quot;${o.includes}&quot; شامل ہونا چاہیے`:o.format===&quot;regex&quot;?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`غلط نمبر: ${r.divisor} کا مضاعف ہونا چاہیے`;case&quot;unrecognized_keys&quot;:return`غیر تسلیم شدہ کی${r.keys.length&gt;1?&quot;ز&quot;:&quot;&quot;}: ${Z(r.keys,&quot;، &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} میں غلط کی`;case&quot;invalid_union&quot;:return&quot;غلط ان پٹ&quot;;case&quot;invalid_element&quot;:return`${r.origin} میں غلط ویلیو`;default:return&quot;غلط ان پٹ&quot;}}};function rz(){return{localeError:nz()}}const iz=()=&gt;{const e={string:{unit:&quot;ký tự&quot;,verb:&quot;có&quot;},file:{unit:&quot;byte&quot;,verb:&quot;có&quot;},array:{unit:&quot;phần tử&quot;,verb:&quot;có&quot;},set:{unit:&quot;phần tử&quot;,verb:&quot;có&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;số&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;mảng&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;đầu vào&quot;,email:&quot;địa chỉ email&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ngày giờ ISO&quot;,date:&quot;ngày ISO&quot;,time:&quot;giờ ISO&quot;,duration:&quot;khoảng thời gian ISO&quot;,ipv4:&quot;địa chỉ IPv4&quot;,ipv6:&quot;địa chỉ IPv6&quot;,cidrv4:&quot;dải IPv4&quot;,cidrv6:&quot;dải IPv6&quot;,base64:&quot;chuỗi mã hóa base64&quot;,base64url:&quot;chuỗi mã hóa base64url&quot;,json_string:&quot;chuỗi JSON&quot;,e164:&quot;số E.164&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;đầu vào&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`Đầu vào không hợp lệ: mong đợi ${r.expected}, nhận được ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`Đầu vào không hợp lệ: mong đợi ${re(r.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`Quá lớn: mong đợi ${r.origin??&quot;giá trị&quot;} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??&quot;phần tử&quot;}`:`Quá lớn: mong đợi ${r.origin??&quot;giá trị&quot;} ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`Quá nhỏ: mong đợi ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${r.origin} ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`Chuỗi không hợp lệ: phải bắt đầu bằng &quot;${o.prefix}&quot;`:o.format===&quot;ends_with&quot;?`Chuỗi không hợp lệ: phải kết thúc bằng &quot;${o.suffix}&quot;`:o.format===&quot;includes&quot;?`Chuỗi không hợp lệ: phải bao gồm &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${i[o.format]??r.format} không hợp lệ`}case&quot;not_multiple_of&quot;:return`Số không hợp lệ: phải là bội số của ${r.divisor}`;case&quot;unrecognized_keys&quot;:return`Khóa không được nhận dạng: ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`Khóa không hợp lệ trong ${r.origin}`;case&quot;invalid_union&quot;:return&quot;Đầu vào không hợp lệ&quot;;case&quot;invalid_element&quot;:return`Giá trị không hợp lệ trong ${r.origin}`;default:return&quot;Đầu vào không hợp lệ&quot;}}};function oz(){return{localeError:iz()}}const az=()=&gt;{const e={string:{unit:&quot;字符&quot;,verb:&quot;包含&quot;},file:{unit:&quot;字节&quot;,verb:&quot;包含&quot;},array:{unit:&quot;项&quot;,verb:&quot;包含&quot;},set:{unit:&quot;项&quot;,verb:&quot;包含&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;非数字(NaN)&quot;:&quot;数字&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;数组&quot;;if(r===null)return&quot;空值(null)&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;输入&quot;,email:&quot;电子邮件&quot;,url:&quot;URL&quot;,emoji:&quot;表情符号&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO日期时间&quot;,date:&quot;ISO日期&quot;,time:&quot;ISO时间&quot;,duration:&quot;ISO时长&quot;,ipv4:&quot;IPv4地址&quot;,ipv6:&quot;IPv6地址&quot;,cidrv4:&quot;IPv4网段&quot;,cidrv6:&quot;IPv6网段&quot;,base64:&quot;base64编码字符串&quot;,base64url:&quot;base64url编码字符串&quot;,json_string:&quot;JSON字符串&quot;,e164:&quot;E.164号码&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;输入&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`无效输入：期望 ${r.expected}，实际接收 ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`无效输入：期望 ${re(r.values[0])}`:`无效选项：期望以下之一 ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`数值过大：期望 ${r.origin??&quot;值&quot;} ${o}${r.maximum.toString()} ${a.unit??&quot;个元素&quot;}`:`数值过大：期望 ${r.origin??&quot;值&quot;} ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`数值过小：期望 ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`数值过小：期望 ${r.origin} ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`无效字符串：必须以 &quot;${o.prefix}&quot; 开头`:o.format===&quot;ends_with&quot;?`无效字符串：必须以 &quot;${o.suffix}&quot; 结尾`:o.format===&quot;includes&quot;?`无效字符串：必须包含 &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`无效字符串：必须满足正则表达式 ${o.pattern}`:`无效${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`无效数字：必须是 ${r.divisor} 的倍数`;case&quot;unrecognized_keys&quot;:return`出现未知的键(key): ${Z(r.keys,&quot;, &quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} 中的键(key)无效`;case&quot;invalid_union&quot;:return&quot;无效输入&quot;;case&quot;invalid_element&quot;:return`${r.origin} 中包含无效值(value)`;default:return&quot;无效输入&quot;}}};function sz(){return{localeError:az()}}const uz=()=&gt;{const e={string:{unit:&quot;字元&quot;,verb:&quot;擁有&quot;},file:{unit:&quot;位元組&quot;,verb:&quot;擁有&quot;},array:{unit:&quot;項目&quot;,verb:&quot;擁有&quot;},set:{unit:&quot;項目&quot;,verb:&quot;擁有&quot;}};function t(r){return e[r]??null}const n=r=&gt;{const o=typeof r;switch(o){case&quot;number&quot;:return Number.isNaN(r)?&quot;NaN&quot;:&quot;number&quot;;case&quot;object&quot;:{if(Array.isArray(r))return&quot;array&quot;;if(r===null)return&quot;null&quot;;if(Object.getPrototypeOf(r)!==Object.prototype&amp;&amp;r.constructor)return r.constructor.name}}return o},i={regex:&quot;輸入&quot;,email:&quot;郵件地址&quot;,url:&quot;URL&quot;,emoji:&quot;emoji&quot;,uuid:&quot;UUID&quot;,uuidv4:&quot;UUIDv4&quot;,uuidv6:&quot;UUIDv6&quot;,nanoid:&quot;nanoid&quot;,guid:&quot;GUID&quot;,cuid:&quot;cuid&quot;,cuid2:&quot;cuid2&quot;,ulid:&quot;ULID&quot;,xid:&quot;XID&quot;,ksuid:&quot;KSUID&quot;,datetime:&quot;ISO 日期時間&quot;,date:&quot;ISO 日期&quot;,time:&quot;ISO 時間&quot;,duration:&quot;ISO 期間&quot;,ipv4:&quot;IPv4 位址&quot;,ipv6:&quot;IPv6 位址&quot;,cidrv4:&quot;IPv4 範圍&quot;,cidrv6:&quot;IPv6 範圍&quot;,base64:&quot;base64 編碼字串&quot;,base64url:&quot;base64url 編碼字串&quot;,json_string:&quot;JSON 字串&quot;,e164:&quot;E.164 數值&quot;,jwt:&quot;JWT&quot;,template_literal:&quot;輸入&quot;};return r=&gt;{switch(r.code){case&quot;invalid_type&quot;:return`無效的輸入值：預期為 ${r.expected}，但收到 ${n(r.input)}`;case&quot;invalid_value&quot;:return r.values.length===1?`無效的輸入值：預期為 ${re(r.values[0])}`:`無效的選項：預期為以下其中之一 ${Z(r.values,&quot;|&quot;)}`;case&quot;too_big&quot;:{const o=r.inclusive?&quot;&lt;=&quot;:&quot;&lt;&quot;,a=t(r.origin);return a?`數值過大：預期 ${r.origin??&quot;值&quot;} 應為 ${o}${r.maximum.toString()} ${a.unit??&quot;個元素&quot;}`:`數值過大：預期 ${r.origin??&quot;值&quot;} 應為 ${o}${r.maximum.toString()}`}case&quot;too_small&quot;:{const o=r.inclusive?&quot;&gt;=&quot;:&quot;&gt;&quot;,a=t(r.origin);return a?`數值過小：預期 ${r.origin} 應為 ${o}${r.minimum.toString()} ${a.unit}`:`數值過小：預期 ${r.origin} 應為 ${o}${r.minimum.toString()}`}case&quot;invalid_format&quot;:{const o=r;return o.format===&quot;starts_with&quot;?`無效的字串：必須以 &quot;${o.prefix}&quot; 開頭`:o.format===&quot;ends_with&quot;?`無效的字串：必須以 &quot;${o.suffix}&quot; 結尾`:o.format===&quot;includes&quot;?`無效的字串：必須包含 &quot;${o.includes}&quot;`:o.format===&quot;regex&quot;?`無效的字串：必須符合格式 ${o.pattern}`:`無效的 ${i[o.format]??r.format}`}case&quot;not_multiple_of&quot;:return`無效的數字：必須為 ${r.divisor} 的倍數`;case&quot;unrecognized_keys&quot;:return`無法識別的鍵值${r.keys.length&gt;1?&quot;們&quot;:&quot;&quot;}：${Z(r.keys,&quot;、&quot;)}`;case&quot;invalid_key&quot;:return`${r.origin} 中有無效的鍵值`;case&quot;invalid_union&quot;:return&quot;無效的輸入值&quot;;case&quot;invalid_element&quot;:return`${r.origin} 中有無效的值`;default:return&quot;無效的輸入值&quot;}}};function lz(){return{localeError:uz()}}const K0=Object.freeze(Object.defineProperty({__proto__:null,ar:Zb,az:Mb,be:Vb,ca:Wb,cs:Kb,de:Gb,en:J0,eo:eI,es:nI,fa:iI,fi:aI,fr:uI,frCA:cI,he:fI,hu:pI,id:vI,it:yI,ja:wI,kh:kI,ko:xI,mk:II,ms:OI,nl:NI,no:TI,ota:UI,pl:RI,ps:AI,pt:LI,ru:FI,sl:BI,sv:JI,ta:HI,th:QI,tr:qI,ua:tz,ur:rz,vi:oz,zhCN:sz,zhTW:lz},Symbol.toStringTag,{value:&quot;Module&quot;})),H0=Symbol(&quot;ZodOutput&quot;),G0=Symbol(&quot;ZodInput&quot;);class rf{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const i=n[0];if(this._map.set(t,i),i&amp;&amp;typeof i==&quot;object&quot;&amp;&amp;&quot;id&quot;in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&amp;&amp;typeof n==&quot;object&quot;&amp;&amp;&quot;id&quot;in n&amp;&amp;this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};return delete i.id,{...i,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}}function of(){return new rf}const lr=of();function Q0(e,t){return new e({type:&quot;string&quot;,...N(t)})}function X0(e,t){return new e({type:&quot;string&quot;,coerce:!0,...N(t)})}function af(e,t){return new e({type:&quot;string&quot;,format:&quot;email&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function Ns(e,t){return new e({type:&quot;string&quot;,format:&quot;guid&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function sf(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function uf(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,version:&quot;v4&quot;,...N(t)})}function lf(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,version:&quot;v6&quot;,...N(t)})}function cf(e,t){return new e({type:&quot;string&quot;,format:&quot;uuid&quot;,check:&quot;string_format&quot;,abort:!1,version:&quot;v7&quot;,...N(t)})}function df(e,t){return new e({type:&quot;string&quot;,format:&quot;url&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function ff(e,t){return new e({type:&quot;string&quot;,format:&quot;emoji&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function mf(e,t){return new e({type:&quot;string&quot;,format:&quot;nanoid&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function pf(e,t){return new e({type:&quot;string&quot;,format:&quot;cuid&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function hf(e,t){return new e({type:&quot;string&quot;,format:&quot;cuid2&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function vf(e,t){return new e({type:&quot;string&quot;,format:&quot;ulid&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function gf(e,t){return new e({type:&quot;string&quot;,format:&quot;xid&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function yf(e,t){return new e({type:&quot;string&quot;,format:&quot;ksuid&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function _f(e,t){return new e({type:&quot;string&quot;,format:&quot;ipv4&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function wf(e,t){return new e({type:&quot;string&quot;,format:&quot;ipv6&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function $f(e,t){return new e({type:&quot;string&quot;,format:&quot;cidrv4&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function kf(e,t){return new e({type:&quot;string&quot;,format:&quot;cidrv6&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function Sf(e,t){return new e({type:&quot;string&quot;,format:&quot;base64&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function xf(e,t){return new e({type:&quot;string&quot;,format:&quot;base64url&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function bf(e,t){return new e({type:&quot;string&quot;,format:&quot;e164&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}function If(e,t){return new e({type:&quot;string&quot;,format:&quot;jwt&quot;,check:&quot;string_format&quot;,abort:!1,...N(t)})}const Y0={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function q0(e,t){return new e({type:&quot;string&quot;,format:&quot;datetime&quot;,check:&quot;string_format&quot;,offset:!1,local:!1,precision:null,...N(t)})}function ew(e,t){return new e({type:&quot;string&quot;,format:&quot;date&quot;,check:&quot;string_format&quot;,...N(t)})}function tw(e,t){return new e({type:&quot;string&quot;,format:&quot;time&quot;,check:&quot;string_format&quot;,precision:null,...N(t)})}function nw(e,t){return new e({type:&quot;string&quot;,format:&quot;duration&quot;,check:&quot;string_format&quot;,...N(t)})}function rw(e,t){return new e({type:&quot;number&quot;,checks:[],...N(t)})}function iw(e,t){return new e({type:&quot;number&quot;,coerce:!0,checks:[],...N(t)})}function ow(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;safeint&quot;,...N(t)})}function aw(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;float32&quot;,...N(t)})}function sw(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;float64&quot;,...N(t)})}function uw(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;int32&quot;,...N(t)})}function lw(e,t){return new e({type:&quot;number&quot;,check:&quot;number_format&quot;,abort:!1,format:&quot;uint32&quot;,...N(t)})}function cw(e,t){return new e({type:&quot;boolean&quot;,...N(t)})}function dw(e,t){return new e({type:&quot;boolean&quot;,coerce:!0,...N(t)})}function fw(e,t){return new e({type:&quot;bigint&quot;,...N(t)})}function mw(e,t){return new e({type:&quot;bigint&quot;,coerce:!0,...N(t)})}function pw(e,t){return new e({type:&quot;bigint&quot;,check:&quot;bigint_format&quot;,abort:!1,format:&quot;int64&quot;,...N(t)})}function hw(e,t){return new e({type:&quot;bigint&quot;,check:&quot;bigint_format&quot;,abort:!1,format:&quot;uint64&quot;,...N(t)})}function vw(e,t){return new e({type:&quot;symbol&quot;,...N(t)})}function gw(e,t){return new e({type:&quot;undefined&quot;,...N(t)})}function yw(e,t){return new e({type:&quot;null&quot;,...N(t)})}function _w(e){return new e({type:&quot;any&quot;})}function js(e){return new e({type:&quot;unknown&quot;})}function ww(e,t){return new e({type:&quot;never&quot;,...N(t)})}function $w(e,t){return new e({type:&quot;void&quot;,...N(t)})}function kw(e,t){return new e({type:&quot;date&quot;,...N(t)})}function Sw(e,t){return new e({type:&quot;date&quot;,coerce:!0,...N(t)})}function xw(e,t){return new e({type:&quot;nan&quot;,...N(t)})}function Ir(e,t){return new Kd({check:&quot;less_than&quot;,...N(t),value:e,inclusive:!1})}function Wt(e,t){return new Kd({check:&quot;less_than&quot;,...N(t),value:e,inclusive:!0})}function zr(e,t){return new Hd({check:&quot;greater_than&quot;,...N(t),value:e,inclusive:!1})}function gt(e,t){return new Hd({check:&quot;greater_than&quot;,...N(t),value:e,inclusive:!0})}function bw(e){return zr(0,e)}function Iw(e){return Ir(0,e)}function zw(e){return Wt(0,e)}function Ow(e){return gt(0,e)}function Lo(e,t){return new S_({check:&quot;multiple_of&quot;,...N(t),value:e})}function lu(e,t){return new I_({check:&quot;max_size&quot;,...N(t),maximum:e})}function Mo(e,t){return new z_({check:&quot;min_size&quot;,...N(t),minimum:e})}function zf(e,t){return new O_({check:&quot;size_equals&quot;,...N(t),size:e})}function cu(e,t){return new E_({check:&quot;max_length&quot;,...N(t),maximum:e})}function ji(e,t){return new N_({check:&quot;min_length&quot;,...N(t),minimum:e})}function du(e,t){return new j_({check:&quot;length_equals&quot;,...N(t),length:e})}function Of(e,t){return new T_({check:&quot;string_format&quot;,format:&quot;regex&quot;,...N(t),pattern:e})}function Ef(e){return new P_({check:&quot;string_format&quot;,format:&quot;lowercase&quot;,...N(e)})}function Nf(e){return new U_({check:&quot;string_format&quot;,format:&quot;uppercase&quot;,...N(e)})}function jf(e,t){return new C_({check:&quot;string_format&quot;,format:&quot;includes&quot;,...N(t),includes:e})}function Tf(e,t){return new A_({check:&quot;string_format&quot;,format:&quot;starts_with&quot;,...N(t),prefix:e})}function Pf(e,t){return new D_({check:&quot;string_format&quot;,format:&quot;ends_with&quot;,...N(t),suffix:e})}function Ew(e,t,n){return new R_({check:&quot;property&quot;,property:e,schema:t,...N(n)})}function Uf(e,t){return new Z_({check:&quot;mime_type&quot;,mime:e,...N(t)})}function Tr(e){return new L_({check:&quot;overwrite&quot;,tx:e})}function Cf(e){return Tr(t=&gt;t.normalize(e))}function Af(){return Tr(e=&gt;e.trim())}function Df(){return Tr(e=&gt;e.toLowerCase())}function Rf(){return Tr(e=&gt;e.toUpperCase())}function Zf(e,t,n){return new e({type:&quot;array&quot;,element:t,...N(n)})}function cz(e,t,n){return new e({type:&quot;union&quot;,options:t,...N(n)})}function dz(e,t,n,i){return new e({type:&quot;union&quot;,options:n,discriminator:t,...N(i)})}function fz(e,t,n){return new e({type:&quot;intersection&quot;,left:t,right:n})}function Nw(e,t,n,i){const r=n instanceof te,o=r?i:n,a=r?n:null;return new e({type:&quot;tuple&quot;,items:t,rest:a,...N(o)})}function mz(e,t,n,i){return new e({type:&quot;record&quot;,keyType:t,valueType:n,...N(i)})}function pz(e,t,n,i){return new e({type:&quot;map&quot;,keyType:t,valueType:n,...N(i)})}function hz(e,t,n){return new e({type:&quot;set&quot;,valueType:t,...N(n)})}function vz(e,t,n){const i=Array.isArray(t)?Object.fromEntries(t.map(r=&gt;[r,r])):t;return new e({type:&quot;enum&quot;,entries:i,...N(n)})}function gz(e,t,n){return new e({type:&quot;enum&quot;,entries:t,...N(n)})}function yz(e,t,n){return new e({type:&quot;literal&quot;,values:Array.isArray(t)?t:[t],...N(n)})}function jw(e,t){return new e({type:&quot;file&quot;,...N(t)})}function _z(e,t){return new e({type:&quot;transform&quot;,transform:t})}function wz(e,t){return new e({type:&quot;optional&quot;,innerType:t})}function $z(e,t){return new e({type:&quot;nullable&quot;,innerType:t})}function kz(e,t,n){return new e({type:&quot;default&quot;,innerType:t,get defaultValue(){return typeof n==&quot;function&quot;?n():n}})}function Sz(e,t,n){return new e({type:&quot;nonoptional&quot;,innerType:t,...N(n)})}function xz(e,t){return new e({type:&quot;success&quot;,innerType:t})}function bz(e,t,n){return new e({type:&quot;catch&quot;,innerType:t,catchValue:typeof n==&quot;function&quot;?n:()=&gt;n})}function Iz(e,t,n){return new e({type:&quot;pipe&quot;,in:t,out:n})}function zz(e,t){return new e({type:&quot;readonly&quot;,innerType:t})}function Oz(e,t,n){return new e({type:&quot;template_literal&quot;,parts:t,...N(n)})}function Ez(e,t){return new e({type:&quot;lazy&quot;,getter:t})}function Nz(e,t){return new e({type:&quot;promise&quot;,innerType:t})}function Tw(e,t,n){const i=N(n);return i.abort??(i.abort=!0),new e({type:&quot;custom&quot;,check:&quot;custom&quot;,fn:t,...i})}function Pw(e,t,n){return new e({type:&quot;custom&quot;,check:&quot;custom&quot;,fn:t,...N(n)})}function Uw(e,t){const n=N(t);let i=n.truthy??[&quot;true&quot;,&quot;1&quot;,&quot;yes&quot;,&quot;on&quot;,&quot;y&quot;,&quot;enabled&quot;],r=n.falsy??[&quot;false&quot;,&quot;0&quot;,&quot;no&quot;,&quot;off&quot;,&quot;n&quot;,&quot;disabled&quot;];n.case!==&quot;sensitive&quot;&amp;&amp;(i=i.map(g=&gt;typeof g==&quot;string&quot;?g.toLowerCase():g),r=r.map(g=&gt;typeof g==&quot;string&quot;?g.toLowerCase():g));const o=new Set(i),a=new Set(r),s=e.Pipe??nf,u=e.Boolean??Xd,l=e.String??na,m=e.Transform??tf,p=new m({type:&quot;transform&quot;,transform:(g,S)=&gt;{let z=g;return n.case!==&quot;sensitive&quot;&amp;&amp;(z=z.toLowerCase()),o.has(z)?!0:a.has(z)?!1:(S.issues.push({code:&quot;invalid_value&quot;,expected:&quot;stringbool&quot;,values:[...o,...a],input:S.value,inst:p}),{})},error:n.error}),h=new s({type:&quot;pipe&quot;,in:new l({type:&quot;string&quot;,error:n.error}),out:p,error:n.error});return new s({type:&quot;pipe&quot;,in:h,out:new u({type:&quot;boolean&quot;,error:n.error}),error:n.error})}function Cw(e,t,n,i={}){const r=N(i),o={...N(i),check:&quot;string_format&quot;,type:&quot;string&quot;,format:t,fn:typeof n==&quot;function&quot;?n:s=&gt;n.test(s),...r};return n instanceof RegExp&amp;&amp;(o.pattern=n),new e(o)}class Aw{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!=&quot;function&quot;)throw new Error(&quot;implement() must be called with a function&quot;);const n=(...i)=&gt;{const r=this._def.input?_c(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error(&quot;Invalid arguments schema: not an array or tuple schema.&quot;);const o=t(...r);return this._def.output?_c(this._def.output,o,void 0,{callee:n}):o};return n}implementAsync(t){if(typeof t!=&quot;function&quot;)throw new Error(&quot;implement() must be called with a function&quot;);const n=async(...i)=&gt;{const r=this._def.input?await wc(this._def.input,i,void 0,{callee:n}):i;if(!Array.isArray(r))throw new Error(&quot;Invalid arguments schema: not an array or tuple schema.&quot;);const o=await t(...r);return this._def.output?wc(this._def.output,o,void 0,{callee:n}):o};return n}input(...t){const n=this.constructor;return Array.isArray(t[0])?new n({type:&quot;function&quot;,input:new uu({type:&quot;tuple&quot;,items:t[0],rest:t[1]}),output:this._def.output}):new n({type:&quot;function&quot;,input:t[0],output:this._def.output})}output(t){const n=this.constructor;return new n({type:&quot;function&quot;,input:this._def.input,output:t})}}function Dw(e){return new Aw({type:&quot;function&quot;,input:Array.isArray(e==null?void 0:e.input)?Nw(uu,e==null?void 0:e.input):(e==null?void 0:e.input)??Zf(qd,js(Es)),output:(e==null?void 0:e.output)??js(Es)})}class kc{constructor(t){this.counter=0,this.metadataRegistry=(t==null?void 0:t.metadata)??lr,this.target=(t==null?void 0:t.target)??&quot;draft-2020-12&quot;,this.unrepresentable=(t==null?void 0:t.unrepresentable)??&quot;throw&quot;,this.override=(t==null?void 0:t.override)??(()=&gt;{}),this.io=(t==null?void 0:t.io)??&quot;output&quot;,this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var p,h,y;var i;const r=t._zod.def,o={guid:&quot;uuid&quot;,url:&quot;uri&quot;,datetime:&quot;date-time&quot;,json_string:&quot;json-string&quot;,regex:&quot;&quot;},a=this.seen.get(t);if(a)return a.count++,n.schemaPath.includes(t)&amp;&amp;(a.cycle=n.path),a.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(t,s);const u=(h=(p=t._zod).toJSONSchema)==null?void 0:h.call(p);if(u)s.schema=u;else{const g={...n,schemaPath:[...n.schemaPath,t],path:n.path},S=t._zod.parent;if(S)s.ref=S,this.process(S,g),this.seen.get(S).isParent=!0;else{const z=s.schema;switch(r.type){case&quot;string&quot;:{const c=z;c.type=&quot;string&quot;;const{minimum:d,maximum:f,format:k,patterns:O,contentEncoding:P}=t._zod.bag;if(typeof d==&quot;number&quot;&amp;&amp;(c.minLength=d),typeof f==&quot;number&quot;&amp;&amp;(c.maxLength=f),k&amp;&amp;(c.format=o[k]??k,c.format===&quot;&quot;&amp;&amp;delete c.format),P&amp;&amp;(c.contentEncoding=P),O&amp;&amp;O.size&gt;0){const L=[...O];L.length===1?c.pattern=L[0].source:L.length&gt;1&amp;&amp;(s.schema.allOf=[...L.map(F=&gt;({...this.target===&quot;draft-7&quot;?{type:&quot;string&quot;}:{},pattern:F.source}))])}break}case&quot;number&quot;:{const c=z,{minimum:d,maximum:f,format:k,multipleOf:O,exclusiveMaximum:P,exclusiveMinimum:L}=t._zod.bag;typeof k==&quot;string&quot;&amp;&amp;k.includes(&quot;int&quot;)?c.type=&quot;integer&quot;:c.type=&quot;number&quot;,typeof L==&quot;number&quot;&amp;&amp;(c.exclusiveMinimum=L),typeof d==&quot;number&quot;&amp;&amp;(c.minimum=d,typeof L==&quot;number&quot;&amp;&amp;(L&gt;=d?delete c.minimum:delete c.exclusiveMinimum)),typeof P==&quot;number&quot;&amp;&amp;(c.exclusiveMaximum=P),typeof f==&quot;number&quot;&amp;&amp;(c.maximum=f,typeof P==&quot;number&quot;&amp;&amp;(P&lt;=f?delete c.maximum:delete c.exclusiveMaximum)),typeof O==&quot;number&quot;&amp;&amp;(c.multipleOf=O);break}case&quot;boolean&quot;:{const c=z;c.type=&quot;boolean&quot;;break}case&quot;bigint&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;BigInt cannot be represented in JSON Schema&quot;);break}case&quot;symbol&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Symbols cannot be represented in JSON Schema&quot;);break}case&quot;null&quot;:{z.type=&quot;null&quot;;break}case&quot;any&quot;:break;case&quot;unknown&quot;:break;case&quot;undefined&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Undefined cannot be represented in JSON Schema&quot;);break}case&quot;void&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Void cannot be represented in JSON Schema&quot;);break}case&quot;never&quot;:{z.not={};break}case&quot;date&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Date cannot be represented in JSON Schema&quot;);break}case&quot;array&quot;:{const c=z,{minimum:d,maximum:f}=t._zod.bag;typeof d==&quot;number&quot;&amp;&amp;(c.minItems=d),typeof f==&quot;number&quot;&amp;&amp;(c.maxItems=f),c.type=&quot;array&quot;,c.items=this.process(r.element,{...g,path:[...g.path,&quot;items&quot;]});break}case&quot;object&quot;:{const c=z;c.type=&quot;object&quot;,c.properties={};const d=r.shape;for(const O in d)c.properties[O]=this.process(d[O],{...g,path:[...g.path,&quot;properties&quot;,O]});const f=new Set(Object.keys(d)),k=new Set([...f].filter(O=&gt;{const P=r.shape[O]._zod;return this.io===&quot;input&quot;?P.optin===void 0:P.optout===void 0}));k.size&gt;0&amp;&amp;(c.required=Array.from(k)),((y=r.catchall)==null?void 0:y._zod.def.type)===&quot;never&quot;?c.additionalProperties=!1:r.catchall?r.catchall&amp;&amp;(c.additionalProperties=this.process(r.catchall,{...g,path:[...g.path,&quot;additionalProperties&quot;]})):this.io===&quot;output&quot;&amp;&amp;(c.additionalProperties=!1);break}case&quot;union&quot;:{const c=z;c.anyOf=r.options.map((d,f)=&gt;this.process(d,{...g,path:[...g.path,&quot;anyOf&quot;,f]}));break}case&quot;intersection&quot;:{const c=z,d=this.process(r.left,{...g,path:[...g.path,&quot;allOf&quot;,0]}),f=this.process(r.right,{...g,path:[...g.path,&quot;allOf&quot;,1]}),k=P=&gt;&quot;allOf&quot;in P&amp;&amp;Object.keys(P).length===1,O=[...k(d)?d.allOf:[d],...k(f)?f.allOf:[f]];c.allOf=O;break}case&quot;tuple&quot;:{const c=z;c.type=&quot;array&quot;;const d=r.items.map((O,P)=&gt;this.process(O,{...g,path:[...g.path,&quot;prefixItems&quot;,P]}));if(this.target===&quot;draft-2020-12&quot;?c.prefixItems=d:c.items=d,r.rest){const O=this.process(r.rest,{...g,path:[...g.path,&quot;items&quot;]});this.target===&quot;draft-2020-12&quot;?c.items=O:c.additionalItems=O}r.rest&amp;&amp;(c.items=this.process(r.rest,{...g,path:[...g.path,&quot;items&quot;]}));const{minimum:f,maximum:k}=t._zod.bag;typeof f==&quot;number&quot;&amp;&amp;(c.minItems=f),typeof k==&quot;number&quot;&amp;&amp;(c.maxItems=k);break}case&quot;record&quot;:{const c=z;c.type=&quot;object&quot;,c.propertyNames=this.process(r.keyType,{...g,path:[...g.path,&quot;propertyNames&quot;]}),c.additionalProperties=this.process(r.valueType,{...g,path:[...g.path,&quot;additionalProperties&quot;]});break}case&quot;map&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Map cannot be represented in JSON Schema&quot;);break}case&quot;set&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Set cannot be represented in JSON Schema&quot;);break}case&quot;enum&quot;:{const c=z,d=Dd(r.entries);d.every(f=&gt;typeof f==&quot;number&quot;)&amp;&amp;(c.type=&quot;number&quot;),d.every(f=&gt;typeof f==&quot;string&quot;)&amp;&amp;(c.type=&quot;string&quot;),c.enum=d;break}case&quot;literal&quot;:{const c=z,d=[];for(const f of r.values)if(f===void 0){if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Literal `undefined` cannot be represented in JSON Schema&quot;)}else if(typeof f==&quot;bigint&quot;){if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;BigInt literals cannot be represented in JSON Schema&quot;);d.push(Number(f))}else d.push(f);if(d.length!==0)if(d.length===1){const f=d[0];c.type=f===null?&quot;null&quot;:typeof f,c.const=f}else d.every(f=&gt;typeof f==&quot;number&quot;)&amp;&amp;(c.type=&quot;number&quot;),d.every(f=&gt;typeof f==&quot;string&quot;)&amp;&amp;(c.type=&quot;string&quot;),d.every(f=&gt;typeof f==&quot;boolean&quot;)&amp;&amp;(c.type=&quot;string&quot;),d.every(f=&gt;f===null)&amp;&amp;(c.type=&quot;null&quot;),c.enum=d;break}case&quot;file&quot;:{const c=z,d={type:&quot;string&quot;,format:&quot;binary&quot;,contentEncoding:&quot;binary&quot;},{minimum:f,maximum:k,mime:O}=t._zod.bag;f!==void 0&amp;&amp;(d.minLength=f),k!==void 0&amp;&amp;(d.maxLength=k),O?O.length===1?(d.contentMediaType=O[0],Object.assign(c,d)):c.anyOf=O.map(P=&gt;({...d,contentMediaType:P})):Object.assign(c,d);break}case&quot;transform&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Transforms cannot be represented in JSON Schema&quot;);break}case&quot;nullable&quot;:{const c=this.process(r.innerType,g);z.anyOf=[c,{type:&quot;null&quot;}];break}case&quot;nonoptional&quot;:{this.process(r.innerType,g),s.ref=r.innerType;break}case&quot;success&quot;:{const c=z;c.type=&quot;boolean&quot;;break}case&quot;default&quot;:{this.process(r.innerType,g),s.ref=r.innerType,z.default=JSON.parse(JSON.stringify(r.defaultValue));break}case&quot;prefault&quot;:{this.process(r.innerType,g),s.ref=r.innerType,this.io===&quot;input&quot;&amp;&amp;(z._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case&quot;catch&quot;:{this.process(r.innerType,g),s.ref=r.innerType;let c;try{c=r.catchValue(void 0)}catch{throw new Error(&quot;Dynamic catch values are not supported in JSON Schema&quot;)}z.default=c;break}case&quot;nan&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;NaN cannot be represented in JSON Schema&quot;);break}case&quot;template_literal&quot;:{const c=z,d=t._zod.pattern;if(!d)throw new Error(&quot;Pattern not found in template literal&quot;);c.type=&quot;string&quot;,c.pattern=d.source;break}case&quot;pipe&quot;:{const c=this.io===&quot;input&quot;?r.in._zod.def.type===&quot;transform&quot;?r.out:r.in:r.out;this.process(c,g),s.ref=c;break}case&quot;readonly&quot;:{this.process(r.innerType,g),s.ref=r.innerType,z.readOnly=!0;break}case&quot;promise&quot;:{this.process(r.innerType,g),s.ref=r.innerType;break}case&quot;optional&quot;:{this.process(r.innerType,g),s.ref=r.innerType;break}case&quot;lazy&quot;:{const c=t._zod.innerType;this.process(c,g),s.ref=c;break}case&quot;custom&quot;:{if(this.unrepresentable===&quot;throw&quot;)throw new Error(&quot;Custom types cannot be represented in JSON Schema&quot;);break}}}}const l=this.metadataRegistry.get(t);return l&amp;&amp;Object.assign(s.schema,l),this.io===&quot;input&quot;&amp;&amp;Ae(t)&amp;&amp;(delete s.schema.examples,delete s.schema.default),this.io===&quot;input&quot;&amp;&amp;s.schema._prefault&amp;&amp;((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,this.seen.get(t).schema}emit(t,n){var m,p,h,y,g,S;const i={cycles:(n==null?void 0:n.cycles)??&quot;ref&quot;,reused:(n==null?void 0:n.reused)??&quot;inline&quot;,external:(n==null?void 0:n.external)??void 0},r=this.seen.get(t);if(!r)throw new Error(&quot;Unprocessed schema. This is a bug in Zod.&quot;);const o=z=&gt;{var O;const c=this.target===&quot;draft-2020-12&quot;?&quot;$defs&quot;:&quot;definitions&quot;;if(i.external){const P=(O=i.external.registry.get(z[0]))==null?void 0:O.id,L=i.external.uri??(ge=&gt;ge);if(P)return{ref:L(P)};const F=z[1].defId??z[1].schema.id??`schema${this.counter++}`;return z[1].defId=F,{defId:F,ref:`${L(&quot;__shared&quot;)}#/${c}/${F}`}}if(z[1]===r)return{ref:&quot;#&quot;};const f=`#/${c}/`,k=z[1].schema.id??`__schema${this.counter++}`;return{defId:k,ref:f+k}},a=z=&gt;{if(z[1].schema.$ref)return;const c=z[1],{ref:d,defId:f}=o(z);c.def={...c.schema},f&amp;&amp;(c.defId=f);const k=c.schema;for(const O in k)delete k[O];k.$ref=d};if(i.cycles===&quot;throw&quot;)for(const z of this.seen.entries()){const c=z[1];if(c.cycle)throw new Error(`Cycle detected: #/${(m=c.cycle)==null?void 0:m.join(&quot;/&quot;)}/&lt;root&gt;

Set the \`cycles\` parameter to \`&quot;ref&quot;\` to resolve cyclical schemas with defs.`)}for(const z of this.seen.entries()){const c=z[1];if(t===z[0]){a(z);continue}if(i.external){const f=(p=i.external.registry.get(z[0]))==null?void 0:p.id;if(t!==z[0]&amp;&amp;f){a(z);continue}}if((h=this.metadataRegistry.get(z[0]))==null?void 0:h.id){a(z);continue}if(c.cycle){a(z);continue}if(c.count&gt;1&amp;&amp;i.reused===&quot;ref&quot;){a(z);continue}}const s=(z,c)=&gt;{const d=this.seen.get(z),f=d.def??d.schema,k={...f};if(d.ref===null)return;const O=d.ref;if(d.ref=null,O){s(O,c);const P=this.seen.get(O).schema;P.$ref&amp;&amp;c.target===&quot;draft-7&quot;?(f.allOf=f.allOf??[],f.allOf.push(P)):(Object.assign(f,P),Object.assign(f,k))}d.isParent||this.override({zodSchema:z,jsonSchema:f,path:d.path??[]})};for(const z of[...this.seen.entries()].reverse())s(z[0],{target:this.target});const u={};if(this.target===&quot;draft-2020-12&quot;?u.$schema=&quot;https://json-schema.org/draft/2020-12/schema&quot;:this.target===&quot;draft-7&quot;?u.$schema=&quot;http://json-schema.org/draft-07/schema#&quot;:console.warn(`Invalid target: ${this.target}`),(y=i.external)!=null&amp;&amp;y.uri){const z=(g=i.external.registry.get(t))==null?void 0:g.id;if(!z)throw new Error(&quot;Schema is missing an `id` property&quot;);u.$id=i.external.uri(z)}Object.assign(u,r.def);const l=((S=i.external)==null?void 0:S.defs)??{};for(const z of this.seen.entries()){const c=z[1];c.def&amp;&amp;c.defId&amp;&amp;(l[c.defId]=c.def)}i.external||Object.keys(l).length&gt;0&amp;&amp;(this.target===&quot;draft-2020-12&quot;?u.$defs=l:u.definitions=l);try{return JSON.parse(JSON.stringify(u))}catch{throw new Error(&quot;Error converting schema to JSON.&quot;)}}}function Rw(e,t){if(e instanceof rf){const i=new kc(t),r={};for(const s of e._idmap.entries()){const[u,l]=s;i.process(l)}const o={},a={registry:e,uri:t==null?void 0:t.uri,defs:r};for(const s of e._idmap.entries()){const[u,l]=s;o[u]=i.emit(l,{...t,external:a})}if(Object.keys(r).length&gt;0){const s=i.target===&quot;draft-2020-12&quot;?&quot;$defs&quot;:&quot;definitions&quot;;o.__shared={[s]:r}}return{schemas:o}}const n=new kc(t);return n.process(e),n.emit(e,t)}function Ae(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;switch(r.type){case&quot;string&quot;:case&quot;number&quot;:case&quot;bigint&quot;:case&quot;boolean&quot;:case&quot;date&quot;:case&quot;symbol&quot;:case&quot;undefined&quot;:case&quot;null&quot;:case&quot;any&quot;:case&quot;unknown&quot;:case&quot;never&quot;:case&quot;void&quot;:case&quot;literal&quot;:case&quot;enum&quot;:case&quot;nan&quot;:case&quot;file&quot;:case&quot;template_literal&quot;:return!1;case&quot;array&quot;:return Ae(r.element,n);case&quot;object&quot;:{for(const o in r.shape)if(Ae(r.shape[o],n))return!0;return!1}case&quot;union&quot;:{for(const o of r.options)if(Ae(o,n))return!0;return!1}case&quot;intersection&quot;:return Ae(r.left,n)||Ae(r.right,n);case&quot;tuple&quot;:{for(const o of r.items)if(Ae(o,n))return!0;return!!(r.rest&amp;&amp;Ae(r.rest,n))}case&quot;record&quot;:return Ae(r.keyType,n)||Ae(r.valueType,n);case&quot;map&quot;:return Ae(r.keyType,n)||Ae(r.valueType,n);case&quot;set&quot;:return Ae(r.valueType,n);case&quot;promise&quot;:case&quot;optional&quot;:case&quot;nonoptional&quot;:case&quot;nullable&quot;:case&quot;readonly&quot;:return Ae(r.innerType,n);case&quot;lazy&quot;:return Ae(r.getter(),n);case&quot;default&quot;:return Ae(r.innerType,n);case&quot;prefault&quot;:return Ae(r.innerType,n);case&quot;custom&quot;:return!1;case&quot;transform&quot;:return!0;case&quot;pipe&quot;:return Ae(r.in,n)||Ae(r.out,n);case&quot;success&quot;:return!1;case&quot;catch&quot;:return!1}throw new Error(`Unknown schema type: ${r.type}`)}const jz=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:&quot;Module&quot;})),Tz=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:w0,$ZodArray:qd,$ZodAsyncError:Oi,$ZodBase64:u0,$ZodBase64URL:c0,$ZodBigInt:Yd,$ZodBigIntFormat:v0,$ZodBoolean:Xd,$ZodCIDRv4:a0,$ZodCIDRv6:s0,$ZodCUID:G_,$ZodCUID2:Q_,$ZodCatch:Z0,$ZodCheck:Pe,$ZodCheckBigIntFormat:b_,$ZodCheckEndsWith:D_,$ZodCheckGreaterThan:Hd,$ZodCheckIncludes:C_,$ZodCheckLengthEquals:j_,$ZodCheckLessThan:Kd,$ZodCheckLowerCase:P_,$ZodCheckMaxLength:E_,$ZodCheckMaxSize:I_,$ZodCheckMimeType:Z_,$ZodCheckMinLength:N_,$ZodCheckMinSize:z_,$ZodCheckMultipleOf:S_,$ZodCheckNumberFormat:x_,$ZodCheckOverwrite:L_,$ZodCheckProperty:R_,$ZodCheckRegex:T_,$ZodCheckSizeEquals:O_,$ZodCheckStartsWith:A_,$ZodCheckStringFormat:ta,$ZodCheckUpperCase:U_,$ZodCustom:W0,$ZodCustomStringFormat:p0,$ZodDate:S0,$ZodDefault:C0,$ZodDiscriminatedUnion:b0,$ZodE164:d0,$ZodEmail:W_,$ZodEmoji:K_,$ZodEnum:N0,$ZodError:Zd,$ZodFile:T0,$ZodFunction:Aw,$ZodGUID:V_,$ZodIPv4:i0,$ZodIPv6:o0,$ZodISODate:t0,$ZodISODateTime:e0,$ZodISODuration:r0,$ZodISOTime:n0,$ZodIntersection:I0,$ZodJWT:m0,$ZodKSUID:q_,$ZodLazy:B0,$ZodLiteral:j0,$ZodMap:O0,$ZodNaN:L0,$ZodNanoID:H_,$ZodNever:$0,$ZodNonOptional:D0,$ZodNull:_0,$ZodNullable:U0,$ZodNumber:Qd,$ZodNumberFormat:h0,$ZodObject:x0,$ZodOptional:P0,$ZodPipe:nf,$ZodPrefault:A0,$ZodPromise:V0,$ZodReadonly:M0,$ZodRealError:ea,$ZodRecord:z0,$ZodRegistry:rf,$ZodSet:E0,$ZodString:na,$ZodStringFormat:_e,$ZodSuccess:R0,$ZodSymbol:g0,$ZodTemplateLiteral:F0,$ZodTransform:tf,$ZodTuple:uu,$ZodType:te,$ZodULID:X_,$ZodURL:J_,$ZodUUID:B_,$ZodUndefined:y0,$ZodUnion:ef,$ZodUnknown:Es,$ZodVoid:k0,$ZodXID:Y_,$brand:Sy,$constructor:w,$input:G0,$output:H0,Doc:M_,JSONSchema:jz,JSONSchemaGenerator:kc,NEVER:ky,TimePrecision:Y0,_any:_w,_array:Zf,_base64:Sf,_base64url:xf,_bigint:fw,_boolean:cw,_catch:bz,_cidrv4:$f,_cidrv6:kf,_coercedBigint:mw,_coercedBoolean:dw,_coercedDate:Sw,_coercedNumber:iw,_coercedString:X0,_cuid:pf,_cuid2:hf,_custom:Tw,_date:kw,_default:kz,_discriminatedUnion:dz,_e164:bf,_email:af,_emoji:ff,_endsWith:Pf,_enum:vz,_file:jw,_float32:aw,_float64:sw,_gt:zr,_gte:gt,_guid:Ns,_includes:jf,_int:ow,_int32:uw,_int64:pw,_intersection:fz,_ipv4:_f,_ipv6:wf,_isoDate:ew,_isoDateTime:q0,_isoDuration:nw,_isoTime:tw,_jwt:If,_ksuid:yf,_lazy:Ez,_length:du,_literal:yz,_lowercase:Ef,_lt:Ir,_lte:Wt,_map:pz,_max:Wt,_maxLength:cu,_maxSize:lu,_mime:Uf,_min:gt,_minLength:ji,_minSize:Mo,_multipleOf:Lo,_nan:xw,_nanoid:mf,_nativeEnum:gz,_negative:Iw,_never:ww,_nonnegative:Ow,_nonoptional:Sz,_nonpositive:zw,_normalize:Cf,_null:yw,_nullable:$z,_number:rw,_optional:wz,_overwrite:Tr,_parse:Fd,_parseAsync:Vd,_pipe:Iz,_positive:bw,_promise:Nz,_property:Ew,_readonly:zz,_record:mz,_refine:Pw,_regex:Of,_safeParse:Bd,_safeParseAsync:Wd,_set:hz,_size:zf,_startsWith:Tf,_string:Q0,_stringFormat:Cw,_stringbool:Uw,_success:xz,_symbol:vw,_templateLiteral:Oz,_toLowerCase:Df,_toUpperCase:Rf,_transform:_z,_trim:Af,_tuple:Nw,_uint32:lw,_uint64:hw,_ulid:vf,_undefined:gw,_union:cz,_unknown:js,_uppercase:Nf,_url:df,_uuid:sf,_uuidv4:uf,_uuidv6:lf,_uuidv7:cf,_void:$w,_xid:gf,clone:rn,config:rt,flattenError:Ld,formatError:Md,function:Dw,globalConfig:zs,globalRegistry:lr,isValidBase64:Gd,isValidBase64URL:l0,isValidJWT:f0,locales:K0,parse:_c,parseAsync:wc,prettifyError:Ly,regexes:$_,registry:of,safeParse:My,safeParseAsync:Fy,toDotPath:Zy,toJSONSchema:Rw,treeifyError:Ry,util:Ob,version:F_},Symbol.toStringTag,{value:&quot;Module&quot;})),Lf=w(&quot;ZodISODateTime&quot;,(e,t)=&gt;{e0.init(e,t),xe.init(e,t)});function Zw(e){return q0(Lf,e)}const Mf=w(&quot;ZodISODate&quot;,(e,t)=&gt;{t0.init(e,t),xe.init(e,t)});function Lw(e){return ew(Mf,e)}const Ff=w(&quot;ZodISOTime&quot;,(e,t)=&gt;{n0.init(e,t),xe.init(e,t)});function Mw(e){return tw(Ff,e)}const Vf=w(&quot;ZodISODuration&quot;,(e,t)=&gt;{r0.init(e,t),xe.init(e,t)});function Fw(e){return nw(Vf,e)}const Pz=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Mf,ZodISODateTime:Lf,ZodISODuration:Vf,ZodISOTime:Ff,date:Lw,datetime:Zw,duration:Fw,time:Mw},Symbol.toStringTag,{value:&quot;Module&quot;})),Vw=(e,t)=&gt;{Zd.init(e,t),e.name=&quot;ZodError&quot;,Object.defineProperties(e,{format:{value:n=&gt;Md(e,n)},flatten:{value:n=&gt;Ld(e,n)},addIssue:{value:n=&gt;e.issues.push(n)},addIssues:{value:n=&gt;e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},Uz=w(&quot;ZodError&quot;,Vw),ra=w(&quot;ZodError&quot;,Vw,{Parent:Error}),Bw=Fd(ra),Ww=Vd(ra),Jw=Bd(ra),Kw=Wd(ra),ie=w(&quot;ZodType&quot;,(e,t)=&gt;(te.init(e,t),e.def=t,Object.defineProperty(e,&quot;_def&quot;,{value:t}),e.check=(...n)=&gt;e.clone({...t,checks:[...t.checks??[],...n.map(i=&gt;typeof i==&quot;function&quot;?{_zod:{check:i,def:{check:&quot;custom&quot;},onattach:[]}}:i)]}),e.clone=(n,i)=&gt;rn(e,n,i),e.brand=()=&gt;e,e.register=(n,i)=&gt;(n.add(e,i),e),e.parse=(n,i)=&gt;Bw(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=&gt;Jw(e,n,i),e.parseAsync=async(n,i)=&gt;Ww(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=&gt;Kw(e,n,i),e.spa=e.safeParseAsync,e.refine=(n,i)=&gt;e.check(U$(n,i)),e.superRefine=n=&gt;e.check(C$(n)),e.overwrite=n=&gt;e.check(Tr(n)),e.optional=()=&gt;Us(e),e.nullable=()=&gt;Cs(e),e.nullish=()=&gt;Us(Cs(e)),e.nonoptional=n=&gt;k$(e,n),e.array=()=&gt;cm(e),e.or=n=&gt;yu([e,n]),e.and=n=&gt;u$(e,n),e.transform=n=&gt;As(e,pm(n)),e.default=n=&gt;_$(e,n),e.prefault=n=&gt;$$(e,n),e.catch=n=&gt;b$(e,n),e.pipe=n=&gt;As(e,n),e.readonly=()=&gt;O$(e),e.describe=n=&gt;{const i=e.clone();return lr.add(i,{description:n}),i},Object.defineProperty(e,&quot;description&quot;,{get(){var n;return(n=lr.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=&gt;{if(n.length===0)return lr.get(e);const i=e.clone();return lr.add(i,n[0]),i},e.isOptional=()=&gt;e.safeParse(void 0).success,e.isNullable=()=&gt;e.safeParse(null).success,e)),Bf=w(&quot;_ZodString&quot;,(e,t)=&gt;{na.init(e,t),ie.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=&gt;e.check(Of(...i)),e.includes=(...i)=&gt;e.check(jf(...i)),e.startsWith=(...i)=&gt;e.check(Tf(...i)),e.endsWith=(...i)=&gt;e.check(Pf(...i)),e.min=(...i)=&gt;e.check(ji(...i)),e.max=(...i)=&gt;e.check(cu(...i)),e.length=(...i)=&gt;e.check(du(...i)),e.nonempty=(...i)=&gt;e.check(ji(1,...i)),e.lowercase=i=&gt;e.check(Ef(i)),e.uppercase=i=&gt;e.check(Nf(i)),e.trim=()=&gt;e.check(Af()),e.normalize=(...i)=&gt;e.check(Cf(...i)),e.toLowerCase=()=&gt;e.check(Df()),e.toUpperCase=()=&gt;e.check(Rf())}),fu=w(&quot;ZodString&quot;,(e,t)=&gt;{na.init(e,t),Bf.init(e,t),e.email=n=&gt;e.check(af(Wf,n)),e.url=n=&gt;e.check(df(Jf,n)),e.jwt=n=&gt;e.check(If(sm,n)),e.emoji=n=&gt;e.check(ff(Kf,n)),e.guid=n=&gt;e.check(Ns(Ts,n)),e.uuid=n=&gt;e.check(sf(fn,n)),e.uuidv4=n=&gt;e.check(uf(fn,n)),e.uuidv6=n=&gt;e.check(lf(fn,n)),e.uuidv7=n=&gt;e.check(cf(fn,n)),e.nanoid=n=&gt;e.check(mf(Hf,n)),e.guid=n=&gt;e.check(Ns(Ts,n)),e.cuid=n=&gt;e.check(pf(Gf,n)),e.cuid2=n=&gt;e.check(hf(Qf,n)),e.ulid=n=&gt;e.check(vf(Xf,n)),e.base64=n=&gt;e.check(Sf(im,n)),e.base64url=n=&gt;e.check(xf(om,n)),e.xid=n=&gt;e.check(gf(Yf,n)),e.ksuid=n=&gt;e.check(yf(qf,n)),e.ipv4=n=&gt;e.check(_f(em,n)),e.ipv6=n=&gt;e.check(wf(tm,n)),e.cidrv4=n=&gt;e.check($f(nm,n)),e.cidrv6=n=&gt;e.check(kf(rm,n)),e.e164=n=&gt;e.check(bf(am,n)),e.datetime=n=&gt;e.check(Zw(n)),e.date=n=&gt;e.check(Lw(n)),e.time=n=&gt;e.check(Mw(n)),e.duration=n=&gt;e.check(Fw(n))});function Sc(e){return Q0(fu,e)}const xe=w(&quot;ZodStringFormat&quot;,(e,t)=&gt;{_e.init(e,t),Bf.init(e,t)}),Wf=w(&quot;ZodEmail&quot;,(e,t)=&gt;{W_.init(e,t),xe.init(e,t)});function Cz(e){return af(Wf,e)}const Ts=w(&quot;ZodGUID&quot;,(e,t)=&gt;{V_.init(e,t),xe.init(e,t)});function Az(e){return Ns(Ts,e)}const fn=w(&quot;ZodUUID&quot;,(e,t)=&gt;{B_.init(e,t),xe.init(e,t)});function Dz(e){return sf(fn,e)}function Rz(e){return uf(fn,e)}function Zz(e){return lf(fn,e)}function Lz(e){return cf(fn,e)}const Jf=w(&quot;ZodURL&quot;,(e,t)=&gt;{J_.init(e,t),xe.init(e,t)});function Mz(e){return df(Jf,e)}const Kf=w(&quot;ZodEmoji&quot;,(e,t)=&gt;{K_.init(e,t),xe.init(e,t)});function Fz(e){return ff(Kf,e)}const Hf=w(&quot;ZodNanoID&quot;,(e,t)=&gt;{H_.init(e,t),xe.init(e,t)});function Vz(e){return mf(Hf,e)}const Gf=w(&quot;ZodCUID&quot;,(e,t)=&gt;{G_.init(e,t),xe.init(e,t)});function Bz(e){return pf(Gf,e)}const Qf=w(&quot;ZodCUID2&quot;,(e,t)=&gt;{Q_.init(e,t),xe.init(e,t)});function Wz(e){return hf(Qf,e)}const Xf=w(&quot;ZodULID&quot;,(e,t)=&gt;{X_.init(e,t),xe.init(e,t)});function Jz(e){return vf(Xf,e)}const Yf=w(&quot;ZodXID&quot;,(e,t)=&gt;{Y_.init(e,t),xe.init(e,t)});function Kz(e){return gf(Yf,e)}const qf=w(&quot;ZodKSUID&quot;,(e,t)=&gt;{q_.init(e,t),xe.init(e,t)});function Hz(e){return yf(qf,e)}const em=w(&quot;ZodIPv4&quot;,(e,t)=&gt;{i0.init(e,t),xe.init(e,t)});function Gz(e){return _f(em,e)}const tm=w(&quot;ZodIPv6&quot;,(e,t)=&gt;{o0.init(e,t),xe.init(e,t)});function Qz(e){return wf(tm,e)}const nm=w(&quot;ZodCIDRv4&quot;,(e,t)=&gt;{a0.init(e,t),xe.init(e,t)});function Xz(e){return $f(nm,e)}const rm=w(&quot;ZodCIDRv6&quot;,(e,t)=&gt;{s0.init(e,t),xe.init(e,t)});function Yz(e){return kf(rm,e)}const im=w(&quot;ZodBase64&quot;,(e,t)=&gt;{u0.init(e,t),xe.init(e,t)});function qz(e){return Sf(im,e)}const om=w(&quot;ZodBase64URL&quot;,(e,t)=&gt;{c0.init(e,t),xe.init(e,t)});function e4(e){return xf(om,e)}const am=w(&quot;ZodE164&quot;,(e,t)=&gt;{d0.init(e,t),xe.init(e,t)});function t4(e){return bf(am,e)}const sm=w(&quot;ZodJWT&quot;,(e,t)=&gt;{m0.init(e,t),xe.init(e,t)});function n4(e){return If(sm,e)}const Hw=w(&quot;ZodCustomStringFormat&quot;,(e,t)=&gt;{p0.init(e,t),xe.init(e,t)});function r4(e,t,n={}){return Cw(Hw,e,t,n)}const mu=w(&quot;ZodNumber&quot;,(e,t)=&gt;{Qd.init(e,t),ie.init(e,t),e.gt=(i,r)=&gt;e.check(zr(i,r)),e.gte=(i,r)=&gt;e.check(gt(i,r)),e.min=(i,r)=&gt;e.check(gt(i,r)),e.lt=(i,r)=&gt;e.check(Ir(i,r)),e.lte=(i,r)=&gt;e.check(Wt(i,r)),e.max=(i,r)=&gt;e.check(Wt(i,r)),e.int=i=&gt;e.check(xc(i)),e.safe=i=&gt;e.check(xc(i)),e.positive=i=&gt;e.check(zr(0,i)),e.nonnegative=i=&gt;e.check(gt(0,i)),e.negative=i=&gt;e.check(Ir(0,i)),e.nonpositive=i=&gt;e.check(Wt(0,i)),e.multipleOf=(i,r)=&gt;e.check(Lo(i,r)),e.step=(i,r)=&gt;e.check(Lo(i,r)),e.finite=()=&gt;e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??&quot;&quot;).includes(&quot;int&quot;)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Gw(e){return rw(mu,e)}const Ri=w(&quot;ZodNumberFormat&quot;,(e,t)=&gt;{h0.init(e,t),mu.init(e,t)});function xc(e){return ow(Ri,e)}function i4(e){return aw(Ri,e)}function o4(e){return sw(Ri,e)}function a4(e){return uw(Ri,e)}function s4(e){return lw(Ri,e)}const pu=w(&quot;ZodBoolean&quot;,(e,t)=&gt;{Xd.init(e,t),ie.init(e,t)});function Qw(e){return cw(pu,e)}const hu=w(&quot;ZodBigInt&quot;,(e,t)=&gt;{Yd.init(e,t),ie.init(e,t),e.gte=(i,r)=&gt;e.check(gt(i,r)),e.min=(i,r)=&gt;e.check(gt(i,r)),e.gt=(i,r)=&gt;e.check(zr(i,r)),e.gte=(i,r)=&gt;e.check(gt(i,r)),e.min=(i,r)=&gt;e.check(gt(i,r)),e.lt=(i,r)=&gt;e.check(Ir(i,r)),e.lte=(i,r)=&gt;e.check(Wt(i,r)),e.max=(i,r)=&gt;e.check(Wt(i,r)),e.positive=i=&gt;e.check(zr(BigInt(0),i)),e.negative=i=&gt;e.check(Ir(BigInt(0),i)),e.nonpositive=i=&gt;e.check(Wt(BigInt(0),i)),e.nonnegative=i=&gt;e.check(gt(BigInt(0),i)),e.multipleOf=(i,r)=&gt;e.check(Lo(i,r));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function u4(e){return fw(hu,e)}const um=w(&quot;ZodBigIntFormat&quot;,(e,t)=&gt;{v0.init(e,t),hu.init(e,t)});function l4(e){return pw(um,e)}function c4(e){return hw(um,e)}const Xw=w(&quot;ZodSymbol&quot;,(e,t)=&gt;{g0.init(e,t),ie.init(e,t)});function d4(e){return vw(Xw,e)}const Yw=w(&quot;ZodUndefined&quot;,(e,t)=&gt;{y0.init(e,t),ie.init(e,t)});function f4(e){return gw(Yw,e)}const qw=w(&quot;ZodNull&quot;,(e,t)=&gt;{_0.init(e,t),ie.init(e,t)});function e$(e){return yw(qw,e)}const t$=w(&quot;ZodAny&quot;,(e,t)=&gt;{w0.init(e,t),ie.init(e,t)});function m4(){return _w(t$)}const n$=w(&quot;ZodUnknown&quot;,(e,t)=&gt;{Es.init(e,t),ie.init(e,t)});function Ps(){return js(n$)}const r$=w(&quot;ZodNever&quot;,(e,t)=&gt;{$0.init(e,t),ie.init(e,t)});function vu(e){return ww(r$,e)}const i$=w(&quot;ZodVoid&quot;,(e,t)=&gt;{k0.init(e,t),ie.init(e,t)});function p4(e){return $w(i$,e)}const lm=w(&quot;ZodDate&quot;,(e,t)=&gt;{S0.init(e,t),ie.init(e,t),e.min=(i,r)=&gt;e.check(gt(i,r)),e.max=(i,r)=&gt;e.check(Wt(i,r));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function h4(e){return kw(lm,e)}const o$=w(&quot;ZodArray&quot;,(e,t)=&gt;{qd.init(e,t),ie.init(e,t),e.element=t.element,e.min=(n,i)=&gt;e.check(ji(n,i)),e.nonempty=n=&gt;e.check(ji(1,n)),e.max=(n,i)=&gt;e.check(cu(n,i)),e.length=(n,i)=&gt;e.check(du(n,i)),e.unwrap=()=&gt;e.element});function cm(e,t){return Zf(o$,e,t)}function v4(e){const t=e._zod.def.shape;return h$(Object.keys(t))}const gu=w(&quot;ZodObject&quot;,(e,t)=&gt;{x0.init(e,t),ie.init(e,t),pe(e,&quot;shape&quot;,()=&gt;t.shape),e.keyof=()=&gt;m$(Object.keys(e._zod.def.shape)),e.catchall=n=&gt;e.clone({...e._zod.def,catchall:n}),e.passthrough=()=&gt;e.clone({...e._zod.def,catchall:Ps()}),e.loose=()=&gt;e.clone({...e._zod.def,catchall:Ps()}),e.strict=()=&gt;e.clone({...e._zod.def,catchall:vu()}),e.strip=()=&gt;e.clone({...e._zod.def,catchall:void 0}),e.extend=n=&gt;Py(e,n),e.merge=n=&gt;Uy(e,n),e.pick=n=&gt;jy(e,n),e.omit=n=&gt;Ty(e,n),e.partial=(...n)=&gt;Cy(hm,e,n[0]),e.required=(...n)=&gt;Ay(vm,e,n[0])});function g4(e,t){const n={type:&quot;object&quot;,get shape(){return Di(this,&quot;shape&quot;,{...e}),this.shape},...N(t)};return new gu(n)}function y4(e,t){return new gu({type:&quot;object&quot;,get shape(){return Di(this,&quot;shape&quot;,{...e}),this.shape},catchall:vu(),...N(t)})}function _4(e,t){return new gu({type:&quot;object&quot;,get shape(){return Di(this,&quot;shape&quot;,{...e}),this.shape},catchall:Ps(),...N(t)})}const dm=w(&quot;ZodUnion&quot;,(e,t)=&gt;{ef.init(e,t),ie.init(e,t),e.options=t.options});function yu(e,t){return new dm({type:&quot;union&quot;,options:e,...N(t)})}const a$=w(&quot;ZodDiscriminatedUnion&quot;,(e,t)=&gt;{dm.init(e,t),b0.init(e,t)});function w4(e,t,n){return new a$({type:&quot;union&quot;,options:t,discriminator:e,...N(n)})}const s$=w(&quot;ZodIntersection&quot;,(e,t)=&gt;{I0.init(e,t),ie.init(e,t)});function u$(e,t){return new s$({type:&quot;intersection&quot;,left:e,right:t})}const l$=w(&quot;ZodTuple&quot;,(e,t)=&gt;{uu.init(e,t),ie.init(e,t),e.rest=n=&gt;e.clone({...e._zod.def,rest:n})});function $4(e,t,n){const i=t instanceof te,r=i?n:t,o=i?t:null;return new l$({type:&quot;tuple&quot;,items:e,rest:o,...N(r)})}const fm=w(&quot;ZodRecord&quot;,(e,t)=&gt;{z0.init(e,t),ie.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function c$(e,t,n){return new fm({type:&quot;record&quot;,keyType:e,valueType:t,...N(n)})}function k4(e,t,n){return new fm({type:&quot;record&quot;,keyType:yu([e,vu()]),valueType:t,...N(n)})}const d$=w(&quot;ZodMap&quot;,(e,t)=&gt;{O0.init(e,t),ie.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function S4(e,t,n){return new d$({type:&quot;map&quot;,keyType:e,valueType:t,...N(n)})}const f$=w(&quot;ZodSet&quot;,(e,t)=&gt;{E0.init(e,t),ie.init(e,t),e.min=(...n)=&gt;e.check(Mo(...n)),e.nonempty=n=&gt;e.check(Mo(1,n)),e.max=(...n)=&gt;e.check(lu(...n)),e.size=(...n)=&gt;e.check(zf(...n))});function x4(e,t){return new f$({type:&quot;set&quot;,valueType:e,...N(t)})}const Fo=w(&quot;ZodEnum&quot;,(e,t)=&gt;{N0.init(e,t),ie.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,r)=&gt;{const o={};for(const a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Fo({...t,checks:[],...N(r),entries:o})},e.exclude=(i,r)=&gt;{const o={...t.entries};for(const a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Fo({...t,checks:[],...N(r),entries:o})}});function m$(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=&gt;[i,i])):e;return new Fo({type:&quot;enum&quot;,entries:n,...N(t)})}function b4(e,t){return new Fo({type:&quot;enum&quot;,entries:e,...N(t)})}const p$=w(&quot;ZodLiteral&quot;,(e,t)=&gt;{j0.init(e,t),ie.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,&quot;value&quot;,{get(){if(t.values.length&gt;1)throw new Error(&quot;This schema contains multiple valid literal values. Use `.values` instead.&quot;);return t.values[0]}})});function h$(e,t){return new p$({type:&quot;literal&quot;,values:Array.isArray(e)?e:[e],...N(t)})}const v$=w(&quot;ZodFile&quot;,(e,t)=&gt;{T0.init(e,t),ie.init(e,t),e.min=(n,i)=&gt;e.check(Mo(n,i)),e.max=(n,i)=&gt;e.check(lu(n,i)),e.mime=(n,i)=&gt;e.check(Uf(Array.isArray(n)?n:[n],i))});function I4(e){return jw(v$,e)}const mm=w(&quot;ZodTransform&quot;,(e,t)=&gt;{tf.init(e,t),ie.init(e,t),e._zod.parse=(n,i)=&gt;{n.addIssue=o=&gt;{if(typeof o==&quot;string&quot;)n.issues.push(Ei(o,n.value,t));else{const a=o;a.fatal&amp;&amp;(a.continue=!1),a.code??(a.code=&quot;custom&quot;),a.input??(a.input=n.value),a.inst??(a.inst=e),a.continue??(a.continue=!0),n.issues.push(Ei(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(o=&gt;(n.value=o,n)):(n.value=r,n)}});function pm(e){return new mm({type:&quot;transform&quot;,transform:e})}const hm=w(&quot;ZodOptional&quot;,(e,t)=&gt;{P0.init(e,t),ie.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function Us(e){return new hm({type:&quot;optional&quot;,innerType:e})}const g$=w(&quot;ZodNullable&quot;,(e,t)=&gt;{U0.init(e,t),ie.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function Cs(e){return new g$({type:&quot;nullable&quot;,innerType:e})}function z4(e){return Us(Cs(e))}const y$=w(&quot;ZodDefault&quot;,(e,t)=&gt;{C0.init(e,t),ie.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType,e.removeDefault=e.unwrap});function _$(e,t){return new y$({type:&quot;default&quot;,innerType:e,get defaultValue(){return typeof t==&quot;function&quot;?t():t}})}const w$=w(&quot;ZodPrefault&quot;,(e,t)=&gt;{A0.init(e,t),ie.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function $$(e,t){return new w$({type:&quot;prefault&quot;,innerType:e,get defaultValue(){return typeof t==&quot;function&quot;?t():t}})}const vm=w(&quot;ZodNonOptional&quot;,(e,t)=&gt;{D0.init(e,t),ie.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function k$(e,t){return new vm({type:&quot;nonoptional&quot;,innerType:e,...N(t)})}const S$=w(&quot;ZodSuccess&quot;,(e,t)=&gt;{R0.init(e,t),ie.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function O4(e){return new S$({type:&quot;success&quot;,innerType:e})}const x$=w(&quot;ZodCatch&quot;,(e,t)=&gt;{Z0.init(e,t),ie.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType,e.removeCatch=e.unwrap});function b$(e,t){return new x$({type:&quot;catch&quot;,innerType:e,catchValue:typeof t==&quot;function&quot;?t:()=&gt;t})}const I$=w(&quot;ZodNaN&quot;,(e,t)=&gt;{L0.init(e,t),ie.init(e,t)});function E4(e){return xw(I$,e)}const gm=w(&quot;ZodPipe&quot;,(e,t)=&gt;{nf.init(e,t),ie.init(e,t),e.in=t.in,e.out=t.out});function As(e,t){return new gm({type:&quot;pipe&quot;,in:e,out:t})}const z$=w(&quot;ZodReadonly&quot;,(e,t)=&gt;{M0.init(e,t),ie.init(e,t)});function O$(e){return new z$({type:&quot;readonly&quot;,innerType:e})}const E$=w(&quot;ZodTemplateLiteral&quot;,(e,t)=&gt;{F0.init(e,t),ie.init(e,t)});function N4(e,t){return new E$({type:&quot;template_literal&quot;,parts:e,...N(t)})}const N$=w(&quot;ZodLazy&quot;,(e,t)=&gt;{B0.init(e,t),ie.init(e,t),e.unwrap=()=&gt;e._zod.def.getter()});function j$(e){return new N$({type:&quot;lazy&quot;,getter:e})}const T$=w(&quot;ZodPromise&quot;,(e,t)=&gt;{V0.init(e,t),ie.init(e,t),e.unwrap=()=&gt;e._zod.def.innerType});function j4(e){return new T$({type:&quot;promise&quot;,innerType:e})}const _u=w(&quot;ZodCustom&quot;,(e,t)=&gt;{W0.init(e,t),ie.init(e,t)});function P$(e){const t=new Pe({check:&quot;custom&quot;});return t._zod.check=e,t}function T4(e,t){return Tw(_u,e??(()=&gt;!0),t)}function U$(e,t={}){return Pw(_u,e,t)}function C$(e){const t=P$(n=&gt;(n.addIssue=i=&gt;{if(typeof i==&quot;string&quot;)n.issues.push(Ei(i,n.value,t._zod.def));else{const r=i;r.fatal&amp;&amp;(r.continue=!1),r.code??(r.code=&quot;custom&quot;),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(Ei(r))}},e(n.value,n)));return t}function P4(e,t={error:`Input not instance of ${e.name}`}){const n=new _u({type:&quot;custom&quot;,check:&quot;custom&quot;,fn:i=&gt;i instanceof e,abort:!0,...N(t)});return n._zod.bag.Class=e,n}const U4=(...e)=&gt;Uw({Pipe:gm,Boolean:pu,String:fu,Transform:mm},...e);function C4(e){const t=j$(()=&gt;yu([Sc(e),Gw(),Qw(),e$(),cm(t),c$(Sc(),t)]));return t}function A4(e,t){return As(pm(e),t)}const D4={invalid_type:&quot;invalid_type&quot;,too_big:&quot;too_big&quot;,too_small:&quot;too_small&quot;,invalid_format:&quot;invalid_format&quot;,not_multiple_of:&quot;not_multiple_of&quot;,unrecognized_keys:&quot;unrecognized_keys&quot;,invalid_union:&quot;invalid_union&quot;,invalid_key:&quot;invalid_key&quot;,invalid_element:&quot;invalid_element&quot;,invalid_value:&quot;invalid_value&quot;,custom:&quot;custom&quot;};function R4(e){rt({customError:e})}function Z4(){return rt().customError}function L4(e){return X0(fu,e)}function M4(e){return iw(mu,e)}function F4(e){return dw(pu,e)}function V4(e){return mw(hu,e)}function B4(e){return Sw(lm,e)}const W4=Object.freeze(Object.defineProperty({__proto__:null,bigint:V4,boolean:F4,date:B4,number:M4,string:L4},Symbol.toStringTag,{value:&quot;Module&quot;}));rt(J0());const x=Object.freeze(Object.defineProperty({__proto__:null,$brand:Sy,$input:G0,$output:H0,NEVER:ky,TimePrecision:Y0,ZodAny:t$,ZodArray:o$,ZodBase64:im,ZodBase64URL:om,ZodBigInt:hu,ZodBigIntFormat:um,ZodBoolean:pu,ZodCIDRv4:nm,ZodCIDRv6:rm,ZodCUID:Gf,ZodCUID2:Qf,ZodCatch:x$,ZodCustom:_u,ZodCustomStringFormat:Hw,ZodDate:lm,ZodDefault:y$,ZodDiscriminatedUnion:a$,ZodE164:am,ZodEmail:Wf,ZodEmoji:Kf,ZodEnum:Fo,ZodError:Uz,ZodFile:v$,ZodGUID:Ts,ZodIPv4:em,ZodIPv6:tm,ZodISODate:Mf,ZodISODateTime:Lf,ZodISODuration:Vf,ZodISOTime:Ff,ZodIntersection:s$,ZodIssueCode:D4,ZodJWT:sm,ZodKSUID:qf,ZodLazy:N$,ZodLiteral:p$,ZodMap:d$,ZodNaN:I$,ZodNanoID:Hf,ZodNever:r$,ZodNonOptional:vm,ZodNull:qw,ZodNullable:g$,ZodNumber:mu,ZodNumberFormat:Ri,ZodObject:gu,ZodOptional:hm,ZodPipe:gm,ZodPrefault:w$,ZodPromise:T$,ZodReadonly:z$,ZodRealError:ra,ZodRecord:fm,ZodSet:f$,ZodString:fu,ZodStringFormat:xe,ZodSuccess:S$,ZodSymbol:Xw,ZodTemplateLiteral:E$,ZodTransform:mm,ZodTuple:l$,ZodType:ie,ZodULID:Xf,ZodURL:Jf,ZodUUID:fn,ZodUndefined:Yw,ZodUnion:dm,ZodUnknown:n$,ZodVoid:i$,ZodXID:Yf,_ZodString:Bf,_default:_$,any:m4,array:cm,base64:qz,base64url:e4,bigint:u4,boolean:Qw,catch:b$,check:P$,cidrv4:Xz,cidrv6:Yz,clone:rn,coerce:W4,config:rt,core:Tz,cuid:Bz,cuid2:Wz,custom:T4,date:h4,discriminatedUnion:w4,e164:t4,email:Cz,emoji:Fz,endsWith:Pf,enum:m$,file:I4,flattenError:Ld,float32:i4,float64:o4,formatError:Md,function:Dw,getErrorMap:Z4,globalRegistry:lr,gt:zr,gte:gt,guid:Az,includes:jf,instanceof:P4,int:xc,int32:a4,int64:l4,intersection:u$,ipv4:Gz,ipv6:Qz,iso:Pz,json:C4,jwt:n4,keyof:v4,ksuid:Hz,lazy:j$,length:du,literal:h$,locales:K0,looseObject:_4,lowercase:Ef,lt:Ir,lte:Wt,map:S4,maxLength:cu,maxSize:lu,mime:Uf,minLength:ji,minSize:Mo,multipleOf:Lo,nan:E4,nanoid:Vz,nativeEnum:b4,negative:Iw,never:vu,nonnegative:Ow,nonoptional:k$,nonpositive:zw,normalize:Cf,null:e$,nullable:Cs,nullish:z4,number:Gw,object:g4,optional:Us,overwrite:Tr,parse:Bw,parseAsync:Ww,partialRecord:k4,pipe:As,positive:bw,prefault:$$,preprocess:A4,prettifyError:Ly,promise:j4,property:Ew,readonly:O$,record:c$,refine:U$,regex:Of,regexes:$_,registry:of,safeParse:Jw,safeParseAsync:Kw,set:x4,setErrorMap:R4,size:zf,startsWith:Tf,strictObject:y4,string:Sc,stringFormat:r4,stringbool:U4,success:O4,superRefine:C$,symbol:d4,templateLiteral:N4,toJSONSchema:Rw,toLowerCase:Df,toUpperCase:Rf,transform:pm,treeifyError:Ry,trim:Af,tuple:$4,uint32:s4,uint64:c4,ulid:Jz,undefined:f4,union:yu,unknown:Ps,uppercase:Nf,url:Mz,uuid:Dz,uuidv4:Rz,uuidv6:Zz,uuidv7:Lz,void:p4,xid:Kz},Symbol.toStringTag,{value:&quot;Module&quot;}));var J4=&quot;actor-runtime&quot;;function K4(){return oy(J4)}function H4(e){throw K4().error(&quot;unreachable&quot;,{value:`${e}`,stack:new Error().stack}),new lx(e)}var ym=$y([&quot;json&quot;,&quot;cbor&quot;]);Ze({a:Ad(Ai())});Ze({o:Ai()});var G4=Ze({i:mb().int(),n:mt(),a:Ad(Ai())}),Q4=Ze({e:mt(),s:pb()});Ze({b:wy([Ze({ar:G4}),Ze({sr:Q4})])});$y([&quot;websocket&quot;,&quot;sse&quot;]);var Xr=&quot;X-RivetKit-Query&quot;,or=&quot;X-RivetKit-Encoding&quot;,Yr=&quot;X-RivetKit-Conn-Params&quot;,A$=&quot;X-RivetKit-Actor&quot;,D$=&quot;X-RivetKit-Conn&quot;,R$=&quot;X-RivetKit-Conn-Token&quot;,Z$=128,_m=Ad(mt().max(Z$)),X4=Ze({name:mt(),key:_m,input:Ai().optional(),region:mt().optional()}),Y4=Ze({name:mt(),key:_m}),q4=Ze({name:mt(),key:_m,input:Ai().optional(),region:mt().optional()}),wm=wy([Ze({getForId:Ze({actorId:mt()})}),Ze({getForKey:Y4}),Ze({getOrCreateForKey:q4}),Ze({create:X4})]);Ze({query:wm.describe(Xr),encoding:ym.describe(or),connParams:mt().optional().describe(Yr)});Ze({query:wm.describe(&quot;query&quot;),encoding:ym.describe(&quot;encoding&quot;),connParams:Ai().optional().describe(&quot;conn_params&quot;)});Ze({actorId:mt().describe(A$),connId:mt().describe(D$),encoding:ym.describe(or),connToken:mt().describe(R$)});Ze({query:wm.describe(Xr),connParams:mt().optional().describe(Yr)});var eO=x.string().brand(&quot;ActorId&quot;),L$=(e=&gt;(e.Logs=&quot;logs&quot;,e.Config=&quot;config&quot;,e.Connections=&quot;connections&quot;,e.State=&quot;state&quot;,e.Console=&quot;console&quot;,e.Runtime=&quot;runtime&quot;,e.Metrics=&quot;metrics&quot;,e.EventsMonitoring=&quot;events-monitoring&quot;,e.Database=&quot;database&quot;,e))(L$||{});x.object({level:x.string(),message:x.string(),timestamp:x.string(),metadata:x.record(x.string(),x.any()).optional()});x.object({id:eO,name:x.string(),key:x.array(x.string()),tags:x.record(x.string(),x.string()).optional(),region:x.string().optional(),createdAt:x.string().optional(),startedAt:x.string().optional(),destroyedAt:x.string().optional(),features:x.array(x.enum(L$)).optional()});var tO=x.discriminatedUnion(&quot;op&quot;,[x.object({op:x.literal(&quot;remove&quot;),path:x.string()}),x.object({op:x.literal(&quot;add&quot;),path:x.string(),value:x.unknown()}),x.object({op:x.literal(&quot;replace&quot;),path:x.string(),value:x.unknown()}),x.object({op:x.literal(&quot;move&quot;),path:x.string(),from:x.string()}),x.object({op:x.literal(&quot;copy&quot;),path:x.string(),from:x.string()}),x.object({op:x.literal(&quot;test&quot;),path:x.string(),value:x.unknown()})]);x.array(tO);x.object({params:x.record(x.string(),x.any()).optional(),id:x.string(),stateEnabled:x.boolean().optional(),state:x.any().optional(),auth:x.record(x.string(),x.any()).optional()});var nO=x.discriminatedUnion(&quot;type&quot;,[x.object({type:x.literal(&quot;action&quot;),name:x.string(),args:x.array(x.any()),connId:x.string()}),x.object({type:x.literal(&quot;broadcast&quot;),eventName:x.string(),args:x.array(x.any())}),x.object({type:x.literal(&quot;subscribe&quot;),eventName:x.string(),connId:x.string()}),x.object({type:x.literal(&quot;unsubscribe&quot;),eventName:x.string(),connId:x.string()}),x.object({type:x.literal(&quot;event&quot;),eventName:x.string(),args:x.array(x.any()),connId:x.string()})]);nO.and(x.object({id:x.string(),timestamp:x.number()}));x.object({sql:x.string(),args:x.array(x.string().or(x.number()))});var rO=x.object({schema:x.string(),name:x.string(),type:x.enum([&quot;table&quot;,&quot;view&quot;])});x.array(rO);var iO=x.object({cid:x.number(),name:x.string(),type:x.string().toLowerCase().transform(e=&gt;x.enum([&quot;integer&quot;,&quot;text&quot;,&quot;real&quot;,&quot;blob&quot;,&quot;numeric&quot;,&quot;serial&quot;]).parse(e)),notnull:x.coerce.boolean(),dflt_value:x.string().nullable(),pk:x.coerce.boolean().nullable()});x.array(iO);var oO=x.object({id:x.number(),table:x.string(),from:x.string(),to:x.string()});x.array(oO);var aO=x.object({name:x.string(),createdAt:x.string().optional(),tags:x.record(x.string(),x.string()).optional()});x.array(aO);x.object({name:x.string(),key:x.array(x.string().max(Z$)),input:x.any()});var sO=function(e,t,n,i,r,o,a,s){if(!e){var u;if(t===void 0)u=new Error(&quot;Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.&quot;);else{var l=[n,i,r,o,a,s],m=0;u=new Error(t.replace(/%s/g,function(){return l[m++]})),u.name=&quot;Invariant Violation&quot;}throw u.framesToPop=1,u}},uO=sO;const lO=Ah(uO);/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2022 Joachim Wester
 * MIT licensed
 */var cO=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(i,r){i.__proto__=r}||function(i,r){for(var o in r)r.hasOwnProperty(o)&amp;&amp;(i[o]=r[o])},e(t,n)};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),dO=Object.prototype.hasOwnProperty;function bc(e,t){return dO.call(e,t)}function Ic(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 i=[];for(var r in e)bc(e,r)&amp;&amp;i.push(r);return i}function _t(e){switch(typeof e){case&quot;object&quot;:return JSON.parse(JSON.stringify(e));case&quot;undefined&quot;:return null;default:return e}}function zc(e){for(var t=0,n=e.length,i;t&lt;n;){if(i=e.charCodeAt(t),i&gt;=48&amp;&amp;i&lt;=57){t++;continue}return!1}return!0}function ir(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 M$(e){return e.replace(/~1/g,&quot;/&quot;).replace(/~0/g,&quot;~&quot;)}function Oc(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(Oc(e[t]))return!0}else if(typeof e==&quot;object&quot;){for(var i=Ic(e),r=i.length,o=0;o&lt;r;o++)if(Oc(e[i[o]]))return!0}}return!1}function zh(e,t){var n=[e];for(var i in t){var r=typeof t[i]==&quot;object&quot;?JSON.stringify(t[i],null,2):t[i];typeof r&lt;&quot;u&quot;&amp;&amp;n.push(i+&quot;: &quot;+r)}return n.join(`
`)}var F$=function(e){cO(t,e);function t(n,i,r,o,a){var s=this.constructor,u=e.call(this,zh(n,{name:i,index:r,operation:o,tree:a}))||this;return u.name=i,u.index=r,u.operation=o,u.tree=a,Object.setPrototypeOf(u,s.prototype),u.message=zh(n,{name:i,index:r,operation:o,tree:a}),u}return t}(Error),Ee=F$,fO=_t,qr={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var i=e[t];return delete e[t],{newDocument:n,removed:i}},replace:function(e,t,n){var i=e[t];return e[t]=this.value,{newDocument:n,removed:i}},move:function(e,t,n){var i=Ds(n,this.path);i&amp;&amp;(i=_t(i));var r=yr(n,{op:&quot;remove&quot;,path:this.from}).removed;return yr(n,{op:&quot;add&quot;,path:this.path,value:r}),{newDocument:n,removed:i}},copy:function(e,t,n){var i=Ds(n,this.from);return yr(n,{op:&quot;add&quot;,path:this.path,value:_t(i)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:Vo(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},mO={add:function(e,t,n){return zc(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){var i=e.splice(t,1);return{newDocument:n,removed:i[0]}},replace:function(e,t,n){var i=e[t];return e[t]=this.value,{newDocument:n,removed:i}},move:qr.move,copy:qr.copy,test:qr.test,_get:qr._get};function Ds(e,t){if(t==&quot;&quot;)return e;var n={op:&quot;_get&quot;,path:t};return yr(e,n),n.value}function yr(e,t,n,i,r,o){if(n===void 0&amp;&amp;(n=!1),i===void 0&amp;&amp;(i=!0),r===void 0&amp;&amp;(r=!0),o===void 0&amp;&amp;(o=0),n&amp;&amp;(typeof n==&quot;function&quot;?n(t,0,e,t.path):Rs(t,0)),t.path===&quot;&quot;){var a={newDocument:e};if(t.op===&quot;add&quot;)return a.newDocument=t.value,a;if(t.op===&quot;replace&quot;)return a.newDocument=t.value,a.removed=e,a;if(t.op===&quot;move&quot;||t.op===&quot;copy&quot;)return a.newDocument=Ds(e,t.from),t.op===&quot;move&quot;&amp;&amp;(a.removed=e),a;if(t.op===&quot;test&quot;){if(a.test=Vo(e,t.value),a.test===!1)throw new Ee(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,o,t,e);return a.newDocument=e,a}else{if(t.op===&quot;remove&quot;)return a.removed=e,a.newDocument=null,a;if(t.op===&quot;_get&quot;)return t.value=e,a;if(n)throw new Ee(&quot;Operation `op` property is not one of operations defined in RFC-6902&quot;,&quot;OPERATION_OP_INVALID&quot;,o,t,e);return a}}else{i||(e=_t(e));var s=t.path||&quot;&quot;,u=s.split(&quot;/&quot;),l=e,m=1,p=u.length,h=void 0,y=void 0,g=void 0;for(typeof n==&quot;function&quot;?g=n:g=Rs;;){if(y=u[m],y&amp;&amp;y.indexOf(&quot;~&quot;)!=-1&amp;&amp;(y=M$(y)),r&amp;&amp;(y==&quot;__proto__&quot;||y==&quot;prototype&quot;&amp;&amp;m&gt;0&amp;&amp;u[m-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;h===void 0&amp;&amp;(l[y]===void 0?h=u.slice(0,m).join(&quot;/&quot;):m==p-1&amp;&amp;(h=t.path),h!==void 0&amp;&amp;g(t,0,e,h)),m++,Array.isArray(l)){if(y===&quot;-&quot;)y=l.length;else{if(n&amp;&amp;!zc(y))throw new Ee(&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;,o,t,e);zc(y)&amp;&amp;(y=~~y)}if(m&gt;=p){if(n&amp;&amp;t.op===&quot;add&quot;&amp;&amp;y&gt;l.length)throw new Ee(&quot;The specified index MUST NOT be greater than the number of elements in the array&quot;,&quot;OPERATION_VALUE_OUT_OF_BOUNDS&quot;,o,t,e);var a=mO[t.op].call(t,l,y,e);if(a.test===!1)throw new Ee(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,o,t,e);return a}}else if(m&gt;=p){var a=qr[t.op].call(t,l,y,e);if(a.test===!1)throw new Ee(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,o,t,e);return a}if(l=l[y],n&amp;&amp;m&lt;p&amp;&amp;(!l||typeof l!=&quot;object&quot;))throw new Ee(&quot;Cannot perform operation at the desired path&quot;,&quot;OPERATION_PATH_UNRESOLVABLE&quot;,o,t,e)}}}function $m(e,t,n,i,r){if(i===void 0&amp;&amp;(i=!0),r===void 0&amp;&amp;(r=!0),n&amp;&amp;!Array.isArray(t))throw new Ee(&quot;Patch sequence must be an array&quot;,&quot;SEQUENCE_NOT_AN_ARRAY&quot;);i||(e=_t(e));for(var o=new Array(t.length),a=0,s=t.length;a&lt;s;a++)o[a]=yr(e,t[a],n,!0,r,a),e=o[a].newDocument;return o.newDocument=e,o}function pO(e,t,n){var i=yr(e,t);if(i.test===!1)throw new Ee(&quot;Test operation failed&quot;,&quot;TEST_OPERATION_FAILED&quot;,n,t,e);return i.newDocument}function Rs(e,t,n,i){if(typeof e!=&quot;object&quot;||e===null||Array.isArray(e))throw new Ee(&quot;Operation is not an object&quot;,&quot;OPERATION_NOT_AN_OBJECT&quot;,t,e,n);if(qr[e.op]){if(typeof e.path!=&quot;string&quot;)throw new Ee(&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 Ee(&#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 Ee(&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 Ee(&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;Oc(e.value))throw new Ee(&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 r=e.path.split(&quot;/&quot;).length,o=i.split(&quot;/&quot;).length;if(r!==o+1&amp;&amp;r!==o)throw new Ee(&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!==i)throw new Ee(&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 a={op:&quot;_get&quot;,path:e.from,value:void 0},s=V$([a],n);if(s&amp;&amp;s.name===&quot;OPERATION_PATH_UNRESOLVABLE&quot;)throw new Ee(&quot;Cannot perform the operation from a path that does not exist&quot;,&quot;OPERATION_FROM_UNRESOLVABLE&quot;,t,e,n)}}}else throw new Ee(&quot;Operation `op` property is not one of operations defined in RFC-6902&quot;,&quot;OPERATION_OP_INVALID&quot;,t,e,n)}function V$(e,t,n){try{if(!Array.isArray(e))throw new Ee(&quot;Patch sequence must be an array&quot;,&quot;SEQUENCE_NOT_AN_ARRAY&quot;);if(t)$m(_t(t),_t(e),n||!0);else{n=n||Rs;for(var i=0;i&lt;e.length;i++)n(e[i],i,t,void 0)}}catch(r){if(r instanceof Ee)return r;throw r}}function Vo(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),i=Array.isArray(t),r,o,a;if(n&amp;&amp;i){if(o=e.length,o!=t.length)return!1;for(r=o;r--!==0;)if(!Vo(e[r],t[r]))return!1;return!0}if(n!=i)return!1;var s=Object.keys(e);if(o=s.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!t.hasOwnProperty(s[r]))return!1;for(r=o;r--!==0;)if(a=s[r],!Vo(e[a],t[a]))return!1;return!0}return e!==e&amp;&amp;t!==t}const hO=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:Ee,_areEquals:Vo,applyOperation:yr,applyPatch:$m,applyReducer:pO,deepClone:fO,getValueByPointer:Ds,validate:V$,validator:Rs},Symbol.toStringTag,{value:&quot;Module&quot;}));/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2021 Joachim Wester
 * MIT license
 */var km=new WeakMap,vO=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),gO=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function yO(e){return km.get(e)}function _O(e,t){return e.observers.get(t)}function wO(e,t){e.observers.delete(t.callback)}function $O(e,t){t.unobserve()}function kO(e,t){var n=[],i,r=yO(e);if(!r)r=new vO(e),km.set(e,r);else{var o=_O(r,t);i=o&amp;&amp;o.observer}if(i)return i;if(i={},r.value=_t(e),t){i.callback=t,i.next=null;var a=function(){Ec(i)},s=function(){clearTimeout(i.next),i.next=setTimeout(a)};typeof window&lt;&quot;u&quot;&amp;&amp;(window.addEventListener(&quot;mouseup&quot;,s),window.addEventListener(&quot;keyup&quot;,s),window.addEventListener(&quot;mousedown&quot;,s),window.addEventListener(&quot;keydown&quot;,s),window.addEventListener(&quot;change&quot;,s))}return i.patches=n,i.object=e,i.unobserve=function(){Ec(i),clearTimeout(i.next),wO(r,i),typeof window&lt;&quot;u&quot;&amp;&amp;(window.removeEventListener(&quot;mouseup&quot;,s),window.removeEventListener(&quot;keyup&quot;,s),window.removeEventListener(&quot;mousedown&quot;,s),window.removeEventListener(&quot;keydown&quot;,s),window.removeEventListener(&quot;change&quot;,s))},r.observers.set(t,new gO(t,i)),i}function Ec(e,t){t===void 0&amp;&amp;(t=!1);var n=km.get(e.object);Sm(n.value,e.object,e.patches,&quot;&quot;,t),e.patches.length&amp;&amp;$m(n.value,e.patches);var i=e.patches;return i.length&gt;0&amp;&amp;(e.patches=[],e.callback&amp;&amp;e.callback(i)),i}function Sm(e,t,n,i,r){if(t!==e){typeof t.toJSON==&quot;function&quot;&amp;&amp;(t=t.toJSON());for(var o=Ic(t),a=Ic(e),s=!1,u=a.length-1;u&gt;=0;u--){var l=a[u],m=e[l];if(bc(t,l)&amp;&amp;!(t[l]===void 0&amp;&amp;m!==void 0&amp;&amp;Array.isArray(t)===!1)){var p=t[l];typeof m==&quot;object&quot;&amp;&amp;m!=null&amp;&amp;typeof p==&quot;object&quot;&amp;&amp;p!=null&amp;&amp;Array.isArray(m)===Array.isArray(p)?Sm(m,p,n,i+&quot;/&quot;+ir(l),r):m!==p&amp;&amp;(r&amp;&amp;n.push({op:&quot;test&quot;,path:i+&quot;/&quot;+ir(l),value:_t(m)}),n.push({op:&quot;replace&quot;,path:i+&quot;/&quot;+ir(l),value:_t(p)}))}else Array.isArray(e)===Array.isArray(t)?(r&amp;&amp;n.push({op:&quot;test&quot;,path:i+&quot;/&quot;+ir(l),value:_t(m)}),n.push({op:&quot;remove&quot;,path:i+&quot;/&quot;+ir(l)}),s=!0):(r&amp;&amp;n.push({op:&quot;test&quot;,path:i,value:e}),n.push({op:&quot;replace&quot;,path:i,value:t}))}if(!(!s&amp;&amp;o.length==a.length))for(var u=0;u&lt;o.length;u++){var l=o[u];!bc(e,l)&amp;&amp;t[l]!==void 0&amp;&amp;n.push({op:&quot;add&quot;,path:i+&quot;/&quot;+ir(l),value:_t(t[l])})}}}function SO(e,t,n){n===void 0&amp;&amp;(n=!1);var i=[];return Sm(e,t,i,&quot;&quot;,n),i}const xO=Object.freeze(Object.defineProperty({__proto__:null,compare:SO,generate:Ec,observe:kO,unobserve:$O},Symbol.toStringTag,{value:&quot;Module&quot;}));Object.assign({},hO,xO,{JsonPatchError:F$,deepClone:_t,escapePathComponent:ir,unescapePathComponent:M$});new Set(&quot;.\\+*[^]$()&quot;);var B$={};function Ct(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 bO=Ct;Ct.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ct.prototype.stop=function(){this._timeout&amp;&amp;clearTimeout(this._timeout),this._timer&amp;&amp;clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ct.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 i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&amp;&amp;(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&amp;&amp;i._timeout.unref()),i._fn(i._attempts)},n),this._options.unref&amp;&amp;this._timer.unref(),!0};Ct.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)};Ct.prototype.try=function(e){console.log(&quot;Using RetryOperation.try() is deprecated&quot;),this.attempt(e)};Ct.prototype.start=function(e){console.log(&quot;Using RetryOperation.start() is deprecated&quot;),this.attempt(e)};Ct.prototype.start=Ct.prototype.try;Ct.prototype.errors=function(){return this._errors};Ct.prototype.attempts=function(){return this._attempts};Ct.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,i=0;i&lt;this._errors.length;i++){var r=this._errors[i],o=r.message,a=(e[o]||0)+1;e[o]=a,a&gt;=n&amp;&amp;(t=r,n=a)}return t};(function(e){var t=bO;e.operation=function(n){var i=e.timeouts(n);return new t(i,{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 i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in n)i[r]=n[r];if(i.minTimeout&gt;i.maxTimeout)throw new Error(&quot;minTimeout is greater than maxTimeout&quot;);for(var o=[],a=0;a&lt;i.retries;a++)o.push(this.createTimeout(a,i));return n&amp;&amp;n.forever&amp;&amp;!o.length&amp;&amp;o.push(this.createTimeout(a,i)),o.sort(function(s,u){return s-u}),o},e.createTimeout=function(n,i){var r=i.randomize?Math.random()+1:1,o=Math.round(r*Math.max(i.minTimeout,1)*Math.pow(i.factor,n));return o=Math.min(o,i.maxTimeout),o},e.wrap=function(n,i,r){if(i instanceof Array&amp;&amp;(r=i,i=null),!r){r=[];for(var o in n)typeof n[o]==&quot;function&quot;&amp;&amp;r.push(o)}for(var a=0;a&lt;r.length;a++){var s=r[a],u=n[s];n[s]=(function(m){var p=e.operation(i),h=Array.prototype.slice.call(arguments,1),y=h.pop();h.push(function(g){p.retry(g)||(g&amp;&amp;(arguments[0]=p.mainError()),y.apply(this,arguments))}),p.attempt(function(){m.apply(n,h)})}).bind(n,u),n[s].options=i}}})(B$);var IO=B$;const zO=Ah(IO),OO=Object.prototype.toString,EO=e=&gt;OO.call(e)===&quot;[object Error]&quot;,NO=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 jO(e){return e&amp;&amp;EO(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:NO.has(e.message):!1}class TO 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 Oh=(e,t,n)=&gt;{const i=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=i,e};async function PO(e,t){return new Promise((n,i)=&gt;{t={...t},t.onFailedAttempt??(t.onFailedAttempt=()=&gt;{}),t.shouldRetry??(t.shouldRetry=()=&gt;!0),t.retries??(t.retries=10);const r=zO.operation(t),o=()=&gt;{var s;r.stop(),i((s=t.signal)==null?void 0:s.reason)};t.signal&amp;&amp;!t.signal.aborted&amp;&amp;t.signal.addEventListener(&quot;abort&quot;,o,{once:!0});const a=()=&gt;{var s;(s=t.signal)==null||s.removeEventListener(&quot;abort&quot;,o),r.stop()};r.attempt(async s=&gt;{try{const u=await e(s);a(),n(u)}catch(u){try{if(!(u instanceof Error))throw new TypeError(`Non-error was thrown: &quot;${u}&quot;. You should only throw errors.`);if(u instanceof TO)throw u.originalError;if(u instanceof TypeError&amp;&amp;!jO(u))throw u;if(Oh(u,s,t),await t.shouldRetry(u)||(r.stop(),i(u)),await t.onFailedAttempt(u),!r.retry(u))throw r.mainError()}catch(l){Oh(l,s,t),a(),i(l)}}})})}var wu=class extends Error{},ro=class extends wu{},Zs=class extends wu{constructor(t,n,i){super(n);Ht(this,&quot;__type&quot;,&quot;ActorError&quot;);this.code=t,this.metadata=i}},il=class extends wu{constructor(e,t){super(`HTTP request error: ${e}`,{cause:t==null?void 0:t.cause})}},UO=class extends wu{constructor(){super(&quot;Attempting to interact with a disposed actor connection.&quot;)}};async function CO(e,t,n,i,r){let o,a=r||{};if(typeof i==&quot;string&quot;)o=i;else if(i instanceof URL)o=i.pathname+i.search;else if(i instanceof Request){const s=new URL(i.url);o=s.pathname+s.search;const u=new Headers(i.headers),l=new Headers((r==null?void 0:r.headers)||{}),m=new Headers(u);for(const[p,h]of l)m.set(p,h);a={method:i.method,body:i.body,mode:i.mode,credentials:i.credentials,redirect:i.redirect,referrer:i.referrer,referrerPolicy:i.referrerPolicy,integrity:i.integrity,keepalive:i.keepalive,signal:i.signal,...a,headers:m},a.body&amp;&amp;(a.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,o,a,void 0)}async function AO(e,t,n,i,r){return await e.rawWebSocket(void 0,t,&quot;json&quot;,n,i||&quot;&quot;,r,void 0)}var ui,un,cr,We,ln,jh,DO=(jh=class{constructor(e,t,n,i,r){me(this,ui);me(this,un);me(this,cr);me(this,We);me(this,ln);he(this,ui,e),he(this,un,t),he(this,cr,i),he(this,We,r),he(this,ln,n)}async action(e){return await I(this,un).action(void 0,I(this,We),I(this,cr),I(this,ln),e.name,e.args,{signal:e.signal})}connect(){X().debug(&quot;establishing connection from handle&quot;,{query:I(this,We)});const e=new MO(I(this,ui),I(this,un),I(this,ln),I(this,cr),I(this,We));return I(this,ui)[W$](e)}async fetch(e,t){return CO(I(this,un),I(this,We),I(this,ln),e,t)}async websocket(e,t){return AO(I(this,un),I(this,We),I(this,ln),e,t)}async resolve({signal:e}={}){if(&quot;getForKey&quot;in I(this,We)||&quot;getOrCreateForKey&quot;in I(this,We)){const t=await I(this,un).resolveActorId(void 0,I(this,We),I(this,cr),I(this,ln),e?{signal:e}:void 0);return he(this,We,{getForId:{actorId:t}}),t}else{if(&quot;getForId&quot;in I(this,We))return I(this,We).getForId.actorId;&quot;create&quot;in I(this,We)?lO(!1,&quot;actorQuery cannot be create&quot;):H4(I(this,We))}}},ui=new WeakMap,un=new WeakMap,cr=new WeakMap,We=new WeakMap,ln=new WeakMap,jh),Ja=Symbol(&quot;actorConns&quot;),W$=Symbol(&quot;createActorConnProxy&quot;),vo=Symbol(&quot;transport&quot;),Th,Ph,Bo,li,ci,dr,io,Uh,RO=(Uh=class{constructor(e,t){me(this,dr);me(this,Bo,!1);Ht(this,Ph,new Set);me(this,li);me(this,ci);Ht(this,Th);he(this,li,e),he(this,ci,(t==null?void 0:t.encoding)??&quot;cbor&quot;),this[vo]=(t==null?void 0:t.transport)??&quot;websocket&quot;}getForId(e,t,n){X().debug(&quot;get handle to actor with id&quot;,{name:e,actorId:t,params:n==null?void 0:n.params});const i={getForId:{actorId:t}},r=le(this,dr,io).call(this,n==null?void 0:n.params,i);return Hi(r)}get(e,t,n){const i=typeof t==&quot;string&quot;?[t]:t||[];X().debug(&quot;get handle to actor&quot;,{name:e,key:i,parameters:n==null?void 0:n.params});const r={getForKey:{name:e,key:i}},o=le(this,dr,io).call(this,n==null?void 0:n.params,r);return Hi(o)}getOrCreate(e,t,n){const i=typeof t==&quot;string&quot;?[t]:t||[];X().debug(&quot;get or create handle to actor&quot;,{name:e,key:i,parameters:n==null?void 0:n.params,createInRegion:n==null?void 0:n.createInRegion});const r={getOrCreateForKey:{name:e,key:i,input:n==null?void 0:n.createWithInput,region:n==null?void 0:n.createInRegion}},o=le(this,dr,io).call(this,n==null?void 0:n.params,r);return Hi(o)}async create(e,t,n){const i=typeof t==&quot;string&quot;?[t]:t||[],r={create:{...n,name:e,key:i}};X().debug(&quot;create actor handle&quot;,{name:e,key:i,parameters:n==null?void 0:n.params,create:r.create});const o=await I(this,li).resolveActorId(void 0,r,I(this,ci),n==null?void 0:n.params,n!=null&amp;&amp;n.signal?{signal:n.signal}:void 0);X().debug(&quot;created actor with ID&quot;,{name:e,key:i,actorId:o});const a={getForId:{actorId:o}},s=le(this,dr,io).call(this,n==null?void 0:n.params,a);return Hi(s)}[(Ph=Ja,Th=vo,W$)](e){return this[Ja].add(e),e[K$](),Hi(e)}async dispose(){if(I(this,Bo)){X().warn(&quot;client already disconnected&quot;);return}he(this,Bo,!0),X().debug(&quot;disposing client&quot;);const e=[];for(const t of this[Ja].values())e.push(t.dispose());await Promise.all(e)}},Bo=new WeakMap,li=new WeakMap,ci=new WeakMap,dr=new WeakSet,io=function(e,t){return new DO(this,I(this,li),e,I(this,ci),t)},Uh);function ZO(e,t){const n=new RO(e,t);return new Proxy(n,{get:(i,r,o)=&gt;{if(typeof r==&quot;symbol&quot;||r in i){const a=Reflect.get(i,r,o);return typeof a==&quot;function&quot;?a.bind(i):a}if(typeof r==&quot;string&quot;)return{get:(a,s)=&gt;i.get(r,a,s),getOrCreate:(a,s)=&gt;i.getOrCreate(r,a,s),getForId:(a,s)=&gt;i.getForId(r,a,s),create:async(a,s={})=&gt;await i.create(r,a,s)}}})}function Hi(e){const t=new Map;return new Proxy(e,{get(n,i,r){if(typeof i==&quot;symbol&quot;)return Reflect.get(n,i,r);if(i===&quot;constructor&quot;||i in n){const o=Reflect.get(n,i,r);return typeof o==&quot;function&quot;?o.bind(n):o}if(typeof i==&quot;string&quot;){if(i===&quot;then&quot;)return;let o=t.get(i);return o||(o=(...a)=&gt;n.action({name:i,args:a}),t.set(i,o)),o}},has(n,i){return typeof i==&quot;string&quot;?!0:Reflect.has(n,i)},getPrototypeOf(n){return Reflect.getPrototypeOf(n)},ownKeys(n){return Reflect.ownKeys(n)},getOwnPropertyDescriptor(n,i){const r=Reflect.getOwnPropertyDescriptor(n,i);if(r)return r;if(typeof i==&quot;string&quot;)return{configurable:!0,enumerable:!1,writable:!1,value:(...o)=&gt;n.action({name:i,args:o})}}})}function LO(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;zt(e)}async function Eh(e){X().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=my(e.body)):zt(e.encoding));let i;try{i=await(e.customFetch??fetch)(new Request(e.url,{method:e.method,headers:{...e.headers,...t?{&quot;Content-Type&quot;:t}:{},&quot;User-Agent&quot;:Fa()},body:n,credentials:&quot;include&quot;,signal:e.signal}))}catch(o){throw new il(`Request failed: ${o}`,{cause:o})}if(!i.ok){const o=await i.arrayBuffer();let a;try{if(e.encoding===&quot;json&quot;){const s=new TextDecoder().decode(o);a=JSON.parse(s)}else if(e.encoding===&quot;cbor&quot;){const s=new Uint8Array(o);a=ho(s)}else zt(e.encoding)}catch{const u=new TextDecoder(&quot;utf-8&quot;,{fatal:!1}).decode(o);throw new il(`${i.statusText} (${i.status}):
${u}`)}throw new Zs(a.c,a.m,a.md)}if(e.skipParseResponse)return;let r;try{if(e.encoding===&quot;json&quot;)r=await i.json();else if(e.encoding===&quot;cbor&quot;){const o=await i.arrayBuffer(),a=new Uint8Array(o);r=ho(a)}else zt(e.encoding)}catch(o){throw new il(`Failed to parse response: ${o}`,{cause:o})}return r}function J$(e,t){if(e===&quot;json&quot;)return JSON.stringify(t);if(e===&quot;cbor&quot;)return my(t);zt(e)}var K$=Symbol(&quot;connect&quot;),On,Wo,di,fr,mr,fi,$e,En,Nn,qt,mi,Jo,Ko,ht,jn,pr,pi,Lt,hi,ee,Nc,H$,G$,Q$,X$,jc,Tc,Pc,Uc,Y$,q$,Cc,Ka,ek,tk,Ha,Ch,MO=(Ch=class{constructor(e,t,n,i,r){me(this,ee);me(this,On,!1);me(this,Wo,new AbortController);me(this,di,!1);me(this,fr);me(this,mr);me(this,fi);me(this,$e);me(this,En,[]);me(this,Nn,new Map);me(this,qt,new Map);me(this,mi,new Set);me(this,Jo,0);me(this,Ko);me(this,ht);me(this,jn);me(this,pr);me(this,pi);me(this,Lt);me(this,hi);this.client=e,this.driver=t,this.params=n,this.encodingKind=i,this.actorQuery=r,he(this,jn,e),he(this,pr,t),he(this,pi,n),he(this,Lt,i),he(this,hi,r),he(this,Ko,setInterval(()=&gt;6e4))}async action(e){X().debug(&quot;action&quot;,{name:e.name,args:e.args});const t=I(this,Jo);he(this,Jo,I(this,Jo)+1);const{promise:n,resolve:i,reject:r}=Promise.withResolvers();I(this,Nn).set(t,{name:e.name,resolve:i,reject:r}),le(this,ee,Ka).call(this,{b:{ar:{i:t,n:e.name,a:e.args}}});const{i:o,o:a}=await n;if(o!==t)throw new Error(`Request ID ${t} does not match response ID ${o}`);return a}[K$](){le(this,ee,Nc).call(this)}on(e,t){return le(this,ee,Cc).call(this,e,t,!1)}once(e,t){return le(this,ee,Cc).call(this,e,t,!0)}onError(e){return I(this,mi).add(e),()=&gt;{I(this,mi).delete(e)}}async dispose(){if(I(this,On)){X().warn(&quot;connection already disconnected&quot;);return}if(he(this,On,!0),X().debug(&quot;disposing actor&quot;),clearInterval(I(this,Ko)),I(this,Wo).abort(),I(this,jn)[Ja].delete(this),I(this,$e))if(&quot;websocket&quot;in I(this,$e)){const{promise:e,resolve:t}=Promise.withResolvers();I(this,$e).websocket.addEventListener(&quot;close&quot;,()=&gt;{X().debug(&quot;ws closed&quot;),t(void 0)}),I(this,$e).websocket.close(),await e}else&quot;sse&quot;in I(this,$e)?I(this,$e).sse.close():zt(I(this,$e));he(this,$e,void 0)}},On=new WeakMap,Wo=new WeakMap,di=new WeakMap,fr=new WeakMap,mr=new WeakMap,fi=new WeakMap,$e=new WeakMap,En=new WeakMap,Nn=new WeakMap,qt=new WeakMap,mi=new WeakMap,Jo=new WeakMap,Ko=new WeakMap,ht=new WeakMap,jn=new WeakMap,pr=new WeakMap,pi=new WeakMap,Lt=new WeakMap,hi=new WeakMap,ee=new WeakSet,Nc=async function(){he(this,di,!0);try{await PO(le(this,ee,H$).bind(this),{forever:!0,minTimeout:250,maxTimeout:3e4,onFailedAttempt:e=&gt;{X().warn(&quot;failed to reconnect&quot;,{attempt:e.attemptNumber,error:Dp(e)})},signal:I(this,Wo).signal})}catch(e){if(e.name===&quot;AbortError&quot;){X().info(&quot;connection retry aborted&quot;);return}else throw e}he(this,di,!1)},H$=async function(){try{if(I(this,ht))throw new Error(&quot;#onOpenPromise already defined&quot;);he(this,ht,Promise.withResolvers()),I(this,jn)[vo]===&quot;websocket&quot;?await le(this,ee,G$).call(this):I(this,jn)[vo]===&quot;sse&quot;?await le(this,ee,Q$).call(this):zt(I(this,jn)[vo]),await I(this,ht).promise}finally{he(this,ht,void 0)}},G$=async function({signal:e}={}){const t=await I(this,pr).connectWebSocket(void 0,I(this,hi),I(this,Lt),I(this,pi),e?{signal:e}:void 0);he(this,$e,{websocket:t}),t.addEventListener(&quot;open&quot;,()=&gt;{X().debug(&quot;websocket open&quot;)}),t.addEventListener(&quot;message&quot;,async n=&gt;{le(this,ee,jc).call(this,n.data)}),t.addEventListener(&quot;close&quot;,n=&gt;{le(this,ee,Tc).call(this,n)}),t.addEventListener(&quot;error&quot;,n=&gt;{le(this,ee,Pc).call(this)})},Q$=async function({signal:e}={}){const t=await I(this,pr).connectSse(void 0,I(this,hi),I(this,Lt),I(this,pi),e?{signal:e}:void 0);he(this,$e,{sse:t}),t.onopen=()=&gt;{X().debug(&quot;eventsource open&quot;)},t.onmessage=n=&gt;{le(this,ee,jc).call(this,n.data)},t.onerror=n=&gt;{t.readyState===t.CLOSED?le(this,ee,Tc).call(this,new Event(&quot;error&quot;)):le(this,ee,Pc).call(this)}},X$=function(){X().debug(&quot;socket open&quot;,{messageQueueLength:I(this,En).length}),I(this,ht)?I(this,ht).resolve(void 0):X().warn(&quot;#onOpenPromise is undefined&quot;);for(const t of I(this,qt).keys())le(this,ee,Ha).call(this,t,!0);const e=I(this,En);he(this,En,[]);for(const t of e)le(this,ee,Ka).call(this,t)},jc=async function(e){var t;X().trace(&quot;received message&quot;,{dataType:typeof e,isBlob:e instanceof Blob,isArrayBuffer:e instanceof ArrayBuffer});const n=await le(this,ee,tk).call(this,e);if(X().trace(&quot;parsed message&quot;,{response:JSON.stringify(n).substring(0,100)+&quot;...&quot;}),&quot;i&quot;in n.b)he(this,fr,n.b.i.ai),he(this,mr,n.b.i.ci),he(this,fi,n.b.i.ct),X().trace(&quot;received init message&quot;,{actorId:I(this,fr),connectionId:I(this,mr)}),le(this,ee,X$).call(this);else if(&quot;e&quot;in n.b){const{c:i,m:r,md:o,ai:a}=n.b.e;if(a){const s=le(this,ee,Uc).call(this,a);X().warn(&quot;action error&quot;,{actionId:a,actionName:s==null?void 0:s.name,code:i,message:r,metadata:o}),s.reject(new Zs(i,r,o))}else{X().warn(&quot;connection error&quot;,{code:i,message:r,metadata:o});const s=new Zs(i,r,o);I(this,ht)&amp;&amp;I(this,ht).reject(s);for(const[u,l]of I(this,Nn).entries())l.reject(s),I(this,Nn).delete(u);le(this,ee,q$).call(this,s)}}else if(&quot;ar&quot;in n.b){const{i,o:r}=n.b.ar;X().trace(&quot;received action response&quot;,{actionId:i,outputType:r});const o=le(this,ee,Uc).call(this,i);X().trace(&quot;resolving action promise&quot;,{actionId:i,actionName:o==null?void 0:o.name}),o.resolve(n.b.ar)}else&quot;ev&quot;in n.b?(X().trace(&quot;received event&quot;,{name:n.b.ev.n,argsCount:(t=n.b.ev.a)==null?void 0:t.length}),le(this,ee,Y$).call(this,n.b.ev)):zt(n.b)},Tc=function(e){I(this,ht)&amp;&amp;I(this,ht).reject(new Error(&quot;Closed&quot;));const t=e;t.wasClean?X().info(&quot;socket closed&quot;,{code:t.code,reason:t.reason,wasClean:t.wasClean}):X().warn(&quot;socket closed&quot;,{code:t.code,reason:t.reason,wasClean:t.wasClean}),he(this,$e,void 0),!I(this,On)&amp;&amp;!I(this,di)&amp;&amp;le(this,ee,Nc).call(this)},Pc=function(){I(this,On)||X().warn(&quot;socket error&quot;)},Uc=function(e){const t=I(this,Nn).get(e);if(!t)throw new ro(`No in flight response for ${e}`);return I(this,Nn).delete(e),t},Y$=function(e){const{n:t,a:n}=e,i=I(this,qt).get(t);if(i){for(const r of[...i])r.callback(...n),r.once&amp;&amp;i.delete(r);i.size===0&amp;&amp;I(this,qt).delete(t)}},q$=function(e){for(const t of[...I(this,mi)])try{t(e)}catch(n){X().error(&quot;Error in connection error handler&quot;,{error:Dp(n)})}},Cc=function(e,t,n){const i={callback:t,once:n};let r=I(this,qt).get(e);return r===void 0&amp;&amp;(r=new Set,I(this,qt).set(e,r),le(this,ee,Ha).call(this,e,!0)),r.add(i),()=&gt;{const o=I(this,qt).get(e);o&amp;&amp;(o.delete(i),o.size===0&amp;&amp;(I(this,qt).delete(e),le(this,ee,Ha).call(this,e,!1)))}},Ka=function(e,t){if(I(this,On))throw new UO;let n=!1;if(!I(this,$e))n=!0;else if(&quot;websocket&quot;in I(this,$e))if(I(this,$e).websocket.readyState===1)try{const i=J$(I(this,Lt),e);I(this,$e).websocket.send(i),X().trace(&quot;sent websocket message&quot;,{len:LO(i)})}catch(i){X().warn(&quot;failed to send message, added to queue&quot;,{error:i}),n=!0}else n=!0;else&quot;sse&quot;in I(this,$e)?I(this,$e).sse.readyState===1?le(this,ee,ek).call(this,e,t):n=!0:zt(I(this,$e));!(t!=null&amp;&amp;t.ephemeral)&amp;&amp;n&amp;&amp;(I(this,En).push(e),X().debug(&quot;queued connection message&quot;))},ek=async function(e,t){try{if(!I(this,fr)||!I(this,mr)||!I(this,fi))throw new ro(&quot;Missing connection ID or token.&quot;);X().trace(&quot;sent http message&quot;,{message:JSON.stringify(e).substring(0,100)+&quot;...&quot;});const n=await I(this,pr).sendHttpMessage(void 0,I(this,fr),I(this,Lt),I(this,mr),I(this,fi),e,t!=null&amp;&amp;t.signal?{signal:t.signal}:void 0);if(!n.ok)throw new ro(`Publish message over HTTP error (${n.statusText}):
${await n.text()}`);await n.json()}catch(n){X().warn(&quot;failed to send message, added to queue&quot;,{error:n}),t!=null&amp;&amp;t.ephemeral||I(this,En).unshift(e)}},tk=async function(e){if(I(this,Lt)===&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(I(this,Lt)===&quot;cbor&quot;){if(I(this,$e))if(&quot;sse&quot;in I(this,$e))if(typeof e==&quot;string&quot;){const t=atob(e);e=new Uint8Array([...t].map(n=&gt;n.charCodeAt(0)))}else throw new ro(`Expected data to be a string for SSE, got ${e}.`);else&quot;websocket&quot;in I(this,$e)||zt(I(this,$e));else throw new Error(&quot;Cannot parse message when no transport defined&quot;);if(e instanceof Blob)return ho(new Uint8Array(await e.arrayBuffer()));if(e instanceof ArrayBuffer)return ho(new Uint8Array(e));if(e instanceof Uint8Array)return ho(e);throw new Error(`received non-binary type for cbor parse: ${typeof e}`)}else zt(I(this,Lt))},Ha=function(e,t){le(this,ee,Ka).call(this,{b:{sr:{e,s:t}}},{ephemeral:!0})},Ch),Oa=null;async function FO(){return Oa!==null||(Oa=(async()=&gt;{let e;try{e=(await ty(()=&gt;import(&quot;./index-z2Dkjsn_.js&quot;),[])).EventSource,X().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;)}},X().debug(&quot;using mock eventsource&quot;)}return e})()),Oa}function VO(e){const t=(async()=&gt;{const[i,r]=await Promise.all([wx(),FO()]);return{WebSocket:i,EventSource:r}})();return{action:async(i,r,o,a,s,u,l)=&gt;(X().debug(&quot;actor handle action&quot;,{name:s,args:u,query:r}),(await Eh({url:`${e}/registry/actors/actions/${encodeURIComponent(s)}`,method:&quot;POST&quot;,headers:{[or]:o,[Xr]:JSON.stringify(r),...a!==void 0?{[Yr]:JSON.stringify(a)}:{}},body:{a:u},encoding:o,signal:l==null?void 0:l.signal})).o),resolveActorId:async(i,r,o,a)=&gt;{X().debug(&quot;resolving actor ID&quot;,{query:r});try{const s=await Eh({url:`${e}/registry/actors/resolve`,method:&quot;POST&quot;,headers:{[or]:o,[Xr]:JSON.stringify(r),...a!==void 0?{[Yr]:JSON.stringify(a)}:{}},body:{},encoding:o});return X().debug(&quot;resolved actor ID&quot;,{actorId:s.i}),s.i}catch(s){throw X().error(&quot;failed to resolve actor ID&quot;,{error:s}),s instanceof Zs?s:new ro(`Failed to resolve actor ID: ${String(s)}`)}},connectWebSocket:async(i,r,o,a)=&gt;{const{WebSocket:s}=await t,l=`${e.replace(/^http:/,&quot;ws:&quot;).replace(/^https:/,&quot;wss:&quot;)}/registry/actors/connect/websocket`,m=[`query.${encodeURIComponent(JSON.stringify(r))}`,`encoding.${o}`];a&amp;&amp;m.push(`conn_params.${encodeURIComponent(JSON.stringify(a))}`),m.push(&quot;rivetkit&quot;),X().debug(&quot;connecting to websocket&quot;,{url:l});const p=new s(l,m);if(o===&quot;cbor&quot;)p.binaryType=&quot;arraybuffer&quot;;else if(o===&quot;json&quot;)try{p.binaryType=&quot;blob&quot;}catch{}else zt(o);return p},connectSse:async(i,r,o,a)=&gt;{const{EventSource:s}=await t,u=`${e}/registry/actors/connect/sse`;return X().debug(&quot;connecting to sse&quot;,{url:u}),new s(u,{fetch:(m,p)=&gt;fetch(m,{...p,headers:{...p==null?void 0:p.headers,&quot;User-Agent&quot;:Fa(),[or]:o,[Xr]:JSON.stringify(r),...a!==void 0?{[Yr]:JSON.stringify(a)}:{}},credentials:&quot;include&quot;})})},sendHttpMessage:async(i,r,o,a,s,u)=&gt;{const l=J$(o,u);return await fetch(`${e}/registry/actors/message`,{method:&quot;POST&quot;,headers:{&quot;User-Agent&quot;:Fa(),[or]:o,[A$]:r,[D$]:a,[R$]:s},body:l,credentials:&quot;include&quot;})},rawHttpRequest:async(i,r,o,a,s,u)=&gt;{const l=s.startsWith(&quot;/&quot;)?s.slice(1):s,m=`${e}/registry/actors/raw/http/${l}`;X().debug(&quot;rewriting http url&quot;,{from:s,to:m});const p=new Headers(u.headers);return p.set(&quot;User-Agent&quot;,Fa()),p.set(Xr,JSON.stringify(r)),p.set(or,o),a!==void 0&amp;&amp;p.set(Yr,JSON.stringify(a)),await fetch(m,{...u,headers:p})},rawWebSocket:async(i,r,o,a,s,u)=&gt;{const{WebSocket:l}=await t,m=e.replace(/^http:/,&quot;ws:&quot;).replace(/^https:/,&quot;wss:&quot;),p=s.startsWith(&quot;/&quot;)?s.slice(1):s,h=`${m}/registry/actors/raw/websocket/${p}`;X().debug(&quot;rewriting websocket url&quot;,{from:s,to:h});const y=[];return y.push(`query.${encodeURIComponent(JSON.stringify(r))}`),y.push(`encoding.${o}`),a&amp;&amp;y.push(`conn_params.${encodeURIComponent(JSON.stringify(a))}`),y.push(&quot;rivetkit&quot;),u&amp;&amp;(Array.isArray(u)?y.push(...u):y.push(u)),X().debug(&quot;opening raw websocket&quot;,{url:h}),new l(h,y)}}}function BO(e,t){const n=VO(e);return ZO(n,t)}function WO(e,t={}){const{getOrCreateActor:n}=A1(e,t);function i(r){const{mount:o,setState:a,state:s}=n(r);Ke.useEffect(()=&gt;{a(m=&gt;(m.opts={...r,enabled:r.enabled??!0},m))},[r,a]),Ke.useEffect(()=&gt;o(),[o]);const u=Cp(s)||{};function l(m,p){const h=Ke.useRef(p),y=Cp(s)||{};Ke.useEffect(()=&gt;{h.current=p},[p]),Ke.useEffect(()=&gt;{if(!(y!=null&amp;&amp;y.connection))return;function g(...S){h.current(...S)}return y.connection.on(m,g)},[y.connection,y.isConnected,y.hash,m])}return{...u,useEvent:l}}return{useActor:i}}const JO=BO(&quot;http://localhost:8080&quot;),{useActor:KO}=WO(JO),HO=&quot;org-1&quot;;function GO(){const[e,t]=Ke.useState(&quot;&quot;),[n,i]=Ke.useState(null),[r,o]=Ke.useState([]),[a,s]=Ke.useState(null),[u,l]=Ke.useState(&quot;&quot;),[m,p]=Ke.useState(!1),h=KO({name:&quot;tenant&quot;,key:[HO],params:{token:e}}),y=()=&gt;{t(&quot;auth:user-1&quot;),l(&quot;&quot;)},g=()=&gt;{t(&quot;auth:user-2&quot;),l(&quot;&quot;)},S=()=&gt;{t(&quot;auth:user-3&quot;),l(&quot;&quot;)},z=()=&gt;{t(&quot;&quot;),i(null),o([]),s(null),l(&quot;&quot;)};return Ke.useEffect(()=&gt;{if(!h.connection||!e)return;(async()=&gt;{p(!0);try{const d=await h.connection.getOrganization();i(d);const f=await h.connection.getMembers();o(f);const k=await h.connection.getDashboardStats();s(k)}catch(d){l(d.message||&quot;Failed to load data&quot;)}finally{p(!1)}})()},[h.connection,e]),h.useEvent(&quot;memberAdded&quot;,({member:c})=&gt;{o(d=&gt;[...d,c])}),h.useEvent(&quot;memberUpdated&quot;,({member:c})=&gt;{o(d=&gt;d.map(f=&gt;f.id===c.id?c:f))}),e?G.jsxs(&quot;div&quot;,{className:&quot;app-container&quot;,children:[G.jsxs(&quot;div&quot;,{className:&quot;header&quot;,children:[G.jsx(&quot;h1&quot;,{children:&quot;Organization Dashboard&quot;}),G.jsx(&quot;p&quot;,{children:&quot;Multi-tenant role-based access control with RivetKit&quot;})]}),G.jsxs(&quot;div&quot;,{className:&quot;user-info&quot;,children:[G.jsx(&quot;div&quot;,{className:&quot;user-details&quot;,children:G.jsx(&quot;span&quot;,{children:&quot;Logged in&quot;})}),G.jsx(&quot;button&quot;,{className:&quot;logout-button&quot;,onClick:z,children:&quot;Logout&quot;})]}),n&amp;&amp;G.jsxs(&quot;div&quot;,{className:&quot;organization-header&quot;,children:[G.jsx(&quot;h2&quot;,{children:n.name}),G.jsxs(&quot;p&quot;,{children:[&quot;Organization ID: &quot;,n.id,&quot; • &quot;,n.memberCount,&quot; members&quot;]})]}),m&amp;&amp;G.jsx(&quot;div&quot;,{children:&quot;Loading...&quot;}),u&amp;&amp;G.jsxs(&quot;div&quot;,{className:&quot;error-message&quot;,children:[G.jsx(&quot;h4&quot;,{children:&quot;Access Denied&quot;}),G.jsx(&quot;p&quot;,{children:u})]}),a&amp;&amp;G.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[G.jsx(&quot;h3&quot;,{children:&quot;Dashboard Statistics&quot;}),G.jsxs(&quot;div&quot;,{style:{display:&quot;grid&quot;,gridTemplateColumns:&quot;repeat(auto-fit, minmax(200px, 1fr))&quot;,gap:&quot;20px&quot;},children:[G.jsxs(&quot;div&quot;,{style:{padding:&quot;20px&quot;,backgroundColor:&quot;#f8f9fa&quot;,borderRadius:&quot;6px&quot;,textAlign:&quot;center&quot;},children:[G.jsx(&quot;div&quot;,{style:{fontSize:&quot;24px&quot;,fontWeight:&quot;bold&quot;,color:&quot;#007bff&quot;},children:a.totalMembers}),G.jsx(&quot;div&quot;,{style:{color:&quot;#6c757d&quot;},children:&quot;Total Members&quot;})]}),G.jsxs(&quot;div&quot;,{style:{padding:&quot;20px&quot;,backgroundColor:&quot;#f8f9fa&quot;,borderRadius:&quot;6px&quot;,textAlign:&quot;center&quot;},children:[G.jsx(&quot;div&quot;,{style:{fontSize:&quot;24px&quot;,fontWeight:&quot;bold&quot;,color:&quot;#dc3545&quot;},children:a.adminCount}),G.jsx(&quot;div&quot;,{style:{color:&quot;#6c757d&quot;},children:&quot;Admins&quot;})]}),G.jsxs(&quot;div&quot;,{style:{padding:&quot;20px&quot;,backgroundColor:&quot;#f8f9fa&quot;,borderRadius:&quot;6px&quot;,textAlign:&quot;center&quot;},children:[G.jsx(&quot;div&quot;,{style:{fontSize:&quot;24px&quot;,fontWeight:&quot;bold&quot;,color:&quot;#28a745&quot;},children:a.memberCount}),G.jsx(&quot;div&quot;,{style:{color:&quot;#6c757d&quot;},children:&quot;Members&quot;})]})]})]}),G.jsxs(&quot;div&quot;,{className:&quot;section&quot;,children:[G.jsx(&quot;div&quot;,{style:{display:&quot;flex&quot;,justifyContent:&quot;space-between&quot;,alignItems:&quot;center&quot;,marginBottom:&quot;15px&quot;},children:G.jsx(&quot;h3&quot;,{children:&quot;Team Members&quot;})}),r.length===0?G.jsx(&quot;div&quot;,{className:&quot;empty-state&quot;,children:&quot;No members found&quot;}):G.jsxs(&quot;table&quot;,{className:&quot;data-table&quot;,children:[G.jsx(&quot;thead&quot;,{children:G.jsxs(&quot;tr&quot;,{children:[G.jsx(&quot;th&quot;,{children:&quot;Name&quot;}),G.jsx(&quot;th&quot;,{children:&quot;Email&quot;}),G.jsx(&quot;th&quot;,{children:&quot;Role&quot;})]})}),G.jsx(&quot;tbody&quot;,{children:r.map(c=&gt;G.jsxs(&quot;tr&quot;,{children:[G.jsx(&quot;td&quot;,{children:c.name}),G.jsx(&quot;td&quot;,{children:c.email}),G.jsx(&quot;td&quot;,{children:G.jsx(&quot;span&quot;,{className:`role-badge ${c.role}`,children:c.role})})]},c.id))})]})]})]}):G.jsxs(&quot;div&quot;,{className:&quot;app-container&quot;,children:[G.jsxs(&quot;div&quot;,{className:&quot;header&quot;,children:[G.jsx(&quot;h1&quot;,{children:&quot;Organization Dashboard&quot;}),G.jsx(&quot;p&quot;,{children:&quot;Multi-tenant role-based access control with RivetKit&quot;})]}),G.jsxs(&quot;div&quot;,{className:&quot;info-box&quot;,children:[G.jsx(&quot;h3&quot;,{children:&quot;How it works&quot;}),G.jsx(&quot;p&quot;,{children:&quot;This tenant system demonstrates role-based access control in a multi-tenant environment. Different user roles have different permissions - admins can access invoices and manage members, while regular members can only view member information.&quot;})]}),G.jsxs(&quot;div&quot;,{className:&quot;login-section&quot;,children:[G.jsx(&quot;h2&quot;,{children:&quot;Choose a User to Login&quot;}),G.jsx(&quot;p&quot;,{children:&quot;Select a user to see different permission levels:&quot;}),G.jsxs(&quot;div&quot;,{className:&quot;login-buttons&quot;,children:[G.jsx(&quot;button&quot;,{className:&quot;login-button admin&quot;,onClick:y,children:&quot;Login as Alice (Admin)&quot;}),G.jsx(&quot;button&quot;,{className:&quot;login-button member&quot;,onClick:g,children:&quot;Login as Bob (Member)&quot;}),G.jsx(&quot;button&quot;,{className:&quot;login-button member&quot;,onClick:S,children:&quot;Login as Charlie (Member)&quot;})]})]})]})}const nk=document.getElementById(&quot;root&quot;);if(!nk)throw new Error(&quot;Root element not found&quot;);Gg(nk).render(G.jsx(Ke.StrictMode,{children:G.jsx(GO,{})}));export{Ah 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 Member = {
	id: string;
	name: string;
	email: string;
	role: &quot;admin&quot; | &quot;member&quot;;
};

export type Invoice = {
	id: string;
	amount: number;
	date: number;
	paid: boolean;
	description: string;
};

export type ConnState = {
	userId: string;
	role: &quot;admin&quot; | &quot;member&quot;;
};

const tenant = actor({
	onAuth: () =&gt; {},
	// Persistent state that survives restarts: https://rivet.gg/docs/actors/state
	state: {
		orgId: &quot;org-1&quot;,
		orgName: &quot;Acme Corporation&quot;,
		members: [
			{
				id: &quot;user-1&quot;,
				name: &quot;Alice Johnson&quot;,
				email: &quot;alice@acme.com&quot;,
				role: &quot;admin&quot; as const,
			},
			{
				id: &quot;user-2&quot;,
				name: &quot;Bob Smith&quot;,
				email: &quot;bob@acme.com&quot;,
				role: &quot;member&quot; as const,
			},
			{
				id: &quot;user-3&quot;,
				name: &quot;Charlie Brown&quot;,
				email: &quot;charlie@acme.com&quot;,
				role: &quot;member&quot; as const,
			},
		],
		invoices: [
			{
				id: &quot;inv-001&quot;,
				amount: 1200.0,
				date: Date.now() - 86400000 * 30, // 30 days ago
				paid: true,
				description: &quot;Monthly subscription - Enterprise plan&quot;,
			},
			{
				id: &quot;inv-002&quot;,
				amount: 1200.0,
				date: Date.now() - 86400000 * 7, // 7 days ago
				paid: false,
				description: &quot;Monthly subscription - Enterprise plan&quot;,
			},
			{
				id: &quot;inv-003&quot;,
				amount: 250.0,
				date: Date.now() - 86400000 * 3, // 3 days ago
				paid: true,
				description: &quot;Additional storage - 500GB&quot;,
			},
		],
	},

	actions: {
		// Callable functions from clients: https://rivet.gg/docs/actors/actions
		getOrganization: (c) =&gt; {
			return {
				id: c.state.orgId,
				name: c.state.orgName,
				memberCount: c.state.members.length,
			};
		},

		getMembers: (c) =&gt; {
			return c.state.members;
		},

		getDashboardStats: (c) =&gt; {
			const stats = {
				totalMembers: c.state.members.length,
				adminCount: c.state.members.filter((m) =&gt; m.role === &quot;admin&quot;).length,
				memberCount: c.state.members.filter((m) =&gt; m.role === &quot;member&quot;).length,
			};

			// For testing, always return basic stats
			return stats;
		},
	},
});

// Register actors for use: https://rivet.gg/docs/setup
export const registry = setup({
	use: { tenant },
});
">
<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 { Member, registry } from &quot;../backend/registry&quot;;

const client = createClient&lt;typeof registry&gt;(&quot;http://localhost:8080&quot;);
const { useActor } = createRivetKit(client);

const ORG_ID = &quot;org-1&quot;;

export function App() {
	// Authentication state
	const [token, setToken] = useState&lt;string&gt;(&quot;&quot;);
	
	// Data state
	const [organization, setOrganization] = useState&lt;any&gt;(null);
	const [members, setMembers] = useState&lt;Member[]&gt;([]);
	const [dashboardStats, setDashboardStats] = useState&lt;any&gt;(null);
	const [error, setError] = useState&lt;string&gt;(&quot;&quot;);
	const [loading, setLoading] = useState(false);

	// Connect to tenant actor with authentication token
	const tenant = useActor({
		name: &quot;tenant&quot;,
		key: [ORG_ID],
		params: { token },
	});

	// Login functions
	const loginAsAdmin = () =&gt; {
		setToken(&quot;auth:user-1&quot;); // Alice is admin
		setError(&quot;&quot;);
	};

	const loginAsMember = () =&gt; {
		setToken(&quot;auth:user-2&quot;); // Bob is member
		setError(&quot;&quot;);
	};

	const loginAsCharlie = () =&gt; {
		setToken(&quot;auth:user-3&quot;); // Charlie is member
		setError(&quot;&quot;);
	};

	const logout = () =&gt; {
		setToken(&quot;&quot;);
		setOrganization(null);
		setMembers([]);
		setDashboardStats(null);
		setError(&quot;&quot;);
	};

	// Load data when actor is available
	useEffect(() =&gt; {
		if (!tenant.connection || !token) return;

		const loadData = async () =&gt; {
			setLoading(true);
			try {
				// Get organization info
				const org = await tenant.connection!.getOrganization();
				setOrganization(org);

				// Get members (available to all users)
				const membersList = await tenant.connection!.getMembers();
				setMembers(membersList);

				// Get dashboard stats
				const stats = await tenant.connection!.getDashboardStats();
				setDashboardStats(stats);
			} catch (err: any) {
				setError(err.message || &quot;Failed to load data&quot;);
			} finally {
				setLoading(false);
			}
		};

		loadData();
	}, [tenant.connection, token]);

	// Listen for real-time updates
	tenant.useEvent(&quot;memberAdded&quot;, ({ member }: { member: Member }) =&gt; {
		setMembers(prev =&gt; [...prev, member]);
	});

	tenant.useEvent(&quot;memberUpdated&quot;, ({ member }: { member: Member }) =&gt; {
		setMembers(prev =&gt; prev.map(m =&gt; m.id === member.id ? member : m));
	});



	// Login screen when not authenticated
	if (!token) {
		return (
			&lt;div className=&quot;app-container&quot;&gt;
				&lt;div className=&quot;header&quot;&gt;
					&lt;h1&gt;Organization Dashboard&lt;/h1&gt;
					&lt;p&gt;Multi-tenant role-based access control 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 tenant system demonstrates role-based access control in a multi-tenant environment. 
						Different user roles have different permissions - admins can access invoices and manage members, 
						while regular members can only view member information.
					&lt;/p&gt;
				&lt;/div&gt;

				&lt;div className=&quot;login-section&quot;&gt;
					&lt;h2&gt;Choose a User to Login&lt;/h2&gt;
					&lt;p&gt;Select a user to see different permission levels:&lt;/p&gt;
					&lt;div className=&quot;login-buttons&quot;&gt;
						&lt;button className=&quot;login-button admin&quot; onClick={loginAsAdmin}&gt;
							Login as Alice (Admin)
						&lt;/button&gt;
						&lt;button className=&quot;login-button member&quot; onClick={loginAsMember}&gt;
							Login as Bob (Member)
						&lt;/button&gt;
						&lt;button className=&quot;login-button member&quot; onClick={loginAsCharlie}&gt;
							Login as Charlie (Member)
						&lt;/button&gt;
					&lt;/div&gt;
				&lt;/div&gt;
			&lt;/div&gt;
		);
	}

	return (
		&lt;div className=&quot;app-container&quot;&gt;
			&lt;div className=&quot;header&quot;&gt;
				&lt;h1&gt;Organization Dashboard&lt;/h1&gt;
				&lt;p&gt;Multi-tenant role-based access control with RivetKit&lt;/p&gt;
			&lt;/div&gt;

			{/* User Info */}
			&lt;div className=&quot;user-info&quot;&gt;
				&lt;div className=&quot;user-details&quot;&gt;
					&lt;span&gt;Logged in&lt;/span&gt;
				&lt;/div&gt;
				&lt;button className=&quot;logout-button&quot; onClick={logout}&gt;
					Logout
				&lt;/button&gt;
			&lt;/div&gt;

			{/* Organization Header */}
			{organization &amp;&amp; (
				&lt;div className=&quot;organization-header&quot;&gt;
					&lt;h2&gt;{organization.name}&lt;/h2&gt;
					&lt;p&gt;Organization ID: {organization.id} • {organization.memberCount} members&lt;/p&gt;
				&lt;/div&gt;
			)}

			{/* Loading State */}
			{loading &amp;&amp; &lt;div&gt;Loading...&lt;/div&gt;}

			{/* Error Display */}
			{error &amp;&amp; (
				&lt;div className=&quot;error-message&quot;&gt;
					&lt;h4&gt;Access Denied&lt;/h4&gt;
					&lt;p&gt;{error}&lt;/p&gt;
				&lt;/div&gt;
			)}

			{/* Dashboard Stats */}
			{dashboardStats &amp;&amp; (
				&lt;div className=&quot;section&quot;&gt;
					&lt;h3&gt;Dashboard Statistics&lt;/h3&gt;
					&lt;div style={{ display: &quot;grid&quot;, gridTemplateColumns: &quot;repeat(auto-fit, minmax(200px, 1fr))&quot;, gap: &quot;20px&quot; }}&gt;
						&lt;div style={{ padding: &quot;20px&quot;, backgroundColor: &quot;#f8f9fa&quot;, borderRadius: &quot;6px&quot;, textAlign: &quot;center&quot; }}&gt;
							&lt;div style={{ fontSize: &quot;24px&quot;, fontWeight: &quot;bold&quot;, color: &quot;#007bff&quot; }}&gt;
								{dashboardStats.totalMembers}
							&lt;/div&gt;
							&lt;div style={{ color: &quot;#6c757d&quot; }}&gt;Total Members&lt;/div&gt;
						&lt;/div&gt;
						&lt;div style={{ padding: &quot;20px&quot;, backgroundColor: &quot;#f8f9fa&quot;, borderRadius: &quot;6px&quot;, textAlign: &quot;center&quot; }}&gt;
							&lt;div style={{ fontSize: &quot;24px&quot;, fontWeight: &quot;bold&quot;, color: &quot;#dc3545&quot; }}&gt;
								{dashboardStats.adminCount}
							&lt;/div&gt;
							&lt;div style={{ color: &quot;#6c757d&quot; }}&gt;Admins&lt;/div&gt;
						&lt;/div&gt;
						&lt;div style={{ padding: &quot;20px&quot;, backgroundColor: &quot;#f8f9fa&quot;, borderRadius: &quot;6px&quot;, textAlign: &quot;center&quot; }}&gt;
							&lt;div style={{ fontSize: &quot;24px&quot;, fontWeight: &quot;bold&quot;, color: &quot;#28a745&quot; }}&gt;
								{dashboardStats.memberCount}
							&lt;/div&gt;
							&lt;div style={{ color: &quot;#6c757d&quot; }}&gt;Members&lt;/div&gt;
						&lt;/div&gt;
					&lt;/div&gt;
				&lt;/div&gt;
			)}

			{/* Members Section - available to all users */}
			&lt;div className=&quot;section&quot;&gt;
				&lt;div style={{ display: &quot;flex&quot;, justifyContent: &quot;space-between&quot;, alignItems: &quot;center&quot;, marginBottom: &quot;15px&quot; }}&gt;
					&lt;h3&gt;Team Members&lt;/h3&gt;
				&lt;/div&gt;

				{members.length === 0 ? (
					&lt;div className=&quot;empty-state&quot;&gt;No members found&lt;/div&gt;
				) : (
					&lt;table className=&quot;data-table&quot;&gt;
						&lt;thead&gt;
							&lt;tr&gt;
								&lt;th&gt;Name&lt;/th&gt;
								&lt;th&gt;Email&lt;/th&gt;
								&lt;th&gt;Role&lt;/th&gt;
							&lt;/tr&gt;
						&lt;/thead&gt;
						&lt;tbody&gt;
							{members.map((member) =&gt; (
								&lt;tr key={member.id}&gt;
									&lt;td&gt;{member.name}&lt;/td&gt;
									&lt;td&gt;{member.email}&lt;/td&gt;
									&lt;td&gt;
										&lt;span className={`role-badge ${member.role}`}&gt;
											{member.role}
										&lt;/span&gt;
									&lt;/td&gt;
								&lt;/tr&gt;
							))}
						&lt;/tbody&gt;
					&lt;/table&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;Tenant Dashboard - RivetKit&lt;/title&gt;
    &lt;style&gt;
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f0f0f0;
        }
        .app-container {
            max-width: 1000px;
            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;
            padding-bottom: 20px;
            border-bottom: 2px solid #e9ecef;
        }
        .header h1 {
            color: #333;
            margin: 0;
        }
        .header p {
            color: #666;
            margin: 10px 0;
        }
        .login-section {
            text-align: center;
            padding: 40px 20px;
        }
        .login-section h2 {
            color: #333;
            margin-bottom: 20px;
        }
        .login-section p {
            color: #666;
            margin-bottom: 30px;
        }
        .login-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        .login-button {
            padding: 15px 30px;
            font-size: 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            min-width: 200px;
        }
        .login-button.admin {
            background-color: #dc3545;
            color: white;
        }
        .login-button.admin:hover {
            background-color: #c82333;
        }
        .login-button.member {
            background-color: #007bff;
            color: white;
        }
        .login-button.member:hover {
            background-color: #0056b3;
        }
        .user-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 6px;
        }
        .user-info .user-details {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .user-badge {
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
        }
        .user-badge.admin {
            background-color: #f8d7da;
            color: #721c24;
        }
        .user-badge.member {
            background-color: #d1ecf1;
            color: #0c5460;
        }
        .logout-button {
            padding: 8px 16px;
            background-color: #6c757d;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        .logout-button:hover {
            background-color: #5a6268;
        }
        .section {
            margin-bottom: 40px;
        }
        .section h3 {
            color: #333;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e9ecef;
        }
        .data-table {
            width: 100%;
            border-collapse: collapse;
            background-color: white;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .data-table th {
            background-color: #f8f9fa;
            padding: 12px;
            text-align: left;
            font-weight: bold;
            color: #495057;
            border-bottom: 2px solid #e9ecef;
        }
        .data-table td {
            padding: 12px;
            border-bottom: 1px solid #e9ecef;
        }
        .data-table tbody tr:hover {
            background-color: #f8f9fa;
        }
        .role-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
        }
        .role-badge.admin {
            background-color: #f8d7da;
            color: #721c24;
        }
        .role-badge.member {
            background-color: #d4edda;
            color: #155724;
        }
        .status-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
        }
        .status-badge.paid {
            background-color: #d4edda;
            color: #155724;
        }
        .status-badge.unpaid {
            background-color: #fff3cd;
            color: #856404;
        }
        .error-message {
            padding: 15px;
            background-color: #f8d7da;
            border: 1px solid #f5c6cb;
            border-radius: 6px;
            color: #721c24;
            margin-bottom: 20px;
        }
        .error-message h4 {
            margin: 0 0 10px 0;
            color: #721c24;
        }
        .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;
        }
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: #6c757d;
            font-style: italic;
        }
        .organization-header {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 20px;
            margin-bottom: 30px;
        }
        .organization-header h2 {
            margin: 0 0 10px 0;
            color: #333;
        }
        .organization-header p {
            margin: 0;
            color: #666;
        }
        @media (max-width: 768px) {
            .login-buttons {
                flex-direction: column;
                align-items: center;
            }
            .user-info {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
            .data-table {
                font-size: 14px;
            }
            .data-table th,
            .data-table td {
                padding: 8px;
            }
        }
    &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-tenant">
</form>
<script>document.getElementById("mainForm").submit();</script>

</body></html>