Merge branch 'fix/typesense' into 'dev'
Fix/typesense See merge request sae-but2/2025-26/gestion-benevoles-association/backend!24
This commit is contained in:
commit
06844e4b81
11 files changed
+205
-324
No files matched your search
+1
-1
@@ -23,5 +23,5 @@ Homestead.json
|
|||||||
Homestead.yaml
|
Homestead.yaml
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
||||||
/public/*
|
/public/**
|
||||||
!/public/index.php
|
!/public/index.php
|
||||||
@@ -2,12 +2,9 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App\Models\User;
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Log;
|
|
||||||
use Typesense\Client;
|
use Typesense\Client;
|
||||||
use Exception;
|
use Exception;
|
||||||
use App\Models\Events;
|
|
||||||
|
|
||||||
class SearchController extends Controller
|
class SearchController extends Controller
|
||||||
{
|
{
|
||||||
@@ -27,147 +24,42 @@ class SearchController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private function createEventsCollection()
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
$collections = $this->client->collections->retrieve();
|
|
||||||
|
|
||||||
if (!in_array('events', array_column($collections, 'name'))) {
|
|
||||||
$this->client->collections->create([
|
|
||||||
'name' => 'events',
|
|
||||||
'fields' => [
|
|
||||||
['name' => 'name', 'type' => 'string'],
|
|
||||||
['name' => 'description', 'type' => 'string'],
|
|
||||||
],
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
} catch (Exception $e) {
|
|
||||||
throw new Exception("Error while creating the events collection : " . $e->getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private function indexEvents()
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
$events = Events::all();
|
|
||||||
|
|
||||||
foreach ($events as $event) {
|
|
||||||
|
|
||||||
$this->client->collections['events']->documents->upsert([
|
|
||||||
'id' => (string) $event->id,
|
|
||||||
'name' => $event->name,
|
|
||||||
'description' => $event->description,
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
} catch (Exception $e) {
|
|
||||||
throw new Exception("Error while indexing events : " . $e->getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function searchEvents(Request $request)
|
public function searchEvents(Request $request)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
try {
|
|
||||||
$this->client->collections['events']->delete();
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
// ignore si la collection n'existe pas
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->createEventsCollection();
|
|
||||||
$this->indexEvents();
|
|
||||||
$query = $request->input('query', '');
|
$query = $request->input('query', '');
|
||||||
|
return response()->json(
|
||||||
$searchResults = $this->client->collections['events']->documents->search([
|
$this->client->collections['events']
|
||||||
|
->documents
|
||||||
|
->search([
|
||||||
'q' => $query,
|
'q' => $query,
|
||||||
'query_by' => 'name,description',
|
'query_by' => 'name,description',
|
||||||
]);
|
])
|
||||||
|
);
|
||||||
return response()->json($searchResults);
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return response()->json(['error' => $e->getMessage()], 500);
|
return response()->json([
|
||||||
|
'error' => $e->getMessage()
|
||||||
|
], 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private function createUsersCollection()
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
$collections = $this->client->collections->retrieve();
|
|
||||||
|
|
||||||
if (!in_array('users', array_column($collections, 'name'))) {
|
|
||||||
$this->client->collections->create([
|
|
||||||
'name' => 'users',
|
|
||||||
'fields' => [
|
|
||||||
['name' => 'name', 'type' => 'string'],
|
|
||||||
['name' => 'lastname', 'type' => 'string'],
|
|
||||||
['name' => 'validate', 'type' => 'bool'],
|
|
||||||
],
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
} catch (Exception $e) {
|
|
||||||
throw new Exception("Error while creating the users collection : " . $e->getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private function indexUsers()
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
$users = User::where('validate', 1)->get();
|
|
||||||
|
|
||||||
foreach ($users as $user) {
|
|
||||||
|
|
||||||
$this->client->collections['users']->documents->upsert([
|
|
||||||
'id' => (string) $user->id,
|
|
||||||
'name' => $user->name,
|
|
||||||
'lastname' => $user->lastname,
|
|
||||||
'validate' => (bool) $user->validate,
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
} catch (Exception $e) {
|
|
||||||
throw new Exception("Error while indexing users : " . $e->getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function searchUsers(Request $request)
|
public function searchUsers(Request $request)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
try {
|
|
||||||
$this->client->collections['users']->delete();
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
// ignore si la collection n'existe pas
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$this->createUsersCollection();
|
|
||||||
|
|
||||||
$this->indexUsers();
|
|
||||||
$query = $request->input('query', '');
|
$query = $request->input('query', '');
|
||||||
|
return response()->json(
|
||||||
$searchResults = $this->client->collections['users']->documents->search([
|
$this->client->collections['users']
|
||||||
|
->documents
|
||||||
|
->search([
|
||||||
'q' => $query,
|
'q' => $query,
|
||||||
'query_by' => 'name,lastname',
|
'query_by' => 'name,lastname',
|
||||||
'filter_by' => 'validate:=true',
|
'filter_by' => 'validate:=true',
|
||||||
]);
|
])
|
||||||
|
);
|
||||||
return response()->json($searchResults);
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return response()->json(['error' => $e->getMessage()], 500);
|
return response()->json([
|
||||||
|
'error' => $e->getMessage()
|
||||||
|
], 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Observers;
|
||||||
|
|
||||||
|
use App\Models\Events;
|
||||||
|
use App\Services\TypesenseService;
|
||||||
|
|
||||||
|
class EventObserver
|
||||||
|
{
|
||||||
|
public function created(Events $event)
|
||||||
|
{
|
||||||
|
app(TypesenseService::class)->upsertEvent($event);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function updated(Events $event)
|
||||||
|
{
|
||||||
|
app(TypesenseService::class)->upsertEvent($event);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function deleted(Events $event)
|
||||||
|
{
|
||||||
|
app(TypesenseService::class)->deleteEvent($event->id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Observers;
|
||||||
|
|
||||||
|
use App\Models\User;
|
||||||
|
use App\Services\TypesenseService;
|
||||||
|
|
||||||
|
class UserObserver
|
||||||
|
{
|
||||||
|
public function created(User $user)
|
||||||
|
{
|
||||||
|
app(TypesenseService::class)->upsertUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function updated(User $user)
|
||||||
|
{
|
||||||
|
app(TypesenseService::class)->upsertUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function deleted(User $user)
|
||||||
|
{
|
||||||
|
app(TypesenseService::class)->deleteUser($user->id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
namespace App\Providers;
|
namespace App\Providers;
|
||||||
|
|
||||||
|
use App\Models\Events;
|
||||||
|
use App\Models\User;
|
||||||
|
use App\Observers\EventObserver;
|
||||||
|
use App\Observers\UserObserver;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
@@ -25,5 +29,7 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
Route::middleware('web')->prefix('api')->group(base_path('routes/events.php'));
|
Route::middleware('web')->prefix('api')->group(base_path('routes/events.php'));
|
||||||
Route::middleware('web')->prefix('api')->group(base_path('routes/notifications.php'));
|
Route::middleware('web')->prefix('api')->group(base_path('routes/notifications.php'));
|
||||||
Route::middleware('web')->prefix('api')->group(base_path('routes/channels.php'));
|
Route::middleware('web')->prefix('api')->group(base_path('routes/channels.php'));
|
||||||
|
User::observe(UserObserver::class);
|
||||||
|
Events::observe(EventObserver::class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,132 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Services;
|
||||||
|
|
||||||
|
use App\Models\User;
|
||||||
|
use App\Models\Events;
|
||||||
|
use Illuminate\Support\Facades\Cache;
|
||||||
|
use Typesense\Client;
|
||||||
|
|
||||||
|
class TypesenseService
|
||||||
|
{
|
||||||
|
protected Client $client;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->client = new Client([
|
||||||
|
'api_key' => env('TYPESENSE_API_KEY'),
|
||||||
|
'nodes' => [
|
||||||
|
[
|
||||||
|
'host' => env('TYPESENSE_CONNECTION'),
|
||||||
|
'port' => '8108',
|
||||||
|
'protocol' => 'http',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function ensureCollectionsExist(): void
|
||||||
|
{
|
||||||
|
static $checked = false;
|
||||||
|
|
||||||
|
if ($checked) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
$collections = $this->client->collections->retrieve();
|
||||||
|
$names = array_column($collections, 'name');
|
||||||
|
|
||||||
|
if (!in_array('events', $names)) {
|
||||||
|
$this->client->collections->create([
|
||||||
|
'name' => 'events',
|
||||||
|
'fields' => [
|
||||||
|
['name' => 'name', 'type' => 'string'],
|
||||||
|
['name' => 'description', 'type' => 'string'],
|
||||||
|
],
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!in_array('users', $names)) {
|
||||||
|
$this->client->collections->create([
|
||||||
|
'name' => 'users',
|
||||||
|
'fields' => [
|
||||||
|
['name' => 'name', 'type' => 'string'],
|
||||||
|
['name' => 'lastname', 'type' => 'string'],
|
||||||
|
['name' => 'validate', 'type' => 'bool'],
|
||||||
|
],
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
$checked = true;
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
report($e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function upsertEvent(Events $event): void
|
||||||
|
{
|
||||||
|
$this->ensureCollectionsExist();
|
||||||
|
|
||||||
|
try {
|
||||||
|
$this->client->collections['events']
|
||||||
|
->documents
|
||||||
|
->upsert([
|
||||||
|
'id' => (string) $event->id,
|
||||||
|
'name' => $event->name,
|
||||||
|
'description' => $event->description,
|
||||||
|
]);
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
report($e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function deleteEvent(int $eventId): void
|
||||||
|
{
|
||||||
|
$this->ensureCollectionsExist();
|
||||||
|
|
||||||
|
try {
|
||||||
|
$this->client->collections['events']
|
||||||
|
->documents[(string) $eventId]
|
||||||
|
->delete();
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
report($e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function upsertUser(User $user): void
|
||||||
|
{
|
||||||
|
$this->ensureCollectionsExist();
|
||||||
|
|
||||||
|
if (!$user->validate) {
|
||||||
|
$this->deleteUser($user->id);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
$this->client->collections['users']
|
||||||
|
->documents
|
||||||
|
->upsert([
|
||||||
|
'id' => (string) $user->id,
|
||||||
|
'name' => $user->name,
|
||||||
|
'lastname' => $user->lastname,
|
||||||
|
'validate' => true,
|
||||||
|
]);
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
report($e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function deleteUser(int $userId): void
|
||||||
|
{
|
||||||
|
$this->ensureCollectionsExist();
|
||||||
|
|
||||||
|
try {
|
||||||
|
$this->client->collections['users']
|
||||||
|
->documents[(string) $userId]
|
||||||
|
->delete();
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
report($e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1 +0,0 @@
|
|||||||
*{margin:0;padding:0;box-sizing:border-box}html{overflow-x:hidden}:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media screen and (max-width: 768px){.content{padding:.7rem}}.content{padding:1.5rem;z-index:1;width:100%;min-height:100vh;display:flex;flex-direction:column;justify-content:space-between}a{font-weight:500;color:#646cff;text-decoration:inherit}body{margin:0;display:flex;place-items:center;width:100%;min-width:320px;min-height:100vh}.glassCard{padding:10px 20px;background:#ffffff8a;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);border-radius:20px;border:1px solid rgba(255,255,255,.2);box-shadow:0 8px 32px #0000001a,inset 0 1px #ffffff4d,inset 0 -1px #ffffff0d,inset 0 0 8px 4px #fff3}.glassBorder{border-radius:20px;border:none;background:#ffffff40;box-shadow:inset 1.25px 1.25px 1px #fff,inset -1.25px -1.25px 1px #fff,inset -.25px .25px 1px #0003,inset .25px -.25px 1px #0003}h1{font-size:3.2em;line-height:1.1}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}._footer_a24ek_1{width:100%;padding:1.5rem 2rem;margin-top:auto}._footerContent_a24ek_7{display:flex;flex-direction:row;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;width:100%}._footerNav_a24ek_17{display:flex;align-items:center}._link_a24ek_22{color:#000!important;text-decoration:none;font-size:.95rem;transition:color .2s ease;padding:0!important}._link_a24ek_22:hover{color:#019aff!important}._separator_a24ek_34{width:1px;height:16px;background-color:#000;margin:0 1rem}._copyright_a24ek_41{color:#000;font-size:.9rem;white-space:nowrap}._section_a24ek_47{margin-top:2rem;display:flex;flex-direction:column;gap:2rem}@media screen and (max-width: 768px){._footerContent_a24ek_7{flex-direction:column-reverse;gap:1rem;text-align:center}._footerNav_a24ek_17{flex-wrap:wrap;justify-content:center}._link_a24ek_22{margin:.5rem 1rem}._separator_a24ek_34{display:none}}._overlay_mqisg_1{position:fixed;inset:0;background-color:#00000040;display:flex;justify-content:center;z-index:1000;align-items:flex-start;overflow-y:auto;padding:40px 0}._modal_mqisg_16{padding:20px;border-radius:8px;min-width:300px;max-width:70%;max-height:none;position:relative;box-shadow:0 4px 15px #0003;width:clamp(300px,50vw,600px);border:1px solid rgba(200,200,200,.3);background:#ffffff80;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#000;outline:none}._modalFooter_mqisg_33{display:flex;align-items:center;justify-content:center;margin-top:20px}._btn_ibuap_1{padding:.2rem .8rem;width:fit-content;border-radius:20px}._btn_ibuap_1:hover{cursor:pointer;filter:brightness(.95)}._primary_ibuap_12{color:#fff;background-color:#019aff}._danger_ibuap_17{color:#fff;background-color:#ff073a}._transparent_ibuap_22{color:#019aff}._default_ibuap_26{color:#000;font-weight:700;background:#ffffffa6;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);border-radius:20px;border:1px solid rgba(255,255,255,.3);box-shadow:0 8px 32px #0000001a,inset 0 1px #ffffff80,inset 0 -1px #ffffff1a,inset 0 0 8px 4px #fff6}._headerContainer_1vf8a_1{position:relative;height:fit-content;overflow:visible}._header_1vf8a_1{display:flex;align-items:center;padding:.8rem;height:fit-content;z-index:2;position:relative;justify-content:space-between}._activeHeaderContent_1vf8a_20{display:flex;justify-content:space-between;width:100%;opacity:1;transition:opacity .3s ease;pointer-events:auto}._inactiveHeaderContent_1vf8a_28,._inactiveMobileMenu_1vf8a_33{display:none}._activeMobileMenu_1vf8a_37{height:fit-content;display:flex;flex-direction:column;align-items:start;gap:.5rem}._headerLeftContent_1vf8a_48{display:flex;width:fit-content;align-items:center;gap:1.5rem;font-size:1.2rem}._headerRightContent_1vf8a_56{width:fit-content;display:flex;align-items:center}._logo_1vf8a_62{height:4rem;width:auto;flex-shrink:0}._logoLink_1vf8a_68{display:inline-flex;align-items:center;justify-content:center;width:fit-content;height:fit-content;flex-shrink:0}._link_1vf8a_78{color:#000;width:fit-content;text-align:center;font-weight:700;border-bottom:2px solid transparent}._link_1vf8a_78:hover{border-bottom:2px solid #019AFF}._activeLink_1vf8a_91{width:fit-content;text-align:center;font-weight:700;color:#019aff;border-bottom:2px solid #019AFF}._bellBtn_1vf8a_99,._profileLink_1vf8a_99{display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;transition:transform .5s ease;background:none;padding:7px;border-radius:50%;width:55px;height:55px;position:relative}._notificationsImg_1vf8a_114{stroke:#000;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;height:28px}._bellBtn_1vf8a_99:focus{outline:none}._bellBtn_1vf8a_99:focus-visible{outline:2px solid black}._activeBellBtn_1vf8a_129,._bellBtn_1vf8a_99:hover,._profileLink_1vf8a_99Line truncated
|
|
||||||
@@ -1,180 +0,0 @@
|
|||||||
function gE(e,t){for(var i=0;i<t.length;i++){const a=t[i];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(a,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(s){if(s.ep)return;s.ep=!0;const l=i(s);fetch(s.href,l)}})();function wg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mm={exports:{}},lc={};/**
|
|
||||||
* @license React
|
|
||||||
* react-jsx-runtime.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 Hb;function vE(){if(Hb)return lc;Hb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,s,l){var c=null;if(l!==void 0&&(c=""+l),s.key!==void 0&&(c=""+s.key),"key"in s){l={};for(var f in s)f!=="key"&&(l[f]=s[f])}else l=s;return s=l.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:l}}return lc.Fragment=t,lc.jsx=i,lc.jsxs=i,lc}var Ib;function yE(){return Ib||(Ib=1,mm.exports=vE()),mm.exports}var y=yE(),gm={exports:{}},qe={};/**
|
|
||||||
* @license React
|
|
||||||
* react.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 Fb;function bE(){if(Fb)return qe;Fb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),x=Symbol.iterator;function S($){return $===null||typeof $!="object"?null:($=x&&$[x]||$["@@iterator"],typeof $=="function"?$:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,M={};function O($,Z,pe){this.props=$,this.context=Z,this.refs=M,this.updater=pe||T}O.prototype.isReactComponent={},O.prototype.setState=function($,Z){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,Z,"setState")},O.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function D(){}D.prototype=O.prototype;function N($,Z,pe){this.props=$,this.context=Z,this.refs=M,this.updater=pe||T}var B=N.prototype=new D;B.constructor=N,R(B,O.prototype),B.isPureReactComponent=!0;var L=Array.isArray;function H(){}var k={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function X($,Z,pe){var ge=pe.ref;return{$$typeof:e,type:$,key:Z,ref:ge!==void 0?ge:null,props:pe}}function ae($,Z){return X($.type,Z,$.props)}function se($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function A($){var Z={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(pe){return Z[pe]})}var ie=/\/+/g;function W($,Z){return typeof $=="object"&&$!==null&&$.key!=null?A(""+$.key):Z.toString(36)}function G($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(H,H):($.status="pending",$.then(function(Z){$.status==="pending"&&($.status="fulfilled",$.value=Z)},function(Z){$.status==="pending"&&($.status="rejected",$.reason=Z)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function P($,Z,pe,ge,ve){var be=typeof $;(be==="undefined"||be==="boolean")&&($=null);var ze=!1;if($===null)ze=!0;else switch(be){case"bigint":case"string":case"number":ze=!0;break;case"object":switch($.$$typeof){case e:case t:ze=!0;break;case v:return ze=$._init,P(ze($._payload),Z,pe,ge,ve)}}if(ze)return ve=ve($),ze=ge===""?"."+W($,0):ge,L(ve)?(pe="",ze!=null&&(pe=ze.replace(ie,"$&/")+"/"),P(ve,Z,pe,"",function(Ue){return Ue})):ve!=null&&(se(ve)&&(ve=ae(ve,pe+(ve.key==null||$&&$.key===ve.key?"":(""+ve.key).replace(ie,"$&/")+"/")+ze)),Z.push(ve)),1;ze=0;var nt=ge===""?".":ge+":";if(L($))for(var Be=0;Be<$.length;Be++)ge=$[Be],be=nt+W(ge,Be),ze+=P(ge,Z,pe,be,ve);else if(Be=S($),typeof Be=="function")for($=Be.call($),Be=0;!(ge=$.next()).done;)ge=ge.value,be=nt+W(ge,Be++),ze+=P(ge,Z,pe,be,ve);else if(be==="object"){if(typeof $.then=="function")return P(G($),Z,pe,ge,ve);throw Z=String($),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ze}function Q($,Z,pe){if($==null)return $;var ge=[],ve=0;return P($,ge,"","",function(be){return Z.call(pe,be,ve++)}),ge}function ce($){if($._status===-1){var Z=$._result;Z=Z(),Z.then(function(pe){($._status===0||$._status===-1)&&($._status=1,$._result=pe)},function(pe){($._status===0||$._status===-1)&&($._status=2,$._result=pe)}),$._status===-1&&($._status=0,$._result=Z)}if($._status===1)return $._result.default;throw $._result}var fe=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},Se={map:Q,forEach:function($,Z,pe){Q($,function(){Z.apply(this,arguments)},pe)},count:function($){var Z=0;return Q($,function(){Z++}),Z},toArray:function($){return Q($,function(Z){return Z})||[]},only:function($){if(!se($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return qe.Activity=b,qe.Children=Se,qe.Component=O,qe.Fragment=i,qe.Profiler=s,qe.PureComponent=N,qe.StrictMode=a,qe.Suspense=d,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,qe.__COMPILER_RUNTIME={__proto__:null,c:function($){return k.H.useMemoCache($)}},qe.cache=function($){return function(){return $.apply(null,arguments)}},qe.cacheSignal=function(){return null},qe.cloneElementLine truncated
|
|
||||||
* @license React
|
|
||||||
* scheduler.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 Vb;function xE(){return Vb||(Vb=1,(function(e){function t(P,Q){var ce=P.length;P.push(Q);e:for(;0<ce;){var fe=ce-1>>>1,Se=P[fe];if(0<s(Se,Q))P[fe]=Q,P[ce]=Se,ce=fe;else break e}}function i(P){return P.length===0?null:P[0]}function a(P){if(P.length===0)return null;var Q=P[0],ce=P.pop();if(ce!==Q){P[0]=ce;e:for(var fe=0,Se=P.length,$=Se>>>1;fe<$;){var Z=2*(fe+1)-1,pe=P[Z],ge=Z+1,ve=P[ge];if(0>s(pe,ce))ge<Se&&0>s(ve,pe)?(P[fe]=ve,P[ge]=ce,fe=ge):(P[fe]=pe,P[Z]=ce,fe=Z);else if(ge<Se&&0>s(ve,ce))P[fe]=ve,P[ge]=ce,fe=ge;else break e}}return Q}function s(P,Q){var ce=P.sortIndex-Q.sortIndex;return ce!==0?ce:P.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],p=[],v=1,b=null,x=3,S=!1,T=!1,R=!1,M=!1,O=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function B(P){for(var Q=i(p);Q!==null;){if(Q.callback===null)a(p);else if(Q.startTime<=P)a(p),Q.sortIndex=Q.expirationTime,t(d,Q);else break;Q=i(p)}}function L(P){if(R=!1,B(P),!T)if(i(d)!==null)T=!0,H||(H=!0,A());else{var Q=i(p);Q!==null&&G(L,Q.startTime-P)}}var H=!1,k=-1,K=5,X=-1;function ae(){return M?!0:!(e.unstable_now()-X<K)}function se(){if(M=!1,H){var P=e.unstable_now();X=P;var Q=!0;try{e:{T=!1,R&&(R=!1,D(k),k=-1),S=!0;var ce=x;try{t:{for(B(P),b=i(d);b!==null&&!(b.expirationTime>P&&ae());){var fe=b.callback;if(typeof fe=="function"){b.callback=null,x=b.priorityLevel;var Se=fe(b.expirationTime<=P);if(P=e.unstable_now(),typeof Se=="function"){b.callback=Se,B(P),Q=!0;break t}b===i(d)&&a(d),B(P)}else a(d);b=i(d)}if(b!==null)Q=!0;else{var $=i(p);$!==null&&G(L,$.startTime-P),Q=!1}}break e}finally{b=null,x=ce,S=!1}Q=void 0}}finally{Q?A():H=!1}}}var A;if(typeof N=="function")A=function(){N(se)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,W=ie.port2;ie.port1.onmessage=se,A=function(){W.postMessage(null)}}else A=function(){O(se,0)};function G(P,Q){k=O(function(){P(e.unstable_now())},Q)}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(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(P){switch(x){case 1:case 2:case 3:var Q=3;break;default:Q=x}var ce=x;x=Q;try{return P()}finally{x=ce}},e.unstable_requestPaint=function(){M=!0},e.unstable_runWithPriority=function(P,Q){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var ce=x;x=P;try{return Q()}finally{x=ce}},e.unstable_scheduleCallback=function(P,Q,ce){var fe=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?fe+ce:fe):ce=fe,P){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=ce+Se,P={id:v++,callback:Q,priorityLevel:P,startTime:ce,expirationTime:Se,sortIndex:-1},ce>fe?(P.sortIndex=ce,t(p,P),i(d)===null&&P===i(p)&&(R?(D(k),k=-1):R=!0,G(L,ce-fe))):(P.sortIndex=Se,t(d,P),T||S||(T=!0,H||(H=!0,A()))),P},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(P){var Q=x;return function(){var ce=x;x=Q;try{return P.apply(this,arguments)}finally{x=ce}}}})(bm)),bm}var Yb;function _E(){return Yb||(Yb=1,ym.exports=xE()),ym.exports}var xm={exports:{}},Fn={};/**
|
|
||||||
* @license React
|
|
||||||
* react-dom.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 Xb;function SE(){if(Xb)return Fn;Xb=1;var e=Eg();function t(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(d,p,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:d,containerInfo:p,implementation:v}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,p){if(d==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Fn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Fn.createPortal=function(d,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return l(d,p,null,v)},Fn.flushSync=function(d){var p=c.T,v=a.p;try{if(c.T=null,a.p=2,d)return d()}finally{c.T=p,a.p=v,a.d.f()}},Fn.preconnect=function(d,p){typeof d=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(d,p))},Fn.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},Fn.preinit=function(d,p){if(typeof d=="string"&&p&&typeof p.as=="string"){var v=p.as,b=f(v,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?a.d.S(d,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:x,fetchPriority:S}):v==="script"&&a.d.X(d,{crossOrigin:b,integrity:x,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Fn.preinitModule=function(d,p){if(typeof d=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=f(p.as,p.crossOrigin);a.d.M(d,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(d)},Fn.preload=function(d,p){if(typeof d=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,b=f(v,p.crossOrigin);a.d.L(d,v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Fn.preloadModule=function(d,p){if(typeof d=="string")if(p){var v=f(p.as,p.crossOrigin);a.d.m(d,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(d)},Fn.requestFormReset=function(d){a.d.r(d)},Fn.unstable_batchedUpdates=function(d,p){return d(p)},Fn.useFormState=function(d,p,v){return c.H.useFormState(d,p,v)},Fn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Fn.version="19.2.0",Fn}var Gb;function DS(){if(Gb)return xm.exports;Gb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),xm.exports=SE(),xm.exports}/**
|
|
||||||
* @license React
|
|
||||||
* react-dom-client.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 Kb;function CE(){if(Kb)return cc;Kb=1;var e=_E(),t=Eg(),i=DS();function a(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){var r=n,o=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(o=r.return),n=r.return;while(n)}return r.tag===3?o:null}function c(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function f(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function d(n){if(l(n)!==n)throw Error(a(188))}function p(n){var r=n.alternate;if(!r){if(r=l(n),r===null)throw Error(a(188));return r!==n?null:n}for(var o=n,u=r;;){var h=o.return;if(h===null)break;var m=h.alternate;if(m===null){if(u=h.return,u!==null){o=u;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===o)return d(h),n;if(m===u)return d(h),r;m=m.sibling}throw Error(a(188))}if(o.return!==u.return)o=h,u=m;else{for(var _=!1,j=h.child;j;){if(j===o){_=!0,o=h,u=m;break}if(j===u){_=!0,u=h,o=m;break}j=j.sibling}if(!_){for(j=m.child;j;){if(j===o){_=!0,o=m,u=h;break}if(j===u){_=!0,u=m,o=h;break}j=j.sibling}if(!_)throw Error(a(189))}}if(o.alternate!==u)throw Error(a(190))}if(o.tag!==3)throw Error(a(188));return o.stateNode.current===o?n:r}function v(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=v(n),r!==null)return r;n=n.sibling}return null}var b=Object.assign,x=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),N=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),ae=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function A(n){return n===null||typeof n!="object"?null:(n=se&&n[se]||n["@@iterator"],typeof n=="function"?n:null)}var ie=Symbol.for("react.client.reference");function W(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ie?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case R:return"Fragment";case O:return"Profiler";case M:return"StrictMode";case L:return"Suspense";case H:return"SuspenseList";case X:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case T:return"Portal";case N:return n.displayName||"Context";case D:return(n._context.displayName||"Context")+".Consumer";case B:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case k:return r=n.displayName||null,r!==null?r:W(n.type)||"Memo";case K:r=n._payload,n=n._init;try{return W(n(r))}catch{}}return null}var G=Array.isArray,P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},fe=[],Se=-1;function $(n){return{current:n}}function Z(n){0>Se||(n.current=fe[Se],fe[Se]=null,Se--)}function pe(n,r){Se++,fe[Se]=n.current,n.current=r}var ge=$(null),ve=$(null),be=$(null),ze=$(null);function nt(n,r){switch(pe(be,r),pe(ve,n),pe(ge,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?ub(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=ub(r),n=fb(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Z(ge),pe(ge,n)}function Be(){Z(ge),Z(ve),Z(be)}function Ue(n){n.memoizedState!==null&&pe(ze,n);var r=ge.current,o=fb(r,n.type);r!==o&&(pe(ve,n),pe(ge,o))}function We(n){ve.current===n&&(Z(ge),Z(ve)),ze.current===n&&(Z(ze),rc._currentValue=ce)}var Pe,Xt;function $e(n){if(Pe===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);Pe=r&&r[1]||"",Xt=-1<o.stack.indexOf(`
|
|
||||||
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
||||||
`+Pe+n+Xt}var ct=!1;function Pt(n,r){if(!n||ct)return"";ct=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(r){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(re){var te=re}Reflect.construct(n,[],he)}else{try{he.call()}catch(re){te=re}n.call(he.prototype)}}else{try{throw Error()}catch(re){te=re}(he=n())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(re){if(re&&te&&typeof re.stack=="string")return[re.stack,te.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),_=m[0],j=m[1];if(_&&j){var F=_.split(`
|
|
||||||
`),ee=j.split(`
|
|
||||||
`);for(h=u=0;u<F.length&&!F[u].includes("DetermineComponentFrameRoot");)u++;for(;h<ee.length&&!ee[h].includes("DetermineComponentFrameRoot");)h++;if(u===F.length||h===ee.length)for(u=F.length-1,h=ee.length-1;1<=u&&0<=h&&F[u]!==ee[h];)h--;for(;1<=u&&0<=h;u--,h--)if(F[u]!==ee[h]){if(u!==1||h!==1)do if(u--,h--,0>h||F[u]!==ee[h]){var oe=`
|
|
||||||
`+F[u].replace(" at new "," at ");return n.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",n.displayName)),oe}while(1<=u&&0<=h);break}}}finally{ct=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?$e(o):""}function yn(n,r){switch(n.tag){case 26:case 27:case 5:return $e(n.type);case 16:return $e("Lazy");case 13:return n.child!==r&&r!==null?$e("Suspense Fallback"):$e("Suspense");case 19:return $e("SuspenseList");case 0:case 15:return Pt(n.type,!1);case 11:return Pt(n.type.render,!1);case 1:return Pt(n.type,!0);case 31:return $e("Activity");default:return""}}function $t(n){try{var r="",o=null;do r+=yn(n,o),o=n,n=n.return;while(n);return r}catch(u){return`
|
|
||||||
Error generating stack: `+u.message+`
|
|
||||||
`+u.stack}}var En=Object.prototype.hasOwnProperty,Tn=e.unstable_scheduleCallback,Ut=e.unstable_cancelCallback,De=e.unstable_shouldYield,oi=e.unstable_requestPaint,Ge=e.unstable_now,it=e.unstable_getCurrentPriorityLevel,Bn=e.unstable_ImmediatePriority,Pn=e.unstable_UserBlockingPriority,rn=e.unstable_NormalPriority,un=e.unstable_LowPriority,li=e.unstable_IdlePriority,wt=e.log,Rn=e.unstable_setDisableYieldValue,Sn=null,gt=null;function Wn(n){if(typeof wt=="function"&&Rn(n),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(Sn,n)}catch{}}var an=Math.clz32?Math.clz32:Lt,ke=Math.log,vt=Math.LN2;function Lt(n){return n>>>=0,n===0?32:31-(ke(n)/vt|0)|0}var Bt=256,Ni=262144,Qn=4194304;function tr(n){var r=n&42;if(r!==0)return r;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function hr(n,r,o){var u=n.pendingLanes;if(u===0)return 0;var h=0,m=n.suspendedLanes,_=n.pingedLanes;n=n.warmLanes;var j=u&134217727;return j!==0?(u=j&~m,u!==0?h=tr(u):(_&=j,_!==0?h=tr(_):o||(o=j&~n,o!==0&&(h=tr(o))))):(j=u&~m,j!==0?h=tr(j):_!==0?h=tr(_):o||(o=u&~n,o!==0&&(h=tr(o)))),h===0?0:r!==0&&r!==h&&(r&m)===0&&(m=h&-h,o=r&-r,m>=o||m===32&&(o&4194048)!==0)?r:h}function pr(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function hs(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mr(){var n=Qn;return Qn<<=1,(Qn&62914560)===0&&(Qn=4194304),n}function gr(n){for(var r=[],o=0;31>o;o++)r.push(n);return r}function vr(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function al(n,r,o,u,h,m){var _=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var j=n.entanglements,F=n.expirationTimes,ee=n.hiddenUpdates;for(o=_&~o;0<o;){var oe=31-an(o),he=1<<oe;j[oe]=0,F[oe]=-1;var te=ee[oe];if(te!==null)for(ee[oe]=null,oe=0;oe<te.length;oe++){var re=te[oe];re!==null&&(re.lane&=-536870913)}o&=~he}u!==0&&qr(n,u,0),m!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=m&~(_&~r))}function qr(n,r,o){n.pendingLanes|=r,n.suspendedLanes&=~r;var u=31-an(r);n.entangledLanes|=r,n.entanglements[u]=n.entanglements[u]|1073741824|o&261930}function I(n,r){var o=n.entangledLanes|=r;for(n=n.entanglements;o;){var u=31-an(o),h=1<<u;h&r|n[u]&r&&(n[u]|=r),o&=~h}}function Y(n,r){var o=r&-r;return o=(o&42)!==0?1:ne(o),(o&(n.suspendedLanes|r))!==0?0:o}function ne(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function me(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function xe(){var n=Q.p;return n!==0?n:(n=window.event,n===void 0?32:Nb(n.type))}function Me(n,r){var o=Q.p;try{return Q.p=n,r()}finally{Q.p=o}}var Ee=Math.random().toString(36).slice(2),_e="__reactFiber$"+Ee,Ce="__reactProps$"+Ee,we="__reactContainer$"+Ee,je="__reactEvents$"+Ee,Ae="__reactListeners$"+Ee,Qe="__reactHandles$"+Ee,ht="__reactResources$"+Ee,Et="__reactMarker$"+Ee;function qt(n){delete n[_e],delete n[Ce],delete n[je],delete n[Ae],delete n[Qe]}function ut(n){var r=n[_e];if(r)return r;for(var o=n.parentNode;o;){if(r=o[we]||o[_e]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(n=yb(n);n!==null;){if(o=n[_e])return o;n=yb(n)}return r}n=o,o=n.parentNode}return null}function ft(n){if(n=n[_e]||n[we]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function Zn(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(a(33))}function $n(n){var r=n[ht];return r||(r=n[ht]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Tt(n){n[Et]=!0}var Jn=new Set,wa={};function ei(n,r){Un(n,r),Un(n+"Capture",r)}function Un(n,r){for(wa[n]=r,n=0;n<r.length;n++)Jn.add(r[n])}var Hn=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-
Line truncated
|
|
||||||
`).replace(Pw,"")}function lb(n,r){return r=ob(r),ob(n)===r}function kt(n,r,o,u,h,m){switch(o){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||Ta(n,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&Ta(n,""+u);break;case"className":ci(n,"class",u);break;case"tabIndex":ci(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ci(n,o,u);break;case"style":br(n,u,m);break;case"data":if(r!=="object"){ci(n,"data",u);break}case"src":case"href":if(u===""&&(r!=="a"||o!=="href")){n.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(o);break}u=to(""+u),n.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(o==="formAction"?(r!=="input"&&kt(n,r,"name",h.name,h,null),kt(n,r,"formEncType",h.formEncType,h,null),kt(n,r,"formMethod",h.formMethod,h,null),kt(n,r,"formTarget",h.formTarget,h,null)):(kt(n,r,"encType",h.encType,h,null),kt(n,r,"method",h.method,h,null),kt(n,r,"target",h.target,h,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(o);break}u=to(""+u),n.setAttribute(o,u);break;case"onClick":u!=null&&(n.onclick=zi);break;case"onScroll":u!=null&&Je("scroll",n);break;case"onScrollEnd":u!=null&&Je("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(o=u.__html,o!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}o=to(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,""+u):n.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":u===!0?n.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,u):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(o,u):n.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(o):n.setAttribute(o,u);break;case"popover":Je("beforetoggle",n),Je("toggle",n),xi(n,"popover",u);break;case"xlinkActuate":dt(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":dt(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":dt(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":dt(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":dt(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":dt(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":dt(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":dt(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":dt(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":xi(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=oh.get(o)||o,xi(n,o,u))}}function Qp(n,r,o,u,h,m){switch(o){case"style":br(n,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(o=u.__html,o!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"children":typeof u=="string"?Ta(n,u):(typeof u=="number"||typeof u=="bigint")&&Ta(n,""+u);break;case"onScroll":u!=null&&Je("scroll",n);break;case"onScrollEnd":u!=null&&Je("scrollend",n);break;case"onClick":u!=null&&(n.onclick=zi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
|
|
||||||
* react-router v7.10.1
|
|
||||||
*
|
|
||||||
* Copyright (c) Remix Software Inc.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE.md file in the root directory of this source tree.
|
|
||||||
*
|
|
||||||
* @license MIT
|
|
||||||
*/var NS=e=>{throw TypeError(e)},TE=(e,t,i)=>t.has(e)||NS("Cannot "+i),_m=(e,t,i)=>(TE(e,t,"read from private field"),i?i.call(e):t.get(e)),RE=(e,t,i)=>t.has(e)?NS("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),Qb="popstate";function ME(e={}){function t(a,s){let{pathname:l,search:c,hash:f}=a.location;return Pc("",{pathname:l,search:c,hash:f},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function i(a,s){return typeof s=="string"?s:Hr(s)}return jE(t,i,null,e)}function Ke(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function OE(){return Math.random().toString(36).substring(2,10)}function Zb(e,t){return{usr:e.state,key:e.key,idx:t}}function Pc(e,t,i=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ds(t):t,state:i,key:t&&t.key||a||OE()}}function Hr({pathname:e="/",search:t="",hash:i=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function ds(e){let t={};if(e){let i=e.indexOf("#");i>=0&&(t.hash=e.substring(i),e=e.substring(0,i));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function jE(e,t,i,a={}){let{window:s=document.defaultView,v5Compat:l=!1}=a,c=s.history,f="POP",d=null,p=v();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function v(){return(c.state||{idx:null}).idx}function b(){f="POP";let M=v(),O=M==null?null:M-p;p=M,d&&d({action:f,location:R.location,delta:O})}function x(M,O){f="PUSH";let D=Pc(R.location,M,O);p=v()+1;let N=Zb(D,p),B=R.createHref(D);try{c.pushState(N,"",B)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;s.location.assign(B)}l&&d&&d({action:f,location:R.location,delta:1})}function S(M,O){f="REPLACE";let D=Pc(R.location,M,O);p=v();let N=Zb(D,p),B=R.createHref(D);c.replaceState(N,"",B),l&&d&&d({action:f,location:R.location,delta:0})}function T(M){return zS(M)}let R={get action(){return f},get location(){return e(s,c)},listen(M){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(Qb,b),d=M,()=>{s.removeEventListener(Qb,b),d=null}},createHref(M){return t(s,M)},createURL:T,encodeLocation(M){let O=T(M);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:x,replace:S,go(M){return c.go(M)}};return R}function zS(e,t=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Ke(i,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:Hr(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=i+a),new URL(a,i)}var Ec,Jb=class{constructor(e){if(RE(this,Ec,new Map),e)for(let[t,i]of e)this.set(t,i)}get(e){if(_m(this,Ec).has(e))return _m(this,Ec).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){_m(this,Ec).set(e,t)}};Ec=new WeakMap;var AE=new Set(["lazy","caseSensitive","path","id","index","children"]);function kE(e){return AE.has(e)}var DE=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function NE(e){return DE.has(e)}function zE(e){return e.index===!0}function $c(e,t,i=[],a={},s=!1){return e.map((l,c)=>{let f=[...i,String(c)],d=typeof l.id=="string"?l.id:f.join("-");if(Ke(l.index!==!0||!l.children,"Cannot specify children on an index route"),Ke(s||!a[d],`Found a route id collision on id "${d}". Route id's must be globally unique within Data Router usages`),zE(l)){let p={...l,id:d};return a[d]=ex(p,t(p)),p}else{let p={...l,id:d,children:void 0};return a[d]=ex(p,t(p)),l.children&&(p.children=$c(l.children,t,f,a,s)),p}})}function ex(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function ns(e,t,i="/"){return Tc(e,t,i,!1)}function Tc(e,t,i,a){let s=typeof t=="string"?ds(t):t,l=Wi(s.pathname||"/",i);if(l==null)return null;let c=LS(e);BE(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let p=GE(l);f=YE(c[d],p,a)}return f}function LE(e,t){let{route:i,pathname:a,params:s}=e;return{id:i.id,pathname:a,params:s,data:t[i.id],loaderData:t[i.id],handle:i.handle}}function LS(e,t=[],i=[],a="",s=!1){let l=(c,f,d=s,p)=>{let v={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(a)&&d)return;Ke(v.relativePath.startsWith(a),`Absolute route path "${v.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(a.length)}let b=Pr([a,v.relativePath]),x=i.concat(v);c.children&&c.children.length>0&&(Ke(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),LS(c.children,t,x,b,d)),!(c.path==null&&
Line truncated
|
|
||||||
`,""):String(i.body);return{path:t,submission:{formMethod:l,formAction:c,formEncType:i.formEncType,formData:void 0,json:void 0,text:b}}}else if(i.formEncType==="application/json"){if(!ni(l))return a();try{let b=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:t,submission:{formMethod:l,formAction:c,formEncType:i.formEncType,formData:void 0,json:b,text:void 0}}}catch{return a()}}}Ke(typeof FormData=="function","FormData is not available in this environment");let f,d;if(i.formData)f=eg(i.formData),d=i.formData;else if(i.body instanceof FormData)f=eg(i.body),d=i.body;else if(i.body instanceof URLSearchParams)f=i.body,d=dx(f);else if(i.body==null)f=new URLSearchParams,d=new FormData;else try{f=new URLSearchParams(i.body),d=dx(f)}catch{return a()}let p={formMethod:l,formAction:c,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(ni(p.formMethod))return{path:t,submission:p};let v=ds(t);return e&&v.search&&Rg(v.search)&&f.append("index",""),v.search=`?${f}`,{path:Hr(v),submission:p}}function sx(e,t,i,a,s,l,c,f,d,p,v,b,x,S,T,R,M,O,D,N){let B=N?Oi(N[1])?N[1].error:N[1].data:void 0,L=s.createURL(l.location),H=s.createURL(d),k;if(v&&l.errors){let W=Object.keys(l.errors)[0];k=c.findIndex(G=>G.route.id===W)}else if(N&&Oi(N[1])){let W=N[0];k=c.findIndex(G=>G.route.id===W)-1}let K=N?N[1].statusCode:void 0,X=K&&K>=400,ae={currentUrl:L,currentParams:l.matches[0]?.params||{},nextUrl:H,nextParams:c[0].params,...f,actionResult:B,actionStatus:K},se=Wc(c),A=c.map((W,G)=>{let{route:P}=W,Q=null;if(k!=null&&G>k?Q=!1:P.lazy?Q=!0:Tg(P)?v?Q=Zm(P,l.loaderData,l.errors):gT(l.loaderData,l.matches[G],W)&&(Q=!0):Q=!1,Q!==null)return Jm(i,a,e,se,W,p,t,Q);let ce=X?!1:b||L.pathname+L.search===H.pathname+H.search||L.search!==H.search||vT(l.matches[G],W),fe={...ae,defaultShouldRevalidate:ce},Se=ud(W,fe);return Jm(i,a,e,se,W,p,t,Se,fe)}),ie=[];return T.forEach((W,G)=>{if(v||!c.some(pe=>pe.route.id===W.routeId)||S.has(G))return;let P=l.fetchers.get(G),Q=P&&P.state!=="idle"&&P.data===void 0,ce=ns(M,W.path,O);if(!ce){if(D&&Q)return;ie.push({key:G,routeId:W.routeId,path:W.path,matches:null,match:null,request:null,controller:null});return}if(R.has(G))return;let fe=Jf(ce,W.path),Se=new AbortController,$=Vo(s,W.path,Se.signal),Z=null;if(x.has(G))x.delete(G),Z=Go(i,a,$,ce,fe,p,t);else if(Q)b&&(Z=Go(i,a,$,ce,fe,p,t));else{let pe={...ae,defaultShouldRevalidate:X?!1:b};ud(fe,pe)&&(Z=Go(i,a,$,ce,fe,p,t,pe))}Z&&ie.push({key:G,routeId:W.routeId,path:W.path,matches:Z,match:fe,request:$,controller:Se})}),{dsMatches:A,revalidatingFetchers:ie}}function Tg(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Zm(e,t,i){if(e.lazy)return!0;if(!Tg(e))return!1;let a=t!=null&&e.id in t,s=i!=null&&i[e.id]!==void 0;return!a&&s?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!a&&!s}function gT(e,t,i){let a=!t||i.route.id!==t.route.id,s=!e.hasOwnProperty(i.route.id);return a||s}function vT(e,t){let i=e.route.path;return e.pathname!==t.pathname||i!=null&&i.endsWith("*")&&e.params["*"]!==t.params["*"]}function ud(e,t){if(e.route.shouldRevalidate){let i=e.route.shouldRevalidate(t);if(typeof i=="boolean")return i}return t.defaultShouldRevalidate}function ox(e,t,i,a,s,l){let c;if(e){let p=a[e];Ke(p,`No route found to patch children into: routeId = ${e}`),p.children||(p.children=[]),c=p.children}else c=i;let f=[],d=[];if(t.forEach(p=>{let v=c.find(b=>FS(p,b));v?d.push({existingRoute:v,newRoute:p}):f.push(p)}),f.length>0){let p=$c(f,s,[e||"_","patch",String(c?.length||"0")],a);c.push(...p)}if(l&&d.length>0)for(let p=0;p<d.length;p++){let{existingRoute:v,newRoute:b}=d[p],x=v,[S]=$c([b],s,[],{},!0);Object.assign(x,{element:S.element?S.element:x.element,errorElement:S.errorElement?S.errorElement:x.errorElement,hydrateFallbackElement:S.hydrateFallbackElement?S.hydrateFallbackElement:x.hydrateFallbackElement})}}function FS(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((i,a)=>t.children?.some(s=>FS(i,s))):!1}var lx=new WeakMap,qS=({key:e,route:t,manifest:i,mapRouteProperties:a})=>{let s=i[t.id];if(Ke(s,"No route found in manifest"),!s.lazy||typeof s.lazy!="object")return;let l=s.lazy[e];if(!l)return;let c=lx.get(s);c||(c={},lx.set(s,c));let f=c[e];if(f)return f;let d=(async()=>{let p=kE(e),b=s[e]!==void 0&&e!=="hasErrorBoundary";if(p)nn(!p,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),c[e]=Promise.resolve();else if(b)nn(!1,`Route "${s.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let x=await l();x!=null&&(Object.assign(s,{[e]:x}),Object.assign(s,a(s)))}typeof s.lazy=="object"&&(s.lazy[e]=void 0,Object.values(s.lazy).every(x=>x===void 0)&&(s.lazy=void 0))})();return c[e]=d,d},cx=new WeakMap;function yT(e,t,i,a,s){let l=i[e.id];if(Ke(l,"No r
Line truncated
|
|
||||||
|
|
||||||
Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let x=Ca(),S;S=x;let T=S.pathname||"/",R=T;if(v!=="/"){let D=v.replace(/^\//,"").split("/");R="/"+T.replace(/^\//,"").split("/").slice(D.length).join("/")}let M=ns(e,{pathname:R});return nn(b||M!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),nn(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),XT(M&&M.map(D=>Object.assign({},D,{params:Object.assign({},d,D.params),pathname:Pr([v,l.encodeLocation?l.encodeLocation(D.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?v:Pr([v,l.encodeLocation?l.encodeLocation(D.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),c,i,a,s)}function FT(){let e=ZT(),t=Uc(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:a},l={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:l},"ErrorBoundary")," or"," ",E.createElement("code",{style:l},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),i?E.createElement("pre",{style:s},i):null,c)}var qT=E.createElement(FT,null),VT=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?E.createElement(Ji.Provider,{value:this.props.routeContext},E.createElement(Og.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function YT({routeContext:e,match:t,children:i}){let a=E.useContext(Js);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(Ji.Provider,{value:e},i)}function XT(e,t=[],i=null,a=null,s=null){if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let l=e,c=i?.errors;if(c!=null){let v=l.findIndex(b=>b.route.id&&c?.[b.route.id]!==void 0);Ke(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),l=l.slice(0,Math.min(l.length,v+1))}let f=!1,d=-1;if(i)for(let v=0;v<l.length;v++){let b=l[v];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(d=v),b.route.id){let{loaderData:x,errors:S}=i,T=b.route.loader&&!x.hasOwnProperty(b.route.id)&&(!S||S[b.route.id]===void 0);if(b.route.lazy||T){f=!0,d>=0?l=l.slice(0,d+1):l=[l[0]];break}}}let p=i&&a?(v,b)=>{a(v,{location:i.location,params:i.matches?.[0]?.params??{},unstable_pattern:Wc(i.matches),errorInfo:b})}:void 0;return l.reduceRight((v,b,x)=>{let S,T=!1,R=null,M=null;i&&(S=c&&b.route.id?c[b.route.id]:void 0,R=b.route.errorElement||qT,f&&(d<0&&x===0?(e1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,M=null):d===x&&(T=!0,M=b.route.hydrateFallbackElement||null)));let O=t.concat(l.slice(0,x+1)),D=()=>{let N;return S?N=R:T?N=M:b.route.Component?N=E.createElement(b.route.Component,null):b.route.element?N=b.route.element:N=v,E.createElement(YT,{match:b,routeContext:{outlet:v,matches:O,isDataRoute:i!=null},children:N})};return i&&(b.route.ErrorBoundary||b.route.errorElement||x===0)?E.createElement(VT,{location:i.location,revalidation:i.revalidation,component:R,error:S,children:D(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:p}):D()},null)}function jg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function GT(e){let t=E.useContext(Js);return Ke(t,jg(e)),t}function KT(e){let t=E.useContext(Qc);return Ke(t,jg(e)),t}function WT(e){let t=E.useContext(Ji);return Ke(t,jg(e)),t}function Ag(e){let t=WT(e),i=
Line truncated
|
|
||||||
* Pusher JavaScript Library v8.4.0
|
|
||||||
* https://pusher.com/
|
|
||||||
*
|
|
||||||
* Copyright 2020, Pusher
|
|
||||||
* Released under the MIT licence.
|
|
||||||
*/var Tx;function UR(){return Tx||(Tx=1,(function(e,t){(function(a,s){e.exports=s()})(window,function(){return(function(i){var a={};function s(l){if(a[l])return a[l].exports;var c=a[l]={i:l,l:!1,exports:{}};return i[l].call(c.exports,c,c.exports,s),c.l=!0,c.exports}return s.m=i,s.c=a,s.d=function(l,c,f){s.o(l,c)||Object.defineProperty(l,c,{enumerable:!0,get:f})},s.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},s.t=function(l,c){if(c&1&&(l=s(l)),c&8||c&4&&typeof l=="object"&&l&&l.__esModule)return l;var f=Object.create(null);if(s.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:l}),c&2&&typeof l!="string")for(var d in l)s.d(f,d,(function(p){return l[p]}).bind(null,d));return f},s.n=function(l){var c=l&&l.__esModule?function(){return l.default}:function(){return l};return s.d(c,"a",c),c},s.o=function(l,c){return Object.prototype.hasOwnProperty.call(l,c)},s.p="",s(s.s=2)})([(function(i,a,s){var l=this&&this.__extends||(function(){var R=function(M,O){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,N){D.__proto__=N}||function(D,N){for(var B in N)N.hasOwnProperty(B)&&(D[B]=N[B])},R(M,O)};return function(M,O){R(M,O);function D(){this.constructor=M}M.prototype=O===null?Object.create(O):(D.prototype=O.prototype,new D)}})();Object.defineProperty(a,"__esModule",{value:!0});var c=256,f=(function(){function R(M){M===void 0&&(M="="),this._paddingCharacter=M}return R.prototype.encodedLength=function(M){return this._paddingCharacter?(M+2)/3*4|0:(M*8+5)/6|0},R.prototype.encode=function(M){for(var O="",D=0;D<M.length-2;D+=3){var N=M[D]<<16|M[D+1]<<8|M[D+2];O+=this._encodeByte(N>>>18&63),O+=this._encodeByte(N>>>12&63),O+=this._encodeByte(N>>>6&63),O+=this._encodeByte(N>>>0&63)}var B=M.length-D;if(B>0){var N=M[D]<<16|(B===2?M[D+1]<<8:0);O+=this._encodeByte(N>>>18&63),O+=this._encodeByte(N>>>12&63),B===2?O+=this._encodeByte(N>>>6&63):O+=this._paddingCharacter||"",O+=this._paddingCharacter||""}return O},R.prototype.maxDecodedLength=function(M){return this._paddingCharacter?M/4*3|0:(M*6+7)/8|0},R.prototype.decodedLength=function(M){return this.maxDecodedLength(M.length-this._getPaddingLength(M))},R.prototype.decode=function(M){if(M.length===0)return new Uint8Array(0);for(var O=this._getPaddingLength(M),D=M.length-O,N=new Uint8Array(this.maxDecodedLength(D)),B=0,L=0,H=0,k=0,K=0,X=0,ae=0;L<D-4;L+=4)k=this._decodeChar(M.charCodeAt(L+0)),K=this._decodeChar(M.charCodeAt(L+1)),X=this._decodeChar(M.charCodeAt(L+2)),ae=this._decodeChar(M.charCodeAt(L+3)),N[B++]=k<<2|K>>>4,N[B++]=K<<4|X>>>2,N[B++]=X<<6|ae,H|=k&c,H|=K&c,H|=X&c,H|=ae&c;if(L<D-1&&(k=this._decodeChar(M.charCodeAt(L)),K=this._decodeChar(M.charCodeAt(L+1)),N[B++]=k<<2|K>>>4,H|=k&c,H|=K&c),L<D-2&&(X=this._decodeChar(M.charCodeAt(L+2)),N[B++]=K<<4|X>>>2,H|=X&c),L<D-3&&(ae=this._decodeChar(M.charCodeAt(L+3)),N[B++]=X<<6|ae,H|=ae&c),H!==0)throw new Error("Base64Coder: incorrect characters for decoding");return N},R.prototype._encodeByte=function(M){var O=M;return O+=65,O+=25-M>>>8&6,O+=51-M>>>8&-75,O+=61-M>>>8&-15,O+=62-M>>>8&3,String.fromCharCode(O)},R.prototype._decodeChar=function(M){var O=c;return O+=(42-M&M-44)>>>8&-c+M-43+62,O+=(46-M&M-48)>>>8&-c+M-47+63,O+=(47-M&M-58)>>>8&-c+M-48+52,O+=(64-M&M-91)>>>8&-c+M-65+0,O+=(96-M&M-123)>>>8&-c+M-97+26,O},R.prototype._getPaddingLength=function(M){var O=0;if(this._paddingCharacter){for(var D=M.length-1;D>=0&&M[D]===this._paddingCharacter;D--)O++;if(M.length<4||O>2)throw new Error("Base64Coder: incorrect padding")}return O},R})();a.Coder=f;var d=new f;function p(R){return d.encode(R)}a.encode=p;function v(R){return d.decode(R)}a.decode=v;var b=(function(R){l(M,R);function M(){return R!==null&&R.apply(this,arguments)||this}return M.prototype._encodeByte=function(O){var D=O;return D+=65,D+=25-O>>>8&6,D+=51-O>>>8&-75,D+=61-O>>>8&-13,D+=62-O>>>8&49,String.fromCharCode(D)},M.prototype._decodeChar=function(O){var D=c;return D+=(44-O&O-46)>>>8&-c+O-45+62,D+=(94-O&O-96)>>>8&-c+O-95+63,D+=(47-O&O-58)>>>8&-c+O-48+52,D+=(64-O&O-91)>>>8&-c+O-65+0,D+=(96-O&O-123)>>>8&-c+O-97+26,D},M})(f);a.URLSafeCoder=b;var x=new b;function S(R){return x.encode(R)}a.encodeURLSafe=S;function T(R){return x.decode(R)}a.decodeURLSafe=T,a.encodedLength=function(R){return d.encodedLength(R)},a.maxDecodedLength=function(R){return d.maxDecodedLength(R)},a.decodedLength=function(R){return d.decodedLength(R)}}),(function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var l="utf8: invalid string",c="utf8: invalid source encoding";function f(v){for(var b=new Uint8Array(d(v)),x=0,S=0;S<v.length;S++){var T=v.charCodeAt(S);T<128?b[x++]=T:T<2048?(b[x++]=192|T>>6,b[x++]=128|T&63):T<55296?(b[x++]=224|T>>12,b[x++]=128|T>>6&63,b[x++]=128|T&63):(S++,T=(T&1023)<<10,T|=v.charCodeAt(S)&1023,T+=65536,b[x++]=240|T>>18,b[x++]=128|T>>12&63,b[x++]=128|T>>6&63,b[x++]=128|T&63)}return b}a.encode=f;function d(v){for(var b=0,x=0;x<v.leLine truncated
|
|
||||||
`);return z!==-1?(this.position+=z+1,C.slice(0,z)):null}isBufferTooLong(g){return this.position===g.length&&g.length>Ta}}var eo;(function(w){w[w.CONNECTING=0]="CONNECTING",w[w.OPEN=1]="OPEN",w[w.CLOSED=3]="CLOSED"})(eo||(eo={}));var br=eo,ul=1;class oh{constructor(g,C){this.hooks=g,this.session=no(1e3)+"/"+Ra(8),this.location=lh(C),this.readyState=br.CONNECTING,this.openStream()}send(g){return this.sendRaw(JSON.stringify([g]))}ping(){this.hooks.sendHeartbeat(this)}close(g,C){this.onClose(g,C,!0)}sendRaw(g){if(this.readyState===br.OPEN)try{return He.createSocketRequest("POST",zi(to(this.location,this.session))).start(g),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(g,C,z){this.closeStream(),this.readyState=br.CLOSED,this.onclose&&this.onclose({code:g,reason:C,wasClean:z})}onChunk(g){if(g.status===200){this.readyState===br.OPEN&&this.onActivity();var C,z=g.data.slice(0,1);switch(z){case"o":C=JSON.parse(g.data.slice(1)||"{}"),this.onOpen(C);break;case"a":C=JSON.parse(g.data.slice(1)||"[]");for(var U=0;U<C.length;U++)this.onEvent(C[U]);break;case"m":C=JSON.parse(g.data.slice(1)||"null"),this.onEvent(C);break;case"h":this.hooks.onHeartbeat(this);break;case"c":C=JSON.parse(g.data.slice(1)||"[]"),this.onClose(C[0],C[1],!0);break}}}onOpen(g){this.readyState===br.CONNECTING?(g&&g.hostname&&(this.location.base=fl(this.location.base,g.hostname)),this.readyState=br.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(g){this.readyState===br.OPEN&&this.onmessage&&this.onmessage({data:g})}onActivity(){this.onactivity&&this.onactivity()}onError(g){this.onerror&&this.onerror(g)}openStream(){this.stream=He.createSocketRequest("POST",zi(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",g=>{this.onChunk(g)}),this.stream.bind("finished",g=>{this.hooks.onFinished(this,g)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(g){ve.defer(()=>{this.onError(g),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function lh(w){var g=/([^\?]*)\/*(\??.*)/.exec(w);return{base:g[1],queryString:g[2]}}function to(w,g){return w.base+"/"+g+"/xhr_send"}function zi(w){var g=w.indexOf("?")===-1?"?":"&";return w+g+"t="+ +new Date+"&n="+ul++}function fl(w,g){var C=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(w);return C[1]+g+C[3]}function no(w){return He.randomInt(w)}function Ra(w){for(var g=[],C=0;C<w;C++)g.push(no(32).toString(32));return g.join("")}var Ma=oh,uu={getReceiveURL:function(w,g){return w.base+"/"+g+"/xhr_streaming"+w.queryString},onHeartbeat:function(w){w.sendRaw("[]")},sendHeartbeat:function(w){w.sendRaw("[]")},onFinished:function(w,g){w.onClose(1006,"Connection interrupted ("+g+")",!1)}},dl=uu,fu={getReceiveURL:function(w,g){return w.base+"/"+g+"/xhr"+w.queryString},onHeartbeat:function(){},sendHeartbeat:function(w){w.sendRaw("[]")},onFinished:function(w,g){g===200?w.reconnect():w.onClose(1006,"Connection interrupted ("+g+")",!1)}},ms=fu,nr={getRequest:function(w){var g=He.getXHRAPI(),C=new g;return C.onreadystatechange=C.onprogress=function(){switch(C.readyState){case 3:C.responseText&&C.responseText.length>0&&w.onChunk(C.status,C.responseText);break;case 4:C.responseText&&C.responseText.length>0&&w.onChunk(C.status,C.responseText),w.emit("finished",C.status),w.close();break}},C},abortRequest:function(w){w.onreadystatechange=null,w.abort()}},hl=nr,gs={createStreamingSocket(w){return this.createSocket(dl,w)},createPollingSocket(w){return this.createSocket(ms,w)},createSocket(w,g){return new Ma(w,g)},createXHR(w,g){return this.createRequest(hl,w,g)},createRequest(w,g,C){return new sh(w,g,C)}},ir=gs;ir.createXDR=function(w,g){return this.createRequest(cu,w,g)};var pl=ir,io={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:c,DependenciesReceivers:v,getDefaultStrategy:cl,Transports:xe,transportConnectionInitializer:Ea,HTTPFactory:pl,TimelineTransport:Rn,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(w){window.Pusher=w;var g=()=>{this.onDocumentBody(w.ready)};window.JSON?g():b.load("json2",{},g)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:ae,jsonp:Pn}},onDocumentBody(w){document.body?w():setTimeout(()=>{this.onDocumentBody(w)},0)},createJSONPRequest(w,g){return new un(w,g)},createScriptRequest(w){return new rn(w)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var w=this.getXHRAPI();return new w},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return Ee},createWebSocket(w){var g=this.getWebSocketAPI();return new g(w)},createSocketRequest(w,g){if(this.isXHRSupported())return this.HTTPFactory.createXHR(w
Line truncated
|
|
||||||
* @kurkle/color v0.3.4
|
|
||||||
* https://github.com/kurkle/color#readme
|
|
||||||
* (c) 2024 Jukka Kurkela
|
|
||||||
* Released under the MIT License
|
|
||||||
*/function eu(e){return e+.5|0}const as=(e,t,i)=>Math.max(Math.min(e,i),t);function Rc(e){return as(eu(e*2.55),0,255)}function os(e){return as(eu(e*255),0,255)}function ga(e){return as(eu(e/2.55)/100,0,1)}function Ax(e){return as(eu(e*100),0,100)}const Vi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ng=[..."0123456789ABCDEF"],Nj=e=>ng[e&15],zj=e=>ng[(e&240)>>4]+ng[e&15],Af=e=>(e&240)>>4===(e&15),Lj=e=>Af(e.r)&&Af(e.g)&&Af(e.b)&&Af(e.a);function Bj(e){var t=e.length,i;return e[0]==="#"&&(t===4||t===5?i={r:255&Vi[e[1]]*17,g:255&Vi[e[2]]*17,b:255&Vi[e[3]]*17,a:t===5?Vi[e[4]]*17:255}:(t===7||t===9)&&(i={r:Vi[e[1]]<<4|Vi[e[2]],g:Vi[e[3]]<<4|Vi[e[4]],b:Vi[e[5]]<<4|Vi[e[6]],a:t===9?Vi[e[7]]<<4|Vi[e[8]]:255})),i}const Pj=(e,t)=>e<255?t(e):"";function $j(e){var t=Lj(e)?Nj:zj;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Pj(e.a,t):void 0}const Uj=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function v1(e,t,i){const a=t*Math.min(i,1-i),s=(l,c=(l+e/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);return[s(0),s(8),s(4)]}function Hj(e,t,i){const a=(s,l=(s+e/60)%6)=>i-i*t*Math.max(Math.min(l,4-l,1),0);return[a(5),a(3),a(1)]}function Ij(e,t,i){const a=v1(e,1,.5);let s;for(t+i>1&&(s=1/(t+i),t*=s,i*=s),s=0;s<3;s++)a[s]*=1-t-i,a[s]+=t;return a}function Fj(e,t,i,a,s){return e===s?(t-i)/a+(t<i?6:0):t===s?(i-e)/a+2:(e-t)/a+4}function $g(e){const i=e.r/255,a=e.g/255,s=e.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),f=(l+c)/2;let d,p,v;return l!==c&&(v=l-c,p=f>.5?v/(2-l-c):v/(l+c),d=Fj(i,a,s,v,l),d=d*60+.5),[d|0,p||0,f]}function Ug(e,t,i,a){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,i,a)).map(os)}function Hg(e,t,i){return Ug(v1,e,t,i)}function qj(e,t,i){return Ug(Ij,e,t,i)}function Vj(e,t,i){return Ug(Hj,e,t,i)}function y1(e){return(e%360+360)%360}function Yj(e){const t=Uj.exec(e);let i=255,a;if(!t)return;t[5]!==a&&(i=t[6]?Rc(+t[5]):os(+t[5]));const s=y1(+t[2]),l=+t[3]/100,c=+t[4]/100;return t[1]==="hwb"?a=qj(s,l,c):t[1]==="hsv"?a=Vj(s,l,c):a=Hg(s,l,c),{r:a[0],g:a[1],b:a[2],a:i}}function Xj(e,t){var i=$g(e);i[0]=y1(i[0]+t),i=Hg(i),e.r=i[0],e.g=i[1],e.b=i[2]}function Gj(e){if(!e)return;const t=$g(e),i=t[0],a=Ax(t[1]),s=Ax(t[2]);return e.a<255?`hsla(${i}, ${a}%, ${s}%, ${ga(e.a)})`:`hsl(${i}, ${a}%, ${s}%)`}const kx={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Dx={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Kj(){const e={},t=Object.keys(Dx),i=Object.keys(kx);let a,s,l,c,f;for(a=0;a<t.length;a++){for(c=f=t[a],s=0;s<i.length;s++)l=i[s]Line truncated
|
|
||||||
* Chart.js v4.5.1
|
|
||||||
* https://www.chartjs.org
|
|
||||||
* (c) 2025 Chart.js Contributors
|
|
||||||
* Released under the MIT License
|
|
||||||
*/const nA=(()=>{let e=0;return()=>e++})();function ri(e){return e==null}function Yn(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function St(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function ba(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Rr(e,t){return ba(e)?e:t}function tn(e,t){return typeof e>"u"?t:e}const iA=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,x1=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function ln(e,t,i){if(e&&typeof e.call=="function")return e.apply(i,t)}function Vn(e,t,i,a){let s,l,c;if(Yn(e))for(l=e.length,s=0;s<l;s++)t.call(i,e[s],s);else if(St(e))for(c=Object.keys(e),l=c.length,s=0;s<l;s++)t.call(i,e[c[s]],c[s])}function zx(e,t){let i,a,s,l;if(!e||!t||e.length!==t.length)return!1;for(i=0,a=e.length;i<a;++i)if(s=e[i],l=t[i],s.datasetIndex!==l.datasetIndex||s.index!==l.index)return!1;return!0}function dd(e){if(Yn(e))return e.map(dd);if(St(e)){const t=Object.create(null),i=Object.keys(e),a=i.length;let s=0;for(;s<a;++s)t[i[s]]=dd(e[i[s]]);return t}return e}function _1(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function rA(e,t,i,a){if(!_1(e))return;const s=t[e],l=i[e];St(s)&&St(l)?Ic(s,l,a):t[e]=dd(l)}function Ic(e,t,i){const a=Yn(t)?t:[t],s=a.length;if(!St(e))return e;i=i||{};const l=i.merger||rA;let c;for(let f=0;f<s;++f){if(c=a[f],!St(c))continue;const d=Object.keys(c);for(let p=0,v=d.length;p<v;++p)l(d[p],e,c,i)}return e}function Dc(e,t){return Ic(e,t,{merger:aA})}function aA(e,t,i){if(!_1(e))return;const a=t[e],s=i[e];St(a)&&St(s)?Dc(a,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=dd(s))}const Lx={"":e=>e,x:e=>e.x,y:e=>e.y};function sA(e){const t=e.split("."),i=[];let a="";for(const s of t)a+=s,a.endsWith("\\")?a=a.slice(0,-1)+".":(i.push(a),a="");return i}function oA(e){const t=sA(e);return i=>{for(const a of t){if(a==="")break;i=i&&i[a]}return i}}function Fc(e,t){return(Lx[t]||(Lx[t]=oA(t)))(e)}function Ig(e){return e.charAt(0).toUpperCase()+e.slice(1)}const hd=e=>typeof e<"u",cs=e=>typeof e=="function",Bx=(e,t)=>{if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0};function lA(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Nn=Math.PI,wn=2*Nn,pd=Number.POSITIVE_INFINITY,Ki=Nn/2,Px=Math.sign;function cA(e){const t=[],i=Math.sqrt(e);let a;for(a=1;a<i;a++)e%a===0&&(t.push(a),t.push(e/a));return i===(i|0)&&t.push(i),t.sort((s,l)=>s-l).pop(),t}function uA(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function md(e){return!uA(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Xs(e){return e*(Nn/180)}function fA(e){return e*(180/Nn)}function S1(e,t){const i=t.x-e.x,a=t.y-e.y,s=Math.sqrt(i*i+a*a);let l=Math.atan2(a,i);return l<-.5*Nn&&(l+=wn),{angle:l,distance:s}}function Dr(e){return(e%wn+wn)%wn}function gd(e,t,i,a){const s=Dr(e),l=Dr(t),c=Dr(i),f=Dr(l-s),d=Dr(c-s),p=Dr(s-l),v=Dr(s-c);return s===l||s===c||a&&l===c||f>d&&p<v}function Br(e,t,i){return Math.max(t,Math.min(i,e))}function dA(e){return Br(e,-32768,32767)}function hA(e,t,i,a=1e-6){return e>=Math.min(t,i)-a&&e<=Math.max(t,i)+a}function Fg(e,t,i){i=i||(c=>e[c]<t);let a=e.length-1,s=0,l;for(;a-s>1;)l=s+a>>1,i(l)?s=l:a=l;return{lo:s,hi:a}}const ig=(e,t,i,a)=>Fg(e,i,a?s=>{const l=e[s][t];return l<i||l===i&&e[s+1][t]===i}:s=>e[s][t]<i),pA=(e,t,i)=>Fg(e,i,a=>e[a][t]>=i);function mA(e,t,i){let a=0,s=e.length;for(;a<s&&e[a]<t;)a++;for(;s>a&&e[s-1]>i;)s--;return a>0||s<e.length?e.slice(a,s):e}const C1=["push","pop","shift","splice","unshift"];function gA(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),C1.forEach(i=>{const a="_onData"+Ig(i),s=e[i];Object.defineProperty(e,i,{configurable:!0,enumerable:!1,value(...l){const c=s.apply(this,l);return e._chartjs.listeners.forEach(f=>{typeof f[a]=="function"&&f[a](...l)}),c}})})}function $x(e,t){const i=e._chartjs;if(!i)return;const a=i.listeners,s=a.indexOf(t);s!==-1&&a.splice(s,1),!(a.length>0)&&(C1.forEach(l=>{delete e[l]}),delete e._chartjs)}function vA(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const w1=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function E1(e,t){let i=[],a=!1;return function(...s){i=s,a||(a=!0,w1.call(window,()=>{a=!1,e.apply(t,i)}))}}function yA(e,t){let i;return function(...a){return t?(clearTimeout(i),i=setTimeout(e,t,a)):e.apply(this,a),t}}const bA=e=>e==="start"?"left":e==="end"?"right":"center",Ux=(e,t,i)=>e==="start"?t:e==="end"?i:(t+i)/2,Nf=e=>e===0||e===1,Hx=(e,t,i)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*wn/i)),Ix=(e,t,i)=>Math.pow(2,-10*e)*Math.sin((e-t)*wn/i)+1,Nc={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.Line truncated
|
|
||||||
* Chart.js v4.5.1
|
|
||||||
* https://www.chartjs.org
|
|
||||||
* (c) 2025 Chart.js Contributors
|
|
||||||
* Released under the MIT License
|
|
||||||
*/class rk{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,i,a,s){const l=i.listeners[s],c=i.duration;l.forEach(f=>f({chart:t,initial:i.initial,numSteps:c,currentStep:Math.min(a-i.start,c)}))}_refresh(){this._request||(this._running=!0,this._request=w1.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let i=0;this._charts.forEach((a,s)=>{if(!a.running||!a.items.length)return;const l=a.items;let c=l.length-1,f=!1,d;for(;c>=0;--c)d=l[c],d._active?(d._total>a.duration&&(a.duration=d._total),d.tick(t),f=!0):(l[c]=l[l.length-1],l.pop());f&&(s.draw(),this._notify(s,a,t,"progress")),l.length||(a.running=!1,this._notify(s,a,t,"complete"),a.initial=!1),i+=l.length}),this._lastDate=t,i===0&&(this._running=!1)}_getAnims(t){const i=this._charts;let a=i.get(t);return a||(a={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},i.set(t,a)),a}listen(t,i,a){this._getAnims(t).listeners[i].push(a)}add(t,i){!i||!i.length||this._getAnims(t).items.push(...i)}has(t){return this._getAnims(t).items.length>0}start(t){const i=this._charts.get(t);i&&(i.running=!0,i.start=Date.now(),i.duration=i.items.reduce((a,s)=>Math.max(a,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const i=this._charts.get(t);return!(!i||!i.running||!i.items.length)}stop(t){const i=this._charts.get(t);if(!i||!i.items.length)return;const a=i.items;let s=a.length-1;for(;s>=0;--s)a[s].cancel();i.items=[],this._notify(t,i,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ma=new rk;const Zx="transparent",ak={boolean(e,t,i){return i>.5?t:e},color(e,t,i){const a=Fx(e||Zx),s=a.valid&&Fx(t||Zx);return s&&s.valid?s.mix(a,i).hexString():t},number(e,t,i){return e+(t-e)*i}};class sk{constructor(t,i,a,s){const l=i[a];s=zf([t.to,s,l,t.from]);const c=zf([t.from,l,s]);this._active=!0,this._fn=t.fn||ak[t.type||typeof c],this._easing=Nc[t.easing]||Nc.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=i,this._prop=a,this._from=c,this._to=s,this._promises=void 0}active(){return this._active}update(t,i,a){if(this._active){this._notify(!1);const s=this._target[this._prop],l=a-this._start,c=this._duration-l;this._start=a,this._duration=Math.floor(Math.max(c,t.duration)),this._total+=l,this._loop=!!t.loop,this._to=zf([t.to,i,s,t.from]),this._from=zf([t.from,s,i])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const i=t-this._start,a=this._duration,s=this._prop,l=this._from,c=this._loop,f=this._to;let d;if(this._active=l!==f&&(c||i<a),!this._active){this._target[s]=f,this._notify(!0);return}if(i<0){this._target[s]=l;return}d=i/a%2,d=c&&d>1?2-d:d,d=this._easing(Math.min(1,Math.max(0,d))),this._target[s]=this._fn(l,f,d)}wait(){const t=this._promises||(this._promises=[]);return new Promise((i,a)=>{t.push({res:i,rej:a})})}_notify(t){const i=t?"res":"rej",a=this._promises||[];for(let s=0;s<a.length;s++)a[s][i]()}}class ok{constructor(t,i){this._chart=t,this._properties=new Map,this.configure(i)}configure(t){if(!St(t))return;const i=Object.keys(gn.animation),a=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const l=t[s];if(!St(l))return;const c={};for(const f of i)c[f]=l[f];(Yn(l.properties)&&l.properties||[s]).forEach(f=>{(f===s||!a.has(f))&&a.set(f,c)})})}_animateOptions(t,i){const a=i.options,s=ck(t,a);if(!s)return[];const l=this._createAnimations(s,a);return a.$shared&&lk(t.options.$animations,a).then(()=>{t.options=a},()=>{}),l}_createAnimations(t,i){const a=this._properties,s=[],l=t.$animations||(t.$animations={}),c=Object.keys(i),f=Date.now();let d;for(d=c.length-1;d>=0;--d){const p=c[d];if(p.charAt(0)==="$")continue;if(p==="options"){s.push(...this._animateOptions(t,i));continue}const v=i[p];let b=l[p];const x=a.get(p);if(b)if(x&&b.active()){b.update(x,v,f);continue}else b.cancel();if(!x||!x.duration){t[p]=v;continue}l[p]=b=new sk(x,t,p,v),s.push(b)}return s}update(t,i){if(this._properties.size===0){Object.assign(t,i);return}const a=this._createAnimations(t,i);if(a.length)return ma.add(this._chart,a),!0}}function lk(e,t){const i=[],a=Object.keys(t);for(let s=0;s<a.length;s++){const l=e[a[s]];l&&l.active()&&i.push(l.wait())}return Promise.all(i)}function ck(e,t){if(!t)return;let i=e.options;if(!i){e.options=t;return}return i.$shared&&(e.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}function Jx(e,t){const i=e&&e.options||{},a=i.reverse,s=i.min===void 0?t:0,l=i.max===void 0?t:0;return{start:a?l:s,end:a?s:l}}function uk(e,t,i){if(i===!1)return!1;const a=Jx(e,i),s=Jx(t,i);return{top:s.end,right:a.end,bottom:s.start,left:a.start}}function fk(e){let t,i,a,s;return St(e)?(t=e.top,i=e.right,a=e.bottom,s=e.left):t=i=a=s=e,{top:t,right:i,bottom:a,left:s,disabled:e===!1}}function z1(e,t){const i=[],a=e._getSortedDatasetMetas(t);let s,l;for(s=0,l=a.length;s<l;++s)i.push(a[s].indLine truncated
|
|
||||||
* react-is.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 D_;function SN(){if(D_)return Ct;D_=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function N(L){if(typeof L=="object"&&L!==null){var H=L.$$typeof;switch(H){case t:switch(L=L.type,L){case d:case p:case a:case l:case s:case b:return L;default:switch(L=L&&L.$$typeof,L){case f:case v:case T:case S:case c:return L;default:return H}}case i:return H}}}function B(L){return N(L)===p}return Ct.AsyncMode=d,Ct.ConcurrentMode=p,Ct.ContextConsumer=f,Ct.ContextProvider=c,Ct.Element=t,Ct.ForwardRef=v,Ct.Fragment=a,Ct.Lazy=T,Ct.Memo=S,Ct.Portal=i,Ct.Profiler=l,Ct.StrictMode=s,Ct.Suspense=b,Ct.isAsyncMode=function(L){return B(L)||N(L)===d},Ct.isConcurrentMode=B,Ct.isContextConsumer=function(L){return N(L)===f},Ct.isContextProvider=function(L){return N(L)===c},Ct.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===t},Ct.isForwardRef=function(L){return N(L)===v},Ct.isFragment=function(L){return N(L)===a},Ct.isLazy=function(L){return N(L)===T},Ct.isMemo=function(L){return N(L)===S},Ct.isPortal=function(L){return N(L)===i},Ct.isProfiler=function(L){return N(L)===l},Ct.isStrictMode=function(L){return N(L)===s},Ct.isSuspense=function(L){return N(L)===b},Ct.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===a||L===p||L===l||L===s||L===b||L===x||typeof L=="object"&&L!==null&&(L.$$typeof===T||L.$$typeof===S||L.$$typeof===c||L.$$typeof===f||L.$$typeof===v||L.$$typeof===M||L.$$typeof===O||L.$$typeof===D||L.$$typeof===R)},Ct.typeOf=N,Ct}var N_;function CN(){return N_||(N_=1,Pm.exports=SN()),Pm.exports}var $m,z_;function wN(){if(z_)return $m;z_=1;var e=CN(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[e.ForwardRef]=a,l[e.Memo]=s;function c(T){return e.isMemo(T)?s:l[T.$$typeof]||t}var f=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,x=Object.prototype;function S(T,R,M){if(typeof R!="string"){if(x){var O=b(R);O&&O!==x&&S(T,O,M)}var D=d(R);p&&(D=D.concat(p(R)));for(var N=c(T),B=c(R),L=0;L<D.length;++L){var H=D[L];if(!i[H]&&!(M&&M[H])&&!(B&&B[H])&&!(N&&N[H])){var k=v(R,H);try{f(T,H,k)}catch{}}}}return T}return $m=S,$m}wN();var EN=!0;function iC(e,t,i){var a="";return i.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(a+=s+" ")}),a}var tv=function(t,i,a){var s=t.key+"-"+i.name;(a===!1||EN===!1)&&t.registered[s]===void 0&&(t.registered[s]=i.styles)},nv=function(t,i,a){tv(t,i,a);var s=t.key+"-"+i.name;if(t.inserted[i.name]===void 0){var l=i;do t.insert(i===l?"."+s:"",l,t.sheet,!0),l=l.next;while(l!==void 0)}};function TN(e){for(var t=0,i,a=0,s=e.length;s>=4;++a,s-=4)i=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,t=(i&65535)*1540483477+((i>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var RN={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},MN=/[A-Z]|^ms/g,ON=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rC=function(t){return t.charCodeAt(1)===45},L_=functioLine truncated
|
|
||||||
* @license React
|
|
||||||
* react-is.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 q_;function KN(){if(q_)return Nt;q_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function T(R){if(typeof R=="object"&&R!==null){var M=R.$$typeof;switch(M){case e:switch(R=R.type,R){case i:case s:case a:case d:case p:case x:return R;default:switch(R=R&&R.$$typeof,R){case c:case f:case b:case v:return R;case l:return R;default:return M}}case t:return M}}}return Nt.ContextConsumer=l,Nt.ContextProvider=c,Nt.Element=e,Nt.ForwardRef=f,Nt.Fragment=i,Nt.Lazy=b,Nt.Memo=v,Nt.Portal=t,Nt.Profiler=s,Nt.StrictMode=a,Nt.Suspense=d,Nt.SuspenseList=p,Nt.isContextConsumer=function(R){return T(R)===l},Nt.isContextProvider=function(R){return T(R)===c},Nt.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===e},Nt.isForwardRef=function(R){return T(R)===f},Nt.isFragment=function(R){return T(R)===i},Nt.isLazy=function(R){return T(R)===b},Nt.isMemo=function(R){return T(R)===v},Nt.isPortal=function(R){return T(R)===t},Nt.isProfiler=function(R){return T(R)===s},Nt.isStrictMode=function(R){return T(R)===a},Nt.isSuspense=function(R){return T(R)===d},Nt.isSuspenseList=function(R){return T(R)===p},Nt.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===i||R===s||R===a||R===d||R===p||typeof R=="object"&&R!==null&&(R.$$typeof===b||R.$$typeof===v||R.$$typeof===c||R.$$typeof===l||R.$$typeof===f||R.$$typeof===S||R.getModuleId!==void 0)},Nt.typeOf=T,Nt}var V_;function WN(){return V_||(V_=1,Hm.exports=KN()),Hm.exports}var lC=WN();function va(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function cC(e){if(E.isValidElement(e)||lC.isValidElementType(e)||!va(e))return e;const t={};return Object.keys(e).forEach(i=>{t[i]=cC(e[i])}),t}function Xn(e,t,i={clone:!0}){const a=i.clone?{...e}:e;return va(e)&&va(t)&&Object.keys(t).forEach(s=>{E.isValidElement(t[s])||lC.isValidElementType(t[s])?a[s]=t[s]:va(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&va(e[s])?a[s]=Xn(e[s],t[s],i):i.clone?a[s]=va(t[s])?cC(t[s]):t[s]:a[s]=t[s]}),a}const QN=e=>{const t=Object.keys(e).map(i=>({key:i,val:e[i]}))||[];return t.sort((i,a)=>i.val-a.val),t.reduce((i,a)=>({...i,[a.key]:a.val}),{})};function ZN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:a=5,...s}=e,l=QN(t),c=Object.keys(l);function f(x){return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${i})`}function d(x){return`@media (max-width:${(typeof t[x]=="number"?t[x]:x)-a/100}${i})`}function p(x,S){const T=c.indexOf(S);return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${i}) and (max-width:${(T!==-1&&typeof t[c[T]]=="number"?t[c[T]]:S)-a/100}${i})`}function v(x){return c.indexOf(x)+1<c.length?p(x,c[c.indexOf(x)+1]):f(x)}function b(x){const S=c.indexOf(x);return S===0?f(c[1]):S===c.length-1?d(c[S]):p(x,c[c.indexOf(x)+1]).replace("@media","@media not all and")}return{keys:c,values:l,up:f,down:d,between:p,only:v,not:b,unit:i,...s}}function Y_(e,t){if(!e.containerQueries)return t;const i=Object.keys(t).filter(a=>a.startsWith("@container")).sort((a,s)=>{const l=/min-width:\s*([0-9.]+)/;return+(a.match(l)?.[1]||0)-+(s.match(l)?.[1]||0)});return i.length?i.reduce((a,s)=>{const l=t[s];return delete a[s],a[s]=l,a},{...t}):t}function JN(e,t){return t==="@"||t.startsWith("@")&&(e.some(i=>t.startsWith(`@${i}`))||!!t.match(/^@\d/))}function e5(e,t){const i=t.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,a,s]=i,l=Number.isNaN(+a)?a||0:+a;return e.containerQueries(s).up(l)}function t5(e){const t=(l,c)=>l.replace("@media",c?`@container ${c}`:"@container");function i(l,c){l.up=(...f)=>t(e.breakpoints.up(...f),c),l.down=(...f)=>t(e.breakpoints.down(...f),c),l.between=(...f)=>t(e.breakpoints.between(...f),c),l.only=(...f)=>t(e.breakpoints.only(...f),c),l.not=(...f)=>{const d=t(e.breakpoints.not(...f),c);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const a={},s=l=>(i(a,l),a);return i(s),{...e,containerQueries:s}}const n5={borderRadius:4};function Lc(e,t){return t?Xn(e,t,{clone:!1}):e}const Vd={xs:0,sm:600,md:900,lg:1200,xl:1536},X_={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vd[e]}px)`},i5={containerQueries:e=>({up:t=>{let i=typeof t=="number"?t:Vd[t]||t;return typeof i=="number"&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function _a(e,t,i){const a=e.theme||{};if(Array.isArray(t)){const l=a.breakpoints||X_;returnLine truncated
|
|
||||||
|
|
||||||
const theme = ${JSON.stringify(t,null,2)};
|
|
||||||
|
|
||||||
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
||||||
theme.transitions = createTransitions(theme.transitions || {});
|
|
||||||
|
|
||||||
export default theme;`}function sS(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Yz=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let i=0;for(let a=0;a<t.length;a+=1)i+=+t[a];return i};function Xz(e){Object.assign(e,{alpha(t,i){const a=this||e;return a.colorSpace?`oklch(from ${t} l c h / ${typeof i=="string"?`calc(${i})`:i})`:a.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof i=="string"?`calc(${i})`:i})`:Cd(t,Yz(i))},lighten(t,i){const a=this||e;return a.colorSpace?`color-mix(in ${a.colorSpace}, ${t}, #fff ${sS(i)})`:th(t,i)},darken(t,i){const a=this||e;return a.colorSpace?`color-mix(in ${a.colorSpace}, ${t}, #000 ${sS(i)})`:eh(t,i)}})}function mg(e={},...t){const{breakpoints:i,mixins:a={},spacing:s,palette:l={},transitions:c={},typography:f={},shape:d,colorSpace:p,...v}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(xa(20));const b=dv({...l,colorSpace:p}),x=uv(e);let S=Xn(x,{mixins:Dz(x.breakpoints,a),palette:b,shadows:$z.slice(),typography:zz(b,f),transitions:Fz(c),zIndex:{...qz}});return S=Xn(S,v),S=t.reduce((T,R)=>Xn(T,R),S),S.unstable_sxConfig={...Zd,...v?.unstable_sxConfig},S.unstable_sx=function(R){return tl({sx:R,theme:this})},S.toRuntimeSource=xC,Xz(S),S}function gg(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Gz=[...Array(25)].map((e,t)=>{if(t===0)return"none";const i=gg(t);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function _C(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function SC(e){return e==="dark"?Gz:[]}function Kz(e){const{palette:t={mode:"light"},opacity:i,overlays:a,colorSpace:s,...l}=e,c=dv({...t,colorSpace:s});return{palette:c,opacity:{..._C(c.mode),...i},overlays:a||SC(c.mode),...l}}function Wz(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Qz=e=>[...[...Array(25)].map((t,i)=>`--${e?`${e}-`:""}overlays-${i}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Zz=e=>(t,i)=>{const a=e.rootSelector||":root",s=e.colorSchemeSelector;let l=s;if(s==="class"&&(l=".%s"),s==="data"&&(l="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(l=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return Qz(e.cssVarPrefix).forEach(f=>{c[f]=i[f],delete i[f]}),l==="media"?{[a]:i,"@media (prefers-color-scheme: dark)":{[a]:c}}:l?{[l.replace("%s",t)]:c,[`${a}, ${l.replace("%s",t)}`]:i}:{[a]:{...i,...c}}}if(l&&l!=="media")return`${a}, ${l.replace("%s",String(t))}`}else if(t){if(l==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[a]:i}};if(l)return l.replace("%s",String(t))}return a};function Jz(e,t){t.forEach(i=>{e[i]||(e[i]={})})}function le(e,t,i){!e[t]&&i&&(e[t]=i)}function jc(e){return typeof e!="string"||!e.startsWith("hsl")?e:gC(e)}function fa(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Oc(jc(e[t])))}function e3(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Mr=e=>{try{return e()}catch{}},t3=(e="mui")=>xz(e);function Ym(e,t,i,a,s){if(!i)return;i=i===!0?{}:i;const l=s==="dark"?"dark":"light";if(!a){t[s]=Kz({...i,palette:{mode:l,...i?.palette},colorSpace:e});return}const{palette:c,...f}=mg({...a,palette:{mode:l,...i?.palette},colorSpace:e});return t[s]={...i,palette:c,opacity:{..._C(l),...i?.opacity},overlays:i?.overlays||SC(l)},f}function n3(e={},...t){const{colorSchemes:i={light:!0},defaultColorScheme:a,disableCssColorScheme:s=!1,cssVarPrefix:l="mui",nativeColor:c=!1,shouldSkipGeneratingVar:f=Wz,colorSchemeSelector:d=i.light&&i.dark?"media":void 0,rootSelector:p=":root",...v}=e,b=Object.keys(i)[0],x=a||(i.light&&b!=="light"?"light":b),S=t3(l),{[x]:T,light:R,dark:M,...O}=i,D={...O};let N=T;if((x==="dark"&&!("dark"in i)||x==="light"&&!("light"in i))&&(N=!0),!N)throw new Error(xa(21,x));let B;c&&(B="oklch");const L=Ym(B,D,N,v,x);R&&!D.light&&Ym(B,D,R,void 0,"light"),M&&!D.dark&&Ym(B,D,M,void 0,"dark");let H={defaultColorScheme:x,...L,cssVarPrefix:l,colorSchemeSelector:d,rootSelector:p,getCssVar:S,colorSchemes:D,font:{...kz(L.typography),...L.font},spacing:e3(v.spacing)};Object.keys(H.colorSchemes).forEach(se=>{const A=H.colorSchemes[se].palette,ie=G=>{const P=G.split("-"),Q=P[1],ce=P[2];return S(G,A[Q][ce])};A.mode==="light"&&(le(A.common,"background","#fff"),le(A.common,"onBackground","#000")),A.mode==="dark"&&(le(A.common,"background","#000"),le(A.common,"onBackground","#fff"));function W(G,P,Q){if(B){let ce;return G===$s&&(ce=`transparent ${((1-Q)*100).toFixed(0)}%`),G===Ot&&(ce=`#000 ${(Q*100).toFixed(0)}%`),G===jt&&(ce=`#fff ${(Q*100).toFixed(0)}%`),`color-mix(in ${B}, ${P}, ${cLine truncated
|
|
||||||
0% {
|
|
||||||
transform: scale(0);
|
|
||||||
opacity: 0.1;
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
transform: scale(1);
|
|
||||||
opacity: 0.3;
|
|
||||||
}
|
|
||||||
`,j3=av`
|
|
||||||
0% {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
`,A3=av`
|
|
||||||
0% {
|
|
||||||
transform: scale(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
50% {
|
|
||||||
transform: scale(0.92);
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
transform: scale(1);
|
|
||||||
}
|
|
||||||
`,k3=tt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),D3=tt(R3,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
||||||
opacity: 0;
|
|
||||||
position: absolute;
|
|
||||||
|
|
||||||
&.${Xi.rippleVisible} {
|
|
||||||
opacity: 0.3;
|
|
||||||
transform: scale(1);
|
|
||||||
animation-name: ${O3};
|
|
||||||
animation-duration: ${xg}ms;
|
|
||||||
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
||||||
}
|
|
||||||
|
|
||||||
&.${Xi.ripplePulsate} {
|
|
||||||
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
& .${Xi.child} {
|
|
||||||
opacity: 1;
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
border-radius: 50%;
|
|
||||||
background-color: currentColor;
|
|
||||||
}
|
|
||||||
|
|
||||||
& .${Xi.childLeaving} {
|
|
||||||
opacity: 0;
|
|
||||||
animation-name: ${j3};
|
|
||||||
animation-duration: ${xg}ms;
|
|
||||||
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
||||||
}
|
|
||||||
|
|
||||||
& .${Xi.childPulsate} {
|
|
||||||
position: absolute;
|
|
||||||
/* @noflip */
|
|
||||||
left: 0px;
|
|
||||||
top: 0;
|
|
||||||
animation-name: ${A3};
|
|
||||||
animation-duration: 2500ms;
|
|
||||||
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-delay: 200ms;
|
|
||||||
}
|
|
||||||
`,N3=E.forwardRef(function(t,i){const a=Kn({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:c,...f}=a,[d,p]=E.useState([]),v=E.useRef(0),b=E.useRef(null);E.useEffect(()=>{b.current&&(b.current(),b.current=null)},[d]);const x=E.useRef(!1),S=MC(),T=E.useRef(null),R=E.useRef(null),M=E.useCallback(B=>{const{pulsate:L,rippleX:H,rippleY:k,rippleSize:K,cb:X}=B;p(ae=>[...ae,y.jsx(D3,{classes:{ripple:_t(l.ripple,Xi.ripple),rippleVisible:_t(l.rippleVisible,Xi.rippleVisible),ripplePulsate:_t(l.ripplePulsate,Xi.ripplePulsate),child:_t(l.child,Xi.child),childLeaving:_t(l.childLeaving,Xi.childLeaving),childPulsate:_t(l.childPulsate,Xi.childPulsate)},timeout:xg,pulsate:L,rippleX:H,rippleY:k,rippleSize:K},v.current)]),v.current+=1,b.current=X},[l]),O=E.useCallback((B={},L={},H=()=>{})=>{const{pulsate:k=!1,center:K=s||L.pulsate,fakeElement:X=!1}=L;if(B?.type==="mousedown"&&x.current){x.current=!1;return}B?.type==="touchstart"&&(x.current=!0);const ae=X?null:R.current,se=ae?ae.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,ie,W;if(K||B===void 0||B.clientX===0&&B.clientY===0||!B.clientX&&!B.touches)A=Math.round(se.width/2),ie=Math.round(se.height/2);else{const{clientX:G,clientY:P}=B.touches&&B.touches.length>0?B.touches[0]:B;A=Math.round(G-se.left),ie=Math.round(P-se.top)}if(K)W=Math.sqrt((2*se.width**2+se.height**2)/3),W%2===0&&(W+=1);else{const G=Math.max(Math.abs((ae?ae.clientWidth:0)-A),A)*2+2,P=Math.max(Math.abs((ae?ae.clientHeight:0)-ie),ie)*2+2;W=Math.sqrt(G**2+P**2)}B?.touches?T.current===null&&(T.current=()=>{M({pulsate:k,rippleX:A,rippleY:ie,rippleSize:W,cb:H})},S.start(M3,()=>{T.current&&(T.current(),T.current=null)})):M({pulsate:k,rippleX:A,rippleY:ie,rippleSize:W,cb:H})},[s,M,S]),D=E.useCallback(()=>{O({},{pulsate:!0})},[O]),N=E.useCallback((B,L)=>{if(S.clear(),B?.type==="touchend"&&T.current){T.current(),T.current=null,S.start(0,()=>{N(B,L)});return}T.current=null,p(H=>H.length>0?H.slice(1):H),b.current=L},[S]);return E.useImperativeHandle(i,()=>({pulsate:D,start:O,stop:N}),[D,O,N]),y.jsx(k3,{className:_t(Xi.root,l.root,c),ref:R,...f,children:y.jsx(gv,{component:null,exit:!0,children:d})})});function z3(e){return zn("MuiButtonBase",e)}const L3=vn("MuiButtonBase",["root","disabled","focusVisible"]),B3=e=>{const{disabled:t,focusVisible:i,focusVisibleClassName:a,classes:s}=e,c=Ln({root:["root",t&&"disabled",i&&"focusVisible"]},z3,s);return i&&a&&(c.root+=` ${a}`),c},P3=tt("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${L3.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),$3=E.forwardRef(function(t,i){const a=Kn({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:l=!1,children:c,className:f,component:d="button",disabled:p=!1,disableRipple:v=!1,disableTouchRipple:b=!1,focusRipple:x=!1,focusVisibleClassName:S,LinkComponent:T="a",onBlur:R,onClick:M,onContextMenu:O,onDragLeave:D,onFocus:N,onFocusVisible:B,onKeyDown:L,onKeyUp:H,onMouseDown:k,onMouseLeave:K,onMouseUp:X,onTouchEnd:ae,onTouchMove:se,onTouchStart:A,tabIndex:ie=0,TouchRippleProps:W,touchRippleRef:G,type:P,...Q}=a,ce=E.useRef(null),fe=E3(),Se=ai(fe.ref,G),[$,Z]=E.useState(!1);p&&$&&Z(!1),E.useImperativeHandle(s,()=>({focusVisible:()=>{Z(!0),ce.current.focus()}}),[]);const pe=fe.shouldMount&&!v&&!p;E.useEffect(()=>{$&&x&&!v&&fe.pulsate()},[v,x,$,fe]);const ge=da(fe,"start",k,b),ve=da(fe,"stop",O,b),be=da(fe,"stop",D,b),ze=da(fe,"stop",X,b),nt=da(fe,"stop",De=>{$&&De.preventDefault(),K&&K(De)},b),Be=da(fe,"start",A,b),Ue=da(fe,"stop",ae,b),We=da(fe,"stop",se,b),Pe=da(fe,"stop",De=>{pS(De.target)||Z(!1),R&&R(De)},!1),Xt=Qs(De=>{ce.current||(ce.current=De.currentTarget),pS(De.target)&&(Z(!0),B&&B(De)),N&&N(De)}),$e=()=>{const De=ce.current;return d&&d!=="button"&&!(De.tagName==="A"&&De.href)},ct=Qs(De=>{x&&!De.repeat&&$&&De.key===" "&&fe.stop(De,()=>{fe.start(De)}),De.target===De.currentTarget&&$e()&&De.key===" "&&De.preventDefault(),L&&L(De),De.target===De.currentTarget&&$e()&&De.key==="Enter"&&!p&&(De.preventDefault(),M&&M(De))}),Pt=Qs(De=>{x&&De.key===" "&&$&&!De.defaultPrevented&&fe.stop(De,()=>{fe.pulsate(De)}),H&&H(De),M&&De.target===De.currentTarget&&$e()&&De.key===" "&&!De.defaultPrevented&&M(De)});let yn=d;yn==="button"&&(Q.href||Q.to)&&(yn=T);const $t={};if(yn==="button"){const De=!!Q.formAction;$t.type=P===void 0&&!De?"button":P,$t.disabled=p}else!Q.href&&!Q.to&&($t.role="button"),p&&($t["aria-disabled"]=p);const En=ai(i,ce),Tn={...a,centerRipple:l,component:d,disabled:p,disableRipple:v,disableTouchRipple:b,focusRipple:x,tabIndex:ie,focusVisible:$},Ut=B3(Tn);return
Line truncated
|
|
||||||
`&&(B.value+=" ");const k=H.boxSizing,K=Vf(H.paddingBottom)+Vf(H.paddingTop),X=Vf(H.borderBottomWidth)+Vf(H.borderTopWidth),ae=B.scrollHeight;B.value="x";const se=B.scrollHeight;let A=ae;l&&(A=Math.max(Number(l)*se,A)),s&&(A=Math.min(Number(s)*se,A)),A=Math.max(A,se);const ie=A+(k==="border-box"?K+X:0),W=Math.abs(A-ae)<=1;return{outerHeightStyle:ie,overflowing:W}},[s,l,t.placeholder]),R=Qs(()=>{const N=v.current,B=T();if(!N||!B||mS(B))return!1;const L=B.outerHeightStyle;return x.current!=null&&x.current!==L}),M=E.useCallback(()=>{const N=v.current,B=T();if(!N||!B||mS(B))return;const L=B.outerHeightStyle;x.current!==L&&(x.current=L,N.style.height=`${L}px`),N.style.overflow=B.overflowing?"hidden":""},[T]),O=E.useRef(-1);us(()=>{const N=wC(M),B=v?.current;if(!B)return;const L=Sa(B);L.addEventListener("resize",N);let H;return typeof ResizeObserver<"u"&&(H=new ResizeObserver(()=>{R()&&(H.unobserve(B),cancelAnimationFrame(O.current),M(),O.current=requestAnimationFrame(()=>{H.observe(B)}))}),H.observe(B)),()=>{N.clear(),cancelAnimationFrame(O.current),L.removeEventListener("resize",N),H&&H.disconnect()}},[T,M,R]),us(()=>{M()});const D=N=>{p||M();const B=N.target,L=B.value.length,H=B.value.endsWith(`
|
|
||||||
`),k=B.selectionStart===L;H&&k&&B.setSelectionRange(L,L),a&&a(N)};return y.jsxs(E.Fragment,{children:[y.jsx("textarea",{value:f,onChange:D,ref:b,rows:l,style:c,...d}),y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:S,tabIndex:-1,style:{...V3.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function bv({props:e,states:t,muiFormControl:i}){return t.reduce((a,s)=>(a[s]=e[s],i&&typeof e[s]>"u"&&(a[s]=i[s]),a),{})}const xv=E.createContext(void 0);function _v(){return E.useContext(xv)}function gS(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Md(e,t=!1){return e&&(gS(e.value)&&e.value!==""||t&&gS(e.defaultValue)&&e.defaultValue!=="")}function G3(e){return e.startAdornment}function K3(e){return zn("MuiInputBase",e)}const nl=vn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var vS;const nh=(e,t)=>{const{ownerState:i}=e;return[t.root,i.formControl&&t.formControl,i.startAdornment&&t.adornedStart,i.endAdornment&&t.adornedEnd,i.error&&t.error,i.size==="small"&&t.sizeSmall,i.multiline&&t.multiline,i.color&&t[`color${Gn(i.color)}`],i.fullWidth&&t.fullWidth,i.hiddenLabel&&t.hiddenLabel]},ih=(e,t)=>{const{ownerState:i}=e;return[t.input,i.size==="small"&&t.inputSizeSmall,i.multiline&&t.inputMultiline,i.type==="search"&&t.inputTypeSearch,i.startAdornment&&t.inputAdornedStart,i.endAdornment&&t.inputAdornedEnd,i.hiddenLabel&&t.inputHiddenLabel]},W3=e=>{const{classes:t,color:i,disabled:a,error:s,endAdornment:l,focused:c,formControl:f,fullWidth:d,hiddenLabel:p,multiline:v,readOnly:b,size:x,startAdornment:S,type:T}=e,R={root:["root",`color${Gn(i)}`,a&&"disabled",s&&"error",d&&"fullWidth",c&&"focused",f&&"formControl",x&&x!=="medium"&&`size${Gn(x)}`,v&&"multiline",S&&"adornedStart",l&&"adornedEnd",p&&"hiddenLabel",b&&"readOnly"],input:["input",a&&"disabled",T==="search"&&"inputTypeSearch",v&&"inputMultiline",x==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",S&&"inputAdornedStart",l&&"inputAdornedEnd",b&&"readOnly"]};return Ln(R,K3,t)},rh=tt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nh})(Di(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nl.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:i})=>t.multiline&&i==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),ah=tt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ih})(Di(({theme:e})=>{const t=e.palette.mode==="light",i={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},a={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nl.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${nl.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:l})=>!l.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:l})=>l.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),yS=a3({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Sv=E.forwardRef(function(t,i){const a=Kn({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:l,autoFocus:c,className:f,color:d,components:p={},componentsProps:v={},defaultValue:b,disabled:x,disableInjectingGlobalStyles:S,endAdornment:T,error:R,fullWidth:M=!1,id:O,inputComponent:D="input",inputProps:N={},inputRef:B,margin:L,maxRows:H,minRows:k,multiline:K=!1,name:X,onBlur:ae,onChange:se,onClick:A,onFocus:ie,onKeyDown:W,onKeyUp:G,placeholder:P,readOnly:Q,renderSuffix:ce,rows
Line truncated
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
||||||
<svg width="800px" height="800px" viewBox="0 -8 72 72" id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1{fill:#010002;}</style></defs><title>tools</title><path class="cls-1" d="M13.32,44.31a4.5,4.5,0,0,0,6.36,6.36L34.44,35.91l-6.36-6.36Z"/><polygon class="cls-1" points="50.2 16.96 56.63 13.63 60 7.13 56.86 3.99 50.36 7.36 47.03 13.78 39.21 21.61 42.38 24.79 50.2 16.96"/><path class="cls-1" d="M51.61,34,51,34a8.9,8.9,0,0,0-3.11.58L29.45,16.09A8.9,8.9,0,0,0,30,13l-.06-.6A8.9,8.9,0,0,0,17.19,4.89l6,6a3,3,0,0,1,.68,1.08A3,3,0,0,1,21,16a2.92,2.92,0,0,1-1-.21,3.15,3.15,0,0,1-1.08-.67l-6-6a8.9,8.9,0,0,0,7.49,12.78L21,22a8.9,8.9,0,0,0,3.11-.58L42.6,39.84A8.9,8.9,0,0,0,42,43l.06.6A9,9,0,0,0,51,51.94a8.72,8.72,0,0,0,3.85-.9l-6-6A3.08,3.08,0,0,1,48.21,44,3,3,0,0,1,51,40a2.92,2.92,0,0,1,1,.21,2.72,2.72,0,0,1,1.08.67l6,6A8.9,8.9,0,0,0,51.61,34Z"/></svg>
|
|
||||||
|
Before Width: | Height: | Size: 1009 B |
@@ -1,14 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<link rel="icon" type="image/svg+xml" href="logoIcone.png" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<title>Comité des fêtes de Beaupont</title>
|
|
||||||
<script type="module" crossorigin src="/assets/index-cYGdr2ka.js"></script>
|
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-DYjA7P7p.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="root"></div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Regular → Executable
File mode changed.
Reference in new issue
Block a user