├── public ├── favicon.ico ├── css │ └── app.css ├── robots.txt ├── mix-manifest.json ├── js │ ├── app.js.LICENSE.txt │ └── app.js ├── .htaccess ├── web.config └── index.php ├── resources ├── sass │ └── app.scss ├── js │ ├── app.js │ └── bootstrap.js ├── lang │ └── en │ │ ├── pagination.php │ │ ├── auth.php │ │ ├── passwords.php │ │ └── validation.php └── views │ └── welcome.blade.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── database ├── .gitignore ├── seeds │ └── DatabaseSeeder.php ├── migrations │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2020_01_26_201358_create_websockets_statistics_entries_table.php │ └── 2014_10_12_000000_create_users_table.php └── factories │ └── UserFactory.php ├── .gitattributes ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── .gitignore ├── .styleci.yml ├── .editorconfig ├── app ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ ├── Authenticate.php │ │ ├── VerifyCsrfToken.php │ │ └── RedirectIfAuthenticated.php │ ├── Controllers │ │ ├── Controller.php │ │ └── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── ResetPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── ConfirmPasswordController.php │ │ │ ├── VerificationController.php │ │ │ └── RegisterController.php │ └── Kernel.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── User.php ├── Console │ └── Kernel.php └── Exceptions │ └── Handler.php ├── routes ├── web.php ├── channels.php ├── api.php └── console.php ├── webpack.mix.js ├── server.php ├── package.json ├── .env.example ├── config ├── services.php ├── view.php ├── hashing.php ├── broadcasting.php ├── filesystems.php ├── queue.php ├── logging.php ├── cache.php ├── auth.php ├── websockets.php ├── mail.php ├── database.php ├── session.php └── app.php ├── phpunit.xml ├── composer.json ├── artisan └── README.md /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/css/app.css: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | // 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | require('./bootstrap'); 2 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | *.sqlite-journal 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/app.js": "/js/app.js", 3 | "/css/app.css": "/css/app.css" 4 | } 5 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/Unit/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /public/js/app.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Lodash 4 | * Copyright OpenJS Foundation and other contributors 5 | * Released under MIT license 6 | * Based on Underscore.js 1.8.3 7 | * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 8 | */ 9 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 17 | return $request->user(); 18 | }); 19 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 18 | })->describe('Display an inspiring quote'); 19 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "mix", 6 | "watch": "mix watch", 7 | "watch-poll": "mix watch -- --watch-options-poll=1000", 8 | "hot": "mix watch --hot", 9 | "prod": "npm run production", 10 | "production": "mix --production" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.21", 14 | "laravel-mix": "^6.0.6", 15 | "lodash": "^4.17.19", 16 | "postcss": "^8.1.14", 17 | "resolve-url-loader": "^4.0.0", 18 | "sass": "^1.35.2", 19 | "sass-loader": "^12.1.0" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Handle Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 22 | return redirect(RouteServiceProvider::HOME); 23 | } 24 | 25 | return $next($request); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | 'Your password has been reset!', 17 | 'sent' => 'We have e-mailed your password reset link!', 18 | 'throttled' => 'Please wait before retrying.', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that e-mail address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | parent::boot(); 31 | 32 | // 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | 'datetime', 38 | ]; 39 | } 40 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | 9 | DB_CONNECTION=mysql 10 | DB_HOST=127.0.0.1 11 | DB_PORT=3306 12 | DB_DATABASE=laravel 13 | DB_USERNAME=root 14 | DB_PASSWORD= 15 | 16 | BROADCAST_DRIVER=log 17 | CACHE_DRIVER=file 18 | QUEUE_CONNECTION=sync 19 | SESSION_DRIVER=file 20 | SESSION_LIFETIME=120 21 | 22 | REDIS_HOST=127.0.0.1 23 | REDIS_PASSWORD=null 24 | REDIS_PORT=6379 25 | 26 | MAIL_DRIVER=smtp 27 | MAIL_HOST=smtp.mailtrap.io 28 | MAIL_PORT=2525 29 | MAIL_USERNAME=null 30 | MAIL_PASSWORD=null 31 | MAIL_ENCRYPTION=null 32 | MAIL_FROM_ADDRESS=null 33 | MAIL_FROM_NAME="${APP_NAME}" 34 | 35 | AWS_ACCESS_KEY_ID= 36 | AWS_SECRET_ACCESS_KEY= 37 | AWS_DEFAULT_REGION=us-east-1 38 | AWS_BUCKET= 39 | 40 | PUSHER_APP_ID= 41 | PUSHER_APP_KEY= 42 | PUSHER_APP_SECRET= 43 | PUSHER_APP_CLUSTER=mt1 44 | 45 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 46 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 47 | -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 18 | $table->text('connection'); 19 | $table->text('queue'); 20 | $table->longText('payload'); 21 | $table->longText('exception'); 22 | $table->timestamp('failed_at')->useCurrent(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('failed_jobs'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | window._ = require('lodash'); 2 | 3 | /** 4 | * We'll load the axios HTTP library which allows us to easily issue requests 5 | * to our Laravel back-end. This library automatically handles sending the 6 | * CSRF token as a header based on the value of the "XSRF" token cookie. 7 | */ 8 | 9 | window.axios = require('axios'); 10 | 11 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 12 | 13 | /** 14 | * Echo exposes an expressive API for subscribing to channels and listening 15 | * for events that are broadcast by Laravel. Echo and event broadcasting 16 | * allows your team to easily build robust real-time web applications. 17 | */ 18 | 19 | // import Echo from 'laravel-echo'; 20 | 21 | // window.Pusher = require('pusher-js'); 22 | 23 | // window.Echo = new Echo({ 24 | // broadcaster: 'pusher', 25 | // key: process.env.MIX_PUSHER_APP_KEY, 26 | // cluster: process.env.MIX_PUSHER_APP_CLUSTER, 27 | // forceTLS: true 28 | // }); 29 | -------------------------------------------------------------------------------- /database/migrations/2020_01_26_201358_create_websockets_statistics_entries_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 16 | $table->string('app_id'); 17 | $table->integer('peak_connection_count'); 18 | $table->integer('websocket_message_count'); 19 | $table->integer('api_message_count'); 20 | $table->nullableTimestamps(); 21 | }); 22 | } 23 | /** 24 | * Reverse the migrations. 25 | */ 26 | public function down() 27 | { 28 | Schema::dropIfExists('websockets_statistics_entries'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | define(User::class, function (Faker $faker) { 21 | return [ 22 | 'name' => $faker->name, 23 | 'email' => $faker->unique()->safeEmail, 24 | 'email_verified_at' => now(), 25 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 26 | 'remember_token' => Str::random(10), 27 | ]; 28 | }); 29 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->timestamp('email_verified_at')->nullable(); 21 | $table->string('password'); 22 | $table->rememberToken(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('users'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire') 28 | // ->hourly(); 29 | } 30 | 31 | /** 32 | * Register the commands for the application. 33 | * 34 | * @return void 35 | */ 36 | protected function commands() 37 | { 38 | $this->load(__DIR__.'/Commands'); 39 | 40 | require base_path('routes/console.php'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'postmark' => [ 24 | 'token' => env('POSTMARK_TOKEN'), 25 | ], 26 | 27 | 'ses' => [ 28 | 'key' => env('AWS_ACCESS_KEY_ID'), 29 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 30 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 31 | ], 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ConfirmPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/VerificationController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | $this->middleware('signed')->only('verify'); 40 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | ./tests/Unit 16 | 17 | 18 | 19 | ./tests/Feature 20 | 21 | 22 | 23 | 24 | ./app 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'useTLS' => true, 41 | ], 42 | ], 43 | 44 | 'redis' => [ 45 | 'driver' => 'redis', 46 | 'connection' => 'default', 47 | ], 48 | 49 | 'log' => [ 50 | 'driver' => 'log', 51 | ], 52 | 53 | 'null' => [ 54 | 'driver' => 'null', 55 | ], 56 | 57 | ], 58 | 59 | ]; 60 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "type": "project", 4 | "description": "The Laravel Framework.", 5 | "keywords": ["framework", "laravel"], 6 | "license": "MIT", 7 | "require": { 8 | "php": "^7.3|^8.0", 9 | "beyondcode/laravel-websockets": "^1.12", 10 | "fideloper/proxy": "^4.4", 11 | "fruitcake/laravel-cors": "^2.0", 12 | "laravel/framework": "^8.40", 13 | "laravel/tinker": "^2.5" 14 | }, 15 | "require-dev": { 16 | "facade/ignition": "^2.5", 17 | "fakerphp/faker": "^1.9.1", 18 | "laravel/sail": "^1.0.1", 19 | "mockery/mockery": "^1.4.2", 20 | "nunomaduro/collision": "^5.0", 21 | "phpunit/phpunit": "^9.3.3" 22 | }, 23 | "autoload": { 24 | "psr-4": { 25 | "App\\": "app/", 26 | "Database\\Factories\\": "database/factories/", 27 | "Database\\Seeders\\": "database/seeders/" 28 | } 29 | }, 30 | "autoload-dev": { 31 | "psr-4": { 32 | "Tests\\": "tests/" 33 | } 34 | }, 35 | "scripts": { 36 | "post-autoload-dump": [ 37 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 38 | "@php artisan package:discover --ansi" 39 | ], 40 | "post-root-package-install": [ 41 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 42 | ], 43 | "post-create-project-cmd": [ 44 | "@php artisan key:generate --ansi" 45 | ] 46 | }, 47 | "extra": { 48 | "laravel": { 49 | "dont-discover": [] 50 | } 51 | }, 52 | "config": { 53 | "optimize-autoloader": true, 54 | "preferred-install": "dist", 55 | "sort-packages": true 56 | }, 57 | "minimum-stability": "dev", 58 | "prefer-stable": true 59 | } 60 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 46 | 47 | $this->mapWebRoutes(); 48 | 49 | // 50 | } 51 | 52 | /** 53 | * Define the "web" routes for the application. 54 | * 55 | * These routes all receive session state, CSRF protection, etc. 56 | * 57 | * @return void 58 | */ 59 | protected function mapWebRoutes() 60 | { 61 | Route::middleware('web') 62 | ->namespace($this->namespace) 63 | ->group(base_path('routes/web.php')); 64 | } 65 | 66 | /** 67 | * Define the "api" routes for the application. 68 | * 69 | * These routes are typically stateless. 70 | * 71 | * @return void 72 | */ 73 | protected function mapApiRoutes() 74 | { 75 | Route::prefix('api') 76 | ->middleware('api') 77 | ->namespace($this->namespace) 78 | ->group(base_path('routes/api.php')); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | define('LARAVEL_START', microtime(true)); 11 | 12 | /* 13 | |-------------------------------------------------------------------------- 14 | | Register The Auto Loader 15 | |-------------------------------------------------------------------------- 16 | | 17 | | Composer provides a convenient, automatically generated class loader for 18 | | our application. We just need to utilize it! We'll simply require it 19 | | into the script here so that we don't have to worry about manual 20 | | loading any of our classes later on. It feels great to relax. 21 | | 22 | */ 23 | 24 | require __DIR__.'/../vendor/autoload.php'; 25 | 26 | /* 27 | |-------------------------------------------------------------------------- 28 | | Turn On The Lights 29 | |-------------------------------------------------------------------------- 30 | | 31 | | We need to illuminate PHP development, so let us turn on the lights. 32 | | This bootstraps the framework and gets it ready for use, then it 33 | | will load up this application so that we can run it and send 34 | | the responses back to the browser and delight our users. 35 | | 36 | */ 37 | 38 | $app = require_once __DIR__.'/../bootstrap/app.php'; 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Run The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once we have the application, we can handle the incoming request 46 | | through the kernel, and send the associated response back to 47 | | the client's browser allowing them to enjoy the creative 48 | | and wonderful application we have prepared for them. 49 | | 50 | */ 51 | 52 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); 53 | 54 | $response = $kernel->handle( 55 | $request = Illuminate\Http\Request::capture() 56 | ); 57 | 58 | $response->send(); 59 | 60 | $kernel->terminate($request, $response); 61 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 42 | } 43 | 44 | /** 45 | * Get a validator for an incoming registration request. 46 | * 47 | * @param array $data 48 | * @return \Illuminate\Contracts\Validation\Validator 49 | */ 50 | protected function validator(array $data) 51 | { 52 | return Validator::make($data, [ 53 | 'name' => ['required', 'string', 'max:255'], 54 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 55 | 'password' => ['required', 'string', 'min:8', 'confirmed'], 56 | ]); 57 | } 58 | 59 | /** 60 | * Create a new user instance after a valid registration. 61 | * 62 | * @param array $data 63 | * @return \App\User 64 | */ 65 | protected function create(array $data) 66 | { 67 | return User::create([ 68 | 'name' => $data['name'], 69 | 'email' => $data['email'], 70 | 'password' => Hash::make($data['password']), 71 | ]); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Cloud Filesystem Disk 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Many applications store files both locally and in the cloud. For this 24 | | reason, you may specify a default "cloud" driver here. This driver 25 | | will be bound as the Cloud disk implementation in the container. 26 | | 27 | */ 28 | 29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Filesystem Disks 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may configure as many filesystem "disks" as you wish, and you 37 | | may even configure multiple disks of the same driver. Defaults have 38 | | been setup for each driver as an example of the required options. 39 | | 40 | | Supported Drivers: "local", "ftp", "sftp", "s3" 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path('app'), 49 | ], 50 | 51 | 'public' => [ 52 | 'driver' => 'local', 53 | 'root' => storage_path('app/public'), 54 | 'url' => env('APP_URL').'/storage', 55 | 'visibility' => 'public', 56 | ], 57 | 58 | 's3' => [ 59 | 'driver' => 's3', 60 | 'key' => env('AWS_ACCESS_KEY_ID'), 61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 62 | 'region' => env('AWS_DEFAULT_REGION'), 63 | 'bucket' => env('AWS_BUCKET'), 64 | 'url' => env('AWS_URL'), 65 | ], 66 | 67 | ], 68 | 69 | ]; 70 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | 'block_for' => 0, 50 | ], 51 | 52 | 'sqs' => [ 53 | 'driver' => 'sqs', 54 | 'key' => env('AWS_ACCESS_KEY_ID'), 55 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 56 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 57 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), 58 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 59 | ], 60 | 61 | 'redis' => [ 62 | 'driver' => 'redis', 63 | 'connection' => 'default', 64 | 'queue' => env('REDIS_QUEUE', 'default'), 65 | 'retry_after' => 90, 66 | 'block_for' => null, 67 | ], 68 | 69 | ], 70 | 71 | /* 72 | |-------------------------------------------------------------------------- 73 | | Failed Queue Jobs 74 | |-------------------------------------------------------------------------- 75 | | 76 | | These options configure the behavior of failed queue job logging so you 77 | | can control which database and table are used to store the jobs that 78 | | have failed. You may change them to any database / table you wish. 79 | | 80 | */ 81 | 82 | 'failed' => [ 83 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database'), 84 | 'database' => env('DB_CONNECTION', 'mysql'), 85 | 'table' => 'failed_jobs', 86 | ], 87 | 88 | ]; 89 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 31 | \App\Http\Middleware\EncryptCookies::class, 32 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 33 | \Illuminate\Session\Middleware\StartSession::class, 34 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 35 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 36 | \App\Http\Middleware\VerifyCsrfToken::class, 37 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 38 | ], 39 | 40 | 'api' => [ 41 | 'throttle:60,1', 42 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 43 | ], 44 | ]; 45 | 46 | /** 47 | * The application's route middleware. 48 | * 49 | * These middleware may be assigned to groups or used individually. 50 | * 51 | * @var array 52 | */ 53 | protected $routeMiddleware = [ 54 | 'auth' => \App\Http\Middleware\Authenticate::class, 55 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 56 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 57 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 58 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 59 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 60 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 61 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 62 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 63 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 64 | ]; 65 | 66 | /** 67 | * The priority-sorted list of middleware. 68 | * 69 | * This forces non-global middleware to always be in the given order. 70 | * 71 | * @var array 72 | */ 73 | protected $middlewarePriority = [ 74 | \Illuminate\Session\Middleware\StartSession::class, 75 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 76 | \App\Http\Middleware\Authenticate::class, 77 | \Illuminate\Routing\Middleware\ThrottleRequests::class, 78 | \Illuminate\Session\Middleware\AuthenticateSession::class, 79 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 80 | \Illuminate\Auth\Middleware\Authorize::class, 81 | ]; 82 | } 83 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Log Channels 25 | |-------------------------------------------------------------------------- 26 | | 27 | | Here you may configure the log channels for your application. Out of 28 | | the box, Laravel uses the Monolog PHP logging library. This gives 29 | | you a variety of powerful log handlers / formatters to utilize. 30 | | 31 | | Available Drivers: "single", "daily", "slack", "syslog", 32 | | "errorlog", "monolog", 33 | | "custom", "stack" 34 | | 35 | */ 36 | 37 | 'channels' => [ 38 | 'stack' => [ 39 | 'driver' => 'stack', 40 | 'channels' => ['single'], 41 | 'ignore_exceptions' => false, 42 | ], 43 | 44 | 'single' => [ 45 | 'driver' => 'single', 46 | 'path' => storage_path('logs/laravel.log'), 47 | 'level' => 'debug', 48 | ], 49 | 50 | 'daily' => [ 51 | 'driver' => 'daily', 52 | 'path' => storage_path('logs/laravel.log'), 53 | 'level' => 'debug', 54 | 'days' => 14, 55 | ], 56 | 57 | 'slack' => [ 58 | 'driver' => 'slack', 59 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 60 | 'username' => 'Laravel Log', 61 | 'emoji' => ':boom:', 62 | 'level' => 'critical', 63 | ], 64 | 65 | 'papertrail' => [ 66 | 'driver' => 'monolog', 67 | 'level' => 'debug', 68 | 'handler' => SyslogUdpHandler::class, 69 | 'handler_with' => [ 70 | 'host' => env('PAPERTRAIL_URL'), 71 | 'port' => env('PAPERTRAIL_PORT'), 72 | ], 73 | ], 74 | 75 | 'stderr' => [ 76 | 'driver' => 'monolog', 77 | 'handler' => StreamHandler::class, 78 | 'formatter' => env('LOG_STDERR_FORMATTER'), 79 | 'with' => [ 80 | 'stream' => 'php://stderr', 81 | ], 82 | ], 83 | 84 | 'syslog' => [ 85 | 'driver' => 'syslog', 86 | 'level' => 'debug', 87 | ], 88 | 89 | 'errorlog' => [ 90 | 'driver' => 'errorlog', 91 | 'level' => 'debug', 92 | ], 93 | 94 | 'null' => [ 95 | 'driver' => 'monolog', 96 | 'handler' => NullHandler::class, 97 | ], 98 | 99 | 'emergency' => [ 100 | 'path' => storage_path('logs/laravel.log'), 101 | ], 102 | ], 103 | 104 | ]; 105 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Cache Stores 26 | |-------------------------------------------------------------------------- 27 | | 28 | | Here you may define all of the cache "stores" for your application as 29 | | well as their drivers. You may even define multiple stores for the 30 | | same cache driver to group types of items stored in your caches. 31 | | 32 | */ 33 | 34 | 'stores' => [ 35 | 36 | 'apc' => [ 37 | 'driver' => 'apc', 38 | ], 39 | 40 | 'array' => [ 41 | 'driver' => 'array', 42 | ], 43 | 44 | 'database' => [ 45 | 'driver' => 'database', 46 | 'table' => 'cache', 47 | 'connection' => null, 48 | ], 49 | 50 | 'file' => [ 51 | 'driver' => 'file', 52 | 'path' => storage_path('framework/cache/data'), 53 | ], 54 | 55 | 'memcached' => [ 56 | 'driver' => 'memcached', 57 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 58 | 'sasl' => [ 59 | env('MEMCACHED_USERNAME'), 60 | env('MEMCACHED_PASSWORD'), 61 | ], 62 | 'options' => [ 63 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 64 | ], 65 | 'servers' => [ 66 | [ 67 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 68 | 'port' => env('MEMCACHED_PORT', 11211), 69 | 'weight' => 100, 70 | ], 71 | ], 72 | ], 73 | 74 | 'redis' => [ 75 | 'driver' => 'redis', 76 | 'connection' => 'cache', 77 | ], 78 | 79 | 'dynamodb' => [ 80 | 'driver' => 'dynamodb', 81 | 'key' => env('AWS_ACCESS_KEY_ID'), 82 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 83 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 84 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 85 | 'endpoint' => env('DYNAMODB_ENDPOINT'), 86 | ], 87 | 88 | ], 89 | 90 | /* 91 | |-------------------------------------------------------------------------- 92 | | Cache Key Prefix 93 | |-------------------------------------------------------------------------- 94 | | 95 | | When utilizing a RAM based store such as APC or Memcached, there might 96 | | be other applications utilizing the same cache. So, we'll specify a 97 | | value to get prefixed to all our keys so we can avoid collisions. 98 | | 99 | */ 100 | 101 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), 102 | 103 | ]; 104 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session", "token" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | 44 | 'api' => [ 45 | 'driver' => 'token', 46 | 'provider' => 'users', 47 | 'hash' => false, 48 | ], 49 | ], 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | User Providers 54 | |-------------------------------------------------------------------------- 55 | | 56 | | All authentication drivers have a user provider. This defines how the 57 | | users are actually retrieved out of your database or other storage 58 | | mechanisms used by this application to persist your user's data. 59 | | 60 | | If you have multiple user tables or models you may configure multiple 61 | | sources which represent each model / table. These sources may then 62 | | be assigned to any extra authentication guards you have defined. 63 | | 64 | | Supported: "database", "eloquent" 65 | | 66 | */ 67 | 68 | 'providers' => [ 69 | 'users' => [ 70 | 'driver' => 'eloquent', 71 | 'model' => App\User::class, 72 | ], 73 | 74 | // 'users' => [ 75 | // 'driver' => 'database', 76 | // 'table' => 'users', 77 | // ], 78 | ], 79 | 80 | /* 81 | |-------------------------------------------------------------------------- 82 | | Resetting Passwords 83 | |-------------------------------------------------------------------------- 84 | | 85 | | You may specify multiple password reset configurations if you have more 86 | | than one user table or model in the application and you want to have 87 | | separate password reset settings based on the specific user types. 88 | | 89 | | The expire time is the number of minutes that the reset token should be 90 | | considered valid. This security feature keeps tokens short-lived so 91 | | they have less time to be guessed. You may change this as needed. 92 | | 93 | */ 94 | 95 | 'passwords' => [ 96 | 'users' => [ 97 | 'provider' => 'users', 98 | 'table' => 'password_resets', 99 | 'expire' => 60, 100 | 'throttle' => 60, 101 | ], 102 | ], 103 | 104 | /* 105 | |-------------------------------------------------------------------------- 106 | | Password Confirmation Timeout 107 | |-------------------------------------------------------------------------- 108 | | 109 | | Here you may define the amount of seconds before a password confirmation 110 | | times out and the user is prompted to re-enter their password via the 111 | | confirmation screen. By default, the timeout lasts for three hours. 112 | | 113 | */ 114 | 115 | 'password_timeout' => 10800, 116 | 117 | ]; 118 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 | Build Status 5 | Total Downloads 6 | Latest Stable Version 7 | License 8 |

9 | 10 | ## About Laravel 11 | 12 | Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: 13 | 14 | - [Simple, fast routing engine](https://laravel.com/docs/routing). 15 | - [Powerful dependency injection container](https://laravel.com/docs/container). 16 | - Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. 17 | - Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). 18 | - Database agnostic [schema migrations](https://laravel.com/docs/migrations). 19 | - [Robust background job processing](https://laravel.com/docs/queues). 20 | - [Real-time event broadcasting](https://laravel.com/docs/broadcasting). 21 | 22 | Laravel is accessible, powerful, and provides tools required for large, robust applications. 23 | 24 | ## Learning Laravel 25 | 26 | Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. 27 | 28 | If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. 29 | 30 | ## Laravel Sponsors 31 | 32 | We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell). 33 | 34 | - **[Vehikl](https://vehikl.com/)** 35 | - **[Tighten Co.](https://tighten.co)** 36 | - **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** 37 | - **[64 Robots](https://64robots.com)** 38 | - **[Cubet Techno Labs](https://cubettech.com)** 39 | - **[Cyber-Duck](https://cyber-duck.co.uk)** 40 | - **[British Software Development](https://www.britishsoftware.co)** 41 | - **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)** 42 | - **[DevSquad](https://devsquad.com)** 43 | - [UserInsights](https://userinsights.com) 44 | - [Fragrantica](https://www.fragrantica.com) 45 | - [SOFTonSOFA](https://softonsofa.com/) 46 | - [User10](https://user10.com) 47 | - [Soumettre.fr](https://soumettre.fr/) 48 | - [CodeBrisk](https://codebrisk.com) 49 | - [1Forge](https://1forge.com) 50 | - [TECPRESSO](https://tecpresso.co.jp/) 51 | - [Runtime Converter](http://runtimeconverter.com/) 52 | - [WebL'Agence](https://weblagence.com/) 53 | - [Invoice Ninja](https://www.invoiceninja.com) 54 | - [iMi digital](https://www.imi-digital.de/) 55 | - [Earthlink](https://www.earthlink.ro/) 56 | - [Steadfast Collective](https://steadfastcollective.com/) 57 | - [We Are The Robots Inc.](https://watr.mx/) 58 | - [Understand.io](https://www.understand.io/) 59 | - [Abdel Elrafa](https://abdelelrafa.com) 60 | - [Hyper Host](https://hyper.host) 61 | - [Appoly](https://www.appoly.co.uk) 62 | - [OP.GG](https://op.gg) 63 | 64 | ## Contributing 65 | 66 | Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). 67 | 68 | ## Code of Conduct 69 | 70 | In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). 71 | 72 | ## Security Vulnerabilities 73 | 74 | If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. 75 | 76 | ## License 77 | 78 | The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). 79 | -------------------------------------------------------------------------------- /config/websockets.php: -------------------------------------------------------------------------------- 1 | [ 11 | 'port' => env('LARAVEL_WEBSOCKETS_PORT', 6001), 12 | ], 13 | 14 | /* 15 | * This package comes with multi tenancy out of the box. Here you can 16 | * configure the different apps that can use the webSockets server. 17 | * 18 | * Optionally you specify capacity so you can limit the maximum 19 | * concurrent connections for a specific app. 20 | * 21 | * Optionally you can disable client events so clients cannot send 22 | * messages to each other via the webSockets. 23 | */ 24 | 'apps' => [ 25 | [ 26 | 'id' => env('PUSHER_APP_ID'), 27 | 'name' => 'realtime-apps', 28 | 'key' => env('PUSHER_APP_KEY'), 29 | 'secret' => env('PUSHER_APP_SECRET'), 30 | 'path' => env('PUSHER_APP_PATH'), 31 | 'capacity' => null, 32 | 'enable_client_messages' => false, 33 | 'enable_statistics' => true, 34 | ], 35 | ], 36 | 37 | /* 38 | * This class is responsible for finding the apps. The default provider 39 | * will use the apps defined in this config file. 40 | * 41 | * You can create a custom provider by implementing the 42 | * `AppProvider` interface. 43 | */ 44 | 'app_provider' => BeyondCode\LaravelWebSockets\Apps\ConfigAppProvider::class, 45 | 46 | /* 47 | * This array contains the hosts of which you want to allow incoming requests. 48 | * Leave this empty if you want to accept requests from all hosts. 49 | */ 50 | 'allowed_origins' => [ 51 | // 52 | ], 53 | 54 | /* 55 | * The maximum request size in kilobytes that is allowed for an incoming WebSocket request. 56 | */ 57 | 'max_request_size_in_kb' => 250, 58 | 59 | /* 60 | * This path will be used to register the necessary routes for the package. 61 | */ 62 | 'path' => 'panel', 63 | 64 | /* 65 | * Dashboard Routes Middleware 66 | * 67 | * These middleware will be assigned to every dashboard route, giving you 68 | * the chance to add your own middleware to this list or change any of 69 | * the existing middleware. Or, you can simply stick with this list. 70 | */ 71 | 'middleware' => [ 72 | 'web', 73 | Authorize::class, 74 | ], 75 | 76 | 'statistics' => [ 77 | /* 78 | * This model will be used to store the statistics of the WebSocketsServer. 79 | * The only requirement is that the model should extend 80 | * `WebSocketsStatisticsEntry` provided by this package. 81 | */ 82 | 'model' => \BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry::class, 83 | 84 | /* 85 | * Here you can specify the interval in seconds at which statistics should be logged. 86 | */ 87 | 'interval_in_seconds' => 30, 88 | 89 | /* 90 | * When the clean-command is executed, all recorded statistics older than 91 | * the number of days specified here will be deleted. 92 | */ 93 | 'delete_statistics_older_than_days' => 60, 94 | 95 | /* 96 | * Use an DNS resolver to make the requests to the statistics logger 97 | * default is to resolve everything to 127.0.0.1. 98 | */ 99 | 'perform_dns_lookup' => false, 100 | ], 101 | 102 | /* 103 | * Define the optional SSL context for your WebSocket connections. 104 | * You can see all available options at: http://php.net/manual/en/context.ssl.php 105 | */ 106 | 'ssl' => [ 107 | /* 108 | * Path to local certificate file on filesystem. It must be a PEM encoded file which 109 | * contains your certificate and private key. It can optionally contain the 110 | * certificate chain of issuers. The private key also may be contained 111 | * in a separate file specified by local_pk. 112 | */ 113 | 'local_cert' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT', null), 114 | 115 | /* 116 | * Path to local private key file on filesystem in case of separate files for 117 | * certificate (local_cert) and private key. 118 | */ 119 | 'local_pk' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_PK', null), 120 | 121 | /* 122 | * Passphrase for your local_cert file. 123 | */ 124 | 'passphrase' => env('LARAVEL_WEBSOCKETS_SSL_PASSPHRASE', null), 125 | ], 126 | 127 | /* 128 | * Channel Manager 129 | * This class handles how channel persistence is handled. 130 | * By default, persistence is stored in an array by the running webserver. 131 | * The only requirement is that the class should implement 132 | * `ChannelManager` interface provided by this package. 133 | */ 134 | 'channel_manager' => \BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManagers\ArrayChannelManager::class, 135 | ]; 136 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_DRIVER', 'smtp'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | SMTP Host Address 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may provide the host address of the SMTP server used by your 27 | | applications. A default option is provided that is compatible with 28 | | the Mailgun mail service which will provide reliable deliveries. 29 | | 30 | */ 31 | 32 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 33 | 34 | /* 35 | |-------------------------------------------------------------------------- 36 | | SMTP Host Port 37 | |-------------------------------------------------------------------------- 38 | | 39 | | This is the SMTP port used by your application to deliver e-mails to 40 | | users of the application. Like the host we have set this value to 41 | | stay compatible with the Mailgun e-mail application by default. 42 | | 43 | */ 44 | 45 | 'port' => env('MAIL_PORT', 587), 46 | 47 | /* 48 | |-------------------------------------------------------------------------- 49 | | Global "From" Address 50 | |-------------------------------------------------------------------------- 51 | | 52 | | You may wish for all e-mails sent by your application to be sent from 53 | | the same address. Here, you may specify a name and address that is 54 | | used globally for all e-mails that are sent by your application. 55 | | 56 | */ 57 | 58 | 'from' => [ 59 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 60 | 'name' => env('MAIL_FROM_NAME', 'Example'), 61 | ], 62 | 63 | /* 64 | |-------------------------------------------------------------------------- 65 | | E-Mail Encryption Protocol 66 | |-------------------------------------------------------------------------- 67 | | 68 | | Here you may specify the encryption protocol that should be used when 69 | | the application send e-mail messages. A sensible default using the 70 | | transport layer security protocol should provide great security. 71 | | 72 | */ 73 | 74 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | SMTP Server Username 79 | |-------------------------------------------------------------------------- 80 | | 81 | | If your SMTP server requires a username for authentication, you should 82 | | set it here. This will get used to authenticate with your server on 83 | | connection. You may also set the "password" value below this one. 84 | | 85 | */ 86 | 87 | 'username' => env('MAIL_USERNAME'), 88 | 89 | 'password' => env('MAIL_PASSWORD'), 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Sendmail System Path 94 | |-------------------------------------------------------------------------- 95 | | 96 | | When using the "sendmail" driver to send e-mails, we will need to know 97 | | the path to where Sendmail lives on this server. A default path has 98 | | been provided here, which will work well on most of your systems. 99 | | 100 | */ 101 | 102 | 'sendmail' => '/usr/sbin/sendmail -bs', 103 | 104 | /* 105 | |-------------------------------------------------------------------------- 106 | | Markdown Mail Settings 107 | |-------------------------------------------------------------------------- 108 | | 109 | | If you are using Markdown based email rendering, you may configure your 110 | | theme and component paths here, allowing you to customize the design 111 | | of the emails. Or, you may simply stick with the Laravel defaults! 112 | | 113 | */ 114 | 115 | 'markdown' => [ 116 | 'theme' => 'default', 117 | 118 | 'paths' => [ 119 | resource_path('views/vendor/mail'), 120 | ], 121 | ], 122 | 123 | /* 124 | |-------------------------------------------------------------------------- 125 | | Log Channel 126 | |-------------------------------------------------------------------------- 127 | | 128 | | If you are using the "log" driver, you may specify the logging channel 129 | | if you prefer to keep mail messages separate from other log entries 130 | | for simpler reading. Otherwise, the default channel will be used. 131 | | 132 | */ 133 | 134 | 'log_channel' => env('MAIL_LOG_CHANNEL'), 135 | 136 | ]; 137 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | env('DB_CONNECTION', 'mysql'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Database Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here are each of the database connections setup for your application. 26 | | Of course, examples of configuring each database platform that is 27 | | supported by Laravel is shown below to make development simple. 28 | | 29 | | 30 | | All database work in Laravel is done through the PHP PDO facilities 31 | | so make sure you have the driver for your particular database of 32 | | choice installed on your machine before you begin development. 33 | | 34 | */ 35 | 36 | 'connections' => [ 37 | 38 | 'sqlite' => [ 39 | 'driver' => 'sqlite', 40 | 'url' => env('DATABASE_URL'), 41 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 42 | 'prefix' => '', 43 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 44 | ], 45 | 46 | 'mysql' => [ 47 | 'driver' => 'mysql', 48 | 'url' => env('DATABASE_URL'), 49 | 'host' => env('DB_HOST', '127.0.0.1'), 50 | 'port' => env('DB_PORT', '3306'), 51 | 'database' => env('DB_DATABASE', 'forge'), 52 | 'username' => env('DB_USERNAME', 'forge'), 53 | 'password' => env('DB_PASSWORD', ''), 54 | 'unix_socket' => env('DB_SOCKET', ''), 55 | 'charset' => 'utf8mb4', 56 | 'collation' => 'utf8mb4_unicode_ci', 57 | 'prefix' => '', 58 | 'prefix_indexes' => true, 59 | 'strict' => true, 60 | 'engine' => null, 61 | 'options' => extension_loaded('pdo_mysql') ? array_filter([ 62 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), 63 | ]) : [], 64 | ], 65 | 66 | 'pgsql' => [ 67 | 'driver' => 'pgsql', 68 | 'url' => env('DATABASE_URL'), 69 | 'host' => env('DB_HOST', '127.0.0.1'), 70 | 'port' => env('DB_PORT', '5432'), 71 | 'database' => env('DB_DATABASE', 'forge'), 72 | 'username' => env('DB_USERNAME', 'forge'), 73 | 'password' => env('DB_PASSWORD', ''), 74 | 'charset' => 'utf8', 75 | 'prefix' => '', 76 | 'prefix_indexes' => true, 77 | 'schema' => 'public', 78 | 'sslmode' => 'prefer', 79 | ], 80 | 81 | 'sqlsrv' => [ 82 | 'driver' => 'sqlsrv', 83 | 'url' => env('DATABASE_URL'), 84 | 'host' => env('DB_HOST', 'localhost'), 85 | 'port' => env('DB_PORT', '1433'), 86 | 'database' => env('DB_DATABASE', 'forge'), 87 | 'username' => env('DB_USERNAME', 'forge'), 88 | 'password' => env('DB_PASSWORD', ''), 89 | 'charset' => 'utf8', 90 | 'prefix' => '', 91 | 'prefix_indexes' => true, 92 | ], 93 | 94 | ], 95 | 96 | /* 97 | |-------------------------------------------------------------------------- 98 | | Migration Repository Table 99 | |-------------------------------------------------------------------------- 100 | | 101 | | This table keeps track of all the migrations that have already run for 102 | | your application. Using this information, we can determine which of 103 | | the migrations on disk haven't actually been run in the database. 104 | | 105 | */ 106 | 107 | 'migrations' => 'migrations', 108 | 109 | /* 110 | |-------------------------------------------------------------------------- 111 | | Redis Databases 112 | |-------------------------------------------------------------------------- 113 | | 114 | | Redis is an open source, fast, and advanced key-value store that also 115 | | provides a richer body of commands than a typical key-value system 116 | | such as APC or Memcached. Laravel makes it easy to dig right in. 117 | | 118 | */ 119 | 120 | 'redis' => [ 121 | 122 | 'client' => env('REDIS_CLIENT', 'phpredis'), 123 | 124 | 'options' => [ 125 | 'cluster' => env('REDIS_CLUSTER', 'redis'), 126 | 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), 127 | ], 128 | 129 | 'default' => [ 130 | 'url' => env('REDIS_URL'), 131 | 'host' => env('REDIS_HOST', '127.0.0.1'), 132 | 'password' => env('REDIS_PASSWORD', null), 133 | 'port' => env('REDIS_PORT', '6379'), 134 | 'database' => env('REDIS_DB', '0'), 135 | ], 136 | 137 | 'cache' => [ 138 | 'url' => env('REDIS_URL'), 139 | 'host' => env('REDIS_HOST', '127.0.0.1'), 140 | 'password' => env('REDIS_PASSWORD', null), 141 | 'port' => env('REDIS_PORT', '6379'), 142 | 'database' => env('REDIS_CACHE_DB', '1'), 143 | ], 144 | 145 | ], 146 | 147 | ]; 148 | -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- 1 | env('SESSION_DRIVER', 'file'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Session Lifetime 26 | |-------------------------------------------------------------------------- 27 | | 28 | | Here you may specify the number of minutes that you wish the session 29 | | to be allowed to remain idle before it expires. If you want them 30 | | to immediately expire on the browser closing, set that option. 31 | | 32 | */ 33 | 34 | 'lifetime' => env('SESSION_LIFETIME', 120), 35 | 36 | 'expire_on_close' => false, 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Session Encryption 41 | |-------------------------------------------------------------------------- 42 | | 43 | | This option allows you to easily specify that all of your session data 44 | | should be encrypted before it is stored. All encryption will be run 45 | | automatically by Laravel and you can use the Session like normal. 46 | | 47 | */ 48 | 49 | 'encrypt' => false, 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | Session File Location 54 | |-------------------------------------------------------------------------- 55 | | 56 | | When using the native session driver, we need a location where session 57 | | files may be stored. A default has been set for you but a different 58 | | location may be specified. This is only needed for file sessions. 59 | | 60 | */ 61 | 62 | 'files' => storage_path('framework/sessions'), 63 | 64 | /* 65 | |-------------------------------------------------------------------------- 66 | | Session Database Connection 67 | |-------------------------------------------------------------------------- 68 | | 69 | | When using the "database" or "redis" session drivers, you may specify a 70 | | connection that should be used to manage these sessions. This should 71 | | correspond to a connection in your database configuration options. 72 | | 73 | */ 74 | 75 | 'connection' => env('SESSION_CONNECTION', null), 76 | 77 | /* 78 | |-------------------------------------------------------------------------- 79 | | Session Database Table 80 | |-------------------------------------------------------------------------- 81 | | 82 | | When using the "database" session driver, you may specify the table we 83 | | should use to manage the sessions. Of course, a sensible default is 84 | | provided for you; however, you are free to change this as needed. 85 | | 86 | */ 87 | 88 | 'table' => 'sessions', 89 | 90 | /* 91 | |-------------------------------------------------------------------------- 92 | | Session Cache Store 93 | |-------------------------------------------------------------------------- 94 | | 95 | | When using the "apc", "memcached", or "dynamodb" session drivers you may 96 | | list a cache store that should be used for these sessions. This value 97 | | must match with one of the application's configured cache "stores". 98 | | 99 | */ 100 | 101 | 'store' => env('SESSION_STORE', null), 102 | 103 | /* 104 | |-------------------------------------------------------------------------- 105 | | Session Sweeping Lottery 106 | |-------------------------------------------------------------------------- 107 | | 108 | | Some session drivers must manually sweep their storage location to get 109 | | rid of old sessions from storage. Here are the chances that it will 110 | | happen on a given request. By default, the odds are 2 out of 100. 111 | | 112 | */ 113 | 114 | 'lottery' => [2, 100], 115 | 116 | /* 117 | |-------------------------------------------------------------------------- 118 | | Session Cookie Name 119 | |-------------------------------------------------------------------------- 120 | | 121 | | Here you may change the name of the cookie used to identify a session 122 | | instance by ID. The name specified here will get used every time a 123 | | new session cookie is created by the framework for every driver. 124 | | 125 | */ 126 | 127 | 'cookie' => env( 128 | 'SESSION_COOKIE', 129 | Str::slug(env('APP_NAME', 'laravel'), '_').'_session' 130 | ), 131 | 132 | /* 133 | |-------------------------------------------------------------------------- 134 | | Session Cookie Path 135 | |-------------------------------------------------------------------------- 136 | | 137 | | The session cookie path determines the path for which the cookie will 138 | | be regarded as available. Typically, this will be the root path of 139 | | your application but you are free to change this when necessary. 140 | | 141 | */ 142 | 143 | 'path' => '/', 144 | 145 | /* 146 | |-------------------------------------------------------------------------- 147 | | Session Cookie Domain 148 | |-------------------------------------------------------------------------- 149 | | 150 | | Here you may change the domain of the cookie used to identify a session 151 | | in your application. This will determine which domains the cookie is 152 | | available to in your application. A sensible default has been set. 153 | | 154 | */ 155 | 156 | 'domain' => env('SESSION_DOMAIN', null), 157 | 158 | /* 159 | |-------------------------------------------------------------------------- 160 | | HTTPS Only Cookies 161 | |-------------------------------------------------------------------------- 162 | | 163 | | By setting this option to true, session cookies will only be sent back 164 | | to the server if the browser has a HTTPS connection. This will keep 165 | | the cookie from being sent to you if it can not be done securely. 166 | | 167 | */ 168 | 169 | 'secure' => env('SESSION_SECURE_COOKIE', false), 170 | 171 | /* 172 | |-------------------------------------------------------------------------- 173 | | HTTP Access Only 174 | |-------------------------------------------------------------------------- 175 | | 176 | | Setting this value to true will prevent JavaScript from accessing the 177 | | value of the cookie and the cookie will only be accessible through 178 | | the HTTP protocol. You are free to modify this option if needed. 179 | | 180 | */ 181 | 182 | 'http_only' => true, 183 | 184 | /* 185 | |-------------------------------------------------------------------------- 186 | | Same-Site Cookies 187 | |-------------------------------------------------------------------------- 188 | | 189 | | This option determines how your cookies behave when cross-site requests 190 | | take place, and can be used to mitigate CSRF attacks. By default, we 191 | | do not enable this as other CSRF protection services are in place. 192 | | 193 | | Supported: "lax", "strict", "none" 194 | | 195 | */ 196 | 197 | 'same_site' => null, 198 | 199 | ]; 200 | -------------------------------------------------------------------------------- /resources/lang/en/validation.php: -------------------------------------------------------------------------------- 1 | 'The :attribute must be accepted.', 17 | 'active_url' => 'The :attribute is not a valid URL.', 18 | 'after' => 'The :attribute must be a date after :date.', 19 | 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', 20 | 'alpha' => 'The :attribute may only contain letters.', 21 | 'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.', 22 | 'alpha_num' => 'The :attribute may only contain letters and numbers.', 23 | 'array' => 'The :attribute must be an array.', 24 | 'before' => 'The :attribute must be a date before :date.', 25 | 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', 26 | 'between' => [ 27 | 'numeric' => 'The :attribute must be between :min and :max.', 28 | 'file' => 'The :attribute must be between :min and :max kilobytes.', 29 | 'string' => 'The :attribute must be between :min and :max characters.', 30 | 'array' => 'The :attribute must have between :min and :max items.', 31 | ], 32 | 'boolean' => 'The :attribute field must be true or false.', 33 | 'confirmed' => 'The :attribute confirmation does not match.', 34 | 'date' => 'The :attribute is not a valid date.', 35 | 'date_equals' => 'The :attribute must be a date equal to :date.', 36 | 'date_format' => 'The :attribute does not match the format :format.', 37 | 'different' => 'The :attribute and :other must be different.', 38 | 'digits' => 'The :attribute must be :digits digits.', 39 | 'digits_between' => 'The :attribute must be between :min and :max digits.', 40 | 'dimensions' => 'The :attribute has invalid image dimensions.', 41 | 'distinct' => 'The :attribute field has a duplicate value.', 42 | 'email' => 'The :attribute must be a valid email address.', 43 | 'ends_with' => 'The :attribute must end with one of the following: :values.', 44 | 'exists' => 'The selected :attribute is invalid.', 45 | 'file' => 'The :attribute must be a file.', 46 | 'filled' => 'The :attribute field must have a value.', 47 | 'gt' => [ 48 | 'numeric' => 'The :attribute must be greater than :value.', 49 | 'file' => 'The :attribute must be greater than :value kilobytes.', 50 | 'string' => 'The :attribute must be greater than :value characters.', 51 | 'array' => 'The :attribute must have more than :value items.', 52 | ], 53 | 'gte' => [ 54 | 'numeric' => 'The :attribute must be greater than or equal :value.', 55 | 'file' => 'The :attribute must be greater than or equal :value kilobytes.', 56 | 'string' => 'The :attribute must be greater than or equal :value characters.', 57 | 'array' => 'The :attribute must have :value items or more.', 58 | ], 59 | 'image' => 'The :attribute must be an image.', 60 | 'in' => 'The selected :attribute is invalid.', 61 | 'in_array' => 'The :attribute field does not exist in :other.', 62 | 'integer' => 'The :attribute must be an integer.', 63 | 'ip' => 'The :attribute must be a valid IP address.', 64 | 'ipv4' => 'The :attribute must be a valid IPv4 address.', 65 | 'ipv6' => 'The :attribute must be a valid IPv6 address.', 66 | 'json' => 'The :attribute must be a valid JSON string.', 67 | 'lt' => [ 68 | 'numeric' => 'The :attribute must be less than :value.', 69 | 'file' => 'The :attribute must be less than :value kilobytes.', 70 | 'string' => 'The :attribute must be less than :value characters.', 71 | 'array' => 'The :attribute must have less than :value items.', 72 | ], 73 | 'lte' => [ 74 | 'numeric' => 'The :attribute must be less than or equal :value.', 75 | 'file' => 'The :attribute must be less than or equal :value kilobytes.', 76 | 'string' => 'The :attribute must be less than or equal :value characters.', 77 | 'array' => 'The :attribute must not have more than :value items.', 78 | ], 79 | 'max' => [ 80 | 'numeric' => 'The :attribute may not be greater than :max.', 81 | 'file' => 'The :attribute may not be greater than :max kilobytes.', 82 | 'string' => 'The :attribute may not be greater than :max characters.', 83 | 'array' => 'The :attribute may not have more than :max items.', 84 | ], 85 | 'mimes' => 'The :attribute must be a file of type: :values.', 86 | 'mimetypes' => 'The :attribute must be a file of type: :values.', 87 | 'min' => [ 88 | 'numeric' => 'The :attribute must be at least :min.', 89 | 'file' => 'The :attribute must be at least :min kilobytes.', 90 | 'string' => 'The :attribute must be at least :min characters.', 91 | 'array' => 'The :attribute must have at least :min items.', 92 | ], 93 | 'not_in' => 'The selected :attribute is invalid.', 94 | 'not_regex' => 'The :attribute format is invalid.', 95 | 'numeric' => 'The :attribute must be a number.', 96 | 'password' => 'The password is incorrect.', 97 | 'present' => 'The :attribute field must be present.', 98 | 'regex' => 'The :attribute format is invalid.', 99 | 'required' => 'The :attribute field is required.', 100 | 'required_if' => 'The :attribute field is required when :other is :value.', 101 | 'required_unless' => 'The :attribute field is required unless :other is in :values.', 102 | 'required_with' => 'The :attribute field is required when :values is present.', 103 | 'required_with_all' => 'The :attribute field is required when :values are present.', 104 | 'required_without' => 'The :attribute field is required when :values is not present.', 105 | 'required_without_all' => 'The :attribute field is required when none of :values are present.', 106 | 'same' => 'The :attribute and :other must match.', 107 | 'size' => [ 108 | 'numeric' => 'The :attribute must be :size.', 109 | 'file' => 'The :attribute must be :size kilobytes.', 110 | 'string' => 'The :attribute must be :size characters.', 111 | 'array' => 'The :attribute must contain :size items.', 112 | ], 113 | 'starts_with' => 'The :attribute must start with one of the following: :values.', 114 | 'string' => 'The :attribute must be a string.', 115 | 'timezone' => 'The :attribute must be a valid zone.', 116 | 'unique' => 'The :attribute has already been taken.', 117 | 'uploaded' => 'The :attribute failed to upload.', 118 | 'url' => 'The :attribute format is invalid.', 119 | 'uuid' => 'The :attribute must be a valid UUID.', 120 | 121 | /* 122 | |-------------------------------------------------------------------------- 123 | | Custom Validation Language Lines 124 | |-------------------------------------------------------------------------- 125 | | 126 | | Here you may specify custom validation messages for attributes using the 127 | | convention "attribute.rule" to name the lines. This makes it quick to 128 | | specify a specific custom language line for a given attribute rule. 129 | | 130 | */ 131 | 132 | 'custom' => [ 133 | 'attribute-name' => [ 134 | 'rule-name' => 'custom-message', 135 | ], 136 | ], 137 | 138 | /* 139 | |-------------------------------------------------------------------------- 140 | | Custom Validation Attributes 141 | |-------------------------------------------------------------------------- 142 | | 143 | | The following language lines are used to swap our attribute placeholder 144 | | with something more reader friendly such as "E-Mail Address" instead 145 | | of "email". This simply helps us make our message more expressive. 146 | | 147 | */ 148 | 149 | 'attributes' => [], 150 | 151 | ]; 152 | -------------------------------------------------------------------------------- /config/app.php: -------------------------------------------------------------------------------- 1 | env('APP_NAME', 'Laravel'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Application Environment 21 | |-------------------------------------------------------------------------- 22 | | 23 | | This value determines the "environment" your application is currently 24 | | running in. This may determine how you prefer to configure various 25 | | services the application utilizes. Set this in your ".env" file. 26 | | 27 | */ 28 | 29 | 'env' => env('APP_ENV', 'production'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Application Debug Mode 34 | |-------------------------------------------------------------------------- 35 | | 36 | | When your application is in debug mode, detailed error messages with 37 | | stack traces will be shown on every error that occurs within your 38 | | application. If disabled, a simple generic error page is shown. 39 | | 40 | */ 41 | 42 | 'debug' => env('APP_DEBUG', false), 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Application URL 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This URL is used by the console to properly generate URLs when using 50 | | the Artisan command line tool. You should set this to the root of 51 | | your application so that it is used when running Artisan tasks. 52 | | 53 | */ 54 | 55 | 'url' => env('APP_URL', 'http://localhost'), 56 | 57 | 'asset_url' => env('ASSET_URL', null), 58 | 59 | /* 60 | |-------------------------------------------------------------------------- 61 | | Application Timezone 62 | |-------------------------------------------------------------------------- 63 | | 64 | | Here you may specify the default timezone for your application, which 65 | | will be used by the PHP date and date-time functions. We have gone 66 | | ahead and set this to a sensible default for you out of the box. 67 | | 68 | */ 69 | 70 | 'timezone' => 'UTC', 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | Application Locale Configuration 75 | |-------------------------------------------------------------------------- 76 | | 77 | | The application locale determines the default locale that will be used 78 | | by the translation service provider. You are free to set this value 79 | | to any of the locales which will be supported by the application. 80 | | 81 | */ 82 | 83 | 'locale' => 'en', 84 | 85 | /* 86 | |-------------------------------------------------------------------------- 87 | | Application Fallback Locale 88 | |-------------------------------------------------------------------------- 89 | | 90 | | The fallback locale determines the locale to use when the current one 91 | | is not available. You may change the value to correspond to any of 92 | | the language folders that are provided through your application. 93 | | 94 | */ 95 | 96 | 'fallback_locale' => 'en', 97 | 98 | /* 99 | |-------------------------------------------------------------------------- 100 | | Faker Locale 101 | |-------------------------------------------------------------------------- 102 | | 103 | | This locale will be used by the Faker PHP library when generating fake 104 | | data for your database seeds. For example, this will be used to get 105 | | localized telephone numbers, street address information and more. 106 | | 107 | */ 108 | 109 | 'faker_locale' => 'en_US', 110 | 111 | /* 112 | |-------------------------------------------------------------------------- 113 | | Encryption Key 114 | |-------------------------------------------------------------------------- 115 | | 116 | | This key is used by the Illuminate encrypter service and should be set 117 | | to a random, 32 character string, otherwise these encrypted strings 118 | | will not be safe. Please do this before deploying an application! 119 | | 120 | */ 121 | 122 | 'key' => env('APP_KEY'), 123 | 124 | 'cipher' => 'AES-256-CBC', 125 | 126 | /* 127 | |-------------------------------------------------------------------------- 128 | | Autoloaded Service Providers 129 | |-------------------------------------------------------------------------- 130 | | 131 | | The service providers listed here will be automatically loaded on the 132 | | request to your application. Feel free to add your own services to 133 | | this array to grant expanded functionality to your applications. 134 | | 135 | */ 136 | 137 | 'providers' => [ 138 | 139 | /* 140 | * Laravel Framework Service Providers... 141 | */ 142 | Illuminate\Auth\AuthServiceProvider::class, 143 | Illuminate\Broadcasting\BroadcastServiceProvider::class, 144 | Illuminate\Bus\BusServiceProvider::class, 145 | Illuminate\Cache\CacheServiceProvider::class, 146 | Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, 147 | Illuminate\Cookie\CookieServiceProvider::class, 148 | Illuminate\Database\DatabaseServiceProvider::class, 149 | Illuminate\Encryption\EncryptionServiceProvider::class, 150 | Illuminate\Filesystem\FilesystemServiceProvider::class, 151 | Illuminate\Foundation\Providers\FoundationServiceProvider::class, 152 | Illuminate\Hashing\HashServiceProvider::class, 153 | Illuminate\Mail\MailServiceProvider::class, 154 | Illuminate\Notifications\NotificationServiceProvider::class, 155 | Illuminate\Pagination\PaginationServiceProvider::class, 156 | Illuminate\Pipeline\PipelineServiceProvider::class, 157 | Illuminate\Queue\QueueServiceProvider::class, 158 | Illuminate\Redis\RedisServiceProvider::class, 159 | Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, 160 | Illuminate\Session\SessionServiceProvider::class, 161 | Illuminate\Translation\TranslationServiceProvider::class, 162 | Illuminate\Validation\ValidationServiceProvider::class, 163 | Illuminate\View\ViewServiceProvider::class, 164 | 165 | /* 166 | * Package Service Providers... 167 | */ 168 | 169 | /* 170 | * Application Service Providers... 171 | */ 172 | App\Providers\AppServiceProvider::class, 173 | App\Providers\AuthServiceProvider::class, 174 | // App\Providers\BroadcastServiceProvider::class, 175 | App\Providers\EventServiceProvider::class, 176 | App\Providers\RouteServiceProvider::class, 177 | 178 | ], 179 | 180 | /* 181 | |-------------------------------------------------------------------------- 182 | | Class Aliases 183 | |-------------------------------------------------------------------------- 184 | | 185 | | This array of class aliases will be registered when this application 186 | | is started. However, feel free to register as many as you wish as 187 | | the aliases are "lazy" loaded so they don't hinder performance. 188 | | 189 | */ 190 | 191 | 'aliases' => [ 192 | 193 | 'App' => Illuminate\Support\Facades\App::class, 194 | 'Arr' => Illuminate\Support\Arr::class, 195 | 'Artisan' => Illuminate\Support\Facades\Artisan::class, 196 | 'Auth' => Illuminate\Support\Facades\Auth::class, 197 | 'Blade' => Illuminate\Support\Facades\Blade::class, 198 | 'Broadcast' => Illuminate\Support\Facades\Broadcast::class, 199 | 'Bus' => Illuminate\Support\Facades\Bus::class, 200 | 'Cache' => Illuminate\Support\Facades\Cache::class, 201 | 'Config' => Illuminate\Support\Facades\Config::class, 202 | 'Cookie' => Illuminate\Support\Facades\Cookie::class, 203 | 'Crypt' => Illuminate\Support\Facades\Crypt::class, 204 | 'DB' => Illuminate\Support\Facades\DB::class, 205 | 'Eloquent' => Illuminate\Database\Eloquent\Model::class, 206 | 'Event' => Illuminate\Support\Facades\Event::class, 207 | 'File' => Illuminate\Support\Facades\File::class, 208 | 'Gate' => Illuminate\Support\Facades\Gate::class, 209 | 'Hash' => Illuminate\Support\Facades\Hash::class, 210 | 'Lang' => Illuminate\Support\Facades\Lang::class, 211 | 'Log' => Illuminate\Support\Facades\Log::class, 212 | 'Mail' => Illuminate\Support\Facades\Mail::class, 213 | 'Notification' => Illuminate\Support\Facades\Notification::class, 214 | 'Password' => Illuminate\Support\Facades\Password::class, 215 | 'Queue' => Illuminate\Support\Facades\Queue::class, 216 | 'Redirect' => Illuminate\Support\Facades\Redirect::class, 217 | 'Redis' => Illuminate\Support\Facades\Redis::class, 218 | 'Request' => Illuminate\Support\Facades\Request::class, 219 | 'Response' => Illuminate\Support\Facades\Response::class, 220 | 'Route' => Illuminate\Support\Facades\Route::class, 221 | 'Schema' => Illuminate\Support\Facades\Schema::class, 222 | 'Session' => Illuminate\Support\Facades\Session::class, 223 | 'Storage' => Illuminate\Support\Facades\Storage::class, 224 | 'Str' => Illuminate\Support\Str::class, 225 | 'URL' => Illuminate\Support\Facades\URL::class, 226 | 'Validator' => Illuminate\Support\Facades\Validator::class, 227 | 'View' => Illuminate\Support\Facades\View::class, 228 | 229 | ], 230 | 231 | ]; 232 | -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Laravel 8 | 9 | 10 | 11 | 12 | 13 | 16 | 17 | 22 | 23 | 24 |
25 | @if (Route::has('login')) 26 | 37 | @endif 38 | 39 |
40 |
41 | 42 | 43 | 44 | 45 | 46 |
47 | 48 |
49 |
50 |
51 |
52 | 53 | 54 |
55 | 56 |
57 |
58 | Laravel has wonderful, thorough documentation covering every aspect of the framework. Whether you are new to the framework or have previous experience with Laravel, we recommend reading all of the documentation from beginning to end. 59 |
60 |
61 |
62 | 63 |
64 |
65 | 66 | 67 |
68 | 69 |
70 |
71 | Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process. 72 |
73 |
74 |
75 | 76 |
77 |
78 | 79 | 80 |
81 | 82 |
83 |
84 | Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials. 85 |
86 |
87 |
88 | 89 |
90 |
91 | 92 |
Vibrant Ecosystem
93 |
94 | 95 |
96 |
97 | Laravel's robust library of first-party tools and libraries, such as Forge, Vapor, Nova, and Envoyer help you take your projects to the next level. Pair them with powerful open source libraries like Cashier, Dusk, Echo, Horizon, Sanctum, Telescope, and more. 98 |
99 |
100 |
101 |
102 |
103 | 104 |
105 |
106 |
107 | 108 | 109 | 110 | 111 | 112 | Shop 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | Sponsor 121 | 122 |
123 |
124 | 125 |
126 | Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) 127 |
128 |
129 |
130 |
131 | 132 | 133 | {"mode":"full","isActive":false} 134 | -------------------------------------------------------------------------------- /public/js/app.js: -------------------------------------------------------------------------------- 1 | /*! For license information please see app.js.LICENSE.txt */ 2 | (()=>{var n,t={669:(n,t,r)=>{n.exports=r(609)},448:(n,t,r)=>{"use strict";var e=r(867),u=r(26),i=r(372),o=r(327),a=r(97),f=r(109),c=r(985),s=r(61);n.exports=function(n){return new Promise((function(t,r){var l=n.data,h=n.headers;e.isFormData(l)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(n.auth){var v=n.auth.username||"",_=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";h.Authorization="Basic "+btoa(v+":"+_)}var d=a(n.baseURL,n.url);if(p.open(n.method.toUpperCase(),o(d,n.params,n.paramsSerializer),!0),p.timeout=n.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var e="getAllResponseHeaders"in p?f(p.getAllResponseHeaders()):null,i={data:n.responseType&&"text"!==n.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:e,config:n,request:p};u(t,r,i),p=null}},p.onabort=function(){p&&(r(s("Request aborted",n,"ECONNABORTED",p)),p=null)},p.onerror=function(){r(s("Network Error",n,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+n.timeout+"ms exceeded";n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(s(t,n,"ECONNABORTED",p)),p=null},e.isStandardBrowserEnv()){var g=(n.withCredentials||c(d))&&n.xsrfCookieName?i.read(n.xsrfCookieName):void 0;g&&(h[n.xsrfHeaderName]=g)}if("setRequestHeader"in p&&e.forEach(h,(function(n,t){void 0===l&&"content-type"===t.toLowerCase()?delete h[t]:p.setRequestHeader(t,n)})),e.isUndefined(n.withCredentials)||(p.withCredentials=!!n.withCredentials),n.responseType)try{p.responseType=n.responseType}catch(t){if("json"!==n.responseType)throw t}"function"==typeof n.onDownloadProgress&&p.addEventListener("progress",n.onDownloadProgress),"function"==typeof n.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",n.onUploadProgress),n.cancelToken&&n.cancelToken.promise.then((function(n){p&&(p.abort(),r(n),p=null)})),l||(l=null),p.send(l)}))}},609:(n,t,r)=>{"use strict";var e=r(867),u=r(849),i=r(321),o=r(185);function a(n){var t=new i(n),r=u(i.prototype.request,t);return e.extend(r,i.prototype,t),e.extend(r,t),r}var f=a(r(655));f.Axios=i,f.create=function(n){return a(o(f.defaults,n))},f.Cancel=r(263),f.CancelToken=r(972),f.isCancel=r(502),f.all=function(n){return Promise.all(n)},f.spread=r(713),f.isAxiosError=r(268),n.exports=f,n.exports.default=f},263:n=>{"use strict";function t(n){this.message=n}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,n.exports=t},972:(n,t,r)=>{"use strict";var e=r(263);function u(n){if("function"!=typeof n)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(n){t=n}));var r=this;n((function(n){r.reason||(r.reason=new e(n),t(r.reason))}))}u.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},u.source=function(){var n;return{token:new u((function(t){n=t})),cancel:n}},n.exports=u},502:n=>{"use strict";n.exports=function(n){return!(!n||!n.__CANCEL__)}},321:(n,t,r)=>{"use strict";var e=r(867),u=r(327),i=r(782),o=r(572),a=r(185);function f(n){this.defaults=n,this.interceptors={request:new i,response:new i}}f.prototype.request=function(n){"string"==typeof n?(n=arguments[1]||{}).url=arguments[0]:n=n||{},(n=a(this.defaults,n)).method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var t=[o,void 0],r=Promise.resolve(n);for(this.interceptors.request.forEach((function(n){t.unshift(n.fulfilled,n.rejected)})),this.interceptors.response.forEach((function(n){t.push(n.fulfilled,n.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},f.prototype.getUri=function(n){return n=a(this.defaults,n),u(n.url,n.params,n.paramsSerializer).replace(/^\?/,"")},e.forEach(["delete","get","head","options"],(function(n){f.prototype[n]=function(t,r){return this.request(a(r||{},{method:n,url:t,data:(r||{}).data}))}})),e.forEach(["post","put","patch"],(function(n){f.prototype[n]=function(t,r,e){return this.request(a(e||{},{method:n,url:t,data:r}))}})),n.exports=f},782:(n,t,r)=>{"use strict";var e=r(867);function u(){this.handlers=[]}u.prototype.use=function(n,t){return this.handlers.push({fulfilled:n,rejected:t}),this.handlers.length-1},u.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)},u.prototype.forEach=function(n){e.forEach(this.handlers,(function(t){null!==t&&n(t)}))},n.exports=u},97:(n,t,r)=>{"use strict";var e=r(793),u=r(303);n.exports=function(n,t){return n&&!e(t)?u(n,t):t}},61:(n,t,r)=>{"use strict";var e=r(481);n.exports=function(n,t,r,u,i){var o=new Error(n);return e(o,t,r,u,i)}},572:(n,t,r)=>{"use strict";var e=r(867),u=r(527),i=r(502),o=r(655);function a(n){n.cancelToken&&n.cancelToken.throwIfRequested()}n.exports=function(n){return a(n),n.headers=n.headers||{},n.data=u(n.data,n.headers,n.transformRequest),n.headers=e.merge(n.headers.common||{},n.headers[n.method]||{},n.headers),e.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete n.headers[t]})),(n.adapter||o.adapter)(n).then((function(t){return a(n),t.data=u(t.data,t.headers,n.transformResponse),t}),(function(t){return i(t)||(a(n),t&&t.response&&(t.response.data=u(t.response.data,t.response.headers,n.transformResponse))),Promise.reject(t)}))}},481:n=>{"use strict";n.exports=function(n,t,r,e,u){return n.config=t,r&&(n.code=r),n.request=e,n.response=u,n.isAxiosError=!0,n.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},n}},185:(n,t,r)=>{"use strict";var e=r(867);n.exports=function(n,t){t=t||{};var r={},u=["url","method","data"],i=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function f(n,t){return e.isPlainObject(n)&&e.isPlainObject(t)?e.merge(n,t):e.isPlainObject(t)?e.merge({},t):e.isArray(t)?t.slice():t}function c(u){e.isUndefined(t[u])?e.isUndefined(n[u])||(r[u]=f(void 0,n[u])):r[u]=f(n[u],t[u])}e.forEach(u,(function(n){e.isUndefined(t[n])||(r[n]=f(void 0,t[n]))})),e.forEach(i,c),e.forEach(o,(function(u){e.isUndefined(t[u])?e.isUndefined(n[u])||(r[u]=f(void 0,n[u])):r[u]=f(void 0,t[u])})),e.forEach(a,(function(e){e in t?r[e]=f(n[e],t[e]):e in n&&(r[e]=f(void 0,n[e]))}));var s=u.concat(i).concat(o).concat(a),l=Object.keys(n).concat(Object.keys(t)).filter((function(n){return-1===s.indexOf(n)}));return e.forEach(l,c),r}},26:(n,t,r)=>{"use strict";var e=r(61);n.exports=function(n,t,r){var u=r.config.validateStatus;r.status&&u&&!u(r.status)?t(e("Request failed with status code "+r.status,r.config,null,r.request,r)):n(r)}},527:(n,t,r)=>{"use strict";var e=r(867);n.exports=function(n,t,r){return e.forEach(r,(function(r){n=r(n,t)})),n}},655:(n,t,r)=>{"use strict";var e=r(155),u=r(867),i=r(16),o={"Content-Type":"application/x-www-form-urlencoded"};function a(n,t){!u.isUndefined(n)&&u.isUndefined(n["Content-Type"])&&(n["Content-Type"]=t)}var f,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(f=r(448)),f),transformRequest:[function(n,t){return i(t,"Accept"),i(t,"Content-Type"),u.isFormData(n)||u.isArrayBuffer(n)||u.isBuffer(n)||u.isStream(n)||u.isFile(n)||u.isBlob(n)?n:u.isArrayBufferView(n)?n.buffer:u.isURLSearchParams(n)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),n.toString()):u.isObject(n)?(a(t,"application/json;charset=utf-8"),JSON.stringify(n)):n}],transformResponse:[function(n){if("string"==typeof n)try{n=JSON.parse(n)}catch(n){}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(n){return n>=200&&n<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},u.forEach(["delete","get","head"],(function(n){c.headers[n]={}})),u.forEach(["post","put","patch"],(function(n){c.headers[n]=u.merge(o)})),n.exports=c},849:n=>{"use strict";n.exports=function(n,t){return function(){for(var r=new Array(arguments.length),e=0;e{"use strict";var e=r(867);function u(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}n.exports=function(n,t,r){if(!t)return n;var i;if(r)i=r(t);else if(e.isURLSearchParams(t))i=t.toString();else{var o=[];e.forEach(t,(function(n,t){null!=n&&(e.isArray(n)?t+="[]":n=[n],e.forEach(n,(function(n){e.isDate(n)?n=n.toISOString():e.isObject(n)&&(n=JSON.stringify(n)),o.push(u(t)+"="+u(n))})))})),i=o.join("&")}if(i){var a=n.indexOf("#");-1!==a&&(n=n.slice(0,a)),n+=(-1===n.indexOf("?")?"?":"&")+i}return n}},303:n=>{"use strict";n.exports=function(n,t){return t?n.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):n}},372:(n,t,r)=>{"use strict";var e=r(867);n.exports=e.isStandardBrowserEnv()?{write:function(n,t,r,u,i,o){var a=[];a.push(n+"="+encodeURIComponent(t)),e.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),e.isString(u)&&a.push("path="+u),e.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){var t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:n=>{"use strict";n.exports=function(n){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(n)}},268:n=>{"use strict";n.exports=function(n){return"object"==typeof n&&!0===n.isAxiosError}},985:(n,t,r)=>{"use strict";var e=r(867);n.exports=e.isStandardBrowserEnv()?function(){var n,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function u(n){var e=n;return t&&(r.setAttribute("href",e),e=r.href),r.setAttribute("href",e),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return n=u(window.location.href),function(t){var r=e.isString(t)?u(t):t;return r.protocol===n.protocol&&r.host===n.host}}():function(){return!0}},16:(n,t,r)=>{"use strict";var e=r(867);n.exports=function(n,t){e.forEach(n,(function(r,e){e!==t&&e.toUpperCase()===t.toUpperCase()&&(n[t]=r,delete n[e])}))}},109:(n,t,r)=>{"use strict";var e=r(867),u=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];n.exports=function(n){var t,r,i,o={};return n?(e.forEach(n.split("\n"),(function(n){if(i=n.indexOf(":"),t=e.trim(n.substr(0,i)).toLowerCase(),r=e.trim(n.substr(i+1)),t){if(o[t]&&u.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o}},713:n=>{"use strict";n.exports=function(n){return function(t){return n.apply(null,t)}}},867:(n,t,r)=>{"use strict";var e=r(849),u=Object.prototype.toString;function i(n){return"[object Array]"===u.call(n)}function o(n){return void 0===n}function a(n){return null!==n&&"object"==typeof n}function f(n){if("[object Object]"!==u.call(n))return!1;var t=Object.getPrototypeOf(n);return null===t||t===Object.prototype}function c(n){return"[object Function]"===u.call(n)}function s(n,t){if(null!=n)if("object"!=typeof n&&(n=[n]),i(n))for(var r=0,e=n.length;r{r(689)},689:(n,t,r)=>{window._=r(486),window.axios=r(669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest"},486:function(n,t,r){var e;n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",f=16,c=32,s=64,l=128,h=256,p=1/0,v=9007199254740991,_=NaN,d=4294967295,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",f],["flip",512],["partial",c],["partialRight",s],["rearg",h]],y="[object Arguments]",m="[object Array]",w="[object Boolean]",b="[object Date]",x="[object Error]",j="[object Function]",A="[object GeneratorFunction]",O="[object Map]",E="[object Number]",R="[object Object]",S="[object Promise]",k="[object RegExp]",C="[object Set]",T="[object String]",L="[object Symbol]",I="[object WeakMap]",U="[object ArrayBuffer]",z="[object DataView]",B="[object Float32Array]",N="[object Float64Array]",D="[object Int8Array]",P="[object Int16Array]",W="[object Int32Array]",q="[object Uint8Array]",F="[object Uint8ClampedArray]",$="[object Uint16Array]",M="[object Uint32Array]",H=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,X=RegExp(K.source),G=RegExp(J.source),Y=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),an=/^\s+/,fn=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sn=/\{\n\/\* \[wrapped with (.+)\] \*/,ln=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dn=/\w*$/,gn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,bn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,On="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",En="\\u2700-\\u27bf",Rn="a-z\\xdf-\\xf6\\xf8-\\xff",Sn="A-Z\\xc0-\\xd6\\xd8-\\xde",kn="\\ufe0e\\ufe0f",Cn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Tn="['’]",Ln="[\\ud800-\\udfff]",In="["+Cn+"]",Un="["+On+"]",zn="\\d+",Bn="[\\u2700-\\u27bf]",Nn="["+Rn+"]",Dn="[^\\ud800-\\udfff"+Cn+zn+En+Rn+Sn+"]",Pn="\\ud83c[\\udffb-\\udfff]",Wn="[^\\ud800-\\udfff]",qn="(?:\\ud83c[\\udde6-\\uddff]){2}",Fn="[\\ud800-\\udbff][\\udc00-\\udfff]",$n="["+Sn+"]",Mn="(?:"+Nn+"|"+Dn+")",Hn="(?:"+$n+"|"+Dn+")",Vn="(?:['’](?:d|ll|m|re|s|t|ve))?",Zn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Kn="(?:"+Un+"|"+Pn+")"+"?",Jn="[\\ufe0e\\ufe0f]?",Xn=Jn+Kn+("(?:\\u200d(?:"+[Wn,qn,Fn].join("|")+")"+Jn+Kn+")*"),Gn="(?:"+[Bn,qn,Fn].join("|")+")"+Xn,Yn="(?:"+[Wn+Un+"?",Un,qn,Fn,Ln].join("|")+")",Qn=RegExp(Tn,"g"),nt=RegExp(Un,"g"),tt=RegExp(Pn+"(?="+Pn+")|"+Yn+Xn,"g"),rt=RegExp([$n+"?"+Nn+"+"+Vn+"(?="+[In,$n,"$"].join("|")+")",Hn+"+"+Zn+"(?="+[In,$n+Mn,"$"].join("|")+")",$n+"?"+Mn+"+"+Vn,$n+"+"+Zn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zn,Gn].join("|"),"g"),et=RegExp("[\\u200d\\ud800-\\udfff"+On+kn+"]"),ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,at={};at[B]=at[N]=at[D]=at[P]=at[W]=at[q]=at[F]=at[$]=at[M]=!0,at[y]=at[m]=at[U]=at[w]=at[z]=at[b]=at[x]=at[j]=at[O]=at[E]=at[R]=at[k]=at[C]=at[T]=at[I]=!1;var ft={};ft[y]=ft[m]=ft[U]=ft[z]=ft[w]=ft[b]=ft[B]=ft[N]=ft[D]=ft[P]=ft[W]=ft[O]=ft[E]=ft[R]=ft[k]=ft[C]=ft[T]=ft[L]=ft[q]=ft[F]=ft[$]=ft[M]=!0,ft[x]=ft[j]=ft[I]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ht="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pt="object"==typeof self&&self&&self.Object===Object&&self,vt=ht||pt||Function("return this")(),_t=t&&!t.nodeType&&t,dt=_t&&n&&!n.nodeType&&n,gt=dt&&dt.exports===_t,yt=gt&&ht.process,mt=function(){try{var n=dt&&dt.require&&dt.require("util").types;return n||yt&&yt.binding&&yt.binding("util")}catch(n){}}(),wt=mt&&mt.isArrayBuffer,bt=mt&&mt.isDate,xt=mt&&mt.isMap,jt=mt&&mt.isRegExp,At=mt&&mt.isSet,Ot=mt&&mt.isTypedArray;function Et(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Rt(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function It(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function rr(n,t){for(var r=n.length;r--&&Ft(t,n[r],0)>-1;);return r}function er(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}var ur=Zt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),ir=Zt({"&":"&","<":"<",">":">",'"':""","'":"'"});function or(n){return"\\"+ct[n]}function ar(n){return et.test(n)}function fr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function cr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"});var gr=function n(t){var r,e=(t=null==t?vt:gr.defaults(vt.Object(),t,gr.pick(vt,it))).Array,fn=t.Date,On=t.Error,En=t.Function,Rn=t.Math,Sn=t.Object,kn=t.RegExp,Cn=t.String,Tn=t.TypeError,Ln=e.prototype,In=En.prototype,Un=Sn.prototype,zn=t["__core-js_shared__"],Bn=In.toString,Nn=Un.hasOwnProperty,Dn=0,Pn=(r=/[^.]+$/.exec(zn&&zn.keys&&zn.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Wn=Un.toString,qn=Bn.call(Sn),Fn=vt._,$n=kn("^"+Bn.call(Nn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mn=gt?t.Buffer:u,Hn=t.Symbol,Vn=t.Uint8Array,Zn=Mn?Mn.allocUnsafe:u,Kn=cr(Sn.getPrototypeOf,Sn),Jn=Sn.create,Xn=Un.propertyIsEnumerable,Gn=Ln.splice,Yn=Hn?Hn.isConcatSpreadable:u,tt=Hn?Hn.iterator:u,et=Hn?Hn.toStringTag:u,ct=function(){try{var n=pi(Sn,"defineProperty");return n({},"",{}),n}catch(n){}}(),ht=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,pt=fn&&fn.now!==vt.Date.now&&fn.now,_t=t.setTimeout!==vt.setTimeout&&t.setTimeout,dt=Rn.ceil,yt=Rn.floor,mt=Sn.getOwnPropertySymbols,Pt=Mn?Mn.isBuffer:u,Zt=t.isFinite,yr=Ln.join,mr=cr(Sn.keys,Sn),wr=Rn.max,br=Rn.min,xr=fn.now,jr=t.parseInt,Ar=Rn.random,Or=Ln.reverse,Er=pi(t,"DataView"),Rr=pi(t,"Map"),Sr=pi(t,"Promise"),kr=pi(t,"Set"),Cr=pi(t,"WeakMap"),Tr=pi(Sn,"create"),Lr=Cr&&new Cr,Ir={},Ur=Wi(Er),zr=Wi(Rr),Br=Wi(Sr),Nr=Wi(kr),Dr=Wi(Cr),Pr=Hn?Hn.prototype:u,Wr=Pr?Pr.valueOf:u,qr=Pr?Pr.toString:u;function Fr(n){if(ua(n)&&!Zo(n)&&!(n instanceof Vr)){if(n instanceof Hr)return n;if(Nn.call(n,"__wrapped__"))return qi(n)}return new Hr(n)}var $r=function(){function n(){}return function(t){if(!ea(t))return{};if(Jn)return Jn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Mr(){}function Hr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Vr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Zr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function se(n,t,r,e,i,o){var a,f=1&t,c=2&t,s=4&t;if(r&&(a=i?r(n,e,i,o):r(n)),a!==u)return a;if(!ea(n))return n;var l=Zo(n);if(l){if(a=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Nn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!f)return Tu(n,a)}else{var h=di(n),p=h==j||h==A;if(Go(n))return Ou(n,f);if(h==R||h==y||p&&!i){if(a=c||p?{}:yi(n),!f)return c?function(n,t){return Lu(n,_i(n),t)}(n,function(n,t){return n&&Lu(t,za(t),n)}(a,n)):function(n,t){return Lu(n,vi(n),t)}(n,oe(a,n))}else{if(!ft[h])return i?n:{};a=function(n,t,r){var e=n.constructor;switch(t){case U:return Eu(n);case w:case b:return new e(+n);case z:return function(n,t){var r=t?Eu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case B:case N:case D:case P:case W:case q:case F:case $:case M:return Ru(n,r);case O:return new e;case E:case T:return new e(n);case k:return function(n){var t=new n.constructor(n.source,dn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case C:return new e;case L:return u=n,Wr?Sn(Wr.call(u)):{}}var u}(n,h,f)}}o||(o=new Gr);var v=o.get(n);if(v)return v;o.set(n,a),ca(n)?n.forEach((function(e){a.add(se(e,t,r,e,n,o))})):ia(n)&&n.forEach((function(e,u){a.set(u,se(e,t,r,u,n,o))}));var _=l?u:(s?c?oi:ii:c?za:Ua)(n);return St(_||n,(function(e,u){_&&(e=n[u=e]),ee(a,u,se(e,t,r,u,n,o))})),a}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=Sn(n);e--;){var i=r[e],o=t[i],a=n[i];if(a===u&&!(i in n)||!o(a))return!1}return!0}function he(n,t,r){if("function"!=typeof n)throw new Tn(i);return Ii((function(){n.apply(u,r)}),t)}function pe(n,t,r,e){var u=-1,i=Lt,o=!0,a=n.length,f=[],c=t.length;if(!a)return f;r&&(t=Ut(t,Yt(r))),e?(i=It,o=!1):t.length>=200&&(i=nr,o=!1,t=new Xr(t));n:for(;++u-1},Kr.prototype.set=function(n,t){var r=this.__data__,e=ue(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Jr.prototype.clear=function(){this.size=0,this.__data__={hash:new Zr,map:new(Rr||Kr),string:new Zr}},Jr.prototype.delete=function(n){var t=li(this,n).delete(n);return this.size-=t?1:0,t},Jr.prototype.get=function(n){return li(this,n).get(n)},Jr.prototype.has=function(n){return li(this,n).has(n)},Jr.prototype.set=function(n,t){var r=li(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Xr.prototype.add=Xr.prototype.push=function(n){return this.__data__.set(n,o),this},Xr.prototype.has=function(n){return this.__data__.has(n)},Gr.prototype.clear=function(){this.__data__=new Kr,this.size=0},Gr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Gr.prototype.get=function(n){return this.__data__.get(n)},Gr.prototype.has=function(n){return this.__data__.has(n)},Gr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Kr){var e=r.__data__;if(!Rr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Jr(e)}return r.set(n,t),this.size=r.size,this};var ve=zu(xe),_e=zu(je,!0);function de(n,t){var r=!0;return ve(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(a)?t>1?me(a,t-1,r,e,u):zt(u,a):e||(u[u.length]=a)}return u}var we=Bu(),be=Bu(!0);function xe(n,t){return n&&we(n,t,Ua)}function je(n,t){return n&&be(n,t,Ua)}function Ae(n,t){return Tt(t,(function(t){return na(n[t])}))}function Oe(n,t){for(var r=0,e=(t=bu(t,n)).length;null!=n&&rt}function ke(n,t){return null!=n&&Nn.call(n,t)}function Ce(n,t){return null!=n&&t in Sn(n)}function Te(n,t,r){for(var i=r?It:Lt,o=n[0].length,a=n.length,f=a,c=e(a),s=1/0,l=[];f--;){var h=n[f];f&&t&&(h=Ut(h,Yt(t))),s=br(h.length,s),c[f]=!r&&(t||o>=120&&h.length>=120)?new Xr(f&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p=a?f:f*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ze(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)a!==n&&Gn.call(a,f,1),Gn.call(n,f,1);return n}function Je(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;wi(u)?Gn.call(n,u,1):pu(n,u)}}return n}function Xe(n,t){return n+yt(Ar()*(t-n+1))}function Ge(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=yt(t/2))&&(n+=n)}while(t);return r}function Ye(n,t){return Ui(Si(n,t,af),n+"")}function Qe(n){return Qr($a(n))}function nu(n,t){var r=$a(n);return Ni(r,ce(t,0,r.length))}function tu(n,t,r,e){if(!ea(n))return n;for(var i=-1,o=(t=bu(t,n)).length,a=o-1,f=n;null!=f&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=e(i);++u>>1,o=n[i];null!==o&&!la(o)&&(r?o<=t:o=200){var c=t?null:Gu(n);if(c)return lr(c);o=!1,u=nr,f=new Xr}else f=t?[]:a;n:for(;++e=e?n:iu(n,t,r)}var Au=ht||function(n){return vt.clearTimeout(n)};function Ou(n,t){if(t)return n.slice();var r=n.length,e=Zn?Zn(r):new n.constructor(r);return n.copy(e),e}function Eu(n){var t=new n.constructor(n.byteLength);return new Vn(t).set(new Vn(n)),t}function Ru(n,t){var r=t?Eu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Su(n,t){if(n!==t){var r=n!==u,e=null===n,i=n==n,o=la(n),a=t!==u,f=null===t,c=t==t,s=la(t);if(!f&&!s&&!o&&n>t||o&&a&&c&&!f&&!s||e&&a&&c||!r&&c||!i)return 1;if(!e&&!o&&!s&&n1?r[i-1]:u,a=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,a&&bi(r[0],r[1],a)&&(o=i<3?u:o,i=1),t=Sn(t);++e-1?i[o?t[a]:a]:u}}function qu(n){return ui((function(t){var r=t.length,e=r,o=Hr.prototype.thru;for(n&&t.reverse();e--;){var a=t[e];if("function"!=typeof a)throw new Tn(i);if(o&&!f&&"wrapper"==fi(a))var f=new Hr([],!0)}for(e=f?e:r;++e1&&m.reverse(),p&&sf))return!1;var s=o.get(n),l=o.get(t);if(s&&l)return s==t&&l==n;var h=-1,p=!0,v=2&r?new Xr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return St(g,(function(r){var e="_."+r[0];t&r[1]&&!Lt(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(sn);return t?t[1].split(ln):[]}(e),r)))}function Bi(n){var t=0,r=0;return function(){var e=xr(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Ni(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,ao(n,r)}));function vo(n){var t=Fr(n);return t.__chain__=!0,t}function _o(n,t){return t(n)}var go=ui((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return fe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Vr&&wi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:_o,args:[i],thisArg:u}),new Hr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var yo=Iu((function(n,t,r){Nn.call(n,r)?++n[r]:ae(n,r,1)}));var mo=Wu(Hi),wo=Wu(Vi);function bo(n,t){return(Zo(n)?St:ve)(n,si(t,3))}function xo(n,t){return(Zo(n)?kt:_e)(n,si(t,3))}var jo=Iu((function(n,t,r){Nn.call(n,r)?n[r].push(t):ae(n,r,[t])}));var Ao=Ye((function(n,t,r){var u=-1,i="function"==typeof t,o=Jo(n)?e(n.length):[];return ve(n,(function(n){o[++u]=i?Et(t,n,r):Le(n,t,r)})),o})),Oo=Iu((function(n,t,r){ae(n,r,t)}));function Eo(n,t){return(Zo(n)?Ut:qe)(n,si(t,3))}var Ro=Iu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var So=Ye((function(n,t){if(null==n)return[];var r=t.length;return r>1&&bi(n,t[0],t[1])?t=[]:r>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Ve(n,me(t,1),[])})),ko=pt||function(){return vt.Date.now()};function Co(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Qu(n,l,u,u,u,u,t)}function To(n,t){var r;if("function"!=typeof t)throw new Tn(i);return n=ga(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var Lo=Ye((function(n,t,r){var e=1;if(r.length){var u=sr(r,ci(Lo));e|=c}return Qu(n,e,t,r,u)})),Io=Ye((function(n,t,r){var e=3;if(r.length){var u=sr(r,ci(Io));e|=c}return Qu(t,e,n,r,u)}));function Uo(n,t,r){var e,o,a,f,c,s,l=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new Tn(i);function _(t){var r=e,i=o;return e=o=u,l=t,f=n.apply(i,r)}function d(n){return l=n,c=Ii(y,t),h?_(n):f}function g(n){var r=n-s;return s===u||r>=t||r<0||p&&n-l>=a}function y(){var n=ko();if(g(n))return m(n);c=Ii(y,function(n){var r=t-(n-s);return p?br(r,a-(n-l)):r}(n))}function m(n){return c=u,v&&e?_(n):(e=o=u,f)}function w(){var n=ko(),r=g(n);if(e=arguments,o=this,s=n,r){if(c===u)return d(s);if(p)return Au(c),c=Ii(y,t),_(s)}return c===u&&(c=Ii(y,t)),f}return t=ma(t)||0,ea(r)&&(h=!!r.leading,a=(p="maxWait"in r)?wr(ma(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),w.cancel=function(){c!==u&&Au(c),l=0,e=s=o=c=u},w.flush=function(){return c===u?f:m(ko())},w}var zo=Ye((function(n,t){return he(n,1,t)})),Bo=Ye((function(n,t,r){return he(n,ma(t)||0,r)}));function No(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new Tn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(No.Cache||Jr),r}function Do(n){if("function"!=typeof n)throw new Tn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}No.Cache=Jr;var Po=xu((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Ut(t[0],Yt(si())):Ut(me(t,1),Yt(si()))).length;return Ye((function(e){for(var u=-1,i=br(e.length,r);++u=t})),Vo=Ie(function(){return arguments}())?Ie:function(n){return ua(n)&&Nn.call(n,"callee")&&!Xn.call(n,"callee")},Zo=e.isArray,Ko=wt?Yt(wt):function(n){return ua(n)&&Re(n)==U};function Jo(n){return null!=n&&ra(n.length)&&!na(n)}function Xo(n){return ua(n)&&Jo(n)}var Go=Pt||wf,Yo=bt?Yt(bt):function(n){return ua(n)&&Re(n)==b};function Qo(n){if(!ua(n))return!1;var t=Re(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!aa(n)}function na(n){if(!ea(n))return!1;var t=Re(n);return t==j||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ta(n){return"number"==typeof n&&n==ga(n)}function ra(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function ea(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ua(n){return null!=n&&"object"==typeof n}var ia=xt?Yt(xt):function(n){return ua(n)&&di(n)==O};function oa(n){return"number"==typeof n||ua(n)&&Re(n)==E}function aa(n){if(!ua(n)||Re(n)!=R)return!1;var t=Kn(n);if(null===t)return!0;var r=Nn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Bn.call(r)==qn}var fa=jt?Yt(jt):function(n){return ua(n)&&Re(n)==k};var ca=At?Yt(At):function(n){return ua(n)&&di(n)==C};function sa(n){return"string"==typeof n||!Zo(n)&&ua(n)&&Re(n)==T}function la(n){return"symbol"==typeof n||ua(n)&&Re(n)==L}var ha=Ot?Yt(Ot):function(n){return ua(n)&&ra(n.length)&&!!at[Re(n)]};var pa=Ku(We),va=Ku((function(n,t){return n<=t}));function _a(n){if(!n)return[];if(Jo(n))return sa(n)?vr(n):Tu(n);if(tt&&n[tt])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[tt]());var t=di(n);return(t==O?fr:t==C?lr:$a)(n)}function da(n){return n?(n=ma(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function ga(n){var t=da(n),r=t%1;return t==t?r?t-r:t:0}function ya(n){return n?ce(ga(n),0,d):0}function ma(n){if("number"==typeof n)return n;if(la(n))return _;if(ea(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ea(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Gt(n);var r=yn.test(n);return r||wn.test(n)?lt(n.slice(2),r?2:8):gn.test(n)?_:+n}function wa(n){return Lu(n,za(n))}function ba(n){return null==n?"":lu(n)}var xa=Uu((function(n,t){if(Oi(t)||Jo(t))Lu(t,Ua(t),n);else for(var r in t)Nn.call(t,r)&&ee(n,r,t[r])})),ja=Uu((function(n,t){Lu(t,za(t),n)})),Aa=Uu((function(n,t,r,e){Lu(t,za(t),n,e)})),Oa=Uu((function(n,t,r,e){Lu(t,Ua(t),n,e)})),Ea=ui(fe);var Ra=Ye((function(n,t){n=Sn(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&bi(t[0],t[1],i)&&(e=1);++r1),t})),Lu(n,oi(n),r),e&&(r=se(r,7,ri));for(var u=t.length;u--;)pu(r,t[u]);return r}));var Pa=ui((function(n,t){return null==n?{}:function(n,t){return Ze(n,t,(function(t,r){return Ca(n,r)}))}(n,t)}));function Wa(n,t){if(null==n)return{};var r=Ut(oi(n),(function(n){return[n]}));return t=si(t),Ze(n,r,(function(n,r){return t(n,r[0])}))}var qa=Yu(Ua),Fa=Yu(za);function $a(n){return null==n?[]:Qt(n,Ua(n))}var Ma=Du((function(n,t,r){return t=t.toLowerCase(),n+(r?Ha(t):t)}));function Ha(n){return Qa(ba(n).toLowerCase())}function Va(n){return(n=ba(n))&&n.replace(xn,ur).replace(nt,"")}var Za=Du((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ka=Du((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ja=Nu("toLowerCase");var Xa=Du((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ga=Du((function(n,t,r){return n+(r?" ":"")+Qa(t)}));var Ya=Du((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Qa=Nu("toUpperCase");function nf(n,t,r){return n=ba(n),(t=r?u:t)===u?function(n){return ut.test(n)}(n)?function(n){return n.match(rt)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var tf=Ye((function(n,t){try{return Et(n,u,t)}catch(n){return Qo(n)?n:new On(n)}})),rf=ui((function(n,t){return St(t,(function(t){t=Pi(t),ae(n,t,Lo(n[t],n))})),n}));function ef(n){return function(){return n}}var uf=qu(),of=qu(!0);function af(n){return n}function ff(n){return Ne("function"==typeof n?n:se(n,1))}var cf=Ye((function(n,t){return function(r){return Le(r,n,t)}})),sf=Ye((function(n,t){return function(r){return Le(n,r,t)}}));function lf(n,t,r){var e=Ua(t),u=Ae(t,e);null!=r||ea(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=Ae(t,Ua(t)));var i=!(ea(r)&&"chain"in r&&!r.chain),o=na(n);return St(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__),u=r.__actions__=Tu(this.__actions__);return u.push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,zt([this.value()],arguments))})})),n}function hf(){}var pf=Hu(Ut),vf=Hu(Ct),_f=Hu(Dt);function df(n){return xi(n)?Vt(Pi(n)):function(n){return function(t){return Oe(t,n)}}(n)}var gf=Zu(),yf=Zu(!0);function mf(){return[]}function wf(){return!1}var bf=Mu((function(n,t){return n+t}),0),xf=Xu("ceil"),jf=Mu((function(n,t){return n/t}),1),Af=Xu("floor");var Of,Ef=Mu((function(n,t){return n*t}),1),Rf=Xu("round"),Sf=Mu((function(n,t){return n-t}),0);return Fr.after=function(n,t){if("function"!=typeof t)throw new Tn(i);return n=ga(n),function(){if(--n<1)return t.apply(this,arguments)}},Fr.ary=Co,Fr.assign=xa,Fr.assignIn=ja,Fr.assignInWith=Aa,Fr.assignWith=Oa,Fr.at=Ea,Fr.before=To,Fr.bind=Lo,Fr.bindAll=rf,Fr.bindKey=Io,Fr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Zo(n)?n:[n]},Fr.chain=vo,Fr.chunk=function(n,t,r){t=(r?bi(n,t,r):t===u)?1:wr(ga(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,a=0,f=e(dt(i/t));oi?0:i+r),(e=e===u||e>i?i:ga(e))<0&&(e+=i),e=r>e?0:ya(e);r>>0)?(n=ba(n))&&("string"==typeof t||null!=t&&!fa(t))&&!(t=lu(t))&&ar(n)?ju(vr(n),0,r):n.split(t,r):[]},Fr.spread=function(n,t){if("function"!=typeof n)throw new Tn(i);return t=null==t?0:wr(ga(t),0),Ye((function(r){var e=r[t],u=ju(r,0,t);return e&&zt(u,e),Et(n,this,u)}))},Fr.tail=function(n){var t=null==n?0:n.length;return t?iu(n,1,t):[]},Fr.take=function(n,t,r){return n&&n.length?iu(n,0,(t=r||t===u?1:ga(t))<0?0:t):[]},Fr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?iu(n,(t=e-(t=r||t===u?1:ga(t)))<0?0:t,e):[]},Fr.takeRightWhile=function(n,t){return n&&n.length?_u(n,si(t,3),!1,!0):[]},Fr.takeWhile=function(n,t){return n&&n.length?_u(n,si(t,3)):[]},Fr.tap=function(n,t){return t(n),n},Fr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new Tn(i);return ea(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Uo(n,t,{leading:e,maxWait:t,trailing:u})},Fr.thru=_o,Fr.toArray=_a,Fr.toPairs=qa,Fr.toPairsIn=Fa,Fr.toPath=function(n){return Zo(n)?Ut(n,Pi):la(n)?[n]:Tu(Di(ba(n)))},Fr.toPlainObject=wa,Fr.transform=function(n,t,r){var e=Zo(n),u=e||Go(n)||ha(n);if(t=si(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:ea(n)&&na(i)?$r(Kn(n)):{}}return(u?St:xe)(n,(function(n,e,u){return t(r,n,e,u)})),r},Fr.unary=function(n){return Co(n,1)},Fr.union=eo,Fr.unionBy=uo,Fr.unionWith=io,Fr.uniq=function(n){return n&&n.length?hu(n):[]},Fr.uniqBy=function(n,t){return n&&n.length?hu(n,si(t,2)):[]},Fr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?hu(n,u,t):[]},Fr.unset=function(n,t){return null==n||pu(n,t)},Fr.unzip=oo,Fr.unzipWith=ao,Fr.update=function(n,t,r){return null==n?n:vu(n,t,wu(r))},Fr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:vu(n,t,wu(r),e)},Fr.values=$a,Fr.valuesIn=function(n){return null==n?[]:Qt(n,za(n))},Fr.without=fo,Fr.words=nf,Fr.wrap=function(n,t){return Wo(wu(t),n)},Fr.xor=co,Fr.xorBy=so,Fr.xorWith=lo,Fr.zip=ho,Fr.zipObject=function(n,t){return yu(n||[],t||[],ee)},Fr.zipObjectDeep=function(n,t){return yu(n||[],t||[],tu)},Fr.zipWith=po,Fr.entries=qa,Fr.entriesIn=Fa,Fr.extend=ja,Fr.extendWith=Aa,lf(Fr,Fr),Fr.add=bf,Fr.attempt=tf,Fr.camelCase=Ma,Fr.capitalize=Ha,Fr.ceil=xf,Fr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=ma(r))==r?r:0),t!==u&&(t=(t=ma(t))==t?t:0),ce(ma(n),t,r)},Fr.clone=function(n){return se(n,4)},Fr.cloneDeep=function(n){return se(n,5)},Fr.cloneDeepWith=function(n,t){return se(n,5,t="function"==typeof t?t:u)},Fr.cloneWith=function(n,t){return se(n,4,t="function"==typeof t?t:u)},Fr.conformsTo=function(n,t){return null==t||le(n,t,Ua(t))},Fr.deburr=Va,Fr.defaultTo=function(n,t){return null==n||n!=n?t:n},Fr.divide=jf,Fr.endsWith=function(n,t,r){n=ba(n),t=lu(t);var e=n.length,i=r=r===u?e:ce(ga(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Fr.eq=$o,Fr.escape=function(n){return(n=ba(n))&&G.test(n)?n.replace(J,ir):n},Fr.escapeRegExp=function(n){return(n=ba(n))&&on.test(n)?n.replace(un,"\\$&"):n},Fr.every=function(n,t,r){var e=Zo(n)?Ct:de;return r&&bi(n,t,r)&&(t=u),e(n,si(t,3))},Fr.find=mo,Fr.findIndex=Hi,Fr.findKey=function(n,t){return Wt(n,si(t,3),xe)},Fr.findLast=wo,Fr.findLastIndex=Vi,Fr.findLastKey=function(n,t){return Wt(n,si(t,3),je)},Fr.floor=Af,Fr.forEach=bo,Fr.forEachRight=xo,Fr.forIn=function(n,t){return null==n?n:we(n,si(t,3),za)},Fr.forInRight=function(n,t){return null==n?n:be(n,si(t,3),za)},Fr.forOwn=function(n,t){return n&&xe(n,si(t,3))},Fr.forOwnRight=function(n,t){return n&&je(n,si(t,3))},Fr.get=ka,Fr.gt=Mo,Fr.gte=Ho,Fr.has=function(n,t){return null!=n&&gi(n,t,ke)},Fr.hasIn=Ca,Fr.head=Ki,Fr.identity=af,Fr.includes=function(n,t,r,e){n=Jo(n)?n:$a(n),r=r&&!e?ga(r):0;var u=n.length;return r<0&&(r=wr(u+r,0)),sa(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&Ft(n,t,r)>-1},Fr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:ga(r);return u<0&&(u=wr(e+u,0)),Ft(n,t,u)},Fr.inRange=function(n,t,r){return t=da(t),r===u?(r=t,t=0):r=da(r),function(n,t,r){return n>=br(t,r)&&n=-9007199254740991&&n<=v},Fr.isSet=ca,Fr.isString=sa,Fr.isSymbol=la,Fr.isTypedArray=ha,Fr.isUndefined=function(n){return n===u},Fr.isWeakMap=function(n){return ua(n)&&di(n)==I},Fr.isWeakSet=function(n){return ua(n)&&"[object WeakSet]"==Re(n)},Fr.join=function(n,t){return null==n?"":yr.call(n,t)},Fr.kebabCase=Za,Fr.last=Yi,Fr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=ga(r))<0?wr(e+i,0):br(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):qt(n,Mt,i,!0)},Fr.lowerCase=Ka,Fr.lowerFirst=Ja,Fr.lt=pa,Fr.lte=va,Fr.max=function(n){return n&&n.length?ge(n,af,Se):u},Fr.maxBy=function(n,t){return n&&n.length?ge(n,si(t,2),Se):u},Fr.mean=function(n){return Ht(n,af)},Fr.meanBy=function(n,t){return Ht(n,si(t,2))},Fr.min=function(n){return n&&n.length?ge(n,af,We):u},Fr.minBy=function(n,t){return n&&n.length?ge(n,si(t,2),We):u},Fr.stubArray=mf,Fr.stubFalse=wf,Fr.stubObject=function(){return{}},Fr.stubString=function(){return""},Fr.stubTrue=function(){return!0},Fr.multiply=Ef,Fr.nth=function(n,t){return n&&n.length?He(n,ga(t)):u},Fr.noConflict=function(){return vt._===this&&(vt._=Fn),this},Fr.noop=hf,Fr.now=ko,Fr.pad=function(n,t,r){n=ba(n);var e=(t=ga(t))?pr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Vu(yt(u),r)+n+Vu(dt(u),r)},Fr.padEnd=function(n,t,r){n=ba(n);var e=(t=ga(t))?pr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=Ar();return br(n+i*(t-n+st("1e-"+((i+"").length-1))),t)}return Xe(n,t)},Fr.reduce=function(n,t,r){var e=Zo(n)?Bt:Kt,u=arguments.length<3;return e(n,si(t,4),r,u,ve)},Fr.reduceRight=function(n,t,r){var e=Zo(n)?Nt:Kt,u=arguments.length<3;return e(n,si(t,4),r,u,_e)},Fr.repeat=function(n,t,r){return t=(r?bi(n,t,r):t===u)?1:ga(t),Ge(ba(n),t)},Fr.replace=function(){var n=arguments,t=ba(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Fr.result=function(n,t,r){var e=-1,i=(t=bu(t,n)).length;for(i||(i=1,n=u);++ev)return[];var r=d,e=br(n,d);t=si(t),n-=d;for(var u=Xt(e,t);++r=o)return n;var f=r-pr(e);if(f<1)return e;var c=a?ju(a,0,f).join(""):n.slice(0,f);if(i===u)return c+e;if(a&&(f+=c.length-f),fa(i)){if(n.slice(f).search(i)){var s,l=c;for(i.global||(i=kn(i.source,ba(dn.exec(i))+"g")),i.lastIndex=0;s=i.exec(l);)var h=s.index;c=c.slice(0,h===u?f:h)}}else if(n.indexOf(lu(i),f)!=f){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Fr.unescape=function(n){return(n=ba(n))&&X.test(n)?n.replace(K,dr):n},Fr.uniqueId=function(n){var t=++Dn;return ba(n)+t},Fr.upperCase=Ya,Fr.upperFirst=Qa,Fr.each=bo,Fr.eachRight=xo,Fr.first=Ki,lf(Fr,(Of={},xe(Fr,(function(n,t){Nn.call(Fr.prototype,t)||(Of[t]=n)})),Of),{chain:!1}),Fr.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Fr[n].placeholder=Fr})),St(["drop","take"],(function(n,t){Vr.prototype[n]=function(r){r=r===u?1:wr(ga(r),0);var e=this.__filtered__&&!t?new Vr(this):this.clone();return e.__filtered__?e.__takeCount__=br(r,e.__takeCount__):e.__views__.push({size:br(r,d),type:n+(e.__dir__<0?"Right":"")}),e},Vr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),St(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Vr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:si(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),St(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Vr.prototype[n]=function(){return this[r](1).value()[0]}})),St(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Vr.prototype[n]=function(){return this.__filtered__?new Vr(this):this[r](1)}})),Vr.prototype.compact=function(){return this.filter(af)},Vr.prototype.find=function(n){return this.filter(n).head()},Vr.prototype.findLast=function(n){return this.reverse().find(n)},Vr.prototype.invokeMap=Ye((function(n,t){return"function"==typeof n?new Vr(this):this.map((function(r){return Le(r,n,t)}))})),Vr.prototype.reject=function(n){return this.filter(Do(si(n)))},Vr.prototype.slice=function(n,t){n=ga(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Vr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=ga(t))<0?r.dropRight(-t):r.take(t-n)),r)},Vr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Vr.prototype.toArray=function(){return this.take(d)},xe(Vr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Fr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Fr.prototype[t]=function(){var t=this.__wrapped__,a=e?[1]:arguments,f=t instanceof Vr,c=a[0],s=f||Zo(t),l=function(n){var t=i.apply(Fr,zt([n],a));return e&&h?t[0]:t};s&&r&&"function"==typeof c&&1!=c.length&&(f=s=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=f&&!p;if(!o&&s){t=_?t:new Vr(this);var d=n.apply(t,a);return d.__actions__.push({func:_o,args:[l],thisArg:u}),new Hr(d,h)}return v&&_?n.apply(this,a):(d=this.thru(l),v?e?d.value()[0]:d.value():d)})})),St(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Ln[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Fr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Zo(u)?u:[],n)}return this[r]((function(r){return t.apply(Zo(r)?r:[],n)}))}})),xe(Vr.prototype,(function(n,t){var r=Fr[t];if(r){var e=r.name+"";Nn.call(Ir,e)||(Ir[e]=[]),Ir[e].push({name:t,func:r})}})),Ir[Fu(u,2).name]=[{name:"wrapper",func:u}],Vr.prototype.clone=function(){var n=new Vr(this.__wrapped__);return n.__actions__=Tu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Tu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Tu(this.__views__),n},Vr.prototype.reverse=function(){if(this.__filtered__){var n=new Vr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Vr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Zo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Fr.prototype.plant=function(n){for(var t,r=this;r instanceof Mr;){var e=qi(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Fr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Vr){var t=n;return this.__actions__.length&&(t=new Vr(this)),(t=t.reverse()).__actions__.push({func:_o,args:[ro],thisArg:u}),new Hr(t,this.__chain__)}return this.thru(ro)},Fr.prototype.toJSON=Fr.prototype.valueOf=Fr.prototype.value=function(){return du(this.__wrapped__,this.__actions__)},Fr.prototype.first=Fr.prototype.head,tt&&(Fr.prototype[tt]=function(){return this}),Fr}();vt._=gr,(e=function(){return gr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},425:()=>{},155:n=>{var t,r,e=n.exports={};function u(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(n){if(t===setTimeout)return setTimeout(n,0);if((t===u||!t)&&setTimeout)return t=setTimeout,setTimeout(n,0);try{return t(n,0)}catch(r){try{return t.call(null,n,0)}catch(r){return t.call(this,n,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:u}catch(n){t=u}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(n){r=i}}();var a,f=[],c=!1,s=-1;function l(){c&&a&&(c=!1,a.length?f=a.concat(f):s=-1,f.length&&h())}function h(){if(!c){var n=o(l);c=!0;for(var t=f.length;t;){for(a=f,f=[];++s1)for(var r=1;r{if(!r){var o=1/0;for(s=0;s=i)&&Object.keys(e.O).every((n=>e.O[n](r[f])))?r.splice(f--,1):(a=!1,i0&&n[s-1][2]>i;s--)n[s]=n[s-1];n[s]=[r,u,i]},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),e.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),e.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),(()=>{var n={773:0,170:0};e.O.j=t=>0===n[t];var t=(t,r)=>{var u,i,[o,a,f]=r,c=0;for(u in a)e.o(a,u)&&(e.m[u]=a[u]);if(f)var s=f(e);for(t&&t(r);ce(80)));var u=e.O(void 0,[170],(()=>e(425)));u=e.O(u)})(); --------------------------------------------------------------------------------