From 277a91943659596179cb30c6b81647388af4367e Mon Sep 17 00:00:00 2001 From: Charles T Date: Sun, 30 Jul 2023 02:15:19 +0800 Subject: [PATCH] Add (v1) --- app/Http/Controllers/Admin/PostController.php | 112 ++++++++++- app/Http/Controllers/Front/HomeController.php | 79 ++++++++ .../Services/ImageUploadController.php | 16 +- app/Models/Post.php | 7 +- config/app.php | 7 + config/filesystems.php | 23 ++- config/seotools.php | 12 +- ...172738_add_publish_date_to_posts_table.php | 28 +++ .../build/assets/NativeImageBlock-bcbff98b.js | 1 + .../assets/NativeImageBlock-e3b0c442.css | 0 public/build/assets/PostEditor-a6038129.js | 1 + public/build/assets/VueEditorJs-6310d292.js | 83 ++++++++ public/build/assets/admin-app-0df052b8.js | 17 ++ public/build/assets/admin-app-935fc652.css | 1 + public/build/assets/admin-app-ff7516d6.js | 7 - public/build/assets/bundle-43b5b4d7.js | 32 +++ public/build/assets/bundle-94bef551.js | 54 ++++++ public/build/manifest.json | 68 ++++++- resources/js/stores/postStore.js | 14 ++ resources/js/vue/NativeImageBlock.vue | 24 ++- resources/js/vue/PostEditor.vue | 182 +++++++++++++++++- resources/js/ziggy.js | 2 +- resources/views/admin/posts/manage.blade.php | 31 ++- resources/views/admin/posts/upsert.blade.php | 17 +- resources/views/front/post.blade.php | 4 +- resources/views/layouts/front/app.blade.php | 7 +- .../views/layouts/front/footer.blade.php | 33 ++-- routes/api.php | 44 +++-- 28 files changed, 807 insertions(+), 99 deletions(-) create mode 100644 database/migrations/2023_07_29_172738_add_publish_date_to_posts_table.php create mode 100644 public/build/assets/NativeImageBlock-bcbff98b.js create mode 100644 public/build/assets/NativeImageBlock-e3b0c442.css create mode 100644 public/build/assets/PostEditor-a6038129.js create mode 100644 public/build/assets/VueEditorJs-6310d292.js create mode 100644 public/build/assets/admin-app-0df052b8.js create mode 100644 public/build/assets/admin-app-935fc652.css delete mode 100644 public/build/assets/admin-app-ff7516d6.js create mode 100644 public/build/assets/bundle-43b5b4d7.js create mode 100644 public/build/assets/bundle-94bef551.js diff --git a/app/Http/Controllers/Admin/PostController.php b/app/Http/Controllers/Admin/PostController.php index 341e822..9009988 100644 --- a/app/Http/Controllers/Admin/PostController.php +++ b/app/Http/Controllers/Admin/PostController.php @@ -4,6 +4,7 @@ use App\Http\Controllers\Controller; use App\Models\Post; +use App\Models\PostCategory; use Illuminate\Http\Request; class PostController extends Controller @@ -27,10 +28,113 @@ public function edit(Request $request, $post_id) { $post = Post::find($post_id); - if (!is_null($post)) - { - return view('admin.posts.upsert', compact('post')); + if (! is_null($post)) { + return view('admin.posts.upsert', compact('post')); + } + + return redirect()->back()->with('error', 'Post does not exist.'); + } + + public function postUpsert(Request $request) + { + + $post_data = [ + 'id' => $request->input('id', null), + 'publish_date' => $request->input('publish_date', null), + 'title' => $request->input('title'), + 'slug' => $request->input('slug'), + 'excerpt' => $request->input('excerpt'), + 'author_id' => intval($request->input('author_id', 1)), + 'featured' => filter_var($request->input('featured'), FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE), + 'featured_image' => $request->input('featured_image'), + 'editor' => 'editorjs', + 'body' => json_decode($request->input('body')), + 'post_format' => 'standard', + 'comment_count' => 0, + 'likes_count' => 0, + 'status' => $request->input('status'), + ]; + + $post_categories = $this->normalizeCategories($request->input('categories')); + + if (! empty($post_data['id'])) { + // It's an update - find the existing post by its ID + $existingPost = Post::find($post_data['id']); + + // Check if the post with the given ID exists + if ($existingPost) { + // Update the existing post with the new data + $existingPost->update($post_data); + + // Handle PostCategory records for the existing post + $existingPostCategoryIds = $existingPost?->post_categories->pluck('id')->toArray(); + + // Find the IDs of PostCategory records that should be removed + $postCategoriesToRemove = array_diff($existingPostCategoryIds, $post_categories); + + // Remove the unwanted PostCategory records + if (! empty($postCategoriesToRemove)) { + PostCategory::whereIn('id', $postCategoriesToRemove)->delete(); + } + + // Find the new PostCategory records that should be added + $postCategoriesToAdd = array_diff($post_categories, $existingPostCategoryIds); + + // Create the new PostCategory records + foreach ($postCategoriesToAdd as $categoryId) { + PostCategory::create([ + 'post_id' => $existingPost->id, + 'category_id' => $categoryId, + ]); + } + + // Return a response indicating a successful update + return response()->json(['message' => 'Post updated successfully', 'action' => 'redirect_back']); + } else { + // If the post with the given ID doesn't exist, you can handle the error as per your requirement + return response()->json(['error' => 'Post not found'], 404); + } + } else { + // It's a new post - create a new record using Post::create + $newPost = Post::create($post_data); + + // Create the new PostCategory records for the new post + foreach ($post_categories as $categoryId) { + PostCategory::create([ + 'post_id' => $newPost->id, + 'category_id' => $categoryId, + ]); + } + + // Return a response indicating a successful creation + return response()->json(['message' => 'Post created successfully', 'action' => 'redirect_back']); + } + } + + private function normalizeCategories($categories) + { + if (empty($categories) || is_null($categories)) { + // If the input is empty or null, return an empty array + return []; + } elseif (is_numeric($categories)) { + // If the input is a numeric value (integer or string), return an array with the integer value + return [(int) $categories]; + } else { + // If the input is a string with separated commas or a JSON string that becomes an array of integers, return an array of integers + if (is_string($categories)) { + // Attempt to convert the string to an array of integers + $categoryIds = json_decode($categories, true); + + // Check if the decoding was successful and the result is an array of integers + if (is_array($categoryIds) && ! empty($categoryIds)) { + $categoryIds = array_map('intval', $categoryIds); + + return $categoryIds; + } + } + + // If the input format doesn't match any of the above cases, return an empty array + return []; } - return redirect()->back()->with('error','Post does not exist.'); } } diff --git a/app/Http/Controllers/Front/HomeController.php b/app/Http/Controllers/Front/HomeController.php index 1c86497..ede8872 100644 --- a/app/Http/Controllers/Front/HomeController.php +++ b/app/Http/Controllers/Front/HomeController.php @@ -8,10 +8,25 @@ use App\Models\Post; use Illuminate\Http\Request; +use Artesaos\SEOTools\Facades\SEOTools; +use Artesaos\SEOTools\Facades\SEOMeta; +use Artesaos\SEOTools\Facades\OpenGraph; +use Artesaos\SEOTools\Facades\JsonLd; +use Artesaos\SEOTools\Facades\JsonLdMulti; + + class HomeController extends Controller { public function index(Request $request) { + + SEOTools::metatags(); + SEOTools::twitter(); + SEOTools::opengraph(); + SEOTools::jsonLd(); + SEOTools::setTitle("Top Product Reviews, Deals & New Launches"); + SEOTools::setDescription("Explore ProductAlert for in-depth product reviews and incredible deals. We cover Beauty, Tech, Home Appliances, Health & Fitness, Parenting, and more."); + $country = strtolower($request->session()->get('country')); return redirect()->route('home.country', ['country' => $country]); @@ -19,6 +34,8 @@ public function index(Request $request) public function country(Request $request, $country) { + + $country_locale = CountryLocale::where('slug', $country)->first(); if (! is_null($country_locale)) { @@ -50,6 +67,17 @@ public function country(Request $request, $country) ->take(10) ->get(); + + SEOTools::metatags(); + SEOTools::twitter(); + SEOTools::opengraph(); + SEOTools::jsonLd(); + + $country_name = get_country_name_by_iso($country_locale->country_iso); + + SEOTools::setTitle("Your {$country_name} Guide to Product Reviews & Top Deals"); + SEOTools::setDescription("Discover trusted product reviews and unbeatable deals at ProductAlert {$country_name}, your local guide to smart shopping."); + return view('front.country', compact('country_locale', 'featured_posts', 'latest_posts') ); } @@ -83,6 +111,20 @@ public function countryCategory(Request $request, $country, $category) ->distinct() ->paginate(15); + SEOTools::metatags(); + SEOTools::twitter(); + SEOTools::opengraph(); + SEOTools::jsonLd(); + + $country_name = get_country_name_by_iso($country_locale->country_iso); + + SEOTools::setTitle("Top {$category->name} Reviews in {$country_name}"); + + $category_name = strtolower($category->name); + + SEOTools::setDescription("Stay updated with the latest {$category_name} product launches in {$country_name}. Find in-depth reviews and exciting deals with ProductAlert, your guide to {$category_name} shopping."); + + return view('front.country_category', compact('country_locale', 'category', 'latest_posts')); } @@ -101,6 +143,17 @@ public function all(Request $request, $country) ->distinct() ->paginate(15); + SEOTools::metatags(); + SEOTools::twitter(); + SEOTools::opengraph(); + SEOTools::jsonLd(); + + $country_name = get_country_name_by_iso($country_locale->country_iso); + + SEOTools::setTitle("Find Product Reviews and Best Deals for {$country_name}"); + + SEOTools::setDescription("Discover the latest product reviews and unbeatable deals at ProductAlert, your guide to shopping in {$country_name}. Stay on top of fresh product updates."); + return view('front.country_all', compact('country_locale', 'latest_posts')); } @@ -110,6 +163,32 @@ public function post(Request $request, $country, $post_slug) if (! is_null($post)) { + + SEOMeta::setTitle($post->title); + SEOMeta::setDescription($post->excerpt); + SEOMeta::addMeta('article:published_time', $post->publish_date, 'property'); + SEOMeta::addMeta('article:section', $post->post_category->category->name, 'property'); + + OpenGraph::setDescription($post->excerpt); + OpenGraph::setTitle($post->title); + OpenGraph::setUrl(url()->current()); + OpenGraph::addProperty('type', 'article'); + OpenGraph::addProperty('locale', $post->post_category->category->country_locale->i18n); + OpenGraph::addImage($post->featured_image); + + $jsonld_multi = JsonLdMulti::newJsonLd(); + $jsonld_multi->setTitle($post->title) + ->setDescription($post->excerpt) + ->setType('Article') + ->addImage($post->featured_image) + ->addValue('author', $post->author->name) + ->addValue('datePublished', $post->publish_at) + ->addValue('dateCreated', $post->publish_at) + ->addValue('dateModified', $post->updated_at->format('Y-m-d')) + ->addValue('description', $post->excerpt) + ->addValue('articleBody', trim(preg_replace('/\s\s+/', ' ', strip_tags($post->html_body)))) + ; + return view('front.post', compact('post')); } abort(404); diff --git a/app/Http/Controllers/Services/ImageUploadController.php b/app/Http/Controllers/Services/ImageUploadController.php index 85a0e0c..72f746c 100644 --- a/app/Http/Controllers/Services/ImageUploadController.php +++ b/app/Http/Controllers/Services/ImageUploadController.php @@ -4,13 +4,9 @@ use App\Http\Controllers\Controller; use Illuminate\Http\Request; - - use Illuminate\Support\Facades\Storage; -use Intervention\Image\Facades\Image; - use Illuminate\Support\Str; - +use Intervention\Image\Facades\Image; class ImageUploadController extends Controller { @@ -26,8 +22,8 @@ public function index(Request $request) // Generate a unique filename for the uploaded file and LQIP version $uuid = Str::uuid()->toString(); - $fileName = time() . '_' . $uuid . '.jpg'; - $lqipFileName = time() . '_' . $uuid . '_lqip.jpg'; + $fileName = time().'_'.$uuid.'.jpg'; + $lqipFileName = time().'_'.$uuid.'_lqip.jpg'; // Convert the file to JPEG format using Intervention Image library $image = Image::make($file->getRealPath())->encode('jpg', 100); @@ -46,8 +42,8 @@ public function index(Request $request) $image->encode('jpg', 50); // Save the processed image to the 'r2' storage driver under the 'uploads' directory - $filePath = 'uploads/' . $fileName; - $lqipFilePath = 'uploads/' . $lqipFileName; + $filePath = 'uploads/'.$fileName; + $lqipFilePath = 'uploads/'.$lqipFileName; Storage::disk('r2')->put($filePath, $image->stream()->detach()); // Save the original image to a temporary file and open it again @@ -56,7 +52,7 @@ public function index(Request $request) $clonedImage = Image::make($tempImagePath); // Create the LQIP version of the image using a small size while maintaining the aspect ratio - $lqipImage = $clonedImage->fit(10, 10, function ($constraint) use ($originalWidth, $originalHeight) { + $lqipImage = $clonedImage->fit(10, 10, function ($constraint) { $constraint->aspectRatio(); }); $lqipImage->encode('jpg', 5); diff --git a/app/Models/Post.php b/app/Models/Post.php index d04ce66..eea6e11 100644 --- a/app/Models/Post.php +++ b/app/Models/Post.php @@ -40,6 +40,7 @@ class Post extends Model 'body' => 'json', 'comment_count' => 'int', 'likes_count' => 'int', + 'featured' => 'bool', ]; protected $fillable = [ @@ -54,10 +55,12 @@ class Post extends Model 'comment_count', 'likes_count', 'status', + 'featured', + 'publish_date', ]; protected $appends = [ - 'html_body', + //'html_body', ]; public function author() @@ -78,7 +81,7 @@ public function post_category() public function getHtmlBodyAttribute() { if (! is_empty($this->body)) { - return LaravelEditorJs::render($this->body); + return LaravelEditorJs::render(json_encode($this->body)); } return ''; diff --git a/config/app.php b/config/app.php index 26531de..f11c7af 100644 --- a/config/app.php +++ b/config/app.php @@ -161,6 +161,7 @@ */ Barryvdh\Debugbar\ServiceProvider::class, Stevebauman\Location\LocationServiceProvider::class, + Artesaos\SEOTools\Providers\SEOToolsServiceProvider::class, /* * Application Service Providers... @@ -187,6 +188,12 @@ 'aliases' => Facade::defaultAliases()->merge([ // 'Example' => App\Facades\Example::class, 'Debugbar' => Barryvdh\Debugbar\Facades\Debugbar::class, + 'SEOMeta' => Artesaos\SEOTools\Facades\SEOMeta::class, + 'OpenGraph' => Artesaos\SEOTools\Facades\OpenGraph::class, + 'Twitter' => Artesaos\SEOTools\Facades\TwitterCard::class, + 'JsonLd' => Artesaos\SEOTools\Facades\JsonLd::class, + 'JsonLdMulti' => Artesaos\SEOTools\Facades\JsonLdMulti::class, + 'SEO' => Artesaos\SEOTools\Facades\SEOTools::class, ])->toArray(), diff --git a/config/filesystems.php b/config/filesystems.php index b0ce792..b638600 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -57,18 +57,17 @@ ], 'r2' => [ - 'driver' => 's3', - 'key' => env('CLOUDFLARE_R2_ACCESS_KEY_ID'), - 'secret' => env('CLOUDFLARE_R2_SECRET_ACCESS_KEY'), - 'region' => env('CLOUDFLARE_R2_REGION'), - 'bucket' => env('CLOUDFLARE_R2_BUCKET'), - 'url' => env('CLOUDFLARE_R2_URL'), - 'visibility' => 'public', - 'endpoint' => env('CLOUDFLARE_R2_ENDPOINT'), - 'use_path_style_endpoint' => env('CLOUDFLARE_R2_USE_PATH_STYLE_ENDPOINT', false), - 'throw' => true, - ], - + 'driver' => 's3', + 'key' => env('CLOUDFLARE_R2_ACCESS_KEY_ID'), + 'secret' => env('CLOUDFLARE_R2_SECRET_ACCESS_KEY'), + 'region' => env('CLOUDFLARE_R2_REGION'), + 'bucket' => env('CLOUDFLARE_R2_BUCKET'), + 'url' => env('CLOUDFLARE_R2_URL'), + 'visibility' => 'public', + 'endpoint' => env('CLOUDFLARE_R2_ENDPOINT'), + 'use_path_style_endpoint' => env('CLOUDFLARE_R2_USE_PATH_STYLE_ENDPOINT', false), + 'throw' => true, + ], ], diff --git a/config/seotools.php b/config/seotools.php index bde1e32..45391c6 100644 --- a/config/seotools.php +++ b/config/seotools.php @@ -9,9 +9,9 @@ * The default configurations to be used by the meta generator. */ 'defaults' => [ - 'title' => "It's Over 9000!", // set false to total remove + 'title' => "ProductAlert", // set false to total remove 'titleBefore' => false, // Put defaults.title before page title, like 'It's Over 9000! - Dashboard' - 'description' => 'For those who helped create the Genki Dama', // set false to total remove + 'description' => 'Find top-rated product reviews at ProductAlert. Discover the latest trends, best brands, and right prices. Your guide to making the best purchase decisions!', // set false to total remove 'separator' => ' - ', 'keywords' => [], 'canonical' => false, // Set to null or 'full' to use Url::full(), set to 'current' to use Url::current(), set false to total remove @@ -36,8 +36,8 @@ * The default configurations to be used by the opengraph generator. */ 'defaults' => [ - 'title' => 'Over 9000 Thousand!', // set false to total remove - 'description' => 'For those who helped create the Genki Dama', // set false to total remove + 'title' => 'ProductAlert', // set false to total remove + 'description' => 'Find top-rated product reviews at ProductAlert. Discover the latest trends, best brands, and right prices. Your guide to making the best purchase decisions!', // set false to total remove 'url' => false, // Set null for using Url::current(), set false to total remove 'type' => false, 'site_name' => false, @@ -58,8 +58,8 @@ * The default configurations to be used by the json-ld generator. */ 'defaults' => [ - 'title' => 'Over 9000 Thousand!', // set false to total remove - 'description' => 'For those who helped create the Genki Dama', // set false to total remove + 'title' => 'ProductAlert', // set false to total remove + 'description' => 'Find top-rated product reviews at ProductAlert. Discover the latest trends, best brands, and right prices. Your guide to making the best purchase decisions!', // set false to total remove 'url' => false, // Set to null or 'full' to use Url::full(), set to 'current' to use Url::current(), set false to total remove 'type' => 'WebPage', 'images' => [], diff --git a/database/migrations/2023_07_29_172738_add_publish_date_to_posts_table.php b/database/migrations/2023_07_29_172738_add_publish_date_to_posts_table.php new file mode 100644 index 0000000..404b2b3 --- /dev/null +++ b/database/migrations/2023_07_29_172738_add_publish_date_to_posts_table.php @@ -0,0 +1,28 @@ +date('publish_date')->nullable()->after('author_id'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('posts', function (Blueprint $table) { + $table->dropColumn('publish_date'); + }); + } +}; diff --git a/public/build/assets/NativeImageBlock-bcbff98b.js b/public/build/assets/NativeImageBlock-bcbff98b.js new file mode 100644 index 0000000..0bcf301 --- /dev/null +++ b/public/build/assets/NativeImageBlock-bcbff98b.js @@ -0,0 +1 @@ +import{l as m,_ as y,a as b,c as g,e as c,p as w,t as $,o as f,q as S,s as I}from"./admin-app-0df052b8.js";var _=m();class p{constructor(e,t,r){this.name=e,this.definition=t,this.bindings=t.bindings??{},this.wheres=t.wheres??{},this.config=r}get template(){return`${this.origin}/${this.definition.uri}`.replace(/\/+$/,"")}get origin(){return this.config.absolute?this.definition.domain?`${this.config.url.match(/^\w+:\/\//)[0]}${this.definition.domain}${this.config.port?`:${this.config.port}`:""}`:this.config.url:""}get parameterSegments(){var e;return((e=this.template.match(/{[^}?]+\??}/g))==null?void 0:e.map(t=>({name:t.replace(/{|\??}/g,""),required:!/\?}$/.test(t)})))??[]}matchesUrl(e){if(!this.definition.methods.includes("GET"))return!1;const t=this.template.replace(/(\/?){([^}?]*)(\??)}/g,(n,l,u,h)=>{var d;const a=`(?<${u}>${((d=this.wheres[u])==null?void 0:d.replace(/(^\^)|(\$$)/g,""))||"[^/?]+"})`;return h?`(${l}${a})?`:`${l}${a}`}).replace(/^\w+:\/\//,""),[r,s]=e.replace(/^\w+:\/\//,"").split("?"),i=new RegExp(`^${t}/?$`).exec(r);if(i){for(const n in i.groups)i.groups[n]=typeof i.groups[n]=="string"?decodeURIComponent(i.groups[n]):i.groups[n];return{params:i.groups,query:_.parse(s)}}return!1}compile(e){const t=this.parameterSegments;return t.length?this.template.replace(/{([^}?]+)(\??)}/g,(r,s,i)=>{if(!i&&[null,void 0].includes(e[s]))throw new Error(`Ziggy error: '${s}' parameter is required for route '${this.name}'.`);if(t[t.length-1].name===s&&this.wheres[s]===".*")return encodeURIComponent(e[s]??"").replace(/%2F/g,"/");if(this.wheres[s]&&!new RegExp(`^${i?`(${this.wheres[s]})?`:this.wheres[s]}$`).test(e[s]??""))throw new Error(`Ziggy error: '${s}' parameter does not match required format '${this.wheres[s]}' for route '${this.name}'.`);return encodeURIComponent(e[s]??"")}).replace(`${this.origin}//`,`${this.origin}/`).replace(/\/+$/,""):this.template}}class v extends String{constructor(e,t,r=!0,s){if(super(),this._config=s??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),this._config={...this._config,absolute:r},e){if(!this._config.routes[e])throw new Error(`Ziggy error: route '${e}' is not in the route list.`);this._route=new p(e,this._config.routes[e],this._config),this._params=this._parse(t)}}toString(){const e=Object.keys(this._params).filter(t=>!this._route.parameterSegments.some(({name:r})=>r===t)).filter(t=>t!=="_query").reduce((t,r)=>({...t,[r]:this._params[r]}),{});return this._route.compile(this._params)+_.stringify({...e,...this._params._query},{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:(t,r)=>typeof t=="boolean"?Number(t):r(t)})}_unresolve(e){e?this._config.absolute&&e.startsWith("/")&&(e=this._location().host+e):e=this._currentUrl();let t={};const[r,s]=Object.entries(this._config.routes).find(([i,n])=>t=new p(i,n,this._config).matchesUrl(e))||[void 0,void 0];return{name:r,...t,route:s}}_currentUrl(){const{host:e,pathname:t,search:r}=this._location();return(this._config.absolute?e+t:t.replace(this._config.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+r}current(e,t){const{name:r,params:s,query:i,route:n}=this._unresolve();if(!e)return r;const l=new RegExp(`^${e.replace(/\./g,"\\.").replace(/\*/g,".*")}$`).test(r);if([null,void 0].includes(t)||!l)return l;const u=new p(r,n,this._config);t=this._parse(t,u);const h={...s,...i};return Object.values(t).every(a=>!a)&&!Object.values(h).some(a=>a!==void 0)?!0:Object.entries(t).every(([a,d])=>h[a]==d)}_location(){var s,i,n;const{host:e="",pathname:t="",search:r=""}=typeof window<"u"?window.location:{};return{host:((s=this._config.location)==null?void 0:s.host)??e,pathname:((i=this._config.location)==null?void 0:i.pathname)??t,search:((n=this._config.location)==null?void 0:n.search)??r}}get params(){const{params:e,query:t}=this._unresolve();return{...e,...t}}has(e){return Object.keys(this._config.routes).includes(e)}_parse(e={},t=this._route){e??(e={}),e=["string","number"].includes(typeof e)?[e]:e;const r=t.parameterSegments.filter(({name:s})=>!this._config.defaults[s]);return Array.isArray(e)?e=e.reduce((s,i,n)=>r[n]?{...s,[r[n].name]:i}:typeof i=="object"?{...s,...i}:{...s,[i]:""},{}):r.length===1&&!e[r[0].name]&&(e.hasOwnProperty(Object.values(t.bindings)[0])||e.hasOwnProperty("id"))&&(e={[r[0].name]:e}),{...this._defaults(t),...this._substituteBindings(e,t)}}_defaults(e){return e.parameterSegments.filter(({name:t})=>this._config.defaults[t]).reduce((t,{name:r},s)=>({...t,[r]:this._config.defaults[r]}),{})}_substituteBindings(e,{bindings:t,parameterSegments:r}){return Object.entries(e).reduce((s,[i,n])=>{if(!n||typeof n!="object"||Array.isArray(n)||!r.some(({name:l})=>l===i))return{...s,[i]:n};if(!n.hasOwnProperty(t[i]))if(n.hasOwnProperty("id"))t[i]="id";else throw new Error(`Ziggy error: object passed as '${i}' parameter is missing route model binding key '${t[i]}'.`);return{...s,[i]:n[t[i]]}},{})}valueOf(){return this.toString()}check(e){return this.has(e)}}function x(o,e,t,r){const s=new v(o,e,t,r);return o?s.toString():s}const O={name:"NativeImageBlock",props:{inputImage:{type:String,default:null}},data:()=>({isLoaded:!1,isUploading:!1,imgSrc:null,placeholderSrc:"https://placekitten.com/g/2100/900"}),computed:{getButtonName(){var o;return this.imgSrc!=null&&((o=this.imgSrc)==null?void 0:o.length)>0?"Change featured image":"Upload featured image"},getBlurPx(){return this.imgSrc?0:12},bgStyle(){return{backgroundImage:`url(${this.getImgSrc})`,backgroundPosition:"center",backgroundSize:"cover",filter:`blur(${this.getBlurPx}px)`,webkitFilter:`blur(${this.getBlurPx}px)`}},getImgSrc(){var o;return this.imgSrc!=null&&((o=this.imgSrc)==null?void 0:o.length)>0?this.imgSrc:this.placeholderSrc}},methods:{openFileInput(){this.$refs.fileInput.click()},handleFileChange(o){const e=o.target.files[0];e&&this.uploadImage(e)},uploadImage(o){this.isUploading=!0;const e=new FormData;e.append("file",o),b.post(x("api.admin.upload.cloud.image"),e,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{t.data.success===1&&t.data.file&&t.data.file.url?(this.imgSrc=t.data.file.url,this.$emit("saved",t.data.file.url)):console.error("Image upload failed. Invalid response format.")}).catch(t=>{console.error("Image upload failed:",t.response)}).finally(()=>{this.isUploading=!1})},setInputImage(){var o;this.inputImage!=null&&((o=this.inputImage)==null?void 0:o.length)>0&&(this.imgSrc=this.inputImage),this.isLoaded=!0}},mounted(){this.isUploading=!1,setTimeout((function(){this.setInputImage(),this.isLoaded=!0}).bind(this),3e3)}},j=o=>(S("data-v-c6e8911d"),o=o(),I(),o),k={class:"card"},B={class:"card-body ratio ratio-21x9 bg-dark overflow-hidden"},P={class:"position-absolute w-100 h-100 d-flex justify-content-center text-center"},U={key:0,class:"align-self-center"},q=j(()=>c("div",{class:"spinner-border text-light",role:"status"},[c("span",{class:"visually-hidden"},"Loading...")],-1)),C=[q],E={key:1,class:"align-self-center"};function F(o,e,t,r,s,i){return f(),g("div",null,[c("div",k,[c("div",B,[c("div",{class:"d-flex justify-content-center text-center rounded-2",style:w(i.bgStyle)},null,4),c("div",P,[o.isUploading||!o.isLoaded?(f(),g("div",U,C)):(f(),g("div",E,[c("input",{type:"file",onChange:e[0]||(e[0]=(...n)=>i.handleFileChange&&i.handleFileChange(...n)),accept:"image/*",ref:"fileInput",style:{display:"none"}},null,544),c("button",{class:"btn btn-primary",onClick:e[1]||(e[1]=(...n)=>i.openFileInput&&i.openFileInput(...n))},$(i.getButtonName),1)]))])])])])}const N=y(O,[["render",F],["__scopeId","data-v-c6e8911d"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));export{Z as N,N as _,x as r}; diff --git a/public/build/assets/NativeImageBlock-e3b0c442.css b/public/build/assets/NativeImageBlock-e3b0c442.css new file mode 100644 index 0000000..e69de29 diff --git a/public/build/assets/PostEditor-a6038129.js b/public/build/assets/PostEditor-a6038129.js new file mode 100644 index 0000000..4c5b867 --- /dev/null +++ b/public/build/assets/PostEditor-a6038129.js @@ -0,0 +1 @@ +import x from"./VueEditorJs-6310d292.js";import{r as h,_ as P}from"./NativeImageBlock-bcbff98b.js";import{L as b}from"./bundle-43b5b4d7.js";import{H as S}from"./bundle-94bef551.js";import{d as V,a as p,_ as A,m as D,b as E,c as r,e as o,w as d,v as y,t as u,f as C,g as M,F as f,r as m,n as I,h as T,i as j,o as c,j as L,k}from"./admin-app-0df052b8.js";import"./index-8746c87e.js";const w=V("postStore",{state:()=>({data:{defaultLocaleSlug:"my",countryLocales:[],localeCategories:[],authors:[]}}),getters:{defaultLocaleSlug(t){return t.data.defaultLocaleSlug},countryLocales(t){return t.data.countryLocales},localeCategories(t){return t.data.localeCategories},authors(t){return t.data.authors}},actions:{async fetchAuthors(){try{const t=await p.get(h("api.admin.authors"));console.log(t),this.data.authors=t.data.authors}catch(t){console.log(t)}},async fetchCountryLocales(){try{const t=await p.get(h("api.admin.country-locales"));console.log(t),this.data.countryLocales=t.data.country_locales,this.data.defaultLocaleSlug=t.data.default_locale_slug}catch(t){console.log(t)}},async fetchLocaleCategories(t){try{const e=await p.get(h("api.admin.categories",{country_locale_slug:t}));console.log(e),this.data.localeCategories=e.data.categories}catch(e){console.log(e)}}}}),z={components:{VueEditorJs:x,List:b,Header:S},props:{postId:{type:Number,default:null}},data(){return{isSaving:!1,showEditorJs:!1,post:{id:null,title:"",slug:"",excerpt:"",author_id:null,featured:!1,publish_date:null,featured_image:null,body:{time:1591362820044,blocks:[],version:"2.25.0"},locale_slug:null,locale_id:null,status:"draft",categories:null},status:["publish","future","draft","private","trash"],config:{placeholder:"Write something (ノ◕ヮ◕)ノ*:・゚✧",tools:{header:{class:S,config:{placeholder:"Enter a header",levels:[2,3,4],defaultLevel:3}},list:{class:b,inlineToolbar:!0}},onReady:()=>{},onChange:t=>{},data:{time:1591362820044,blocks:[],version:"2.25.0"}}}},watch:{"post.title":{deep:!0,handler(t,e){this.post.slug=this.slugify(t)}}},computed:{...D(w,["countryLocales","localeCategories","defaultLocaleSlug","authors"]),getPostFullUrl(){var t;return((t=this.post.slug)==null?void 0:t.length)>0?"https://productalert.co/"+this.post.locale_slug+"/posts/"+this.post.slug:"https://productalert.co/"+this.post.locale_slug+"/posts/enter-a-post-title-to-autogen-slug"}},methods:{...E(w,["fetchCountryLocales","fetchLocaleCategories","fetchAuthors"]),checkAndSave(){var e,i,a,s,n,g,_;let t=[];((e=this.post.title)==null?void 0:e.length)>0||t.push("post title"),((i=this.post.publish_date)==null?void 0:i.length)>0||t.push("publish date"),((a=this.post.slug)==null?void 0:a.length)>0||t.push("post slug"),((s=this.post.excerpt)==null?void 0:s.length)>0||t.push("post excerpt"),((n=this.post.featured_image)==null?void 0:n.length)>0||t.push("post featured image"),((g=this.post.body.blocks)==null?void 0:g.length)>0||t.push("Post body"),(!(((_=this.post.locale_slug)==null?void 0:_.length)>0)||this.post.locale_id==null)&&t.push("Country locality"),this.post.categories==null&&t.push("Category"),t.length>0?alert("HAIYA many errors! pls fix "+t.join(", ")):this.savePost()},savePost(){this.isSaving=!0;const t=new FormData;for(const[e,i]of Object.entries(this.post))e=="body"?t.append(e,JSON.stringify(i)):t.append(e,i);p.post(h("api.admin.post.upsert"),t,{headers:{"Content-Type":"application/json"}}).then(e=>{console.warn(e)}),setTimeout((function(){this.isSaving=!1}).bind(this),1e3)},onInitialized(t){},imageSaved(t){this.post.featured_image=t},editorSaved(t){this.post.body=t},statusChanged(t){this.post.status=t.target.value},localeChanged(t){this.post.locale_slug=t.target.value,this.post.locale_id=this.getLocaleIdBySlug(t.target.value),this.post.categories=[],setTimeout((function(){this.fetchLocaleCategories(this.post.locale_slug)}).bind(this),100)},setDefaultLocale(){(this.post.locale_slug==null||this.post.locale_slug=="")&&(this.post.locale_slug=this.defaultLocaleSlug,this.post.locale_id=this.getLocaleIdBySlug(this.defaultLocaleSlug))},getLocaleIdBySlug(t){for(const[e,i]of Object.entries(this.countryLocales))if(i.slug==t)return i.id;return null},async fetchPostData(t){var i;const e=await p.get(h("api.admin.post.get",{id:t}));if(((i=e==null?void 0:e.data)==null?void 0:i.post)!=null){let a=this.post,s=e.data.post;a.id=s.id,a.title=s.title,a.slug=s.slug,a.publish_date=s.publish_date,a.excerpt=s.excerpt,a.author_id=s.author_id,a.featured=s.featured,a.featured_image=s.featured_image,a.body=s.body,a.locale_slug=s.post_category.category.country_locale_slug,a.locale_id=s.post_category.category.country_locale_id,a.status=s.status,a.categories=s.post_category.category.id,this.post=a,this.config.data=s.body}console.log(e.data.post)},slugify:function(t){var e="",i=t.toLowerCase();return e=i.replace(/[^a-z0-9\s]/g,""),e=e.replace(/\s+/g," "),e=e.trim(),e=e.replace(/\s+/g,"-"),e}},mounted(){this.fetchCountryLocales().then(()=>{this.setDefaultLocale(),setTimeout((function(){this.fetchLocaleCategories(this.post.locale_slug),this.fetchAuthors(),this.postId!=null?this.fetchPostData(this.postId).then(()=>{setTimeout((function(){this.showEditorJs=!0}).bind(this),1e3)}):setTimeout((function(){this.showEditorJs=!0}).bind(this),1e3)}).bind(this),100)})}},B={class:"row justify-content-center"},U={class:"col-9",style:{"max-width":"700px"}},N={class:"mb-3"},F={class:"form-floating"},J=o("label",null,"Write a SEO post title",-1),O={class:"text-secondary"},H={class:"form-floating mb-3"},W=o("label",null,"Write a simple excerpt to convince & entice users to view this post!",-1),R={key:0,class:"card"},Y={class:"card-body"},q={class:"col-3"},G={class:"d-grid mb-2"},K=["selected","value"],Q=o("div",{class:"fw-bold"},"Publish Date",-1),X={class:"input-icon mb-2"},Z=j('',1),$=["disabled"],tt=o("span",{class:"visually-hidden"},"Saving...",-1),et=[tt],st={key:1},ot={class:"card mb-2"},lt=o("div",{class:"card-header fw-bold"},"Country Locality",-1),at={class:"card-body"},it=["value","selected"],nt={class:"card mb-2"},rt=o("div",{class:"card-header fw-bold"},"Categories",-1),ct={class:"card-body"},dt=["id","value"],ut={class:"card mb-2"},ht=o("div",{class:"card-header fw-bold"},"Authors",-1),pt={class:"card-body"},gt=["id","value"],_t={class:"card mb-2"},ft=o("div",{class:"card-header fw-bold"},"Other Settings",-1),mt={class:"card-body"},vt={class:"form-check form-switch"},yt=o("label",{class:"form-check-label"},"Feature this Post",-1);function bt(t,e,i,a,s,n){const g=P,_=x;return c(),r("div",null,[o("div",B,[o("div",U,[o("div",N,[o("div",F,[d(o("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>s.post.title=l),type:"text",class:"form-control",placeholder:"Post title"},null,512),[[y,s.post.title]]),J]),o("small",null,[o("span",O,u(n.getPostFullUrl),1)])]),o("div",H,[d(o("textarea",{"onUpdate:modelValue":e[1]||(e[1]=l=>s.post.excerpt=l),class:"form-control",style:{"min-height":"150px"},placeholder:"Enter a post excerpt/summary"},null,512),[[y,s.post.excerpt]]),W]),C(g,{ref:"imageBlock",class:"mb-3","input-image":s.post.featured_image,onSaved:n.imageSaved},null,8,["input-image","onSaved"]),s.showEditorJs?(c(),r("div",R,[o("div",Y,[C(_,{onSaved:n.editorSaved,config:s.config,initialized:n.onInitialized},null,8,["onSaved","config","initialized"])])])):M("",!0)]),o("div",q,[o("div",G,[o("select",{class:"form-select mb-2","aria-label":"Default select example",onChange:e[2]||(e[2]=(...l)=>n.statusChanged&&n.statusChanged(...l))},[(c(!0),r(f,null,m(s.status,l=>(c(),r("option",{key:l,selected:l==s.post.status,value:l}," Post Status: "+u(l),9,K))),128))],32),Q,o("div",X,[Z,d(o("input",{type:"date","onUpdate:modelValue":e[3]||(e[3]=l=>s.post.publish_date=l),class:"form-control",placeholder:"Select a date",id:"datepicker-icon-prepend"},null,512),[[y,s.post.publish_date]])]),o("button",{onClick:e[4]||(e[4]=(...l)=>n.checkAndSave&&n.checkAndSave(...l)),class:"btn btn-primary",style:{height:"50px"}},[s.isSaving?(c(),r("div",{key:0,class:I(["spinner-border",s.isSaving?"disabled":""]),role:"status",disabled:s.isSaving},et,10,$)):(c(),r("span",st,"Save as "+u(s.post.status),1))])]),o("div",ot,[lt,o("div",at,[o("select",{class:"form-select",onChange:e[5]||(e[5]=(...l)=>n.localeChanged&&n.localeChanged(...l))},[(c(!0),r(f,null,m(t.countryLocales,l=>(c(),r("option",{key:l.id,value:l.slug,selected:l.slug==s.post.locale_slug},u(l.name),9,it))),128))],32)])]),o("div",nt,[rt,o("div",ct,[(c(!0),r(f,null,m(t.localeCategories,l=>(c(),r("div",{class:"py-1",key:l.id},[o("label",null,[d(o("input",{type:"radio",id:l.id,value:l.id,"onUpdate:modelValue":e[6]||(e[6]=v=>s.post.categories=v)},null,8,dt),[[L,s.post.categories]]),k(" "+u(l.name),1)])]))),128))])]),o("div",ut,[ht,o("div",pt,[(c(!0),r(f,null,m(t.authors,l=>(c(),r("div",{class:"py-1",key:l.id},[o("label",null,[d(o("input",{type:"radio",id:l.id,value:l.id,"onUpdate:modelValue":e[7]||(e[7]=v=>s.post.author_id=v)},null,8,gt),[[L,s.post.author_id]]),k(" "+u(l.name),1)])]))),128))])]),o("div",_t,[ft,o("div",mt,[o("div",vt,[d(o("input",{"onUpdate:modelValue":e[8]||(e[8]=l=>s.post.featured=l),class:"form-check-input",type:"checkbox",role:"switch"},null,512),[[T,s.post.featured]]),yt])])])])])])}const Pt=A(z,[["render",bt]]);export{Pt as default}; diff --git a/public/build/assets/VueEditorJs-6310d292.js b/public/build/assets/VueEditorJs-6310d292.js new file mode 100644 index 0000000..a48ce5d --- /dev/null +++ b/public/build/assets/VueEditorJs-6310d292.js @@ -0,0 +1,83 @@ +import{_ as Le,u as Zt,x as Oe,c as Ne,y as Re,z as De,o as Pe}from"./admin-app-0df052b8.js";import"./index-8746c87e.js";var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function St(){}Object.assign(St,{default:St,register:St,revert:function(){},__esModule:!0});Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(s){const t=(this.document||this.ownerDocument).querySelectorAll(s);let e=t.length;for(;--e>=0&&t.item(e)!==this;);return e>-1});Element.prototype.closest||(Element.prototype.closest=function(s){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(s))return t;t=t.parentElement||t.parentNode}while(t!==null);return null});Element.prototype.prepend||(Element.prototype.prepend=function(s){const t=document.createDocumentFragment();Array.isArray(s)||(s=[s]),s.forEach(e=>{const o=e instanceof Node;t.appendChild(o?e:document.createTextNode(e))}),this.insertBefore(t,this.firstChild)});Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(s){s=arguments.length===0?!0:!!s;const t=this.parentNode,e=window.getComputedStyle(t,null),o=parseInt(e.getPropertyValue("border-top-width")),i=parseInt(e.getPropertyValue("border-left-width")),n=this.offsetTop-t.offsetTopt.scrollTop+t.clientHeight,a=this.offsetLeft-t.offsetLeftt.scrollLeft+t.clientWidth,c=n&&!r;(n||r)&&s&&(t.scrollTop=this.offsetTop-t.offsetTop-t.clientHeight/2-o+this.clientHeight/2),(a||l)&&s&&(t.scrollLeft=this.offsetLeft-t.offsetLeft-t.clientWidth/2-i+this.clientWidth/2),(n||r||a||l)&&!s&&this.scrollIntoView(c)});let He=(s=21)=>crypto.getRandomValues(new Uint8Array(s)).reduce((t,e)=>(e&=63,e<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t),"");var oe=(s=>(s.VERBOSE="VERBOSE",s.INFO="INFO",s.WARN="WARN",s.ERROR="ERROR",s))(oe||{});const E={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,META:91},je={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4};function gt(s,t,e="log",o,i="color: inherit"){if(!("console"in window)||!window.console[e])return;const n=["info","log","warn","error"].includes(e),r=[];switch(gt.logLevel){case"ERROR":if(e!=="error")return;break;case"WARN":if(!["error","warn"].includes(e))return;break;case"INFO":if(!n||s)return;break}o&&r.push(o);const a="Editor.js 2.27.2",l=`line-height: 1em; + color: #006FEA; + display: inline-block; + font-size: 11px; + line-height: 1em; + background-color: #fff; + padding: 4px 9px; + border-radius: 30px; + border: 1px solid rgba(56, 138, 229, 0.16); + margin: 4px 5px 4px 0;`;s&&(n?(r.unshift(l,i),t=`%c${a}%c ${t}`):t=`( ${a} )${t}`);try{n?o?console[e](`${t} %o`,...r):console[e](t,...r):console[e](t)}catch{}}gt.logLevel="VERBOSE";function ze(s){gt.logLevel=s}const T=gt.bind(window,!1),K=gt.bind(window,!0);function et(s){return Object.prototype.toString.call(s).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function D(s){return et(s)==="function"||et(s)==="asyncfunction"}function z(s){return et(s)==="object"}function J(s){return et(s)==="string"}function Ue(s){return et(s)==="boolean"}function Gt(s){return et(s)==="number"}function qt(s){return et(s)==="undefined"}function V(s){return s?Object.keys(s).length===0&&s.constructor===Object:!0}function ie(s){return s>47&&s<58||s===32||s===13||s===229||s>64&&s<91||s>95&&s<112||s>185&&s<193||s>218&&s<223}async function ne(s,t=()=>{},e=()=>{}){async function o(i,n,r){try{await i.function(i.data),await n(qt(i.data)?{}:i.data)}catch{r(qt(i.data)?{}:i.data)}}return s.reduce(async(i,n)=>(await i,o(n,t,e)),Promise.resolve())}function se(s){return Array.prototype.slice.call(s)}function ot(s,t){return function(){const e=this,o=arguments;window.setTimeout(()=>s.apply(e,o),t)}}function $e(s){return s.name.split(".").pop()}function Ye(s){return/^[-\w]+\/([-+\w]+|\*)$/.test(s)}function We(s,t,e){let o;return(...i)=>{const n=this,r=()=>{o=null,e||s.apply(n,i)},a=e&&!o;window.clearTimeout(o),o=window.setTimeout(r,t),a&&s.apply(n,i)}}function Bt(s,t,e=void 0){let o,i,n,r=null,a=0;e||(e={});const l=function(){a=e.leading===!1?0:Date.now(),r=null,n=s.apply(o,i),r||(o=i=null)};return function(){const c=Date.now();!a&&e.leading===!1&&(a=c);const p=t-(c-a);return o=this,i=arguments,p<=0||p>t?(r&&(clearTimeout(r),r=null),a=c,n=s.apply(o,i),r||(o=i=null)):!r&&e.trailing!==!1&&(r=setTimeout(l,p)),n}}function Ke(){const s={win:!1,mac:!1,x11:!1,linux:!1},t=Object.keys(s).find(e=>window.navigator.appVersion.toLowerCase().indexOf(e)!==-1);return t&&(s[t]=!0),s}function kt(s){return s[0].toUpperCase()+s.slice(1)}function It(s,...t){if(!t.length)return s;const e=t.shift();if(z(s)&&z(e))for(const o in e)z(e[o])?(s[o]||Object.assign(s,{[o]:{}}),It(s[o],e[o])):Object.assign(s,{[o]:e[o]});return It(s,...t)}function re(s){const t=Ke();return s=s.replace(/shift/gi,"⇧").replace(/backspace/gi,"⌫").replace(/enter/gi,"⏎").replace(/up/gi,"↑").replace(/left/gi,"→").replace(/down/gi,"↓").replace(/right/gi,"←").replace(/escape/gi,"⎋").replace(/insert/gi,"Ins").replace(/delete/gi,"␡").replace(/\+/gi," + "),t.mac?s=s.replace(/ctrl|cmd/gi,"⌘").replace(/alt/gi,"⌥"):s=s.replace(/cmd/gi,"Ctrl").replace(/windows/gi,"WIN"),s}function Xe(s){try{return new URL(s).href}catch{}return s.substring(0,2)==="//"?window.location.protocol+s:window.location.origin+s}function Ve(){return He(10)}function Ze(s){window.open(s,"_blank")}function Ge(s=""){return`${s}${Math.floor(Math.random()*1e8).toString(16)}`}function Mt(s,t,e){const o=`«${t}» is deprecated and will be removed in the next major release. Please use the «${e}» instead.`;s&&K(o,"warn")}function at(s,t,e){const o=e.value?"value":"get",i=e[o],n=`#${t}Cache`;if(e[o]=function(...r){return this[n]===void 0&&(this[n]=i.apply(this,...r)),this[n]},o==="get"&&e.set){const r=e.set;e.set=function(a){delete s[n],r.apply(this,a)}}return e}const ae=650;function tt(){return window.matchMedia(`(max-width: ${ae}px)`).matches}const Jt=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1);function qe(s,t){const e=Array.isArray(s)||z(s),o=Array.isArray(t)||z(t);return e||o?JSON.stringify(s)===JSON.stringify(t):s===t}class d{static isSingleTag(t){return t.tagName&&["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"].includes(t.tagName)}static isLineBreakTag(t){return t&&t.tagName&&["BR","WBR"].includes(t.tagName)}static make(t,e=null,o={}){const i=document.createElement(t);Array.isArray(e)?i.classList.add(...e):e&&i.classList.add(e);for(const n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i[n]=o[n]);return i}static text(t){return document.createTextNode(t)}static append(t,e){Array.isArray(e)?e.forEach(o=>t.appendChild(o)):t.appendChild(e)}static prepend(t,e){Array.isArray(e)?(e=e.reverse(),e.forEach(o=>t.prepend(o))):t.prepend(e)}static swap(t,e){const o=document.createElement("div"),i=t.parentNode;i.insertBefore(o,t),i.insertBefore(t,e),i.insertBefore(e,o),i.removeChild(o)}static find(t=document,e){return t.querySelector(e)}static get(t){return document.getElementById(t)}static findAll(t=document,e){return t.querySelectorAll(e)}static get allInputsSelector(){return"[contenteditable=true], textarea, input:not([type]), "+["text","password","email","number","search","tel","url"].map(t=>`input[type="${t}"]`).join(", ")}static findAllInputs(t){return se(t.querySelectorAll(d.allInputsSelector)).reduce((e,o)=>d.isNativeInput(o)||d.containsOnlyInlineElements(o)?[...e,o]:[...e,...d.getDeepestBlockElements(o)],[])}static getDeepestNode(t,e=!1){const o=e?"lastChild":"firstChild",i=e?"previousSibling":"nextSibling";if(t&&t.nodeType===Node.ELEMENT_NODE&&t[o]){let n=t[o];if(d.isSingleTag(n)&&!d.isNativeInput(n)&&!d.isLineBreakTag(n))if(n[i])n=n[i];else if(n.parentNode[i])n=n.parentNode[i];else return n.parentNode;return this.getDeepestNode(n,e)}return t}static isElement(t){return Gt(t)?!1:t&&t.nodeType&&t.nodeType===Node.ELEMENT_NODE}static isFragment(t){return Gt(t)?!1:t&&t.nodeType&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isContentEditable(t){return t.contentEditable==="true"}static isNativeInput(t){const e=["INPUT","TEXTAREA"];return t&&t.tagName?e.includes(t.tagName):!1}static canSetCaret(t){let e=!0;if(d.isNativeInput(t))switch(t.type){case"file":case"checkbox":case"radio":case"hidden":case"submit":case"button":case"image":case"reset":e=!1;break}else e=d.isContentEditable(t);return e}static isNodeEmpty(t){let e;return this.isSingleTag(t)&&!this.isLineBreakTag(t)?!1:(this.isElement(t)&&this.isNativeInput(t)?e=t.value:e=t.textContent.replace("​",""),e.trim().length===0)}static isLeaf(t){return t?t.childNodes.length===0:!1}static isEmpty(t){t.normalize();const e=[t];for(;e.length>0;)if(t=e.shift(),!!t){if(this.isLeaf(t)&&!this.isNodeEmpty(t))return!1;t.childNodes&&e.push(...Array.from(t.childNodes))}return!0}static isHTMLString(t){const e=d.make("div");return e.innerHTML=t,e.childElementCount>0}static getContentLength(t){return d.isNativeInput(t)?t.value.length:t.nodeType===Node.TEXT_NODE?t.length:t.textContent.length}static get blockElements(){return["address","article","aside","blockquote","canvas","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","ruby","section","table","tbody","thead","tr","tfoot","ul","video"]}static containsOnlyInlineElements(t){let e;J(t)?(e=document.createElement("div"),e.innerHTML=t):e=t;const o=i=>!d.blockElements.includes(i.tagName.toLowerCase())&&Array.from(i.children).every(o);return Array.from(e.children).every(o)}static getDeepestBlockElements(t){return d.containsOnlyInlineElements(t)?[t]:Array.from(t.children).reduce((e,o)=>[...e,...d.getDeepestBlockElements(o)],[])}static getHolder(t){return J(t)?document.getElementById(t):t}static isAnchor(t){return t.tagName.toLowerCase()==="a"}static offset(t){const e=t.getBoundingClientRect(),o=window.pageXOffset||document.documentElement.scrollLeft,i=window.pageYOffset||document.documentElement.scrollTop,n=e.top+i,r=e.left+o;return{top:n,left:r,bottom:n+e.height,right:r+e.width}}}const Je={blockTunes:{toggler:{"Click to tune":"","or drag to move":""}},inlineToolbar:{converter:{"Convert to":""}},toolbar:{toolbox:{Add:""}},popover:{Filter:"","Nothing found":""}},Qe={Text:"",Link:"",Bold:"",Italic:""},to={link:{"Add a link":""},stub:{"The block can not be displayed correctly.":""}},eo={delete:{Delete:"","Click to delete":""},moveUp:{"Move up":""},moveDown:{"Move down":""}},le={ui:Je,toolNames:Qe,tools:to,blockTunes:eo},it=class{static ui(s,t){return it._t(s,t)}static t(s,t){return it._t(s,t)}static setDictionary(s){it.currentDictionary=s}static _t(s,t){const e=it.getNamespace(s);return!e||!e[t]?t:e[t]}static getNamespace(s){return s.split(".").reduce((t,e)=>!t||!Object.keys(t).length?{}:t[e],it.currentDictionary)}};let $=it;$.currentDictionary=le;class ce extends Error{}class wt{constructor(){this.subscribers={}}on(t,e){t in this.subscribers||(this.subscribers[t]=[]),this.subscribers[t].push(e)}once(t,e){t in this.subscribers||(this.subscribers[t]=[]);const o=i=>{const n=e(i),r=this.subscribers[t].indexOf(o);return r!==-1&&this.subscribers[t].splice(r,1),n};this.subscribers[t].push(o)}emit(t,e){V(this.subscribers)||!this.subscribers[t]||this.subscribers[t].reduce((o,i)=>{const n=i(o);return n!==void 0?n:o},e)}off(t,e){for(let o=0;o{const l=this.allListeners.indexOf(n[a]);l>-1&&(this.allListeners.splice(l,1),r.element.removeEventListener(r.eventType,r.handler,r.options))})}offById(t){const e=this.findById(t);e&&e.element.removeEventListener(e.eventType,e.handler,e.options)}findOne(t,e,o){const i=this.findAll(t,e,o);return i.length>0?i[0]:null}findAll(t,e,o){let i;const n=t?this.findByEventTarget(t):[];return t&&e&&o?i=n.filter(r=>r.eventType===e&&r.handler===o):t&&e?i=n.filter(r=>r.eventType===e):i=n,i}removeAll(){this.allListeners.map(t=>{t.element.removeEventListener(t.eventType,t.handler,t.options)}),this.allListeners=[]}destroy(){this.removeAll()}findByEventTarget(t){return this.allListeners.filter(e=>{if(e.element===t)return e})}findByType(t){return this.allListeners.filter(e=>{if(e.eventType===t)return e})}findByHandler(t){return this.allListeners.filter(e=>{if(e.handler===t)return e})}findById(t){return this.allListeners.find(e=>e.id===t)}}class B{constructor({config:t,eventsDispatcher:e}){if(this.nodes={},this.listeners=new Dt,this.readOnlyMutableListeners={on:(o,i,n,r=!1)=>{this.mutableListenerIds.push(this.listeners.on(o,i,n,r))},clearAll:()=>{for(const o of this.mutableListenerIds)this.listeners.offById(o);this.mutableListenerIds=[]}},this.mutableListenerIds=[],new.target===B)throw new TypeError("Constructors for abstract class Module are not allowed.");this.config=t,this.eventsDispatcher=e}set state(t){this.Editor=t}removeAllNodes(){for(const t in this.nodes){const e=this.nodes[t];e instanceof HTMLElement&&e.remove()}}get isRtl(){return this.config.i18n.direction==="rtl"}}class b{constructor(){this.instance=null,this.selection=null,this.savedSelectionRange=null,this.isFakeBackgroundEnabled=!1,this.commandBackground="backColor",this.commandRemoveFormat="removeFormat"}static get CSS(){return{editorWrapper:"codex-editor",editorZone:"codex-editor__redactor"}}static get anchorNode(){const t=window.getSelection();return t?t.anchorNode:null}static get anchorElement(){const t=window.getSelection();if(!t)return null;const e=t.anchorNode;return e?d.isElement(e)?e:e.parentElement:null}static get anchorOffset(){const t=window.getSelection();return t?t.anchorOffset:null}static get isCollapsed(){const t=window.getSelection();return t?t.isCollapsed:null}static get isAtEditor(){return this.isSelectionAtEditor(b.get())}static isSelectionAtEditor(t){if(!t)return!1;let e=t.anchorNode||t.focusNode;e&&e.nodeType===Node.TEXT_NODE&&(e=e.parentNode);let o=null;return e&&e instanceof Element&&(o=e.closest(`.${b.CSS.editorZone}`)),o?o.nodeType===Node.ELEMENT_NODE:!1}static isRangeAtEditor(t){if(!t)return;let e=t.startContainer;e&&e.nodeType===Node.TEXT_NODE&&(e=e.parentNode);let o=null;return e&&e instanceof Element&&(o=e.closest(`.${b.CSS.editorZone}`)),o?o.nodeType===Node.ELEMENT_NODE:!1}static get isSelectionExists(){return!!b.get().anchorNode}static get range(){return this.getRangeFromSelection(this.get())}static getRangeFromSelection(t){return t&&t.rangeCount?t.getRangeAt(0):null}static get rect(){let t=document.selection,e,o={x:0,y:0,width:0,height:0};if(t&&t.type!=="Control")return t=t,e=t.createRange(),o.x=e.boundingLeft,o.y=e.boundingTop,o.width=e.boundingWidth,o.height=e.boundingHeight,o;if(!window.getSelection)return T("Method window.getSelection is not supported","warn"),o;if(t=window.getSelection(),t.rangeCount===null||isNaN(t.rangeCount))return T("Method SelectionUtils.rangeCount is not supported","warn"),o;if(t.rangeCount===0)return o;if(e=t.getRangeAt(0).cloneRange(),e.getBoundingClientRect&&(o=e.getBoundingClientRect()),o.x===0&&o.y===0){const i=document.createElement("span");if(i.getBoundingClientRect){i.appendChild(document.createTextNode("​")),e.insertNode(i),o=i.getBoundingClientRect();const n=i.parentNode;n.removeChild(i),n.normalize()}}return o}static get text(){return window.getSelection?window.getSelection().toString():""}static get(){return window.getSelection()}static setCursor(t,e=0){const o=document.createRange(),i=window.getSelection();return d.isNativeInput(t)?d.canSetCaret(t)?(t.focus(),t.selectionStart=t.selectionEnd=e,t.getBoundingClientRect()):void 0:(o.setStart(t,e),o.setEnd(t,e),i.removeAllRanges(),i.addRange(o),o.getBoundingClientRect())}static isRangeInsideContainer(t){const e=b.range;return e===null?!1:t.contains(e.startContainer)}static addFakeCursor(){const t=b.range;if(t===null)return;const e=d.make("span","codex-editor__fake-cursor");e.dataset.mutationFree="true",t.collapse(),t.insertNode(e)}static isFakeCursorInsideContainer(t){return d.find(t,".codex-editor__fake-cursor")!==null}static removeFakeCursor(t=document.body){const e=d.find(t,".codex-editor__fake-cursor");e&&e.remove()}removeFakeBackground(){this.isFakeBackgroundEnabled&&(this.isFakeBackgroundEnabled=!1,document.execCommand(this.commandRemoveFormat))}setFakeBackground(){document.execCommand(this.commandBackground,!1,"#a8d6ff"),this.isFakeBackgroundEnabled=!0}save(){this.savedSelectionRange=b.range}restore(){if(!this.savedSelectionRange)return;const t=window.getSelection();t.removeAllRanges(),t.addRange(this.savedSelectionRange)}clearSaved(){this.savedSelectionRange=null}collapseToEnd(){const t=window.getSelection(),e=document.createRange();e.selectNodeContents(t.focusNode),e.collapse(!1),t.removeAllRanges(),t.addRange(e)}findParentTag(t,e,o=10){const i=window.getSelection();let n=null;return!i||!i.anchorNode||!i.focusNode?null:([i.anchorNode,i.focusNode].forEach(r=>{let a=o;for(;a>0&&r.parentNode&&!(r.tagName===t&&(n=r,e&&r.classList&&!r.classList.contains(e)&&(n=null),n));)r=r.parentNode,a--}),n)}expandToTag(t){const e=window.getSelection();e.removeAllRanges();const o=document.createRange();o.selectNodeContents(t),e.addRange(o)}}function oo(s,t){const{type:e,target:o,addedNodes:i,removedNodes:n}=s;if(o===t)return!0;if(["characterData","attributes"].includes(e)){const l=o.nodeType===Node.TEXT_NODE?o.parentNode:o;return t.contains(l)}const r=Array.from(i).some(l=>t.contains(l)),a=Array.from(n).some(l=>t.contains(l));return r||a}const _t="redactor dom changed",de="block changed",he="fake cursor is about to be toggled",pe="fake cursor have been set";var q=(s=>(s.APPEND_CALLBACK="appendCallback",s.RENDERED="rendered",s.MOVED="moved",s.UPDATED="updated",s.REMOVED="removed",s.ON_PASTE="onPaste",s))(q||{});class F extends wt{constructor({id:t=Ve(),data:e,tool:o,api:i,readOnly:n,tunesData:r},a){super(),this.cachedInputs=[],this.toolRenderedElement=null,this.tunesInstances=new Map,this.defaultTunesInstances=new Map,this.unavailableTunesData={},this.inputIndex=0,this.editorEventBus=null,this.handleFocus=()=>{this.dropInputsCache(),this.updateCurrentInput()},this.didMutated=(l=void 0)=>{const c=l===void 0,p=l instanceof InputEvent;!c&&!p&&this.detectToolRootChange(l);let h;c||p?h=!0:h=!(l.length>0&&l.every(f=>{const{addedNodes:k,removedNodes:u,target:S}=f;return[...Array.from(k),...Array.from(u),S].some(L=>d.isElement(L)?L.dataset.mutationFree==="true":!1)})),h&&(this.dropInputsCache(),this.updateCurrentInput(),this.call("updated"),this.emit("didMutated",this))},this.name=o.name,this.id=t,this.settings=o.settings,this.config=o.settings.config||{},this.api=i,this.editorEventBus=a||null,this.blockAPI=new ht(this),this.tool=o,this.toolInstance=o.create(e,this.blockAPI,n),this.tunes=o.tunes,this.composeTunes(r),this.holder=this.compose(),this.watchBlockMutations(),this.addInputEvents()}static get CSS(){return{wrapper:"ce-block",wrapperStretched:"ce-block--stretched",content:"ce-block__content",focused:"ce-block--focused",selected:"ce-block--selected",dropTarget:"ce-block--drop-target"}}get inputs(){if(this.cachedInputs.length!==0)return this.cachedInputs;const t=d.findAllInputs(this.holder);return this.inputIndex>t.length-1&&(this.inputIndex=t.length-1),this.cachedInputs=t,t}get currentInput(){return this.inputs[this.inputIndex]}set currentInput(t){const e=this.inputs.findIndex(o=>o===t||o.contains(t));e!==-1&&(this.inputIndex=e)}get firstInput(){return this.inputs[0]}get lastInput(){const t=this.inputs;return t[t.length-1]}get nextInput(){return this.inputs[this.inputIndex+1]}get previousInput(){return this.inputs[this.inputIndex-1]}get data(){return this.save().then(t=>t&&!V(t.data)?t.data:{})}get sanitize(){return this.tool.sanitizeConfig}get mergeable(){return D(this.toolInstance.merge)}get isEmpty(){const t=d.isEmpty(this.pluginsContent),e=!this.hasMedia;return t&&e}get hasMedia(){const t=["img","iframe","video","audio","source","input","textarea","twitterwidget"];return!!this.holder.querySelector(t.join(","))}set focused(t){this.holder.classList.toggle(F.CSS.focused,t)}get focused(){return this.holder.classList.contains(F.CSS.focused)}set selected(t){var e,o;this.holder.classList.toggle(F.CSS.selected,t);const i=t===!0&&b.isRangeInsideContainer(this.holder),n=t===!1&&b.isFakeCursorInsideContainer(this.holder);(i||n)&&((e=this.editorEventBus)==null||e.emit(he,{state:t}),i?b.addFakeCursor():b.removeFakeCursor(this.holder),(o=this.editorEventBus)==null||o.emit(pe,{state:t}))}get selected(){return this.holder.classList.contains(F.CSS.selected)}set stretched(t){this.holder.classList.toggle(F.CSS.wrapperStretched,t)}get stretched(){return this.holder.classList.contains(F.CSS.wrapperStretched)}set dropTarget(t){this.holder.classList.toggle(F.CSS.dropTarget,t)}get pluginsContent(){return this.toolRenderedElement}call(t,e){if(D(this.toolInstance[t])){t==="appendCallback"&&T("`appendCallback` hook is deprecated and will be removed in the next major release. Use `rendered` hook instead","warn");try{this.toolInstance[t].call(this.toolInstance,e)}catch(o){T(`Error during '${t}' call: ${o.message}`,"error")}}}async mergeWith(t){await this.toolInstance.merge(t)}async save(){const t=await this.toolInstance.save(this.pluginsContent),e=this.unavailableTunesData;[...this.tunesInstances.entries(),...this.defaultTunesInstances.entries()].forEach(([n,r])=>{if(D(r.save))try{e[n]=r.save()}catch(a){T(`Tune ${r.constructor.name} save method throws an Error %o`,"warn",a)}});const o=window.performance.now();let i;return Promise.resolve(t).then(n=>(i=window.performance.now(),{id:this.id,tool:this.name,data:n,tunes:e,time:i-o})).catch(n=>{T(`Saving process for ${this.name} tool failed due to the ${n}`,"log","red")})}async validate(t){let e=!0;return this.toolInstance.validate instanceof Function&&(e=await this.toolInstance.validate(t)),e}getTunes(){const t=document.createElement("div"),e=[],o=typeof this.toolInstance.renderSettings=="function"?this.toolInstance.renderSettings():[],i=[...this.tunesInstances.values(),...this.defaultTunesInstances.values()].map(n=>n.render());return[o,i].flat().forEach(n=>{d.isElement(n)?t.appendChild(n):Array.isArray(n)?e.push(...n):e.push(n)}),[e,t]}updateCurrentInput(){this.currentInput=d.isNativeInput(document.activeElement)||!b.anchorNode?document.activeElement:b.anchorNode}dispatchChange(){this.didMutated()}destroy(){this.unwatchBlockMutations(),this.removeInputEvents(),super.destroy(),D(this.toolInstance.destroy)&&this.toolInstance.destroy()}async getActiveToolboxEntry(){const t=this.tool.toolbox;if(t.length===1)return Promise.resolve(this.tool.toolbox[0]);const e=await this.data;return t.find(o=>Object.entries(o.data).some(([i,n])=>e[i]&&qe(e[i],n)))}compose(){const t=d.make("div",F.CSS.wrapper),e=d.make("div",F.CSS.content),o=this.toolInstance.render();this.toolRenderedElement=o,e.appendChild(this.toolRenderedElement);let i=e;return[...this.tunesInstances.values(),...this.defaultTunesInstances.values()].forEach(n=>{if(D(n.wrap))try{i=n.wrap(i)}catch(r){T(`Tune ${n.constructor.name} wrap method throws an Error %o`,"warn",r)}}),t.appendChild(i),t}composeTunes(t){Array.from(this.tunes.values()).forEach(e=>{(e.isInternal?this.defaultTunesInstances:this.tunesInstances).set(e.name,e.create(t[e.name],this.blockAPI))}),Object.entries(t).forEach(([e,o])=>{this.tunesInstances.has(e)||(this.unavailableTunesData[e]=o)})}addInputEvents(){this.inputs.forEach(t=>{t.addEventListener("focus",this.handleFocus),d.isNativeInput(t)&&t.addEventListener("input",this.didMutated)})}removeInputEvents(){this.inputs.forEach(t=>{t.removeEventListener("focus",this.handleFocus),d.isNativeInput(t)&&t.removeEventListener("input",this.didMutated)})}watchBlockMutations(){var t;this.redactorDomChangedCallback=e=>{const{mutations:o}=e;o.some(i=>oo(i,this.toolRenderedElement))&&this.didMutated(o)},(t=this.editorEventBus)==null||t.on(_t,this.redactorDomChangedCallback)}unwatchBlockMutations(){var t;(t=this.editorEventBus)==null||t.off(_t,this.redactorDomChangedCallback)}detectToolRootChange(t){t.forEach(e=>{if(Array.from(e.removedNodes).includes(this.toolRenderedElement)){const o=e.addedNodes[e.addedNodes.length-1];this.toolRenderedElement=o}})}dropInputsCache(){this.cachedInputs=[]}}class io extends B{constructor(){super(...arguments),this.insert=(t=this.config.defaultBlock,e={},o={},i,n,r,a)=>{const l=this.Editor.BlockManager.insert({id:a,tool:t,data:e,index:i,needToFocus:n,replace:r});return new ht(l)},this.composeBlockData=async t=>{const e=this.Editor.Tools.blockTools.get(t);return new F({tool:e,api:this.Editor.API,readOnly:!0,data:{},tunesData:{}}).data},this.update=(t,e)=>{const{BlockManager:o}=this.Editor,i=o.getBlockById(t);if(!i){T("blocks.update(): Block with passed id was not found","warn");return}const n=o.getBlockIndex(i);o.insert({id:i.id,tool:i.name,data:e,index:n,replace:!0,tunes:i.tunes})}}get methods(){return{clear:()=>this.clear(),render:t=>this.render(t),renderFromHTML:t=>this.renderFromHTML(t),delete:t=>this.delete(t),swap:(t,e)=>this.swap(t,e),move:(t,e)=>this.move(t,e),getBlockByIndex:t=>this.getBlockByIndex(t),getById:t=>this.getById(t),getCurrentBlockIndex:()=>this.getCurrentBlockIndex(),getBlockIndex:t=>this.getBlockIndex(t),getBlocksCount:()=>this.getBlocksCount(),stretchBlock:(t,e=!0)=>this.stretchBlock(t,e),insertNewBlock:()=>this.insertNewBlock(),insert:this.insert,update:this.update,composeBlockData:this.composeBlockData}}getBlocksCount(){return this.Editor.BlockManager.blocks.length}getCurrentBlockIndex(){return this.Editor.BlockManager.currentBlockIndex}getBlockIndex(t){const e=this.Editor.BlockManager.getBlockById(t);if(!e){K("There is no block with id `"+t+"`","warn");return}return this.Editor.BlockManager.getBlockIndex(e)}getBlockByIndex(t){const e=this.Editor.BlockManager.getBlockByIndex(t);if(e===void 0){K("There is no block at index `"+t+"`","warn");return}return new ht(e)}getById(t){const e=this.Editor.BlockManager.getBlockById(t);return e===void 0?(K("There is no block with id `"+t+"`","warn"),null):new ht(e)}swap(t,e){T("`blocks.swap()` method is deprecated and will be removed in the next major release. Use `block.move()` method instead","info"),this.Editor.BlockManager.swap(t,e)}move(t,e){this.Editor.BlockManager.move(t,e)}delete(t){try{this.Editor.BlockManager.removeBlock(t)}catch(e){K(e,"warn");return}this.Editor.BlockManager.blocks.length===0&&this.Editor.BlockManager.insert(),this.Editor.BlockManager.currentBlock&&this.Editor.Caret.setToBlock(this.Editor.BlockManager.currentBlock,this.Editor.Caret.positions.END),this.Editor.Toolbar.close()}clear(){this.Editor.BlockManager.clear(!0),this.Editor.InlineToolbar.close()}render(t){return this.Editor.BlockManager.clear(),this.Editor.Renderer.render(t.blocks)}renderFromHTML(t){return this.Editor.BlockManager.clear(),this.Editor.Paste.processText(t,!0)}stretchBlock(t,e=!0){Mt(!0,"blocks.stretchBlock()","BlockAPI");const o=this.Editor.BlockManager.getBlockByIndex(t);o&&(o.stretched=e)}insertNewBlock(){T("Method blocks.insertNewBlock() is deprecated and it will be removed in the next major release. Use blocks.insert() instead.","warn"),this.insert()}}class no extends B{constructor(){super(...arguments),this.setToFirstBlock=(t=this.Editor.Caret.positions.DEFAULT,e=0)=>this.Editor.BlockManager.firstBlock?(this.Editor.Caret.setToBlock(this.Editor.BlockManager.firstBlock,t,e),!0):!1,this.setToLastBlock=(t=this.Editor.Caret.positions.DEFAULT,e=0)=>this.Editor.BlockManager.lastBlock?(this.Editor.Caret.setToBlock(this.Editor.BlockManager.lastBlock,t,e),!0):!1,this.setToPreviousBlock=(t=this.Editor.Caret.positions.DEFAULT,e=0)=>this.Editor.BlockManager.previousBlock?(this.Editor.Caret.setToBlock(this.Editor.BlockManager.previousBlock,t,e),!0):!1,this.setToNextBlock=(t=this.Editor.Caret.positions.DEFAULT,e=0)=>this.Editor.BlockManager.nextBlock?(this.Editor.Caret.setToBlock(this.Editor.BlockManager.nextBlock,t,e),!0):!1,this.setToBlock=(t,e=this.Editor.Caret.positions.DEFAULT,o=0)=>this.Editor.BlockManager.blocks[t]?(this.Editor.Caret.setToBlock(this.Editor.BlockManager.blocks[t],e,o),!0):!1,this.focus=(t=!1)=>t?this.setToLastBlock(this.Editor.Caret.positions.END):this.setToFirstBlock(this.Editor.Caret.positions.START)}get methods(){return{setToFirstBlock:this.setToFirstBlock,setToLastBlock:this.setToLastBlock,setToPreviousBlock:this.setToPreviousBlock,setToNextBlock:this.setToNextBlock,setToBlock:this.setToBlock,focus:this.focus}}}class so extends B{get methods(){return{emit:(t,e)=>this.emit(t,e),off:(t,e)=>this.off(t,e),on:(t,e)=>this.on(t,e)}}on(t,e){this.eventsDispatcher.on(t,e)}emit(t,e){this.eventsDispatcher.emit(t,e)}off(t,e){this.eventsDispatcher.off(t,e)}}class Pt extends B{static getNamespace(t){return t.isTune()?`blockTunes.${t.name}`:`tools.${t.name}`}get methods(){return{t:()=>{K("I18n.t() method can be accessed only from Tools","warn")}}}getMethodsForTool(t){return Object.assign(this.methods,{t:e=>$.t(Pt.getNamespace(t),e)})}}class ro extends B{get methods(){return{blocks:this.Editor.BlocksAPI.methods,caret:this.Editor.CaretAPI.methods,events:this.Editor.EventsAPI.methods,listeners:this.Editor.ListenersAPI.methods,notifier:this.Editor.NotifierAPI.methods,sanitizer:this.Editor.SanitizerAPI.methods,saver:this.Editor.SaverAPI.methods,selection:this.Editor.SelectionAPI.methods,styles:this.Editor.StylesAPI.classes,toolbar:this.Editor.ToolbarAPI.methods,inlineToolbar:this.Editor.InlineToolbarAPI.methods,tooltip:this.Editor.TooltipAPI.methods,i18n:this.Editor.I18nAPI.methods,readOnly:this.Editor.ReadOnlyAPI.methods,ui:this.Editor.UiAPI.methods}}getMethodsForTool(t){return Object.assign(this.methods,{i18n:this.Editor.I18nAPI.getMethodsForTool(t)})}}class ao extends B{get methods(){return{close:()=>this.close(),open:()=>this.open()}}open(){this.Editor.InlineToolbar.tryToShow()}close(){this.Editor.InlineToolbar.close()}}class lo extends B{get methods(){return{on:(t,e,o,i)=>this.on(t,e,o,i),off:(t,e,o,i)=>this.off(t,e,o,i),offById:t=>this.offById(t)}}on(t,e,o,i){return this.listeners.on(t,e,o,i)}off(t,e,o,i){this.listeners.off(t,e,o,i)}offById(t){this.listeners.offById(t)}}var At={},co={get exports(){return At},set exports(s){At=s}};(function(s,t){(function(e,o){s.exports=o()})(window,function(){return function(e){var o={};function i(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=o,i.d=function(n,r,a){i.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:a})},i.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(n,r){if(1&r&&(n=i(n)),8&r||4&r&&typeof n=="object"&&n&&n.__esModule)return n;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&r&&typeof n!="string")for(var l in n)i.d(a,l,(function(c){return n[c]}).bind(null,l));return a},i.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(r,"a",r),r},i.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},i.p="/",i(i.s=0)}([function(e,o,i){i(1),e.exports=function(){var n=i(6),r="cdx-notify--bounce-in",a=null;return{show:function(l){if(l.message){(function(){if(a)return!0;a=n.getWrapper(),document.body.appendChild(a)})();var c=null,p=l.time||8e3;switch(l.type){case"confirm":c=n.confirm(l);break;case"prompt":c=n.prompt(l);break;default:c=n.alert(l),window.setTimeout(function(){c.remove()},p)}a.appendChild(c),c.classList.add(r)}}}}()},function(e,o,i){var n=i(2);typeof n=="string"&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};i(4)(n,r),n.locals&&(e.exports=n.locals)},function(e,o,i){(e.exports=i(3)(!1)).push([e.i,`.cdx-notify--error{background:#fffbfb!important}.cdx-notify--error::before{background:#fb5d5d!important}.cdx-notify__input{max-width:130px;padding:5px 10px;background:#f7f7f7;border:0;border-radius:3px;font-size:13px;color:#656b7c;outline:0}.cdx-notify__input:-ms-input-placeholder{color:#656b7c}.cdx-notify__input::placeholder{color:#656b7c}.cdx-notify__input:focus:-ms-input-placeholder{color:rgba(101,107,124,.3)}.cdx-notify__input:focus::placeholder{color:rgba(101,107,124,.3)}.cdx-notify__button{border:none;border-radius:3px;font-size:13px;padding:5px 10px;cursor:pointer}.cdx-notify__button:last-child{margin-left:10px}.cdx-notify__button--cancel{background:#f2f5f7;box-shadow:0 2px 1px 0 rgba(16,19,29,0);color:#656b7c}.cdx-notify__button--cancel:hover{background:#eee}.cdx-notify__button--confirm{background:#34c992;box-shadow:0 1px 1px 0 rgba(18,49,35,.05);color:#fff}.cdx-notify__button--confirm:hover{background:#33b082}.cdx-notify__btns-wrapper{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;margin-top:5px}.cdx-notify__cross{position:absolute;top:5px;right:5px;width:10px;height:10px;padding:5px;opacity:.54;cursor:pointer}.cdx-notify__cross::after,.cdx-notify__cross::before{content:'';position:absolute;left:9px;top:5px;height:12px;width:2px;background:#575d67}.cdx-notify__cross::before{transform:rotate(-45deg)}.cdx-notify__cross::after{transform:rotate(45deg)}.cdx-notify__cross:hover{opacity:1}.cdx-notifies{position:fixed;z-index:2;bottom:20px;left:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.cdx-notify{position:relative;width:220px;margin-top:15px;padding:13px 16px;background:#fff;box-shadow:0 11px 17px 0 rgba(23,32,61,.13);border-radius:5px;font-size:14px;line-height:1.4em;word-wrap:break-word}.cdx-notify::before{content:'';position:absolute;display:block;top:0;left:0;width:3px;height:calc(100% - 6px);margin:3px;border-radius:5px;background:0 0}@keyframes bounceIn{0%{opacity:0;transform:scale(.3)}50%{opacity:1;transform:scale(1.05)}70%{transform:scale(.9)}100%{transform:scale(1)}}.cdx-notify--bounce-in{animation-name:bounceIn;animation-duration:.6s;animation-iteration-count:1}.cdx-notify--success{background:#fafffe!important}.cdx-notify--success::before{background:#41ffb1!important}`,""])},function(e,o){e.exports=function(i){var n=[];return n.toString=function(){return this.map(function(r){var a=function(l,c){var p=l[1]||"",h=l[3];if(!h)return p;if(c&&typeof btoa=="function"){var f=(u=h,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(u))))+" */"),k=h.sources.map(function(S){return"/*# sourceURL="+h.sourceRoot+S+" */"});return[p].concat(k).concat([f]).join(` +`)}var u;return[p].join(` +`)}(r,i);return r[2]?"@media "+r[2]+"{"+a+"}":a}).join("")},n.i=function(r,a){typeof r=="string"&&(r=[[null,r,""]]);for(var l={},c=0;c=0&&f.splice(g,1)}function R(m){var g=document.createElement("style");return m.attrs.type===void 0&&(m.attrs.type="text/css"),w(g,m.attrs),L(m,g),g}function w(m,g){Object.keys(g).forEach(function(y){m.setAttribute(y,g[y])})}function v(m,g){var y,C,A,I;if(g.transform&&m.css){if(!(I=g.transform(m.css)))return function(){};m.css=I}if(g.singleton){var H=h++;y=p||(p=R(g)),C=O.bind(null,y,H,!1),A=O.bind(null,y,H,!0)}else m.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(y=function(_){var Y=document.createElement("link");return _.attrs.type===void 0&&(_.attrs.type="text/css"),_.attrs.rel="stylesheet",w(Y,_.attrs),L(_,Y),Y}(g),C=(function(_,Y,lt){var Q=lt.css,Et=lt.sourceMap,_e=Y.convertToAbsoluteUrls===void 0&&Et;(Y.convertToAbsoluteUrls||_e)&&(Q=k(Q)),Et&&(Q+=` +/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(Et))))+" */");var Ae=new Blob([Q],{type:"text/css"}),Vt=_.href;_.href=URL.createObjectURL(Ae),Vt&&URL.revokeObjectURL(Vt)}).bind(null,y,g),A=function(){N(y),y.href&&URL.revokeObjectURL(y.href)}):(y=R(g),C=(function(_,Y){var lt=Y.css,Q=Y.media;if(Q&&_.setAttribute("media",Q),_.styleSheet)_.styleSheet.cssText=lt;else{for(;_.firstChild;)_.removeChild(_.firstChild);_.appendChild(document.createTextNode(lt))}}).bind(null,y),A=function(){N(y)});return C(m),function(_){if(_){if(_.css===m.css&&_.media===m.media&&_.sourceMap===m.sourceMap)return;C(m=_)}else A()}}e.exports=function(m,g){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(g=g||{}).attrs=typeof g.attrs=="object"?g.attrs:{},g.singleton||typeof g.singleton=="boolean"||(g.singleton=l()),g.insertInto||(g.insertInto="head"),g.insertAt||(g.insertAt="bottom");var y=S(m,g);return u(y,g),function(C){for(var A=[],I=0;Ithis.show(t)}}show(t){return this.notifier.show(t)}}class fo extends B{get methods(){const t=()=>this.isEnabled;return{toggle:e=>this.toggle(e),get isEnabled(){return t()}}}toggle(t){return this.Editor.ReadOnly.toggle(t)}get isEnabled(){return this.Editor.ReadOnly.isEnabled}}var Lt={},go={get exports(){return Lt},set exports(s){Lt=s}};(function(s,t){(function(e,o){s.exports=o()})(Fe,function(){function e(h){var f=h.tags,k=Object.keys(f),u=k.map(function(S){return typeof f[S]}).every(function(S){return S==="object"||S==="boolean"||S==="function"});if(!u)throw new Error("The configuration was invalid");this.config=h}var o=["P","LI","TD","TH","DIV","H1","H2","H3","H4","H5","H6","PRE"];function i(h){return o.indexOf(h.nodeName)!==-1}var n=["A","B","STRONG","I","EM","SUB","SUP","U","STRIKE"];function r(h){return n.indexOf(h.nodeName)!==-1}e.prototype.clean=function(h){const f=document.implementation.createHTMLDocument(),k=f.createElement("div");return k.innerHTML=h,this._sanitize(f,k),k.innerHTML},e.prototype._sanitize=function(h,f){var k=a(h,f),u=k.firstChild();if(u)do{if(u.nodeType===Node.TEXT_NODE)if(u.data.trim()===""&&(u.previousElementSibling&&i(u.previousElementSibling)||u.nextElementSibling&&i(u.nextElementSibling))){f.removeChild(u),this._sanitize(h,f);break}else continue;if(u.nodeType===Node.COMMENT_NODE){f.removeChild(u),this._sanitize(h,f);break}var S=r(u),L;S&&(L=Array.prototype.some.call(u.childNodes,i));var N=!!f.parentNode,R=i(f)&&i(u)&&N,w=u.nodeName.toLowerCase(),v=l(this.config,w,u),x=S&&L;if(x||c(u,v)||!this.config.keepNestedBlockElements&&R){if(!(u.nodeName==="SCRIPT"||u.nodeName==="STYLE"))for(;u.childNodes.length>0;)f.insertBefore(u.childNodes[0],u);f.removeChild(u),this._sanitize(h,f);break}for(var M=0;M"u"?!0:typeof f=="boolean"?!f:!1}function p(h,f,k){var u=h.name.toLowerCase();return f===!0?!1:typeof f[u]=="function"?!f[u](h.value,k):typeof f[u]>"u"||f[u]===!1?!0:typeof f[u]=="string"?f[u]!==h.value:!1}return e})})(go);const mo=Lt;function ue(s,t){return s.map(e=>{const o=D(t)?t(e.tool):t;return V(o)||(e.data=Ft(e.data,o)),e})}function Z(s,t={}){const e={tags:t};return new mo(e).clean(s)}function Ft(s,t){return Array.isArray(s)?bo(s,t):z(s)?ko(s,t):J(s)?vo(s,t):s}function bo(s,t){return s.map(e=>Ft(e,t))}function ko(s,t){const e={};for(const o in s){if(!Object.prototype.hasOwnProperty.call(s,o))continue;const i=s[o],n=xo(t[o])?t[o]:t;e[o]=Ft(i,n)}return e}function vo(s,t){return z(t)?Z(s,t):t===!1?Z(s,{}):s}function xo(s){return z(s)||Ue(s)||D(s)}class wo extends B{get methods(){return{clean:(t,e)=>this.clean(t,e)}}clean(t,e){return Z(t,e)}}class yo extends B{get methods(){return{save:()=>this.save()}}save(){const t="Editor's content can not be saved in read-only mode";return this.Editor.ReadOnly.isEnabled?(K(t,"warn"),Promise.reject(new Error(t))):this.Editor.Saver.save()}}class Eo extends B{get methods(){return{findParentTag:(t,e)=>this.findParentTag(t,e),expandToTag:t=>this.expandToTag(t)}}findParentTag(t,e){return new b().findParentTag(t,e)}expandToTag(t){new b().expandToTag(t)}}class So extends B{get classes(){return{block:"cdx-block",inlineToolButton:"ce-inline-tool",inlineToolButtonActive:"ce-inline-tool--active",input:"cdx-input",loader:"cdx-loader",button:"cdx-button",settingsButton:"cdx-settings-button",settingsButtonActive:"cdx-settings-button--active"}}}class Co extends B{get methods(){return{close:()=>this.close(),open:()=>this.open(),toggleBlockSettings:t=>this.toggleBlockSettings(t),toggleToolbox:t=>this.toggleToolbox(t)}}open(){this.Editor.Toolbar.moveAndOpen()}close(){this.Editor.Toolbar.close()}toggleBlockSettings(t){if(this.Editor.BlockManager.currentBlockIndex===-1){K("Could't toggle the Toolbar because there is no block selected ","warn");return}t??!this.Editor.BlockSettings.opened?(this.Editor.Toolbar.moveAndOpen(),this.Editor.BlockSettings.open()):this.Editor.BlockSettings.close()}toggleToolbox(t){if(this.Editor.BlockManager.currentBlockIndex===-1){K("Could't toggle the Toolbox because there is no block selected ","warn");return}t??!this.Editor.Toolbar.toolbox.opened?(this.Editor.Toolbar.moveAndOpen(),this.Editor.Toolbar.toolbox.open()):this.Editor.Toolbar.toolbox.close()}}var Ot={},To={get exports(){return Ot},set exports(s){Ot=s}};/*! + * CodeX.Tooltips + * + * @version 1.0.5 + * + * @licence MIT + * @author CodeX + * + * + */(function(s,t){(function(e,o){s.exports=o()})(window,function(){return function(e){var o={};function i(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=o,i.d=function(n,r,a){i.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:a})},i.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(n,r){if(1&r&&(n=i(n)),8&r||4&r&&typeof n=="object"&&n&&n.__esModule)return n;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&r&&typeof n!="string")for(var l in n)i.d(a,l,(function(c){return n[c]}).bind(null,l));return a},i.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(r,"a",r),r},i.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},i.p="",i(i.s=0)}([function(e,o,i){e.exports=i(1)},function(e,o,i){i.r(o),i.d(o,"default",function(){return n});class n{constructor(){this.nodes={wrapper:null,content:null},this.showed=!1,this.offsetTop=10,this.offsetLeft=10,this.offsetRight=10,this.hidingDelay=0,this.handleWindowScroll=()=>{this.showed&&this.hide(!0)},this.loadStyles(),this.prepare(),window.addEventListener("scroll",this.handleWindowScroll,{passive:!0})}get CSS(){return{tooltip:"ct",tooltipContent:"ct__content",tooltipShown:"ct--shown",placement:{left:"ct--left",bottom:"ct--bottom",right:"ct--right",top:"ct--top"}}}show(a,l,c){this.nodes.wrapper||this.prepare(),this.hidingTimeout&&clearTimeout(this.hidingTimeout);const p=Object.assign({placement:"bottom",marginTop:0,marginLeft:0,marginRight:0,marginBottom:0,delay:70,hidingDelay:0},c);if(p.hidingDelay&&(this.hidingDelay=p.hidingDelay),this.nodes.content.innerHTML="",typeof l=="string")this.nodes.content.appendChild(document.createTextNode(l));else{if(!(l instanceof Node))throw Error("[CodeX Tooltip] Wrong type of «content» passed. It should be an instance of Node or String. But "+typeof l+" given.");this.nodes.content.appendChild(l)}switch(this.nodes.wrapper.classList.remove(...Object.values(this.CSS.placement)),p.placement){case"top":this.placeTop(a,p);break;case"left":this.placeLeft(a,p);break;case"right":this.placeRight(a,p);break;case"bottom":default:this.placeBottom(a,p)}p&&p.delay?this.showingTimeout=setTimeout(()=>{this.nodes.wrapper.classList.add(this.CSS.tooltipShown),this.showed=!0},p.delay):(this.nodes.wrapper.classList.add(this.CSS.tooltipShown),this.showed=!0)}hide(a=!1){if(this.hidingDelay&&!a)return this.hidingTimeout&&clearTimeout(this.hidingTimeout),void(this.hidingTimeout=setTimeout(()=>{this.hide(!0)},this.hidingDelay));this.nodes.wrapper.classList.remove(this.CSS.tooltipShown),this.showed=!1,this.showingTimeout&&clearTimeout(this.showingTimeout)}onHover(a,l,c){a.addEventListener("mouseenter",()=>{this.show(a,l,c)}),a.addEventListener("mouseleave",()=>{this.hide()})}destroy(){this.nodes.wrapper.remove(),window.removeEventListener("scroll",this.handleWindowScroll)}prepare(){this.nodes.wrapper=this.make("div",this.CSS.tooltip),this.nodes.content=this.make("div",this.CSS.tooltipContent),this.append(this.nodes.wrapper,this.nodes.content),this.append(document.body,this.nodes.wrapper)}loadStyles(){const a="codex-tooltips-style";if(document.getElementById(a))return;const l=i(2),c=this.make("style",null,{textContent:l.toString(),id:a});this.prepend(document.head,c)}placeBottom(a,l){const c=a.getBoundingClientRect(),p=c.left+a.clientWidth/2-this.nodes.wrapper.offsetWidth/2,h=c.bottom+window.pageYOffset+this.offsetTop+l.marginTop;this.applyPlacement("bottom",p,h)}placeTop(a,l){const c=a.getBoundingClientRect(),p=c.left+a.clientWidth/2-this.nodes.wrapper.offsetWidth/2,h=c.top+window.pageYOffset-this.nodes.wrapper.clientHeight-this.offsetTop;this.applyPlacement("top",p,h)}placeLeft(a,l){const c=a.getBoundingClientRect(),p=c.left-this.nodes.wrapper.offsetWidth-this.offsetLeft-l.marginLeft,h=c.top+window.pageYOffset+a.clientHeight/2-this.nodes.wrapper.offsetHeight/2;this.applyPlacement("left",p,h)}placeRight(a,l){const c=a.getBoundingClientRect(),p=c.right+this.offsetRight+l.marginRight,h=c.top+window.pageYOffset+a.clientHeight/2-this.nodes.wrapper.offsetHeight/2;this.applyPlacement("right",p,h)}applyPlacement(a,l,c){this.nodes.wrapper.classList.add(this.CSS.placement[a]),this.nodes.wrapper.style.left=l+"px",this.nodes.wrapper.style.top=c+"px"}make(a,l=null,c={}){const p=document.createElement(a);Array.isArray(l)?p.classList.add(...l):l&&p.classList.add(l);for(const h in c)c.hasOwnProperty(h)&&(p[h]=c[h]);return p}append(a,l){Array.isArray(l)?l.forEach(c=>a.appendChild(c)):a.appendChild(l)}prepend(a,l){Array.isArray(l)?(l=l.reverse()).forEach(c=>a.prepend(c)):a.prepend(l)}}},function(e,o){e.exports=`.ct{z-index:999;opacity:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-transition:opacity 50ms ease-in,-webkit-transform 70ms cubic-bezier(.215,.61,.355,1);transition:opacity 50ms ease-in,-webkit-transform 70ms cubic-bezier(.215,.61,.355,1);transition:opacity 50ms ease-in,transform 70ms cubic-bezier(.215,.61,.355,1);transition:opacity 50ms ease-in,transform 70ms cubic-bezier(.215,.61,.355,1),-webkit-transform 70ms cubic-bezier(.215,.61,.355,1);will-change:opacity,top,left;-webkit-box-shadow:0 8px 12px 0 rgba(29,32,43,.17),0 4px 5px -3px rgba(5,6,12,.49);box-shadow:0 8px 12px 0 rgba(29,32,43,.17),0 4px 5px -3px rgba(5,6,12,.49);border-radius:9px}.ct,.ct:before{position:absolute;top:0;left:0}.ct:before{content:"";bottom:0;right:0;background-color:#1d202b;z-index:-1;border-radius:4px}@supports(-webkit-mask-box-image:url("")){.ct:before{border-radius:0;-webkit-mask-box-image:url('data:image/svg+xml;charset=utf-8,') 48% 41% 37.9% 53.3%}}@media (--mobile){.ct{display:none}}.ct__content{padding:6px 10px;color:#cdd1e0;font-size:12px;text-align:center;letter-spacing:.02em;line-height:1em}.ct:after{content:"";width:8px;height:8px;position:absolute;background-color:#1d202b;z-index:-1}.ct--bottom{-webkit-transform:translateY(5px);transform:translateY(5px)}.ct--bottom:after{top:-3px;left:50%;-webkit-transform:translateX(-50%) rotate(-45deg);transform:translateX(-50%) rotate(-45deg)}.ct--top{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.ct--top:after{top:auto;bottom:-3px;left:50%;-webkit-transform:translateX(-50%) rotate(-45deg);transform:translateX(-50%) rotate(-45deg)}.ct--left{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.ct--left:after{top:50%;left:auto;right:0;-webkit-transform:translate(41.6%,-50%) rotate(-45deg);transform:translate(41.6%,-50%) rotate(-45deg)}.ct--right{-webkit-transform:translateX(5px);transform:translateX(5px)}.ct--right:after{top:50%;left:0;-webkit-transform:translate(-41.6%,-50%) rotate(-45deg);transform:translate(-41.6%,-50%) rotate(-45deg)}.ct--shown{opacity:1;-webkit-transform:none;transform:none}`}]).default})})(To);const Bo=xt(Ot);class Ht{constructor(){this.lib=new Bo}destroy(){this.lib.destroy()}show(t,e,o){this.lib.show(t,e,o)}hide(t=!1){this.lib.hide(t)}onHover(t,e,o){this.lib.onHover(t,e,o)}}class Io extends B{constructor({config:t,eventsDispatcher:e}){super({config:t,eventsDispatcher:e}),this.tooltip=new Ht}destroy(){this.tooltip.destroy()}get methods(){return{show:(t,e,o)=>this.show(t,e,o),hide:()=>this.hide(),onHover:(t,e,o)=>this.onHover(t,e,o)}}show(t,e,o){this.tooltip.show(t,e,o)}hide(){this.tooltip.hide()}onHover(t,e,o){this.tooltip.onHover(t,e,o)}}class Mo extends B{get methods(){return{nodes:this.editorNodes}}get editorNodes(){return{wrapper:this.Editor.UI.nodes.wrapper,redactor:this.Editor.UI.nodes.redactor}}}function fe(s,t){const e={};return Object.entries(s).forEach(([o,i])=>{if(z(i)){const n=t?`${t}.${o}`:o;Object.values(i).every(r=>J(r))?e[o]=n:e[o]=fe(i,n);return}e[o]=i}),e}const X=fe(le);function _o(s,t){const e={};return Object.keys(s).forEach(o=>{const i=t[o];i!==void 0?e[i]=s[o]:e[o]=s[o]}),e}const Ao='',ge='',Lo='',Oo='',No='',Ro='',Qt='',Do='',Po='',Fo='',Ho='';class P{constructor(t){this.nodes={root:null,icon:null},this.confirmationState=null,this.removeSpecialFocusBehavior=()=>{this.nodes.root.classList.remove(P.CSS.noFocus)},this.removeSpecialHoverBehavior=()=>{this.nodes.root.classList.remove(P.CSS.noHover)},this.onErrorAnimationEnd=()=>{this.nodes.icon.classList.remove(P.CSS.wobbleAnimation),this.nodes.icon.removeEventListener("animationend",this.onErrorAnimationEnd)},this.params=t,this.nodes.root=this.make(t)}get isDisabled(){return this.params.isDisabled}get toggle(){return this.params.toggle}get title(){return this.params.title}get closeOnActivate(){return this.params.closeOnActivate}get isConfirmationStateEnabled(){return this.confirmationState!==null}get isFocused(){return this.nodes.root.classList.contains(P.CSS.focused)}static get CSS(){return{container:"ce-popover-item",title:"ce-popover-item__title",secondaryTitle:"ce-popover-item__secondary-title",icon:"ce-popover-item__icon",active:"ce-popover-item--active",disabled:"ce-popover-item--disabled",focused:"ce-popover-item--focused",hidden:"ce-popover-item--hidden",confirmationState:"ce-popover-item--confirmation",noHover:"ce-popover-item--no-hover",noFocus:"ce-popover-item--no-focus",wobbleAnimation:"wobble"}}getElement(){return this.nodes.root}handleClick(){if(this.isConfirmationStateEnabled){this.activateOrEnableConfirmationMode(this.confirmationState);return}this.activateOrEnableConfirmationMode(this.params)}toggleActive(t){this.nodes.root.classList.toggle(P.CSS.active,t)}toggleHidden(t){this.nodes.root.classList.toggle(P.CSS.hidden,t)}reset(){this.isConfirmationStateEnabled&&this.disableConfirmationMode()}onFocus(){this.disableSpecialHoverAndFocusBehavior()}make(t){const e=d.make("div",P.CSS.container);return t.name&&(e.dataset.itemName=t.name),this.nodes.icon=d.make("div",P.CSS.icon,{innerHTML:t.icon||No}),e.appendChild(this.nodes.icon),e.appendChild(d.make("div",P.CSS.title,{innerHTML:t.title||""})),t.secondaryLabel&&e.appendChild(d.make("div",P.CSS.secondaryTitle,{textContent:t.secondaryLabel})),t.isActive&&e.classList.add(P.CSS.active),t.isDisabled&&e.classList.add(P.CSS.disabled),e}enableConfirmationMode(t){const e={...this.params,...t,confirmation:t.confirmation},o=this.make(e);this.nodes.root.innerHTML=o.innerHTML,this.nodes.root.classList.add(P.CSS.confirmationState),this.confirmationState=t,this.enableSpecialHoverAndFocusBehavior()}disableConfirmationMode(){const t=this.make(this.params);this.nodes.root.innerHTML=t.innerHTML,this.nodes.root.classList.remove(P.CSS.confirmationState),this.confirmationState=null,this.disableSpecialHoverAndFocusBehavior()}enableSpecialHoverAndFocusBehavior(){this.nodes.root.classList.add(P.CSS.noHover),this.nodes.root.classList.add(P.CSS.noFocus),this.nodes.root.addEventListener("mouseleave",this.removeSpecialHoverBehavior,{once:!0})}disableSpecialHoverAndFocusBehavior(){this.removeSpecialFocusBehavior(),this.removeSpecialHoverBehavior(),this.nodes.root.removeEventListener("mouseleave",this.removeSpecialHoverBehavior)}activateOrEnableConfirmationMode(t){if(t.confirmation===void 0)try{t.onActivate(t),this.disableConfirmationMode()}catch{this.animateError()}else this.enableConfirmationMode(t.confirmation)}animateError(){this.nodes.icon.classList.contains(P.CSS.wobbleAnimation)||(this.nodes.icon.classList.add(P.CSS.wobbleAnimation),this.nodes.icon.addEventListener("animationend",this.onErrorAnimationEnd))}}const ct=class{constructor(s,t){this.cursor=-1,this.items=[],this.items=s||[],this.focusedCssClass=t}get currentItem(){return this.cursor===-1?null:this.items[this.cursor]}setCursor(s){s=-1&&(this.dropCursor(),this.cursor=s,this.items[this.cursor].classList.add(this.focusedCssClass))}setItems(s){this.items=s}next(){this.cursor=this.leafNodesAndReturnIndex(ct.directions.RIGHT)}previous(){this.cursor=this.leafNodesAndReturnIndex(ct.directions.LEFT)}dropCursor(){this.cursor!==-1&&(this.items[this.cursor].classList.remove(this.focusedCssClass),this.cursor=-1)}leafNodesAndReturnIndex(s){if(this.items.length===0)return this.cursor;let t=this.cursor;return t===-1?t=s===ct.directions.RIGHT?-1:0:this.items[t].classList.remove(this.focusedCssClass),s===ct.directions.RIGHT?t=(t+1)%this.items.length:t=(this.items.length+t-1)%this.items.length,d.canSetCaret(this.items[t])&&ot(()=>b.setCursor(this.items[t]),50)(),this.items[t].classList.add(this.focusedCssClass),t}};let nt=ct;nt.directions={RIGHT:"right",LEFT:"left"};class G{constructor(t){this.iterator=null,this.activated=!1,this.flipCallbacks=[],this.onKeyDown=e=>{if(this.isEventReadyForHandling(e))switch(G.usedKeys.includes(e.keyCode)&&e.preventDefault(),e.keyCode){case E.TAB:this.handleTabPress(e);break;case E.LEFT:case E.UP:this.flipLeft();break;case E.RIGHT:case E.DOWN:this.flipRight();break;case E.ENTER:this.handleEnterPress(e);break}},this.iterator=new nt(t.items,t.focusedItemClass),this.activateCallback=t.activateCallback,this.allowedKeys=t.allowedKeys||G.usedKeys}get isActivated(){return this.activated}static get usedKeys(){return[E.TAB,E.LEFT,E.RIGHT,E.ENTER,E.UP,E.DOWN]}activate(t,e){this.activated=!0,t&&this.iterator.setItems(t),e!==void 0&&this.iterator.setCursor(e),document.addEventListener("keydown",this.onKeyDown,!0)}deactivate(){this.activated=!1,this.dropCursor(),document.removeEventListener("keydown",this.onKeyDown)}focusFirst(){this.dropCursor(),this.flipRight()}flipLeft(){this.iterator.previous(),this.flipCallback()}flipRight(){this.iterator.next(),this.flipCallback()}hasFocus(){return!!this.iterator.currentItem}onFlip(t){this.flipCallbacks.push(t)}removeOnFlip(t){this.flipCallbacks=this.flipCallbacks.filter(e=>e!==t)}dropCursor(){this.iterator.dropCursor()}isEventReadyForHandling(t){return this.activated&&this.allowedKeys.includes(t.keyCode)}handleTabPress(t){switch(t.shiftKey?nt.directions.LEFT:nt.directions.RIGHT){case nt.directions.RIGHT:this.flipRight();break;case nt.directions.LEFT:this.flipLeft();break}}handleEnterPress(t){this.activated&&(this.iterator.currentItem&&(t.stopPropagation(),t.preventDefault(),this.iterator.currentItem.click()),D(this.activateCallback)&&this.activateCallback(this.iterator.currentItem))}flipCallback(){this.iterator.currentItem&&this.iterator.currentItem.scrollIntoViewIfNeeded(),this.flipCallbacks.forEach(t=>t())}}class pt{static get CSS(){return{wrapper:"cdx-search-field",icon:"cdx-search-field__icon",input:"cdx-search-field__input"}}constructor({items:t,onSearch:e,placeholder:o}){this.listeners=new Dt,this.items=t,this.onSearch=e,this.render(o)}getElement(){return this.wrapper}focus(){this.input.focus()}clear(){this.input.value="",this.searchQuery="",this.onSearch("",this.foundItems)}destroy(){this.listeners.removeAll()}render(t){this.wrapper=d.make("div",pt.CSS.wrapper);const e=d.make("div",pt.CSS.icon,{innerHTML:Fo});this.input=d.make("input",pt.CSS.input,{placeholder:t}),this.wrapper.appendChild(e),this.wrapper.appendChild(this.input),this.listeners.on(this.input,"input",()=>{this.searchQuery=this.input.value,this.onSearch(this.searchQuery,this.foundItems)})}get foundItems(){return this.items.filter(t=>this.checkItem(t))}checkItem(t){var e;const o=((e=t.title)==null?void 0:e.toLowerCase())||"",i=this.searchQuery.toLowerCase();return o.includes(i)}}const dt=class{lock(){Jt?this.lockHard():document.body.classList.add(dt.CSS.scrollLocked)}unlock(){Jt?this.unlockHard():document.body.classList.remove(dt.CSS.scrollLocked)}lockHard(){this.scrollPosition=window.pageYOffset,document.documentElement.style.setProperty("--window-scroll-offset",`${this.scrollPosition}px`),document.body.classList.add(dt.CSS.scrollLockedHard)}unlockHard(){document.body.classList.remove(dt.CSS.scrollLockedHard),this.scrollPosition!==null&&window.scrollTo(0,this.scrollPosition),this.scrollPosition=null}};let me=dt;me.CSS={scrollLocked:"ce-scroll-locked",scrollLockedHard:"ce-scroll-locked--hard"};var jo=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,Uo=(s,t,e,o)=>{for(var i=o>1?void 0:o?zo(t,e):t,n=s.length-1,r;n>=0;n--)(r=s[n])&&(i=(o?r(t,e,i):r(i))||i);return o&&i&&jo(t,e,i),i},ft=(s=>(s.Close="close",s))(ft||{});const j=class extends wt{constructor(s){super(),this.scopeElement=document.body,this.listeners=new Dt,this.scrollLocker=new me,this.nodes={wrapper:null,popover:null,nothingFoundMessage:null,customContent:null,items:null,overlay:null},this.messages={nothingFound:"Nothing found",search:"Search"},this.onFlip=()=>{this.items.find(t=>t.isFocused).onFocus()},this.items=s.items.map(t=>new P(t)),s.scopeElement!==void 0&&(this.scopeElement=s.scopeElement),s.messages&&(this.messages={...this.messages,...s.messages}),s.customContentFlippableItems&&(this.customContentFlippableItems=s.customContentFlippableItems),this.make(),s.customContent&&this.addCustomContent(s.customContent),s.searchable&&this.addSearch(),this.initializeFlipper()}static get CSS(){return{popover:"ce-popover",popoverOpenTop:"ce-popover--open-top",popoverOpened:"ce-popover--opened",search:"ce-popover__search",nothingFoundMessage:"ce-popover__nothing-found-message",nothingFoundMessageDisplayed:"ce-popover__nothing-found-message--displayed",customContent:"ce-popover__custom-content",customContentHidden:"ce-popover__custom-content--hidden",items:"ce-popover__items",overlay:"ce-popover__overlay",overlayHidden:"ce-popover__overlay--hidden"}}getElement(){return this.nodes.wrapper}hasFocus(){return this.flipper.hasFocus()}show(){this.shouldOpenBottom||(this.nodes.popover.style.setProperty("--popover-height",this.height+"px"),this.nodes.popover.classList.add(j.CSS.popoverOpenTop)),this.nodes.overlay.classList.remove(j.CSS.overlayHidden),this.nodes.popover.classList.add(j.CSS.popoverOpened),this.flipper.activate(this.flippableElements),this.search!==void 0&&setTimeout(()=>{this.search.focus()},100),tt()&&this.scrollLocker.lock()}hide(){this.nodes.popover.classList.remove(j.CSS.popoverOpened),this.nodes.popover.classList.remove(j.CSS.popoverOpenTop),this.nodes.overlay.classList.add(j.CSS.overlayHidden),this.flipper.deactivate(),this.items.forEach(s=>s.reset()),this.search!==void 0&&this.search.clear(),tt()&&this.scrollLocker.unlock(),this.emit("close")}destroy(){this.flipper.deactivate(),this.listeners.removeAll(),tt()&&this.scrollLocker.unlock()}make(){this.nodes.popover=d.make("div",[j.CSS.popover]),this.nodes.nothingFoundMessage=d.make("div",[j.CSS.nothingFoundMessage],{textContent:this.messages.nothingFound}),this.nodes.popover.appendChild(this.nodes.nothingFoundMessage),this.nodes.items=d.make("div",[j.CSS.items]),this.items.forEach(s=>{this.nodes.items.appendChild(s.getElement())}),this.nodes.popover.appendChild(this.nodes.items),this.listeners.on(this.nodes.popover,"click",s=>{const t=this.getTargetItem(s);t!==void 0&&this.handleItemClick(t)}),this.nodes.wrapper=d.make("div"),this.nodes.overlay=d.make("div",[j.CSS.overlay,j.CSS.overlayHidden]),this.listeners.on(this.nodes.overlay,"click",()=>{this.hide()}),this.nodes.wrapper.appendChild(this.nodes.overlay),this.nodes.wrapper.appendChild(this.nodes.popover)}addSearch(){this.search=new pt({items:this.items,placeholder:this.messages.search,onSearch:(t,e)=>{this.items.forEach(i=>{const n=!e.includes(i);i.toggleHidden(n)}),this.toggleNothingFoundMessage(e.length===0),this.toggleCustomContent(t!=="");const o=t===""?this.flippableElements:e.map(i=>i.getElement());this.flipper.isActivated&&(this.flipper.deactivate(),this.flipper.activate(o))}});const s=this.search.getElement();s.classList.add(j.CSS.search),this.nodes.popover.insertBefore(s,this.nodes.popover.firstChild)}addCustomContent(s){this.nodes.customContent=s,this.nodes.customContent.classList.add(j.CSS.customContent),this.nodes.popover.insertBefore(s,this.nodes.popover.firstChild)}getTargetItem(s){return this.items.find(t=>s.composedPath().includes(t.getElement()))}handleItemClick(s){s.isDisabled||(this.items.filter(t=>t!==s).forEach(t=>t.reset()),s.handleClick(),this.toggleItemActivenessIfNeeded(s),s.closeOnActivate&&this.hide())}initializeFlipper(){this.flipper=new G({items:this.flippableElements,focusedItemClass:P.CSS.focused,allowedKeys:[E.TAB,E.UP,E.DOWN,E.ENTER]}),this.flipper.onFlip(this.onFlip)}get flippableElements(){const s=this.items.map(t=>t.getElement());return(this.customContentFlippableItems||[]).concat(s)}get height(){let s=0;if(this.nodes.popover===null)return s;const t=this.nodes.popover.cloneNode(!0);return t.style.visibility="hidden",t.style.position="absolute",t.style.top="-1000px",t.classList.add(j.CSS.popoverOpened),document.body.appendChild(t),s=t.offsetHeight,t.remove(),s}get shouldOpenBottom(){const s=this.nodes.popover.getBoundingClientRect(),t=this.scopeElement.getBoundingClientRect(),e=this.height,o=s.top+e,i=s.top-e,n=Math.min(window.innerHeight,t.bottom);return ie.toggle===s.toggle);if(t.length===1){s.toggleActive();return}t.forEach(e=>{e.toggleActive(e===s)})}}};let jt=j;Uo([at],jt.prototype,"height",1);class $o extends B{constructor(){super(...arguments),this.opened=!1,this.selection=new b,this.onPopoverClose=()=>{this.close()}}get events(){return{opened:"block-settings-opened",closed:"block-settings-closed"}}get CSS(){return{settings:"ce-settings"}}get flipper(){var t;return(t=this.popover)==null?void 0:t.flipper}make(){this.nodes.wrapper=d.make("div",[this.CSS.settings])}destroy(){this.removeAllNodes()}open(t=this.Editor.BlockManager.currentBlock){this.opened=!0,this.selection.save(),t.selected=!0,this.Editor.BlockSelection.clearCache();const[e,o]=t.getTunes();this.eventsDispatcher.emit(this.events.opened),this.popover=new jt({searchable:!0,items:e.map(i=>this.resolveTuneAliases(i)),customContent:o,customContentFlippableItems:this.getControls(o),scopeElement:this.Editor.API.methods.ui.nodes.redactor,messages:{nothingFound:$.ui(X.ui.popover,"Nothing found"),search:$.ui(X.ui.popover,"Filter")}}),this.popover.on(ft.Close,this.onPopoverClose),this.nodes.wrapper.append(this.popover.getElement()),this.popover.show()}getElement(){return this.nodes.wrapper}close(){this.opened=!1,b.isAtEditor||this.selection.restore(),this.selection.clearSaved(),!this.Editor.CrossBlockSelection.isCrossBlockSelectionStarted&&this.Editor.BlockManager.currentBlock&&(this.Editor.BlockManager.currentBlock.selected=!1),this.eventsDispatcher.emit(this.events.closed),this.popover&&(this.popover.off(ft.Close,this.onPopoverClose),this.popover.destroy(),this.popover.getElement().remove(),this.popover=null)}getControls(t){const{StylesAPI:e}=this.Editor,o=t.querySelectorAll(`.${e.classes.settingsButton}, ${d.allInputsSelector}`);return Array.from(o)}resolveTuneAliases(t){const e=_o(t,{label:"title"});return t.confirmation&&(e.confirmation=this.resolveTuneAliases(t.confirmation)),e}}class W extends B{constructor(){super(...arguments),this.opened=!1,this.tools=[],this.flipper=null,this.togglingCallback=null}static get CSS(){return{conversionToolbarWrapper:"ce-conversion-toolbar",conversionToolbarShowed:"ce-conversion-toolbar--showed",conversionToolbarTools:"ce-conversion-toolbar__tools",conversionToolbarLabel:"ce-conversion-toolbar__label",conversionTool:"ce-conversion-tool",conversionToolHidden:"ce-conversion-tool--hidden",conversionToolIcon:"ce-conversion-tool__icon",conversionToolFocused:"ce-conversion-tool--focused",conversionToolActive:"ce-conversion-tool--active"}}make(){this.nodes.wrapper=d.make("div",[W.CSS.conversionToolbarWrapper,...this.isRtl?[this.Editor.UI.CSS.editorRtlFix]:[]]),this.nodes.tools=d.make("div",W.CSS.conversionToolbarTools);const t=d.make("div",W.CSS.conversionToolbarLabel,{textContent:$.ui(X.ui.inlineToolbar.converter,"Convert to")});return this.addTools(),this.enableFlipper(),d.append(this.nodes.wrapper,t),d.append(this.nodes.wrapper,this.nodes.tools),this.nodes.wrapper}destroy(){this.flipper&&(this.flipper.deactivate(),this.flipper=null),this.removeAllNodes()}toggle(t){this.opened?this.close():this.open(),D(t)&&(this.togglingCallback=t)}open(){this.filterTools(),this.opened=!0,this.nodes.wrapper.classList.add(W.CSS.conversionToolbarShowed),window.requestAnimationFrame(()=>{this.flipper.activate(this.tools.map(t=>t.button).filter(t=>!t.classList.contains(W.CSS.conversionToolHidden))),this.flipper.focusFirst(),D(this.togglingCallback)&&this.togglingCallback(!0)})}close(){this.opened=!1,this.flipper.deactivate(),this.nodes.wrapper.classList.remove(W.CSS.conversionToolbarShowed),D(this.togglingCallback)&&this.togglingCallback(!1)}hasTools(){return this.tools.length===1?this.tools[0].name!==this.config.defaultBlock:!0}async replaceWithBlock(t,e){const o=this.Editor.BlockManager.currentBlock.tool,i=(await this.Editor.BlockManager.currentBlock.save()).data,n=this.Editor.Tools.blockTools.get(t);let r="";const a=o.conversionConfig.export;if(D(a))r=a(i);else if(J(a))r=i[a];else{T("Conversion «export» property must be a string or function. String means key of saved data object to export. Function should export processed string to export.");return}const l=Z(r,n.sanitizeConfig);let c={};const p=n.conversionConfig.import;if(D(p))c=p(l);else if(J(p))c[p]=l;else{T("Conversion «import» property must be a string or function. String means key of tool data to import. Function accepts a imported string and return composed tool data.");return}e&&(c=Object.assign(c,e)),this.Editor.BlockManager.replace({tool:t,data:c}),this.Editor.BlockSelection.clearSelection(),this.close(),this.Editor.InlineToolbar.close(),ot(()=>{this.Editor.Caret.setToBlock(this.Editor.BlockManager.currentBlock)},10)()}addTools(){const t=this.Editor.Tools.blockTools;Array.from(t.entries()).forEach(([e,o])=>{const i=o.conversionConfig;!i||!i.import||o.toolbox.forEach(n=>this.addToolIfValid(e,n))})}addToolIfValid(t,e){V(e)||!e.icon||this.addTool(t,e)}addTool(t,e){const o=d.make("div",[W.CSS.conversionTool]),i=d.make("div",[W.CSS.conversionToolIcon]);o.dataset.tool=t,i.innerHTML=e.icon,d.append(o,i),d.append(o,d.text($.t(X.toolNames,e.title||kt(t)))),d.append(this.nodes.tools,o),this.tools.push({name:t,button:o,toolboxItem:e}),this.listeners.on(o,"click",async()=>{await this.replaceWithBlock(t,e.data)})}async filterTools(){const{currentBlock:t}=this.Editor.BlockManager,e=await t.getActiveToolboxEntry();function o(i,n){return i.icon===n.icon&&i.title===n.title}this.tools.forEach(i=>{let n=!1;if(e){const r=o(e,i.toolboxItem);n=i.button.dataset.tool===t.name&&r}i.button.hidden=n,i.button.classList.toggle(W.CSS.conversionToolHidden,n)})}enableFlipper(){this.flipper=new G({focusedItemClass:W.CSS.conversionToolFocused})}}var Nt={},Yo={get exports(){return Nt},set exports(s){Nt=s}};/*! + * Library for handling keyboard shortcuts + * @copyright CodeX (https://codex.so) + * @license MIT + * @author CodeX (https://codex.so) + * @version 1.2.0 + */(function(s,t){(function(e,o){s.exports=o()})(window,function(){return function(e){var o={};function i(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=o,i.d=function(n,r,a){i.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:a})},i.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(n,r){if(1&r&&(n=i(n)),8&r||4&r&&typeof n=="object"&&n&&n.__esModule)return n;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&r&&typeof n!="string")for(var l in n)i.d(a,l,(function(c){return n[c]}).bind(null,l));return a},i.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(r,"a",r),r},i.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},i.p="",i(i.s=0)}([function(e,o,i){function n(l,c){for(var p=0;pn!==o))}findShortcut(t,e){return(this.registeredShortcuts.get(t)||[]).find(({name:o})=>o===e)}}const rt=new Ko;var Xo=Object.defineProperty,Vo=Object.getOwnPropertyDescriptor,be=(s,t,e,o)=>{for(var i=o>1?void 0:o?Vo(t,e):t,n=s.length-1,r;n>=0;n--)(r=s[n])&&(i=(o?r(t,e,i):r(i))||i);return o&&i&&Xo(t,e,i),i},mt=(s=>(s.Opened="toolbox-opened",s.Closed="toolbox-closed",s.BlockAdded="toolbox-block-added",s))(mt||{});const ke=class extends wt{constructor({api:s,tools:t,i18nLabels:e}){super(),this.opened=!1,this.nodes={toolbox:null},this.onPopoverClose=()=>{this.opened=!1,this.emit("toolbox-closed")},this.api=s,this.tools=t,this.i18nLabels=e}get isEmpty(){return this.toolsToBeDisplayed.length===0}static get CSS(){return{toolbox:"ce-toolbox"}}make(){return this.popover=new jt({scopeElement:this.api.ui.nodes.redactor,searchable:!0,messages:{nothingFound:this.i18nLabels.nothingFound,search:this.i18nLabels.filter},items:this.toolboxItemsToBeDisplayed}),this.popover.on(ft.Close,this.onPopoverClose),this.enableShortcuts(),this.nodes.toolbox=this.popover.getElement(),this.nodes.toolbox.classList.add(ke.CSS.toolbox),this.nodes.toolbox}hasFocus(){var s;return(s=this.popover)==null?void 0:s.hasFocus()}destroy(){var s;super.destroy(),this.nodes&&this.nodes.toolbox&&(this.nodes.toolbox.remove(),this.nodes.toolbox=null),this.removeAllShortcuts(),(s=this.popover)==null||s.off(ft.Close,this.onPopoverClose)}toolButtonActivated(s,t){this.insertNewBlock(s,t)}open(){var s;this.isEmpty||((s=this.popover)==null||s.show(),this.opened=!0,this.emit("toolbox-opened"))}close(){var s;(s=this.popover)==null||s.hide(),this.opened=!1,this.emit("toolbox-closed")}toggle(){this.opened?this.close():this.open()}get toolsToBeDisplayed(){const s=[];return this.tools.forEach(t=>{t.toolbox&&s.push(t)}),s}get toolboxItemsToBeDisplayed(){const s=(t,e)=>({icon:t.icon,title:$.t(X.toolNames,t.title||kt(e.name)),name:e.name,onActivate:()=>{this.toolButtonActivated(e.name,t.data)},secondaryLabel:e.shortcut?re(e.shortcut):""});return this.toolsToBeDisplayed.reduce((t,e)=>(Array.isArray(e.toolbox)?e.toolbox.forEach(o=>{t.push(s(o,e))}):e.toolbox!==void 0&&t.push(s(e.toolbox,e)),t),[])}enableShortcuts(){this.toolsToBeDisplayed.forEach(s=>{const t=s.shortcut;t&&this.enableShortcutForTool(s.name,t)})}enableShortcutForTool(s,t){rt.add({name:t,on:this.api.ui.nodes.redactor,handler:e=>{e.preventDefault(),this.insertNewBlock(s)}})}removeAllShortcuts(){this.toolsToBeDisplayed.forEach(s=>{const t=s.shortcut;t&&rt.remove(this.api.ui.nodes.redactor,t)})}async insertNewBlock(s,t){const e=this.api.blocks.getCurrentBlockIndex(),o=this.api.blocks.getBlockByIndex(e);if(!o)return;const i=o.isEmpty?e:e+1;let n;if(t){const a=await this.api.blocks.composeBlockData(s);n=Object.assign(a,t)}const r=this.api.blocks.insert(s,n,void 0,i,void 0,o.isEmpty);r.call(q.APPEND_CALLBACK),this.api.caret.setToBlock(i),this.emit("toolbox-block-added",{block:r}),this.api.toolbar.close()}};let zt=ke;be([at],zt.prototype,"toolsToBeDisplayed",1);be([at],zt.prototype,"toolboxItemsToBeDisplayed",1);const ve="block hovered";class Zo extends B{constructor({config:t,eventsDispatcher:e}){super({config:t,eventsDispatcher:e}),this.tooltip=new Ht}get CSS(){return{toolbar:"ce-toolbar",content:"ce-toolbar__content",actions:"ce-toolbar__actions",actionsOpened:"ce-toolbar__actions--opened",toolbarOpened:"ce-toolbar--opened",openedToolboxHolderModifier:"codex-editor--toolbox-opened",plusButton:"ce-toolbar__plus",plusButtonShortcut:"ce-toolbar__plus-shortcut",settingsToggler:"ce-toolbar__settings-btn",settingsTogglerHidden:"ce-toolbar__settings-btn--hidden"}}get opened(){return this.nodes.wrapper.classList.contains(this.CSS.toolbarOpened)}get toolbox(){return{opened:this.toolboxInstance.opened,close:()=>{this.toolboxInstance.close()},open:()=>{this.Editor.BlockManager.currentBlock=this.hoveredBlock,this.toolboxInstance.open()},toggle:()=>this.toolboxInstance.toggle(),hasFocus:()=>this.toolboxInstance.hasFocus()}}get blockActions(){return{hide:()=>{this.nodes.actions.classList.remove(this.CSS.actionsOpened)},show:()=>{this.nodes.actions.classList.add(this.CSS.actionsOpened)}}}get blockTunesToggler(){return{hide:()=>this.nodes.settingsToggler.classList.add(this.CSS.settingsTogglerHidden),show:()=>this.nodes.settingsToggler.classList.remove(this.CSS.settingsTogglerHidden)}}toggleReadOnly(t){t?(this.destroy(),this.Editor.BlockSettings.destroy(),this.disableModuleBindings()):(this.drawUI(),this.enableModuleBindings())}moveAndOpen(t=this.Editor.BlockManager.currentBlock){if(this.toolboxInstance.opened&&this.toolboxInstance.close(),this.Editor.BlockSettings.opened&&this.Editor.BlockSettings.close(),!t)return;this.hoveredBlock=t;const e=t.holder,{isMobile:o}=this.Editor.UI,i=t.pluginsContent,n=window.getComputedStyle(i),r=parseInt(n.paddingTop,10),a=e.offsetHeight;let l;o?l=e.offsetTop+a:l=e.offsetTop+r,this.nodes.wrapper.style.top=`${Math.floor(l)}px`,this.Editor.BlockManager.blocks.length===1&&t.isEmpty?this.blockTunesToggler.hide():this.blockTunesToggler.show(),this.open()}close(){this.Editor.ReadOnly.isEnabled||(this.nodes.wrapper.classList.remove(this.CSS.toolbarOpened),this.blockActions.hide(),this.toolboxInstance.close(),this.Editor.BlockSettings.close())}open(t=!0){ot(()=>{this.nodes.wrapper.classList.add(this.CSS.toolbarOpened),t?this.blockActions.show():this.blockActions.hide()},50)()}make(){this.nodes.wrapper=d.make("div",this.CSS.toolbar),["content","actions"].forEach(e=>{this.nodes[e]=d.make("div",this.CSS[e])}),d.append(this.nodes.wrapper,this.nodes.content),d.append(this.nodes.content,this.nodes.actions),this.nodes.plusButton=d.make("div",this.CSS.plusButton,{innerHTML:Po}),d.append(this.nodes.actions,this.nodes.plusButton),this.readOnlyMutableListeners.on(this.nodes.plusButton,"click",()=>{this.tooltip.hide(!0),this.plusButtonClicked()},!1);const t=d.make("div");t.appendChild(document.createTextNode($.ui(X.ui.toolbar.toolbox,"Add"))),t.appendChild(d.make("div",this.CSS.plusButtonShortcut,{textContent:"⇥ Tab"})),this.tooltip.onHover(this.nodes.plusButton,t,{hidingDelay:400}),this.nodes.settingsToggler=d.make("span",this.CSS.settingsToggler,{innerHTML:Do}),d.append(this.nodes.actions,this.nodes.settingsToggler),this.tooltip.onHover(this.nodes.settingsToggler,$.ui(X.ui.blockTunes.toggler,"Click to tune"),{hidingDelay:400}),d.append(this.nodes.actions,this.makeToolbox()),d.append(this.nodes.actions,this.Editor.BlockSettings.getElement()),d.append(this.Editor.UI.nodes.wrapper,this.nodes.wrapper)}makeToolbox(){return this.toolboxInstance=new zt({api:this.Editor.API.methods,tools:this.Editor.Tools.blockTools,i18nLabels:{filter:$.ui(X.ui.popover,"Filter"),nothingFound:$.ui(X.ui.popover,"Nothing found")}}),this.toolboxInstance.on(mt.Opened,()=>{this.Editor.UI.nodes.wrapper.classList.add(this.CSS.openedToolboxHolderModifier)}),this.toolboxInstance.on(mt.Closed,()=>{this.Editor.UI.nodes.wrapper.classList.remove(this.CSS.openedToolboxHolderModifier)}),this.toolboxInstance.on(mt.BlockAdded,({block:t})=>{const{BlockManager:e,Caret:o}=this.Editor,i=e.getBlockById(t.id);i.inputs.length===0&&(i===e.lastBlock?(e.insertAtEnd(),o.setToBlock(e.lastBlock)):o.setToBlock(e.nextBlock))}),this.toolboxInstance.make()}plusButtonClicked(){this.Editor.BlockManager.currentBlock=this.hoveredBlock,this.toolboxInstance.toggle()}enableModuleBindings(){this.readOnlyMutableListeners.on(this.nodes.settingsToggler,"mousedown",t=>{t.stopPropagation(),this.settingsTogglerClicked(),this.toolboxInstance.opened&&this.toolboxInstance.close(),this.tooltip.hide(!0)},!0),tt()||this.eventsDispatcher.on(ve,t=>{this.Editor.BlockSettings.opened||this.toolboxInstance.opened||this.moveAndOpen(t.block)})}disableModuleBindings(){this.readOnlyMutableListeners.clearAll()}settingsTogglerClicked(){this.Editor.BlockManager.currentBlock=this.hoveredBlock,this.Editor.BlockSettings.opened?this.Editor.BlockSettings.close():this.Editor.BlockSettings.open(this.hoveredBlock)}drawUI(){this.Editor.BlockSettings.make(),this.make()}destroy(){this.removeAllNodes(),this.toolboxInstance&&this.toolboxInstance.destroy(),this.tooltip.destroy()}}var yt=(s=>(s[s.Block=0]="Block",s[s.Inline=1]="Inline",s[s.Tune=2]="Tune",s))(yt||{}),bt=(s=>(s.Shortcut="shortcut",s.Toolbox="toolbox",s.EnabledInlineTools="inlineToolbar",s.EnabledBlockTunes="tunes",s.Config="config",s))(bt||{}),xe=(s=>(s.Shortcut="shortcut",s.SanitizeConfig="sanitize",s))(xe||{}),st=(s=>(s.IsEnabledLineBreaks="enableLineBreaks",s.Toolbox="toolbox",s.ConversionConfig="conversionConfig",s.IsReadOnlySupported="isReadOnlySupported",s.PasteConfig="pasteConfig",s))(st||{}),Ut=(s=>(s.IsInline="isInline",s.Title="title",s))(Ut||{}),we=(s=>(s.IsTune="isTune",s))(we||{});class $t{constructor({name:t,constructable:e,config:o,api:i,isDefault:n,isInternal:r=!1,defaultPlaceholder:a}){this.api=i,this.name=t,this.constructable=e,this.config=o,this.isDefault=n,this.isInternal=r,this.defaultPlaceholder=a}get settings(){const t=this.config.config||{};return this.isDefault&&!("placeholder"in t)&&this.defaultPlaceholder&&(t.placeholder=this.defaultPlaceholder),t}reset(){if(D(this.constructable.reset))return this.constructable.reset()}prepare(){if(D(this.constructable.prepare))return this.constructable.prepare({toolName:this.name,config:this.settings})}get shortcut(){const t=this.constructable.shortcut;return this.config.shortcut||t}get sanitizeConfig(){return this.constructable.sanitize||{}}isInline(){return this.type===1}isBlock(){return this.type===0}isTune(){return this.type===2}}class Go extends B{constructor({config:t,eventsDispatcher:e}){super({config:t,eventsDispatcher:e}),this.CSS={inlineToolbar:"ce-inline-toolbar",inlineToolbarShowed:"ce-inline-toolbar--showed",inlineToolbarLeftOriented:"ce-inline-toolbar--left-oriented",inlineToolbarRightOriented:"ce-inline-toolbar--right-oriented",inlineToolbarShortcut:"ce-inline-toolbar__shortcut",buttonsWrapper:"ce-inline-toolbar__buttons",actionsWrapper:"ce-inline-toolbar__actions",inlineToolButton:"ce-inline-tool",inputField:"cdx-input",focusedButton:"ce-inline-tool--focused",conversionToggler:"ce-inline-toolbar__dropdown",conversionTogglerArrow:"ce-inline-toolbar__dropdown-arrow",conversionTogglerHidden:"ce-inline-toolbar__dropdown--hidden",conversionTogglerContent:"ce-inline-toolbar__dropdown-content",togglerAndButtonsWrapper:"ce-inline-toolbar__toggler-and-button-wrapper"},this.opened=!1,this.toolbarVerticalMargin=tt()?20:6,this.buttonsList=null,this.width=0,this.flipper=null,this.tooltip=new Ht}toggleReadOnly(t){t?(this.destroy(),this.Editor.ConversionToolbar.destroy()):this.make()}tryToShow(t=!1,e=!0){if(!this.allowedToShow()){t&&this.close();return}this.move(),this.open(e),this.Editor.Toolbar.close()}move(){const t=b.rect,e=this.Editor.UI.nodes.wrapper.getBoundingClientRect(),o={x:t.x-e.left,y:t.y+t.height-e.top+this.toolbarVerticalMargin};t.width&&(o.x+=Math.floor(t.width/2));const i=o.x-this.width/2,n=o.x+this.width/2;this.nodes.wrapper.classList.toggle(this.CSS.inlineToolbarLeftOriented,ithis.Editor.UI.contentRect.right),this.nodes.wrapper.style.left=Math.floor(o.x)+"px",this.nodes.wrapper.style.top=Math.floor(o.y)+"px"}close(){this.opened&&(this.Editor.ReadOnly.isEnabled||(this.nodes.wrapper.classList.remove(this.CSS.inlineToolbarShowed),Array.from(this.toolsInstances.entries()).forEach(([t,e])=>{const o=this.getToolShortcut(t);o&&rt.remove(this.Editor.UI.nodes.redactor,o),D(e.clear)&&e.clear()}),this.opened=!1,this.flipper.deactivate(),this.Editor.ConversionToolbar.close()))}open(t=!0){if(this.opened)return;this.addToolsFiltered(),this.nodes.wrapper.classList.add(this.CSS.inlineToolbarShowed),this.buttonsList=this.nodes.buttons.querySelectorAll(`.${this.CSS.inlineToolButton}`),this.opened=!0,t&&this.Editor.ConversionToolbar.hasTools()?this.setConversionTogglerContent():this.nodes.conversionToggler.hidden=!0;let e=Array.from(this.buttonsList);e.unshift(this.nodes.conversionToggler),e=e.filter(o=>!o.hidden),this.flipper.activate(e)}containsNode(t){return this.nodes.wrapper.contains(t)}destroy(){this.flipper&&(this.flipper.deactivate(),this.flipper=null),this.removeAllNodes(),this.tooltip.destroy()}make(){this.nodes.wrapper=d.make("div",[this.CSS.inlineToolbar,...this.isRtl?[this.Editor.UI.CSS.editorRtlFix]:[]]),this.nodes.togglerAndButtonsWrapper=d.make("div",this.CSS.togglerAndButtonsWrapper),this.nodes.buttons=d.make("div",this.CSS.buttonsWrapper),this.nodes.actions=d.make("div",this.CSS.actionsWrapper),this.listeners.on(this.nodes.wrapper,"mousedown",t=>{t.target.closest(`.${this.CSS.actionsWrapper}`)||t.preventDefault()}),d.append(this.nodes.wrapper,[this.nodes.togglerAndButtonsWrapper,this.nodes.actions]),d.append(this.Editor.UI.nodes.wrapper,this.nodes.wrapper),this.addConversionToggler(),d.append(this.nodes.togglerAndButtonsWrapper,this.nodes.buttons),this.prepareConversionToolbar(),this.recalculateWidth(),this.enableFlipper()}allowedToShow(){const t=["IMG","INPUT"],e=b.get(),o=b.text;if(!e||!e.anchorNode||e.isCollapsed||o.length<1)return!1;const i=d.isElement(e.anchorNode)?e.anchorNode:e.anchorNode.parentElement;if(e&&t.includes(i.tagName)||i.closest('[contenteditable="true"]')===null)return!1;const n=this.Editor.BlockManager.getBlock(e.anchorNode);return n?n.tool.inlineTools.size!==0:!1}recalculateWidth(){this.width=this.nodes.wrapper.offsetWidth}addConversionToggler(){this.nodes.conversionToggler=d.make("div",this.CSS.conversionToggler),this.nodes.conversionTogglerContent=d.make("div",this.CSS.conversionTogglerContent);const t=d.make("div",this.CSS.conversionTogglerArrow,{innerHTML:ge});this.nodes.conversionToggler.appendChild(this.nodes.conversionTogglerContent),this.nodes.conversionToggler.appendChild(t),this.nodes.togglerAndButtonsWrapper.appendChild(this.nodes.conversionToggler),this.listeners.on(this.nodes.conversionToggler,"click",()=>{this.Editor.ConversionToolbar.toggle(e=>{!e&&this.opened?this.flipper.activate():this.opened&&this.flipper.deactivate()})}),tt()===!1&&this.tooltip.onHover(this.nodes.conversionToggler,$.ui(X.ui.inlineToolbar.converter,"Convert to"),{placement:"top",hidingDelay:100})}async setConversionTogglerContent(){const{BlockManager:t}=this.Editor,{currentBlock:e}=t,o=e.name,i=e.tool.conversionConfig,n=i&&i.export;this.nodes.conversionToggler.hidden=!n,this.nodes.conversionToggler.classList.toggle(this.CSS.conversionTogglerHidden,!n);const r=await e.getActiveToolboxEntry()||{};this.nodes.conversionTogglerContent.innerHTML=r.icon||r.title||kt(o)}prepareConversionToolbar(){const t=this.Editor.ConversionToolbar.make();d.append(this.nodes.wrapper,t)}addToolsFiltered(){const t=b.get(),e=this.Editor.BlockManager.getBlock(t.anchorNode);this.nodes.buttons.innerHTML="",this.nodes.actions.innerHTML="",this.toolsInstances=new Map,Array.from(e.tool.inlineTools.values()).forEach(o=>{this.addTool(o)}),this.recalculateWidth()}addTool(t){const e=t.create(),o=e.render();if(!o){T("Render method must return an instance of Node","warn",t.name);return}if(o.dataset.tool=t.name,this.nodes.buttons.appendChild(o),this.toolsInstances.set(t.name,e),D(e.renderActions)){const a=e.renderActions();this.nodes.actions.appendChild(a)}this.listeners.on(o,"click",a=>{this.toolClicked(e),a.preventDefault()});const i=this.getToolShortcut(t.name);if(i)try{this.enableShortcuts(e,i)}catch{}const n=d.make("div"),r=$.t(X.toolNames,t.title||kt(t.name));n.appendChild(d.text(r)),i&&n.appendChild(d.make("div",this.CSS.inlineToolbarShortcut,{textContent:re(i)})),tt()===!1&&this.tooltip.onHover(o,n,{placement:"top",hidingDelay:100}),e.checkState(b.get())}getToolShortcut(t){const{Tools:e}=this.Editor,o=e.inlineTools.get(t),i=e.internal.inlineTools;return Array.from(i.keys()).includes(t)?this.inlineTools[t][xe.Shortcut]:o.shortcut}enableShortcuts(t,e){rt.add({name:e,handler:o=>{const{currentBlock:i}=this.Editor.BlockManager;i&&i.tool.enabledInlineTools&&(o.preventDefault(),this.toolClicked(t))},on:this.Editor.UI.nodes.redactor})}toolClicked(t){const e=b.range;t.surround(e),this.checkToolsState(),t.renderActions!==void 0&&this.flipper.deactivate()}checkToolsState(){this.toolsInstances.forEach(t=>{t.checkState(b.get())})}get inlineTools(){const t={};return Array.from(this.Editor.Tools.inlineTools.entries()).forEach(([e,o])=>{t[e]=o.create()}),t}enableFlipper(){this.flipper=new G({focusedItemClass:this.CSS.focusedButton,allowedKeys:[E.ENTER,E.TAB]})}}class qo extends B{keydown(t){switch(this.beforeKeydownProcessing(t),t.keyCode){case E.BACKSPACE:this.backspace(t);break;case E.ENTER:this.enter(t);break;case E.DOWN:case E.RIGHT:this.arrowRightAndDown(t);break;case E.UP:case E.LEFT:this.arrowLeftAndUp(t);break;case E.TAB:this.tabPressed(t);break}}beforeKeydownProcessing(t){this.needToolbarClosing(t)&&ie(t.keyCode)&&(this.Editor.Toolbar.close(),this.Editor.ConversionToolbar.close(),t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||(this.Editor.BlockManager.clearFocused(),this.Editor.BlockSelection.clearSelection(t)))}keyup(t){t.shiftKey||this.Editor.UI.checkEmptiness()}tabPressed(t){this.Editor.BlockSelection.clearSelection(t);const{BlockManager:e,InlineToolbar:o,ConversionToolbar:i}=this.Editor,n=e.currentBlock;if(!n)return;const r=n.isEmpty,a=n.tool.isDefault&&r,l=!r&&i.opened,c=!r&&!b.isCollapsed&&o.opened;a?this.activateToolbox():!l&&!c&&this.activateBlockSettings()}dragOver(t){const e=this.Editor.BlockManager.getBlockByChildNode(t.target);e.dropTarget=!0}dragLeave(t){const e=this.Editor.BlockManager.getBlockByChildNode(t.target);e.dropTarget=!1}handleCommandC(t){const{BlockSelection:e}=this.Editor;e.anyBlockSelected&&e.copySelectedBlocks(t)}handleCommandX(t){const{BlockSelection:e,BlockManager:o,Caret:i}=this.Editor;e.anyBlockSelected&&e.copySelectedBlocks(t).then(()=>{const n=o.removeSelectedBlocks(),r=o.insertDefaultBlockAtIndex(n,!0);i.setToBlock(r,i.positions.START),e.clearSelection(t)})}enter(t){const{BlockManager:e,UI:o}=this.Editor;if(e.currentBlock.tool.isLineBreaksEnabled||o.someToolbarOpened&&o.someFlipperButtonFocused||t.shiftKey)return;let i=this.Editor.BlockManager.currentBlock;this.Editor.Caret.isAtStart&&!this.Editor.BlockManager.currentBlock.hasMedia?this.Editor.BlockManager.insertDefaultBlockAtIndex(this.Editor.BlockManager.currentBlockIndex):this.Editor.Caret.isAtEnd?i=this.Editor.BlockManager.insertDefaultBlockAtIndex(this.Editor.BlockManager.currentBlockIndex+1):i=this.Editor.BlockManager.split(),this.Editor.Caret.setToBlock(i),this.Editor.Toolbar.moveAndOpen(i),t.preventDefault()}backspace(t){const{BlockManager:e,BlockSelection:o,Caret:i}=this.Editor,n=e.currentBlock,r=n.tool;if(n.selected||n.isEmpty&&n.currentInput===n.firstInput){t.preventDefault();const l=e.currentBlockIndex;e.previousBlock&&e.previousBlock.inputs.length===0?e.removeBlock(l-1):e.removeBlock(),i.setToBlock(e.currentBlock,l?i.positions.END:i.positions.START),this.Editor.Toolbar.close(),o.clearSelection(t);return}if(r.isLineBreaksEnabled&&!i.isAtStart)return;const a=e.currentBlockIndex===0;i.isAtStart&&b.isCollapsed&&n.currentInput===n.firstInput&&!a&&(t.preventDefault(),this.mergeBlocks())}mergeBlocks(){const{BlockManager:t,Caret:e,Toolbar:o}=this.Editor,i=t.previousBlock,n=t.currentBlock;if(n.name!==i.name||!i.mergeable){if(i.inputs.length===0||i.isEmpty){t.removeBlock(t.currentBlockIndex-1),e.setToBlock(t.currentBlock),o.close();return}e.navigatePrevious()&&o.close();return}e.createShadow(i.pluginsContent),t.mergeBlocks(i,n).then(()=>{e.restoreCaret(i.pluginsContent),i.pluginsContent.normalize(),o.close()})}arrowRightAndDown(t){const e=G.usedKeys.includes(t.keyCode)&&(!t.shiftKey||t.keyCode===E.TAB);if(this.Editor.UI.someToolbarOpened&&e)return;this.Editor.BlockManager.clearFocused(),this.Editor.Toolbar.close();const o=this.Editor.Caret.isAtEnd||this.Editor.BlockSelection.anyBlockSelected;if(t.shiftKey&&t.keyCode===E.DOWN&&o){this.Editor.CrossBlockSelection.toggleBlockSelectedState();return}(t.keyCode===E.DOWN||t.keyCode===E.RIGHT&&!this.isRtl?this.Editor.Caret.navigateNext():this.Editor.Caret.navigatePrevious())?t.preventDefault():ot(()=>{this.Editor.BlockManager.currentBlock&&this.Editor.BlockManager.currentBlock.updateCurrentInput()},20)(),this.Editor.BlockSelection.clearSelection(t)}arrowLeftAndUp(t){if(this.Editor.UI.someToolbarOpened){if(G.usedKeys.includes(t.keyCode)&&(!t.shiftKey||t.keyCode===E.TAB))return;this.Editor.UI.closeAllToolbars()}this.Editor.BlockManager.clearFocused(),this.Editor.Toolbar.close();const e=this.Editor.Caret.isAtStart||this.Editor.BlockSelection.anyBlockSelected;if(t.shiftKey&&t.keyCode===E.UP&&e){this.Editor.CrossBlockSelection.toggleBlockSelectedState(!1);return}(t.keyCode===E.UP||t.keyCode===E.LEFT&&!this.isRtl?this.Editor.Caret.navigatePrevious():this.Editor.Caret.navigateNext())?t.preventDefault():ot(()=>{this.Editor.BlockManager.currentBlock&&this.Editor.BlockManager.currentBlock.updateCurrentInput()},20)(),this.Editor.BlockSelection.clearSelection(t)}needToolbarClosing(t){const e=t.keyCode===E.ENTER&&this.Editor.Toolbar.toolbox.opened,o=t.keyCode===E.ENTER&&this.Editor.BlockSettings.opened,i=t.keyCode===E.ENTER&&this.Editor.InlineToolbar.opened,n=t.keyCode===E.ENTER&&this.Editor.ConversionToolbar.opened,r=t.keyCode===E.TAB;return!(t.shiftKey||r||e||o||i||n)}activateToolbox(){this.Editor.Toolbar.opened||this.Editor.Toolbar.moveAndOpen(),this.Editor.Toolbar.toolbox.open()}activateBlockSettings(){this.Editor.Toolbar.opened||(this.Editor.BlockManager.currentBlock.focused=!0,this.Editor.Toolbar.moveAndOpen()),this.Editor.BlockSettings.opened||this.Editor.BlockSettings.open()}}class Ct{constructor(t){this.blocks=[],this.workingArea=t}get length(){return this.blocks.length}get array(){return this.blocks}get nodes(){return se(this.workingArea.children)}static set(t,e,o){return isNaN(Number(e))?(Reflect.set(t,e,o),!0):(t.insert(+e,o),!0)}static get(t,e){return isNaN(Number(e))?Reflect.get(t,e):t.get(+e)}push(t){this.blocks.push(t),this.insertToDOM(t)}swap(t,e){const o=this.blocks[e];d.swap(this.blocks[t].holder,o.holder),this.blocks[e]=this.blocks[t],this.blocks[t]=o}move(t,e){const o=this.blocks.splice(e,1)[0],i=t-1,n=Math.max(0,i),r=this.blocks[n];t>0?this.insertToDOM(o,"afterend",r):this.insertToDOM(o,"beforebegin",r),this.blocks.splice(t,0,o);const a=this.composeBlockEvent("move",{fromIndex:e,toIndex:t});o.call(q.MOVED,a)}insert(t,e,o=!1){if(!this.length){this.push(e);return}t>this.length&&(t=this.length),o&&(this.blocks[t].holder.remove(),this.blocks[t].call(q.REMOVED));const i=o?1:0;if(this.blocks.splice(t,i,e),t>0){const n=this.blocks[t-1];this.insertToDOM(e,"afterend",n)}else{const n=this.blocks[t+1];n?this.insertToDOM(e,"beforebegin",n):this.insertToDOM(e)}}remove(t){isNaN(t)&&(t=this.length-1),this.blocks[t].holder.remove(),this.blocks[t].call(q.REMOVED),this.blocks.splice(t,1)}removeAll(){this.workingArea.innerHTML="",this.blocks.forEach(t=>t.call(q.REMOVED)),this.blocks.length=0}insertAfter(t,e){const o=this.blocks.indexOf(t);this.insert(o+1,e)}get(t){return this.blocks[t]}indexOf(t){return this.blocks.indexOf(t)}insertToDOM(t,e,o){e?o.holder.insertAdjacentElement(e,t.holder):this.workingArea.appendChild(t.holder),t.call(q.RENDERED)}composeBlockEvent(t,e){return new CustomEvent(t,{detail:e})}}const te="block-removed",ee="block-added",Jo="block-moved",Qo="block-changed";class ti extends B{constructor(){super(...arguments),this._currentBlockIndex=-1,this._blocks=null}get currentBlockIndex(){return this._currentBlockIndex}set currentBlockIndex(t){this._currentBlockIndex=t}get firstBlock(){return this._blocks[0]}get lastBlock(){return this._blocks[this._blocks.length-1]}get currentBlock(){return this._blocks[this.currentBlockIndex]}set currentBlock(t){this.currentBlockIndex=this.getBlockIndex(t)}get nextBlock(){return this.currentBlockIndex===this._blocks.length-1?null:this._blocks[this.currentBlockIndex+1]}get nextContentfulBlock(){return this.blocks.slice(this.currentBlockIndex+1).find(t=>!!t.inputs.length)}get previousContentfulBlock(){return this.blocks.slice(0,this.currentBlockIndex).reverse().find(t=>!!t.inputs.length)}get previousBlock(){return this.currentBlockIndex===0?null:this._blocks[this.currentBlockIndex-1]}get blocks(){return this._blocks.array}get isEditorEmpty(){return this.blocks.every(t=>t.isEmpty)}prepare(){const t=new Ct(this.Editor.UI.nodes.redactor);this._blocks=new Proxy(t,{set:Ct.set,get:Ct.get}),this.listeners.on(document,"copy",e=>this.Editor.BlockEvents.handleCommandC(e))}toggleReadOnly(t){t?this.disableModuleBindings():this.enableModuleBindings()}composeBlock({tool:t,data:e={},id:o=void 0,tunes:i={}}){const n=this.Editor.ReadOnly.isEnabled,r=this.Editor.Tools.blockTools.get(t),a=new F({id:o,data:e,tool:r,api:this.Editor.API,readOnly:n,tunesData:i},this.eventsDispatcher);return n||this.bindBlockEvents(a),a}insert({id:t=void 0,tool:e=this.config.defaultBlock,data:o={},index:i,needToFocus:n=!0,replace:r=!1,tunes:a={}}={}){let l=i;l===void 0&&(l=this.currentBlockIndex+(r?0:1));const c=this.composeBlock({id:t,tool:e,data:o,tunes:a});return r&&this.blockDidMutated(te,this.getBlockByIndex(l),{index:l}),this._blocks.insert(l,c,r),this.blockDidMutated(ee,c,{index:l}),n?this.currentBlockIndex=l:l<=this.currentBlockIndex&&this.currentBlockIndex++,c}replace({tool:t=this.config.defaultBlock,data:e={}}){return this.insert({tool:t,data:e,index:this.currentBlockIndex,replace:!0})}paste(t,e,o=!1){const i=this.insert({tool:t,replace:o});try{i.call(q.ON_PASTE,e)}catch(n){T(`${t}: onPaste callback call is failed`,"error",n)}return i}insertDefaultBlockAtIndex(t,e=!1){const o=this.composeBlock({tool:this.config.defaultBlock});return this._blocks[t]=o,this.blockDidMutated(ee,o,{index:t}),e?this.currentBlockIndex=t:t<=this.currentBlockIndex&&this.currentBlockIndex++,o}insertAtEnd(){return this.currentBlockIndex=this.blocks.length-1,this.insert()}async mergeBlocks(t,e){const o=this._blocks.indexOf(e);if(e.isEmpty)return;const i=await e.data;V(i)||await t.mergeWith(i),this.removeBlock(o),this.currentBlockIndex=this._blocks.indexOf(t)}removeBlock(t=this.currentBlockIndex){if(!this.validateIndex(t))throw new Error("Can't find a Block to remove");const e=this._blocks[t];e.destroy(),this._blocks.remove(t),this.blockDidMutated(te,e,{index:t}),this.currentBlockIndex>=t&&this.currentBlockIndex--,this.blocks.length?t===0&&(this.currentBlockIndex=0):(this.currentBlockIndex=-1,this.insert())}removeSelectedBlocks(){let t;for(let e=this.blocks.length-1;e>=0;e--)this.blocks[e].selected&&(this.removeBlock(e),t=e);return t}removeAllBlocks(){for(let t=this.blocks.length-1;t>=0;t--)this._blocks.remove(t);this.currentBlockIndex=-1,this.insert(),this.currentBlock.firstInput.focus()}split(){const t=this.Editor.Caret.extractFragmentFromCaretPosition(),e=d.make("div");e.appendChild(t);const o={text:d.isEmpty(e)?"":e.innerHTML};return this.insert({data:o})}getBlockByIndex(t){return t===-1&&(t=this._blocks.length-1),this._blocks[t]}getBlockIndex(t){return this._blocks.indexOf(t)}getBlockById(t){return this._blocks.array.find(e=>e.id===t)}getBlock(t){d.isElement(t)||(t=t.parentNode);const e=this._blocks.nodes,o=t.closest(`.${F.CSS.wrapper}`),i=e.indexOf(o);if(i>=0)return this._blocks[i]}highlightCurrentNode(){this.clearFocused(),this.currentBlock.focused=!0}clearFocused(){this.blocks.forEach(t=>{t.focused=!1})}setCurrentBlockByChildNode(t){d.isElement(t)||(t=t.parentNode);const e=t.closest(`.${F.CSS.wrapper}`);if(!e)return;const o=e.closest(`.${this.Editor.UI.CSS.editorWrapper}`);if(o!=null&&o.isEqualNode(this.Editor.UI.nodes.wrapper))return this.currentBlockIndex=this._blocks.nodes.indexOf(e),this.currentBlock.updateCurrentInput(),this.currentBlock}getBlockByChildNode(t){d.isElement(t)||(t=t.parentNode);const e=t.closest(`.${F.CSS.wrapper}`);return this.blocks.find(o=>o.holder===e)}swap(t,e){this._blocks.swap(t,e),this.currentBlockIndex=e}move(t,e=this.currentBlockIndex){if(isNaN(t)||isNaN(e)){T("Warning during 'move' call: incorrect indices provided.","warn");return}if(!this.validateIndex(t)||!this.validateIndex(e)){T("Warning during 'move' call: indices cannot be lower than 0 or greater than the amount of blocks.","warn");return}this._blocks.move(t,e),this.currentBlockIndex=t,this.blockDidMutated(Jo,this.currentBlock,{fromIndex:e,toIndex:t})}dropPointer(){this.currentBlockIndex=-1,this.clearFocused()}clear(t=!1){this._blocks.removeAll(),this.dropPointer(),t&&this.insert(),this.Editor.UI.checkEmptiness()}async destroy(){await Promise.all(this.blocks.map(t=>t.destroy()))}bindBlockEvents(t){const{BlockEvents:e}=this.Editor;this.readOnlyMutableListeners.on(t.holder,"keydown",o=>{e.keydown(o)}),this.readOnlyMutableListeners.on(t.holder,"keyup",o=>{e.keyup(o)}),this.readOnlyMutableListeners.on(t.holder,"dragover",o=>{e.dragOver(o)}),this.readOnlyMutableListeners.on(t.holder,"dragleave",o=>{e.dragLeave(o)}),t.on("didMutated",o=>this.blockDidMutated(Qo,o,{index:this.getBlockIndex(o)}))}disableModuleBindings(){this.readOnlyMutableListeners.clearAll()}enableModuleBindings(){this.readOnlyMutableListeners.on(document,"cut",t=>this.Editor.BlockEvents.handleCommandX(t)),this.blocks.forEach(t=>{this.bindBlockEvents(t)})}validateIndex(t){return!(t<0||t>=this._blocks.length)}blockDidMutated(t,e,o){const i=new CustomEvent(t,{detail:{target:new ht(e),...o}});return this.eventsDispatcher.emit(de,{event:i}),e}}class ei extends B{constructor(){super(...arguments),this.anyBlockSelectedCache=null,this.needToSelectAll=!1,this.nativeInputSelected=!1,this.readyToBlockSelection=!1}get sanitizerConfig(){return{p:{},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},ol:{},ul:{},li:{},br:!0,img:{src:!0,width:!0,height:!0},a:{href:!0},b:{},i:{},u:{}}}get allBlocksSelected(){const{BlockManager:t}=this.Editor;return t.blocks.every(e=>e.selected===!0)}set allBlocksSelected(t){const{BlockManager:e}=this.Editor;e.blocks.forEach(o=>{o.selected=t}),this.clearCache()}get anyBlockSelected(){const{BlockManager:t}=this.Editor;return this.anyBlockSelectedCache===null&&(this.anyBlockSelectedCache=t.blocks.some(e=>e.selected===!0)),this.anyBlockSelectedCache}get selectedBlocks(){return this.Editor.BlockManager.blocks.filter(t=>t.selected)}prepare(){this.selection=new b,rt.add({name:"CMD+A",handler:t=>{const{BlockManager:e,ReadOnly:o}=this.Editor;if(o.isEnabled){t.preventDefault(),this.selectAllBlocks();return}e.currentBlock&&this.handleCommandA(t)},on:this.Editor.UI.nodes.redactor})}toggleReadOnly(){b.get().removeAllRanges(),this.allBlocksSelected=!1}unSelectBlockByIndex(t){const{BlockManager:e}=this.Editor;let o;isNaN(t)?o=e.currentBlock:o=e.getBlockByIndex(t),o.selected=!1,this.clearCache()}clearSelection(t,e=!1){const{BlockManager:o,Caret:i,RectangleSelection:n}=this.Editor;this.needToSelectAll=!1,this.nativeInputSelected=!1,this.readyToBlockSelection=!1;const r=t&&t instanceof KeyboardEvent,a=r&&ie(t.keyCode);if(this.anyBlockSelected&&r&&a&&!b.isSelectionExists){const l=o.removeSelectedBlocks();o.insertDefaultBlockAtIndex(l,!0),i.setToBlock(o.currentBlock),ot(()=>{const c=t.key;i.insertContentAtCaretPosition(c.length>1?"":c)},20)()}if(this.Editor.CrossBlockSelection.clear(t),!this.anyBlockSelected||n.isRectActivated()){this.Editor.RectangleSelection.clearSelection();return}e&&this.selection.restore(),this.allBlocksSelected=!1}copySelectedBlocks(t){t.preventDefault();const e=d.make("div");this.selectedBlocks.forEach(n=>{const r=Z(n.holder.innerHTML,this.sanitizerConfig),a=d.make("p");a.innerHTML=r,e.appendChild(a)});const o=Array.from(e.childNodes).map(n=>n.textContent).join(` + +`),i=e.innerHTML;return t.clipboardData.setData("text/plain",o),t.clipboardData.setData("text/html",i),Promise.all(this.selectedBlocks.map(n=>n.save())).then(n=>{try{t.clipboardData.setData(this.Editor.Paste.MIME_TYPE,JSON.stringify(n))}catch{}})}selectBlockByIndex(t){const{BlockManager:e}=this.Editor;e.clearFocused();let o;isNaN(t)?o=e.currentBlock:o=e.getBlockByIndex(t),this.selection.save(),b.get().removeAllRanges(),o.selected=!0,this.clearCache(),this.Editor.InlineToolbar.close()}clearCache(){this.anyBlockSelectedCache=null}destroy(){rt.remove(this.Editor.UI.nodes.redactor,"CMD+A")}handleCommandA(t){if(this.Editor.RectangleSelection.clearSelection(),d.isNativeInput(t.target)&&!this.readyToBlockSelection){this.readyToBlockSelection=!0;return}const e=this.Editor.BlockManager.getBlock(t.target).inputs;if(e.length>1&&!this.readyToBlockSelection){this.readyToBlockSelection=!0;return}if(e.length===1&&!this.needToSelectAll){this.needToSelectAll=!0;return}this.needToSelectAll?(t.preventDefault(),this.selectAllBlocks(),this.needToSelectAll=!1,this.readyToBlockSelection=!1,this.Editor.ConversionToolbar.close()):this.readyToBlockSelection&&(t.preventDefault(),this.selectBlockByIndex(),this.needToSelectAll=!0)}selectAllBlocks(){this.selection.save(),b.get().removeAllRanges(),this.allBlocksSelected=!0,this.Editor.InlineToolbar.close()}}class vt extends B{get positions(){return{START:"start",END:"end",DEFAULT:"default"}}static get CSS(){return{shadowCaret:"cdx-shadow-caret"}}get isAtStart(){const t=b.get(),e=d.getDeepestNode(this.Editor.BlockManager.currentBlock.currentInput);let o=t.focusNode;if(d.isNativeInput(e))return e.selectionEnd===0;if(!t.anchorNode)return!1;let i=o.textContent.search(/\S/);i===-1&&(i=0);let n=t.focusOffset;return o.nodeType!==Node.TEXT_NODE&&o.childNodes.length&&(o.childNodes[n]?(o=o.childNodes[n],n=0):(o=o.childNodes[n-1],n=o.textContent.length)),(d.isLineBreakTag(e)||d.isEmpty(e))&&this.getHigherLevelSiblings(o,"left").every(r=>{const a=d.isLineBreakTag(r),l=r.children.length===1&&d.isLineBreakTag(r.children[0]),c=a||l;return d.isEmpty(r)&&!c})&&n===i?!0:e===null||o===e&&n<=i}get isAtEnd(){const t=b.get();let e=t.focusNode;const o=d.getDeepestNode(this.Editor.BlockManager.currentBlock.currentInput,!0);if(d.isNativeInput(o))return o.selectionEnd===o.value.length;if(!t.focusNode)return!1;let i=t.focusOffset;if(e.nodeType!==Node.TEXT_NODE&&e.childNodes.length&&(e.childNodes[i-1]?(e=e.childNodes[i-1],i=e.textContent.length):(e=e.childNodes[0],i=0)),d.isLineBreakTag(o)||d.isEmpty(o)){const r=this.getHigherLevelSiblings(e,"right");if(r.every((a,l)=>l===r.length-1&&d.isLineBreakTag(a)||d.isEmpty(a)&&!d.isLineBreakTag(a))&&i===e.textContent.length)return!0}const n=o.textContent.replace(/\s+$/,"");return e===o&&i>=n.length}setToBlock(t,e=this.positions.DEFAULT,o=0){const{BlockManager:i}=this.Editor;let n;switch(e){case this.positions.START:n=t.firstInput;break;case this.positions.END:n=t.lastInput;break;default:n=t.currentInput}if(!n)return;const r=d.getDeepestNode(n,e===this.positions.END),a=d.getContentLength(r);switch(!0){case e===this.positions.START:o=0;break;case e===this.positions.END:case o>a:o=a;break}ot(()=>{this.set(r,o)},20)(),i.setCurrentBlockByChildNode(t.holder),i.currentBlock.currentInput=n}setToInput(t,e=this.positions.DEFAULT,o=0){const{currentBlock:i}=this.Editor.BlockManager,n=d.getDeepestNode(t);switch(e){case this.positions.START:this.set(n,0);break;case this.positions.END:this.set(n,d.getContentLength(n));break;default:o&&this.set(n,o)}i.currentInput=t}set(t,e=0){const{top:o,bottom:i}=b.setCursor(t,e),{innerHeight:n}=window;o<0&&window.scrollBy(0,o),i>n&&window.scrollBy(0,i-n)}setToTheLastBlock(){const t=this.Editor.BlockManager.lastBlock;if(t)if(t.tool.isDefault&&t.isEmpty)this.setToBlock(t);else{const e=this.Editor.BlockManager.insertAtEnd();this.setToBlock(e)}}extractFragmentFromCaretPosition(){const t=b.get();if(t.rangeCount){const e=t.getRangeAt(0),o=this.Editor.BlockManager.currentBlock.currentInput;if(e.deleteContents(),o)if(d.isNativeInput(o)){const i=o,n=document.createDocumentFragment(),r=i.value.substring(0,i.selectionStart),a=i.value.substring(i.selectionStart);return n.textContent=a,i.value=r,n}else{const i=e.cloneRange();return i.selectNodeContents(o),i.setStart(e.endContainer,e.endOffset),i.extractContents()}}}navigateNext(){const{BlockManager:t}=this.Editor,{currentBlock:e,nextContentfulBlock:o}=t,{nextInput:i}=e,n=this.isAtEnd;let r=o;if(!r&&!i){if(e.tool.isDefault||!n)return!1;r=t.insertAtEnd()}return n?(i?this.setToInput(i,this.positions.START):this.setToBlock(r,this.positions.START),!0):!1}navigatePrevious(){const{currentBlock:t,previousContentfulBlock:e}=this.Editor.BlockManager;if(!t)return!1;const{previousInput:o}=t;return!e&&!o?!1:this.isAtStart?(o?this.setToInput(o,this.positions.END):this.setToBlock(e,this.positions.END),!0):!1}createShadow(t){const e=document.createElement("span");e.classList.add(vt.CSS.shadowCaret),t.insertAdjacentElement("beforeend",e)}restoreCaret(t){const e=t.querySelector(`.${vt.CSS.shadowCaret}`);e&&(new b().expandToTag(e),setTimeout(()=>{const o=document.createRange();o.selectNode(e),o.extractContents()},50))}insertContentAtCaretPosition(t){const e=document.createDocumentFragment(),o=document.createElement("div"),i=b.get(),n=b.range;o.innerHTML=t,Array.from(o.childNodes).forEach(l=>e.appendChild(l)),e.childNodes.length===0&&e.appendChild(new Text);const r=e.lastChild;n.deleteContents(),n.insertNode(e);const a=document.createRange();a.setStart(r,r.textContent.length),i.removeAllRanges(),i.addRange(a)}getHigherLevelSiblings(t,e){let o=t;const i=[];for(;o.parentNode&&o.parentNode.contentEditable!=="true";)o=o.parentNode;const n=e==="left"?"previousSibling":"nextSibling";for(;o[n];)o=o[n],i.push(o);return i}}class oi extends B{constructor(){super(...arguments),this.onMouseUp=()=>{this.listeners.off(document,"mouseover",this.onMouseOver),this.listeners.off(document,"mouseup",this.onMouseUp)},this.onMouseOver=t=>{const{BlockManager:e,BlockSelection:o}=this.Editor,i=e.getBlockByChildNode(t.relatedTarget)||this.lastSelectedBlock,n=e.getBlockByChildNode(t.target);if(!(!i||!n)&&n!==i){if(i===this.firstSelectedBlock){b.get().removeAllRanges(),i.selected=!0,n.selected=!0,o.clearCache();return}if(n===this.firstSelectedBlock){i.selected=!1,n.selected=!1,o.clearCache();return}this.Editor.InlineToolbar.close(),this.toggleBlocksSelectedState(i,n),this.lastSelectedBlock=n}}}async prepare(){this.listeners.on(document,"mousedown",t=>{this.enableCrossBlockSelection(t)})}watchSelection(t){if(t.button!==je.LEFT)return;const{BlockManager:e}=this.Editor;this.firstSelectedBlock=e.getBlock(t.target),this.lastSelectedBlock=this.firstSelectedBlock,this.listeners.on(document,"mouseover",this.onMouseOver),this.listeners.on(document,"mouseup",this.onMouseUp)}get isCrossBlockSelectionStarted(){return!!this.firstSelectedBlock&&!!this.lastSelectedBlock}toggleBlockSelectedState(t=!0){const{BlockManager:e,BlockSelection:o}=this.Editor;this.lastSelectedBlock||(this.lastSelectedBlock=this.firstSelectedBlock=e.currentBlock),this.firstSelectedBlock===this.lastSelectedBlock&&(this.firstSelectedBlock.selected=!0,o.clearCache(),b.get().removeAllRanges());const i=e.blocks.indexOf(this.lastSelectedBlock)+(t?1:-1),n=e.blocks[i];n&&(this.lastSelectedBlock.selected!==n.selected?(n.selected=!0,o.clearCache()):(this.lastSelectedBlock.selected=!1,o.clearCache()),this.lastSelectedBlock=n,this.Editor.InlineToolbar.close(),n.holder.scrollIntoView({block:"nearest"}))}clear(t){const{BlockManager:e,BlockSelection:o,Caret:i}=this.Editor,n=e.blocks.indexOf(this.firstSelectedBlock),r=e.blocks.indexOf(this.lastSelectedBlock);if(o.anyBlockSelected&&n>-1&&r>-1)if(t&&t instanceof KeyboardEvent)switch(t.keyCode){case E.DOWN:case E.RIGHT:i.setToBlock(e.blocks[Math.max(n,r)],i.positions.END);break;case E.UP:case E.LEFT:i.setToBlock(e.blocks[Math.min(n,r)],i.positions.START);break;default:i.setToBlock(e.blocks[Math.max(n,r)],i.positions.END)}else i.setToBlock(e.blocks[Math.max(n,r)],i.positions.END);this.firstSelectedBlock=this.lastSelectedBlock=null}enableCrossBlockSelection(t){const{UI:e}=this.Editor;b.isCollapsed||this.Editor.BlockSelection.clearSelection(t),e.nodes.redactor.contains(t.target)?this.watchSelection(t):this.Editor.BlockSelection.clearSelection(t)}toggleBlocksSelectedState(t,e){const{BlockManager:o,BlockSelection:i}=this.Editor,n=o.blocks.indexOf(t),r=o.blocks.indexOf(e),a=t.selected!==e.selected;for(let l=Math.min(n,r);l<=Math.max(n,r);l++){const c=o.blocks[l];c!==this.firstSelectedBlock&&c!==(a?t:e)&&(o.blocks[l].selected=!o.blocks[l].selected,i.clearCache())}}}class ii extends B{constructor(){super(...arguments),this.isStartedAtEditor=!1}toggleReadOnly(t){t?this.disableModuleBindings():this.enableModuleBindings()}enableModuleBindings(){const{UI:t}=this.Editor;this.readOnlyMutableListeners.on(t.nodes.holder,"drop",async e=>{await this.processDrop(e)},!0),this.readOnlyMutableListeners.on(t.nodes.holder,"dragstart",()=>{this.processDragStart()}),this.readOnlyMutableListeners.on(t.nodes.holder,"dragover",e=>{this.processDragOver(e)},!0)}disableModuleBindings(){this.readOnlyMutableListeners.clearAll()}async processDrop(t){const{BlockManager:e,Caret:o,Paste:i}=this.Editor;t.preventDefault(),e.blocks.forEach(r=>{r.dropTarget=!1}),b.isAtEditor&&!b.isCollapsed&&this.isStartedAtEditor&&document.execCommand("delete"),this.isStartedAtEditor=!1;const n=e.setCurrentBlockByChildNode(t.target);if(n)this.Editor.Caret.setToBlock(n,o.positions.END);else{const r=e.setCurrentBlockByChildNode(e.lastBlock.holder);this.Editor.Caret.setToBlock(r,o.positions.END)}await i.processDataTransfer(t.dataTransfer,!0)}processDragStart(){b.isAtEditor&&!b.isCollapsed&&(this.isStartedAtEditor=!0),this.Editor.InlineToolbar.close()}processDragOver(t){t.preventDefault()}}class ni extends B{constructor({config:t,eventsDispatcher:e}){super({config:t,eventsDispatcher:e}),this.disabled=!1,this.batchingTimeout=null,this.batchingOnChangeQueue=new Map,this.batchTime=400,this.mutationObserver=new MutationObserver(o=>{this.redactorChanged(o)}),this.eventsDispatcher.on(de,o=>{this.particularBlockChanged(o.event)}),this.eventsDispatcher.on(he,()=>{this.disable()}),this.eventsDispatcher.on(pe,()=>{this.enable()})}enable(){this.mutationObserver.observe(this.Editor.UI.nodes.redactor,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),this.disabled=!1}disable(){this.mutationObserver.disconnect(),this.disabled=!0}particularBlockChanged(t){this.disabled||!D(this.config.onChange)||(this.batchingOnChangeQueue.set(`block:${t.detail.target.id}:event:${t.type}`,t),this.batchingTimeout&&clearTimeout(this.batchingTimeout),this.batchingTimeout=setTimeout(()=>{let e;this.batchingOnChangeQueue.size===1?e=this.batchingOnChangeQueue.values().next().value:e=Array.from(this.batchingOnChangeQueue.values()),this.config.onChange&&this.config.onChange(this.Editor.API.methods,e),this.batchingOnChangeQueue.clear()},this.batchTime))}redactorChanged(t){this.eventsDispatcher.emit(_t,{mutations:t})}}const ye=class extends B{constructor(){super(...arguments),this.MIME_TYPE="application/x-editor-js",this.toolsTags={},this.tagsByTool={},this.toolsPatterns=[],this.toolsFiles={},this.exceptionList=[],this.processTool=s=>{try{const t=s.create({},{},!1);if(s.pasteConfig===!1){this.exceptionList.push(s.name);return}if(!D(t.onPaste))return;this.getTagsConfig(s),this.getFilesConfig(s),this.getPatternsConfig(s)}catch(t){T(`Paste handling for «${s.name}» Tool hasn't been set up because of the error`,"warn",t)}},this.handlePasteEvent=async s=>{const{BlockManager:t,Toolbar:e}=this.Editor;!t.currentBlock||this.isNativeBehaviour(s.target)&&!s.clipboardData.types.includes("Files")||t.currentBlock&&this.exceptionList.includes(t.currentBlock.name)||(s.preventDefault(),this.processDataTransfer(s.clipboardData),t.clearFocused(),e.close())}}async prepare(){this.processTools()}toggleReadOnly(s){s?this.unsetCallback():this.setCallback()}async processDataTransfer(s,t=!1){const{Tools:e}=this.Editor,o=s.types;if((o.includes?o.includes("Files"):o.contains("Files"))&&!V(this.toolsFiles)){await this.processFiles(s.files);return}const i=s.getData(this.MIME_TYPE),n=s.getData("text/plain");let r=s.getData("text/html");if(i)try{this.insertEditorJSData(JSON.parse(i));return}catch{}t&&n.trim()&&r.trim()&&(r="

"+(r.trim()?r:n)+"

");const a=Object.keys(this.toolsTags).reduce((p,h)=>(p[h.toLowerCase()]=this.toolsTags[h].sanitizationConfig??{},p),{}),l=Object.assign({},a,e.getAllInlineToolsSanitizeConfig(),{br:{}}),c=Z(r,l);!c.trim()||c.trim()===n||!d.isHTMLString(c)?await this.processText(n):await this.processText(c,!0)}async processText(s,t=!1){const{Caret:e,BlockManager:o}=this.Editor,i=t?this.processHTML(s):this.processPlain(s);if(!i.length)return;if(i.length===1){i[0].isBlock?this.processSingleBlock(i.pop()):this.processInlinePaste(i.pop());return}const n=o.currentBlock&&o.currentBlock.tool.isDefault&&o.currentBlock.isEmpty;i.map(async(r,a)=>this.insertBlock(r,a===0&&n)),o.currentBlock&&e.setToBlock(o.currentBlock,e.positions.END)}setCallback(){this.listeners.on(this.Editor.UI.nodes.holder,"paste",this.handlePasteEvent)}unsetCallback(){this.listeners.off(this.Editor.UI.nodes.holder,"paste",this.handlePasteEvent)}processTools(){const s=this.Editor.Tools.blockTools;Array.from(s.values()).forEach(this.processTool)}collectTagNames(s){return J(s)?[s]:z(s)?Object.keys(s):[]}getTagsConfig(s){if(s.pasteConfig===!1)return;const t=s.pasteConfig.tags||[],e=[];t.forEach(o=>{const i=this.collectTagNames(o);e.push(...i),i.forEach(n=>{if(Object.prototype.hasOwnProperty.call(this.toolsTags,n)){T(`Paste handler for «${s.name}» Tool on «${n}» tag is skipped because it is already used by «${this.toolsTags[n].tool.name}» Tool.`,"warn");return}const r=z(o)?o[n]:null;this.toolsTags[n.toUpperCase()]={tool:s,sanitizationConfig:r}})}),this.tagsByTool[s.name]=e.map(o=>o.toUpperCase())}getFilesConfig(s){if(s.pasteConfig===!1)return;const{files:t={}}=s.pasteConfig;let{extensions:e,mimeTypes:o}=t;!e&&!o||(e&&!Array.isArray(e)&&(T(`«extensions» property of the onDrop config for «${s.name}» Tool should be an array`),e=[]),o&&!Array.isArray(o)&&(T(`«mimeTypes» property of the onDrop config for «${s.name}» Tool should be an array`),o=[]),o&&(o=o.filter(i=>Ye(i)?!0:(T(`MIME type value «${i}» for the «${s.name}» Tool is not a valid MIME type`,"warn"),!1))),this.toolsFiles[s.name]={extensions:e||[],mimeTypes:o||[]})}getPatternsConfig(s){s.pasteConfig===!1||!s.pasteConfig.patterns||V(s.pasteConfig.patterns)||Object.entries(s.pasteConfig.patterns).forEach(([t,e])=>{e instanceof RegExp||T(`Pattern ${e} for «${s.name}» Tool is skipped because it should be a Regexp instance.`,"warn"),this.toolsPatterns.push({key:t,pattern:e,tool:s})})}isNativeBehaviour(s){return d.isNativeInput(s)}async processFiles(s){const{BlockManager:t}=this.Editor;let e;e=await Promise.all(Array.from(s).map(i=>this.processFile(i))),e=e.filter(i=>!!i);const o=t.currentBlock.tool.isDefault&&t.currentBlock.isEmpty;e.forEach((i,n)=>{t.paste(i.type,i.event,n===0&&o)})}async processFile(s){const t=$e(s),e=Object.entries(this.toolsFiles).find(([i,{mimeTypes:n,extensions:r}])=>{const[a,l]=s.type.split("/"),c=r.find(h=>h.toLowerCase()===t.toLowerCase()),p=n.find(h=>{const[f,k]=h.split("/");return f===a&&(k===l||k==="*")});return!!c||!!p});if(!e)return;const[o]=e;return{event:this.composePasteEvent("file",{file:s}),type:o}}processHTML(s){const{Tools:t}=this.Editor,e=d.make("DIV");return e.innerHTML=s,this.getNodes(e).map(o=>{let i,n=t.defaultTool,r=!1;switch(o.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:i=d.make("div"),i.appendChild(o);break;case Node.ELEMENT_NODE:i=o,r=!0,this.toolsTags[i.tagName]&&(n=this.toolsTags[i.tagName].tool);break}const{tags:a}=n.pasteConfig||{tags:[]},l=a.reduce((h,f)=>(this.collectTagNames(f).forEach(k=>{const u=z(f)?f[k]:null;h[k.toLowerCase()]=u||{}}),h),{}),c=Object.assign({},l,n.baseSanitizeConfig);if(i.tagName.toLowerCase()==="table"){const h=Z(i.outerHTML,c);i=d.make("div",void 0,{innerHTML:h}).firstChild}else i.innerHTML=Z(i.innerHTML,c);const p=this.composePasteEvent("tag",{data:i});return{content:i,isBlock:r,tool:n.name,event:p}}).filter(o=>{const i=d.isEmpty(o.content),n=d.isSingleTag(o.content);return!i||n})}processPlain(s){const{defaultBlock:t}=this.config;if(!s)return[];const e=t;return s.split(/\r?\n/).filter(o=>o.trim()).map(o=>{const i=d.make("div");i.textContent=o;const n=this.composePasteEvent("tag",{data:i});return{content:i,tool:e,isBlock:!1,event:n}})}async processSingleBlock(s){const{Caret:t,BlockManager:e}=this.Editor,{currentBlock:o}=e;if(!o||s.tool!==o.name||!d.containsOnlyInlineElements(s.content.innerHTML)){this.insertBlock(s,(o==null?void 0:o.tool.isDefault)&&o.isEmpty);return}t.insertContentAtCaretPosition(s.content.innerHTML)}async processInlinePaste(s){const{BlockManager:t,Caret:e}=this.Editor,{content:o}=s;if(t.currentBlock&&t.currentBlock.tool.isDefault&&o.textContent.length{const o=e.pattern.exec(s);return o?s===o.shift():!1});return t?{event:this.composePasteEvent("pattern",{key:t.key,data:s}),tool:t.tool.name}:void 0}insertBlock(s,t=!1){const{BlockManager:e,Caret:o}=this.Editor,{currentBlock:i}=e;let n;if(t&&i&&i.isEmpty){n=e.paste(s.tool,s.event,!0),o.setToBlock(n,o.positions.END);return}n=e.paste(s.tool,s.event),o.setToBlock(n,o.positions.END)}insertEditorJSData(s){const{BlockManager:t,Caret:e,Tools:o}=this.Editor;ue(s,i=>o.blockTools.get(i).sanitizeConfig).forEach(({tool:i,data:n},r)=>{let a=!1;r===0&&(a=t.currentBlock&&t.currentBlock.tool.isDefault&&t.currentBlock.isEmpty);const l=t.insert({tool:i,data:n,replace:a});e.setToBlock(l,e.positions.END)})}processElementNode(s,t,e){const o=Object.keys(this.toolsTags),i=s,{tool:n}=this.toolsTags[i.tagName]||{},r=this.tagsByTool[n==null?void 0:n.name]||[],a=o.includes(i.tagName),l=d.blockElements.includes(i.tagName.toLowerCase()),c=Array.from(i.children).some(({tagName:h})=>o.includes(h)&&!r.includes(h)),p=Array.from(i.children).some(({tagName:h})=>d.blockElements.includes(h.toLowerCase()));if(!l&&!a&&!c)return e.appendChild(i),[...t,e];if(a&&!c||l&&!p&&!c)return[...t,e,i]}getNodes(s){const t=Array.from(s.childNodes);let e;const o=(i,n)=>{if(d.isEmpty(n)&&!d.isSingleTag(n))return i;const r=i[i.length-1];let a=new DocumentFragment;switch(r&&d.isFragment(r)&&(a=i.pop()),n.nodeType){case Node.ELEMENT_NODE:if(e=this.processElementNode(n,i,a),e)return e;break;case Node.TEXT_NODE:return a.appendChild(n),[...i,a];default:return[...i,a]}return[...i,...Array.from(n.childNodes).reduce(o,[])]};return t.reduce(o,[])}composePasteEvent(s,t){return new CustomEvent(s,{detail:t})}};let Ee=ye;Ee.PATTERN_PROCESSING_MAX_LENGTH=450;class si extends B{constructor(){super(...arguments),this.toolsDontSupportReadOnly=[],this.readOnlyEnabled=!1}get isEnabled(){return this.readOnlyEnabled}async prepare(){const{Tools:t}=this.Editor,{blockTools:e}=t,o=[];Array.from(e.entries()).forEach(([i,n])=>{n.isReadOnlySupported||o.push(i)}),this.toolsDontSupportReadOnly=o,this.config.readOnly&&o.length>0&&this.throwCriticalError(),this.toggle(this.config.readOnly)}async toggle(t=!this.readOnlyEnabled){t&&this.toolsDontSupportReadOnly.length>0&&this.throwCriticalError();const e=this.readOnlyEnabled;this.readOnlyEnabled=t;for(const i in this.Editor)this.Editor[i].toggleReadOnly&&this.Editor[i].toggleReadOnly(t);if(e===t)return this.readOnlyEnabled;const o=await this.Editor.Saver.save();return await this.Editor.BlockManager.clear(),await this.Editor.Renderer.render(o.blocks),this.readOnlyEnabled}throwCriticalError(){throw new ce(`To enable read-only mode all connected tools should support it. Tools ${this.toolsDontSupportReadOnly.join(", ")} don't support read-only mode.`)}}class ut extends B{constructor(){super(...arguments),this.isRectSelectionActivated=!1,this.SCROLL_SPEED=3,this.HEIGHT_OF_SCROLL_ZONE=40,this.BOTTOM_SCROLL_ZONE=1,this.TOP_SCROLL_ZONE=2,this.MAIN_MOUSE_BUTTON=0,this.mousedown=!1,this.isScrolling=!1,this.inScrollZone=null,this.startX=0,this.startY=0,this.mouseX=0,this.mouseY=0,this.stackOfSelected=[],this.listenerIds=[]}static get CSS(){return{overlay:"codex-editor-overlay",overlayContainer:"codex-editor-overlay__container",rect:"codex-editor-overlay__rectangle",topScrollZone:"codex-editor-overlay__scroll-zone--top",bottomScrollZone:"codex-editor-overlay__scroll-zone--bottom"}}prepare(){this.enableModuleBindings()}startSelection(t,e){const o=document.elementFromPoint(t-window.pageXOffset,e-window.pageYOffset);o.closest(`.${this.Editor.Toolbar.CSS.toolbar}`)||(this.Editor.BlockSelection.allBlocksSelected=!1,this.clearSelection(),this.stackOfSelected=[]);const i=[`.${F.CSS.content}`,`.${this.Editor.Toolbar.CSS.toolbar}`,`.${this.Editor.InlineToolbar.CSS.inlineToolbar}`],n=o.closest("."+this.Editor.UI.CSS.editorWrapper),r=i.some(a=>!!o.closest(a));!n||r||(this.mousedown=!0,this.startX=t,this.startY=e)}endSelection(){this.mousedown=!1,this.startX=0,this.startY=0,this.overlayRectangle.style.display="none"}isRectActivated(){return this.isRectSelectionActivated}clearSelection(){this.isRectSelectionActivated=!1}enableModuleBindings(){const{container:t}=this.genHTML();this.listeners.on(t,"mousedown",e=>{this.processMouseDown(e)},!1),this.listeners.on(document.body,"mousemove",Bt(e=>{this.processMouseMove(e)},10),{passive:!0}),this.listeners.on(document.body,"mouseleave",()=>{this.processMouseLeave()}),this.listeners.on(window,"scroll",Bt(e=>{this.processScroll(e)},10),{passive:!0}),this.listeners.on(document.body,"mouseup",()=>{this.processMouseUp()},!1)}processMouseDown(t){t.button===this.MAIN_MOUSE_BUTTON&&(t.target.closest(d.allInputsSelector)!==null||this.startSelection(t.pageX,t.pageY))}processMouseMove(t){this.changingRectangle(t),this.scrollByZones(t.clientY)}processMouseLeave(){this.clearSelection(),this.endSelection()}processScroll(t){this.changingRectangle(t)}processMouseUp(){this.clearSelection(),this.endSelection()}scrollByZones(t){if(this.inScrollZone=null,t<=this.HEIGHT_OF_SCROLL_ZONE&&(this.inScrollZone=this.TOP_SCROLL_ZONE),document.documentElement.clientHeight-t<=this.HEIGHT_OF_SCROLL_ZONE&&(this.inScrollZone=this.BOTTOM_SCROLL_ZONE),!this.inScrollZone){this.isScrolling=!1;return}this.isScrolling||(this.scrollVertical(this.inScrollZone===this.TOP_SCROLL_ZONE?-this.SCROLL_SPEED:this.SCROLL_SPEED),this.isScrolling=!0)}genHTML(){const{UI:t}=this.Editor,e=t.nodes.holder.querySelector("."+t.CSS.editorWrapper),o=d.make("div",ut.CSS.overlay,{}),i=d.make("div",ut.CSS.overlayContainer,{}),n=d.make("div",ut.CSS.rect,{});return i.appendChild(n),o.appendChild(i),e.appendChild(o),this.overlayRectangle=n,{container:e,overlay:o}}scrollVertical(t){if(!(this.inScrollZone&&this.mousedown))return;const e=window.pageYOffset;window.scrollBy(0,t),this.mouseY+=window.pageYOffset-e,setTimeout(()=>{this.scrollVertical(t)},0)}changingRectangle(t){if(!this.mousedown)return;t.pageY!==void 0&&(this.mouseX=t.pageX,this.mouseY=t.pageY);const{rightPos:e,leftPos:o,index:i}=this.genInfoForMouseSelection(),n=this.startX>e&&this.mouseX>e,r=this.startX=this.startY?(this.overlayRectangle.style.top=`${this.startY-window.pageYOffset}px`,this.overlayRectangle.style.bottom=`calc(100% - ${this.mouseY-window.pageYOffset}px`):(this.overlayRectangle.style.bottom=`calc(100% - ${this.startY-window.pageYOffset}px`,this.overlayRectangle.style.top=`${this.mouseY-window.pageYOffset}px`),this.mouseX>=this.startX?(this.overlayRectangle.style.left=`${this.startX-window.pageXOffset}px`,this.overlayRectangle.style.right=`calc(100% - ${this.mouseX-window.pageXOffset}px`):(this.overlayRectangle.style.right=`calc(100% - ${this.startX-window.pageXOffset}px`,this.overlayRectangle.style.left=`${this.mouseX-window.pageXOffset}px`)}genInfoForMouseSelection(){const t=document.body.offsetWidth/2,e=this.mouseY-window.pageYOffset,o=document.elementFromPoint(t,e),i=this.Editor.BlockManager.getBlockByChildNode(o);let n;i!==void 0&&(n=this.Editor.BlockManager.blocks.findIndex(p=>p.holder===i.holder));const r=this.Editor.BlockManager.lastBlock.holder.querySelector("."+F.CSS.content),a=Number.parseInt(window.getComputedStyle(r).width,10)/2,l=t-a,c=t+a;return{index:n,leftPos:l,rightPos:c}}addBlockInSelection(t){this.rectCrossesBlocks&&this.Editor.BlockSelection.selectBlockByIndex(t),this.stackOfSelected.push(t)}trySelectNextBlock(t){const e=this.stackOfSelected[this.stackOfSelected.length-1]===t,o=this.stackOfSelected.length,i=1,n=-1,r=0;if(e)return;const a=this.stackOfSelected[o-1]-this.stackOfSelected[o-2]>0;let l=r;o>1&&(l=a?i:n);const c=t>this.stackOfSelected[o-1]&&l===i,p=tthis.stackOfSelected[o-1]||this.stackOfSelected[o-1]===void 0)){let u=this.stackOfSelected[o-1]+1||t;for(u;u<=t;u++)this.addBlockInSelection(u);return}if(!h&&t=t;u--)this.addBlockInSelection(u);return}if(!h)return;let f=o-1,k;for(t>this.stackOfSelected[o-1]?k=()=>t>this.stackOfSelected[f]:k=()=>t({function:()=>this.insertBlock(i)}));this.Editor.ModificationsObserver.disable();const o=await ne(e);return this.Editor.ModificationsObserver.enable(),this.Editor.UI.checkEmptiness(),o}async insertBlock(t){var e;const{Tools:o,BlockManager:i}=this.Editor,{type:n,data:r,tunes:a,id:l}=t;if(o.available.has(n))try{i.insert({id:l,tool:n,data:r,tunes:a})}catch(c){throw T(`Block «${n}» skipped because of plugins error`,"warn",{data:r,error:c}),Error(c)}else{const c={savedData:{id:l,type:n,data:r},title:n};if(o.unavailable.has(n)){const h=(e=o.unavailable.get(n).toolbox[0])==null?void 0:e.title;c.title=h||c.title}const p=i.insert({id:l,tool:o.stubTool,data:c});p.stretched=!0,T(`Tool «${n}» is not found. Check 'tools' property at your initial Editor.js config.`,"warn")}}}class ai extends B{async save(){const{BlockManager:t,Tools:e}=this.Editor,o=t.blocks,i=[];try{o.forEach(a=>{i.push(this.getSavedData(a))});const n=await Promise.all(i),r=await ue(n,a=>e.blockTools.get(a).sanitizeConfig);return this.makeOutput(r)}catch(n){K("Saving failed due to the Error %o","error",n)}}async getSavedData(t){const e=await t.save(),o=e&&await t.validate(e.data);return{...e,isValid:o}}makeOutput(t){let e=0;const o=[];return T("[Editor.js saving]:","groupCollapsed"),t.forEach(({id:i,tool:n,data:r,tunes:a,time:l,isValid:c})=>{if(e+=l,T(`${n.charAt(0).toUpperCase()+n.slice(1)}`,"group"),c)T(r),T(void 0,"groupEnd");else{T(`Block «${n}» skipped because saved data is invalid`),T(void 0,"groupEnd");return}if(n===this.Editor.Tools.stubTool){o.push(r);return}const p={id:i,type:n,data:r,...!V(a)&&{tunes:a}};o.push(p)}),T("Total","log",e),T(void 0,"groupEnd"),{time:+new Date,blocks:o,version:"2.27.2"}}}var Rt={},li={get exports(){return Rt},set exports(s){Rt=s}};(function(s,t){(function(e,o){s.exports=o()})(window,function(){return function(e){var o={};function i(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=o,i.d=function(n,r,a){i.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:a})},i.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(n,r){if(1&r&&(n=i(n)),8&r||4&r&&typeof n=="object"&&n&&n.__esModule)return n;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&r&&typeof n!="string")for(var l in n)i.d(a,l,(function(c){return n[c]}).bind(null,l));return a},i.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(r,"a",r),r},i.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},i.p="/",i(i.s=4)}([function(e,o,i){var n=i(1),r=i(2);typeof(r=r.__esModule?r.default:r)=="string"&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1};n(r,a),e.exports=r.locals||{}},function(e,o,i){var n,r=function(){return n===void 0&&(n=!!(window&&document&&document.all&&!window.atob)),n},a=function(){var w={};return function(v){if(w[v]===void 0){var x=document.querySelector(v);if(window.HTMLIFrameElement&&x instanceof window.HTMLIFrameElement)try{x=x.contentDocument.head}catch{x=null}w[v]=x}return w[v]}}(),l=[];function c(w){for(var v=-1,x=0;x',title:"Text"}}}]),l}()}]).default})})(li);const ci=xt(Rt);class Yt{constructor(){this.commandName="bold",this.CSS={button:"ce-inline-tool",buttonActive:"ce-inline-tool--active",buttonModifier:"ce-inline-tool--bold"},this.nodes={button:void 0}}static get sanitize(){return{b:{}}}render(){return this.nodes.button=document.createElement("button"),this.nodes.button.type="button",this.nodes.button.classList.add(this.CSS.button,this.CSS.buttonModifier),this.nodes.button.innerHTML=Ao,this.nodes.button}surround(){document.execCommand(this.commandName)}checkState(){const t=document.queryCommandState(this.commandName);return this.nodes.button.classList.toggle(this.CSS.buttonActive,t),t}get shortcut(){return"CMD+B"}}Yt.isInline=!0;Yt.title="Bold";class Wt{constructor(){this.commandName="italic",this.CSS={button:"ce-inline-tool",buttonActive:"ce-inline-tool--active",buttonModifier:"ce-inline-tool--italic"},this.nodes={button:null}}static get sanitize(){return{i:{}}}render(){return this.nodes.button=document.createElement("button"),this.nodes.button.type="button",this.nodes.button.classList.add(this.CSS.button,this.CSS.buttonModifier),this.nodes.button.innerHTML=Ro,this.nodes.button}surround(){document.execCommand(this.commandName)}checkState(){const t=document.queryCommandState(this.commandName);return this.nodes.button.classList.toggle(this.CSS.buttonActive,t),t}get shortcut(){return"CMD+I"}}Wt.isInline=!0;Wt.title="Italic";class Kt{constructor({api:t}){this.commandLink="createLink",this.commandUnlink="unlink",this.ENTER_KEY=13,this.CSS={button:"ce-inline-tool",buttonActive:"ce-inline-tool--active",buttonModifier:"ce-inline-tool--link",buttonUnlink:"ce-inline-tool--unlink",input:"ce-inline-tool-input",inputShowed:"ce-inline-tool-input--showed"},this.nodes={button:null,input:null},this.inputOpened=!1,this.toolbar=t.toolbar,this.inlineToolbar=t.inlineToolbar,this.notifier=t.notifier,this.i18n=t.i18n,this.selection=new b}static get sanitize(){return{a:{href:!0,target:"_blank",rel:"nofollow"}}}render(){return this.nodes.button=document.createElement("button"),this.nodes.button.type="button",this.nodes.button.classList.add(this.CSS.button,this.CSS.buttonModifier),this.nodes.button.innerHTML=Qt,this.nodes.button}renderActions(){return this.nodes.input=document.createElement("input"),this.nodes.input.placeholder=this.i18n.t("Add a link"),this.nodes.input.classList.add(this.CSS.input),this.nodes.input.addEventListener("keydown",t=>{t.keyCode===this.ENTER_KEY&&this.enterPressed(t)}),this.nodes.input}surround(t){if(t){this.inputOpened?(this.selection.restore(),this.selection.removeFakeBackground()):(this.selection.setFakeBackground(),this.selection.save());const e=this.selection.findParentTag("A");if(e){this.selection.expandToTag(e),this.unlink(),this.closeActions(),this.checkState(),this.toolbar.close();return}}this.toggleActions()}checkState(){const t=this.selection.findParentTag("A");if(t){this.nodes.button.innerHTML=Ho,this.nodes.button.classList.add(this.CSS.buttonUnlink),this.nodes.button.classList.add(this.CSS.buttonActive),this.openActions();const e=t.getAttribute("href");this.nodes.input.value=e!=="null"?e:"",this.selection.save()}else this.nodes.button.innerHTML=Qt,this.nodes.button.classList.remove(this.CSS.buttonUnlink),this.nodes.button.classList.remove(this.CSS.buttonActive);return!!t}clear(){this.closeActions()}get shortcut(){return"CMD+K"}toggleActions(){this.inputOpened?this.closeActions(!1):this.openActions(!0)}openActions(t=!1){this.nodes.input.classList.add(this.CSS.inputShowed),t&&this.nodes.input.focus(),this.inputOpened=!0}closeActions(t=!0){if(this.selection.isFakeBackgroundEnabled){const e=new b;e.save(),this.selection.restore(),this.selection.removeFakeBackground(),e.restore()}this.nodes.input.classList.remove(this.CSS.inputShowed),this.nodes.input.value="",t&&this.selection.clearSaved(),this.inputOpened=!1}enterPressed(t){let e=this.nodes.input.value||"";if(!e.trim()){this.selection.restore(),this.unlink(),t.preventDefault(),this.closeActions();return}if(!this.validateURL(e)){this.notifier.show({message:"Pasted link is not valid.",style:"error"}),T("Incorrect Link pasted","warn",e);return}e=this.prepareLink(e),this.selection.restore(),this.selection.removeFakeBackground(),this.insertLink(e),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.selection.collapseToEnd(),this.inlineToolbar.close()}validateURL(t){return!/\s/.test(t)}prepareLink(t){return t=t.trim(),t=this.addProtocol(t),t}addProtocol(t){if(/^(\w+):(\/\/)?/.test(t))return t;const e=/^\/[^/\s]/.test(t),o=t.substring(0,1)==="#",i=/^\/\/[^/\s]/.test(t);return!e&&!o&&!i&&(t="http://"+t),t}insertLink(t){const e=this.selection.findParentTag("A");e&&this.selection.expandToTag(e),document.execCommand(this.commandLink,!1,t)}unlink(){document.execCommand(this.commandUnlink)}}Kt.isInline=!0;Kt.title="Link";class Se{constructor({data:t,api:e}){this.CSS={wrapper:"ce-stub",info:"ce-stub__info",title:"ce-stub__title",subtitle:"ce-stub__subtitle"},this.api=e,this.title=t.title||this.api.i18n.t("Error"),this.subtitle=this.api.i18n.t("The block can not be displayed correctly."),this.savedData=t.savedData,this.wrapper=this.make()}render(){return this.wrapper}save(){return this.savedData}make(){const t=d.make("div",this.CSS.wrapper),e='',o=d.make("div",this.CSS.info),i=d.make("div",this.CSS.title,{textContent:this.title}),n=d.make("div",this.CSS.subtitle,{textContent:this.subtitle});return t.innerHTML=e,o.appendChild(i),o.appendChild(n),t.appendChild(o),t}}Se.isReadOnlySupported=!0;class di extends $t{constructor(){super(...arguments),this.type=yt.Inline}get title(){return this.constructable[Ut.Title]}create(){return new this.constructable({api:this.api.getMethodsForTool(this),config:this.settings})}}class hi extends $t{constructor(){super(...arguments),this.type=yt.Tune}create(t,e){return new this.constructable({api:this.api.getMethodsForTool(this),config:this.settings,block:e,data:t})}}class U extends Map{get blockTools(){const t=Array.from(this.entries()).filter(([,e])=>e.isBlock());return new U(t)}get inlineTools(){const t=Array.from(this.entries()).filter(([,e])=>e.isInline());return new U(t)}get blockTunes(){const t=Array.from(this.entries()).filter(([,e])=>e.isTune());return new U(t)}get internalTools(){const t=Array.from(this.entries()).filter(([,e])=>e.isInternal);return new U(t)}get externalTools(){const t=Array.from(this.entries()).filter(([,e])=>!e.isInternal);return new U(t)}}var pi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,Ce=(s,t,e,o)=>{for(var i=o>1?void 0:o?ui(t,e):t,n=s.length-1,r;n>=0;n--)(r=s[n])&&(i=(o?r(t,e,i):r(i))||i);return o&&i&&pi(t,e,i),i};class Xt extends $t{constructor(){super(...arguments),this.type=yt.Block,this.inlineTools=new U,this.tunes=new U}create(t,e,o){return new this.constructable({data:t,block:e,readOnly:o,api:this.api.getMethodsForTool(this),config:this.settings})}get isReadOnlySupported(){return this.constructable[st.IsReadOnlySupported]===!0}get isLineBreaksEnabled(){return this.constructable[st.IsEnabledLineBreaks]}get toolbox(){const t=this.constructable[st.Toolbox],e=this.config[bt.Toolbox];if(!V(t)&&e!==!1)return e?Array.isArray(t)?Array.isArray(e)?e.map((o,i)=>{const n=t[i];return n?{...n,...o}:o}):[e]:Array.isArray(e)?e:[{...t,...e}]:Array.isArray(t)?t:[t]}get conversionConfig(){return this.constructable[st.ConversionConfig]}get enabledInlineTools(){return this.config[bt.EnabledInlineTools]||!1}get enabledBlockTunes(){return this.config[bt.EnabledBlockTunes]}get pasteConfig(){return this.constructable[st.PasteConfig]??{}}get sanitizeConfig(){const t=super.sanitizeConfig,e=this.baseSanitizeConfig;if(V(t))return e;const o={};for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){const n=t[i];z(n)?o[i]=Object.assign({},e,n):o[i]=n}return o}get baseSanitizeConfig(){const t={};return Array.from(this.inlineTools.values()).forEach(e=>Object.assign(t,e.sanitizeConfig)),Array.from(this.tunes.values()).forEach(e=>Object.assign(t,e.sanitizeConfig)),t}}Ce([at],Xt.prototype,"sanitizeConfig",1);Ce([at],Xt.prototype,"baseSanitizeConfig",1);class fi{constructor(t,e,o){this.api=o,this.config=t,this.editorConfig=e}get(t){const{class:e,isInternal:o=!1,...i}=this.config[t],n=this.getConstructor(e);return new n({name:t,constructable:e,config:i,api:this.api,isDefault:t===this.editorConfig.defaultBlock,defaultPlaceholder:this.editorConfig.placeholder,isInternal:o})}getConstructor(t){switch(!0){case t[Ut.IsInline]:return di;case t[we.IsTune]:return hi;default:return Xt}}}class Te{constructor({api:t}){this.CSS={animation:"wobble"},this.api=t}render(){return{icon:ge,title:this.api.i18n.t("Move down"),onActivate:()=>this.handleClick(),name:"move-down"}}handleClick(){const t=this.api.blocks.getCurrentBlockIndex(),e=this.api.blocks.getBlockByIndex(t+1);if(!e)throw new Error("Unable to move Block down since it is already the last");const o=e.holder,i=o.getBoundingClientRect();let n=Math.abs(window.innerHeight-o.offsetHeight);i.topthis.handleClick()}}}handleClick(){this.api.blocks.delete()}}Be.isTune=!0;class Ie{constructor({api:t}){this.CSS={animation:"wobble"},this.api=t}render(){return{icon:Lo,title:this.api.i18n.t("Move up"),onActivate:()=>this.handleClick(),name:"move-up"}}handleClick(){const t=this.api.blocks.getCurrentBlockIndex(),e=this.api.blocks.getBlockByIndex(t),o=this.api.blocks.getBlockByIndex(t-1);if(t===0||!e||!o)throw new Error("Unable to move Block up since it is already the first");const i=e.holder,n=o.holder,r=i.getBoundingClientRect(),a=n.getBoundingClientRect();let l;a.top>0?l=Math.abs(r.top)-Math.abs(a.top):l=Math.abs(r.top)+a.height,window.scrollBy(0,-1*l),this.api.blocks.move(t-1),this.api.toolbar.toggleBlockSettings(!0)}}Ie.isTune=!0;var gi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,bi=(s,t,e,o)=>{for(var i=o>1?void 0:o?mi(t,e):t,n=s.length-1,r;n>=0;n--)(r=s[n])&&(i=(o?r(t,e,i):r(i))||i);return o&&i&&gi(t,e,i),i};class Me extends B{constructor(){super(...arguments),this.stubTool="stub",this.toolsAvailable=new U,this.toolsUnavailable=new U}get available(){return this.toolsAvailable}get unavailable(){return this.toolsUnavailable}get inlineTools(){return this.available.inlineTools}get blockTools(){return this.available.blockTools}get blockTunes(){return this.available.blockTunes}get defaultTool(){return this.blockTools.get(this.config.defaultBlock)}get internal(){return this.available.internalTools}async prepare(){if(this.validateTools(),this.config.tools=It({},this.internalTools,this.config.tools),!Object.prototype.hasOwnProperty.call(this.config,"tools")||Object.keys(this.config.tools).length===0)throw Error("Can't start without tools");const t=this.prepareConfig();this.factory=new fi(t,this.config,this.Editor.API);const e=this.getListOfPrepareFunctions(t);if(e.length===0)return Promise.resolve();await ne(e,o=>{this.toolPrepareMethodSuccess(o)},o=>{this.toolPrepareMethodFallback(o)}),this.prepareBlockTools()}getAllInlineToolsSanitizeConfig(){const t={};return Array.from(this.inlineTools.values()).forEach(e=>{Object.assign(t,e.sanitizeConfig)}),t}destroy(){Object.values(this.available).forEach(async t=>{D(t.reset)&&await t.reset()})}get internalTools(){return{bold:{class:Yt,isInternal:!0},italic:{class:Wt,isInternal:!0},link:{class:Kt,isInternal:!0},paragraph:{class:ci,inlineToolbar:!0,isInternal:!0},stub:{class:Se,isInternal:!0},moveUp:{class:Ie,isInternal:!0},delete:{class:Be,isInternal:!0},moveDown:{class:Te,isInternal:!0}}}toolPrepareMethodSuccess(t){const e=this.factory.get(t.toolName);if(e.isInline()){const o=["render","surround","checkState"].filter(i=>!e.create()[i]);if(o.length){T(`Incorrect Inline Tool: ${e.name}. Some of required methods is not implemented %o`,"warn",o),this.toolsUnavailable.set(e.name,e);return}}this.toolsAvailable.set(e.name,e)}toolPrepareMethodFallback(t){this.toolsUnavailable.set(t.toolName,this.factory.get(t.toolName))}getListOfPrepareFunctions(t){const e=[];return Object.entries(t).forEach(([o,i])=>{e.push({function:D(i.class.prepare)?i.class.prepare:()=>{},data:{toolName:o,config:i.config}})}),e}prepareBlockTools(){Array.from(this.blockTools.values()).forEach(t=>{this.assignInlineToolsToBlockTool(t),this.assignBlockTunesToBlockTool(t)})}assignInlineToolsToBlockTool(t){if(this.config.inlineToolbar!==!1){if(t.enabledInlineTools===!0){t.inlineTools=new U(Array.isArray(this.config.inlineToolbar)?this.config.inlineToolbar.map(e=>[e,this.inlineTools.get(e)]):Array.from(this.inlineTools.entries()));return}Array.isArray(t.enabledInlineTools)&&(t.inlineTools=new U(t.enabledInlineTools.map(e=>[e,this.inlineTools.get(e)])))}}assignBlockTunesToBlockTool(t){if(t.enabledBlockTunes!==!1){if(Array.isArray(t.enabledBlockTunes)){const e=new U(t.enabledBlockTunes.map(o=>[o,this.blockTunes.get(o)]));t.tunes=new U([...e,...this.blockTunes.internalTools]);return}if(Array.isArray(this.config.tunes)){const e=new U(this.config.tunes.map(o=>[o,this.blockTunes.get(o)]));t.tunes=new U([...e,...this.blockTunes.internalTools]);return}t.tunes=this.blockTunes.internalTools}}validateTools(){for(const t in this.config.tools)if(Object.prototype.hasOwnProperty.call(this.config.tools,t)){if(t in this.internalTools)return;const e=this.config.tools[t];if(!D(e)&&!D(e.class))throw Error(`Tool «${t}» must be a constructor function or an object with function in the «class» property`)}}prepareConfig(){const t={};for(const e in this.config.tools)z(this.config.tools[e])?t[e]=this.config.tools[e]:t[e]={class:this.config.tools[e]};return t}}bi([at],Me.prototype,"getAllInlineToolsSanitizeConfig",1);const ki=`:root{--selectionColor: #e1f2ff;--inlineSelectionColor: #d4ecff;--bg-light: #eff2f5;--grayText: #707684;--color-dark: #1D202B;--color-active-icon: #388AE5;--color-gray-border: rgba(201, 201, 204, .48);--content-width: 650px;--narrow-mode-right-padding: 50px;--toolbox-buttons-size: 26px;--toolbox-buttons-size--mobile: 36px;--icon-size: 20px;--icon-size--mobile: 28px;--block-padding-vertical: .4em;--color-line-gray: #EFF0F1 }.codex-editor{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}.codex-editor .hide,.codex-editor__redactor--hidden{display:none}.codex-editor__redactor [contenteditable]:empty:after{content:"\\feff"}@media (min-width: 651px){.codex-editor--narrow .codex-editor__redactor{margin-right:50px}}@media (min-width: 651px){.codex-editor--narrow.codex-editor--rtl .codex-editor__redactor{margin-left:50px;margin-right:0}}@media (min-width: 651px){.codex-editor--narrow .ce-toolbar__actions{right:-5px}}.codex-editor__loader{position:relative;height:30vh}.codex-editor__loader:before{content:"";position:absolute;left:50%;top:50%;width:30px;height:30px;margin-top:-15px;margin-left:-15px;border-radius:50%;border:2px solid rgba(201,201,204,.48);border-top-color:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:editor-loader-spin .8s infinite linear;animation:editor-loader-spin .8s infinite linear;will-change:transform}.codex-editor-copyable{position:absolute;height:1px;width:1px;top:-400%;opacity:.001}.codex-editor-overlay{position:fixed;top:0px;left:0px;right:0px;bottom:0px;z-index:999;pointer-events:none;overflow:hidden}.codex-editor-overlay__container{position:relative;pointer-events:auto;z-index:0}.codex-editor-overlay__rectangle{position:absolute;pointer-events:none;background-color:#2eaadc33;border:1px solid transparent}.codex-editor svg{max-height:100%}.codex-editor path{stroke:currentColor}::-moz-selection{background-color:#d4ecff}::selection{background-color:#d4ecff}.codex-editor--toolbox-opened [contentEditable=true][data-placeholder]:focus:before{opacity:0!important}@-webkit-keyframes editor-loader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes editor-loader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ce-scroll-locked{overflow:hidden}.ce-scroll-locked--hard{overflow:hidden;top:calc(-1 * var(--window-scroll-offset));position:fixed;width:100%}.ce-toolbar{position:absolute;left:0;right:0;top:0;-webkit-transition:opacity .1s ease;transition:opacity .1s ease;will-change:opacity,top;display:none}.ce-toolbar--opened{display:block}.ce-toolbar__content{max-width:650px;margin:0 auto;position:relative}.ce-toolbar__plus{color:#1d202b;cursor:pointer;width:26px;height:26px;border-radius:7px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-negative:0;flex-shrink:0}@media (max-width: 650px){.ce-toolbar__plus{width:36px;height:36px}}@media (hover: hover){.ce-toolbar__plus:hover{background-color:#eff2f5}}.ce-toolbar__plus--active{background-color:#eff2f5;-webkit-animation:bounceIn .75s 1;animation:bounceIn .75s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.ce-toolbar__plus-shortcut{opacity:.6;word-spacing:-2px;margin-top:5px}@media (max-width: 650px){.ce-toolbar__plus{position:absolute;background-color:#fff;border:1px solid #E8E8EB;-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.13);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;z-index:2;position:static}.ce-toolbar__plus--left-oriented:before{left:15px;margin-left:0}.ce-toolbar__plus--right-oriented:before{left:auto;right:15px;margin-left:0}}.ce-toolbar__actions{position:absolute;right:100%;opacity:0;display:-webkit-box;display:-ms-flexbox;display:flex;padding-right:5px}.ce-toolbar__actions--opened{opacity:1}@media (max-width: 650px){.ce-toolbar__actions{right:auto}}.ce-toolbar__settings-btn{color:#1d202b;width:26px;height:26px;border-radius:7px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;margin-left:3px;cursor:pointer;user-select:none}@media (max-width: 650px){.ce-toolbar__settings-btn{width:36px;height:36px}}@media (hover: hover){.ce-toolbar__settings-btn:hover{background-color:#eff2f5}}.ce-toolbar__settings-btn--active{background-color:#eff2f5;-webkit-animation:bounceIn .75s 1;animation:bounceIn .75s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (min-width: 651px){.ce-toolbar__settings-btn{width:24px}}.ce-toolbar__settings-btn--hidden{display:none}@media (max-width: 650px){.ce-toolbar__settings-btn{position:absolute;background-color:#fff;border:1px solid #E8E8EB;-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.13);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;z-index:2;position:static}.ce-toolbar__settings-btn--left-oriented:before{left:15px;margin-left:0}.ce-toolbar__settings-btn--right-oriented:before{left:auto;right:15px;margin-left:0}}.ce-toolbar__plus svg,.ce-toolbar__settings-btn svg{width:24px;height:24px}@media (min-width: 651px){.codex-editor--narrow .ce-toolbar__plus{left:5px}}@media (min-width: 651px){.codex-editor--narrow .ce-toolbox .ce-popover{right:0;left:auto;left:initial}}.ce-inline-toolbar{--y-offset: 8px;position:absolute;background-color:#fff;border:1px solid #E8E8EB;-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.13);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;z-index:2;-webkit-transform:translateX(-50%) translateY(8px) scale(.94);transform:translate(-50%) translateY(8px) scale(.94);opacity:0;visibility:hidden;-webkit-transition:opacity .25s ease,-webkit-transform .15s ease;transition:opacity .25s ease,-webkit-transform .15s ease;transition:transform .15s ease,opacity .25s ease;transition:transform .15s ease,opacity .25s ease,-webkit-transform .15s ease;will-change:transform,opacity;top:0;left:0;z-index:3}.ce-inline-toolbar--left-oriented:before{left:15px;margin-left:0}.ce-inline-toolbar--right-oriented:before{left:auto;right:15px;margin-left:0}.ce-inline-toolbar--showed{opacity:1;visibility:visible;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ce-inline-toolbar--left-oriented{-webkit-transform:translateX(-23px) translateY(8px) scale(.94);transform:translate(-23px) translateY(8px) scale(.94)}.ce-inline-toolbar--left-oriented.ce-inline-toolbar--showed{-webkit-transform:translateX(-23px);transform:translate(-23px)}.ce-inline-toolbar--right-oriented{-webkit-transform:translateX(-100%) translateY(8px) scale(.94);transform:translate(-100%) translateY(8px) scale(.94);margin-left:23px}.ce-inline-toolbar--right-oriented.ce-inline-toolbar--showed{-webkit-transform:translateX(-100%);transform:translate(-100%)}.ce-inline-toolbar [hidden]{display:none!important}.ce-inline-toolbar__toggler-and-button-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;padding:0 6px}.ce-inline-toolbar__buttons{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-inline-toolbar__dropdown{display:-webkit-box;display:-ms-flexbox;display:flex;padding:6px;margin:0 6px 0 -6px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-right:1px solid rgba(201,201,204,.48);-webkit-box-sizing:border-box;box-sizing:border-box}@media (hover: hover){.ce-inline-toolbar__dropdown:hover{background:#eff2f5}}.ce-inline-toolbar__dropdown--hidden{display:none}.ce-inline-toolbar__dropdown-content,.ce-inline-toolbar__dropdown-arrow{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-inline-toolbar__dropdown-content svg,.ce-inline-toolbar__dropdown-arrow svg{width:20px;height:20px}.ce-inline-toolbar__shortcut{opacity:.6;word-spacing:-3px;margin-top:3px}.ce-inline-tool{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:6px 1px;cursor:pointer;border:0;outline:none;background-color:transparent;vertical-align:bottom;color:inherit;margin:0;border-radius:0;line-height:normal}.ce-inline-tool svg{width:20px;height:20px}@media (max-width: 650px){.ce-inline-tool svg{width:28px;height:28px}}@media (hover: hover){.ce-inline-tool:hover{background-color:#eff2f5}}.ce-inline-tool--active{color:#388ae5}.ce-inline-tool--focused{background:rgba(34,186,255,.08)!important}.ce-inline-tool--focused{-webkit-box-shadow:inset 0 0 0px 1px rgba(7,161,227,.08);box-shadow:inset 0 0 0 1px #07a1e314}.ce-inline-tool--focused-animated{-webkit-animation-name:buttonClicked;animation-name:buttonClicked;-webkit-animation-duration:.25s;animation-duration:.25s}.ce-inline-tool--link .icon--unlink,.ce-inline-tool--unlink .icon--link{display:none}.ce-inline-tool--unlink .icon--unlink{display:inline-block;margin-bottom:-1px}.ce-inline-tool-input{outline:none;border:0;border-radius:0 0 4px 4px;margin:0;font-size:13px;padding:10px;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:none;font-weight:500;border-top:1px solid rgba(201,201,204,.48);-webkit-appearance:none;font-family:inherit}@media (max-width: 650px){.ce-inline-tool-input{font-size:15px;font-weight:500}}.ce-inline-tool-input::-webkit-input-placeholder{color:#707684}.ce-inline-tool-input::-moz-placeholder{color:#707684}.ce-inline-tool-input:-ms-input-placeholder{color:#707684}.ce-inline-tool-input::-ms-input-placeholder{color:#707684}.ce-inline-tool-input::placeholder{color:#707684}.ce-inline-tool-input--showed{display:block}.ce-conversion-toolbar{position:absolute;background-color:#fff;border:1px solid #E8E8EB;-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.13);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;z-index:2;opacity:0;visibility:hidden;will-change:transform,opacity;-webkit-transition:opacity .1s ease,-webkit-transform .1s ease;transition:opacity .1s ease,-webkit-transform .1s ease;transition:transform .1s ease,opacity .1s ease;transition:transform .1s ease,opacity .1s ease,-webkit-transform .1s ease;-webkit-transform:translateY(-8px);transform:translateY(-8px);left:-1px;width:150px;margin-top:5px;-webkit-box-sizing:content-box;box-sizing:content-box}.ce-conversion-toolbar--left-oriented:before{left:15px;margin-left:0}.ce-conversion-toolbar--right-oriented:before{left:auto;right:15px;margin-left:0}.ce-conversion-toolbar--showed{opacity:1;visibility:visible;-webkit-transform:none;transform:none}.ce-conversion-toolbar [hidden]{display:none!important}.ce-conversion-toolbar__buttons{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-conversion-toolbar__label{color:#707684;font-size:11px;font-weight:500;letter-spacing:.33px;padding:10px 10px 5px;text-transform:uppercase}.ce-conversion-tool{display:-webkit-box;display:-ms-flexbox;display:flex;padding:5px 10px;font-size:14px;line-height:20px;font-weight:500;cursor:pointer;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ce-conversion-tool--hidden{display:none}.ce-conversion-tool--focused{background:rgba(34,186,255,.08)!important}.ce-conversion-tool--focused{-webkit-box-shadow:inset 0 0 0px 1px rgba(7,161,227,.08);box-shadow:inset 0 0 0 1px #07a1e314}.ce-conversion-tool--focused-animated{-webkit-animation-name:buttonClicked;animation-name:buttonClicked;-webkit-animation-duration:.25s;animation-duration:.25s}.ce-conversion-tool:hover{background:#eff2f5}.ce-conversion-tool__icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:26px;height:26px;-webkit-box-shadow:0 0 0 1px rgba(201,201,204,.48);box-shadow:0 0 0 1px #c9c9cc7a;border-radius:5px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:#fff;-webkit-box-sizing:content-box;box-sizing:content-box;-ms-flex-negative:0;flex-shrink:0;margin-right:10px}.ce-conversion-tool__icon svg{width:20px;height:20px}@media (max-width: 650px){.ce-conversion-tool__icon{width:36px;height:36px;border-radius:8px}.ce-conversion-tool__icon svg{width:28px;height:28px}}.ce-conversion-tool--last{margin-right:0!important}.ce-conversion-tool--active{color:#388ae5!important}.ce-conversion-tool--active{-webkit-animation:bounceIn .75s 1;animation:bounceIn .75s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.ce-settings__button{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:6px 1px;border-radius:3px;cursor:pointer;border:0;outline:none;background-color:transparent;vertical-align:bottom;color:inherit;margin:0;line-height:32px}.ce-settings__button svg{width:20px;height:20px}@media (max-width: 650px){.ce-settings__button svg{width:28px;height:28px}}@media (hover: hover){.ce-settings__button:hover{background-color:#eff2f5}}.ce-settings__button--active{color:#388ae5}.ce-settings__button--focused{background:rgba(34,186,255,.08)!important}.ce-settings__button--focused{-webkit-box-shadow:inset 0 0 0px 1px rgba(7,161,227,.08);box-shadow:inset 0 0 0 1px #07a1e314}.ce-settings__button--focused-animated{-webkit-animation-name:buttonClicked;animation-name:buttonClicked;-webkit-animation-duration:.25s;animation-duration:.25s}.ce-settings__button:not(:nth-child(3n+3)){margin-right:3px}.ce-settings__button:nth-child(n+4){margin-top:3px}.ce-settings__button--disabled{cursor:not-allowed!important}.ce-settings__button--disabled{opacity:.3}.ce-settings__button--selected{color:#388ae5}@media (min-width: 651px){.codex-editor--narrow .ce-settings .ce-popover{right:0;left:auto;left:initial}}@-webkit-keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.ce-block{-webkit-animation:fade-in .3s ease;animation:fade-in .3s ease;-webkit-animation-fill-mode:none;animation-fill-mode:none;-webkit-animation-fill-mode:initial;animation-fill-mode:initial}.ce-block:first-of-type{margin-top:0}.ce-block--selected .ce-block__content{background:#e1f2ff}.ce-block--selected .ce-block__content [contenteditable]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ce-block--selected .ce-block__content img,.ce-block--selected .ce-block__content .ce-stub{opacity:.55}.ce-block--stretched .ce-block__content{max-width:none}.ce-block__content{position:relative;max-width:650px;margin:0 auto;-webkit-transition:background-color .15s ease;transition:background-color .15s ease}.ce-block--drop-target .ce-block__content:before{content:"";position:absolute;top:100%;left:-20px;margin-top:-1px;height:8px;width:8px;border:solid #388AE5;border-width:1px 1px 0 0;-webkit-transform-origin:right;transform-origin:right;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ce-block--drop-target .ce-block__content:after{content:"";position:absolute;top:100%;height:1px;width:100%;color:#388ae5;background:repeating-linear-gradient(90deg,#388AE5,#388AE5 1px,#fff 1px,#fff 6px)}.ce-block a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.ce-block b{font-weight:700}.ce-block i{font-style:italic}@media (min-width: 651px){.codex-editor--narrow .ce-block--focused{margin-right:-50px;padding-right:50px}}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}20%{-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}60%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}20%{-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}60%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@-webkit-keyframes selectionBounce{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}50%{-webkit-transform:scale3d(1.01,1.01,1.01);transform:scale3d(1.01,1.01,1.01)}70%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes selectionBounce{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}50%{-webkit-transform:scale3d(1.01,1.01,1.01);transform:scale3d(1.01,1.01,1.01)}70%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@-webkit-keyframes buttonClicked{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.95,.95,.95);transform:scale3d(.95,.95,.95)}60%{-webkit-transform:scale3d(1.02,1.02,1.02);transform:scale3d(1.02,1.02,1.02)}80%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes buttonClicked{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.95,.95,.95);transform:scale3d(.95,.95,.95)}60%{-webkit-transform:scale3d(1.02,1.02,1.02);transform:scale3d(1.02,1.02,1.02)}80%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.cdx-block{padding:.4em 0}.cdx-block::-webkit-input-placeholder{line-height:normal!important}.cdx-input{border:1px solid rgba(201,201,204,.48);-webkit-box-shadow:inset 0 1px 2px 0 rgba(35,44,72,.06);box-shadow:inset 0 1px 2px #232c480f;border-radius:3px;padding:10px 12px;outline:none;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.cdx-input[data-placeholder]:before{position:static!important}.cdx-input[data-placeholder]:before{display:inline-block;width:0;white-space:nowrap;pointer-events:none}.cdx-settings-button{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:6px 1px;border-radius:3px;cursor:pointer;border:0;outline:none;background-color:transparent;vertical-align:bottom;color:inherit;margin:0;min-width:26px;min-height:26px}.cdx-settings-button svg{width:20px;height:20px}@media (max-width: 650px){.cdx-settings-button svg{width:28px;height:28px}}@media (hover: hover){.cdx-settings-button:hover{background-color:#eff2f5}}.cdx-settings-button--focused{background:rgba(34,186,255,.08)!important}.cdx-settings-button--focused{-webkit-box-shadow:inset 0 0 0px 1px rgba(7,161,227,.08);box-shadow:inset 0 0 0 1px #07a1e314}.cdx-settings-button--focused-animated{-webkit-animation-name:buttonClicked;animation-name:buttonClicked;-webkit-animation-duration:.25s;animation-duration:.25s}.cdx-settings-button--active{color:#388ae5}.cdx-settings-button svg{width:auto;height:auto}@media (max-width: 650px){.cdx-settings-button{width:36px;height:36px;border-radius:8px}}.cdx-loader{position:relative;border:1px solid rgba(201,201,204,.48)}.cdx-loader:before{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-11px 0 0 -11px;border:2px solid rgba(201,201,204,.48);border-left-color:#388ae5;border-radius:50%;-webkit-animation:cdxRotation 1.2s infinite linear;animation:cdxRotation 1.2s infinite linear}@-webkit-keyframes cdxRotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes cdxRotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.cdx-button{padding:13px;border-radius:3px;border:1px solid rgba(201,201,204,.48);font-size:14.9px;background:#fff;-webkit-box-shadow:0 2px 2px 0 rgba(18,30,57,.04);box-shadow:0 2px 2px #121e390a;color:#707684;text-align:center;cursor:pointer}@media (hover: hover){.cdx-button:hover{background:#FBFCFE;-webkit-box-shadow:0 1px 3px 0 rgba(18,30,57,.08);box-shadow:0 1px 3px #121e3914}}.cdx-button svg{height:20px;margin-right:.2em;margin-top:-2px}.ce-stub{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;padding:3.5em 0;margin:17px 0;border-radius:3px;background:#fcf7f7;color:#b46262}.ce-stub__info{margin-left:20px}.ce-stub__title{margin-bottom:3px;font-weight:600;font-size:18px;text-transform:capitalize}.ce-stub__subtitle{font-size:16px}.codex-editor.codex-editor--rtl{direction:rtl}.codex-editor.codex-editor--rtl .cdx-list{padding-left:0;padding-right:40px}.codex-editor.codex-editor--rtl .ce-toolbar__plus{right:-26px;left:auto}.codex-editor.codex-editor--rtl .ce-toolbar__actions{right:auto;left:-26px}@media (max-width: 650px){.codex-editor.codex-editor--rtl .ce-toolbar__actions{margin-left:0;margin-right:auto;padding-right:0;padding-left:10px}}.codex-editor.codex-editor--rtl .ce-settings{left:5px;right:auto}.codex-editor.codex-editor--rtl .ce-settings:before{right:auto;left:25px}.codex-editor.codex-editor--rtl .ce-settings__button:not(:nth-child(3n+3)){margin-left:3px;margin-right:0}.codex-editor.codex-editor--rtl .ce-conversion-tool__icon{margin-right:0;margin-left:10px}.codex-editor.codex-editor--rtl .ce-inline-toolbar__dropdown{border-right:0px solid transparent;border-left:1px solid rgba(201,201,204,.48);margin:0 -6px 0 6px}.codex-editor.codex-editor--rtl .ce-inline-toolbar__dropdown .icon--toggler-down{margin-left:0;margin-right:4px}@media (min-width: 651px){.codex-editor--narrow.codex-editor--rtl .ce-toolbar__plus{left:0px;right:5px}}@media (min-width: 651px){.codex-editor--narrow.codex-editor--rtl .ce-toolbar__actions{left:-5px}}.cdx-search-field{--icon-margin-right: 10px;background:rgba(232,232,235,.49);border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:2px;display:grid;grid-template-columns:auto auto 1fr;grid-template-rows:auto}.cdx-search-field__icon{width:26px;height:26px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:var(--icon-margin-right)}.cdx-search-field__icon svg{width:20px;height:20px;color:#707684}.cdx-search-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;padding:0;line-height:22px;min-width:calc(100% - 26px - var(--icon-margin-right))}.cdx-search-field__input::-webkit-input-placeholder{color:#707684;font-weight:500}.cdx-search-field__input::-moz-placeholder{color:#707684;font-weight:500}.cdx-search-field__input:-ms-input-placeholder{color:#707684;font-weight:500}.cdx-search-field__input::-ms-input-placeholder{color:#707684;font-weight:500}.cdx-search-field__input::placeholder{color:#707684;font-weight:500}.ce-popover{--border-radius: 6px;--width: 200px;--max-height: 270px;--padding: 6px;--offset-from-target: 8px;--color-border: #e8e8eb;--color-shadow: rgba(13,20,33,.13);--color-background: white;--color-text-primary: black;--color-text-secondary: #707684;--color-border-icon: rgba(201, 201, 204, .48);--color-border-icon-disabled: #EFF0F1;--color-text-icon-active: #388AE5;--color-background-icon-active: rgba(56, 138, 229, .1);--color-background-item-focus: rgba(34, 186, 255, .08);--color-shadow-item-focus: rgba(7, 161, 227, .08);--color-background-item-hover: #eff2f5;--color-background-item-confirm: #E24A4A;--color-background-item-confirm-hover: #CE4343;min-width:var(--width);width:var(--width);max-height:var(--max-height);border-radius:var(--border-radius);overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 3px 15px -3px var(--color-shadow);box-shadow:0 3px 15px -3px var(--color-shadow);position:absolute;left:0;top:calc(100% + var(--offset-from-target));background:var(--color-background);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;z-index:4;opacity:0;max-height:0;pointer-events:none;padding:0;border:none}.ce-popover--opened{opacity:1;padding:var(--padding);max-height:var(--max-height);pointer-events:auto;-webkit-animation:panelShowing .1s ease;animation:panelShowing .1s ease;border:1px solid var(--color-border)}@media (max-width: 650px){.ce-popover--opened{-webkit-animation:panelShowingMobile .25s ease;animation:panelShowingMobile .25s ease}}.ce-popover__items{overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:contain}@media (max-width: 650px){.ce-popover__overlay{position:fixed;top:0;bottom:0;left:0;right:0;background:#1D202B;z-index:3;opacity:.5;-webkit-transition:opacity .12s ease-in;transition:opacity .12s ease-in;will-change:opacity;visibility:visible}}.ce-popover__overlay--hidden{display:none}.ce-popover--open-top{top:calc(-1 * (var(--offset-from-target) + var(--popover-height)))}@media (max-width: 650px){.ce-popover{--offset: 5px;position:fixed;max-width:none;min-width:calc(100% - var(--offset) * 2);left:var(--offset);right:var(--offset);bottom:calc(var(--offset) + env(safe-area-inset-bottom));top:auto;border-radius:10px}.ce-popover .ce-popover__search{display:none}}.ce-popover__search,.ce-popover__custom-content:not(:empty){margin-bottom:5px}.ce-popover__nothing-found-message{color:#707684;display:none;cursor:default;padding:3px;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ce-popover__nothing-found-message--displayed{display:block}.ce-popover__custom-content:not(:empty){padding:4px}@media (min-width: 651px){.ce-popover__custom-content:not(:empty){padding:0}}.ce-popover__custom-content--hidden{display:none}.ce-popover-item{--border-radius: 6px;--icon-size: 20px;--icon-size-mobile: 28px;border-radius:var(--border-radius);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:3px;color:var(--color-text-primary);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media (max-width: 650px){.ce-popover-item{padding:4px}}.ce-popover-item:not(:last-of-type){margin-bottom:1px}.ce-popover-item__icon{border-radius:5px;width:26px;height:26px;-webkit-box-shadow:0 0 0 1px var(--color-border-icon);box-shadow:0 0 0 1px var(--color-border-icon);background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:10px}.ce-popover-item__icon svg{width:20px;height:20px}@media (max-width: 650px){.ce-popover-item__icon{width:36px;height:36px;border-radius:8px}.ce-popover-item__icon svg{width:var(--icon-size-mobile);height:var(--icon-size-mobile)}}.ce-popover-item__title{font-size:14px;line-height:20px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media (max-width: 650px){.ce-popover-item__title{font-size:16px}}.ce-popover-item__secondary-title{color:var(--color-text-secondary);font-size:12px;margin-left:auto;white-space:nowrap;letter-spacing:-.1em;padding-right:5px;margin-bottom:-2px;opacity:.6}@media (max-width: 650px){.ce-popover-item__secondary-title{display:none}}.ce-popover-item--active{background:var(--color-background-icon-active);color:var(--color-text-icon-active)}.ce-popover-item--active .ce-popover-item__icon{-webkit-box-shadow:none;box-shadow:none}.ce-popover-item--disabled{color:var(--color-text-secondary);cursor:default;pointer-events:none}.ce-popover-item--disabled .ce-popover-item__icon{-webkit-box-shadow:0 0 0 1px var(--color-border-icon-disabled);box-shadow:0 0 0 1px var(--color-border-icon-disabled)}.ce-popover-item--focused:not(.ce-popover-item--no-focus){background:var(--color-background-item-focus)!important}.ce-popover-item--focused:not(.ce-popover-item--no-focus){-webkit-box-shadow:inset 0 0 0px 1px var(--color-shadow-item-focus);box-shadow:inset 0 0 0 1px var(--color-shadow-item-focus)}.ce-popover-item--hidden{display:none}@media (hover: hover){.ce-popover-item:hover{cursor:pointer}.ce-popover-item:hover:not(.ce-popover-item--no-hover){background-color:var(--color-background-item-hover)}.ce-popover-item:hover .ce-popover-item__icon{-webkit-box-shadow:none;box-shadow:none}}.ce-popover-item--confirmation{background:var(--color-background-item-confirm)}.ce-popover-item--confirmation .ce-popover-item__icon{color:var(--color-background-item-confirm)}.ce-popover-item--confirmation .ce-popover-item__title{color:#fff}@media (hover: hover){.ce-popover-item--confirmation:not(.ce-popover-item--no-hover):hover{background:var(--color-background-item-confirm-hover)}}.ce-popover-item--confirmation:not(.ce-popover-item--no-focus).ce-popover-item--focused{background:var(--color-background-item-confirm-hover)!important}.ce-popover-item--confirmation .ce-popover-item__icon,.ce-popover-item--active .ce-popover-item__icon,.ce-popover-item--focused .ce-popover-item__icon{-webkit-box-shadow:none;box-shadow:none}@-webkit-keyframes panelShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes panelShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes panelShowingMobile{0%{opacity:0;-webkit-transform:translateY(14px) scale(.98);transform:translateY(14px) scale(.98)}70%{opacity:1;-webkit-transform:translateY(-4px);transform:translateY(-4px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes panelShowingMobile{0%{opacity:0;-webkit-transform:translateY(14px) scale(.98);transform:translateY(14px) scale(.98)}70%{opacity:1;-webkit-transform:translateY(-4px);transform:translateY(-4px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble;-webkit-animation-duration:.4s;animation-duration:.4s}@-webkit-keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-9%,0,0);transform:translate3d(-9%,0,0)}30%{-webkit-transform:translate3d(9%,0,0);transform:translate3d(9%,0,0)}45%{-webkit-transform:translate3d(-4%,0,0);transform:translate3d(-4%,0,0)}60%{-webkit-transform:translate3d(4%,0,0);transform:translate3d(4%,0,0)}75%{-webkit-transform:translate3d(-1%,0,0);transform:translate3d(-1%,0,0)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-9%,0,0);transform:translate3d(-9%,0,0)}30%{-webkit-transform:translate3d(9%,0,0);transform:translate3d(9%,0,0)}45%{-webkit-transform:translate3d(-4%,0,0);transform:translate3d(-4%,0,0)}60%{-webkit-transform:translate3d(4%,0,0);transform:translate3d(4%,0,0)}75%{-webkit-transform:translate3d(-1%,0,0);transform:translate3d(-1%,0,0)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}} +`;class vi extends B{constructor(){super(...arguments),this.isMobile=!1,this.contentRectCache=void 0,this.resizeDebouncer=We(()=>{this.windowResize()},200)}get CSS(){return{editorWrapper:"codex-editor",editorWrapperNarrow:"codex-editor--narrow",editorZone:"codex-editor__redactor",editorZoneHidden:"codex-editor__redactor--hidden",editorLoader:"codex-editor__loader",editorEmpty:"codex-editor--empty",editorRtlFix:"codex-editor--rtl"}}get contentRect(){if(this.contentRectCache)return this.contentRectCache;const t=this.nodes.wrapper.querySelector(`.${F.CSS.content}`);return t?(this.contentRectCache=t.getBoundingClientRect(),this.contentRectCache):{width:650,left:0,right:0}}addLoader(){this.nodes.loader=d.make("div",this.CSS.editorLoader),this.nodes.wrapper.prepend(this.nodes.loader),this.nodes.redactor.classList.add(this.CSS.editorZoneHidden)}removeLoader(){this.nodes.loader.remove(),this.nodes.redactor.classList.remove(this.CSS.editorZoneHidden)}async prepare(){this.checkIsMobile(),this.make(),this.addLoader(),this.loadStyles()}toggleReadOnly(t){t?this.disableModuleBindings():this.enableModuleBindings()}checkEmptiness(){const{BlockManager:t}=this.Editor;this.nodes.wrapper.classList.toggle(this.CSS.editorEmpty,t.isEditorEmpty)}get someToolbarOpened(){const{Toolbar:t,BlockSettings:e,InlineToolbar:o,ConversionToolbar:i}=this.Editor;return e.opened||o.opened||i.opened||t.toolbox.opened}get someFlipperButtonFocused(){return this.Editor.Toolbar.toolbox.hasFocus()?!0:Object.entries(this.Editor).filter(([t,e])=>e.flipper instanceof G).some(([t,e])=>e.flipper.hasFocus())}destroy(){this.nodes.holder.innerHTML=""}closeAllToolbars(){const{Toolbar:t,BlockSettings:e,InlineToolbar:o,ConversionToolbar:i}=this.Editor;e.close(),o.close(),i.close(),t.toolbox.close()}checkIsMobile(){this.isMobile=window.innerWidth{this.redactorClicked(t)},!1),this.readOnlyMutableListeners.on(this.nodes.redactor,"mousedown",t=>{this.documentTouched(t)},!0),this.readOnlyMutableListeners.on(this.nodes.redactor,"touchstart",t=>{this.documentTouched(t)},!0),this.readOnlyMutableListeners.on(document,"keydown",t=>{this.documentKeydown(t)},!0),this.readOnlyMutableListeners.on(document,"mousedown",t=>{this.documentClicked(t)},!0),this.readOnlyMutableListeners.on(document,"selectionchange",()=>{this.selectionChanged()},!0),this.readOnlyMutableListeners.on(window,"resize",()=>{this.resizeDebouncer()},{passive:!0}),this.watchBlockHoveredEvents()}watchBlockHoveredEvents(){let t;this.readOnlyMutableListeners.on(this.nodes.redactor,"mousemove",Bt(e=>{const o=e.target.closest(".ce-block");this.Editor.BlockSelection.anyBlockSelected||o&&t!==o&&(t=o,this.eventsDispatcher.emit(ve,{block:this.Editor.BlockManager.getBlockByChildNode(o)}))},20),{passive:!0})}disableModuleBindings(){this.readOnlyMutableListeners.clearAll()}windowResize(){this.contentRectCache=null,this.checkIsMobile()}documentKeydown(t){switch(t.keyCode){case E.ENTER:this.enterPressed(t);break;case E.BACKSPACE:this.backspacePressed(t);break;case E.ESC:this.escapePressed(t);break;default:this.defaultBehaviour(t);break}}defaultBehaviour(t){const{currentBlock:e}=this.Editor.BlockManager,o=t.target.closest(`.${this.CSS.editorWrapper}`),i=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;if(e!==void 0&&o===null){this.Editor.BlockEvents.keydown(t);return}o||e&&i||(this.Editor.BlockManager.dropPointer(),this.Editor.Toolbar.close())}backspacePressed(t){const{BlockManager:e,BlockSelection:o,Caret:i}=this.Editor;if(o.anyBlockSelected&&!b.isSelectionExists){const n=e.removeSelectedBlocks();i.setToBlock(e.insertDefaultBlockAtIndex(n,!0),i.positions.START),o.clearSelection(t),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()}}escapePressed(t){this.Editor.BlockSelection.clearSelection(t),this.Editor.Toolbar.toolbox.opened?(this.Editor.Toolbar.toolbox.close(),this.Editor.Caret.setToBlock(this.Editor.BlockManager.currentBlock)):this.Editor.BlockSettings.opened?this.Editor.BlockSettings.close():this.Editor.ConversionToolbar.opened?this.Editor.ConversionToolbar.close():this.Editor.InlineToolbar.opened?this.Editor.InlineToolbar.close():this.Editor.Toolbar.close()}enterPressed(t){const{BlockManager:e,BlockSelection:o}=this.Editor,i=e.currentBlockIndex>=0;if(o.anyBlockSelected&&!b.isSelectionExists){o.clearSelection(t),t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation();return}if(!this.someToolbarOpened&&i&&t.target.tagName==="BODY"){const n=this.Editor.BlockManager.insert();this.Editor.Caret.setToBlock(n),this.Editor.BlockManager.highlightCurrentNode(),this.Editor.Toolbar.moveAndOpen(n)}this.Editor.BlockSelection.clearSelection(t)}documentClicked(t){if(!t.isTrusted)return;const e=t.target;this.nodes.holder.contains(e)||b.isAtEditor||(this.Editor.BlockManager.dropPointer(),this.Editor.Toolbar.close());const o=this.Editor.BlockSettings.nodes.wrapper.contains(e),i=this.Editor.Toolbar.nodes.settingsToggler.contains(e),n=o||i;if(this.Editor.BlockSettings.opened&&!n){this.Editor.BlockSettings.close();const r=this.Editor.BlockManager.getBlockByChildNode(e);this.Editor.Toolbar.moveAndOpen(r)}this.Editor.BlockSelection.clearSelection(t)}documentTouched(t){let e=t.target;if(e===this.nodes.redactor){const o=t instanceof MouseEvent?t.clientX:t.touches[0].clientX,i=t instanceof MouseEvent?t.clientY:t.touches[0].clientY;e=document.elementFromPoint(o,i)}try{this.Editor.BlockManager.setCurrentBlockByChildNode(e),this.Editor.BlockManager.highlightCurrentNode()}catch{this.Editor.RectangleSelection.isRectActivated()||this.Editor.Caret.setToTheLastBlock()}this.Editor.Toolbar.moveAndOpen()}redactorClicked(t){const{BlockSelection:e}=this.Editor;if(!b.isCollapsed)return;const o=()=>{t.stopImmediatePropagation(),t.stopPropagation()},i=t.target,n=t.metaKey||t.ctrlKey;if(d.isAnchor(i)&&n){o();const c=i.getAttribute("href"),p=Xe(c);Ze(p);return}const r=this.Editor.BlockManager.getBlockByIndex(-1),a=d.offset(r.holder).bottom,l=t.pageY;if(t.target instanceof Element&&t.target.isEqualNode(this.nodes.redactor)&&!e.anyBlockSelected&&a{e=i,o=n}),Promise.resolve().then(async()=>{this.configuration=t,await this.validate(),await this.init(),await this.start(),K("I'm ready! (ノ◕ヮ◕)ノ*:・゚✧","log","","color: #E24A75"),setTimeout(async()=>{if(await this.render(),this.configuration.autofocus){const{BlockManager:i,Caret:n}=this.moduleInstances;n.setToBlock(i.blocks[0],n.positions.START),i.highlightCurrentNode()}this.moduleInstances.UI.removeLoader(),e()},500)}).catch(i=>{T(`Editor.js is not ready because of ${i}`,"error"),o(i)})}set configuration(t){var e,o;z(t)?this.config={...t}:this.config={holder:t},Mt(!!this.config.holderId,"config.holderId","config.holder"),this.config.holderId&&!this.config.holder&&(this.config.holder=this.config.holderId,this.config.holderId=null),this.config.holder==null&&(this.config.holder="editorjs"),this.config.logLevel||(this.config.logLevel=oe.VERBOSE),ze(this.config.logLevel),Mt(!!this.config.initialBlock,"config.initialBlock","config.defaultBlock"),this.config.defaultBlock=this.config.defaultBlock||this.config.initialBlock||"paragraph",this.config.minHeight=this.config.minHeight!==void 0?this.config.minHeight:300;const i={type:this.config.defaultBlock,data:{}};this.config.placeholder=this.config.placeholder||!1,this.config.sanitizer=this.config.sanitizer||{p:!0,b:!0,a:!0},this.config.hideToolbar=this.config.hideToolbar?this.config.hideToolbar:!1,this.config.tools=this.config.tools||{},this.config.i18n=this.config.i18n||{},this.config.data=this.config.data||{blocks:[]},this.config.onReady=this.config.onReady||(()=>{}),this.config.onChange=this.config.onChange||(()=>{}),this.config.inlineToolbar=this.config.inlineToolbar!==void 0?this.config.inlineToolbar:!0,(V(this.config.data)||!this.config.data.blocks||this.config.data.blocks.length===0)&&(this.config.data={blocks:[i]}),this.config.readOnly=this.config.readOnly||!1,(e=this.config.i18n)!=null&&e.messages&&$.setDictionary(this.config.i18n.messages),this.config.i18n.direction=((o=this.config.i18n)==null?void 0:o.direction)||"ltr"}get configuration(){return this.config}async validate(){const{holderId:t,holder:e}=this.config;if(t&&e)throw Error("«holderId» and «holder» param can't assign at the same time.");if(J(e)&&!d.get(e))throw Error(`element with ID «${e}» is missing. Pass correct holder's ID.`);if(e&&z(e)&&!d.isElement(e))throw Error("«holder» value must be an Element node")}init(){this.constructModules(),this.configureModules()}async start(){await["Tools","UI","BlockManager","Paste","BlockSelection","RectangleSelection","CrossBlockSelection","ReadOnly"].reduce((t,e)=>t.then(async()=>{try{await this.moduleInstances[e].prepare()}catch(o){if(o instanceof ce)throw new Error(o.message);T(`Module ${e} was skipped because of %o`,"warn",o)}}),Promise.resolve())}render(){return this.moduleInstances.Renderer.render(this.config.data.blocks)}constructModules(){Object.entries(xi).forEach(([t,e])=>{try{this.moduleInstances[t]=new e({config:this.configuration,eventsDispatcher:this.eventsDispatcher})}catch(o){T("[constructModules]",`Module ${t} skipped because`,"error",o)}})}configureModules(){for(const t in this.moduleInstances)Object.prototype.hasOwnProperty.call(this.moduleInstances,t)&&(this.moduleInstances[t].state=this.getModulesDiff(t))}getModulesDiff(t){const e={};for(const o in this.moduleInstances)o!==t&&(e[o]=this.moduleInstances[o]);return e}}/** + * Editor.js + * + * @license Apache-2.0 + * @see Editor.js + * @author CodeX Team + */class yi{static get version(){return"2.27.2"}constructor(t){let e=()=>{};z(t)&&D(t.onReady)&&(e=t.onReady);const o=new wi(t);this.isReady=o.isReady.then(()=>{this.exportAPI(o),e()})}exportAPI(t){const e=["configuration"],o=()=>{Object.values(t.moduleInstances).forEach(i=>{D(i.destroy)&&i.destroy(),i.listeners.removeAll()}),t=null;for(const i in this)Object.prototype.hasOwnProperty.call(this,i)&&delete this[i];Object.setPrototypeOf(this,null)};e.forEach(i=>{this[i]=t[i]}),this.destroy=o,Object.setPrototypeOf(this,t.moduleInstances.API.methods),delete this.exportAPI,Object.entries({blocks:{clear:"clear",render:"render"},caret:{focus:"focus"},events:{on:"on",off:"off",emit:"emit"},saver:{save:"save"}}).forEach(([i,n])=>{Object.entries(n).forEach(([r,a])=>{this[a]=t.moduleInstances.API.methods[i][r]})})}}const Tt={header:Zt(()=>import("./bundle-94bef551.js").then(s=>s.b),["assets/bundle-94bef551.js","assets/admin-app-0df052b8.js","assets/index-8746c87e.js","assets/admin-app-935fc652.css"]),list:Zt(()=>import("./bundle-43b5b4d7.js").then(s=>s.b),["assets/bundle-43b5b4d7.js","assets/admin-app-0df052b8.js","assets/index-8746c87e.js","assets/admin-app-935fc652.css"])},Ei=Oe({name:"vue-editor-js",props:{holder:{type:String,default:()=>"vue-editor-js",require:!0},config:{type:Object,default:()=>({}),require:!0},initialized:{type:Function,default:()=>{}}},setup:(s,t)=>{const e=Re({editor:null});function o(r){i(),e.editor=new yi({holder:r.holder||"vue-editor-js",...r.config,onChange:(a,l)=>{n()}}),r.initialized(e.editor)}function i(){e.editor&&(e.editor.destroy(),e.editor=null)}function n(){console.log("saveEditor"),e.editor&&e.editor.save().then(r=>{console.log(r),t.emit("saved",r)})}return De(r=>o(s)),{props:s,state:e}},methods:{useTools(s,t){const e=Object.keys(Tt),o={...s.customTools};return e.every(i=>!s[i])?(e.forEach(i=>o[i]={class:Tt[i]}),Object.keys(t).forEach(i=>{o[i]!==void 0&&o[i]!==null&&(o[i].config=t[i])}),o):(e.forEach(i=>{const n=s[i];if(n&&(o[i]={class:Tt[i]},typeof n=="object")){const r=Object.assign({},s[i]);delete r.class,o[i]=Object.assign(o[i],r)}}),Object.keys(t).forEach(i=>{o[i]!==void 0&&o[i]!==null&&(o[i].config=t[i])}),o)}}}),Si=["id"];function Ci(s,t,e,o,i,n){return Pe(),Ne("div",{id:s.holder},null,8,Si)}const Ii=Le(Ei,[["render",Ci]]);export{Tt as PLUGINS,Ii as default}; diff --git a/public/build/assets/admin-app-0df052b8.js b/public/build/assets/admin-app-0df052b8.js new file mode 100644 index 0000000..785019c --- /dev/null +++ b/public/build/assets/admin-app-0df052b8.js @@ -0,0 +1,17 @@ +import{P as of,c as af}from"./index-8746c87e.js";const qp="modulepreload",zp=function(t){return"/build/"+t},cu={},Dr=function(e,n,s){if(!n||n.length===0)return e();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=zp(i),i in cu)return;cu[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!s)for(let c=r.length-1;c>=0;c--){const f=r[c];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":qp,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var xs=new Map;function Yp(t){var e=xs.get(t);e&&e.destroy()}function Gp(t){var e=xs.get(t);e&&e.update()}var Fs=null;typeof window>"u"?((Fs=function(t){return t}).destroy=function(t){return t},Fs.update=function(t){return t}):((Fs=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],function(n){return function(s){if(s&&s.nodeName&&s.nodeName==="TEXTAREA"&&!xs.has(s)){var r,i=null,o=window.getComputedStyle(s),a=(r=s.value,function(){u({testForHeightReduction:r===""||!s.value.startsWith(r),restoreTextAlign:null}),r=s.value}),l=(function(f){s.removeEventListener("autosize:destroy",l),s.removeEventListener("autosize:update",c),s.removeEventListener("input",a),window.removeEventListener("resize",c),Object.keys(f).forEach(function(m){return s.style[m]=f[m]}),xs.delete(s)}).bind(s,{height:s.style.height,resize:s.style.resize,textAlign:s.style.textAlign,overflowY:s.style.overflowY,overflowX:s.style.overflowX,wordWrap:s.style.wordWrap});s.addEventListener("autosize:destroy",l),s.addEventListener("autosize:update",c),s.addEventListener("input",a),window.addEventListener("resize",c),s.style.overflowX="hidden",s.style.wordWrap="break-word",xs.set(s,{destroy:l,update:c}),c()}function u(f){var m,E,p=f.restoreTextAlign,h=p===void 0?null:p,y=f.testForHeightReduction,d=y===void 0||y,_=o.overflowY;if(s.scrollHeight!==0&&(o.resize==="vertical"?s.style.resize="none":o.resize==="both"&&(s.style.resize="horizontal"),d&&(m=function(g){for(var T=[];g&&g.parentNode&&g.parentNode instanceof Element;)g.parentNode.scrollTop&&T.push([g.parentNode,g.parentNode.scrollTop]),g=g.parentNode;return function(){return T.forEach(function(O){var S=O[0],b=O[1];S.style.scrollBehavior="auto",S.scrollTop=b,S.style.scrollBehavior=null})}}(s),s.style.height=""),E=o.boxSizing==="content-box"?s.scrollHeight-(parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)):s.scrollHeight+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),o.maxHeight!=="none"&&E>parseFloat(o.maxHeight)?(o.overflowY==="hidden"&&(s.style.overflow="scroll"),E=parseFloat(o.maxHeight)):o.overflowY!=="hidden"&&(s.style.overflow="hidden"),s.style.height=E+"px",h&&(s.style.textAlign=h),m&&m(),i!==E&&(s.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=E),_!==o.overflow&&!h)){var v=o.textAlign;o.overflow==="hidden"&&(s.style.textAlign=v==="start"?"end":"start"),u({restoreTextAlign:v,testForHeightReduction:!0})}}function c(){u({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],Yp),t},Fs.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],Gp),t});var Jp=Fs;const fu=document.querySelectorAll('[data-bs-toggle="autosize"]');fu.length&&fu.forEach(function(t){Jp(t)});function rs(t,e){if(t==null)return{};var n={},s=Object.keys(t),r,i;for(i=0;i=0)&&(n[r]=t[r]);return n}function te(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new te.InputMask(t,e)}class ge{constructor(e){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},e)}aggregate(e){return this.rawInserted+=e.rawInserted,this.skip=this.skip||e.skip,this.inserted+=e.inserted,this.tailShift+=e.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}te.ChangeDetails=ge;function Jn(t){return typeof t=="string"||t instanceof String}const z={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Xp(t){switch(t){case z.LEFT:return z.FORCE_LEFT;case z.RIGHT:return z.FORCE_RIGHT;default:return t}}function To(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function qs(t){return Array.isArray(t)?t:[t,new ge]}function fi(t,e){if(e===t)return!0;var n=Array.isArray(e),s=Array.isArray(t),r;if(n&&s){if(e.length!=t.length)return!1;for(r=0;r0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2?arguments[2]:void 0;this.value=e,this.from=n,this.stop=s}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return"";const n=this.value[0];return this.value=this.value.slice(1),n}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class Ve{constructor(e){this._value="",this._update(Object.assign({},Ve.DEFAULTS,e)),this.isInitialized=!0}updateOptions(e){Object.keys(e).length&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e)}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{input:!0};return this.reset(),this.append(e,n,""),this.doCommit(),this.value}get unmaskedValue(){return this.value}set unmaskedValue(e){this.reset(),this.append(e,{},""),this.doCommit()}get typedValue(){return this.doParse(this.value)}set typedValue(e){this.value=this.doFormat(e)}get rawInputValue(){return this.extractInput(0,this.value.length,{raw:!0})}set rawInputValue(e){this.reset(),this.append(e,{raw:!0},""),this.doCommit()}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,n){return e}totalInputPositions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return Math.min(this.value.length,n-e)}extractInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this.value.slice(e,n)}extractTail(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return new wt(this.extractInput(e,n),e)}appendTail(e){return Jn(e)&&(e=new wt(String(e))),e.appendTo(this)}_appendCharRaw(e){return e?(this._value+=e,new ge({inserted:e,rawInserted:e})):new ge}_appendChar(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;const r=this.state;let i;if([e,i]=qs(this.doPrepare(e,n)),i=i.aggregate(this._appendCharRaw(e,n)),i.inserted){let o,a=this.doValidate(n)!==!1;if(a&&s!=null){const l=this.state;this.overwrite===!0&&(o=s.state,s.unshift(this.value.length-i.tailShift));let u=this.appendTail(s);a=u.rawInserted===s.toString(),!(a&&u.inserted)&&this.overwrite==="shift"&&(this.state=l,o=s.state,s.shift(),u=this.appendTail(s),a=u.rawInserted===s.toString()),a&&u.inserted&&(this.state=l)}a||(i=new ge,this.state=r,s&&o&&(s.state=o))}return i}_appendPlaceholder(){return new ge}_appendEager(){return new ge}append(e,n,s){if(!Jn(e))throw new Error("value should be string");const r=new ge,i=Jn(s)?new wt(String(s)):s;n!=null&&n.tail&&(n._beforeTailState=this.state);for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this._value=this.value.slice(0,e)+this.value.slice(n),new ge}withValueRefresh(e){if(this._refreshing||!this.isInitialized)return e();this._refreshing=!0;const n=this.rawInputValue,s=this.value,r=e();return this.rawInputValue=n,this.value&&this.value!==s&&s.indexOf(this.value)===0&&this.append(s.slice(this.value.length),{},""),delete this._refreshing,r}runIsolated(e){if(this._isolated||!this.isInitialized)return e(this);this._isolated=!0;const n=this.state,s=e(this);return this.state=n,delete this._isolated,s}doSkipInvalid(e){return this.skipInvalid}doPrepare(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.prepare?this.prepare(e,this,n):e}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}doFormat(e){return this.format?this.format(e,this):e}doParse(e){return this.parse?this.parse(e,this):e}splice(e,n,s,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{input:!0};const o=e+n,a=this.extractTail(o),l=this.eager===!0||this.eager==="remove";let u;l&&(r=Xp(r),u=this.extractInput(0,o,{raw:!0}));let c=e;const f=new ge;if(r!==z.NONE&&(c=this.nearestInputPos(e,n>1&&e!==0&&!l?z.NONE:r),f.tailShift=c-e),f.aggregate(this.remove(c)),l&&r!==z.NONE&&u===this.rawInputValue)if(r===z.FORCE_LEFT){let m;for(;u===this.rawInputValue&&(m=this.value.length);)f.aggregate(new ge({tailShift:-1})).aggregate(this.remove(m-1))}else r===z.FORCE_RIGHT&&a.unshift();return f.aggregate(this.append(s,i,a))}maskEquals(e){return this.mask===e}typedValueEquals(e){const n=this.typedValue;return e===n||Ve.EMPTY_VALUES.includes(e)&&Ve.EMPTY_VALUES.includes(n)||this.doFormat(e)===this.doFormat(this.typedValue)}}Ve.DEFAULTS={format:String,parse:t=>t,skipInvalid:!0};Ve.EMPTY_VALUES=[void 0,null,""];te.Masked=Ve;function lf(t){if(t==null)throw new Error("mask property should be defined");return t instanceof RegExp?te.MaskedRegExp:Jn(t)?te.MaskedPattern:t instanceof Date||t===Date?te.MaskedDate:t instanceof Number||typeof t=="number"||t===Number?te.MaskedNumber:Array.isArray(t)||t===Array?te.MaskedDynamic:te.Masked&&t.prototype instanceof te.Masked?t:t instanceof te.Masked?t.constructor:t instanceof Function?te.MaskedFunction:(console.warn("Mask not found for mask",t),te.Masked)}function Sn(t){if(te.Masked&&t instanceof te.Masked)return t;t=Object.assign({},t);const e=t.mask;if(te.Masked&&e instanceof te.Masked)return e;const n=lf(e);if(!n)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new n(t)}te.createMask=Sn;const Qp=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],eg={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class uf{constructor(e){const{parent:n,isOptional:s,placeholderChar:r,displayChar:i,lazy:o,eager:a}=e,l=rs(e,Qp);this.masked=Sn(l),Object.assign(this,{parent:n,isOptional:s,placeholderChar:r,displayChar:i,lazy:o,eager:a})}reset(){this.isFilled=!1,this.masked.reset()}remove(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return e===0&&n>=1?(this.isFilled=!1,this.masked.remove(e,n)):new ge}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.isFilled)return new ge;const s=this.masked.state,r=this.masked._appendChar(e,n);return r.inserted&&this.doValidate(n)===!1&&(r.inserted=r.rawInserted="",this.masked.state=s),!r.inserted&&!this.isOptional&&!this.lazy&&!n.input&&(r.inserted=this.placeholderChar),r.skip=!r.inserted&&!this.isOptional,this.isFilled=!!r.inserted,r}append(){return this.masked.append(...arguments)}_appendPlaceholder(){const e=new ge;return this.isFilled||this.isOptional||(this.isFilled=!0,e.inserted=this.placeholderChar),e}_appendEager(){return new ge}extractTail(){return this.masked.extractTail(...arguments)}appendTail(){return this.masked.appendTail(...arguments)}extractInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,s=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(e,n,s)}nearestInputPos(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z.NONE;const s=0,r=this.value.length,i=Math.min(Math.max(e,s),r);switch(n){case z.LEFT:case z.FORCE_LEFT:return this.isComplete?i:s;case z.RIGHT:case z.FORCE_RIGHT:return this.isComplete?i:r;case z.NONE:default:return i}}totalInputPositions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this.value.slice(e,n).length}doValidate(){return this.masked.doValidate(...arguments)&&(!this.parent||this.parent.doValidate(...arguments))}doCommit(){this.masked.doCommit()}get state(){return{masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}}class cf{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return this._value=this._value.slice(0,e)+this._value.slice(n),this._value||(this._isRawInput=!1),new ge}nearestInputPos(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z.NONE;const s=0,r=this._value.length;switch(n){case z.LEFT:case z.FORCE_LEFT:return s;case z.NONE:case z.RIGHT:case z.FORCE_RIGHT:default:return r}}totalInputPositions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return this._isRawInput?n-e:0}extractInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(e,n)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=new ge;if(this.isFilled)return s;const r=this.eager===!0||this.eager==="append",o=this.char===e&&(this.isUnmasking||n.input||n.raw)&&(!n.raw||!r)&&!n.tail;return o&&(s.rawInserted=this.char),this._value=s.inserted=this.char,this._isRawInput=o&&(n.raw||n.input),s}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new ge;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,new wt("")}appendTail(e){return Jn(e)&&(e=new wt(String(e))),e.appendTo(this)}append(e,n,s){const r=this._appendChar(e[0],n);return s!=null&&(r.tailShift+=this.appendTail(s).tailShift),r}doCommit(){}get state(){return{_value:this._value,_isRawInput:this._isRawInput}}set state(e){Object.assign(this,e)}}const tg=["chunks"];class gn{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.chunks=e,this.from=n}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;Jn(e)&&(e=new wt(String(e)));const n=this.chunks[this.chunks.length-1],s=n&&(n.stop===e.stop||e.stop==null)&&e.from===n.from+n.toString().length;if(e instanceof wt)s?n.extend(e.toString()):this.chunks.push(e);else if(e instanceof gn){if(e.stop==null){let r;for(;e.chunks.length&&e.chunks[0].stop==null;)r=e.chunks.shift(),r.from+=e.from,this.extend(r)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof te.MaskedPattern))return new wt(this.toString()).appendTo(e);const n=new ge;for(let s=0;s=0){const l=e._appendPlaceholder(o);n.aggregate(l)}a=r instanceof gn&&e._blocks[o]}if(a){const l=a.appendTail(r);l.skip=!1,n.aggregate(l),e._value+=l.inserted;const u=r.toString().slice(l.rawInserted.length);u&&n.aggregate(e.append(u,{tail:!0}))}else n.aggregate(e.append(r.toString(),{tail:!0}))}return n}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:n}=e,s=rs(e,tg);Object.assign(this,s),this.chunks=n.map(r=>{const i="chunks"in r?new gn:new wt;return i.state=r,i})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const n=e!=null?e-this.from:e;let s=0;for(;s=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((n=this.block)===null||n===void 0?void 0:n.value.length)||0){var n;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,z.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,z.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,z.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,z.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,z.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,z.NONE),!0})}}class sg extends Ve{_update(e){e.mask&&(e.validate=n=>n.search(e.mask)>=0),super._update(e)}}te.MaskedRegExp=sg;const rg=["_blocks"];class Ye extends Ve{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.definitions=Object.assign({},eg,e.definitions),super(Object.assign({},Ye.DEFAULTS,e))}_update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};let n=this.mask;if(!n||!e)return;let s=!1,r=!1;for(let a=0;am.indexOf(h)===0);E.sort((h,y)=>y.length-h.length);const p=E[0];if(p){const h=Sn(Object.assign({parent:this,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite},this.blocks[p]));h&&(this._blocks.push(h),this._maskedBlocks[p]||(this._maskedBlocks[p]=[]),this._maskedBlocks[p].push(this._blocks.length-1)),a+=p.length-1;continue}}let l=n[a],u=l in e;if(l===Ye.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(l==="{"||l==="}"){s=!s;continue}if(l==="["||l==="]"){r=!r;continue}if(l===Ye.ESCAPE_CHAR){if(++a,l=n[a],!l)break;u=!1}const c=(i=e[l])!==null&&i!==void 0&&i.mask&&!(((o=e[l])===null||o===void 0?void 0:o.mask.prototype)instanceof te.Masked)?e[l]:{mask:e[l]},f=u?new uf(Object.assign({parent:this,isOptional:r,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},c)):new cf({char:l,eager:this.eager,isUnmasking:s});this._blocks.push(f)}}get state(){return Object.assign({},super.state,{_blocks:this._blocks.map(e=>e.state)})}set state(e){const{_blocks:n}=e,s=rs(e,rg);this._blocks.forEach((r,i)=>r.state=n[i]),super.state=s}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this._blocks.reduce((e,n)=>e+=n.unmaskedValue,"")}set unmaskedValue(e){super.unmaskedValue=e}get value(){return this._blocks.reduce((e,n)=>e+=n.value,"")}set value(e){super.value=e}get displayValue(){return this._blocks.reduce((e,n)=>e+=n.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const n=new ge;let s=(e=this._mapPosToBlock(this.value.length))===null||e===void 0?void 0:e.index;if(s==null)return n;this._blocks[s].isFilled&&++s;for(let r=s;r1&&arguments[1]!==void 0?arguments[1]:{};const s=this._mapPosToBlock(this.value.length),r=new ge;if(!s)return r;for(let a=s.index;;++a){var i,o;const l=this._blocks[a];if(!l)break;const u=l._appendChar(e,Object.assign({},n,{_beforeTailState:(i=n._beforeTailState)===null||i===void 0||(o=i._blocks)===null||o===void 0?void 0:o[a]})),c=u.skip;if(r.aggregate(u),c||u.rawInserted)break}return r}extractTail(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;const s=new gn;return e===n||this._forEachBlocksInRange(e,n,(r,i,o,a)=>{const l=r.extractTail(o,a);l.stop=this._findStopBefore(i),l.from=this._blockStartPos(i),l instanceof gn&&(l.blockIndex=i),s.extend(l)}),s}extractInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e===n)return"";let r="";return this._forEachBlocksInRange(e,n,(i,o,a,l)=>{r+=i.extractInput(a,l,s)}),r}_findStopBefore(e){let n;for(let s=0;s{if(!o.lazy||e!=null){const a=o._blocks!=null?[o._blocks.length]:[],l=o._appendPlaceholder(...a);this._value+=l.inserted,n.aggregate(l)}}),n}_mapPosToBlock(e){let n="";for(let s=0;sn+=s.value.length,0)}_forEachBlocksInRange(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,s=arguments.length>2?arguments[2]:void 0;const r=this._mapPosToBlock(e);if(r){const i=this._mapPosToBlock(n),o=i&&r.index===i.index,a=r.offset,l=i&&o?i.offset:this._blocks[r.index].value.length;if(s(this._blocks[r.index],r.index,a,l),i&&!o){for(let u=r.index+1;u0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;const s=super.remove(e,n);return this._forEachBlocksInRange(e,n,(r,i,o,a)=>{s.aggregate(r.remove(o,a))}),s}nearestInputPos(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z.NONE;if(!this._blocks.length)return 0;const s=new ng(this,e);if(n===z.NONE)return s.pushRightBeforeInput()||(s.popState(),s.pushLeftBeforeInput())?s.pos:this.value.length;if(n===z.LEFT||n===z.FORCE_LEFT){if(n===z.LEFT){if(s.pushRightBeforeFilled(),s.ok&&s.pos===e)return e;s.popState()}if(s.pushLeftBeforeInput(),s.pushLeftBeforeRequired(),s.pushLeftBeforeFilled(),n===z.LEFT){if(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.ok&&s.pos<=e||(s.popState(),s.ok&&s.pos<=e))return s.pos;s.popState()}return s.ok?s.pos:n===z.FORCE_LEFT?0:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:0)}return n===z.RIGHT||n===z.FORCE_RIGHT?(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.pushRightBeforeFilled()?s.pos:n===z.FORCE_RIGHT?this.value.length:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:this.nearestInputPos(e,z.LEFT))):e}totalInputPositions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,s=0;return this._forEachBlocksInRange(e,n,(r,i,o,a)=>{s+=r.totalInputPositions(o,a)}),s}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const n=this._maskedBlocks[e];return n?n.map(s=>this._blocks[s]):[]}}Ye.DEFAULTS={lazy:!0,placeholderChar:"_"};Ye.STOP_CHAR="`";Ye.ESCAPE_CHAR="\\";Ye.InputDefinition=uf;Ye.FixedDefinition=cf;te.MaskedPattern=Ye;class Zr extends Ye{get _matchFrom(){return this.maxLength-String(this.from).length}_update(e){e=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},e);let n=String(e.to).length;e.maxLength!=null&&(n=Math.max(n,e.maxLength)),e.maxLength=n;const s=String(e.from).padStart(n,"0"),r=String(e.to).padStart(n,"0");let i=0;for(;i1&&arguments[1]!==void 0?arguments[1]:{},s;if([e,s]=qs(super.doPrepare(e.replace(/\D/g,""),n)),!this.autofix||!e)return e;const r=String(this.from).padStart(this.maxLength,"0"),i=String(this.to).padStart(this.maxLength,"0");let o=this.value+e;if(o.length>this.maxLength)return"";const[a,l]=this.boundaries(o);return Number(l)this.to?this.autofix==="pad"&&o.length{const r=e.blocks[s];!("autofix"in r)&&"autofix"in e&&(r.autofix=e.autofix)}),super._update(e)}doValidate(){const e=this.date;return super.doValidate(...arguments)&&(!this.isComplete||this.isDateExist(this.value)&&e!=null&&(this.min==null||this.min<=e)&&(this.max==null||e<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}}is.DEFAULTS={pattern:"d{.}`m{.}`Y",format:t=>{if(!t)return"";const e=String(t.getDate()).padStart(2,"0"),n=String(t.getMonth()+1).padStart(2,"0"),s=t.getFullYear();return[e,n,s].join(".")},parse:t=>{const[e,n,s]=t.split(".");return new Date(s,n-1,e)}};is.GET_DEFAULT_BLOCKS=()=>({d:{mask:Zr,from:1,to:31,maxLength:2},m:{mask:Zr,from:1,to:12,maxLength:2},Y:{mask:Zr,from:1900,to:9999}});te.MaskedDate=is;class Wa{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,n){if(!(e==null||n==null||e===this.selectionStart&&n===this.selectionEnd))try{this._unsafeSelect(e,n)}catch{}}_unsafeSelect(e,n){}get isActive(){return!1}bindEvents(e){}unbindEvents(){}}te.MaskElement=Wa;class ms extends Wa{constructor(e){super(),this.input=e,this._handlers={}}get rootElement(){var e,n,s;return(e=(n=(s=this.input).getRootNode)===null||n===void 0?void 0:n.call(s))!==null&&e!==void 0?e:document}get isActive(){return this.input===this.rootElement.activeElement}get _unsafeSelectionStart(){return this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,n){this.input.setSelectionRange(e,n)}get value(){return this.input.value}set value(e){this.input.value=e}bindEvents(e){Object.keys(e).forEach(n=>this._toggleEventHandler(ms.EVENTS_MAP[n],e[n]))}unbindEvents(){Object.keys(this._handlers).forEach(e=>this._toggleEventHandler(e))}_toggleEventHandler(e,n){this._handlers[e]&&(this.input.removeEventListener(e,this._handlers[e]),delete this._handlers[e]),n&&(this.input.addEventListener(e,n),this._handlers[e]=n)}}ms.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"};te.HTMLMaskElement=ms;class ff extends ms{get _unsafeSelectionStart(){const e=this.rootElement,n=e.getSelection&&e.getSelection(),s=n&&n.anchorOffset,r=n&&n.focusOffset;return r==null||s==null||sr?s:r}_unsafeSelect(e,n){if(!this.rootElement.createRange)return;const s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,e),s.setEnd(this.input.lastChild||this.input,n);const r=this.rootElement,i=r.getSelection&&r.getSelection();i&&(i.removeAllRanges(),i.addRange(s))}get value(){return this.input.textContent}set value(e){this.input.textContent=e}}te.HTMLContenteditableMaskElement=ff;const ig=["mask"];class og{constructor(e,n){this.el=e instanceof Wa?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new ff(e):new ms(e),this.masked=Sn(n),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}get mask(){return this.masked.mask}maskEquals(e){var n;return e==null||((n=this.masked)===null||n===void 0?void 0:n.maskEquals(e))}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof te.Masked)&&this.masked.constructor===lf(e)){this.masked.updateOptions({mask:e});return}const n=Sn({mask:e});n.unmaskedValue=this.masked.unmaskedValue,this.masked=n}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;ro(...s))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const e=this.masked.unmaskedValue,n=this.masked.value,s=this.displayValue,r=this.unmaskedValue!==e||this.value!==n;this._unmaskedValue=e,this._value=n,this.el.value!==s&&(this.el.value=s),r&&this._fireChangeEvents()}updateOptions(e){const{mask:n}=e,s=rs(e,ig),r=!this.maskEquals(n),i=!fi(this.masked,s);r&&(this.mask=n),i&&this.masked.updateOptions(s),(r||i)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,z.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,n){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(n),this}off(e,n){if(!this._listeners[e])return this;if(!n)return delete this._listeners[e],this;const s=this._listeners[e].indexOf(n);return s>=0&&this._listeners[e].splice(s,1),this}_onInput(e){if(this._inputEvent=e,this._abortUpdateCursor(),!this._selection)return this.updateValue();const n=new Zp(this.el.value,this.cursorPos,this.displayValue,this._selection),s=this.masked.rawInputValue,r=this.masked.splice(n.startChangePos,n.removed.length,n.inserted,n.removeDirection,{input:!0,raw:!0}).offset,i=s===this.masked.rawInputValue?n.removeDirection:z.NONE;let o=this.masked.nearestInputPos(n.startChangePos+r,i);i!==z.NONE&&(o=this.masked.nearestInputPos(o,z.NONE)),this.updateControl(),this.updateCursor(o),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}te.InputMask=og;class ag extends Ye{_update(e){e.enum&&(e.mask="*".repeat(e.enum[0].length)),super._update(e)}doValidate(){return this.enum.some(e=>e.indexOf(this.unmaskedValue)>=0)&&super.doValidate(...arguments)}}te.MaskedEnum=ag;class Qe extends Ve{constructor(e){super(Object.assign({},Qe.DEFAULTS,e))}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e="^"+(this.allowNegative?"[+|\\-]?":""),n="\\d*",s=(this.scale?"(".concat(To(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp(e+n+s),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(To).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(To(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const n=e.split(this.radix);return n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),n.join(this.radix)}doPrepare(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e=this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(n.input&&n.raw||!n.input&&!n.raw)?e.replace(this._mapToRadixRegExp,this.radix):e);const[s,r]=qs(super.doPrepare(e,n));return e&&!s&&(r.skip=!0),[s,r]}_separatorsCount(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=0;for(let r=0;r0&&arguments[0]!==void 0?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,s=arguments.length>2?arguments[2]:void 0;return[e,n]=this._adjustRangeWithSeparators(e,n),this._removeThousandsSeparators(super.extractInput(e,n,s))}_appendCharRaw(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.thousandsSeparator)return super._appendCharRaw(e,n);const s=n.tail&&n._beforeTailState?n._beforeTailState._value:this._value,r=this._separatorsCountFromSlice(s);this._value=this._removeThousandsSeparators(this.value);const i=super._appendCharRaw(e,n);this._value=this._insertThousandsSeparators(this._value);const o=n.tail&&n._beforeTailState?n._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(o);return i.tailShift+=(a-r)*this.thousandsSeparator.length,i.skip=!i.rawInserted&&e===this.thousandsSeparator,i}_findSeparatorAround(e){if(this.thousandsSeparator){const n=e-this.thousandsSeparator.length+1,s=this.value.indexOf(this.thousandsSeparator,n);if(s<=e)return s}return-1}_adjustRangeWithSeparators(e,n){const s=this._findSeparatorAround(e);s>=0&&(e=s);const r=this._findSeparatorAround(n);return r>=0&&(n=r+this.thousandsSeparator.length),[e,n]}remove(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;[e,n]=this._adjustRangeWithSeparators(e,n);const s=this.value.slice(0,e),r=this.value.slice(n),i=this._separatorsCount(s.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+r));const o=this._separatorsCountFromSlice(s);return new ge({tailShift:(o-i)*this.thousandsSeparator.length})}nearestInputPos(e,n){if(!this.thousandsSeparator)return e;switch(n){case z.NONE:case z.LEFT:case z.FORCE_LEFT:{const s=this._findSeparatorAround(e-1);if(s>=0){const r=s+this.thousandsSeparator.length;if(e=0)return s+this.thousandsSeparator.length}}return e}doValidate(e){let n=!!this._removeThousandsSeparators(this.value).match(this._numberRegExp);if(n){const s=this.number;n=n&&!isNaN(s)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return n&&super.doValidate(e)}doCommit(){if(this.value){const e=this.number;let n=e;this.min!=null&&(n=Math.max(n,this.min)),this.max!=null&&(n=Math.min(n,this.max)),n!==e&&(this.unmaskedValue=this.doFormat(n));let s=this.value;this.normalizeZeros&&(s=this._normalizeZeros(s)),this.padFractionalZeros&&this.scale>0&&(s=this._padFractionalZeros(s)),this._value=s}super.doCommit()}_normalizeZeros(e){const n=this._removeThousandsSeparators(e).split(this.radix);return n[0]=n[0].replace(/^(\D*)(0*)(\d*)/,(s,r,i,o)=>r+o),e.length&&!/\d$/.test(n[0])&&(n[0]=n[0]+"0"),n.length>1&&(n[1]=n[1].replace(/0*$/,""),n[1].length||(n.length=1)),this._insertThousandsSeparators(n.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const n=e.split(this.radix);return n.length<2&&n.push(""),n[1]=n[1].padEnd(this.scale,"0"),n.join(this.radix)}doSkipInvalid(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;const r=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===Qe.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,n,s)&&!r}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,Qe.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue(e){this.rawInputValue=this.doFormat(e).replace(Qe.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.signed||this.min!=null&&this.min<0||this.max!=null&&this.max<0}typedValueEquals(e){return(super.typedValueEquals(e)||Qe.EMPTY_VALUES.includes(e)&&Qe.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}}Qe.UNMASKED_RADIX=".";Qe.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[Qe.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:t=>t.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})};Qe.EMPTY_VALUES=[...Ve.EMPTY_VALUES,0];te.MaskedNumber=Qe;class lg extends Ve{_update(e){e.mask&&(e.validate=e.mask),super._update(e)}}te.MaskedFunction=lg;const ug=["compiledMasks","currentMaskRef","currentMask"],cg=["mask"];class $i extends Ve{constructor(e){super(Object.assign({},$i.DEFAULTS,e)),this.currentMask=null}_update(e){super._update(e),"mask"in e&&(this.compiledMasks=Array.isArray(e.mask)?e.mask.map(n=>Sn(n)):[])}_appendCharRaw(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this._applyDispatch(e,n);return this.currentMask&&s.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(n))),s}_applyDispatch(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";const r=n.tail&&n._beforeTailState!=null?n._beforeTailState._value:this.value,i=this.rawInputValue,o=n.tail&&n._beforeTailState!=null?n._beforeTailState._rawInputValue:i,a=i.slice(o.length),l=this.currentMask,u=new ge,c=l==null?void 0:l.state;if(this.currentMask=this.doDispatch(e,Object.assign({},n),s),this.currentMask)if(this.currentMask!==l){if(this.currentMask.reset(),o){const f=this.currentMask.append(o,{raw:!0});u.tailShift=f.inserted.length-r.length}a&&(u.tailShift+=this.currentMask.append(a,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=c;return u}_appendPlaceholder(){const e=this._applyDispatch(...arguments);return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch(...arguments);return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const n=new ge;return e&&n.aggregate(this._applyDispatch("",{},e)),n.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var n,s;return Object.assign({},e,{_beforeTailState:((n=e._beforeTailState)===null||n===void 0?void 0:n.currentMaskRef)===this.currentMask&&((s=e._beforeTailState)===null||s===void 0?void 0:s.currentMask)||e._beforeTailState})}doDispatch(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return this.dispatch(e,this,n,s)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},[s,r]=qs(super.doPrepare(e,n));if(this.currentMask){let i;[s,i]=qs(super.doPrepare(s,this.currentMaskFlags(n))),r=r.aggregate(i)}return[s,r]}reset(){var e;(e=this.currentMask)===null||e===void 0||e.reset(),this.compiledMasks.forEach(n=>n.reset())}get value(){return this.currentMask?this.currentMask.value:""}set value(e){super.value=e}get unmaskedValue(){return this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.currentMask?this.currentMask.typedValue:""}set typedValue(e){let n=String(e);this.currentMask&&(this.currentMask.typedValue=e,n=this.currentMask.unmaskedValue),this.unmaskedValue=n}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!(!((e=this.currentMask)===null||e===void 0)&&e.isComplete)}get isFilled(){var e;return!!(!((e=this.currentMask)===null||e===void 0)&&e.isFilled)}remove(){const e=new ge;return this.currentMask&&e.aggregate(this.currentMask.remove(...arguments)).aggregate(this._applyDispatch()),e}get state(){var e;return Object.assign({},super.state,{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(n=>n.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)===null||e===void 0?void 0:e.state})}set state(e){const{compiledMasks:n,currentMaskRef:s,currentMask:r}=e,i=rs(e,ug);this.compiledMasks.forEach((o,a)=>o.state=n[a]),s!=null&&(this.currentMask=s,this.currentMask.state=r),super.state=i}extractInput(){return this.currentMask?this.currentMask.extractInput(...arguments):""}extractTail(){return this.currentMask?this.currentMask.extractTail(...arguments):super.extractTail(...arguments)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(){return this.currentMask?this.currentMask.nearestInputPos(...arguments):super.nearestInputPos(...arguments)}get overwrite(){return this.currentMask?this.currentMask.overwrite:super.overwrite}set overwrite(e){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings')}get eager(){return this.currentMask?this.currentMask.eager:super.eager}set eager(e){console.warn('"eager" option is not available in dynamic mask, use this option in siblings')}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:super.skipInvalid}set skipInvalid(e){(this.isInitialized||e!==Ve.DEFAULTS.skipInvalid)&&console.warn('"skipInvalid" option is not available in dynamic mask, use this option in siblings')}maskEquals(e){return Array.isArray(e)&&this.compiledMasks.every((n,s)=>{if(!e[s])return;const r=e[s],{mask:i}=r,o=rs(r,cg);return fi(n,o)&&n.maskEquals(i)})}typedValueEquals(e){var n;return!!(!((n=this.currentMask)===null||n===void 0)&&n.typedValueEquals(e))}}$i.DEFAULTS={dispatch:(t,e,n,s)=>{if(!e.compiledMasks.length)return;const r=e.rawInputValue,i=e.compiledMasks.map((o,a)=>{const l=e.currentMask===o,u=l?o.value.length:o.nearestInputPos(o.value.length,z.FORCE_LEFT);return o.rawInputValue!==r?(o.reset(),o.append(r,{raw:!0})):l||o.remove(u),o.append(t,e.currentMaskFlags(n)),o.appendTail(s),{index:a,weight:o.rawInputValue.length,totalInputPositions:o.totalInputPositions(0,Math.max(u,o.nearestInputPos(o.value.length,z.FORCE_LEFT)))}});return i.sort((o,a)=>a.weight-o.weight||a.totalInputPositions-o.totalInputPositions),e.compiledMasks[i[0].index]}};te.MaskedDynamic=$i;const ra={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function hf(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ra.MASKED,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ra.MASKED;const s=Sn(t);return r=>s.runIsolated(i=>(i[e]=r,i[n]))}function fg(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),gg=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),mg=t=>{do t+=Math.floor(Math.random()*dg);while(document.getElementById(t));return t},_g=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const s=Number.parseFloat(e),r=Number.parseFloat(n);return!s&&!r?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*pg)},pf=t=>{t.dispatchEvent(new Event(ia))},Ot=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Jt=t=>Ot(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(df(t)):null,_s=t=>{if(!Ot(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const s=t.closest("summary");if(s&&s.parentNode!==n||s===null)return!1}return e},Xt=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",gf=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?gf(t.parentNode):null},hi=()=>{},lr=t=>{t.offsetHeight},mf=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,So=[],Eg=t=>{document.readyState==="loading"?(So.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of So)e()}),So.push(t)):t()},it=()=>document.documentElement.dir==="rtl",lt=t=>{Eg(()=>{const e=mf();if(e){const n=t.NAME,s=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=s,t.jQueryInterface)}})},Be=(t,e=[],n=t)=>typeof t=="function"?t(...e):n,_f=(t,e,n=!0)=>{if(!n){Be(t);return}const s=5,r=_g(e)+s;let i=!1;const o=({target:a})=>{a===e&&(i=!0,e.removeEventListener(ia,o),Be(t))};e.addEventListener(ia,o),setTimeout(()=>{i||pf(e)},r)},qa=(t,e,n,s)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!n&&s?t[r-1]:t[0]:(i+=n?1:-1,s&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},yg=/[^.]*(?=\..*)\.|.*/,bg=/\..*/,vg=/::\d+$/,wo={};let hu=1;const Ef={mouseenter:"mouseover",mouseleave:"mouseout"},Ag=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function yf(t,e){return e&&`${e}::${hu++}`||t.uidEvent||hu++}function bf(t){const e=yf(t);return t.uidEvent=e,wo[e]=wo[e]||{},wo[e]}function Tg(t,e){return function n(s){return za(s,{delegateTarget:t}),n.oneOff&&M.off(t,s.type,e),e.apply(t,[s])}}function Cg(t,e,n){return function s(r){const i=t.querySelectorAll(e);for(let{target:o}=r;o&&o!==this;o=o.parentNode)for(const a of i)if(a===o)return za(r,{delegateTarget:o}),s.oneOff&&M.off(t,r.type,e,n),n.apply(o,[r])}}function vf(t,e,n=null){return Object.values(t).find(s=>s.callable===e&&s.delegationSelector===n)}function Af(t,e,n){const s=typeof e=="string",r=s?n:e||n;let i=Tf(t);return Ag.has(i)||(i=t),[s,r,i]}function du(t,e,n,s,r){if(typeof e!="string"||!t)return;let[i,o,a]=Af(e,n,s);e in Ef&&(o=(p=>function(h){if(!h.relatedTarget||h.relatedTarget!==h.delegateTarget&&!h.delegateTarget.contains(h.relatedTarget))return p.call(this,h)})(o));const l=bf(t),u=l[a]||(l[a]={}),c=vf(u,o,i?n:null);if(c){c.oneOff=c.oneOff&&r;return}const f=yf(o,e.replace(yg,"")),m=i?Cg(t,n,o):Tg(t,o);m.delegationSelector=i?n:null,m.callable=o,m.oneOff=r,m.uidEvent=f,u[f]=m,t.addEventListener(a,m,i)}function oa(t,e,n,s,r){const i=vf(e[n],s,r);i&&(t.removeEventListener(n,i,!!r),delete e[n][i.uidEvent])}function Sg(t,e,n,s){const r=e[n]||{};for(const[i,o]of Object.entries(r))i.includes(s)&&oa(t,e,n,o.callable,o.delegationSelector)}function Tf(t){return t=t.replace(bg,""),Ef[t]||t}const M={on(t,e,n,s){du(t,e,n,s,!1)},one(t,e,n,s){du(t,e,n,s,!0)},off(t,e,n,s){if(typeof e!="string"||!t)return;const[r,i,o]=Af(e,n,s),a=o!==e,l=bf(t),u=l[o]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;oa(t,l,o,i,r?n:null);return}if(c)for(const f of Object.keys(l))Sg(t,l,f,e.slice(1));for(const[f,m]of Object.entries(u)){const E=f.replace(vg,"");(!a||e.includes(E))&&oa(t,l,o,m.callable,m.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const s=mf(),r=Tf(e),i=e!==r;let o=null,a=!0,l=!0,u=!1;i&&s&&(o=s.Event(e,n),s(t).trigger(o),a=!o.isPropagationStopped(),l=!o.isImmediatePropagationStopped(),u=o.isDefaultPrevented());const c=za(new Event(e,{bubbles:a,cancelable:!0}),n);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&o&&o.preventDefault(),c}};function za(t,e={}){for(const[n,s]of Object.entries(e))try{t[n]=s}catch{Object.defineProperty(t,n,{configurable:!0,get(){return s}})}return t}function pu(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Oo(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const kt={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Oo(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Oo(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(s=>s.startsWith("bs")&&!s.startsWith("bsConfig"));for(const s of n){let r=s.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),e[r]=pu(t.dataset[s])}return e},getDataAttribute(t,e){return pu(t.getAttribute(`data-bs-${Oo(e)}`))}};class ur{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,n){const s=Ot(n)?kt.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof s=="object"?s:{},...Ot(n)?kt.getDataAttributes(n):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const[s,r]of Object.entries(n)){const i=e[s],o=Ot(i)?"element":gg(i);if(!new RegExp(r).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${o}" but expected type "${r}".`)}}}const wg="5.3.0-alpha2";class pt extends ur{constructor(e,n){super(),e=Jt(e),e&&(this._element=e,this._config=this._getConfig(n),Co.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Co.remove(this._element,this.constructor.DATA_KEY),M.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,s=!0){_f(e,n,s)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Co.get(Jt(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return wg}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const ko=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?n.trim():null}return df(e)},Y={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let s=t.parentNode.closest(e);for(;s;)n.push(s),s=s.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!Xt(n)&&_s(n))},getSelectorFromElement(t){const e=ko(t);return e&&Y.findOne(e)?e:null},getElementFromSelector(t){const e=ko(t);return e?Y.findOne(e):null},getMultipleElementsFromSelector(t){const e=ko(t);return e?Y.find(e):[]}},Vi=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;M.on(document,n,`[data-bs-dismiss="${s}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),Xt(this))return;const i=Y.getElementFromSelector(this)||this.closest(`.${s}`);t.getOrCreateInstance(i)[e]()})},Og="alert",kg="bs.alert",Cf=`.${kg}`,Ng=`close${Cf}`,Dg=`closed${Cf}`,Pg="fade",Ig="show";class cr extends pt{static get NAME(){return Og}close(){if(M.trigger(this._element,Ng).defaultPrevented)return;this._element.classList.remove(Ig);const n=this._element.classList.contains(Pg);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),M.trigger(this._element,Dg),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=cr.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}Vi(cr,"close");lt(cr);const Rg="button",Fg="bs.button",Lg=`.${Fg}`,Mg=".data-api",Bg="active",gu='[data-bs-toggle="button"]',xg=`click${Lg}${Mg}`;class fr extends pt{static get NAME(){return Rg}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Bg))}static jQueryInterface(e){return this.each(function(){const n=fr.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}M.on(document,xg,gu,t=>{t.preventDefault();const e=t.target.closest(gu);fr.getOrCreateInstance(e).toggle()});lt(fr);const $g="swipe",Es=".bs.swipe",Vg=`touchstart${Es}`,Hg=`touchmove${Es}`,jg=`touchend${Es}`,Ug=`pointerdown${Es}`,Kg=`pointerup${Es}`,Wg="touch",qg="pen",zg="pointer-event",Yg=40,Gg={endCallback:null,leftCallback:null,rightCallback:null},Jg={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class di extends ur{constructor(e,n){super(),this._element=e,!(!e||!di.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Gg}static get DefaultType(){return Jg}static get NAME(){return $g}dispose(){M.off(this._element,Es)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Be(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=Yg)return;const n=e/this._deltaX;this._deltaX=0,n&&Be(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(M.on(this._element,Ug,e=>this._start(e)),M.on(this._element,Kg,e=>this._end(e)),this._element.classList.add(zg)):(M.on(this._element,Vg,e=>this._start(e)),M.on(this._element,Hg,e=>this._move(e)),M.on(this._element,jg,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===qg||e.pointerType===Wg)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Xg="carousel",Zg="bs.carousel",on=`.${Zg}`,Sf=".data-api",Qg="ArrowLeft",em="ArrowRight",tm=500,ks="next",Vn="prev",Wn="left",Qr="right",nm=`slide${on}`,No=`slid${on}`,sm=`keydown${on}`,rm=`mouseenter${on}`,im=`mouseleave${on}`,om=`dragstart${on}`,am=`load${on}${Sf}`,lm=`click${on}${Sf}`,wf="carousel",Pr="active",um="slide",cm="carousel-item-end",fm="carousel-item-start",hm="carousel-item-next",dm="carousel-item-prev",Of=".active",kf=".carousel-item",pm=Of+kf,gm=".carousel-item img",mm=".carousel-indicators",_m="[data-bs-slide], [data-bs-slide-to]",Em='[data-bs-ride="carousel"]',ym={[Qg]:Qr,[em]:Wn},bm={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},vm={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ys extends pt{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Y.findOne(mm,this._element),this._addEventListeners(),this._config.ride===wf&&this.cycle()}static get Default(){return bm}static get DefaultType(){return vm}static get NAME(){return Xg}next(){this._slide(ks)}nextWhenVisible(){!document.hidden&&_s(this._element)&&this.next()}prev(){this._slide(Vn)}pause(){this._isSliding&&pf(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){M.one(this._element,No,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){M.one(this._element,No,()=>this.to(e));return}const s=this._getItemIndex(this._getActive());if(s===e)return;const r=e>s?ks:Vn;this._slide(r,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&M.on(this._element,sm,e=>this._keydown(e)),this._config.pause==="hover"&&(M.on(this._element,rm,()=>this.pause()),M.on(this._element,im,()=>this._maybeEnableCycle())),this._config.touch&&di.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const s of Y.find(gm,this._element))M.on(s,om,r=>r.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(Wn)),rightCallback:()=>this._slide(this._directionToOrder(Qr)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),tm+this._config.interval))}};this._swipeHelper=new di(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=ym[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=Y.findOne(Of,this._indicatorsElement);n.classList.remove(Pr),n.removeAttribute("aria-current");const s=Y.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);s&&(s.classList.add(Pr),s.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const s=this._getActive(),r=e===ks,i=n||qa(this._getItems(),s,r,this._config.wrap);if(i===s)return;const o=this._getItemIndex(i),a=E=>M.trigger(this._element,E,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(s),to:o});if(a(nm).defaultPrevented||!s||!i)return;const u=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=i;const c=r?fm:cm,f=r?hm:dm;i.classList.add(f),lr(i),s.classList.add(c),i.classList.add(c);const m=()=>{i.classList.remove(c,f),i.classList.add(Pr),s.classList.remove(Pr,f,c),this._isSliding=!1,a(No)};this._queueCallback(m,s,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(um)}_getActive(){return Y.findOne(pm,this._element)}_getItems(){return Y.find(kf,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return it()?e===Wn?Vn:ks:e===Wn?ks:Vn}_orderToDirection(e){return it()?e===Vn?Wn:Qr:e===Vn?Qr:Wn}static jQueryInterface(e){return this.each(function(){const n=ys.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}M.on(document,lm,_m,function(t){const e=Y.getElementFromSelector(this);if(!e||!e.classList.contains(wf))return;t.preventDefault();const n=ys.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");if(s){n.to(s),n._maybeEnableCycle();return}if(kt.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});M.on(window,am,()=>{const t=Y.find(Em);for(const e of t)ys.getOrCreateInstance(e)});lt(ys);const Am="collapse",Tm="bs.collapse",hr=`.${Tm}`,Cm=".data-api",Sm=`show${hr}`,wm=`shown${hr}`,Om=`hide${hr}`,km=`hidden${hr}`,Nm=`click${hr}${Cm}`,Do="show",Yn="collapse",Ir="collapsing",Dm="collapsed",Pm=`:scope .${Yn} .${Yn}`,Im="collapse-horizontal",Rm="width",Fm="height",Lm=".collapse.show, .collapse.collapsing",aa='[data-bs-toggle="collapse"]',Mm={parent:null,toggle:!0},Bm={parent:"(null|element)",toggle:"boolean"};class os extends pt{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const s=Y.find(aa);for(const r of s){const i=Y.getSelectorFromElement(r),o=Y.find(i).filter(a=>a===this._element);i!==null&&o.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Mm}static get DefaultType(){return Bm}static get NAME(){return Am}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(Lm).filter(a=>a!==this._element).map(a=>os.getOrCreateInstance(a,{toggle:!1}))),e.length&&e[0]._isTransitioning||M.trigger(this._element,Sm).defaultPrevented)return;for(const a of e)a.hide();const s=this._getDimension();this._element.classList.remove(Yn),this._element.classList.add(Ir),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Ir),this._element.classList.add(Yn,Do),this._element.style[s]="",M.trigger(this._element,wm)},o=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[s]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||M.trigger(this._element,Om).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,lr(this._element),this._element.classList.add(Ir),this._element.classList.remove(Yn,Do);for(const r of this._triggerArray){const i=Y.getElementFromSelector(r);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([r],!1)}this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(Ir),this._element.classList.add(Yn),M.trigger(this._element,km)};this._element.style[n]="",this._queueCallback(s,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Do)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Jt(e.parent),e}_getDimension(){return this._element.classList.contains(Im)?Rm:Fm}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(aa);for(const n of e){const s=Y.getElementFromSelector(n);s&&this._addAriaAndCollapsedClass([n],this._isShown(s))}}_getFirstLevelChildren(e){const n=Y.find(Pm,this._config.parent);return Y.find(e,this._config.parent).filter(s=>!n.includes(s))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const s of e)s.classList.toggle(Dm,!n),s.setAttribute("aria-expanded",n)}static jQueryInterface(e){const n={};return typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1),this.each(function(){const s=os.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof s[e]>"u")throw new TypeError(`No method named "${e}"`);s[e]()}})}}M.on(document,Nm,aa,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Y.getMultipleElementsFromSelector(this))os.getOrCreateInstance(e,{toggle:!1}).toggle()});lt(os);const mu="dropdown",xm="bs.dropdown",In=`.${xm}`,Ya=".data-api",$m="Escape",_u="Tab",Vm="ArrowUp",Eu="ArrowDown",Hm=2,jm=`hide${In}`,Um=`hidden${In}`,Km=`show${In}`,Wm=`shown${In}`,Nf=`click${In}${Ya}`,Df=`keydown${In}${Ya}`,qm=`keyup${In}${Ya}`,qn="show",zm="dropup",Ym="dropend",Gm="dropstart",Jm="dropup-center",Xm="dropdown-center",mn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Zm=`${mn}.${qn}`,ei=".dropdown-menu",Qm=".navbar",e_=".navbar-nav",t_=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",n_=it()?"top-end":"top-start",s_=it()?"top-start":"top-end",r_=it()?"bottom-end":"bottom-start",i_=it()?"bottom-start":"bottom-end",o_=it()?"left-start":"right-start",a_=it()?"right-start":"left-start",l_="top",u_="bottom",c_={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},f_={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class st extends pt{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Y.next(this._element,ei)[0]||Y.prev(this._element,ei)[0]||Y.findOne(ei,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return c_}static get DefaultType(){return f_}static get NAME(){return mu}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Xt(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!M.trigger(this._element,Km,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(e_))for(const s of[].concat(...document.body.children))M.on(s,"mouseover",hi);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(qn),this._element.classList.add(qn),M.trigger(this._element,Wm,e)}}hide(){if(Xt(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!M.trigger(this._element,jm,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))M.off(s,"mouseover",hi);this._popper&&this._popper.destroy(),this._menu.classList.remove(qn),this._element.classList.remove(qn),this._element.setAttribute("aria-expanded","false"),kt.removeDataAttribute(this._menu,"popper"),M.trigger(this._element,Um,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Ot(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${mu.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof of>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:Ot(this._config.reference)?e=Jt(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=af(e,this._menu,n)}_isShown(){return this._menu.classList.contains(qn)}_getPlacement(){const e=this._parent;if(e.classList.contains(Ym))return o_;if(e.classList.contains(Gm))return a_;if(e.classList.contains(Jm))return l_;if(e.classList.contains(Xm))return u_;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(zm)?n?s_:n_:n?i_:r_}_detectNavbar(){return this._element.closest(Qm)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(kt.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Be(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:n}){const s=Y.find(t_,this._menu).filter(r=>_s(r));s.length&&qa(s,n,e===Eu,!s.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=st.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e.button===Hm||e.type==="keyup"&&e.key!==_u)return;const n=Y.find(Zm);for(const s of n){const r=st.getInstance(s);if(!r||r._config.autoClose===!1)continue;const i=e.composedPath(),o=i.includes(r._menu);if(i.includes(r._element)||r._config.autoClose==="inside"&&!o||r._config.autoClose==="outside"&&o||r._menu.contains(e.target)&&(e.type==="keyup"&&e.key===_u||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:r._element};e.type==="click"&&(a.clickEvent=e),r._completeHide(a)}}static dataApiKeydownHandler(e){const n=/input|textarea/i.test(e.target.tagName),s=e.key===$m,r=[Vm,Eu].includes(e.key);if(!r&&!s||n&&!s)return;e.preventDefault();const i=this.matches(mn)?this:Y.prev(this,mn)[0]||Y.next(this,mn)[0]||Y.findOne(mn,e.delegateTarget.parentNode),o=st.getOrCreateInstance(i);if(r){e.stopPropagation(),o.show(),o._selectMenuItem(e);return}o._isShown()&&(e.stopPropagation(),o.hide(),i.focus())}}M.on(document,Df,mn,st.dataApiKeydownHandler);M.on(document,Df,ei,st.dataApiKeydownHandler);M.on(document,Nf,st.clearMenus);M.on(document,qm,st.clearMenus);M.on(document,Nf,mn,function(t){t.preventDefault(),st.getOrCreateInstance(this).toggle()});lt(st);const Pf="backdrop",h_="fade",yu="show",bu=`mousedown.bs.${Pf}`,d_={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},p_={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class If extends ur{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return d_}static get DefaultType(){return p_}static get NAME(){return Pf}show(e){if(!this._config.isVisible){Be(e);return}this._append();const n=this._getElement();this._config.isAnimated&&lr(n),n.classList.add(yu),this._emulateAnimation(()=>{Be(e)})}hide(e){if(!this._config.isVisible){Be(e);return}this._getElement().classList.remove(yu),this._emulateAnimation(()=>{this.dispose(),Be(e)})}dispose(){this._isAppended&&(M.off(this._element,bu),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(h_),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Jt(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),M.on(e,bu,()=>{Be(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){_f(e,this._getElement(),this._config.isAnimated)}}const g_="focustrap",m_="bs.focustrap",pi=`.${m_}`,__=`focusin${pi}`,E_=`keydown.tab${pi}`,y_="Tab",b_="forward",vu="backward",v_={autofocus:!0,trapElement:null},A_={autofocus:"boolean",trapElement:"element"};class Rf extends ur{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return v_}static get DefaultType(){return A_}static get NAME(){return g_}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),M.off(document,pi),M.on(document,__,e=>this._handleFocusin(e)),M.on(document,E_,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,M.off(document,pi))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const s=Y.focusableChildren(n);s.length===0?n.focus():this._lastTabNavDirection===vu?s[s.length-1].focus():s[0].focus()}_handleKeydown(e){e.key===y_&&(this._lastTabNavDirection=e.shiftKey?vu:b_)}}const Au=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Tu=".sticky-top",Rr="padding-right",Cu="margin-right";class la{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Rr,n=>n+e),this._setElementAttributes(Au,Rr,n=>n+e),this._setElementAttributes(Tu,Cu,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Rr),this._resetElementAttributes(Au,Rr),this._resetElementAttributes(Tu,Cu)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,s){const r=this.getWidth(),i=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+r)return;this._saveInitialAttribute(o,n);const a=window.getComputedStyle(o).getPropertyValue(n);o.style.setProperty(n,`${s(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,n){const s=e.style.getPropertyValue(n);s&&kt.setDataAttribute(e,n,s)}_resetElementAttributes(e,n){const s=r=>{const i=kt.getDataAttribute(r,n);if(i===null){r.style.removeProperty(n);return}kt.removeDataAttribute(r,n),r.style.setProperty(n,i)};this._applyManipulationCallback(e,s)}_applyManipulationCallback(e,n){if(Ot(e)){n(e);return}for(const s of Y.find(e,this._element))n(s)}}const T_="modal",C_="bs.modal",ot=`.${C_}`,S_=".data-api",w_="Escape",O_=`hide${ot}`,k_=`hidePrevented${ot}`,Ff=`hidden${ot}`,Lf=`show${ot}`,N_=`shown${ot}`,D_=`resize${ot}`,P_=`click.dismiss${ot}`,I_=`mousedown.dismiss${ot}`,R_=`keydown.dismiss${ot}`,F_=`click${ot}${S_}`,Su="modal-open",L_="fade",wu="show",Po="modal-static",M_=".modal.show",B_=".modal-dialog",x_=".modal-body",$_='[data-bs-toggle="modal"]',V_={backdrop:!0,focus:!0,keyboard:!0},H_={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class wn extends pt{constructor(e,n){super(e,n),this._dialog=Y.findOne(B_,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new la,this._addEventListeners()}static get Default(){return V_}static get DefaultType(){return H_}static get NAME(){return T_}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||M.trigger(this._element,Lf,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Su),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||M.trigger(this._element,O_).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(wu),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){M.off(window,ot),M.off(this._dialog,ot),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new If({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Rf({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=Y.findOne(x_,this._dialog);n&&(n.scrollTop=0),lr(this._element),this._element.classList.add(wu);const s=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,M.trigger(this._element,N_,{relatedTarget:e})};this._queueCallback(s,this._dialog,this._isAnimated())}_addEventListeners(){M.on(this._element,R_,e=>{if(e.key===w_){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),M.on(window,D_,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),M.on(this._element,I_,e=>{M.one(this._element,P_,n=>{if(!(this._element!==e.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Su),this._resetAdjustments(),this._scrollBar.reset(),M.trigger(this._element,Ff)})}_isAnimated(){return this._element.classList.contains(L_)}_triggerBackdropTransition(){if(M.trigger(this._element,k_).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,s=this._element.style.overflowY;s==="hidden"||this._element.classList.contains(Po)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(Po),this._queueCallback(()=>{this._element.classList.remove(Po),this._queueCallback(()=>{this._element.style.overflowY=s},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),s=n>0;if(s&&!e){const r=it()?"paddingLeft":"paddingRight";this._element.style[r]=`${n}px`}if(!s&&e){const r=it()?"paddingRight":"paddingLeft";this._element.style[r]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const s=wn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof s[e]>"u")throw new TypeError(`No method named "${e}"`);s[e](n)}})}}M.on(document,F_,$_,function(t){const e=Y.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),M.one(e,Lf,r=>{r.defaultPrevented||M.one(e,Ff,()=>{_s(this)&&this.focus()})});const n=Y.findOne(M_);n&&wn.getInstance(n).hide(),wn.getOrCreateInstance(e).toggle(this)});Vi(wn);lt(wn);const j_="offcanvas",U_="bs.offcanvas",Ft=`.${U_}`,Mf=".data-api",K_=`load${Ft}${Mf}`,W_="Escape",Ou="show",ku="showing",Nu="hiding",q_="offcanvas-backdrop",Bf=".offcanvas.show",z_=`show${Ft}`,Y_=`shown${Ft}`,G_=`hide${Ft}`,Du=`hidePrevented${Ft}`,xf=`hidden${Ft}`,J_=`resize${Ft}`,X_=`click${Ft}${Mf}`,Z_=`keydown.dismiss${Ft}`,Q_='[data-bs-toggle="offcanvas"]',eE={backdrop:!0,keyboard:!0,scroll:!1},tE={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class It extends pt{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return eE}static get DefaultType(){return tE}static get NAME(){return j_}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||M.trigger(this._element,z_,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new la().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ku);const s=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ou),this._element.classList.remove(ku),M.trigger(this._element,Y_,{relatedTarget:e})};this._queueCallback(s,this._element,!0)}hide(){if(!this._isShown||M.trigger(this._element,G_).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Nu),this._backdrop.hide();const n=()=>{this._element.classList.remove(Ou,Nu),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new la().reset(),M.trigger(this._element,xf)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){M.trigger(this._element,Du);return}this.hide()},n=!!this._config.backdrop;return new If({className:q_,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new Rf({trapElement:this._element})}_addEventListeners(){M.on(this._element,Z_,e=>{if(e.key===W_){if(this._config.keyboard){this.hide();return}M.trigger(this._element,Du)}})}static jQueryInterface(e){return this.each(function(){const n=It.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}M.on(document,X_,Q_,function(t){const e=Y.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Xt(this))return;M.one(e,xf,()=>{_s(this)&&this.focus()});const n=Y.findOne(Bf);n&&n!==e&&It.getInstance(n).hide(),It.getOrCreateInstance(e).toggle(this)});M.on(window,K_,()=>{for(const t of Y.find(Bf))It.getOrCreateInstance(t).show()});M.on(window,J_,()=>{for(const t of Y.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&It.getOrCreateInstance(t).hide()});Vi(It);lt(It);const nE=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),sE=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,rE=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,iE=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?nE.has(n)?!!(sE.test(t.nodeValue)||rE.test(t.nodeValue)):!0:e.filter(s=>s instanceof RegExp).some(s=>s.test(n))},oE=/^aria-[\w-]*$/i,$f={"*":["class","dir","id","lang","role",oE],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function aE(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const r=new window.DOMParser().parseFromString(t,"text/html"),i=[].concat(...r.body.querySelectorAll("*"));for(const o of i){const a=o.nodeName.toLowerCase();if(!Object.keys(e).includes(a)){o.remove();continue}const l=[].concat(...o.attributes),u=[].concat(e["*"]||[],e[a]||[]);for(const c of l)iE(c,u)||o.removeAttribute(c.nodeName)}return r.body.innerHTML}const lE="TemplateFactory",uE={allowList:$f,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},cE={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},fE={entry:"(string|element|function|null)",selector:"(string|element)"};class hE extends ur{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return uE}static get DefaultType(){return cE}static get NAME(){return lE}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(e,i,r);const n=e.children[0],s=this._resolvePossibleFunction(this._config.extraClass);return s&&n.classList.add(...s.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[n,s]of Object.entries(e))super._typeCheckConfig({selector:n,entry:s},fE)}_setContent(e,n,s){const r=Y.findOne(s,e);if(r){if(n=this._resolvePossibleFunction(n),!n){r.remove();return}if(Ot(n)){this._putElementInTemplate(Jt(n),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(n);return}r.textContent=n}}_maybeSanitize(e){return this._config.sanitize?aE(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Be(e,[this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const dE="tooltip",pE=new Set(["sanitize","allowList","sanitizeFn"]),Io="fade",gE="modal",Fr="show",mE=".tooltip-inner",Pu=`.${gE}`,Iu="hide.bs.modal",Ns="hover",Ro="focus",_E="click",EE="manual",yE="hide",bE="hidden",vE="show",AE="shown",TE="inserted",CE="click",SE="focusin",wE="focusout",OE="mouseenter",kE="mouseleave",NE={AUTO:"auto",TOP:"top",RIGHT:it()?"left":"right",BOTTOM:"bottom",LEFT:it()?"right":"left"},DE={allowList:$f,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},PE={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class an extends pt{constructor(e,n){if(typeof of>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return DE}static get DefaultType(){return PE}static get NAME(){return dE}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),M.off(this._element.closest(Pu),Iu,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=M.trigger(this._element,this.constructor.eventName(vE)),s=(gf(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!s)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(r),M.trigger(this._element,this.constructor.eventName(TE))),this._popper=this._createPopper(r),r.classList.add(Fr),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))M.on(a,"mouseover",hi);const o=()=>{M.trigger(this._element,this.constructor.eventName(AE)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||M.trigger(this._element,this.constructor.eventName(yE)).defaultPrevented)return;if(this._getTipElement().classList.remove(Fr),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))M.off(r,"mouseover",hi);this._activeTrigger[_E]=!1,this._activeTrigger[Ro]=!1,this._activeTrigger[Ns]=!1,this._isHovered=null;const s=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),M.trigger(this._element,this.constructor.eventName(bE)))};this._queueCallback(s,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const n=this._getTemplateFactory(e).toHtml();if(!n)return null;n.classList.remove(Io,Fr),n.classList.add(`bs-${this.constructor.NAME}-auto`);const s=mg(this.constructor.NAME).toString();return n.setAttribute("id",s),this._isAnimated()&&n.classList.add(Io),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new hE({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[mE]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Io)}_isShown(){return this.tip&&this.tip.classList.contains(Fr)}_createPopper(e){const n=Be(this._config.placement,[this,e,this._element]),s=NE[n.toUpperCase()];return af(this._element,e,this._getPopperConfig(s))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return Be(e,[this._element])}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:s=>{this._getTipElement().setAttribute("data-popper-placement",s.state.placement)}}]};return{...n,...Be(this._config.popperConfig,[n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")M.on(this._element,this.constructor.eventName(CE),this._config.selector,s=>{this._initializeOnDelegatedTarget(s).toggle()});else if(n!==EE){const s=n===Ns?this.constructor.eventName(OE):this.constructor.eventName(SE),r=n===Ns?this.constructor.eventName(kE):this.constructor.eventName(wE);M.on(this._element,s,this._config.selector,i=>{const o=this._initializeOnDelegatedTarget(i);o._activeTrigger[i.type==="focusin"?Ro:Ns]=!0,o._enter()}),M.on(this._element,r,this._config.selector,i=>{const o=this._initializeOnDelegatedTarget(i);o._activeTrigger[i.type==="focusout"?Ro:Ns]=o._element.contains(i.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},M.on(this._element.closest(Pu),Iu,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,n){clearTimeout(this._timeout),this._timeout=setTimeout(e,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const n=kt.getDataAttributes(this._element);for(const s of Object.keys(n))pE.has(s)&&delete n[s];return e={...n,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Jt(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[n,s]of Object.entries(this._config))this.constructor.Default[n]!==s&&(e[n]=s);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const n=an.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}lt(an);const IE="popover",RE=".popover-header",FE=".popover-body",LE={...an.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},ME={...an.DefaultType,content:"(null|string|element|function)"};class dr extends an{static get Default(){return LE}static get DefaultType(){return ME}static get NAME(){return IE}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[RE]:this._getTitle(),[FE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=dr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}lt(dr);const BE="scrollspy",xE="bs.scrollspy",Ga=`.${xE}`,$E=".data-api",VE=`activate${Ga}`,Ru=`click${Ga}`,HE=`load${Ga}${$E}`,jE="dropdown-item",Hn="active",UE='[data-bs-spy="scroll"]',Fo="[href]",KE=".nav, .list-group",Fu=".nav-link",WE=".nav-item",qE=".list-group-item",zE=`${Fu}, ${WE} > ${Fu}, ${qE}`,YE=".dropdown",GE=".dropdown-toggle",JE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},XE={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class pr extends pt{constructor(e,n){super(e,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return JE}static get DefaultType(){return XE}static get NAME(){return BE}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Jt(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(M.off(this._config.target,Ru),M.on(this._config.target,Ru,Fo,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const s=this._rootElement||window,r=n.offsetTop-this._element.offsetTop;if(s.scrollTo){s.scrollTo({top:r,behavior:"smooth"});return}s.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=o=>this._targetLinks.get(`#${o.target.id}`),s=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(n(o))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(o));continue}const a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(s(o),!r)return;continue}!i&&!a&&s(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Y.find(Fo,this._config.target);for(const n of e){if(!n.hash||Xt(n))continue;const s=Y.findOne(n.hash,this._element);_s(s)&&(this._targetLinks.set(n.hash,n),this._observableSections.set(n.hash,s))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Hn),this._activateParents(e),M.trigger(this._element,VE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(jE)){Y.findOne(GE,e.closest(YE)).classList.add(Hn);return}for(const n of Y.parents(e,KE))for(const s of Y.prev(n,zE))s.classList.add(Hn)}_clearActiveClass(e){e.classList.remove(Hn);const n=Y.find(`${Fo}.${Hn}`,e);for(const s of n)s.classList.remove(Hn)}static jQueryInterface(e){return this.each(function(){const n=pr.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}M.on(window,HE,()=>{for(const t of Y.find(UE))pr.getOrCreateInstance(t)});lt(pr);const ZE="tab",QE="bs.tab",Rn=`.${QE}`,ey=`hide${Rn}`,ty=`hidden${Rn}`,ny=`show${Rn}`,sy=`shown${Rn}`,ry=`click${Rn}`,iy=`keydown${Rn}`,oy=`load${Rn}`,ay="ArrowLeft",Lu="ArrowRight",ly="ArrowUp",Mu="ArrowDown",_n="active",Bu="fade",Lo="show",uy="dropdown",cy=".dropdown-toggle",fy=".dropdown-menu",Mo=":not(.dropdown-toggle)",hy='.list-group, .nav, [role="tablist"]',dy=".nav-item, .list-group-item",py=`.nav-link${Mo}, .list-group-item${Mo}, [role="tab"]${Mo}`,Vf='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Bo=`${py}, ${Vf}`,gy=`.${_n}[data-bs-toggle="tab"], .${_n}[data-bs-toggle="pill"], .${_n}[data-bs-toggle="list"]`;class Zt extends pt{constructor(e){super(e),this._parent=this._element.closest(hy),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),M.on(this._element,iy,n=>this._keydown(n)))}static get NAME(){return ZE}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),s=n?M.trigger(n,ey,{relatedTarget:e}):null;M.trigger(e,ny,{relatedTarget:n}).defaultPrevented||s&&s.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(_n),this._activate(Y.getElementFromSelector(e));const s=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Lo);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),M.trigger(e,sy,{relatedTarget:n})};this._queueCallback(s,e,e.classList.contains(Bu))}_deactivate(e,n){if(!e)return;e.classList.remove(_n),e.blur(),this._deactivate(Y.getElementFromSelector(e));const s=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Lo);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),M.trigger(e,ty,{relatedTarget:n})};this._queueCallback(s,e,e.classList.contains(Bu))}_keydown(e){if(![ay,Lu,ly,Mu].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=[Lu,Mu].includes(e.key),s=qa(this._getChildren().filter(r=>!Xt(r)),e.target,n,!0);s&&(s.focus({preventScroll:!0}),Zt.getOrCreateInstance(s).show())}_getChildren(){return Y.find(Bo,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const s of n)this._setInitialAttributesOnChild(s)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),s=this._getOuterElement(e);e.setAttribute("aria-selected",n),s!==e&&this._setAttributeIfNotExists(s,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=Y.getElementFromSelector(e);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,n){const s=this._getOuterElement(e);if(!s.classList.contains(uy))return;const r=(i,o)=>{const a=Y.findOne(i,s);a&&a.classList.toggle(o,n)};r(cy,_n),r(fy,Lo),s.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,s){e.hasAttribute(n)||e.setAttribute(n,s)}_elemIsActive(e){return e.classList.contains(_n)}_getInnerElement(e){return e.matches(Bo)?e:Y.findOne(Bo,e)}_getOuterElement(e){return e.closest(dy)||e}static jQueryInterface(e){return this.each(function(){const n=Zt.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}M.on(document,ry,Vf,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Xt(this)&&Zt.getOrCreateInstance(this).show()});M.on(window,oy,()=>{for(const t of Y.find(gy))Zt.getOrCreateInstance(t)});lt(Zt);const my="toast",_y="bs.toast",ln=`.${_y}`,Ey=`mouseover${ln}`,yy=`mouseout${ln}`,by=`focusin${ln}`,vy=`focusout${ln}`,Ay=`hide${ln}`,Ty=`hidden${ln}`,Cy=`show${ln}`,Sy=`shown${ln}`,wy="fade",xu="hide",Lr="show",Mr="showing",Oy={animation:"boolean",autohide:"boolean",delay:"number"},ky={animation:!0,autohide:!0,delay:5e3};class bs extends pt{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ky}static get DefaultType(){return Oy}static get NAME(){return my}show(){if(M.trigger(this._element,Cy).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(wy);const n=()=>{this._element.classList.remove(Mr),M.trigger(this._element,Sy),this._maybeScheduleHide()};this._element.classList.remove(xu),lr(this._element),this._element.classList.add(Lr,Mr),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||M.trigger(this._element,Ay).defaultPrevented)return;const n=()=>{this._element.classList.add(xu),this._element.classList.remove(Mr,Lr),M.trigger(this._element,Ty)};this._element.classList.add(Mr),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Lr),super.dispose()}isShown(){return this._element.classList.contains(Lr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const s=e.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){M.on(this._element,Ey,e=>this._onInteraction(e,!0)),M.on(this._element,yy,e=>this._onInteraction(e,!1)),M.on(this._element,by,e=>this._onInteraction(e,!0)),M.on(this._element,vy,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=bs.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}Vi(bs);lt(bs);const Ny=Object.freeze(Object.defineProperty({__proto__:null,Alert:cr,Button:fr,Carousel:ys,Collapse:os,Dropdown:st,Modal:wn,Offcanvas:It,Popover:dr,ScrollSpy:pr,Tab:Zt,Toast:bs,Tooltip:an},Symbol.toStringTag,{value:"Module"}));let Dy=[].slice.call(document.querySelectorAll('[data-bs-toggle="dropdown"]'));Dy.map(function(t){let e={boundary:t.getAttribute("data-bs-boundary")==="viewport"?document.querySelector(".btn"):"clippingParents"};return new st(t,e)});let Py=[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));Py.map(function(t){let e={delay:{show:50,hide:50},html:t.getAttribute("data-bs-html")==="true",placement:t.getAttribute("data-bs-placement")??"auto"};return new an(t,e)});let Iy=[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));Iy.map(function(t){let e={delay:{show:50,hide:50},html:t.getAttribute("data-bs-html")==="true",placement:t.getAttribute("data-bs-placement")??"auto"};return new dr(t,e)});let Ry=[].slice.call(document.querySelectorAll('[data-bs-toggle="switch-icon"]'));Ry.map(function(t){t.addEventListener("click",e=>{e.stopPropagation(),t.classList.toggle("active")})});const Fy=()=>{const t=window.location.hash;t&&[].slice.call(document.querySelectorAll('[data-bs-toggle="tab"]')).filter(s=>s.hash===t).map(s=>{new Zt(s).show()})};Fy();let Ly=[].slice.call(document.querySelectorAll('[data-bs-toggle="toast"]'));Ly.map(function(t){return new bs(t)});const Hf="tblr-",jf=(t,e)=>{const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?`rgba(${parseInt(n[1],16)}, ${parseInt(n[2],16)}, ${parseInt(n[3],16)}, ${e})`:null},My=(t,e=1)=>{const n=getComputedStyle(document.body).getPropertyValue(`--${Hf}${t}`).trim();return e!==1?jf(n,e):n},By=Object.freeze(Object.defineProperty({__proto__:null,getColor:My,hexToRgba:jf,prefix:Hf},Symbol.toStringTag,{value:"Module"}));globalThis.bootstrap=Ny;globalThis.tabler=By;function Uf(t,e){return function(){return t.apply(e,arguments)}}const{toString:xy}=Object.prototype,{getPrototypeOf:Ja}=Object,Hi=(t=>e=>{const n=xy.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),bt=t=>(t=t.toLowerCase(),e=>Hi(e)===t),ji=t=>e=>typeof e===t,{isArray:vs}=Array,zs=ji("undefined");function $y(t){return t!==null&&!zs(t)&&t.constructor!==null&&!zs(t.constructor)&&rt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Kf=bt("ArrayBuffer");function Vy(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Kf(t.buffer),e}const Hy=ji("string"),rt=ji("function"),Wf=ji("number"),Ui=t=>t!==null&&typeof t=="object",jy=t=>t===!0||t===!1,ti=t=>{if(Hi(t)!=="object")return!1;const e=Ja(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Uy=bt("Date"),Ky=bt("File"),Wy=bt("Blob"),qy=bt("FileList"),zy=t=>Ui(t)&&rt(t.pipe),Yy=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||rt(t.append)&&((e=Hi(t))==="formdata"||e==="object"&&rt(t.toString)&&t.toString()==="[object FormData]"))},Gy=bt("URLSearchParams"),Jy=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gr(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let s,r;if(typeof t!="object"&&(t=[t]),vs(t))for(s=0,r=t.length;s0;)if(r=n[s],e===r.toLowerCase())return r;return null}const zf=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Yf=t=>!zs(t)&&t!==zf;function ua(){const{caseless:t}=Yf(this)&&this||{},e={},n=(s,r)=>{const i=t&&qf(e,r)||r;ti(e[i])&&ti(s)?e[i]=ua(e[i],s):ti(s)?e[i]=ua({},s):vs(s)?e[i]=s.slice():e[i]=s};for(let s=0,r=arguments.length;s(gr(e,(r,i)=>{n&&rt(r)?t[i]=Uf(r,n):t[i]=r},{allOwnKeys:s}),t),Zy=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Qy=(t,e,n,s)=>{t.prototype=Object.create(e.prototype,s),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},eb=(t,e,n,s)=>{let r,i,o;const a={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)o=r[i],(!s||s(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&Ja(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},tb=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const s=t.indexOf(e,n);return s!==-1&&s===n},nb=t=>{if(!t)return null;if(vs(t))return t;let e=t.length;if(!Wf(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},sb=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ja(Uint8Array)),rb=(t,e)=>{const s=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=s.next())&&!r.done;){const i=r.value;e.call(t,i[0],i[1])}},ib=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},ob=bt("HTMLFormElement"),ab=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),$u=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),lb=bt("RegExp"),Gf=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),s={};gr(n,(r,i)=>{e(r,i,t)!==!1&&(s[i]=r)}),Object.defineProperties(t,s)},ub=t=>{Gf(t,(e,n)=>{if(rt(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=t[n];if(rt(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},cb=(t,e)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return vs(t)?s(t):s(String(t).split(e)),n},fb=()=>{},hb=(t,e)=>(t=+t,Number.isFinite(t)?t:e),xo="abcdefghijklmnopqrstuvwxyz",Vu="0123456789",Jf={DIGIT:Vu,ALPHA:xo,ALPHA_DIGIT:xo+xo.toUpperCase()+Vu},db=(t=16,e=Jf.ALPHA_DIGIT)=>{let n="";const{length:s}=e;for(;t--;)n+=e[Math.random()*s|0];return n};function pb(t){return!!(t&&rt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const gb=t=>{const e=new Array(10),n=(s,r)=>{if(Ui(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[r]=s;const i=vs(s)?[]:{};return gr(s,(o,a)=>{const l=n(o,r+1);!zs(l)&&(i[a]=l)}),e[r]=void 0,i}}return s};return n(t,0)},mb=bt("AsyncFunction"),_b=t=>t&&(Ui(t)||rt(t))&&rt(t.then)&&rt(t.catch),I={isArray:vs,isArrayBuffer:Kf,isBuffer:$y,isFormData:Yy,isArrayBufferView:Vy,isString:Hy,isNumber:Wf,isBoolean:jy,isObject:Ui,isPlainObject:ti,isUndefined:zs,isDate:Uy,isFile:Ky,isBlob:Wy,isRegExp:lb,isFunction:rt,isStream:zy,isURLSearchParams:Gy,isTypedArray:sb,isFileList:qy,forEach:gr,merge:ua,extend:Xy,trim:Jy,stripBOM:Zy,inherits:Qy,toFlatObject:eb,kindOf:Hi,kindOfTest:bt,endsWith:tb,toArray:nb,forEachEntry:rb,matchAll:ib,isHTMLForm:ob,hasOwnProperty:$u,hasOwnProp:$u,reduceDescriptors:Gf,freezeMethods:ub,toObjectSet:cb,toCamelCase:ab,noop:fb,toFiniteNumber:hb,findKey:qf,global:zf,isContextDefined:Yf,ALPHABET:Jf,generateString:db,isSpecCompliantForm:pb,toJSONObject:gb,isAsyncFn:mb,isThenable:_b};function le(t,e,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}I.inherits(le,Error,{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:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Xf=le.prototype,Zf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Zf[t]={value:t}});Object.defineProperties(le,Zf);Object.defineProperty(Xf,"isAxiosError",{value:!0});le.from=(t,e,n,s,r,i)=>{const o=Object.create(Xf);return I.toFlatObject(t,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),le.call(o,t.message,e,n,s,r),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const Eb=null;function ca(t){return I.isPlainObject(t)||I.isArray(t)}function Qf(t){return I.endsWith(t,"[]")?t.slice(0,-2):t}function Hu(t,e,n){return t?t.concat(e).map(function(r,i){return r=Qf(r),!n&&i?"["+r+"]":r}).join(n?".":""):e}function yb(t){return I.isArray(t)&&!t.some(ca)}const bb=I.toFlatObject(I,{},null,function(e){return/^is[A-Z]/.test(e)});function Ki(t,e,n){if(!I.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!I.isUndefined(y[h])});const s=n.metaTokens,r=n.visitor||c,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(e);if(!I.isFunction(r))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(I.isDate(p))return p.toISOString();if(!l&&I.isBlob(p))throw new le("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(p)||I.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,h,y){let d=p;if(p&&!y&&typeof p=="object"){if(I.endsWith(h,"{}"))h=s?h:h.slice(0,-2),p=JSON.stringify(p);else if(I.isArray(p)&&yb(p)||(I.isFileList(p)||I.endsWith(h,"[]"))&&(d=I.toArray(p)))return h=Qf(h),d.forEach(function(v,g){!(I.isUndefined(v)||v===null)&&e.append(o===!0?Hu([h],g,i):o===null?h:h+"[]",u(v))}),!1}return ca(p)?!0:(e.append(Hu(y,h,i),u(p)),!1)}const f=[],m=Object.assign(bb,{defaultVisitor:c,convertValue:u,isVisitable:ca});function E(p,h){if(!I.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+h.join("."));f.push(p),I.forEach(p,function(d,_){(!(I.isUndefined(d)||d===null)&&r.call(e,d,I.isString(_)?_.trim():_,h,m))===!0&&E(d,h?h.concat(_):[_])}),f.pop()}}if(!I.isObject(t))throw new TypeError("data must be an object");return E(t),e}function ju(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function Xa(t,e){this._pairs=[],t&&Ki(t,this,e)}const eh=Xa.prototype;eh.append=function(e,n){this._pairs.push([e,n])};eh.toString=function(e){const n=e?function(s){return e.call(this,s,ju)}:ju;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function vb(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function th(t,e,n){if(!e)return t;const s=n&&n.encode||vb,r=n&&n.serialize;let i;if(r?i=r(e,n):i=I.isURLSearchParams(e)?e.toString():new Xa(e,n).toString(s),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ab{constructor(){this.handlers=[]}use(e,n,s){return this.handlers.push({fulfilled:e,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,function(s){s!==null&&e(s)})}}const Uu=Ab,nh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tb=typeof URLSearchParams<"u"?URLSearchParams:Xa,Cb=typeof FormData<"u"?FormData:null,Sb=typeof Blob<"u"?Blob:null,wb=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Ob=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Et={isBrowser:!0,classes:{URLSearchParams:Tb,FormData:Cb,Blob:Sb},isStandardBrowserEnv:wb,isStandardBrowserWebWorkerEnv:Ob,protocols:["http","https","file","blob","url","data"]};function kb(t,e){return Ki(t,new Et.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return Et.isNode&&I.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Nb(t){return I.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Db(t){const e={},n=Object.keys(t);let s;const r=n.length;let i;for(s=0;s=n.length;return o=!o&&I.isArray(r)?r.length:o,l?(I.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!I.isObject(r[o]))&&(r[o]=[]),e(n,s,r[o],i)&&I.isArray(r[o])&&(r[o]=Db(r[o])),!a)}if(I.isFormData(t)&&I.isFunction(t.entries)){const n={};return I.forEachEntry(t,(s,r)=>{e(Nb(s),r,n,0)}),n}return null}const Pb={"Content-Type":void 0};function Ib(t,e,n){if(I.isString(t))try{return(e||JSON.parse)(t),I.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const Wi={transitional:nh,adapter:["xhr","http"],transformRequest:[function(e,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=I.isObject(e);if(i&&I.isHTMLForm(e)&&(e=new FormData(e)),I.isFormData(e))return r&&r?JSON.stringify(sh(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return kb(e,this.formSerializer).toString();if((a=I.isFileList(e))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ki(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),Ib(e)):e}],transformResponse:[function(e){const n=this.transitional||Wi.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(e&&I.isString(e)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?le.from(a,le.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Et.classes.FormData,Blob:Et.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],function(e){Wi.headers[e]={}});I.forEach(["post","put","patch"],function(e){Wi.headers[e]=I.merge(Pb)});const Za=Wi,Rb=I.toObjectSet(["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"]),Fb=t=>{const e={};let n,s,r;return t&&t.split(` +`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||e[n]&&Rb[n])&&(n==="set-cookie"?e[n]?e[n].push(s):e[n]=[s]:e[n]=e[n]?e[n]+", "+s:s)}),e},Ku=Symbol("internals");function Ds(t){return t&&String(t).trim().toLowerCase()}function ni(t){return t===!1||t==null?t:I.isArray(t)?t.map(ni):String(t)}function Lb(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(t);)e[s[1]]=s[2];return e}const Mb=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function $o(t,e,n,s,r){if(I.isFunction(s))return s.call(this,e,n);if(r&&(e=n),!!I.isString(e)){if(I.isString(s))return e.indexOf(s)!==-1;if(I.isRegExp(s))return s.test(e)}}function Bb(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,s)=>n.toUpperCase()+s)}function xb(t,e){const n=I.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+n,{value:function(r,i,o){return this[s].call(this,e,r,i,o)},configurable:!0})})}class qi{constructor(e){e&&this.set(e)}set(e,n,s){const r=this;function i(a,l,u){const c=Ds(l);if(!c)throw new Error("header name must be a non-empty string");const f=I.findKey(r,c);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||l]=ni(a))}const o=(a,l)=>I.forEach(a,(u,c)=>i(u,c,l));return I.isPlainObject(e)||e instanceof this.constructor?o(e,n):I.isString(e)&&(e=e.trim())&&!Mb(e)?o(Fb(e),n):e!=null&&i(n,e,s),this}get(e,n){if(e=Ds(e),e){const s=I.findKey(this,e);if(s){const r=this[s];if(!n)return r;if(n===!0)return Lb(r);if(I.isFunction(n))return n.call(this,r,s);if(I.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ds(e),e){const s=I.findKey(this,e);return!!(s&&this[s]!==void 0&&(!n||$o(this,this[s],s,n)))}return!1}delete(e,n){const s=this;let r=!1;function i(o){if(o=Ds(o),o){const a=I.findKey(s,o);a&&(!n||$o(s,s[a],a,n))&&(delete s[a],r=!0)}}return I.isArray(e)?e.forEach(i):i(e),r}clear(e){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!e||$o(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const n=this,s={};return I.forEach(this,(r,i)=>{const o=I.findKey(s,i);if(o){n[o]=ni(r),delete n[i];return}const a=e?Bb(i):String(i).trim();a!==i&&delete n[i],n[a]=ni(r),s[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return I.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=e&&I.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const s=new this(e);return n.forEach(r=>s.set(r)),s}static accessor(e){const s=(this[Ku]=this[Ku]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Ds(o);s[a]||(xb(r,o),s[a]=!0)}return I.isArray(e)?e.forEach(i):i(e),this}}qi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.freezeMethods(qi.prototype);I.freezeMethods(qi);const Nt=qi;function Vo(t,e){const n=this||Za,s=e||n,r=Nt.from(s.headers);let i=s.data;return I.forEach(t,function(a){i=a.call(n,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function rh(t){return!!(t&&t.__CANCEL__)}function mr(t,e,n){le.call(this,t??"canceled",le.ERR_CANCELED,e,n),this.name="CanceledError"}I.inherits(mr,le,{__CANCEL__:!0});function $b(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new le("Request failed with status code "+n.status,[le.ERR_BAD_REQUEST,le.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Vb=Et.isStandardBrowserEnv?function(){return{write:function(n,s,r,i,o,a){const l=[];l.push(n+"="+encodeURIComponent(s)),I.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),I.isString(i)&&l.push("path="+i),I.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Hb(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function jb(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function ih(t,e){return t&&!Hb(e)?jb(t,e):e}const Ub=Et.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(i){let o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(o){const a=I.isString(o)?r(o):o;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function Kb(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Wb(t,e){t=t||10;const n=new Array(t),s=new Array(t);let r=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=s[i];o||(o=u),n[r]=l,s[r]=u;let f=i,m=0;for(;f!==r;)m+=n[f++],f=f%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),u-o{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,l=s(a),u=i<=o;n=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:r};c[e?"download":"upload"]=!0,t(c)}}const qb=typeof XMLHttpRequest<"u",zb=qb&&function(t){return new Promise(function(n,s){let r=t.data;const i=Nt.from(t.headers).normalize(),o=t.responseType;let a;function l(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}I.isFormData(r)&&(Et.isStandardBrowserEnv||Et.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const E=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(E+":"+p))}const c=ih(t.baseURL,t.url);u.open(t.method.toUpperCase(),th(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function f(){if(!u)return;const E=Nt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),h={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:E,config:t,request:u};$b(function(d){n(d),l()},function(d){s(d),l()},h),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(s(new le("Request aborted",le.ECONNABORTED,t,u)),u=null)},u.onerror=function(){s(new le("Network Error",le.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let p=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const h=t.transitional||nh;t.timeoutErrorMessage&&(p=t.timeoutErrorMessage),s(new le(p,h.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,t,u)),u=null},Et.isStandardBrowserEnv){const E=(t.withCredentials||Ub(c))&&t.xsrfCookieName&&Vb.read(t.xsrfCookieName);E&&i.set(t.xsrfHeaderName,E)}r===void 0&&i.setContentType(null),"setRequestHeader"in u&&I.forEach(i.toJSON(),function(p,h){u.setRequestHeader(h,p)}),I.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&o!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",Wu(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Wu(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=E=>{u&&(s(!E||E.type?new mr(null,t,u):E),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const m=Kb(c);if(m&&Et.protocols.indexOf(m)===-1){s(new le("Unsupported protocol "+m+":",le.ERR_BAD_REQUEST,t));return}u.send(r||null)})},si={http:Eb,xhr:zb};I.forEach(si,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Yb={getAdapter:t=>{t=I.isArray(t)?t:[t];const{length:e}=t;let n,s;for(let r=0;rt instanceof Nt?t.toJSON():t;function as(t,e){e=e||{};const n={};function s(u,c,f){return I.isPlainObject(u)&&I.isPlainObject(c)?I.merge.call({caseless:f},u,c):I.isPlainObject(c)?I.merge({},c):I.isArray(c)?c.slice():c}function r(u,c,f){if(I.isUndefined(c)){if(!I.isUndefined(u))return s(void 0,u,f)}else return s(u,c,f)}function i(u,c){if(!I.isUndefined(c))return s(void 0,c)}function o(u,c){if(I.isUndefined(c)){if(!I.isUndefined(u))return s(void 0,u)}else return s(void 0,c)}function a(u,c,f){if(f in e)return s(u,c);if(f in t)return s(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,c)=>r(zu(u),zu(c),!0)};return I.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||r,m=f(t[c],e[c],c);I.isUndefined(m)&&f!==a||(n[c]=m)}),n}const oh="1.4.0",Qa={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Qa[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const Yu={};Qa.transitional=function(e,n,s){function r(i,o){return"[Axios v"+oh+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(e===!1)throw new le(r(o," has been removed"+(n?" in "+n:"")),le.ERR_DEPRECATED);return n&&!Yu[o]&&(Yu[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,a):!0}};function Gb(t,e,n){if(typeof t!="object")throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let r=s.length;for(;r-- >0;){const i=s[r],o=e[i];if(o){const a=t[i],l=a===void 0||o(a,i,t);if(l!==!0)throw new le("option "+i+" must be "+l,le.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new le("Unknown option "+i,le.ERR_BAD_OPTION)}}const fa={assertOptions:Gb,validators:Qa},xt=fa.validators;class gi{constructor(e){this.defaults=e,this.interceptors={request:new Uu,response:new Uu}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=as(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&fa.assertOptions(s,{silentJSONParsing:xt.transitional(xt.boolean),forcedJSONParsing:xt.transitional(xt.boolean),clarifyTimeoutError:xt.transitional(xt.boolean)},!1),r!=null&&(I.isFunction(r)?n.paramsSerializer={serialize:r}:fa.assertOptions(r,{encode:xt.function,serialize:xt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&I.merge(i.common,i[n.method]),o&&I.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Nt.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,f=0,m;if(!l){const p=[qu.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),m=p.length,c=Promise.resolve(n);f{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},e(function(i,o,a){s.reason||(s.reason=new mr(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new el(function(r){e=r}),cancel:e}}}const Jb=el;function Xb(t){return function(n){return t.apply(null,n)}}function Zb(t){return I.isObject(t)&&t.isAxiosError===!0}const ha={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ha).forEach(([t,e])=>{ha[e]=t});const Qb=ha;function ah(t){const e=new ri(t),n=Uf(ri.prototype.request,e);return I.extend(n,ri.prototype,e,{allOwnKeys:!0}),I.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return ah(as(t,r))},n}const Ce=ah(Za);Ce.Axios=ri;Ce.CanceledError=mr;Ce.CancelToken=Jb;Ce.isCancel=rh;Ce.VERSION=oh;Ce.toFormData=Ki;Ce.AxiosError=le;Ce.Cancel=Ce.CanceledError;Ce.all=function(e){return Promise.all(e)};Ce.spread=Xb;Ce.isAxiosError=Zb;Ce.mergeConfig=as;Ce.AxiosHeaders=Nt;Ce.formToJSON=t=>sh(I.isHTMLForm(t)?new FormData(t):t);Ce.HttpStatusCode=Qb;Ce.default=Ce;const qe=Ce;window.axios=qe;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";function je(t,e){const n=Object.create(null),s=t.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}const ce={},Xn=[],Le=()=>{},ii=()=>!1,e0=/^on[^a-z]/,Fn=t=>e0.test(t),tl=t=>t.startsWith("onUpdate:"),re=Object.assign,nl=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},t0=Object.prototype.hasOwnProperty,ae=(t,e)=>t0.call(t,e),j=Array.isArray,Zn=t=>As(t)==="[object Map]",Ln=t=>As(t)==="[object Set]",Gu=t=>As(t)==="[object Date]",n0=t=>As(t)==="[object RegExp]",J=t=>typeof t=="function",Q=t=>typeof t=="string",Qt=t=>typeof t=="symbol",fe=t=>t!==null&&typeof t=="object",sl=t=>fe(t)&&J(t.then)&&J(t.catch),lh=Object.prototype.toString,As=t=>lh.call(t),s0=t=>As(t).slice(8,-1),uh=t=>As(t)==="[object Object]",rl=t=>Q(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,bn=je(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),r0=je("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),zi=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},i0=/-(\w)/g,Ae=zi(t=>t.replace(i0,(e,n)=>n?n.toUpperCase():"")),o0=/\B([A-Z])/g,ze=zi(t=>t.replace(o0,"-$1").toLowerCase()),Mn=zi(t=>t.charAt(0).toUpperCase()+t.slice(1)),Qn=zi(t=>t?`on${Mn(t)}`:""),ls=(t,e)=>!Object.is(t,e),es=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},_i=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ei=t=>{const e=Q(t)?Number(t):NaN;return isNaN(e)?t:e};let Ju;const da=()=>Ju||(Ju=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),a0="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",l0=je(a0);function _r(t){if(j(t)){const e={};for(let n=0;n{if(n){const s=n.split(c0);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Er(t){let e="";if(Q(t))e=t;else if(j(t))for(let n=0;nen(n,e))}const A0=t=>Q(t)?t:t==null?"":j(t)||fe(t)&&(t.toString===lh||!J(t.toString))?JSON.stringify(t,hh,2):String(t),hh=(t,e)=>e&&e.__v_isRef?hh(t,e.value):Zn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Ln(e)?{[`Set(${e.size})`]:[...e.values()]}:fe(e)&&!j(e)&&!uh(e)?String(e):e;let Ke;class il{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ke,!e&&Ke&&(this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Ke;try{return Ke=this,e()}finally{Ke=n}}}on(){Ke=this}off(){Ke=this.parent}stop(e){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},gh=t=>(t.w&tn)>0,mh=t=>(t.n&tn)>0,T0=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let s=0;s{(c==="length"||c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(o.get(n)),e){case"add":j(t)?rl(n)&&a.push(o.get("length")):(a.push(o.get(vn)),Zn(t)&&a.push(o.get(ga)));break;case"delete":j(t)||(a.push(o.get(vn)),Zn(t)&&a.push(o.get(ga)));break;case"set":Zn(t)&&a.push(o.get(vn));break}if(a.length===1)a[0]&&ma(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);ma(ll(l))}}function ma(t,e){const n=j(t)?t:[...t];for(const s of n)s.computed&&Zu(s);for(const s of n)s.computed||Zu(s)}function Zu(t,e){(t!==ft||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function O0(t,e){var n;return(n=yi.get(t))==null?void 0:n.get(e)}const k0=je("__proto__,__v_isRef,__isVue"),yh=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Qt)),N0=Gi(),D0=Gi(!1,!0),P0=Gi(!0),I0=Gi(!0,!0),Qu=R0();function R0(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=se(this);for(let i=0,o=this.length;i{t[e]=function(...n){Ts();const s=se(this)[e].apply(this,n);return Cs(),s}}),t}function F0(t){const e=se(this);return He(e,"has",t),e.hasOwnProperty(t)}function Gi(t=!1,e=!1){return function(s,r,i){if(r==="__v_isReactive")return!t;if(r==="__v_isReadonly")return t;if(r==="__v_isShallow")return e;if(r==="__v_raw"&&i===(t?e?wh:Sh:e?Ch:Th).get(s))return s;const o=j(s);if(!t){if(o&&ae(Qu,r))return Reflect.get(Qu,r,i);if(r==="hasOwnProperty")return F0}const a=Reflect.get(s,r,i);return(Qt(r)?yh.has(r):k0(r))||(t||He(s,"get",r),e)?a:_e(a)?o&&rl(r)?a:a.value:fe(a)?t?cl(a):vt(a):a}}const L0=bh(),M0=bh(!0);function bh(t=!1){return function(n,s,r,i){let o=n[s];if(On(o)&&_e(o)&&!_e(r))return!1;if(!t&&(!Ys(r)&&!On(r)&&(o=se(o),r=se(r)),!j(n)&&_e(o)&&!_e(r)))return o.value=r,!0;const a=j(n)&&rl(s)?Number(s)t,Ji=t=>Reflect.getPrototypeOf(t);function Br(t,e,n=!1,s=!1){t=t.__v_raw;const r=se(t),i=se(e);n||(e!==i&&He(r,"get",e),He(r,"get",i));const{has:o}=Ji(r),a=s?ul:n?hl:Gs;if(o.call(r,e))return a(t.get(e));if(o.call(r,i))return a(t.get(i));t!==r&&t.get(e)}function xr(t,e=!1){const n=this.__v_raw,s=se(n),r=se(t);return e||(t!==r&&He(s,"has",t),He(s,"has",r)),t===r?n.has(t):n.has(t)||n.has(r)}function $r(t,e=!1){return t=t.__v_raw,!e&&He(se(t),"iterate",vn),Reflect.get(t,"size",t)}function ec(t){t=se(t);const e=se(this);return Ji(e).has.call(e,t)||(e.add(t),Rt(e,"add",t,t)),this}function tc(t,e){e=se(e);const n=se(this),{has:s,get:r}=Ji(n);let i=s.call(n,t);i||(t=se(t),i=s.call(n,t));const o=r.call(n,t);return n.set(t,e),i?ls(e,o)&&Rt(n,"set",t,e):Rt(n,"add",t,e),this}function nc(t){const e=se(this),{has:n,get:s}=Ji(e);let r=n.call(e,t);r||(t=se(t),r=n.call(e,t)),s&&s.call(e,t);const i=e.delete(t);return r&&Rt(e,"delete",t,void 0),i}function sc(){const t=se(this),e=t.size!==0,n=t.clear();return e&&Rt(t,"clear",void 0,void 0),n}function Vr(t,e){return function(s,r){const i=this,o=i.__v_raw,a=se(o),l=e?ul:t?hl:Gs;return!t&&He(a,"iterate",vn),o.forEach((u,c)=>s.call(r,l(u),l(c),i))}}function Hr(t,e,n){return function(...s){const r=this.__v_raw,i=se(r),o=Zn(i),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=r[t](...s),c=n?ul:e?hl:Gs;return!e&&He(i,"iterate",l?ga:vn),{next(){const{value:f,done:m}=u.next();return m?{value:f,done:m}:{value:a?[c(f[0]),c(f[1])]:c(f),done:m}},[Symbol.iterator](){return this}}}}function $t(t){return function(...e){return t==="delete"?!1:this}}function j0(){const t={get(i){return Br(this,i)},get size(){return $r(this)},has:xr,add:ec,set:tc,delete:nc,clear:sc,forEach:Vr(!1,!1)},e={get(i){return Br(this,i,!1,!0)},get size(){return $r(this)},has:xr,add:ec,set:tc,delete:nc,clear:sc,forEach:Vr(!1,!0)},n={get(i){return Br(this,i,!0)},get size(){return $r(this,!0)},has(i){return xr.call(this,i,!0)},add:$t("add"),set:$t("set"),delete:$t("delete"),clear:$t("clear"),forEach:Vr(!0,!1)},s={get(i){return Br(this,i,!0,!0)},get size(){return $r(this,!0)},has(i){return xr.call(this,i,!0)},add:$t("add"),set:$t("set"),delete:$t("delete"),clear:$t("clear"),forEach:Vr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=Hr(i,!1,!1),n[i]=Hr(i,!0,!1),e[i]=Hr(i,!1,!0),s[i]=Hr(i,!0,!0)}),[t,n,e,s]}const[U0,K0,W0,q0]=j0();function Xi(t,e){const n=e?t?q0:W0:t?K0:U0;return(s,r,i)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?s:Reflect.get(ae(n,r)&&r in s?n:s,r,i)}const z0={get:Xi(!1,!1)},Y0={get:Xi(!1,!0)},G0={get:Xi(!0,!1)},J0={get:Xi(!0,!0)},Th=new WeakMap,Ch=new WeakMap,Sh=new WeakMap,wh=new WeakMap;function X0(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Z0(t){return t.__v_skip||!Object.isExtensible(t)?0:X0(s0(t))}function vt(t){return On(t)?t:Zi(t,!1,vh,z0,Th)}function Oh(t){return Zi(t,!1,V0,Y0,Ch)}function cl(t){return Zi(t,!0,Ah,G0,Sh)}function Q0(t){return Zi(t,!0,H0,J0,wh)}function Zi(t,e,n,s,r){if(!fe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=r.get(t);if(i)return i;const o=Z0(t);if(o===0)return t;const a=new Proxy(t,o===2?s:n);return r.set(t,a),a}function Dt(t){return On(t)?Dt(t.__v_raw):!!(t&&t.__v_isReactive)}function On(t){return!!(t&&t.__v_isReadonly)}function Ys(t){return!!(t&&t.__v_isShallow)}function fl(t){return Dt(t)||On(t)}function se(t){const e=t&&t.__v_raw;return e?se(e):t}function br(t){return mi(t,"__v_skip",!0),t}const Gs=t=>fe(t)?vt(t):t,hl=t=>fe(t)?cl(t):t;function dl(t){Wt&&ft&&(t=se(t),Eh(t.dep||(t.dep=ll())))}function Qi(t,e){t=se(t);const n=t.dep;n&&ma(n)}function _e(t){return!!(t&&t.__v_isRef===!0)}function qt(t){return kh(t,!1)}function ev(t){return kh(t,!0)}function kh(t,e){return _e(t)?t:new tv(t,e)}class tv{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:se(e),this._value=n?e:Gs(e)}get value(){return dl(this),this._value}set value(e){const n=this.__v_isShallow||Ys(e)||On(e);e=n?e:se(e),ls(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Gs(e),Qi(this))}}function nv(t){Qi(t)}function pl(t){return _e(t)?t.value:t}function sv(t){return J(t)?t():pl(t)}const rv={get:(t,e,n)=>pl(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const r=t[e];return _e(r)&&!_e(n)?(r.value=n,!0):Reflect.set(t,e,n,s)}};function gl(t){return Dt(t)?t:new Proxy(t,rv)}class iv{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=e(()=>dl(this),()=>Qi(this));this._get=n,this._set=s}get value(){return this._get()}set value(e){this._set(e)}}function ov(t){return new iv(t)}function Nh(t){const e=j(t)?new Array(t.length):{};for(const n in t)e[n]=Dh(t,n);return e}class av{constructor(e,n,s){this._object=e,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return O0(se(this._object),this._key)}}class lv{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function uv(t,e,n){return _e(t)?t:J(t)?new lv(t):fe(t)&&arguments.length>1?Dh(t,e,n):qt(t)}function Dh(t,e,n){const s=t[e];return _e(s)?s:new av(t,e,n)}class cv{constructor(e,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new yr(e,()=>{this._dirty||(this._dirty=!0,Qi(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const e=se(this);return dl(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function fv(t,e,n=!1){let s,r;const i=J(t);return i?(s=t,r=Le):(s=t.get,r=t.set),new cv(s,r,i||!r,n)}function hv(t,...e){}function dv(t,e){}function Pt(t,e,n,s){let r;try{r=s?t(...s):t()}catch(i){Bn(i,e,n)}return r}function Ge(t,e,n,s){if(J(t)){const i=Pt(t,e,n,s);return i&&sl(i)&&i.catch(o=>{Bn(o,e,n)}),i}const r=[];for(let i=0;i>>1;Xs(De[s])_t&&De.splice(e,1)}function _l(t){j(t)?ts.push(...t):(!Ct||!Ct.includes(t,t.allowRecurse?dn+1:dn))&&ts.push(t),Ih()}function rc(t,e=Js?_t+1:0){for(;eXs(n)-Xs(s)),dn=0;dnt.id==null?1/0:t.id,_v=(t,e)=>{const n=Xs(t)-Xs(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Rh(t){_a=!1,Js=!0,De.sort(_v);const e=Le;try{for(_t=0;_tzn.emit(r,...i)),jr=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Fh(i,e)}),setTimeout(()=>{zn||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,jr=[])},3e3)):jr=[]}function Ev(t,e,...n){if(t.isUnmounted)return;const s=t.vnode.props||ce;let r=n;const i=e.startsWith("update:"),o=i&&e.slice(7);if(o&&o in s){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:m}=s[c]||ce;m&&(r=n.map(E=>Q(E)?E.trim():E)),f&&(r=n.map(_i))}let a,l=s[a=Qn(e)]||s[a=Qn(Ae(e))];!l&&i&&(l=s[a=Qn(ze(e))]),l&&Ge(l,t,6,r);const u=s[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Ge(u,t,6,r)}}function Lh(t,e,n=!1){const s=e.emitsCache,r=s.get(t);if(r!==void 0)return r;const i=t.emits;let o={},a=!1;if(!J(t)){const l=u=>{const c=Lh(u,e,!0);c&&(a=!0,re(o,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!a?(fe(t)&&s.set(t,null),null):(j(i)?i.forEach(l=>o[l]=null):re(o,i),fe(t)&&s.set(t,o),o)}function no(t,e){return!t||!Fn(e)?!1:(e=e.slice(2).replace(/Once$/,""),ae(t,e[0].toLowerCase()+e.slice(1))||ae(t,ze(e))||ae(t,e))}let we=null,so=null;function Zs(t){const e=we;return we=t,so=t&&t.type.__scopeId||null,e}function yv(t){so=t}function bv(){so=null}const vv=t=>El;function El(t,e=we,n){if(!e||t._n)return t;const s=(...r)=>{s._d&&Ca(-1);const i=Zs(e);let o;try{o=t(...r)}finally{Zs(i),s._d&&Ca(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function oi(t){const{type:e,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:a,attrs:l,emit:u,render:c,renderCache:f,data:m,setupState:E,ctx:p,inheritAttrs:h}=t;let y,d;const _=Zs(t);try{if(n.shapeFlag&4){const g=r||s;y=We(c.call(g,g,f,i,E,m,p)),d=l}else{const g=e;y=We(g.length>1?g(i,{attrs:l,slots:a,emit:u}):g(i,null)),d=e.props?l:Tv(l)}}catch(g){Hs.length=0,Bn(g,t,1),y=de(Ie)}let v=y;if(d&&h!==!1){const g=Object.keys(d),{shapeFlag:T}=v;g.length&&T&7&&(o&&g.some(tl)&&(d=Cv(d,o)),v=yt(v,d))}return n.dirs&&(v=yt(v),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),y=v,Zs(_),y}function Av(t){let e;for(let n=0;n{let e;for(const n in t)(n==="class"||n==="style"||Fn(n))&&((e||(e={}))[n]=t[n]);return e},Cv=(t,e)=>{const n={};for(const s in t)(!tl(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n};function Sv(t,e,n){const{props:s,children:r,component:i}=t,{props:o,children:a,patchFlag:l}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?ic(s,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let f=0;ft.__isSuspense,wv={name:"Suspense",__isSuspense:!0,process(t,e,n,s,r,i,o,a,l,u){t==null?kv(e,n,s,r,i,o,a,l,u):Nv(t,e,n,s,r,o,a,l,u)},hydrate:Dv,create:bl,normalize:Pv},Ov=wv;function Qs(t,e){const n=t.props&&t.props[e];J(n)&&n()}function kv(t,e,n,s,r,i,o,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),m=t.suspense=bl(t,r,s,e,f,n,i,o,a,l);u(null,m.pendingBranch=t.ssContent,f,null,s,m,i,o),m.deps>0?(Qs(t,"onPending"),Qs(t,"onFallback"),u(null,t.ssFallback,e,n,s,null,i,o),ns(m,t.ssFallback)):m.resolve(!1,!0)}function Nv(t,e,n,s,r,i,o,a,{p:l,um:u,o:{createElement:c}}){const f=e.suspense=t.suspense;f.vnode=e,e.el=t.el;const m=e.ssContent,E=e.ssFallback,{activeBranch:p,pendingBranch:h,isInFallback:y,isHydrating:d}=f;if(h)f.pendingBranch=m,ht(m,h)?(l(h,m,f.hiddenContainer,null,r,f,i,o,a),f.deps<=0?f.resolve():y&&(l(p,E,n,s,r,null,i,o,a),ns(f,E))):(f.pendingId++,d?(f.isHydrating=!1,f.activeBranch=h):u(h,r,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),y?(l(null,m,f.hiddenContainer,null,r,f,i,o,a),f.deps<=0?f.resolve():(l(p,E,n,s,r,null,i,o,a),ns(f,E))):p&&ht(m,p)?(l(p,m,n,s,r,f,i,o,a),f.resolve(!0)):(l(null,m,f.hiddenContainer,null,r,f,i,o,a),f.deps<=0&&f.resolve()));else if(p&&ht(m,p))l(p,m,n,s,r,f,i,o,a),ns(f,m);else if(Qs(e,"onPending"),f.pendingBranch=m,f.pendingId++,l(null,m,f.hiddenContainer,null,r,f,i,o,a),f.deps<=0)f.resolve();else{const{timeout:_,pendingId:v}=f;_>0?setTimeout(()=>{f.pendingId===v&&f.fallback(E)},_):_===0&&f.fallback(E)}}function bl(t,e,n,s,r,i,o,a,l,u,c=!1){const{p:f,m,um:E,n:p,o:{parentNode:h,remove:y}}=u;let d;const _=Iv(t);_&&e!=null&&e.pendingBranch&&(d=e.pendingId,e.deps++);const v=t.props?Ei(t.props.timeout):void 0,g={vnode:t,parent:e,parentComponent:n,isSVG:o,container:s,hiddenContainer:r,anchor:i,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:c,isUnmounted:!1,effects:[],resolve(T=!1,O=!1){const{vnode:S,activeBranch:b,pendingBranch:w,pendingId:k,effects:P,parentComponent:N,container:R}=g;if(g.isHydrating)g.isHydrating=!1;else if(!T){const G=b&&w.transition&&w.transition.mode==="out-in";G&&(b.transition.afterLeave=()=>{k===g.pendingId&&m(w,R,ie,0)});let{anchor:ie}=g;b&&(ie=p(b),E(b,N,g,!0)),G||m(w,R,ie,0)}ns(g,w),g.pendingBranch=null,g.isInFallback=!1;let x=g.parent,Z=!1;for(;x;){if(x.pendingBranch){x.effects.push(...P),Z=!0;break}x=x.parent}Z||_l(P),g.effects=[],_&&e&&e.pendingBranch&&d===e.pendingId&&(e.deps--,e.deps===0&&!O&&e.resolve()),Qs(S,"onResolve")},fallback(T){if(!g.pendingBranch)return;const{vnode:O,activeBranch:S,parentComponent:b,container:w,isSVG:k}=g;Qs(O,"onFallback");const P=p(S),N=()=>{g.isInFallback&&(f(null,T,w,P,b,null,k,a,l),ns(g,T))},R=T.transition&&T.transition.mode==="out-in";R&&(S.transition.afterLeave=N),g.isInFallback=!0,E(S,b,null,!0),R||N()},move(T,O,S){g.activeBranch&&m(g.activeBranch,T,O,S),g.container=T},next(){return g.activeBranch&&p(g.activeBranch)},registerDep(T,O){const S=!!g.pendingBranch;S&&g.deps++;const b=T.vnode.el;T.asyncDep.catch(w=>{Bn(w,T,0)}).then(w=>{if(T.isUnmounted||g.isUnmounted||g.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:k}=T;Sa(T,w,!1),b&&(k.el=b);const P=!b&&T.subTree.el;O(T,k,h(b||T.subTree.el),b?null:p(T.subTree),g,o,l),P&&y(P),yl(T,k.el),S&&--g.deps===0&&g.resolve()})},unmount(T,O){g.isUnmounted=!0,g.activeBranch&&E(g.activeBranch,n,T,O),g.pendingBranch&&E(g.pendingBranch,n,T,O)}};return g}function Dv(t,e,n,s,r,i,o,a,l){const u=e.suspense=bl(e,s,n,t.parentNode,document.createElement("div"),null,r,i,o,a,!0),c=l(t,u.pendingBranch=e.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function Pv(t){const{shapeFlag:e,children:n}=t,s=e&32;t.ssContent=oc(s?n.default:n),t.ssFallback=s?oc(n.fallback):de(Ie)}function oc(t){let e;if(J(t)){const n=Dn&&t._c;n&&(t._d=!1,Cr()),t=t(),n&&(t._d=!0,e=xe,pd())}return j(t)&&(t=Av(t)),t=We(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function Bh(t,e){e&&e.pendingBranch?j(t)?e.effects.push(...t):e.effects.push(t):_l(t)}function ns(t,e){t.activeBranch=e;const{vnode:n,parentComponent:s}=t,r=n.el=e.el;s&&s.subTree===n&&(s.vnode.el=r,yl(s,r))}function Iv(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function Rv(t,e){return vr(t,null,e)}function xh(t,e){return vr(t,null,{flush:"post"})}function Fv(t,e){return vr(t,null,{flush:"sync"})}const Ur={};function zt(t,e,n){return vr(t,e,n)}function vr(t,e,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=ce){var a;const l=al()===((a=ve)==null?void 0:a.scope)?ve:null;let u,c=!1,f=!1;if(_e(t)?(u=()=>t.value,c=Ys(t)):Dt(t)?(u=()=>t,s=!0):j(t)?(f=!0,c=t.some(g=>Dt(g)||Ys(g)),u=()=>t.map(g=>{if(_e(g))return g.value;if(Dt(g))return En(g);if(J(g))return Pt(g,l,2)})):J(t)?e?u=()=>Pt(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return m&&m(),Ge(t,l,3,[E])}:u=Le,e&&s){const g=u;u=()=>En(g())}let m,E=g=>{m=_.onStop=()=>{Pt(g,l,4)}},p;if(cs)if(E=Le,e?n&&Ge(e,l,3,[u(),f?[]:void 0,E]):u(),r==="sync"){const g=Od();p=g.__watcherHandles||(g.__watcherHandles=[])}else return Le;let h=f?new Array(t.length).fill(Ur):Ur;const y=()=>{if(_.active)if(e){const g=_.run();(s||c||(f?g.some((T,O)=>ls(T,h[O])):ls(g,h)))&&(m&&m(),Ge(e,l,3,[g,h===Ur?void 0:f&&h[0]===Ur?[]:h,E]),h=g)}else _.run()};y.allowRecurse=!!e;let d;r==="sync"?d=y:r==="post"?d=()=>ke(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),d=()=>to(y));const _=new yr(u,d);e?n?y():h=_.run():r==="post"?ke(_.run.bind(_),l&&l.suspense):_.run();const v=()=>{_.stop(),l&&l.scope&&nl(l.scope.effects,_)};return p&&p.push(v),v}function Lv(t,e,n){const s=this.proxy,r=Q(t)?t.includes(".")?$h(s,t):()=>s[t]:t.bind(s,s);let i;J(e)?i=e:(i=e.handler,n=e);const o=ve;sn(this);const a=vr(r,i.bind(s),n);return o?sn(o):Yt(),a}function $h(t,e){const n=e.split(".");return()=>{let s=t;for(let r=0;r{En(n,e)});else if(uh(t))for(const n in t)En(t[n],e);return t}function Mv(t,e){const n=we;if(n===null)return t;const s=fo(n)||n.proxy,r=t.dirs||(t.dirs=[]);for(let i=0;i{t.isMounted=!0}),lo(()=>{t.isUnmounting=!0}),t}const Ze=[Function,Array],Al={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ze,onEnter:Ze,onAfterEnter:Ze,onEnterCancelled:Ze,onBeforeLeave:Ze,onLeave:Ze,onAfterLeave:Ze,onLeaveCancelled:Ze,onBeforeAppear:Ze,onAppear:Ze,onAfterAppear:Ze,onAppearCancelled:Ze},Bv={name:"BaseTransition",props:Al,setup(t,{slots:e}){const n=Mt(),s=vl();let r;return()=>{const i=e.default&&ro(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const h of i)if(h.type!==Ie){o=h;break}}const a=se(t),{mode:l}=a;if(s.isLeaving)return jo(o);const u=ac(o);if(!u)return jo(o);const c=us(u,a,s,n);kn(u,c);const f=n.subTree,m=f&&ac(f);let E=!1;const{getTransitionKey:p}=u.type;if(p){const h=p();r===void 0?r=h:h!==r&&(r=h,E=!0)}if(m&&m.type!==Ie&&(!ht(u,m)||E)){const h=us(m,a,s,n);if(kn(m,h),l==="out-in")return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},jo(o);l==="in-out"&&u.type!==Ie&&(h.delayLeave=(y,d,_)=>{const v=Hh(s,m);v[String(m.key)]=m,y._leaveCb=()=>{d(),y._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=_})}return o}}},Vh=Bv;function Hh(t,e){const{leavingVNodes:n}=t;let s=n.get(e.type);return s||(s=Object.create(null),n.set(e.type,s)),s}function us(t,e,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:m,onAfterLeave:E,onLeaveCancelled:p,onBeforeAppear:h,onAppear:y,onAfterAppear:d,onAppearCancelled:_}=e,v=String(t.key),g=Hh(n,t),T=(b,w)=>{b&&Ge(b,s,9,w)},O=(b,w)=>{const k=w[1];T(b,w),j(b)?b.every(P=>P.length<=1)&&k():b.length<=1&&k()},S={mode:i,persisted:o,beforeEnter(b){let w=a;if(!n.isMounted)if(r)w=h||a;else return;b._leaveCb&&b._leaveCb(!0);const k=g[v];k&&ht(t,k)&&k.el._leaveCb&&k.el._leaveCb(),T(w,[b])},enter(b){let w=l,k=u,P=c;if(!n.isMounted)if(r)w=y||l,k=d||u,P=_||c;else return;let N=!1;const R=b._enterCb=x=>{N||(N=!0,x?T(P,[b]):T(k,[b]),S.delayedLeave&&S.delayedLeave(),b._enterCb=void 0)};w?O(w,[b,R]):R()},leave(b,w){const k=String(t.key);if(b._enterCb&&b._enterCb(!0),n.isUnmounting)return w();T(f,[b]);let P=!1;const N=b._leaveCb=R=>{P||(P=!0,w(),R?T(p,[b]):T(E,[b]),b._leaveCb=void 0,g[k]===t&&delete g[k])};g[k]=t,m?O(m,[b,N]):N()},clone(b){return us(b,e,n,s)}};return S}function jo(t){if(Ar(t))return t=yt(t),t.children=null,t}function ac(t){return Ar(t)?t.children?t.children[0]:void 0:t}function kn(t,e){t.shapeFlag&6&&t.component?kn(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function ro(t,e=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;ire({name:t.name},e,{setup:t}))():t}const An=t=>!!t.type.__asyncLoader;function jh(t){J(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:s,delay:r=200,timeout:i,suspensible:o=!0,onError:a}=t;let l=null,u,c=0;const f=()=>(c++,l=null,m()),m=()=>{let E;return l||(E=l=e().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),a)return new Promise((h,y)=>{a(p,()=>h(f()),()=>y(p),c+1)});throw p}).then(p=>E!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),u=p,p)))};return io({name:"AsyncComponentWrapper",__asyncLoader:m,get __asyncResolved(){return u},setup(){const E=ve;if(u)return()=>Uo(u,E);const p=_=>{l=null,Bn(_,E,13,!s)};if(o&&E.suspense||cs)return m().then(_=>()=>Uo(_,E)).catch(_=>(p(_),()=>s?de(s,{error:_}):null));const h=qt(!1),y=qt(),d=qt(!!r);return r&&setTimeout(()=>{d.value=!1},r),i!=null&&setTimeout(()=>{if(!h.value&&!y.value){const _=new Error(`Async component timed out after ${i}ms.`);p(_),y.value=_}},i),m().then(()=>{h.value=!0,E.parent&&Ar(E.parent.vnode)&&to(E.parent.update)}).catch(_=>{p(_),y.value=_}),()=>{if(h.value&&u)return Uo(u,E);if(y.value&&s)return de(s,{error:y.value});if(n&&!d.value)return de(n)}}})}function Uo(t,e){const{ref:n,props:s,children:r,ce:i}=e.vnode,o=de(t,s,r);return o.ref=n,o.ce=i,delete e.vnode.ce,o}const Ar=t=>t.type.__isKeepAlive,xv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Mt(),s=n.ctx;if(!s.renderer)return()=>{const _=e.default&&e.default();return _&&_.length===1?_[0]:_};const r=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=s,m=f("div");s.activate=(_,v,g,T,O)=>{const S=_.component;u(_,v,g,0,a),l(S.vnode,_,v,g,S,a,T,_.slotScopeIds,O),ke(()=>{S.isDeactivated=!1,S.a&&es(S.a);const b=_.props&&_.props.onVnodeMounted;b&&Me(b,S.parent,_)},a)},s.deactivate=_=>{const v=_.component;u(_,m,null,1,a),ke(()=>{v.da&&es(v.da);const g=_.props&&_.props.onVnodeUnmounted;g&&Me(g,v.parent,_),v.isDeactivated=!0},a)};function E(_){Ko(_),c(_,n,a,!0)}function p(_){r.forEach((v,g)=>{const T=Oa(v.type);T&&(!_||!_(T))&&h(g)})}function h(_){const v=r.get(_);!o||!ht(v,o)?E(v):o&&Ko(o),r.delete(_),i.delete(_)}zt(()=>[t.include,t.exclude],([_,v])=>{_&&p(g=>Ms(_,g)),v&&p(g=>!Ms(v,g))},{flush:"post",deep:!0});let y=null;const d=()=>{y!=null&&r.set(y,Wo(n.subTree))};return Tr(d),ao(d),lo(()=>{r.forEach(_=>{const{subTree:v,suspense:g}=n,T=Wo(v);if(_.type===T.type&&_.key===T.key){Ko(T);const O=T.component.da;O&&ke(O,g);return}E(_)})}),()=>{if(y=null,!e.default)return null;const _=e.default(),v=_[0];if(_.length>1)return o=null,_;if(!nn(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return o=null,v;let g=Wo(v);const T=g.type,O=Oa(An(g)?g.type.__asyncResolved||{}:T),{include:S,exclude:b,max:w}=t;if(S&&(!O||!Ms(S,O))||b&&O&&Ms(b,O))return o=g,v;const k=g.key==null?T:g.key,P=r.get(k);return g.el&&(g=yt(g),v.shapeFlag&128&&(v.ssContent=g)),y=k,P?(g.el=P.el,g.component=P.component,g.transition&&kn(g,g.transition),g.shapeFlag|=512,i.delete(k),i.add(k)):(i.add(k),w&&i.size>parseInt(w,10)&&h(i.values().next().value)),g.shapeFlag|=256,o=g,Mh(v.type)?v:g}}},$v=xv;function Ms(t,e){return j(t)?t.some(n=>Ms(n,e)):Q(t)?t.split(",").includes(e):n0(t)?t.test(e):!1}function Uh(t,e){Wh(t,"a",e)}function Kh(t,e){Wh(t,"da",e)}function Wh(t,e,n=ve){const s=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(oo(e,s,n),n){let r=n.parent;for(;r&&r.parent;)Ar(r.parent.vnode)&&Vv(s,e,n,r),r=r.parent}}function Vv(t,e,n,s){const r=oo(e,t,s,!0);uo(()=>{nl(s[e],r)},n)}function Ko(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Wo(t){return t.shapeFlag&128?t.ssContent:t}function oo(t,e,n=ve,s=!1){if(n){const r=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Ts(),sn(n);const a=Ge(e,n,t,o);return Yt(),Cs(),a});return s?r.unshift(i):r.push(i),i}}const Lt=t=>(e,n=ve)=>(!cs||t==="sp")&&oo(t,(...s)=>e(...s),n),qh=Lt("bm"),Tr=Lt("m"),zh=Lt("bu"),ao=Lt("u"),lo=Lt("bum"),uo=Lt("um"),Yh=Lt("sp"),Gh=Lt("rtg"),Jh=Lt("rtc");function Xh(t,e=ve){oo("ec",t,e)}const Tl="components",Hv="directives";function jv(t,e){return Cl(Tl,t,!0,e)||t}const Zh=Symbol.for("v-ndc");function Uv(t){return Q(t)?Cl(Tl,t,!1)||t:t||Zh}function Kv(t){return Cl(Hv,t)}function Cl(t,e,n=!0,s=!1){const r=we||ve;if(r){const i=r.type;if(t===Tl){const a=Oa(i,!1);if(a&&(a===e||a===Ae(e)||a===Mn(Ae(e))))return i}const o=lc(r[t]||i[t],e)||lc(r.appContext[t],e);return!o&&s?i:o}}function lc(t,e){return t&&(t[e]||t[Ae(e)]||t[Mn(Ae(e))])}function Wv(t,e,n,s){let r;const i=n&&n[s];if(j(t)||Q(t)){r=new Array(t.length);for(let o=0,a=t.length;oe(o,a,void 0,i&&i[a]));else{const o=Object.keys(t);r=new Array(o.length);for(let a=0,l=o.length;a{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return t}function zv(t,e,n={},s,r){if(we.isCE||we.parent&&An(we.parent)&&we.parent.isCE)return e!=="default"&&(n.name=e),de("slot",n,s&&s());let i=t[e];i&&i._c&&(i._d=!1),Cr();const o=i&&Qh(i(n)),a=kl(Ne,{key:n.key||o&&o.key||`_${e}`},o||(s?s():[]),o&&t._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Qh(t){return t.some(e=>nn(e)?!(e.type===Ie||e.type===Ne&&!Qh(e.children)):!0)?t:null}function Yv(t,e){const n={};for(const s in t)n[e&&/[A-Z]/.test(s)?`on:${s}`:Qn(s)]=t[s];return n}const Ea=t=>t?bd(t)?fo(t)||t.proxy:Ea(t.parent):null,$s=re(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Ea(t.parent),$root:t=>Ea(t.root),$emit:t=>t.emit,$options:t=>Sl(t),$forceUpdate:t=>t.f||(t.f=()=>to(t.update)),$nextTick:t=>t.n||(t.n=eo.bind(t.proxy)),$watch:t=>Lv.bind(t)}),qo=(t,e)=>t!==ce&&!t.__isScriptSetup&&ae(t,e),ya={get({_:t},e){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:l}=t;let u;if(e[0]!=="$"){const E=o[e];if(E!==void 0)switch(E){case 1:return s[e];case 2:return r[e];case 4:return n[e];case 3:return i[e]}else{if(qo(s,e))return o[e]=1,s[e];if(r!==ce&&ae(r,e))return o[e]=2,r[e];if((u=t.propsOptions[0])&&ae(u,e))return o[e]=3,i[e];if(n!==ce&&ae(n,e))return o[e]=4,n[e];ba&&(o[e]=0)}}const c=$s[e];let f,m;if(c)return e==="$attrs"&&He(t,"get",e),c(t);if((f=a.__cssModules)&&(f=f[e]))return f;if(n!==ce&&ae(n,e))return o[e]=4,n[e];if(m=l.config.globalProperties,ae(m,e))return m[e]},set({_:t},e,n){const{data:s,setupState:r,ctx:i}=t;return qo(r,e)?(r[e]=n,!0):s!==ce&&ae(s,e)?(s[e]=n,!0):ae(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let a;return!!n[o]||t!==ce&&ae(t,o)||qo(e,o)||(a=i[0])&&ae(a,o)||ae(s,o)||ae($s,o)||ae(r.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:ae(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}},Gv=re({},ya,{get(t,e){if(e!==Symbol.unscopables)return ya.get(t,e,t)},has(t,e){return e[0]!=="_"&&!l0(e)}});function Jv(){return null}function Xv(){return null}function Zv(t){}function Qv(t){}function eA(){return null}function tA(){}function nA(t,e){return null}function sA(){return ed().slots}function rA(){return ed().attrs}function iA(t,e,n){const s=Mt();if(n&&n.local){const r=qt(t[e]);return zt(()=>t[e],i=>r.value=i),zt(r,i=>{i!==t[e]&&s.emit(`update:${e}`,i)}),r}else return{__v_isRef:!0,get value(){return t[e]},set value(r){s.emit(`update:${e}`,r)}}}function ed(){const t=Mt();return t.setupContext||(t.setupContext=Cd(t))}function er(t){return j(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function oA(t,e){const n=er(t);for(const s in e){if(s.startsWith("__skip"))continue;let r=n[s];r?j(r)||J(r)?r=n[s]={type:r,default:e[s]}:r.default=e[s]:r===null&&(r=n[s]={default:e[s]}),r&&e[`__skip_${s}`]&&(r.skipFactory=!0)}return n}function aA(t,e){return!t||!e?t||e:j(t)&&j(e)?t.concat(e):re({},er(t),er(e))}function lA(t,e){const n={};for(const s in t)e.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>t[s]});return n}function uA(t){const e=Mt();let n=t();return Yt(),sl(n)&&(n=n.catch(s=>{throw sn(e),s})),[n,()=>sn(e)]}let ba=!0;function cA(t){const e=Sl(t),n=t.proxy,s=t.ctx;ba=!1,e.beforeCreate&&uc(e.beforeCreate,t,"bc");const{data:r,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:m,beforeUpdate:E,updated:p,activated:h,deactivated:y,beforeDestroy:d,beforeUnmount:_,destroyed:v,unmounted:g,render:T,renderTracked:O,renderTriggered:S,errorCaptured:b,serverPrefetch:w,expose:k,inheritAttrs:P,components:N,directives:R,filters:x}=e;if(u&&fA(u,s,null),o)for(const ie in o){const oe=o[ie];J(oe)&&(s[ie]=oe.bind(n))}if(r){const ie=r.call(n,n);fe(ie)&&(t.data=vt(ie))}if(ba=!0,i)for(const ie in i){const oe=i[ie],Oe=J(oe)?oe.bind(n,n):J(oe.get)?oe.get.bind(n,n):Le,cn=!J(oe)&&J(oe.set)?oe.set.bind(n):Le,ut=Fl({get:Oe,set:cn});Object.defineProperty(s,ie,{enumerable:!0,configurable:!0,get:()=>ut.value,set:Se=>ut.value=Se})}if(a)for(const ie in a)td(a[ie],s,n,ie);if(l){const ie=J(l)?l.call(n):l;Reflect.ownKeys(ie).forEach(oe=>{sd(oe,ie[oe])})}c&&uc(c,t,"c");function G(ie,oe){j(oe)?oe.forEach(Oe=>ie(Oe.bind(n))):oe&&ie(oe.bind(n))}if(G(qh,f),G(Tr,m),G(zh,E),G(ao,p),G(Uh,h),G(Kh,y),G(Xh,b),G(Jh,O),G(Gh,S),G(lo,_),G(uo,g),G(Yh,w),j(k))if(k.length){const ie=t.exposed||(t.exposed={});k.forEach(oe=>{Object.defineProperty(ie,oe,{get:()=>n[oe],set:Oe=>n[oe]=Oe})})}else t.exposed||(t.exposed={});T&&t.render===Le&&(t.render=T),P!=null&&(t.inheritAttrs=P),N&&(t.components=N),R&&(t.directives=R)}function fA(t,e,n=Le){j(t)&&(t=va(t));for(const s in t){const r=t[s];let i;fe(r)?"default"in r?i=ss(r.from||s,r.default,!0):i=ss(r.from||s):i=ss(r),_e(i)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[s]=i}}function uc(t,e,n){Ge(j(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function td(t,e,n,s){const r=s.includes(".")?$h(n,s):()=>n[s];if(Q(t)){const i=e[t];J(i)&&zt(r,i)}else if(J(t))zt(r,t.bind(n));else if(fe(t))if(j(t))t.forEach(i=>td(i,e,n,s));else{const i=J(t.handler)?t.handler.bind(n):e[t.handler];J(i)&&zt(r,i,t)}}function Sl(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e);let l;return a?l=a:!r.length&&!n&&!s?l=e:(l={},r.length&&r.forEach(u=>vi(l,u,o,!0)),vi(l,e,o)),fe(e)&&i.set(e,l),l}function vi(t,e,n,s=!1){const{mixins:r,extends:i}=e;i&&vi(t,i,n,!0),r&&r.forEach(o=>vi(t,o,n,!0));for(const o in e)if(!(s&&o==="expose")){const a=hA[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const hA={data:cc,props:fc,emits:fc,methods:Bs,computed:Bs,beforeCreate:Fe,created:Fe,beforeMount:Fe,mounted:Fe,beforeUpdate:Fe,updated:Fe,beforeDestroy:Fe,beforeUnmount:Fe,destroyed:Fe,unmounted:Fe,activated:Fe,deactivated:Fe,errorCaptured:Fe,serverPrefetch:Fe,components:Bs,directives:Bs,watch:pA,provide:cc,inject:dA};function cc(t,e){return e?t?function(){return re(J(t)?t.call(this,this):t,J(e)?e.call(this,this):e)}:e:t}function dA(t,e){return Bs(va(t),va(e))}function va(t){if(j(t)){const e={};for(let n=0;n1)return n&&J(e)?e.call(s&&s.proxy):e}}function rd(){return!!(ve||we||tr)}function _A(t,e,n,s=!1){const r={},i={};mi(i,co,1),t.propsDefaults=Object.create(null),id(t,e,r,i);for(const o in t.propsOptions[0])o in r||(r[o]=void 0);n?t.props=s?r:Oh(r):t.type.props?t.props=r:t.props=i,t.attrs=i}function EA(t,e,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=t,a=se(r),[l]=t.propsOptions;let u=!1;if((s||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let f=0;f{l=!0;const[m,E]=od(f,e,!0);re(o,m),E&&a.push(...E)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!l)return fe(t)&&s.set(t,Xn),Xn;if(j(i))for(let c=0;c-1,E[1]=h<0||p-1||ae(E,"default"))&&a.push(f)}}}const u=[o,a];return fe(t)&&s.set(t,u),u}function hc(t){return t[0]!=="$"}function dc(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function pc(t,e){return dc(t)===dc(e)}function gc(t,e){return j(e)?e.findIndex(n=>pc(n,t)):J(e)&&pc(e,t)?0:-1}const ad=t=>t[0]==="_"||t==="$stable",wl=t=>j(t)?t.map(We):[We(t)],yA=(t,e,n)=>{if(e._n)return e;const s=El((...r)=>wl(e(...r)),n);return s._c=!1,s},ld=(t,e,n)=>{const s=t._ctx;for(const r in t){if(ad(r))continue;const i=t[r];if(J(i))e[r]=yA(r,i,s);else if(i!=null){const o=wl(i);e[r]=()=>o}}},ud=(t,e)=>{const n=wl(e);t.slots.default=()=>n},bA=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=se(e),mi(e,"_",n)):ld(e,t.slots={})}else t.slots={},e&&ud(t,e);mi(t.slots,co,1)},vA=(t,e,n)=>{const{vnode:s,slots:r}=t;let i=!0,o=ce;if(s.shapeFlag&32){const a=e._;a?n&&a===1?i=!1:(re(r,e),!n&&a===1&&delete r._):(i=!e.$stable,ld(e,r)),o=e}else e&&(ud(t,e),o={default:1});if(i)for(const a in r)!ad(a)&&!(a in o)&&delete r[a]};function Ai(t,e,n,s,r=!1){if(j(t)){t.forEach((m,E)=>Ai(m,e&&(j(e)?e[E]:e),n,s,r));return}if(An(s)&&!r)return;const i=s.shapeFlag&4?fo(s.component)||s.component.proxy:s.el,o=r?null:i,{i:a,r:l}=t,u=e&&e.r,c=a.refs===ce?a.refs={}:a.refs,f=a.setupState;if(u!=null&&u!==l&&(Q(u)?(c[u]=null,ae(f,u)&&(f[u]=null)):_e(u)&&(u.value=null)),J(l))Pt(l,a,12,[o,c]);else{const m=Q(l),E=_e(l);if(m||E){const p=()=>{if(t.f){const h=m?ae(f,l)?f[l]:c[l]:l.value;r?j(h)&&nl(h,i):j(h)?h.includes(i)||h.push(i):m?(c[l]=[i],ae(f,l)&&(f[l]=c[l])):(l.value=[i],t.k&&(c[t.k]=l.value))}else m?(c[l]=o,ae(f,l)&&(f[l]=o)):E&&(l.value=o,t.k&&(c[t.k]=o))};o?(p.id=-1,ke(p,n)):p()}}}let Vt=!1;const Kr=t=>/svg/.test(t.namespaceURI)&&t.tagName!=="foreignObject",Wr=t=>t.nodeType===8;function AA(t){const{mt:e,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:u}}=t,c=(d,_)=>{if(!_.hasChildNodes()){n(null,d,_),bi(),_._vnode=d;return}Vt=!1,f(_.firstChild,d,null,null,null),bi(),_._vnode=d,Vt&&console.error("Hydration completed but contains mismatches.")},f=(d,_,v,g,T,O=!1)=>{const S=Wr(d)&&d.data==="[",b=()=>h(d,_,v,g,T,S),{type:w,ref:k,shapeFlag:P,patchFlag:N}=_;let R=d.nodeType;_.el=d,N===-2&&(O=!1,_.dynamicChildren=null);let x=null;switch(w){case Nn:R!==3?_.children===""?(l(_.el=r(""),o(d),d),x=d):x=b():(d.data!==_.children&&(Vt=!0,d.data=_.children),x=i(d));break;case Ie:R!==8||S?x=b():x=i(d);break;case Tn:if(S&&(d=i(d),R=d.nodeType),R===1||R===3){x=d;const Z=!_.children.length;for(let G=0;G<_.staticCount;G++)Z&&(_.children+=x.nodeType===1?x.outerHTML:x.data),G===_.staticCount-1&&(_.anchor=x),x=i(x);return S?i(x):x}else b();break;case Ne:S?x=p(d,_,v,g,T,O):x=b();break;default:if(P&1)R!==1||_.type.toLowerCase()!==d.tagName.toLowerCase()?x=b():x=m(d,_,v,g,T,O);else if(P&6){_.slotScopeIds=T;const Z=o(d);if(e(_,Z,null,v,g,Kr(Z),O),x=S?y(d):i(d),x&&Wr(x)&&x.data==="teleport end"&&(x=i(x)),An(_)){let G;S?(G=de(Ne),G.anchor=x?x.previousSibling:Z.lastChild):G=d.nodeType===3?Dl(""):de("div"),G.el=d,_.component.subTree=G}}else P&64?R!==8?x=b():x=_.type.hydrate(d,_,v,g,T,O,t,E):P&128&&(x=_.type.hydrate(d,_,v,g,Kr(o(d)),T,O,t,f))}return k!=null&&Ai(k,null,g,_),x},m=(d,_,v,g,T,O)=>{O=O||!!_.dynamicChildren;const{type:S,props:b,patchFlag:w,shapeFlag:k,dirs:P}=_,N=S==="input"&&P||S==="option";if(N||w!==-1){if(P&&mt(_,null,v,"created"),b)if(N||!O||w&48)for(const x in b)(N&&x.endsWith("value")||Fn(x)&&!bn(x))&&s(d,x,null,b[x],!1,void 0,v);else b.onClick&&s(d,"onClick",null,b.onClick,!1,void 0,v);let R;if((R=b&&b.onVnodeBeforeMount)&&Me(R,v,_),P&&mt(_,null,v,"beforeMount"),((R=b&&b.onVnodeMounted)||P)&&Bh(()=>{R&&Me(R,v,_),P&&mt(_,null,v,"mounted")},g),k&16&&!(b&&(b.innerHTML||b.textContent))){let x=E(d.firstChild,_,d,v,g,T,O);for(;x;){Vt=!0;const Z=x;x=x.nextSibling,a(Z)}}else k&8&&d.textContent!==_.children&&(Vt=!0,d.textContent=_.children)}return d.nextSibling},E=(d,_,v,g,T,O,S)=>{S=S||!!_.dynamicChildren;const b=_.children,w=b.length;for(let k=0;k{const{slotScopeIds:S}=_;S&&(T=T?T.concat(S):S);const b=o(d),w=E(i(d),_,b,v,g,T,O);return w&&Wr(w)&&w.data==="]"?i(_.anchor=w):(Vt=!0,l(_.anchor=u("]"),b,w),w)},h=(d,_,v,g,T,O)=>{if(Vt=!0,_.el=null,O){const w=y(d);for(;;){const k=i(d);if(k&&k!==w)a(k);else break}}const S=i(d),b=o(d);return a(d),n(null,_,b,S,v,g,Kr(b),T),S},y=d=>{let _=0;for(;d;)if(d=i(d),d&&Wr(d)&&(d.data==="["&&_++,d.data==="]")){if(_===0)return i(d);_--}return d};return[c,f]}const ke=Bh;function cd(t){return hd(t)}function fd(t){return hd(t,AA)}function hd(t,e){const n=da();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:m,setScopeId:E=Le,insertStaticContent:p}=t,h=(A,C,D,L=null,F=null,V=null,U=!1,$=null,H=!!C.dynamicChildren)=>{if(A===C)return;A&&!ht(A,C)&&(L=Nr(A),Se(A,F,V,!0),A=null),C.patchFlag===-2&&(H=!1,C.dynamicChildren=null);const{type:B,ref:W,shapeFlag:K}=C;switch(B){case Nn:y(A,C,D,L);break;case Ie:d(A,C,D,L);break;case Tn:A==null&&_(C,D,L,U);break;case Ne:N(A,C,D,L,F,V,U,$,H);break;default:K&1?T(A,C,D,L,F,V,U,$,H):K&6?R(A,C,D,L,F,V,U,$,H):(K&64||K&128)&&B.process(A,C,D,L,F,V,U,$,H,xn)}W!=null&&F&&Ai(W,A&&A.ref,V,C||A,!C)},y=(A,C,D,L)=>{if(A==null)s(C.el=a(C.children),D,L);else{const F=C.el=A.el;C.children!==A.children&&u(F,C.children)}},d=(A,C,D,L)=>{A==null?s(C.el=l(C.children||""),D,L):C.el=A.el},_=(A,C,D,L)=>{[A.el,A.anchor]=p(A.children,C,D,L,A.el,A.anchor)},v=({el:A,anchor:C},D,L)=>{let F;for(;A&&A!==C;)F=m(A),s(A,D,L),A=F;s(C,D,L)},g=({el:A,anchor:C})=>{let D;for(;A&&A!==C;)D=m(A),r(A),A=D;r(C)},T=(A,C,D,L,F,V,U,$,H)=>{U=U||C.type==="svg",A==null?O(C,D,L,F,V,U,$,H):w(A,C,F,V,U,$,H)},O=(A,C,D,L,F,V,U,$)=>{let H,B;const{type:W,props:K,shapeFlag:q,transition:X,dirs:ne}=A;if(H=A.el=o(A.type,V,K&&K.is,K),q&8?c(H,A.children):q&16&&b(A.children,H,null,L,F,V&&W!=="foreignObject",U,$),ne&&mt(A,null,L,"created"),S(H,A,A.scopeId,U,L),K){for(const he in K)he!=="value"&&!bn(he)&&i(H,he,null,K[he],V,A.children,L,F,At);"value"in K&&i(H,"value",null,K.value),(B=K.onVnodeBeforeMount)&&Me(B,L,A)}ne&&mt(A,null,L,"beforeMount");const pe=(!F||F&&!F.pendingBranch)&&X&&!X.persisted;pe&&X.beforeEnter(H),s(H,C,D),((B=K&&K.onVnodeMounted)||pe||ne)&&ke(()=>{B&&Me(B,L,A),pe&&X.enter(H),ne&&mt(A,null,L,"mounted")},F)},S=(A,C,D,L,F)=>{if(D&&E(A,D),L)for(let V=0;V{for(let B=H;B{const $=C.el=A.el;let{patchFlag:H,dynamicChildren:B,dirs:W}=C;H|=A.patchFlag&16;const K=A.props||ce,q=C.props||ce;let X;D&&fn(D,!1),(X=q.onVnodeBeforeUpdate)&&Me(X,D,C,A),W&&mt(C,A,D,"beforeUpdate"),D&&fn(D,!0);const ne=F&&C.type!=="foreignObject";if(B?k(A.dynamicChildren,B,$,D,L,ne,V):U||oe(A,C,$,null,D,L,ne,V,!1),H>0){if(H&16)P($,C,K,q,D,L,F);else if(H&2&&K.class!==q.class&&i($,"class",null,q.class,F),H&4&&i($,"style",K.style,q.style,F),H&8){const pe=C.dynamicProps;for(let he=0;he{X&&Me(X,D,C,A),W&&mt(C,A,D,"updated")},L)},k=(A,C,D,L,F,V,U)=>{for(let $=0;${if(D!==L){if(D!==ce)for(const $ in D)!bn($)&&!($ in L)&&i(A,$,D[$],null,U,C.children,F,V,At);for(const $ in L){if(bn($))continue;const H=L[$],B=D[$];H!==B&&$!=="value"&&i(A,$,B,H,U,C.children,F,V,At)}"value"in L&&i(A,"value",D.value,L.value)}},N=(A,C,D,L,F,V,U,$,H)=>{const B=C.el=A?A.el:a(""),W=C.anchor=A?A.anchor:a("");let{patchFlag:K,dynamicChildren:q,slotScopeIds:X}=C;X&&($=$?$.concat(X):X),A==null?(s(B,D,L),s(W,D,L),b(C.children,D,W,F,V,U,$,H)):K>0&&K&64&&q&&A.dynamicChildren?(k(A.dynamicChildren,q,D,F,V,U,$),(C.key!=null||F&&C===F.subTree)&&Ol(A,C,!0)):oe(A,C,D,W,F,V,U,$,H)},R=(A,C,D,L,F,V,U,$,H)=>{C.slotScopeIds=$,A==null?C.shapeFlag&512?F.ctx.activate(C,D,L,U,H):x(C,D,L,F,V,U,H):Z(A,C,H)},x=(A,C,D,L,F,V,U)=>{const $=A.component=yd(A,L,F);if(Ar(A)&&($.ctx.renderer=xn),vd($),$.asyncDep){if(F&&F.registerDep($,G),!A.el){const H=$.subTree=de(Ie);d(null,H,C,D)}return}G($,A,C,D,F,V,U)},Z=(A,C,D)=>{const L=C.component=A.component;if(Sv(A,C,D))if(L.asyncDep&&!L.asyncResolved){ie(L,C,D);return}else L.next=C,mv(L.update),L.update();else C.el=A.el,L.vnode=C},G=(A,C,D,L,F,V,U)=>{const $=()=>{if(A.isMounted){let{next:W,bu:K,u:q,parent:X,vnode:ne}=A,pe=W,he;fn(A,!1),W?(W.el=ne.el,ie(A,W,U)):W=ne,K&&es(K),(he=W.props&&W.props.onVnodeBeforeUpdate)&&Me(he,X,W,ne),fn(A,!0);const ye=oi(A),ct=A.subTree;A.subTree=ye,h(ct,ye,f(ct.el),Nr(ct),A,F,V),W.el=ye.el,pe===null&&yl(A,ye.el),q&&ke(q,F),(he=W.props&&W.props.onVnodeUpdated)&&ke(()=>Me(he,X,W,ne),F)}else{let W;const{el:K,props:q}=C,{bm:X,m:ne,parent:pe}=A,he=An(C);if(fn(A,!1),X&&es(X),!he&&(W=q&&q.onVnodeBeforeMount)&&Me(W,pe,C),fn(A,!0),K&&Ao){const ye=()=>{A.subTree=oi(A),Ao(K,A.subTree,A,F,null)};he?C.type.__asyncLoader().then(()=>!A.isUnmounted&&ye()):ye()}else{const ye=A.subTree=oi(A);h(null,ye,D,L,A,F,V),C.el=ye.el}if(ne&&ke(ne,F),!he&&(W=q&&q.onVnodeMounted)){const ye=C;ke(()=>Me(W,pe,ye),F)}(C.shapeFlag&256||pe&&An(pe.vnode)&&pe.vnode.shapeFlag&256)&&A.a&&ke(A.a,F),A.isMounted=!0,C=D=L=null}},H=A.effect=new yr($,()=>to(B),A.scope),B=A.update=()=>H.run();B.id=A.uid,fn(A,!0),B()},ie=(A,C,D)=>{C.component=A;const L=A.vnode.props;A.vnode=C,A.next=null,EA(A,C.props,L,D),vA(A,C.children,D),Ts(),rc(),Cs()},oe=(A,C,D,L,F,V,U,$,H=!1)=>{const B=A&&A.children,W=A?A.shapeFlag:0,K=C.children,{patchFlag:q,shapeFlag:X}=C;if(q>0){if(q&128){cn(B,K,D,L,F,V,U,$,H);return}else if(q&256){Oe(B,K,D,L,F,V,U,$,H);return}}X&8?(W&16&&At(B,F,V),K!==B&&c(D,K)):W&16?X&16?cn(B,K,D,L,F,V,U,$,H):At(B,F,V,!0):(W&8&&c(D,""),X&16&&b(K,D,L,F,V,U,$,H))},Oe=(A,C,D,L,F,V,U,$,H)=>{A=A||Xn,C=C||Xn;const B=A.length,W=C.length,K=Math.min(B,W);let q;for(q=0;qW?At(A,F,V,!0,!1,K):b(C,D,L,F,V,U,$,H,K)},cn=(A,C,D,L,F,V,U,$,H)=>{let B=0;const W=C.length;let K=A.length-1,q=W-1;for(;B<=K&&B<=q;){const X=A[B],ne=C[B]=H?Kt(C[B]):We(C[B]);if(ht(X,ne))h(X,ne,D,null,F,V,U,$,H);else break;B++}for(;B<=K&&B<=q;){const X=A[K],ne=C[q]=H?Kt(C[q]):We(C[q]);if(ht(X,ne))h(X,ne,D,null,F,V,U,$,H);else break;K--,q--}if(B>K){if(B<=q){const X=q+1,ne=Xq)for(;B<=K;)Se(A[B],F,V,!0),B++;else{const X=B,ne=B,pe=new Map;for(B=ne;B<=q;B++){const Ue=C[B]=H?Kt(C[B]):We(C[B]);Ue.key!=null&&pe.set(Ue.key,B)}let he,ye=0;const ct=q-ne+1;let $n=!1,au=0;const Os=new Array(ct);for(B=0;B=ct){Se(Ue,F,V,!0);continue}let gt;if(Ue.key!=null)gt=pe.get(Ue.key);else for(he=ne;he<=q;he++)if(Os[he-ne]===0&&ht(Ue,C[he])){gt=he;break}gt===void 0?Se(Ue,F,V,!0):(Os[gt-ne]=B+1,gt>=au?au=gt:$n=!0,h(Ue,C[gt],D,null,F,V,U,$,H),ye++)}const lu=$n?TA(Os):Xn;for(he=lu.length-1,B=ct-1;B>=0;B--){const Ue=ne+B,gt=C[Ue],uu=Ue+1{const{el:V,type:U,transition:$,children:H,shapeFlag:B}=A;if(B&6){ut(A.component.subTree,C,D,L);return}if(B&128){A.suspense.move(C,D,L);return}if(B&64){U.move(A,C,D,xn);return}if(U===Ne){s(V,C,D);for(let K=0;K$.enter(V),F);else{const{leave:K,delayLeave:q,afterLeave:X}=$,ne=()=>s(V,C,D),pe=()=>{K(V,()=>{ne(),X&&X()})};q?q(V,ne,pe):pe()}else s(V,C,D)},Se=(A,C,D,L=!1,F=!1)=>{const{type:V,props:U,ref:$,children:H,dynamicChildren:B,shapeFlag:W,patchFlag:K,dirs:q}=A;if($!=null&&Ai($,null,D,A,!0),W&256){C.ctx.deactivate(A);return}const X=W&1&&q,ne=!An(A);let pe;if(ne&&(pe=U&&U.onVnodeBeforeUnmount)&&Me(pe,C,A),W&6)ws(A.component,D,L);else{if(W&128){A.suspense.unmount(D,L);return}X&&mt(A,null,C,"beforeUnmount"),W&64?A.type.remove(A,C,D,F,xn,L):B&&(V!==Ne||K>0&&K&64)?At(B,C,D,!1,!0):(V===Ne&&K&384||!F&&W&16)&&At(H,C,D),L&&Ss(A)}(ne&&(pe=U&&U.onVnodeUnmounted)||X)&&ke(()=>{pe&&Me(pe,C,A),X&&mt(A,null,C,"unmounted")},D)},Ss=A=>{const{type:C,el:D,anchor:L,transition:F}=A;if(C===Ne){bo(D,L);return}if(C===Tn){g(A);return}const V=()=>{r(D),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(A.shapeFlag&1&&F&&!F.persisted){const{leave:U,delayLeave:$}=F,H=()=>U(D,V);$?$(A.el,V,H):H()}else V()},bo=(A,C)=>{let D;for(;A!==C;)D=m(A),r(A),A=D;r(C)},ws=(A,C,D)=>{const{bum:L,scope:F,update:V,subTree:U,um:$}=A;L&&es(L),F.stop(),V&&(V.active=!1,Se(U,A,C,D)),$&&ke($,C),ke(()=>{A.isUnmounted=!0},C),C&&C.pendingBranch&&!C.isUnmounted&&A.asyncDep&&!A.asyncResolved&&A.suspenseId===C.pendingId&&(C.deps--,C.deps===0&&C.resolve())},At=(A,C,D,L=!1,F=!1,V=0)=>{for(let U=V;UA.shapeFlag&6?Nr(A.component.subTree):A.shapeFlag&128?A.suspense.next():m(A.anchor||A.el),ou=(A,C,D)=>{A==null?C._vnode&&Se(C._vnode,null,null,!0):h(C._vnode||null,A,C,null,null,null,D),rc(),bi(),C._vnode=A},xn={p:h,um:Se,m:ut,r:Ss,mt:x,mc:b,pc:oe,pbc:k,n:Nr,o:t};let vo,Ao;return e&&([vo,Ao]=e(xn)),{render:ou,hydrate:vo,createApp:mA(ou,vo)}}function fn({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Ol(t,e,n=!1){const s=t.children,r=e.children;if(j(s)&&j(r))for(let i=0;i>1,t[n[a]]0&&(e[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}const CA=t=>t.__isTeleport,Vs=t=>t&&(t.disabled||t.disabled===""),mc=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Ta=(t,e)=>{const n=t&&t.to;return Q(n)?e?e(n):null:n},SA={__isTeleport:!0,process(t,e,n,s,r,i,o,a,l,u){const{mc:c,pc:f,pbc:m,o:{insert:E,querySelector:p,createText:h,createComment:y}}=u,d=Vs(e.props);let{shapeFlag:_,children:v,dynamicChildren:g}=e;if(t==null){const T=e.el=h(""),O=e.anchor=h("");E(T,n,s),E(O,n,s);const S=e.target=Ta(e.props,p),b=e.targetAnchor=h("");S&&(E(b,S),o=o||mc(S));const w=(k,P)=>{_&16&&c(v,k,P,r,i,o,a,l)};d?w(n,O):S&&w(S,b)}else{e.el=t.el;const T=e.anchor=t.anchor,O=e.target=t.target,S=e.targetAnchor=t.targetAnchor,b=Vs(t.props),w=b?n:O,k=b?T:S;if(o=o||mc(O),g?(m(t.dynamicChildren,g,w,r,i,o,a),Ol(t,e,!0)):l||f(t,e,w,k,r,i,o,a,!1),d)b||qr(e,n,T,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const P=e.target=Ta(e.props,p);P&&qr(e,P,null,u,0)}else b&&qr(e,O,S,u,1)}dd(e)},remove(t,e,n,s,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:l,anchor:u,targetAnchor:c,target:f,props:m}=t;if(f&&i(c),(o||!Vs(m))&&(i(u),a&16))for(let E=0;E0?xe||Xn:null,pd(),Dn>0&&xe&&xe.push(t),t}function md(t,e,n,s,r,i){return gd(Nl(t,e,n,s,r,i,!0))}function kl(t,e,n,s,r){return gd(de(t,e,n,s,r,!0))}function nn(t){return t?t.__v_isVNode===!0:!1}function ht(t,e){return t.type===e.type&&t.key===e.key}function kA(t){}const co="__vInternal",_d=({key:t})=>t??null,ai=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Q(t)||_e(t)||J(t)?{i:we,r:t,k:e,f:!!n}:t:null);function Nl(t,e=null,n=null,s=0,r=null,i=t===Ne?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&_d(e),ref:e&&ai(e),scopeId:so,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:we};return a?(Pl(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=Q(n)?8:16),Dn>0&&!o&&xe&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&xe.push(l),l}const de=NA;function NA(t,e=null,n=null,s=0,r=null,i=!1){if((!t||t===Zh)&&(t=Ie),nn(t)){const a=yt(t,e,!0);return n&&Pl(a,n),Dn>0&&!i&&xe&&(a.shapeFlag&6?xe[xe.indexOf(t)]=a:xe.push(a)),a.patchFlag|=-2,a}if(BA(t)&&(t=t.__vccOpts),e){e=Ed(e);let{class:a,style:l}=e;a&&!Q(a)&&(e.class=Er(a)),fe(l)&&(fl(l)&&!j(l)&&(l=re({},l)),e.style=_r(l))}const o=Q(t)?1:Mh(t)?128:CA(t)?64:fe(t)?4:J(t)?2:0;return Nl(t,e,n,s,r,o,i,!0)}function Ed(t){return t?fl(t)||co in t?re({},t):t:null}function yt(t,e,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=t,a=e?Il(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&_d(a),ref:e&&e.ref?n&&r?j(r)?r.concat(ai(e)):[r,ai(e)]:ai(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ne?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&yt(t.ssContent),ssFallback:t.ssFallback&&yt(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Dl(t=" ",e=0){return de(Nn,null,t,e)}function DA(t,e){const n=de(Tn,null,t);return n.staticCount=e,n}function PA(t="",e=!1){return e?(Cr(),kl(Ie,null,t)):de(Ie,null,t)}function We(t){return t==null||typeof t=="boolean"?de(Ie):j(t)?de(Ne,null,t.slice()):typeof t=="object"?Kt(t):de(Nn,null,String(t))}function Kt(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:yt(t)}function Pl(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(j(e))n=16;else if(typeof e=="object")if(s&65){const r=e.default;r&&(r._c&&(r._d=!1),Pl(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!(co in e)?e._ctx=we:r===3&&we&&(we.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else J(e)?(e={default:e,_ctx:we},n=32):(e=String(e),s&64?(n=16,e=[Dl(e)]):n=8);t.children=e,t.shapeFlag|=n}function Il(...t){const e={};for(let n=0;nve||we;let Rl,jn,_c="__VUE_INSTANCE_SETTERS__";(jn=da()[_c])||(jn=da()[_c]=[]),jn.push(t=>ve=t),Rl=t=>{jn.length>1?jn.forEach(e=>e(t)):jn[0](t)};const sn=t=>{Rl(t),t.scope.on()},Yt=()=>{ve&&ve.scope.off(),Rl(null)};function bd(t){return t.vnode.shapeFlag&4}let cs=!1;function vd(t,e=!1){cs=e;const{props:n,children:s}=t.vnode,r=bd(t);_A(t,n,r,e),bA(t,s);const i=r?FA(t,e):void 0;return cs=!1,i}function FA(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=br(new Proxy(t.ctx,ya));const{setup:s}=n;if(s){const r=t.setupContext=s.length>1?Cd(t):null;sn(t),Ts();const i=Pt(s,t,0,[t.props,r]);if(Cs(),Yt(),sl(i)){if(i.then(Yt,Yt),e)return i.then(o=>{Sa(t,o,e)}).catch(o=>{Bn(o,t,0)});t.asyncDep=i}else Sa(t,i,e)}else Td(t,e)}function Sa(t,e,n){J(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:fe(e)&&(t.setupState=gl(e)),Td(t,n)}let Ti,wa;function Ad(t){Ti=t,wa=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Gv))}}const LA=()=>!Ti;function Td(t,e,n){const s=t.type;if(!t.render){if(!e&&Ti&&!s.render){const r=s.template||Sl(t).template;if(r){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=s,u=re(re({isCustomElement:i,delimiters:a},o),l);s.render=Ti(r,u)}}t.render=s.render||Le,wa&&wa(t)}sn(t),Ts(),cA(t),Cs(),Yt()}function MA(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return He(t,"get","$attrs"),e[n]}}))}function Cd(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return MA(t)},slots:t.slots,emit:t.emit,expose:e}}function fo(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(gl(br(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in $s)return $s[n](t)},has(e,n){return n in e||n in $s}}))}function Oa(t,e=!0){return J(t)?t.displayName||t.name:t.name||e&&t.__name}function BA(t){return J(t)&&"__vccOpts"in t}const Fl=(t,e)=>fv(t,e,cs);function Sd(t,e,n){const s=arguments.length;return s===2?fe(e)&&!j(e)?nn(e)?de(t,null,[e]):de(t,e):de(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&nn(n)&&(n=[n]),de(t,e,n))}const wd=Symbol.for("v-scx"),Od=()=>ss(wd);function xA(){}function $A(t,e,n,s){const r=n[s];if(r&&kd(r,t))return r;const i=e();return i.memo=t.slice(),n[s]=i}function kd(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let s=0;s0&&xe&&xe.push(t),!0}const Nd="3.3.4",VA={createComponentInstance:yd,setupComponent:vd,renderComponentRoot:oi,setCurrentRenderingInstance:Zs,isVNode:nn,normalizeVNode:We},HA=VA,jA=null,UA=null,KA="http://www.w3.org/2000/svg",pn=typeof document<"u"?document:null,Ec=pn&&pn.createElement("template"),WA={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const r=e?pn.createElementNS(KA,t):pn.createElement(t,n?{is:n}:void 0);return t==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:t=>pn.createTextNode(t),createComment:t=>pn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>pn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,r,i){const o=n?n.previousSibling:e.lastChild;if(r&&(r===i||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ec.innerHTML=s?`${t}`:t;const a=Ec.content;if(s){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function qA(t,e,n){const s=t._vtc;s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function zA(t,e,n){const s=t.style,r=Q(n);if(n&&!r){if(e&&!Q(e))for(const i in e)n[i]==null&&ka(s,i,"");for(const i in n)ka(s,i,n[i])}else{const i=s.display;r?e!==n&&(s.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(s.display=i)}}const yc=/\s*!important$/;function ka(t,e,n){if(j(n))n.forEach(s=>ka(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=YA(t,e);yc.test(n)?t.setProperty(ze(s),n.replace(yc,""),"important"):t[s]=n}}const bc=["Webkit","Moz","ms"],zo={};function YA(t,e){const n=zo[e];if(n)return n;let s=Ae(e);if(s!=="filter"&&s in t)return zo[e]=s;s=Mn(s);for(let r=0;rYo||(eT.then(()=>Yo=0),Yo=Date.now());function nT(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ge(sT(s,n.value),e,5,[s])};return n.value=t,n.attached=tT(),n}function sT(t,e){if(j(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>r=>!r._stopped&&s&&s(r))}else return e}const Tc=/^on[a-z]/,rT=(t,e,n,s,r=!1,i,o,a,l)=>{e==="class"?qA(t,s,r):e==="style"?zA(t,n,s):Fn(e)?tl(e)||ZA(t,e,n,s,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):iT(t,e,s,r))?JA(t,e,s,i,o,a,l):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),GA(t,e,s,r))};function iT(t,e,n,s){return s?!!(e==="innerHTML"||e==="textContent"||e in t&&Tc.test(e)&&J(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Tc.test(e)&&Q(n)?!1:e in t}function Dd(t,e){const n=io(t);class s extends ho{constructor(i){super(n,i,e)}}return s.def=n,s}const oT=t=>Dd(t,qd),aT=typeof HTMLElement<"u"?HTMLElement:class{};class ho extends aT{constructor(e,n={},s){super(),this._def=e,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,eo(()=>{this._connected||(Pa(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s{for(const r of s)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const e=(s,r=!1)=>{const{props:i,styles:o}=s;let a;if(i&&!j(i))for(const l in i){const u=i[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Ei(this._props[l])),(a||(a=Object.create(null)))[Ae(l)]=!0)}this._numberProps=a,r&&this._resolveProps(s),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(s=>e(s,!0)):e(this._def)}_resolveProps(e){const{props:n}=e,s=j(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&s.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of s.map(Ae))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(e){let n=this.getAttribute(e);const s=Ae(e);this._numberProps&&this._numberProps[s]&&(n=Ei(n)),this._setProp(s,n,!1)}_getProp(e){return this._props[e]}_setProp(e,n,s=!0,r=!0){n!==this._props[e]&&(this._props[e]=n,r&&this._instance&&this._update(),s&&(n===!0?this.setAttribute(ze(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ze(e),n+""):n||this.removeAttribute(ze(e))))}_update(){Pa(this._createVNode(),this.shadowRoot)}_createVNode(){const e=de(this._def,re({},this._props));return this._instance||(e.ce=n=>{this._instance=n,n.isCE=!0;const s=(i,o)=>{this.dispatchEvent(new CustomEvent(i,{detail:o}))};n.emit=(i,...o)=>{s(i,o),ze(i)!==i&&s(ze(i),o)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof ho){n.parent=r._instance,n.provides=r._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s)})}}function lT(t="$style"){{const e=Mt();if(!e)return ce;const n=e.type.__cssModules;if(!n)return ce;const s=n[t];return s||ce}}function uT(t){const e=Mt();if(!e)return;const n=e.ut=(r=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(i=>Da(i,r))},s=()=>{const r=t(e.proxy);Na(e.subTree,r),n(r)};xh(s),Tr(()=>{const r=new MutationObserver(s);r.observe(e.subTree.el.parentNode,{childList:!0}),uo(()=>r.disconnect())})}function Na(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Na(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Da(t.el,e);else if(t.type===Ne)t.children.forEach(n=>Na(n,e));else if(t.type===Tn){let{el:n,anchor:s}=t;for(;n&&(Da(n,e),n!==s);)n=n.nextSibling}}function Da(t,e){if(t.nodeType===1){const n=t.style;for(const s in e)n.setProperty(`--${s}`,e[s])}}const Ht="transition",Ps="animation",Ll=(t,{slots:e})=>Sd(Vh,Id(t),e);Ll.displayName="Transition";const Pd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},cT=Ll.props=re({},Al,Pd),hn=(t,e=[])=>{j(t)?t.forEach(n=>n(...e)):t&&t(...e)},Cc=t=>t?j(t)?t.some(e=>e.length>1):t.length>1:!1;function Id(t){const e={};for(const N in t)N in Pd||(e[N]=t[N]);if(t.css===!1)return e;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:E=`${n}-leave-to`}=t,p=fT(r),h=p&&p[0],y=p&&p[1],{onBeforeEnter:d,onEnter:_,onEnterCancelled:v,onLeave:g,onLeaveCancelled:T,onBeforeAppear:O=d,onAppear:S=_,onAppearCancelled:b=v}=e,w=(N,R,x)=>{jt(N,R?c:a),jt(N,R?u:o),x&&x()},k=(N,R)=>{N._isLeaving=!1,jt(N,f),jt(N,E),jt(N,m),R&&R()},P=N=>(R,x)=>{const Z=N?S:_,G=()=>w(R,N,x);hn(Z,[R,G]),Sc(()=>{jt(R,N?l:i),Tt(R,N?c:a),Cc(Z)||wc(R,s,h,G)})};return re(e,{onBeforeEnter(N){hn(d,[N]),Tt(N,i),Tt(N,o)},onBeforeAppear(N){hn(O,[N]),Tt(N,l),Tt(N,u)},onEnter:P(!1),onAppear:P(!0),onLeave(N,R){N._isLeaving=!0;const x=()=>k(N,R);Tt(N,f),Fd(),Tt(N,m),Sc(()=>{N._isLeaving&&(jt(N,f),Tt(N,E),Cc(g)||wc(N,s,y,x))}),hn(g,[N,x])},onEnterCancelled(N){w(N,!1),hn(v,[N])},onAppearCancelled(N){w(N,!0),hn(b,[N])},onLeaveCancelled(N){k(N),hn(T,[N])}})}function fT(t){if(t==null)return null;if(fe(t))return[Go(t.enter),Go(t.leave)];{const e=Go(t);return[e,e]}}function Go(t){return Ei(t)}function Tt(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function jt(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function Sc(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let hT=0;function wc(t,e,n,s){const r=t._endId=++hT,i=()=>{r===t._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=Rd(t,e);if(!o)return s();const u=o+"end";let c=0;const f=()=>{t.removeEventListener(u,m),i()},m=E=>{E.target===t&&++c>=l&&f()};setTimeout(()=>{c(n[p]||"").split(", "),r=s(`${Ht}Delay`),i=s(`${Ht}Duration`),o=Oc(r,i),a=s(`${Ps}Delay`),l=s(`${Ps}Duration`),u=Oc(a,l);let c=null,f=0,m=0;e===Ht?o>0&&(c=Ht,f=o,m=i.length):e===Ps?u>0&&(c=Ps,f=u,m=l.length):(f=Math.max(o,u),c=f>0?o>u?Ht:Ps:null,m=c?c===Ht?i.length:l.length:0);const E=c===Ht&&/\b(transform|all)(,|$)/.test(s(`${Ht}Property`).toString());return{type:c,timeout:f,propCount:m,hasTransform:E}}function Oc(t,e){for(;t.lengthkc(n)+kc(t[s])))}function kc(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Fd(){return document.body.offsetHeight}const Ld=new WeakMap,Md=new WeakMap,Bd={name:"TransitionGroup",props:re({},cT,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Mt(),s=vl();let r,i;return ao(()=>{if(!r.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!ET(r[0].el,n.vnode.el,o))return;r.forEach(gT),r.forEach(mT);const a=r.filter(_T);Fd(),a.forEach(l=>{const u=l.el,c=u.style;Tt(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u._moveCb=m=>{m&&m.target!==u||(!m||/transform$/.test(m.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,jt(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=se(t),a=Id(o);let l=o.tag||Ne;r=i,i=e.default?ro(e.default()):[];for(let u=0;udelete t.mode;Bd.props;const pT=Bd;function gT(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function mT(t){Md.set(t,t.el.getBoundingClientRect())}function _T(t){const e=Ld.get(t),n=Md.get(t),s=e.left-n.left,r=e.top-n.top;if(s||r){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",t}}function ET(t,e,n){const s=t.cloneNode();t._vtc&&t._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const r=e.nodeType===1?e:e.parentNode;r.appendChild(s);const{hasTransform:i}=Rd(s);return r.removeChild(s),i}const rn=t=>{const e=t.props["onUpdate:modelValue"]||!1;return j(e)?n=>es(e,n):e};function yT(t){t.target.composing=!0}function Nc(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ci={created(t,{modifiers:{lazy:e,trim:n,number:s}},r){t._assign=rn(r);const i=s||r.props&&r.props.type==="number";St(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;n&&(a=a.trim()),i&&(a=_i(a)),t._assign(a)}),n&&St(t,"change",()=>{t.value=t.value.trim()}),e||(St(t,"compositionstart",yT),St(t,"compositionend",Nc),St(t,"change",Nc))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:s,number:r}},i){if(t._assign=rn(i),t.composing||document.activeElement===t&&t.type!=="range"&&(n||s&&t.value.trim()===e||(r||t.type==="number")&&_i(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},Ml={deep:!0,created(t,e,n){t._assign=rn(n),St(t,"change",()=>{const s=t._modelValue,r=fs(t),i=t.checked,o=t._assign;if(j(s)){const a=Yi(s,r),l=a!==-1;if(i&&!l)o(s.concat(r));else if(!i&&l){const u=[...s];u.splice(a,1),o(u)}}else if(Ln(s)){const a=new Set(s);i?a.add(r):a.delete(r),o(a)}else o($d(t,i))})},mounted:Dc,beforeUpdate(t,e,n){t._assign=rn(n),Dc(t,e,n)}};function Dc(t,{value:e,oldValue:n},s){t._modelValue=e,j(e)?t.checked=Yi(e,s.props.value)>-1:Ln(e)?t.checked=e.has(s.props.value):e!==n&&(t.checked=en(e,$d(t,!0)))}const Bl={created(t,{value:e},n){t.checked=en(e,n.props.value),t._assign=rn(n),St(t,"change",()=>{t._assign(fs(t))})},beforeUpdate(t,{value:e,oldValue:n},s){t._assign=rn(s),e!==n&&(t.checked=en(e,s.props.value))}},xd={deep:!0,created(t,{value:e,modifiers:{number:n}},s){const r=Ln(e);St(t,"change",()=>{const i=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?_i(fs(o)):fs(o));t._assign(t.multiple?r?new Set(i):i:i[0])}),t._assign=rn(s)},mounted(t,{value:e}){Pc(t,e)},beforeUpdate(t,e,n){t._assign=rn(n)},updated(t,{value:e}){Pc(t,e)}};function Pc(t,e){const n=t.multiple;if(!(n&&!j(e)&&!Ln(e))){for(let s=0,r=t.options.length;s-1:i.selected=e.has(o);else if(en(fs(i),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function fs(t){return"_value"in t?t._value:t.value}function $d(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const Vd={created(t,e,n){zr(t,e,n,null,"created")},mounted(t,e,n){zr(t,e,n,null,"mounted")},beforeUpdate(t,e,n,s){zr(t,e,n,s,"beforeUpdate")},updated(t,e,n,s){zr(t,e,n,s,"updated")}};function Hd(t,e){switch(t){case"SELECT":return xd;case"TEXTAREA":return Ci;default:switch(e){case"checkbox":return Ml;case"radio":return Bl;default:return Ci}}}function zr(t,e,n,s,r){const o=Hd(t.tagName,n.props&&n.props.type)[r];o&&o(t,e,n,s)}function bT(){Ci.getSSRProps=({value:t})=>({value:t}),Bl.getSSRProps=({value:t},e)=>{if(e.props&&en(e.props.value,t))return{checked:!0}},Ml.getSSRProps=({value:t},e)=>{if(j(t)){if(e.props&&Yi(t,e.props.value)>-1)return{checked:!0}}else if(Ln(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},Vd.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const n=Hd(e.type.toUpperCase(),e.props&&e.props.type);if(n.getSSRProps)return n.getSSRProps(t,e)}}const vT=["ctrl","shift","alt","meta"],AT={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>vT.some(n=>t[`${n}Key`]&&!e.includes(n))},TT=(t,e)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=ze(n.key);if(e.some(r=>r===s||CT[r]===s))return t(n)},jd={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Is(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),Is(t,!0),s.enter(t)):s.leave(t,()=>{Is(t,!1)}):Is(t,e))},beforeUnmount(t,{value:e}){Is(t,e)}};function Is(t,e){t.style.display=e?t._vod:"none"}function wT(){jd.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const Ud=re({patchProp:rT},WA);let js,Ic=!1;function Kd(){return js||(js=cd(Ud))}function Wd(){return js=Ic?js:fd(Ud),Ic=!0,js}const Pa=(...t)=>{Kd().render(...t)},qd=(...t)=>{Wd().hydrate(...t)},zd=(...t)=>{const e=Kd().createApp(...t),{mount:n}=e;return e.mount=s=>{const r=Yd(s);if(!r)return;const i=e._component;!J(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e},OT=(...t)=>{const e=Wd().createApp(...t),{mount:n}=e;return e.mount=s=>{const r=Yd(s);if(r)return n(r,!0,r instanceof SVGElement)},e};function Yd(t){return Q(t)?document.querySelector(t):t}let Rc=!1;const kT=()=>{Rc||(Rc=!0,bT(),wT())},NT=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Vh,BaseTransitionPropsValidators:Al,Comment:Ie,EffectScope:il,Fragment:Ne,KeepAlive:$v,ReactiveEffect:yr,Static:Tn,Suspense:Ov,Teleport:OA,Text:Nn,Transition:Ll,TransitionGroup:pT,VueElement:ho,assertNumber:dv,callWithAsyncErrorHandling:Ge,callWithErrorHandling:Pt,camelize:Ae,capitalize:Mn,cloneVNode:yt,compatUtils:UA,computed:Fl,createApp:zd,createBlock:kl,createCommentVNode:PA,createElementBlock:md,createElementVNode:Nl,createHydrationRenderer:fd,createPropsRestProxy:lA,createRenderer:cd,createSSRApp:OT,createSlots:qv,createStaticVNode:DA,createTextVNode:Dl,createVNode:de,customRef:ov,defineAsyncComponent:jh,defineComponent:io,defineCustomElement:Dd,defineEmits:Xv,defineExpose:Zv,defineModel:tA,defineOptions:Qv,defineProps:Jv,defineSSRCustomElement:oT,defineSlots:eA,get devtools(){return zn},effect:S0,effectScope:ol,getCurrentInstance:Mt,getCurrentScope:al,getTransitionRawChildren:ro,guardReactiveProps:Ed,h:Sd,handleError:Bn,hasInjectionContext:rd,hydrate:qd,initCustomFormatter:xA,initDirectivesForSSR:kT,inject:ss,isMemoSame:kd,isProxy:fl,isReactive:Dt,isReadonly:On,isRef:_e,isRuntimeOnly:LA,isShallow:Ys,isVNode:nn,markRaw:br,mergeDefaults:oA,mergeModels:aA,mergeProps:Il,nextTick:eo,normalizeClass:Er,normalizeProps:h0,normalizeStyle:_r,onActivated:Uh,onBeforeMount:qh,onBeforeUnmount:lo,onBeforeUpdate:zh,onDeactivated:Kh,onErrorCaptured:Xh,onMounted:Tr,onRenderTracked:Jh,onRenderTriggered:Gh,onScopeDispose:ph,onServerPrefetch:Yh,onUnmounted:uo,onUpdated:ao,openBlock:Cr,popScopeId:bv,provide:sd,proxyRefs:gl,pushScopeId:yv,queuePostFlushCb:_l,reactive:vt,readonly:cl,ref:qt,registerRuntimeCompiler:Ad,render:Pa,renderList:Wv,renderSlot:zv,resolveComponent:jv,resolveDirective:Kv,resolveDynamicComponent:Uv,resolveFilter:jA,resolveTransitionHooks:us,setBlockTracking:Ca,setDevtoolsHook:Fh,setTransitionHooks:kn,shallowReactive:Oh,shallowReadonly:Q0,shallowRef:ev,ssrContextKey:wd,ssrUtils:HA,stop:w0,toDisplayString:A0,toHandlerKey:Qn,toHandlers:Yv,toRaw:se,toRef:uv,toRefs:Nh,toValue:sv,transformVNodeArgs:kA,triggerRef:nv,unref:pl,useAttrs:rA,useCssModule:lT,useCssVars:uT,useModel:iA,useSSRContext:Od,useSlots:sA,useTransitionState:vl,vModelCheckbox:Ml,vModelDynamic:Vd,vModelRadio:Bl,vModelSelect:xd,vModelText:Ci,vShow:jd,version:Nd,warn:hv,watch:zt,watchEffect:Rv,watchPostEffect:xh,watchSyncEffect:Fv,withAsyncContext:uA,withCtx:El,withDefaults:nA,withDirectives:Mv,withKeys:ST,withMemo:$A,withModifiers:TT,withScopeId:vv},Symbol.toStringTag,{value:"Module"}));function xl(t){throw t}function Gd(t){}function me(t,e,n,s){const r=t,i=new SyntaxError(String(r));return i.code=t,i.loc=e,i}const nr=Symbol(""),Us=Symbol(""),$l=Symbol(""),Si=Symbol(""),Jd=Symbol(""),Pn=Symbol(""),Xd=Symbol(""),Zd=Symbol(""),Vl=Symbol(""),Hl=Symbol(""),Sr=Symbol(""),jl=Symbol(""),Qd=Symbol(""),Ul=Symbol(""),wi=Symbol(""),Kl=Symbol(""),Wl=Symbol(""),ql=Symbol(""),zl=Symbol(""),ep=Symbol(""),tp=Symbol(""),po=Symbol(""),Oi=Symbol(""),Yl=Symbol(""),Gl=Symbol(""),sr=Symbol(""),wr=Symbol(""),Jl=Symbol(""),Ia=Symbol(""),DT=Symbol(""),Ra=Symbol(""),ki=Symbol(""),PT=Symbol(""),IT=Symbol(""),Xl=Symbol(""),RT=Symbol(""),FT=Symbol(""),Zl=Symbol(""),np=Symbol(""),hs={[nr]:"Fragment",[Us]:"Teleport",[$l]:"Suspense",[Si]:"KeepAlive",[Jd]:"BaseTransition",[Pn]:"openBlock",[Xd]:"createBlock",[Zd]:"createElementBlock",[Vl]:"createVNode",[Hl]:"createElementVNode",[Sr]:"createCommentVNode",[jl]:"createTextVNode",[Qd]:"createStaticVNode",[Ul]:"resolveComponent",[wi]:"resolveDynamicComponent",[Kl]:"resolveDirective",[Wl]:"resolveFilter",[ql]:"withDirectives",[zl]:"renderList",[ep]:"renderSlot",[tp]:"createSlots",[po]:"toDisplayString",[Oi]:"mergeProps",[Yl]:"normalizeClass",[Gl]:"normalizeStyle",[sr]:"normalizeProps",[wr]:"guardReactiveProps",[Jl]:"toHandlers",[Ia]:"camelize",[DT]:"capitalize",[Ra]:"toHandlerKey",[ki]:"setBlockTracking",[PT]:"pushScopeId",[IT]:"popScopeId",[Xl]:"withCtx",[RT]:"unref",[FT]:"isRef",[Zl]:"withMemo",[np]:"isMemoSame"};function LT(t){Object.getOwnPropertySymbols(t).forEach(e=>{hs[e]=t[e]})}const Xe={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function MT(t,e=Xe){return{type:0,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:e}}function rr(t,e,n,s,r,i,o,a=!1,l=!1,u=!1,c=Xe){return t&&(a?(t.helper(Pn),t.helper(gs(t.inSSR,u))):t.helper(ps(t.inSSR,u)),o&&t.helper(ql)),{type:13,tag:e,props:n,children:s,patchFlag:r,dynamicProps:i,directives:o,isBlock:a,disableTracking:l,isComponent:u,loc:c}}function Or(t,e=Xe){return{type:17,loc:e,elements:t}}function tt(t,e=Xe){return{type:15,loc:e,properties:t}}function Ee(t,e){return{type:16,loc:Xe,key:Q(t)?ee(t,!0):t,value:e}}function ee(t,e=!1,n=Xe,s=0){return{type:4,loc:n,content:t,isStatic:e,constType:e?3:s}}function dt(t,e=Xe){return{type:8,loc:e,children:t}}function be(t,e=[],n=Xe){return{type:14,loc:n,callee:t,arguments:e}}function ds(t,e=void 0,n=!1,s=!1,r=Xe){return{type:18,params:t,returns:e,newline:n,isSlot:s,loc:r}}function Fa(t,e,n,s=!0){return{type:19,test:t,consequent:e,alternate:n,newline:s,loc:Xe}}function BT(t,e,n=!1){return{type:20,index:t,value:e,isVNode:n,loc:Xe}}function xT(t){return{type:21,body:t,loc:Xe}}function ps(t,e){return t||e?Vl:Hl}function gs(t,e){return t||e?Xd:Zd}function Ql(t,{helper:e,removeHelper:n,inSSR:s}){t.isBlock||(t.isBlock=!0,n(ps(s,t.isComponent)),e(Pn),e(gs(s,t.isComponent)))}const $e=t=>t.type===4&&t.isStatic,Gn=(t,e)=>t===e||t===ze(e);function sp(t){if(Gn(t,"Teleport"))return Us;if(Gn(t,"Suspense"))return $l;if(Gn(t,"KeepAlive"))return Si;if(Gn(t,"BaseTransition"))return Jd}const $T=/^\d|[^\$\w]/,eu=t=>!$T.test(t),VT=/[A-Za-z_$\xA0-\uFFFF]/,HT=/[\.\?\w$\xA0-\uFFFF]/,jT=/\s+[.[]\s*|\s*[.[]\s+/g,UT=t=>{t=t.trim().replace(jT,o=>o.trim());let e=0,n=[],s=0,r=0,i=null;for(let o=0;oe.type===7&&e.name==="bind"&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function Jo(t){return t.type===5||t.type===2}function WT(t){return t.type===7&&t.name==="slot"}function Pi(t){return t.type===1&&t.tagType===3}function Ii(t){return t.type===1&&t.tagType===2}const qT=new Set([sr,wr]);function op(t,e=[]){if(t&&!Q(t)&&t.type===14){const n=t.callee;if(!Q(n)&&qT.has(n))return op(t.arguments[0],e.concat(t))}return[t,e]}function Ri(t,e,n){let s,r=t.type===13?t.props:t.arguments[2],i=[],o;if(r&&!Q(r)&&r.type===14){const a=op(r);r=a[0],i=a[1],o=i[i.length-1]}if(r==null||Q(r))s=tt([e]);else if(r.type===14){const a=r.arguments[0];!Q(a)&&a.type===15?Fc(e,a)||a.properties.unshift(e):r.callee===Jl?s=be(n.helper(Oi),[tt([e]),r]):r.arguments.unshift(tt([e])),!s&&(s=r)}else r.type===15?(Fc(e,r)||r.properties.unshift(e),s=r):(s=be(n.helper(Oi),[tt([e]),r]),o&&o.callee===wr&&(o=i[i.length-2]));t.type===13?o?o.arguments[0]=s:t.props=s:o?o.arguments[0]=s:t.arguments[2]=s}function Fc(t,e){let n=!1;if(t.key.type===4){const s=t.key.content;n=e.properties.some(r=>r.key.type===4&&r.key.content===s)}return n}function ir(t,e){return`_${e}_${t.replace(/[^\w]/g,(n,s)=>n==="-"?"_":t.charCodeAt(s).toString())}`}function zT(t){return t.type===14&&t.callee===Zl?t.arguments[1].returns:t}function Lc(t,e){const n=e.options?e.options.compatConfig:e.compatConfig,s=n&&n[t];return t==="MODE"?s||3:s}function Cn(t,e){const n=Lc("MODE",e),s=Lc(t,e);return n===3?s===!0:s!==!1}function or(t,e,n,...s){return Cn(t,e)}const YT=/&(gt|lt|amp|apos|quot);/g,GT={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Mc={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:ii,isPreTag:ii,isCustomElement:ii,decodeEntities:t=>t.replace(YT,(e,n)=>GT[n]),onError:xl,onWarn:Gd,comments:!1};function JT(t,e={}){const n=XT(t,e),s=Je(n);return MT(tu(n,0,[]),at(n,s))}function XT(t,e){const n=re({},Mc);let s;for(s in e)n[s]=e[s]===void 0?Mc[s]:e[s];return{options:n,column:1,line:1,offset:0,originalSource:t,source:t,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function tu(t,e,n){const s=mo(n),r=s?s.ns:0,i=[];for(;!oC(t,e,n);){const a=t.source;let l;if(e===0||e===1){if(!t.inVPre&&Pe(a,t.options.delimiters[0]))l=rC(t,e);else if(e===0&&a[0]==="<")if(a.length===1)ue(t,5,1);else if(a[1]==="!")Pe(a,"=0;){const u=o[a];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(i)s.codegenNode=jc(r,l,n);else{const u=DC(s.codegenNode);u.alternate=jc(r,l+s.branches.length-1,n)}}}));function NC(t,e,n,s){if(e.name!=="else"&&(!e.exp||!e.exp.content.trim())){const r=e.exp?e.exp.loc:t.loc;n.onError(me(28,e.loc)),e.exp=ee("true",!1,r)}if(e.name==="if"){const r=Hc(t,e),i={type:9,loc:t.loc,branches:[r]};if(n.replaceNode(i),s)return s(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(t);for(;i-->=-1;){const o=r[i];if(o&&o.type===3){n.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){n.removeNode(o);continue}if(o&&o.type===9){e.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&n.onError(me(30,t.loc)),n.removeNode();const a=Hc(t,e);o.branches.push(a);const l=s&&s(o,a,!1);_o(a,n),l&&l(),n.currentNode=null}else n.onError(me(30,t.loc));break}}}function Hc(t,e){const n=t.tagType===3;return{type:10,loc:t.loc,condition:e.name==="else"?void 0:e.exp,children:n&&!et(t,"for")?t.children:[t],userKey:go(t,"key"),isTemplateIf:n}}function jc(t,e,n){return t.condition?Fa(t.condition,Uc(t,e,n),be(n.helper(Sr),['""',"true"])):Uc(t,e,n)}function Uc(t,e,n){const{helper:s}=n,r=Ee("key",ee(`${e}`,!1,Xe,2)),{children:i}=t,o=i[0];if(i.length!==1||o.type!==1)if(i.length===1&&o.type===11){const l=o.codegenNode;return Ri(l,r,n),l}else{let l=64;return rr(n,s(nr),tt([r]),i,l+"",void 0,void 0,!0,!1,!1,t.loc)}else{const l=o.codegenNode,u=zT(l);return u.type===13&&Ql(u,n),Ri(u,r,n),l}}function DC(t){for(;;)if(t.type===19)if(t.alternate.type===19)t=t.alternate;else return t;else t.type===20&&(t=t.value)}const PC=dp("for",(t,e,n)=>{const{helper:s,removeHelper:r}=n;return IC(t,e,n,i=>{const o=be(s(zl),[i.source]),a=Pi(t),l=et(t,"memo"),u=go(t,"key"),c=u&&(u.type===6?ee(u.value.content,!0):u.exp),f=u?Ee("key",c):null,m=i.source.type===4&&i.source.constType>0,E=m?64:u?128:256;return i.codegenNode=rr(n,s(nr),void 0,o,E+"",void 0,void 0,!0,!m,!1,t.loc),()=>{let p;const{children:h}=i,y=h.length!==1||h[0].type!==1,d=Ii(t)?t:a&&t.children.length===1&&Ii(t.children[0])?t.children[0]:null;if(d?(p=d.codegenNode,a&&f&&Ri(p,f,n)):y?p=rr(n,s(nr),f?tt([f]):void 0,t.children,"64",void 0,void 0,!0,void 0,!1):(p=h[0].codegenNode,a&&f&&Ri(p,f,n),p.isBlock!==!m&&(p.isBlock?(r(Pn),r(gs(n.inSSR,p.isComponent))):r(ps(n.inSSR,p.isComponent))),p.isBlock=!m,p.isBlock?(s(Pn),s(gs(n.inSSR,p.isComponent))):s(ps(n.inSSR,p.isComponent))),l){const _=ds(Ba(i.parseResult,[ee("_cached")]));_.body=xT([dt(["const _memo = (",l.exp,")"]),dt(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(np)}(_cached, _memo)) return _cached`]),dt(["const _item = ",p]),ee("_item.memo = _memo"),ee("return _item")]),o.arguments.push(_,ee("_cache"),ee(String(n.cached++)))}else o.arguments.push(ds(Ba(i.parseResult),p,!0))}})});function IC(t,e,n,s){if(!e.exp){n.onError(me(31,e.loc));return}const r=_p(e.exp);if(!r){n.onError(me(32,e.loc));return}const{addIdentifiers:i,removeIdentifiers:o,scopes:a}=n,{source:l,value:u,key:c,index:f}=r,m={type:11,loc:e.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:f,parseResult:r,children:Pi(t)?t.children:[t]};n.replaceNode(m),a.vFor++;const E=s&&s(m);return()=>{a.vFor--,E&&E()}}const RC=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Kc=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,FC=/^\(|\)$/g;function _p(t,e){const n=t.loc,s=t.content,r=s.match(RC);if(!r)return;const[,i,o]=r,a={source:Yr(n,o.trim(),s.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0};let l=i.trim().replace(FC,"").trim();const u=i.indexOf(l),c=l.match(Kc);if(c){l=l.replace(Kc,"").trim();const f=c[1].trim();let m;if(f&&(m=s.indexOf(f,u+l.length),a.key=Yr(n,f,m)),c[2]){const E=c[2].trim();E&&(a.index=Yr(n,E,s.indexOf(E,a.key?m+f.length:u+l.length)))}}return l&&(a.value=Yr(n,l,u)),a}function Yr(t,e,n){return ee(e,!1,ip(t,n,e.length))}function Ba({value:t,key:e,index:n},s=[]){return LC([t,e,n,...s])}function LC(t){let e=t.length;for(;e--&&!t[e];);return t.slice(0,e+1).map((n,s)=>n||ee("_".repeat(s+1),!1))}const Wc=ee("undefined",!1),MC=(t,e)=>{if(t.type===1&&(t.tagType===1||t.tagType===3)){const n=et(t,"slot");if(n)return n.exp,e.scopes.vSlot++,()=>{e.scopes.vSlot--}}},BC=(t,e,n)=>ds(t,e,!1,!0,e.length?e[0].loc:n);function xC(t,e,n=BC){e.helper(Xl);const{children:s,loc:r}=t,i=[],o=[];let a=e.scopes.vSlot>0||e.scopes.vFor>0;const l=et(t,"slot",!0);if(l){const{arg:y,exp:d}=l;y&&!$e(y)&&(a=!0),i.push(Ee(y||ee("default",!0),n(d,s,r)))}let u=!1,c=!1;const f=[],m=new Set;let E=0;for(let y=0;y{const v=n(d,_,r);return e.compatConfig&&(v.isNonScopedSlot=!0),Ee("default",v)};u?f.length&&f.some(d=>Ep(d))&&(c?e.onError(me(39,f[0].loc)):i.push(y(void 0,f))):i.push(y(void 0,s))}const p=a?2:ui(t.children)?3:1;let h=tt(i.concat(Ee("_",ee(p+"",!1))),r);return o.length&&(h=be(e.helper(tp),[h,Or(o)])),{slots:h,hasDynamicSlots:a}}function Gr(t,e,n){const s=[Ee("name",t),Ee("fn",e)];return n!=null&&s.push(Ee("key",ee(String(n),!0))),tt(s)}function ui(t){for(let e=0;efunction(){if(t=e.currentNode,!(t.type===1&&(t.tagType===0||t.tagType===1)))return;const{tag:s,props:r}=t,i=t.tagType===1;let o=i?VC(t,e):`"${s}"`;const a=fe(o)&&o.callee===wi;let l,u,c,f=0,m,E,p,h=a||o===Us||o===$l||!i&&(s==="svg"||s==="foreignObject");if(r.length>0){const y=bp(t,e,void 0,i,a);l=y.props,f=y.patchFlag,E=y.dynamicPropNames;const d=y.directives;p=d&&d.length?Or(d.map(_=>jC(_,e))):void 0,y.shouldUseBlock&&(h=!0)}if(t.children.length>0)if(o===Si&&(h=!0,f|=1024),i&&o!==Us&&o!==Si){const{slots:d,hasDynamicSlots:_}=xC(t,e);u=d,_&&(f|=1024)}else if(t.children.length===1&&o!==Us){const d=t.children[0],_=d.type,v=_===5||_===8;v&&nt(d,e)===0&&(f|=1),v||_===2?u=d:u=t.children}else u=t.children;f!==0&&(c=String(f),E&&E.length&&(m=UC(E))),t.codegenNode=rr(e,o,l,u,c,m,p,!!h,!1,i,t.loc)};function VC(t,e,n=!1){let{tag:s}=t;const r=xa(s),i=go(t,"is");if(i)if(r||Cn("COMPILER_IS_ON_ELEMENT",e)){const l=i.type===6?i.value&&ee(i.value.content,!0):i.exp;if(l)return be(e.helper(wi),[l])}else i.type===6&&i.value.content.startsWith("vue:")&&(s=i.value.content.slice(4));const o=!r&&et(t,"is");if(o&&o.exp)return be(e.helper(wi),[o.exp]);const a=sp(s)||e.isBuiltInComponent(s);return a?(n||e.helper(a),a):(e.helper(Ul),e.components.add(s),ir(s,"component"))}function bp(t,e,n=t.props,s,r,i=!1){const{tag:o,loc:a,children:l}=t;let u=[];const c=[],f=[],m=l.length>0;let E=!1,p=0,h=!1,y=!1,d=!1,_=!1,v=!1,g=!1;const T=[],O=w=>{u.length&&(c.push(tt(qc(u),a)),u=[]),w&&c.push(w)},S=({key:w,value:k})=>{if($e(w)){const P=w.content,N=Fn(P);if(N&&(!s||r)&&P.toLowerCase()!=="onclick"&&P!=="onUpdate:modelValue"&&!bn(P)&&(_=!0),N&&bn(P)&&(g=!0),k.type===20||(k.type===4||k.type===8)&&nt(k,e)>0)return;P==="ref"?h=!0:P==="class"?y=!0:P==="style"?d=!0:P!=="key"&&!T.includes(P)&&T.push(P),s&&(P==="class"||P==="style")&&!T.includes(P)&&T.push(P)}else v=!0};for(let w=0;w0&&u.push(Ee(ee("ref_for",!0),ee("true")))),N==="is"&&(xa(o)||R&&R.content.startsWith("vue:")||Cn("COMPILER_IS_ON_ELEMENT",e)))continue;u.push(Ee(ee(N,!0,ip(P,0,N.length)),ee(R?R.content:"",x,R?R.loc:P)))}else{const{name:P,arg:N,exp:R,loc:x}=k,Z=P==="bind",G=P==="on";if(P==="slot"){s||e.onError(me(40,x));continue}if(P==="once"||P==="memo"||P==="is"||Z&&yn(N,"is")&&(xa(o)||Cn("COMPILER_IS_ON_ELEMENT",e))||G&&i)continue;if((Z&&yn(N,"key")||G&&m&&yn(N,"vue:before-update"))&&(E=!0),Z&&yn(N,"ref")&&e.scopes.vFor>0&&u.push(Ee(ee("ref_for",!0),ee("true"))),!N&&(Z||G)){if(v=!0,R)if(Z){if(O(),Cn("COMPILER_V_BIND_OBJECT_ORDER",e)){c.unshift(R);continue}c.push(R)}else O({type:14,loc:x,callee:e.helper(Jl),arguments:s?[R]:[R,"true"]});else e.onError(me(Z?34:35,x));continue}const ie=e.directiveTransforms[P];if(ie){const{props:oe,needRuntime:Oe}=ie(k,t,e);!i&&oe.forEach(S),G&&N&&!$e(N)?O(tt(oe,a)):u.push(...oe),Oe&&(f.push(k),Qt(Oe)&&yp.set(k,Oe))}else r0(P)||(f.push(k),m&&(E=!0))}}let b;if(c.length?(O(),c.length>1?b=be(e.helper(Oi),c,a):b=c[0]):u.length&&(b=tt(qc(u),a)),v?p|=16:(y&&!s&&(p|=2),d&&!s&&(p|=4),T.length&&(p|=8),_&&(p|=32)),!E&&(p===0||p===32)&&(h||g||f.length>0)&&(p|=512),!e.inSSR&&b)switch(b.type){case 15:let w=-1,k=-1,P=!1;for(let x=0;xEe(o,i)),r))}return Or(n,t.loc)}function UC(t){let e="[";for(let n=0,s=t.length;n{if(Ii(t)){const{children:n,loc:s}=t,{slotName:r,slotProps:i}=WC(t,e),o=[e.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let a=2;i&&(o[2]=i,a=3),n.length&&(o[3]=ds([],n,!1,!1,s),a=4),e.scopeId&&!e.slotted&&(a=5),o.splice(a),t.codegenNode=be(e.helper(ep),o,s)}};function WC(t,e){let n='"default"',s;const r=[];for(let i=0;i0){const{props:i,directives:o}=bp(t,e,r,!1,!1);s=i,o.length&&e.onError(me(36,o[0].loc))}return{slotName:n,slotProps:s}}const qC=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,vp=(t,e,n,s)=>{const{loc:r,modifiers:i,arg:o}=t;!t.exp&&!i.length&&n.onError(me(35,r));let a;if(o.type===4)if(o.isStatic){let f=o.content;f.startsWith("vue:")&&(f=`vnode-${f.slice(4)}`);const m=e.tagType!==0||f.startsWith("vnode")||!/[A-Z]/.test(f)?Qn(Ae(f)):`on:${f}`;a=ee(m,!0,o.loc)}else a=dt([`${n.helperString(Ra)}(`,o,")"]);else a=o,a.children.unshift(`${n.helperString(Ra)}(`),a.children.push(")");let l=t.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const f=rp(l.content),m=!(f||qC.test(l.content)),E=l.content.includes(";");(m||u&&f)&&(l=dt([`${m?"$event":"(...args)"} => ${E?"{":"("}`,l,E?"}":")"]))}let c={props:[Ee(a,l||ee("() => {}",!1,r))]};return s&&(c=s(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach(f=>f.key.isHandlerKey=!0),c},zC=(t,e,n)=>{const{exp:s,modifiers:r,loc:i}=t,o=t.arg;return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),r.includes("camel")&&(o.type===4?o.isStatic?o.content=Ae(o.content):o.content=`${n.helperString(Ia)}(${o.content})`:(o.children.unshift(`${n.helperString(Ia)}(`),o.children.push(")"))),n.inSSR||(r.includes("prop")&&zc(o,"."),r.includes("attr")&&zc(o,"^")),!s||s.type===4&&!s.content.trim()?(n.onError(me(34,i)),{props:[Ee(o,ee("",!0,i))]}):{props:[Ee(o,s)]}},zc=(t,e)=>{t.type===4?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},YC=(t,e)=>{if(t.type===0||t.type===1||t.type===11||t.type===10)return()=>{const n=t.children;let s,r=!1;for(let i=0;ii.type===7&&!e.directiveTransforms[i.name])&&t.tag!=="template")))for(let i=0;i{if(t.type===1&&et(t,"once",!0))return Yc.has(t)||e.inVOnce||e.inSSR?void 0:(Yc.add(t),e.inVOnce=!0,e.helper(ki),()=>{e.inVOnce=!1;const n=e.currentNode;n.codegenNode&&(n.codegenNode=e.cache(n.codegenNode,!0))})},Ap=(t,e,n)=>{const{exp:s,arg:r}=t;if(!s)return n.onError(me(41,t.loc)),Jr();const i=s.loc.source,o=s.type===4?s.content:i,a=n.bindingMetadata[i];if(a==="props"||a==="props-aliased")return n.onError(me(44,s.loc)),Jr();const l=!1;if(!o.trim()||!rp(o)&&!l)return n.onError(me(42,s.loc)),Jr();const u=r||ee("modelValue",!0),c=r?$e(r)?`onUpdate:${Ae(r.content)}`:dt(['"onUpdate:" + ',r]):"onUpdate:modelValue";let f;const m=n.isTS?"($event: any)":"$event";f=dt([`${m} => ((`,s,") = $event)"]);const E=[Ee(u,t.exp),Ee(c,f)];if(t.modifiers.length&&e.tagType===1){const p=t.modifiers.map(y=>(eu(y)?y:JSON.stringify(y))+": true").join(", "),h=r?$e(r)?`${r.content}Modifiers`:dt([r,' + "Modifiers"']):"modelModifiers";E.push(Ee(h,ee(`{ ${p} }`,!1,t.loc,2)))}return Jr(E)};function Jr(t=[]){return{props:t}}const JC=/[\w).+\-_$\]]/,XC=(t,e)=>{Cn("COMPILER_FILTER",e)&&(t.type===5&&Li(t.content,e),t.type===1&&t.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Li(n.exp,e)}))};function Li(t,e){if(t.type===4)Gc(t,e);else for(let n=0;n=0&&(_=n.charAt(d),_===" ");d--);(!_||!JC.test(_))&&(o=!0)}}p===void 0?p=n.slice(0,E).trim():c!==0&&y();function y(){h.push(n.slice(c,E).trim()),c=E+1}if(h.length){for(E=0;E{if(t.type===1){const n=et(t,"memo");return!n||Jc.has(t)?void 0:(Jc.add(t),()=>{const s=t.codegenNode||e.currentNode.codegenNode;s&&s.type===13&&(t.tagType!==1&&Ql(s,e),t.codegenNode=be(e.helper(Zl),[n.exp,ds(void 0,s),"_cache",String(e.cached++)]))})}};function eS(t){return[[GC,kC,QC,PC,XC,KC,$C,MC,YC],{on:vp,bind:zC,model:Ap}]}function tS(t,e={}){const n=e.onError||xl,s=e.mode==="module";e.prefixIdentifiers===!0?n(me(47)):s&&n(me(48));const r=!1;e.cacheHandlers&&n(me(49)),e.scopeId&&!s&&n(me(50));const i=Q(t)?JT(t,e):t,[o,a]=eS();return cC(i,re({},e,{prefixIdentifiers:r,nodeTransforms:[...o,...e.nodeTransforms||[]],directiveTransforms:re({},a,e.directiveTransforms||{})})),dC(i,re({},e,{prefixIdentifiers:r}))}const nS=()=>({props:[]}),Tp=Symbol(""),Cp=Symbol(""),Sp=Symbol(""),wp=Symbol(""),$a=Symbol(""),Op=Symbol(""),kp=Symbol(""),Np=Symbol(""),Dp=Symbol(""),Pp=Symbol("");LT({[Tp]:"vModelRadio",[Cp]:"vModelCheckbox",[Sp]:"vModelText",[wp]:"vModelSelect",[$a]:"vModelDynamic",[Op]:"withModifiers",[kp]:"withKeys",[Np]:"vShow",[Dp]:"Transition",[Pp]:"TransitionGroup"});let Un;function sS(t,e=!1){return Un||(Un=document.createElement("div")),e?(Un.innerHTML=`
`,Un.children[0].getAttribute("foo")):(Un.innerHTML=t,Un.textContent)}const rS=je("style,iframe,script,noscript",!0),iS={isVoidTag:E0,isNativeTag:t=>m0(t)||_0(t),isPreTag:t=>t==="pre",decodeEntities:sS,isBuiltInComponent:t=>{if(Gn(t,"Transition"))return Dp;if(Gn(t,"TransitionGroup"))return Pp},getNamespace(t,e){let n=e?e.ns:0;if(e&&n===2)if(e.tag==="annotation-xml"){if(t==="svg")return 1;e.props.some(s=>s.type===6&&s.name==="encoding"&&s.value!=null&&(s.value.content==="text/html"||s.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&t!=="mglyph"&&t!=="malignmark"&&(n=0);else e&&n===1&&(e.tag==="foreignObject"||e.tag==="desc"||e.tag==="title")&&(n=0);if(n===0){if(t==="svg")return 1;if(t==="math")return 2}return n},getTextMode({tag:t,ns:e}){if(e===0){if(t==="textarea"||t==="title")return 1;if(rS(t))return 2}return 0}},oS=t=>{t.type===1&&t.props.forEach((e,n)=>{e.type===6&&e.name==="style"&&e.value&&(t.props[n]={type:7,name:"bind",arg:ee("style",!0,e.loc),exp:aS(e.value.content,e.loc),modifiers:[],loc:e.loc})})},aS=(t,e)=>{const n=ch(t);return ee(JSON.stringify(n),!1,e,3)};function Gt(t,e){return me(t,e)}const lS=(t,e,n)=>{const{exp:s,loc:r}=t;return s||n.onError(Gt(53,r)),e.children.length&&(n.onError(Gt(54,r)),e.children.length=0),{props:[Ee(ee("innerHTML",!0,r),s||ee("",!0))]}},uS=(t,e,n)=>{const{exp:s,loc:r}=t;return s||n.onError(Gt(55,r)),e.children.length&&(n.onError(Gt(56,r)),e.children.length=0),{props:[Ee(ee("textContent",!0),s?nt(s,n)>0?s:be(n.helperString(po),[s],r):ee("",!0))]}},cS=(t,e,n)=>{const s=Ap(t,e,n);if(!s.props.length||e.tagType===1)return s;t.arg&&n.onError(Gt(58,t.arg.loc));const{tag:r}=e,i=n.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||i){let o=Sp,a=!1;if(r==="input"||i){const l=go(e,"type");if(l){if(l.type===7)o=$a;else if(l.value)switch(l.value.content){case"radio":o=Tp;break;case"checkbox":o=Cp;break;case"file":a=!0,n.onError(Gt(59,t.loc));break}}else KT(e)&&(o=$a)}else r==="select"&&(o=wp);a||(s.needRuntime=n.helper(o))}else n.onError(Gt(57,t.loc));return s.props=s.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),s},fS=je("passive,once,capture"),hS=je("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),dS=je("left,right"),Ip=je("onkeyup,onkeydown,onkeypress",!0),pS=(t,e,n,s)=>{const r=[],i=[],o=[];for(let a=0;a$e(t)&&t.content.toLowerCase()==="onclick"?ee(e,!0):t.type!==4?dt(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t,gS=(t,e,n)=>vp(t,e,n,s=>{const{modifiers:r}=t;if(!r.length)return s;let{key:i,value:o}=s.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:u}=pS(i,r,n,t.loc);if(l.includes("right")&&(i=Xc(i,"onContextmenu")),l.includes("middle")&&(i=Xc(i,"onMouseup")),l.length&&(o=be(n.helper(Op),[o,JSON.stringify(l)])),a.length&&(!$e(i)||Ip(i.content))&&(o=be(n.helper(kp),[o,JSON.stringify(a)])),u.length){const c=u.map(Mn).join("");i=$e(i)?ee(`${i.content}${c}`,!0):dt(["(",i,`) + "${c}"`])}return{props:[Ee(i,o)]}}),mS=(t,e,n)=>{const{exp:s,loc:r}=t;return s||n.onError(Gt(61,r)),{props:[],needRuntime:n.helper(Np)}},_S=(t,e)=>{t.type===1&&t.tagType===0&&(t.tag==="script"||t.tag==="style")&&e.removeNode()},ES=[oS],yS={cloak:nS,html:lS,text:uS,model:cS,on:gS,show:mS};function bS(t,e={}){return tS(t,re({},iS,e,{nodeTransforms:[_S,...ES,...e.nodeTransforms||[]],directiveTransforms:re({},yS,e.directiveTransforms||{}),transformHoist:null}))}const Zc=Object.create(null);function vS(t,e){if(!Q(t))if(t.nodeType)t=t.innerHTML;else return Le;const n=t,s=Zc[n];if(s)return s;if(t[0]==="#"){const a=document.querySelector(t);t=a?a.innerHTML:""}const r=re({hoistStatic:!0,onError:void 0,onWarn:Le},e);!r.isCustomElement&&typeof customElements<"u"&&(r.isCustomElement=a=>!!customElements.get(a));const{code:i}=bS(t,r),o=new Function("Vue",i)(NT);return o._rc=!0,Zc[n]=o}Ad(vS);const AS=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},TS={name:"App"};function CS(t,e,n,s,r,i){return Cr(),md("div")}const Rp=AS(TS,[["render",CS]]),SS=Object.freeze(Object.defineProperty({__proto__:null,default:Rp},Symbol.toStringTag,{value:"Module"}));var wS=!1;/*! + * pinia v2.1.6 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let Fp;const yo=t=>Fp=t,Lp=Symbol();function Va(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ws;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ws||(Ws={}));function OS(){const t=ol(!0),e=t.run(()=>qt({}));let n=[],s=[];const r=br({install(i){yo(r),r._a=i,i.provide(Lp,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return!this._a&&!wS?s.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}const Mp=()=>{};function Qc(t,e,n,s=Mp){t.push(e);const r=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),s())};return!n&&al()&&ph(r),r}function Kn(t,...e){t.slice().forEach(n=>{n(...e)})}const kS=t=>t();function Ha(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,s)=>t.set(s,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],r=t[n];Va(r)&&Va(s)&&t.hasOwnProperty(n)&&!_e(s)&&!Dt(s)?t[n]=Ha(r,s):t[n]=s}return t}const NS=Symbol();function DS(t){return!Va(t)||!t.hasOwnProperty(NS)}const{assign:Ut}=Object;function PS(t){return!!(_e(t)&&t.effect)}function IS(t,e,n,s){const{state:r,actions:i,getters:o}=e,a=n.state.value[t];let l;function u(){a||(n.state.value[t]=r?r():{});const c=Nh(n.state.value[t]);return Ut(c,i,Object.keys(o||{}).reduce((f,m)=>(f[m]=br(Fl(()=>{yo(n);const E=n._s.get(t);return o[m].call(E,E)})),f),{}))}return l=Bp(t,u,e,n,s,!0),l}function Bp(t,e,n={},s,r,i){let o;const a=Ut({actions:{}},n),l={deep:!0};let u,c,f=[],m=[],E;const p=s.state.value[t];!i&&!p&&(s.state.value[t]={}),qt({});let h;function y(b){let w;u=c=!1,typeof b=="function"?(b(s.state.value[t]),w={type:Ws.patchFunction,storeId:t,events:E}):(Ha(s.state.value[t],b),w={type:Ws.patchObject,payload:b,storeId:t,events:E});const k=h=Symbol();eo().then(()=>{h===k&&(u=!0)}),c=!0,Kn(f,w,s.state.value[t])}const d=i?function(){const{state:w}=n,k=w?w():{};this.$patch(P=>{Ut(P,k)})}:Mp;function _(){o.stop(),f=[],m=[],s._s.delete(t)}function v(b,w){return function(){yo(s);const k=Array.from(arguments),P=[],N=[];function R(G){P.push(G)}function x(G){N.push(G)}Kn(m,{args:k,name:b,store:T,after:R,onError:x});let Z;try{Z=w.apply(this&&this.$id===t?this:T,k)}catch(G){throw Kn(N,G),G}return Z instanceof Promise?Z.then(G=>(Kn(P,G),G)).catch(G=>(Kn(N,G),Promise.reject(G))):(Kn(P,Z),Z)}}const g={_p:s,$id:t,$onAction:Qc.bind(null,m),$patch:y,$reset:d,$subscribe(b,w={}){const k=Qc(f,b,w.detached,()=>P()),P=o.run(()=>zt(()=>s.state.value[t],N=>{(w.flush==="sync"?c:u)&&b({storeId:t,type:Ws.direct,events:E},N)},Ut({},l,w)));return k},$dispose:_},T=vt(g);s._s.set(t,T);const O=s._a&&s._a.runWithContext||kS,S=s._e.run(()=>(o=ol(),O(()=>o.run(e))));for(const b in S){const w=S[b];if(_e(w)&&!PS(w)||Dt(w))i||(p&&DS(w)&&(_e(w)?w.value=p[b]:Ha(w,p[b])),s.state.value[t][b]=w);else if(typeof w=="function"){const k=v(b,w);S[b]=k,a.actions[b]=w}}return Ut(T,S),Ut(se(T),S),Object.defineProperty(T,"$state",{get:()=>s.state.value[t],set:b=>{y(w=>{Ut(w,b)})}}),s._p.forEach(b=>{Ut(T,o.run(()=>b({store:T,app:s._a,pinia:s,options:a})))}),p&&i&&n.hydrate&&n.hydrate(T.$state,p),u=!0,c=!0,T}function xp(t,e,n){let s,r;const i=typeof e=="function";typeof t=="string"?(s=t,r=i?n:e):(r=t,s=t.id);function o(a,l){const u=rd();return a=a||(u?ss(Lp,null):null),a&&yo(a),a=Fp,a._s.has(s)||(i?Bp(s,e,r,a):IS(s,r,a)),a._s.get(s)}return o.$id=s,o}function tw(t,e){return Array.isArray(e)?e.reduce((n,s)=>(n[s]=function(){return t(this.$pinia)[s]},n),{}):Object.keys(e).reduce((n,s)=>(n[s]=function(){const r=t(this.$pinia),i=e[s];return typeof i=="function"?i.call(this,r):r[i]},n),{})}function nw(t,e){return Array.isArray(e)?e.reduce((n,s)=>(n[s]=function(...r){return t(this.$pinia)[s](...r)},n),{}):Object.keys(e).reduce((n,s)=>(n[s]=function(...r){return t(this.$pinia)[e[s]](...r)},n),{})}const $p=xp("error",{state:()=>({message:null,errors:{}})});/*! js-cookie v3.0.5 | MIT */function Xr(t){for(var e=1;e"u")){o=Xr({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=r+"="+t.write(i,r)+a}}function s(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var i=document.cookie?document.cookie.split("; "):[],o={},a=0;aqe.get("/sanctum/csrf-cookie");qe.interceptors.request.use(function(t){return $p().$reset(),Ua.get("XSRF-TOKEN")?t:FS().then(e=>t)},function(t){return Promise.reject(t)});qe.interceptors.response.use(function(t){var e,n,s,r,i,o;return(((s=(n=(e=t==null?void 0:t.data)==null?void 0:e.data)==null?void 0:n.csrf_token)==null?void 0:s.length)>0||((o=(i=(r=t==null?void 0:t.data)==null?void 0:r.data)==null?void 0:i.token)==null?void 0:o.length)>0)&&Ua.set("XSRF-TOKEN",t.data.data.csrf_token),t},function(t){switch(t.response.status){case 401:localStorage.removeItem("token"),window.location.reload();break;case 403:case 404:console.error("404");break;case 422:$p().$state=t.response.data;break;default:console.log(t.response.data)}return Promise.reject(t)});function Mi(t){return Mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mi(t)}function ci(t,e){if(!t.vueAxiosInstalled){var n=Vp(e)?BS(e):e;if(xS(n)){var s=$S(t);if(s){var r=s<3?LS:MS;Object.keys(n).forEach(function(i){r(t,i,n[i])}),t.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either or { : }")}}function LS(t,e,n){Object.defineProperty(t.prototype,e,{get:function(){return n}}),t[e]=n}function MS(t,e,n){t.config.globalProperties[e]=n,t[e]=n}function Vp(t){return t&&typeof t.get=="function"&&typeof t.post=="function"}function BS(t){return{axios:t,$http:t}}function xS(t){return Mi(t)==="object"&&Object.keys(t).every(function(e){return Vp(t[e])})}function $S(t){return t&&t.version&&Number(t.version.split(".")[0])}(typeof exports>"u"?"undefined":Mi(exports))=="object"?module.exports=ci:typeof define=="function"&&define.amd?define([],function(){return ci}):window.Vue&&window.axios&&window.Vue.use&&Vue.use(ci,window.axios);const Zo=xp("auth",{state:()=>({loggedIn:!!localStorage.getItem("token"),user:null}),getters:{},actions:{async login(t){await qe.get("sanctum/csrf-cookie");const e=(await qe.post("api/login",t)).data;if(e){const n=`Bearer ${e.token}`;localStorage.setItem("token",n),qe.defaults.headers.common.Authorization=n,await this.ftechUser()}},async logout(){(await qe.post("api/logout")).data&&(localStorage.removeItem("token"),this.$reset())},async ftechUser(){this.user=(await qe.get("api/me")).data,this.loggedIn=!0}}}),VS={install:({config:t})=>{t.globalProperties.$auth=Zo(),Zo().loggedIn&&Zo().ftechUser()}};function HS(t){return{all:t=t||new Map,on:function(e,n){var s=t.get(e);s?s.push(n):t.set(e,[n])},off:function(e,n){var s=t.get(e);s&&(n?s.splice(s.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var s=t.get(e);s&&s.slice().map(function(r){r(n)}),(s=t.get("*"))&&s.slice().map(function(r){r(e,n)})}}}const jS={install:(t,e)=>{t.config.globalProperties.$eventBus=HS()}},Hp={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Bi={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},su={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},jp={dangerouslyHTMLString:!1,multiple:!0,position:Hp.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},US={rtl:!1,newestOnTop:!1,toastClassName:""},KS={...jp,...US};({...jp,type:su.DEFAULT});var xi=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(xi||{});vt({});vt({});vt({items:[]});const WS=vt({});vt({});function qS(...t){return Il(...t)}function zS(t={}){WS[`${xi.CSS_NAMESPACE}-default-options`]=t}Hp.TOP_LEFT,Bi.AUTO,su.DEFAULT;su.DEFAULT,Bi.AUTO;Bi.AUTO,Bi.LIGHT;const Up={install(t,e={}){YS(e)}};typeof window<"u"&&(window.Vue3Toastify=Up);function YS(t={}){const e=qS(KS,t);zS(e)}const ru={url:"https://productalert.test",port:null,defaults:{},routes:{"debugbar.openhandler":{uri:"_debugbar/open",methods:["GET","HEAD"]},"debugbar.clockwork":{uri:"_debugbar/clockwork/{id}",methods:["GET","HEAD"]},"debugbar.assets.css":{uri:"_debugbar/assets/stylesheets",methods:["GET","HEAD"]},"debugbar.assets.js":{uri:"_debugbar/assets/javascript",methods:["GET","HEAD"]},"debugbar.cache.delete":{uri:"_debugbar/cache/{key}/{tags?}",methods:["DELETE"]},"sanctum.csrf-cookie":{uri:"sanctum/csrf-cookie",methods:["GET","HEAD"]},"ignition.healthCheck":{uri:"_ignition/health-check",methods:["GET","HEAD"]},"ignition.executeSolution":{uri:"_ignition/execute-solution",methods:["POST"]},"ignition.updateConfig":{uri:"_ignition/update-config",methods:["POST"]},"api.auth.login.post":{uri:"api/login",methods:["POST"]},"api.auth.logout.post":{uri:"api/logout",methods:["POST"]},"api.admin.post.get":{uri:"api/admin/post/{id}",methods:["GET","HEAD"]},"api.admin.country-locales":{uri:"api/admin/country-locales",methods:["GET","HEAD"]},"api.admin.categories":{uri:"api/admin/categories/{country_locale_slug}",methods:["GET","HEAD"]},"api.admin.authors":{uri:"api/admin/authors",methods:["GET","HEAD"]},"api.admin.upload.cloud.image":{uri:"api/admin/image/upload",methods:["POST"]},"api.admin.post.upsert":{uri:"api/admin/admin/post/upsert",methods:["POST"]},login:{uri:"login",methods:["GET","HEAD"]},logout:{uri:"logout",methods:["POST"]},register:{uri:"register",methods:["GET","HEAD"]},"password.request":{uri:"password/reset",methods:["GET","HEAD"]},"password.email":{uri:"password/email",methods:["POST"]},"password.reset":{uri:"password/reset/{token}",methods:["GET","HEAD"]},"password.update":{uri:"password/reset",methods:["POST"]},"password.confirm":{uri:"password/confirm",methods:["GET","HEAD"]},dashboard:{uri:"admin",methods:["GET","HEAD"]},about:{uri:"admin/about",methods:["GET","HEAD"]},"users.index":{uri:"admin/users",methods:["GET","HEAD"]},"posts.manage":{uri:"admin/posts",methods:["GET","HEAD"]},"posts.manage.edit":{uri:"admin/posts/edit/{post_id}",methods:["GET","HEAD"]},"posts.manage.new":{uri:"admin/posts/new",methods:["GET","HEAD"]},"profile.show":{uri:"admin/profile",methods:["GET","HEAD"]},"profile.update":{uri:"admin/profile",methods:["PUT"]},home:{uri:"/",methods:["GET","HEAD"]},"home.country":{uri:"{country}",methods:["GET","HEAD"]},"home.country.posts":{uri:"{country}/posts",methods:["GET","HEAD"]},"home.country.post":{uri:"{country}/posts/{post_slug}",methods:["GET","HEAD"]},"home.country.category":{uri:"{country}/{category}",methods:["GET","HEAD"]}}};typeof window<"u"&&typeof window.Ziggy<"u"&&Object.assign(ru.routes,window.Ziggy.routes);var GS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ka={exports:{}},Qo,ef;function iu(){if(ef)return Qo;ef=1;var t=String.prototype.replace,e=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Qo={default:n.RFC3986,formatters:{RFC1738:function(s){return t.call(s,e,"+")},RFC3986:function(s){return String(s)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},Qo}var ea,tf;function Kp(){if(tf)return ea;tf=1;var t=iu(),e=Object.prototype.hasOwnProperty,n=Array.isArray,s=function(){for(var h=[],y=0;y<256;++y)h.push("%"+((y<16?"0":"")+y.toString(16)).toUpperCase());return h}(),r=function(y){for(;y.length>1;){var d=y.pop(),_=d.obj[d.prop];if(n(_)){for(var v=[],g=0;g<_.length;++g)typeof _[g]<"u"&&v.push(_[g]);d.obj[d.prop]=v}}},i=function(y,d){for(var _=d&&d.plainObjects?Object.create(null):{},v=0;v=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||g===t.RFC1738&&(b===40||b===41)){O+=T.charAt(S);continue}if(b<128){O=O+s[b];continue}if(b<2048){O=O+(s[192|b>>6]+s[128|b&63]);continue}if(b<55296||b>=57344){O=O+(s[224|b>>12]+s[128|b>>6&63]+s[128|b&63]);continue}S+=1,b=65536+((b&1023)<<10|T.charCodeAt(S)&1023),O+=s[240|b>>18]+s[128|b>>12&63]+s[128|b>>6&63]+s[128|b&63]}return O},c=function(y){for(var d=[{obj:{o:y},prop:"o"}],_=[],v=0;v"u")return oe;var Oe;if(d==="comma"&&r(R))Oe=[{value:R.length>0?R.join(",")||null:void 0}];else if(r(T))Oe=T;else{var cn=Object.keys(R);Oe=O?cn.sort(O):cn}for(var ut=0;ut"u"?c.allowDots:!!h.allowDots,charset:y,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:c.charsetSentinel,delimiter:typeof h.delimiter>"u"?c.delimiter:h.delimiter,encode:typeof h.encode=="boolean"?h.encode:c.encode,encoder:typeof h.encoder=="function"?h.encoder:c.encoder,encodeValuesOnly:typeof h.encodeValuesOnly=="boolean"?h.encodeValuesOnly:c.encodeValuesOnly,filter:v,format:d,formatter:_,serializeDate:typeof h.serializeDate=="function"?h.serializeDate:c.serializeDate,skipNulls:typeof h.skipNulls=="boolean"?h.skipNulls:c.skipNulls,sort:typeof h.sort=="function"?h.sort:null,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:c.strictNullHandling}};return ta=function(p,h){var y=p,d=E(h),_,v;typeof d.filter=="function"?(v=d.filter,y=v("",y)):r(d.filter)&&(v=d.filter,_=v);var g=[];if(typeof y!="object"||y===null)return"";var T;h&&h.arrayFormat in s?T=h.arrayFormat:h&&"indices"in h?T=h.indices?"indices":"repeat":T="indices";var O=s[T];_||(_=Object.keys(y)),d.sort&&_.sort(d.sort);for(var S=0;S<_.length;++S){var b=_[S];d.skipNulls&&y[b]===null||a(g,m(y[b],b,O,d.strictNullHandling,d.skipNulls,d.encode?d.encoder:null,d.filter,d.sort,d.allowDots,d.serializeDate,d.format,d.formatter,d.encodeValuesOnly,d.charset))}var w=g.join(d.delimiter),k=d.addQueryPrefix===!0?"?":"";return d.charsetSentinel&&(d.charset==="iso-8859-1"?k+="utf8=%26%2310003%3B&":k+="utf8=%E2%9C%93&"),w.length>0?k+w:""},ta}var na,sf;function XS(){if(sf)return na;sf=1;var t=Kp(),e=Object.prototype.hasOwnProperty,n=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:t.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},r=function(m){return m.replace(/&#(\d+);/g,function(E,p){return String.fromCharCode(parseInt(p,10))})},i=function(m,E){return m&&typeof m=="string"&&E.comma&&m.indexOf(",")>-1?m.split(","):m},o="utf8=%26%2310003%3B",a="utf8=%E2%9C%93",l=function(E,p){var h={},y=p.ignoreQueryPrefix?E.replace(/^\?/,""):E,d=p.parameterLimit===1/0?void 0:p.parameterLimit,_=y.split(p.delimiter,d),v=-1,g,T=p.charset;if(p.charsetSentinel)for(g=0;g<_.length;++g)_[g].indexOf("utf8=")===0&&(_[g]===a?T="utf-8":_[g]===o&&(T="iso-8859-1"),v=g,g=_.length);for(g=0;g<_.length;++g)if(g!==v){var O=_[g],S=O.indexOf("]="),b=S===-1?O.indexOf("="):S+1,w,k;b===-1?(w=p.decoder(O,s.decoder,T,"key"),k=p.strictNullHandling?null:""):(w=p.decoder(O.slice(0,b),s.decoder,T,"key"),k=t.maybeMap(i(O.slice(b+1),p),function(P){return p.decoder(P,s.decoder,T,"value")})),k&&p.interpretNumericEntities&&T==="iso-8859-1"&&(k=r(k)),O.indexOf("[]=")>-1&&(k=n(k)?[k]:k),e.call(h,w)?h[w]=t.combine(h[w],k):h[w]=k}return h},u=function(m,E,p,h){for(var y=h?E:i(E,p),d=m.length-1;d>=0;--d){var _,v=m[d];if(v==="[]"&&p.parseArrays)_=[].concat(y);else{_=p.plainObjects?Object.create(null):{};var g=v.charAt(0)==="["&&v.charAt(v.length-1)==="]"?v.slice(1,-1):v,T=parseInt(g,10);!p.parseArrays&&g===""?_={0:y}:!isNaN(T)&&v!==g&&String(T)===g&&T>=0&&p.parseArrays&&T<=p.arrayLimit?(_=[],_[T]=y):g!=="__proto__"&&(_[g]=y)}y=_}return y},c=function(E,p,h,y){if(E){var d=h.allowDots?E.replace(/\.([^.[]+)/g,"[$1]"):E,_=/(\[[^[\]]*])/,v=/(\[[^[\]]*])/g,g=h.depth>0&&_.exec(d),T=g?d.slice(0,g.index):d,O=[];if(T){if(!h.plainObjects&&e.call(Object.prototype,T)&&!h.allowPrototypes)return;O.push(T)}for(var S=0;h.depth>0&&(g=v.exec(d))!==null&&S"u"?s.charset:E.charset;return{allowDots:typeof E.allowDots>"u"?s.allowDots:!!E.allowDots,allowPrototypes:typeof E.allowPrototypes=="boolean"?E.allowPrototypes:s.allowPrototypes,arrayLimit:typeof E.arrayLimit=="number"?E.arrayLimit:s.arrayLimit,charset:p,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:s.charsetSentinel,comma:typeof E.comma=="boolean"?E.comma:s.comma,decoder:typeof E.decoder=="function"?E.decoder:s.decoder,delimiter:typeof E.delimiter=="string"||t.isRegExp(E.delimiter)?E.delimiter:s.delimiter,depth:typeof E.depth=="number"||E.depth===!1?+E.depth:s.depth,ignoreQueryPrefix:E.ignoreQueryPrefix===!0,interpretNumericEntities:typeof E.interpretNumericEntities=="boolean"?E.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:typeof E.parameterLimit=="number"?E.parameterLimit:s.parameterLimit,parseArrays:E.parseArrays!==!1,plainObjects:typeof E.plainObjects=="boolean"?E.plainObjects:s.plainObjects,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:s.strictNullHandling}};return na=function(m,E){var p=f(E);if(m===""||m===null||typeof m>"u")return p.plainObjects?Object.create(null):{};for(var h=typeof m=="string"?l(m,p):m,y=p.plainObjects?Object.create(null):{},d=Object.keys(h),_=0;_"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function c(p,h,y){return c=u()?Reflect.construct.bind():function(d,_,v){var g=[null];g.push.apply(g,_);var T=new(Function.bind.apply(d,g));return v&&l(T,v.prototype),T},c.apply(null,arguments)}function f(p){var h=typeof Map=="function"?new Map:void 0;return f=function(y){if(y===null||Function.toString.call(y).indexOf("[native code]")===-1)return y;if(typeof y!="function")throw new TypeError("Super expression must either be null or a function");if(h!==void 0){if(h.has(y))return h.get(y);h.set(y,d)}function d(){return c(y,arguments,a(this).constructor)}return d.prototype=Object.create(y.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),l(d,y)},f(p)}var m=function(){function p(y,d,_){var v,g;this.name=y,this.definition=d,this.bindings=(v=d.bindings)!=null?v:{},this.wheres=(g=d.wheres)!=null?g:{},this.config=_}var h=p.prototype;return h.matchesUrl=function(y){var d=this;if(!this.definition.methods.includes("GET"))return!1;var _=this.template.replace(/(\/?){([^}?]*)(\??)}/g,function(b,w,k,P){var N,R="(?<"+k+">"+(((N=d.wheres[k])==null?void 0:N.replace(/(^\^)|(\$$)/g,""))||"[^/?]+")+")";return P?"("+w+R+")?":""+w+R}).replace(/^\w+:\/\//,""),v=y.replace(/^\w+:\/\//,"").split("?"),g=v[0],T=v[1],O=new RegExp("^"+_+"/?$").exec(g);if(O){for(var S in O.groups)O.groups[S]=typeof O.groups[S]=="string"?decodeURIComponent(O.groups[S]):O.groups[S];return{params:O.groups,query:s.parse(T)}}return!1},h.compile=function(y){var d=this,_=this.parameterSegments;return _.length?this.template.replace(/{([^}?]+)(\??)}/g,function(v,g,T){var O,S,b;if(!T&&[null,void 0].includes(y[g]))throw new Error("Ziggy error: '"+g+"' parameter is required for route '"+d.name+"'.");if(_[_.length-1].name===g&&d.wheres[g]===".*")return encodeURIComponent((b=y[g])!=null?b:"").replace(/%2F/g,"/");if(d.wheres[g]&&!new RegExp("^"+(T?"("+d.wheres[g]+")?":d.wheres[g])+"$").test((O=y[g])!=null?O:""))throw new Error("Ziggy error: '"+g+"' parameter does not match required format '"+d.wheres[g]+"' for route '"+d.name+"'.");return encodeURIComponent((S=y[g])!=null?S:"")}).replace(this.origin+"//",this.origin+"/").replace(/\/+$/,""):this.template},i(p,[{key:"template",get:function(){return(this.origin+"/"+this.definition.uri).replace(/\/+$/,"")}},{key:"origin",get:function(){return this.config.absolute?this.definition.domain?""+this.config.url.match(/^\w+:\/\//)[0]+this.definition.domain+(this.config.port?":"+this.config.port:""):this.config.url:""}},{key:"parameterSegments",get:function(){var y,d;return(y=(d=this.template.match(/{[^}?]+\??}/g))==null?void 0:d.map(function(_){return{name:_.replace(/{|\??}/g,""),required:!/\?}$/.test(_)}}))!=null?y:[]}}]),p}(),E=function(p){var h,y;function d(v,g,T,O){var S;if(T===void 0&&(T=!0),(S=p.call(this)||this).t=O??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),S.t=o({},S.t,{absolute:T}),v){if(!S.t.routes[v])throw new Error("Ziggy error: route '"+v+"' is not in the route list.");S.i=new m(v,S.t.routes[v],S.t),S.u=S.o(g)}return S}y=p,(h=d).prototype=Object.create(y.prototype),h.prototype.constructor=h,l(h,y);var _=d.prototype;return _.toString=function(){var v=this,g=Object.keys(this.u).filter(function(T){return!v.i.parameterSegments.some(function(O){return O.name===T})}).filter(function(T){return T!=="_query"}).reduce(function(T,O){var S;return o({},T,((S={})[O]=v.u[O],S))},{});return this.i.compile(this.u)+s.stringify(o({},g,this.u._query),{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:function(T,O){return typeof T=="boolean"?Number(T):O(T)}})},_.l=function(v){var g=this;v?this.t.absolute&&v.startsWith("/")&&(v=this.h().host+v):v=this.v();var T={},O=Object.entries(this.t.routes).find(function(S){return T=new m(S[0],S[1],g.t).matchesUrl(v)})||[void 0,void 0];return o({name:O[0]},T,{route:O[1]})},_.v=function(){var v=this.h(),g=v.pathname,T=v.search;return(this.t.absolute?v.host+g:g.replace(this.t.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+T},_.current=function(v,g){var T=this.l(),O=T.name,S=T.params,b=T.query,w=T.route;if(!v)return O;var k=new RegExp("^"+v.replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(O);if([null,void 0].includes(g)||!k)return k;var P=new m(O,w,this.t);g=this.o(g,P);var N=o({},S,b);return!(!Object.values(g).every(function(R){return!R})||Object.values(N).some(function(R){return R!==void 0}))||Object.entries(g).every(function(R){return N[R[0]]==R[1]})},_.h=function(){var v,g,T,O,S,b,w=typeof window<"u"?window.location:{},k=w.host,P=w.pathname,N=w.search;return{host:(v=(g=this.t.location)==null?void 0:g.host)!=null?v:k===void 0?"":k,pathname:(T=(O=this.t.location)==null?void 0:O.pathname)!=null?T:P===void 0?"":P,search:(S=(b=this.t.location)==null?void 0:b.search)!=null?S:N===void 0?"":N}},_.has=function(v){return Object.keys(this.t.routes).includes(v)},_.o=function(v,g){var T=this;v===void 0&&(v={}),g===void 0&&(g=this.i),v!=null||(v={}),v=["string","number"].includes(typeof v)?[v]:v;var O=g.parameterSegments.filter(function(b){return!T.t.defaults[b.name]});if(Array.isArray(v))v=v.reduce(function(b,w,k){var P,N;return o({},b,O[k]?((P={})[O[k].name]=w,P):typeof w=="object"?w:((N={})[w]="",N))},{});else if(O.length===1&&!v[O[0].name]&&(v.hasOwnProperty(Object.values(g.bindings)[0])||v.hasOwnProperty("id"))){var S;(S={})[O[0].name]=v,v=S}return o({},this.p(g),this.g(v,g))},_.p=function(v){var g=this;return v.parameterSegments.filter(function(T){return g.t.defaults[T.name]}).reduce(function(T,O,S){var b,w=O.name;return o({},T,((b={})[w]=g.t.defaults[w],b))},{})},_.g=function(v,g){var T=g.bindings,O=g.parameterSegments;return Object.entries(v).reduce(function(S,b){var w,k,P=b[0],N=b[1];if(!N||typeof N!="object"||Array.isArray(N)||!O.some(function(R){return R.name===P}))return o({},S,((k={})[P]=N,k));if(!N.hasOwnProperty(T[P])){if(!N.hasOwnProperty("id"))throw new Error("Ziggy error: object passed as '"+P+"' parameter is missing route model binding key '"+T[P]+"'.");T[P]="id"}return o({},S,((w={})[P]=N[T[P]],w))},{})},_.valueOf=function(){return this.toString()},_.check=function(v){return this.has(v)},i(d,[{key:"params",get:function(){var v=this.l();return o({},v.params,v.query)}}]),d}(f(String));n.ZiggyVue={install:function(p,h){var y=function(d,_,v,g){return g===void 0&&(g=h),function(T,O,S,b){var w=new E(T,O,S,b);return T?w.toString():w}(d,_,v,g)};p.mixin({methods:{route:y}}),parseInt(p.version)>2&&p.provide("route",y)}}})})(Ka,Ka.exports);var QS=Ka.exports;const un=zd({AdminApp:Rp}),Wp=Object.assign({"/resources/js/vue/AdminApp.vue":()=>Dr(()=>Promise.resolve().then(()=>SS),void 0),"/resources/js/vue/NativeImageBlock.vue":()=>Dr(()=>import("./NativeImageBlock-bcbff98b.js").then(t=>t.N),["assets/NativeImageBlock-bcbff98b.js","assets/NativeImageBlock-e3b0c442.css"]),"/resources/js/vue/PostEditor.vue":()=>Dr(()=>import("./PostEditor-a6038129.js"),["assets/PostEditor-a6038129.js","assets/VueEditorJs-6310d292.js","assets/index-8746c87e.js","assets/NativeImageBlock-bcbff98b.js","assets/NativeImageBlock-e3b0c442.css","assets/bundle-43b5b4d7.js","assets/bundle-94bef551.js"]),"/resources/js/vue/VueEditorJs.vue":()=>Dr(()=>import("./VueEditorJs-6310d292.js"),["assets/VueEditorJs-6310d292.js","assets/index-8746c87e.js"])});console.log(Wp);un.use(OS());un.use(ci,qe);un.use(VS);un.use(jS);un.use(Up);un.use(QS.ZiggyVue,ru);window.Ziggy=ru;Object.entries({...Wp}).forEach(([t,e])=>{const n=t.split("/").pop().replace(/\.\w+$/,"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();un.component(n,jh(e))});un.mount("#app");export{sw as A,Ne as F,AS as _,qe as a,nw as b,md as c,xp as d,Nl as e,de as f,PA as g,Ml as h,DA as i,Bl as j,Dl as k,ZS as l,tw as m,Er as n,Cr as o,_r as p,yv as q,Wv as r,bv as s,A0 as t,Dr as u,Ci as v,Mv as w,io as x,vt as y,Tr as z}; diff --git a/public/build/assets/admin-app-935fc652.css b/public/build/assets/admin-app-935fc652.css new file mode 100644 index 0000000..aa2cec6 --- /dev/null +++ b/public/build/assets/admin-app-935fc652.css @@ -0,0 +1 @@ +:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: #ffffffb3;--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-font-family: inherit;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( 90deg, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-colored: #ddd}.Toastify__toast-container{box-sizing:border-box;color:#fff;padding:4px;position:fixed;transform:translate3d(0,0,var(--toastify-z-index) px);width:var(--toastify-toast-width);z-index:var(--toastify-z-index)}.Toastify__toast-container--top-left{left:1em;top:1em}.Toastify__toast-container--top-center{left:50%;top:1em;transform:translate(-50%)}.Toastify__toast-container--top-right{right:1em;top:1em}.Toastify__toast-container--bottom-left{bottom:1em;left:1em}.Toastify__toast-container--bottom-center{bottom:1em;left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:1em;right:1em}@media only screen and (max-width: 480px){.Toastify__toast-container{left:0;margin:0;padding:0;width:100vw}.Toastify__toast-container--top-center,.Toastify__toast-container--top-left,.Toastify__toast-container--top-right{top:0;transform:translate(0)}.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-right{bottom:0;transform:translate(0)}.Toastify__toast-container--rtl{left:auto;right:0}}.Toastify__toast{border-radius:4px;box-shadow:0 1px 10px #0000001a,0 2px 15px #0000000d;box-sizing:border-box;cursor:pointer;direction:ltr;display:flex;font-family:var(--toastify-font-family);justify-content:space-between;margin-bottom:1rem;max-height:var(--toastify-toast-max-height);min-height:var(--toastify-toast-min-height);overflow:hidden;padding:8px;position:relative;z-index:0}.Toastify__toast--rtl{direction:rtl}.Toastify__toast-body{align-items:center;display:flex;flex:1 1 auto;margin:auto 0;padding:6px;white-space:pre-wrap}.Toastify__toast-body>div:last-child{flex:1}.Toastify__toast-icon{display:flex;flex-shrink:0;margin-inline-end:10px;width:20px}.Toastify--animate{animation-duration:.7s;animation-fill-mode:both}.Toastify--animate-icon{animation-duration:.3s;animation-fill-mode:both}@media only screen and (max-width: 480px){.Toastify__toast{border-radius:0;margin-bottom:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--colored.Toastify__toast--default,.Toastify__toast-theme--light{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{background:var(--toastify-color-info);color:var(--toastify-text-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{background:var(--toastify-color-success);color:var(--toastify-text-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{background:var(--toastify-color-warning);color:var(--toastify-text-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{background:var(--toastify-color-error);color:var(--toastify-text-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--default{background:var(--toastify-color-progress-colored)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning{background:var(--toastify-color-transparent)}.Toastify__close-button{align-self:flex-start;background:#0000;border:none;color:#fff;cursor:pointer;opacity:.7;outline:none;padding:0;transition:.3s ease}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentcolor;height:16px;width:14px}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{bottom:0;height:5px;left:0;opacity:.7;position:absolute;transform-origin:left;width:100%;z-index:var(--toastify-z-index)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{left:auto;right:0;transform-origin:right}.Toastify__spinner{animation:Toastify__spin .65s linear infinite;border:2px solid;border-color:var(--toastify-spinner-color-empty-area);border-radius:100%;border-right-color:var(--toastify-spinner-color);box-sizing:border-box;height:20px;width:20px}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{animation-timing-function:ease-in;opacity:0;transform:perspective(400px) rotateX(90deg)}40%{animation-timing-function:ease-in;transform:perspective(400px) rotateX(-20deg)}60%{opacity:1;transform:perspective(400px) rotateX(10deg)}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px) rotateX(-20deg)}to{opacity:0;transform:perspective(400px) rotateX(90deg)}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{transform:translate3d(110%,0,0);visibility:hidden}}@keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{transform:translate3d(-110%,0,0);visibility:hidden}}@keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{transform:translate3d(0,500px,0);visibility:hidden}}@keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{transform:translate3d(0,-500px,0);visibility:hidden}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{animation-name:Toastify__slideOutLeft}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{animation-name:Toastify__slideOutRight}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}} diff --git a/public/build/assets/admin-app-ff7516d6.js b/public/build/assets/admin-app-ff7516d6.js deleted file mode 100644 index 660daf5..0000000 --- a/public/build/assets/admin-app-ff7516d6.js +++ /dev/null @@ -1,7 +0,0 @@ -import{P as Ms,c as Bs}from"./index-8746c87e.js";var Ot=new Map;function Hn(n){var t=Ot.get(n);t&&t.destroy()}function Un(n){var t=Ot.get(n);t&&t.update()}var kt=null;typeof window>"u"?((kt=function(n){return n}).destroy=function(n){return n},kt.update=function(n){return n}):((kt=function(n,t){return n&&Array.prototype.forEach.call(n.length?n:[n],function(e){return function(s){if(s&&s.nodeName&&s.nodeName==="TEXTAREA"&&!Ot.has(s)){var i,r=null,o=window.getComputedStyle(s),a=(i=s.value,function(){u({testForHeightReduction:i===""||!s.value.startsWith(i),restoreTextAlign:null}),i=s.value}),l=(function(f){s.removeEventListener("autosize:destroy",l),s.removeEventListener("autosize:update",d),s.removeEventListener("input",a),window.removeEventListener("resize",d),Object.keys(f).forEach(function(E){return s.style[E]=f[E]}),Ot.delete(s)}).bind(s,{height:s.style.height,resize:s.style.resize,textAlign:s.style.textAlign,overflowY:s.style.overflowY,overflowX:s.style.overflowX,wordWrap:s.style.wordWrap});s.addEventListener("autosize:destroy",l),s.addEventListener("autosize:update",d),s.addEventListener("input",a),window.addEventListener("resize",d),s.style.overflowX="hidden",s.style.wordWrap="break-word",Ot.set(s,{destroy:l,update:d}),d()}function u(f){var E,A,p=f.restoreTextAlign,m=p===void 0?null:p,S=f.testForHeightReduction,k=S===void 0||S,z=o.overflowY;if(s.scrollHeight!==0&&(o.resize==="vertical"?s.style.resize="none":o.resize==="both"&&(s.style.resize="horizontal"),k&&(E=function(x){for(var Je=[];x&&x.parentNode&&x.parentNode instanceof Element;)x.parentNode.scrollTop&&Je.push([x.parentNode,x.parentNode.scrollTop]),x=x.parentNode;return function(){return Je.forEach(function(Qe){var de=Qe[0],Vn=Qe[1];de.style.scrollBehavior="auto",de.scrollTop=Vn,de.style.scrollBehavior=null})}}(s),s.style.height=""),A=o.boxSizing==="content-box"?s.scrollHeight-(parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)):s.scrollHeight+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),o.maxHeight!=="none"&&A>parseFloat(o.maxHeight)?(o.overflowY==="hidden"&&(s.style.overflow="scroll"),A=parseFloat(o.maxHeight)):o.overflowY!=="hidden"&&(s.style.overflow="hidden"),s.style.height=A+"px",m&&(s.style.textAlign=m),E&&E(),r!==A&&(s.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),r=A),z!==o.overflow&&!m)){var tt=o.textAlign;o.overflow==="hidden"&&(s.style.textAlign=tt==="start"?"end":"start"),u({restoreTextAlign:tt,testForHeightReduction:!0})}}function d(){u({testForHeightReduction:!0,restoreTextAlign:null})}}(e)}),n}).destroy=function(n){return n&&Array.prototype.forEach.call(n.length?n:[n],Hn),n},kt.update=function(n){return n&&Array.prototype.forEach.call(n.length?n:[n],Un),n});var jn=kt;const Ze=document.querySelectorAll('[data-bs-toggle="autosize"]');Ze.length&&Ze.forEach(function(n){jn(n)});function pt(n,t){if(n==null)return{};var e={},s=Object.keys(n),i,r;for(r=0;r=0)&&(e[i]=n[i]);return e}function b(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new b.InputMask(n,t)}class C{constructor(t){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},t)}aggregate(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}b.ChangeDetails=C;function ft(n){return typeof n=="string"||n instanceof String}const g={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Wn(n){switch(n){case g.LEFT:return g.FORCE_LEFT;case g.RIGHT:return g.FORCE_RIGHT;default:return n}}function fe(n){return n.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function Dt(n){return Array.isArray(n)?n:[n,new C]}function Zt(n,t){if(t===n)return!0;var e=Array.isArray(t),s=Array.isArray(n),i;if(e&&s){if(t.length!=n.length)return!1;for(i=0;i0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2?arguments[2]:void 0;this.value=t,this.from=e,this.stop=s}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const e=this.value[0];return this.value=this.value.slice(1),e}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}}class w{constructor(t){this._value="",this._update(Object.assign({},w.DEFAULTS,t)),this.isInitialized=!0}updateOptions(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t)}resolve(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{input:!0};return this.reset(),this.append(t,e,""),this.doCommit(),this.value}get unmaskedValue(){return this.value}set unmaskedValue(t){this.reset(),this.append(t,{},""),this.doCommit()}get typedValue(){return this.doParse(this.value)}set typedValue(t){this.value=this.doFormat(t)}get rawInputValue(){return this.extractInput(0,this.value.length,{raw:!0})}set rawInputValue(t){this.reset(),this.append(t,{raw:!0},""),this.doCommit()}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,e){return t}totalInputPositions(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return Math.min(this.value.length,e-t)}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this.value.slice(t,e)}extractTail(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return new $(this.extractInput(t,e),t)}appendTail(t){return ft(t)&&(t=new $(String(t))),t.appendTo(this)}_appendCharRaw(t){return t?(this._value+=t,new C({inserted:t,rawInserted:t})):new C}_appendChar(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;const i=this.state;let r;if([t,r]=Dt(this.doPrepare(t,e)),r=r.aggregate(this._appendCharRaw(t,e)),r.inserted){let o,a=this.doValidate(e)!==!1;if(a&&s!=null){const l=this.state;this.overwrite===!0&&(o=s.state,s.unshift(this.value.length-r.tailShift));let u=this.appendTail(s);a=u.rawInserted===s.toString(),!(a&&u.inserted)&&this.overwrite==="shift"&&(this.state=l,o=s.state,s.shift(),u=this.appendTail(s),a=u.rawInserted===s.toString()),a&&u.inserted&&(this.state=l)}a||(r=new C,this.state=i,s&&o&&(s.state=o))}return r}_appendPlaceholder(){return new C}_appendEager(){return new C}append(t,e,s){if(!ft(t))throw new Error("value should be string");const i=new C,r=ft(s)?new $(String(s)):s;e!=null&&e.tail&&(e._beforeTailState=this.state);for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this._value=this.value.slice(0,t)+this.value.slice(e),new C}withValueRefresh(t){if(this._refreshing||!this.isInitialized)return t();this._refreshing=!0;const e=this.rawInputValue,s=this.value,i=t();return this.rawInputValue=e,this.value&&this.value!==s&&s.indexOf(this.value)===0&&this.append(s.slice(this.value.length),{},""),delete this._refreshing,i}runIsolated(t){if(this._isolated||!this.isInitialized)return t(this);this._isolated=!0;const e=this.state,s=t(this);return this.state=e,delete this._isolated,s}doSkipInvalid(t){return this.skipInvalid}doPrepare(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.prepare?this.prepare(t,this,e):t}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}doFormat(t){return this.format?this.format(t,this):t}doParse(t){return this.parse?this.parse(t,this):t}splice(t,e,s,i){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{input:!0};const o=t+e,a=this.extractTail(o),l=this.eager===!0||this.eager==="remove";let u;l&&(i=Wn(i),u=this.extractInput(0,o,{raw:!0}));let d=t;const f=new C;if(i!==g.NONE&&(d=this.nearestInputPos(t,e>1&&t!==0&&!l?g.NONE:i),f.tailShift=d-t),f.aggregate(this.remove(d)),l&&i!==g.NONE&&u===this.rawInputValue)if(i===g.FORCE_LEFT){let E;for(;u===this.rawInputValue&&(E=this.value.length);)f.aggregate(new C({tailShift:-1})).aggregate(this.remove(E-1))}else i===g.FORCE_RIGHT&&a.unshift();return f.aggregate(this.append(s,r,a))}maskEquals(t){return this.mask===t}typedValueEquals(t){const e=this.typedValue;return t===e||w.EMPTY_VALUES.includes(t)&&w.EMPTY_VALUES.includes(e)||this.doFormat(t)===this.doFormat(this.typedValue)}}w.DEFAULTS={format:String,parse:n=>n,skipInvalid:!0};w.EMPTY_VALUES=[void 0,null,""];b.Masked=w;function $s(n){if(n==null)throw new Error("mask property should be defined");return n instanceof RegExp?b.MaskedRegExp:ft(n)?b.MaskedPattern:n instanceof Date||n===Date?b.MaskedDate:n instanceof Number||typeof n=="number"||n===Number?b.MaskedNumber:Array.isArray(n)||n===Array?b.MaskedDynamic:b.Masked&&n.prototype instanceof b.Masked?n:n instanceof b.Masked?n.constructor:n instanceof Function?b.MaskedFunction:(console.warn("Mask not found for mask",n),b.Masked)}function it(n){if(b.Masked&&n instanceof b.Masked)return n;n=Object.assign({},n);const t=n.mask;if(b.Masked&&t instanceof b.Masked)return t;const e=$s(t);if(!e)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new e(n)}b.createMask=it;const Kn=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],Yn={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class Vs{constructor(t){const{parent:e,isOptional:s,placeholderChar:i,displayChar:r,lazy:o,eager:a}=t,l=pt(t,Kn);this.masked=it(l),Object.assign(this,{parent:e,isOptional:s,placeholderChar:i,displayChar:r,lazy:o,eager:a})}reset(){this.isFilled=!1,this.masked.reset()}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return t===0&&e>=1?(this.isFilled=!1,this.masked.remove(t,e)):new C}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.isFilled)return new C;const s=this.masked.state,i=this.masked._appendChar(t,e);return i.inserted&&this.doValidate(e)===!1&&(i.inserted=i.rawInserted="",this.masked.state=s),!i.inserted&&!this.isOptional&&!this.lazy&&!e.input&&(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=!!i.inserted,i}append(){return this.masked.append(...arguments)}_appendPlaceholder(){const t=new C;return this.isFilled||this.isOptional||(this.isFilled=!0,t.inserted=this.placeholderChar),t}_appendEager(){return new C}extractTail(){return this.masked.extractTail(...arguments)}appendTail(){return this.masked.appendTail(...arguments)}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,s=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(t,e,s)}nearestInputPos(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.NONE;const s=0,i=this.value.length,r=Math.min(Math.max(t,s),i);switch(e){case g.LEFT:case g.FORCE_LEFT:return this.isComplete?r:s;case g.RIGHT:case g.FORCE_RIGHT:return this.isComplete?r:i;case g.NONE:default:return r}}totalInputPositions(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this.value.slice(t,e).length}doValidate(){return this.masked.doValidate(...arguments)&&(!this.parent||this.parent.doValidate(...arguments))}doCommit(){this.masked.doCommit()}get state(){return{masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}}class Hs{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return this._value=this._value.slice(0,t)+this._value.slice(e),this._value||(this._isRawInput=!1),new C}nearestInputPos(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.NONE;const s=0,i=this._value.length;switch(e){case g.LEFT:case g.FORCE_LEFT:return s;case g.NONE:case g.RIGHT:case g.FORCE_RIGHT:default:return i}}totalInputPositions(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return this._isRawInput?e-t:0}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(t,e)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=new C;if(this.isFilled)return s;const i=this.eager===!0||this.eager==="append",o=this.char===t&&(this.isUnmasking||e.input||e.raw)&&(!e.raw||!i)&&!e.tail;return o&&(s.rawInserted=this.char),this._value=s.inserted=this.char,this._isRawInput=o&&(e.raw||e.input),s}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const t=new C;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,new $("")}appendTail(t){return ft(t)&&(t=new $(String(t))),t.appendTo(this)}append(t,e,s){const i=this._appendChar(t[0],e);return s!=null&&(i.tailShift+=this.appendTail(s).tailShift),i}doCommit(){}get state(){return{_value:this._value,_isRawInput:this._isRawInput}}set state(t){Object.assign(this,t)}}const qn=["chunks"];class et{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.chunks=t,this.from=e}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;ft(t)&&(t=new $(String(t)));const e=this.chunks[this.chunks.length-1],s=e&&(e.stop===t.stop||t.stop==null)&&t.from===e.from+e.toString().length;if(t instanceof $)s?e.extend(t.toString()):this.chunks.push(t);else if(t instanceof et){if(t.stop==null){let i;for(;t.chunks.length&&t.chunks[0].stop==null;)i=t.chunks.shift(),i.from+=t.from,this.extend(i)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof b.MaskedPattern))return new $(this.toString()).appendTo(t);const e=new C;for(let s=0;s=0){const l=t._appendPlaceholder(o);e.aggregate(l)}a=i instanceof et&&t._blocks[o]}if(a){const l=a.appendTail(i);l.skip=!1,e.aggregate(l),t._value+=l.inserted;const u=i.toString().slice(l.rawInserted.length);u&&e.aggregate(t.append(u,{tail:!0}))}else e.aggregate(t.append(i.toString(),{tail:!0}))}return e}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:e}=t,s=pt(t,qn);Object.assign(this,s),this.chunks=e.map(i=>{const r="chunks"in i?new et:new $;return r.state=i,r})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const e=t!=null?t-this.from:t;let s=0;for(;s=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((e=this.block)===null||e===void 0?void 0:e.value.length)||0){var e;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,g.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,g.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,g.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,g.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,g.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,g.NONE),!0})}}class Xn extends w{_update(t){t.mask&&(t.validate=e=>e.search(t.mask)>=0),super._update(t)}}b.MaskedRegExp=Xn;const Jn=["_blocks"];class O extends w{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.definitions=Object.assign({},Yn,t.definitions),super(Object.assign({},O.DEFAULTS,t))}_update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};let e=this.mask;if(!e||!t)return;let s=!1,i=!1;for(let a=0;aE.indexOf(m)===0);A.sort((m,S)=>S.length-m.length);const p=A[0];if(p){const m=it(Object.assign({parent:this,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite},this.blocks[p]));m&&(this._blocks.push(m),this._maskedBlocks[p]||(this._maskedBlocks[p]=[]),this._maskedBlocks[p].push(this._blocks.length-1)),a+=p.length-1;continue}}let l=e[a],u=l in t;if(l===O.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(l==="{"||l==="}"){s=!s;continue}if(l==="["||l==="]"){i=!i;continue}if(l===O.ESCAPE_CHAR){if(++a,l=e[a],!l)break;u=!1}const d=(r=t[l])!==null&&r!==void 0&&r.mask&&!(((o=t[l])===null||o===void 0?void 0:o.mask.prototype)instanceof b.Masked)?t[l]:{mask:t[l]},f=u?new Vs(Object.assign({parent:this,isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},d)):new Hs({char:l,eager:this.eager,isUnmasking:s});this._blocks.push(f)}}get state(){return Object.assign({},super.state,{_blocks:this._blocks.map(t=>t.state)})}set state(t){const{_blocks:e}=t,s=pt(t,Jn);this._blocks.forEach((i,r)=>i.state=e[r]),super.state=s}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this._blocks.reduce((t,e)=>t+=e.unmaskedValue,"")}set unmaskedValue(t){super.unmaskedValue=t}get value(){return this._blocks.reduce((t,e)=>t+=e.value,"")}set value(t){super.value=t}get displayValue(){return this._blocks.reduce((t,e)=>t+=e.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const e=new C;let s=(t=this._mapPosToBlock(this.value.length))===null||t===void 0?void 0:t.index;if(s==null)return e;this._blocks[s].isFilled&&++s;for(let i=s;i1&&arguments[1]!==void 0?arguments[1]:{};const s=this._mapPosToBlock(this.value.length),i=new C;if(!s)return i;for(let a=s.index;;++a){var r,o;const l=this._blocks[a];if(!l)break;const u=l._appendChar(t,Object.assign({},e,{_beforeTailState:(r=e._beforeTailState)===null||r===void 0||(o=r._blocks)===null||o===void 0?void 0:o[a]})),d=u.skip;if(i.aggregate(u),d||u.rawInserted)break}return i}extractTail(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;const s=new et;return t===e||this._forEachBlocksInRange(t,e,(i,r,o,a)=>{const l=i.extractTail(o,a);l.stop=this._findStopBefore(r),l.from=this._blockStartPos(r),l instanceof et&&(l.blockIndex=r),s.extend(l)}),s}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t===e)return"";let i="";return this._forEachBlocksInRange(t,e,(r,o,a,l)=>{i+=r.extractInput(a,l,s)}),i}_findStopBefore(t){let e;for(let s=0;s{if(!o.lazy||t!=null){const a=o._blocks!=null?[o._blocks.length]:[],l=o._appendPlaceholder(...a);this._value+=l.inserted,e.aggregate(l)}}),e}_mapPosToBlock(t){let e="";for(let s=0;se+=s.value.length,0)}_forEachBlocksInRange(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,s=arguments.length>2?arguments[2]:void 0;const i=this._mapPosToBlock(t);if(i){const r=this._mapPosToBlock(e),o=r&&i.index===r.index,a=i.offset,l=r&&o?r.offset:this._blocks[i.index].value.length;if(s(this._blocks[i.index],i.index,a,l),r&&!o){for(let u=i.index+1;u0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;const s=super.remove(t,e);return this._forEachBlocksInRange(t,e,(i,r,o,a)=>{s.aggregate(i.remove(o,a))}),s}nearestInputPos(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.NONE;if(!this._blocks.length)return 0;const s=new Gn(this,t);if(e===g.NONE)return s.pushRightBeforeInput()||(s.popState(),s.pushLeftBeforeInput())?s.pos:this.value.length;if(e===g.LEFT||e===g.FORCE_LEFT){if(e===g.LEFT){if(s.pushRightBeforeFilled(),s.ok&&s.pos===t)return t;s.popState()}if(s.pushLeftBeforeInput(),s.pushLeftBeforeRequired(),s.pushLeftBeforeFilled(),e===g.LEFT){if(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.ok&&s.pos<=t||(s.popState(),s.ok&&s.pos<=t))return s.pos;s.popState()}return s.ok?s.pos:e===g.FORCE_LEFT?0:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:0)}return e===g.RIGHT||e===g.FORCE_RIGHT?(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.pushRightBeforeFilled()?s.pos:e===g.FORCE_RIGHT?this.value.length:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:this.nearestInputPos(t,g.LEFT))):t}totalInputPositions(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,s=0;return this._forEachBlocksInRange(t,e,(i,r,o,a)=>{s+=i.totalInputPositions(o,a)}),s}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const e=this._maskedBlocks[t];return e?e.map(s=>this._blocks[s]):[]}}O.DEFAULTS={lazy:!0,placeholderChar:"_"};O.STOP_CHAR="`";O.ESCAPE_CHAR="\\";O.InputDefinition=Vs;O.FixedDefinition=Hs;b.MaskedPattern=O;class Kt extends O{get _matchFrom(){return this.maxLength-String(this.from).length}_update(t){t=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},t);let e=String(t.to).length;t.maxLength!=null&&(e=Math.max(e,t.maxLength)),t.maxLength=e;const s=String(t.from).padStart(e,"0"),i=String(t.to).padStart(e,"0");let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:{},s;if([t,s]=Dt(super.doPrepare(t.replace(/\D/g,""),e)),!this.autofix||!t)return t;const i=String(this.from).padStart(this.maxLength,"0"),r=String(this.to).padStart(this.maxLength,"0");let o=this.value+t;if(o.length>this.maxLength)return"";const[a,l]=this.boundaries(o);return Number(l)this.to?this.autofix==="pad"&&o.length{const i=t.blocks[s];!("autofix"in i)&&"autofix"in t&&(i.autofix=t.autofix)}),super._update(t)}doValidate(){const t=this.date;return super.doValidate(...arguments)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}}mt.DEFAULTS={pattern:"d{.}`m{.}`Y",format:n=>{if(!n)return"";const t=String(n.getDate()).padStart(2,"0"),e=String(n.getMonth()+1).padStart(2,"0"),s=n.getFullYear();return[t,e,s].join(".")},parse:n=>{const[t,e,s]=n.split(".");return new Date(s,e-1,t)}};mt.GET_DEFAULT_BLOCKS=()=>({d:{mask:Kt,from:1,to:31,maxLength:2},m:{mask:Kt,from:1,to:12,maxLength:2},Y:{mask:Kt,from:1900,to:9999}});b.MaskedDate=mt;class He{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t??this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t??this.value.length}select(t,e){if(!(t==null||e==null||t===this.selectionStart&&e===this.selectionEnd))try{this._unsafeSelect(t,e)}catch{}}_unsafeSelect(t,e){}get isActive(){return!1}bindEvents(t){}unbindEvents(){}}b.MaskElement=He;class Et extends He{constructor(t){super(),this.input=t,this._handlers={}}get rootElement(){var t,e,s;return(t=(e=(s=this.input).getRootNode)===null||e===void 0?void 0:e.call(s))!==null&&t!==void 0?t:document}get isActive(){return this.input===this.rootElement.activeElement}get _unsafeSelectionStart(){return this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,e){this.input.setSelectionRange(t,e)}get value(){return this.input.value}set value(t){this.input.value=t}bindEvents(t){Object.keys(t).forEach(e=>this._toggleEventHandler(Et.EVENTS_MAP[e],t[e]))}unbindEvents(){Object.keys(this._handlers).forEach(t=>this._toggleEventHandler(t))}_toggleEventHandler(t,e){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),e&&(this.input.addEventListener(t,e),this._handlers[t]=e)}}Et.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"};b.HTMLMaskElement=Et;class Us extends Et{get _unsafeSelectionStart(){const t=this.rootElement,e=t.getSelection&&t.getSelection(),s=e&&e.anchorOffset,i=e&&e.focusOffset;return i==null||s==null||si?s:i}_unsafeSelect(t,e){if(!this.rootElement.createRange)return;const s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,t),s.setEnd(this.input.lastChild||this.input,e);const i=this.rootElement,r=i.getSelection&&i.getSelection();r&&(r.removeAllRanges(),r.addRange(s))}get value(){return this.input.textContent}set value(t){this.input.textContent=t}}b.HTMLContenteditableMaskElement=Us;const Qn=["mask"];class Zn{constructor(t,e){this.el=t instanceof He?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new Us(t):new Et(t),this.masked=it(e),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}get mask(){return this.masked.mask}maskEquals(t){var e;return t==null||((e=this.masked)===null||e===void 0?void 0:e.maskEquals(t))}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof b.Masked)&&this.masked.constructor===$s(t)){this.masked.updateOptions({mask:t});return}const e=it({mask:t});e.unmaskedValue=this.masked.unmaskedValue,this.masked=e}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;io(...s))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const t=this.masked.unmaskedValue,e=this.masked.value,s=this.displayValue,i=this.unmaskedValue!==t||this.value!==e;this._unmaskedValue=t,this._value=e,this.el.value!==s&&(this.el.value=s),i&&this._fireChangeEvents()}updateOptions(t){const{mask:e}=t,s=pt(t,Qn),i=!this.maskEquals(e),r=!Zt(this.masked,s);i&&(this.mask=e),r&&this.masked.updateOptions(s),(i||r)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,g.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,e){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e),this}off(t,e){if(!this._listeners[t])return this;if(!e)return delete this._listeners[t],this;const s=this._listeners[t].indexOf(e);return s>=0&&this._listeners[t].splice(s,1),this}_onInput(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();const e=new zn(this.el.value,this.cursorPos,this.displayValue,this._selection),s=this.masked.rawInputValue,i=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection,{input:!0,raw:!0}).offset,r=s===this.masked.rawInputValue?e.removeDirection:g.NONE;let o=this.masked.nearestInputPos(e.startChangePos+i,r);r!==g.NONE&&(o=this.masked.nearestInputPos(o,g.NONE)),this.updateControl(),this.updateCursor(o),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}b.InputMask=Zn;class ti extends O{_update(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),super._update(t)}doValidate(){return this.enum.some(t=>t.indexOf(this.unmaskedValue)>=0)&&super.doValidate(...arguments)}}b.MaskedEnum=ti;class D extends w{constructor(t){super(Object.assign({},D.DEFAULTS,t))}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){let t="^"+(this.allowNegative?"[+|\\-]?":""),e="\\d*",s=(this.scale?"(".concat(fe(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp(t+e+s),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(fe).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(fe(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}doPrepare(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t=this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(e.input&&e.raw||!e.input&&!e.raw)?t.replace(this._mapToRadixRegExp,this.radix):t);const[s,i]=Dt(super.doPrepare(t,e));return t&&!s&&(i.skip=!0),[s,i]}_separatorsCount(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=0;for(let i=0;i0&&arguments[0]!==void 0?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,s=arguments.length>2?arguments[2]:void 0;return[t,e]=this._adjustRangeWithSeparators(t,e),this._removeThousandsSeparators(super.extractInput(t,e,s))}_appendCharRaw(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.thousandsSeparator)return super._appendCharRaw(t,e);const s=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(s);this._value=this._removeThousandsSeparators(this.value);const r=super._appendCharRaw(t,e);this._value=this._insertThousandsSeparators(this._value);const o=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(o);return r.tailShift+=(a-i)*this.thousandsSeparator.length,r.skip=!r.rawInserted&&t===this.thousandsSeparator,r}_findSeparatorAround(t){if(this.thousandsSeparator){const e=t-this.thousandsSeparator.length+1,s=this.value.indexOf(this.thousandsSeparator,e);if(s<=t)return s}return-1}_adjustRangeWithSeparators(t,e){const s=this._findSeparatorAround(t);s>=0&&(t=s);const i=this._findSeparatorAround(e);return i>=0&&(e=i+this.thousandsSeparator.length),[t,e]}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;[t,e]=this._adjustRangeWithSeparators(t,e);const s=this.value.slice(0,t),i=this.value.slice(e),r=this._separatorsCount(s.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+i));const o=this._separatorsCountFromSlice(s);return new C({tailShift:(o-r)*this.thousandsSeparator.length})}nearestInputPos(t,e){if(!this.thousandsSeparator)return t;switch(e){case g.NONE:case g.LEFT:case g.FORCE_LEFT:{const s=this._findSeparatorAround(t-1);if(s>=0){const i=s+this.thousandsSeparator.length;if(t=0)return s+this.thousandsSeparator.length}}return t}doValidate(t){let e=!!this._removeThousandsSeparators(this.value).match(this._numberRegExp);if(e){const s=this.number;e=e&&!isNaN(s)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return e&&super.doValidate(t)}doCommit(){if(this.value){const t=this.number;let e=t;this.min!=null&&(e=Math.max(e,this.min)),this.max!=null&&(e=Math.min(e,this.max)),e!==t&&(this.unmaskedValue=this.doFormat(e));let s=this.value;this.normalizeZeros&&(s=this._normalizeZeros(s)),this.padFractionalZeros&&this.scale>0&&(s=this._padFractionalZeros(s)),this._value=s}super.doCommit()}_normalizeZeros(t){const e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,(s,i,r,o)=>i+o),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),e.length>1&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}doSkipInvalid(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;const i=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===D.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,e,s)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,D.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue(t){this.rawInputValue=this.doFormat(t).replace(D.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.signed||this.min!=null&&this.min<0||this.max!=null&&this.max<0}typedValueEquals(t){return(super.typedValueEquals(t)||D.EMPTY_VALUES.includes(t)&&D.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}D.UNMASKED_RADIX=".";D.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[D.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:n=>n.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})};D.EMPTY_VALUES=[...w.EMPTY_VALUES,0];b.MaskedNumber=D;class ei extends w{_update(t){t.mask&&(t.validate=t.mask),super._update(t)}}b.MaskedFunction=ei;const si=["compiledMasks","currentMaskRef","currentMask"],ni=["mask"];class ie extends w{constructor(t){super(Object.assign({},ie.DEFAULTS,t)),this.currentMask=null}_update(t){super._update(t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map(e=>it(e)):[])}_appendCharRaw(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this._applyDispatch(t,e);return this.currentMask&&s.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(e))),s}_applyDispatch(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";const i=e.tail&&e._beforeTailState!=null?e._beforeTailState._value:this.value,r=this.rawInputValue,o=e.tail&&e._beforeTailState!=null?e._beforeTailState._rawInputValue:r,a=r.slice(o.length),l=this.currentMask,u=new C,d=l==null?void 0:l.state;if(this.currentMask=this.doDispatch(t,Object.assign({},e),s),this.currentMask)if(this.currentMask!==l){if(this.currentMask.reset(),o){const f=this.currentMask.append(o,{raw:!0});u.tailShift=f.inserted.length-i.length}a&&(u.tailShift+=this.currentMask.append(a,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=d;return u}_appendPlaceholder(){const t=this._applyDispatch(...arguments);return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){const t=this._applyDispatch(...arguments);return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){const e=new C;return t&&e.aggregate(this._applyDispatch("",{},t)),e.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var e,s;return Object.assign({},t,{_beforeTailState:((e=t._beforeTailState)===null||e===void 0?void 0:e.currentMaskRef)===this.currentMask&&((s=t._beforeTailState)===null||s===void 0?void 0:s.currentMask)||t._beforeTailState})}doDispatch(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return this.dispatch(t,this,e,s)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},[s,i]=Dt(super.doPrepare(t,e));if(this.currentMask){let r;[s,r]=Dt(super.doPrepare(s,this.currentMaskFlags(e))),i=i.aggregate(r)}return[s,i]}reset(){var t;(t=this.currentMask)===null||t===void 0||t.reset(),this.compiledMasks.forEach(e=>e.reset())}get value(){return this.currentMask?this.currentMask.value:""}set value(t){super.value=t}get unmaskedValue(){return this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.currentMask?this.currentMask.typedValue:""}set typedValue(t){let e=String(t);this.currentMask&&(this.currentMask.typedValue=t,e=this.currentMask.unmaskedValue),this.unmaskedValue=e}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!(!((t=this.currentMask)===null||t===void 0)&&t.isComplete)}get isFilled(){var t;return!!(!((t=this.currentMask)===null||t===void 0)&&t.isFilled)}remove(){const t=new C;return this.currentMask&&t.aggregate(this.currentMask.remove(...arguments)).aggregate(this._applyDispatch()),t}get state(){var t;return Object.assign({},super.state,{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(e=>e.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)===null||t===void 0?void 0:t.state})}set state(t){const{compiledMasks:e,currentMaskRef:s,currentMask:i}=t,r=pt(t,si);this.compiledMasks.forEach((o,a)=>o.state=e[a]),s!=null&&(this.currentMask=s,this.currentMask.state=i),super.state=r}extractInput(){return this.currentMask?this.currentMask.extractInput(...arguments):""}extractTail(){return this.currentMask?this.currentMask.extractTail(...arguments):super.extractTail(...arguments)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(){return this.currentMask?this.currentMask.nearestInputPos(...arguments):super.nearestInputPos(...arguments)}get overwrite(){return this.currentMask?this.currentMask.overwrite:super.overwrite}set overwrite(t){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings')}get eager(){return this.currentMask?this.currentMask.eager:super.eager}set eager(t){console.warn('"eager" option is not available in dynamic mask, use this option in siblings')}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:super.skipInvalid}set skipInvalid(t){(this.isInitialized||t!==w.DEFAULTS.skipInvalid)&&console.warn('"skipInvalid" option is not available in dynamic mask, use this option in siblings')}maskEquals(t){return Array.isArray(t)&&this.compiledMasks.every((e,s)=>{if(!t[s])return;const i=t[s],{mask:r}=i,o=pt(i,ni);return Zt(e,o)&&e.maskEquals(r)})}typedValueEquals(t){var e;return!!(!((e=this.currentMask)===null||e===void 0)&&e.typedValueEquals(t))}}ie.DEFAULTS={dispatch:(n,t,e,s)=>{if(!t.compiledMasks.length)return;const i=t.rawInputValue,r=t.compiledMasks.map((o,a)=>{const l=t.currentMask===o,u=l?o.value.length:o.nearestInputPos(o.value.length,g.FORCE_LEFT);return o.rawInputValue!==i?(o.reset(),o.append(i,{raw:!0})):l||o.remove(u),o.append(n,t.currentMaskFlags(e)),o.appendTail(s),{index:a,weight:o.rawInputValue.length,totalInputPositions:o.totalInputPositions(0,Math.max(u,o.nearestInputPos(o.value.length,g.FORCE_LEFT)))}});return r.sort((o,a)=>a.weight-o.weight||a.totalInputPositions-o.totalInputPositions),t.compiledMasks[r[0].index]}};b.MaskedDynamic=ie;const Ie={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function js(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ie.MASKED,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ie.MASKED;const s=it(n);return i=>s.runIsolated(r=>(r[t]=i,r[e]))}function ii(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),s=1;s(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),n),ui=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),li=n=>{do n+=Math.floor(Math.random()*oi);while(document.getElementById(n));return n},ci=n=>{if(!n)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(n);const s=Number.parseFloat(t),i=Number.parseFloat(e);return!s&&!i?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*ai)},zs=n=>{n.dispatchEvent(new Event(Le))},V=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),q=n=>V(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(Ws(n)):null,At=n=>{if(!V(n)||n.getClientRects().length===0)return!1;const t=getComputedStyle(n).getPropertyValue("visibility")==="visible",e=n.closest("details:not([open])");if(!e)return t;if(e!==n){const s=n.closest("summary");if(s&&s.parentNode!==e||s===null)return!1}return t},G=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",Ks=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const t=n.getRootNode();return t instanceof ShadowRoot?t:null}return n instanceof ShadowRoot?n:n.parentNode?Ks(n.parentNode):null},te=()=>{},Ft=n=>{n.offsetHeight},Ys=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,me=[],hi=n=>{document.readyState==="loading"?(me.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of me)t()}),me.push(n)):n()},I=()=>document.documentElement.dir==="rtl",R=n=>{hi(()=>{const t=Ys();if(t){const e=n.NAME,s=t.fn[e];t.fn[e]=n.jQueryInterface,t.fn[e].Constructor=n,t.fn[e].noConflict=()=>(t.fn[e]=s,n.jQueryInterface)}})},y=(n,t=[],e=n)=>typeof n=="function"?n(...t):e,qs=(n,t,e=!0)=>{if(!e){y(n);return}const s=5,i=ci(t)+s;let r=!1;const o=({target:a})=>{a===t&&(r=!0,t.removeEventListener(Le,o),y(n))};t.addEventListener(Le,o),setTimeout(()=>{r||zs(t)},i)},Ue=(n,t,e,s)=>{const i=n.length;let r=n.indexOf(t);return r===-1?!e&&s?n[i-1]:n[0]:(r+=e?1:-1,s&&(r=(r+i)%i),n[Math.max(0,Math.min(r,i-1))])},di=/[^.]*(?=\..*)\.|.*/,fi=/\..*/,pi=/::\d+$/,ge={};let ts=1;const Gs={mouseenter:"mouseover",mouseleave:"mouseout"},mi=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Xs(n,t){return t&&`${t}::${ts++}`||n.uidEvent||ts++}function Js(n){const t=Xs(n);return n.uidEvent=t,ge[t]=ge[t]||{},ge[t]}function gi(n,t){return function e(s){return je(s,{delegateTarget:n}),e.oneOff&&h.off(n,s.type,t),t.apply(n,[s])}}function _i(n,t,e){return function s(i){const r=n.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return je(i,{delegateTarget:o}),s.oneOff&&h.off(n,i.type,t,e),e.apply(o,[i])}}function Qs(n,t,e=null){return Object.values(n).find(s=>s.callable===t&&s.delegationSelector===e)}function Zs(n,t,e){const s=typeof t=="string",i=s?e:t||e;let r=tn(n);return mi.has(r)||(r=n),[s,i,r]}function es(n,t,e,s,i){if(typeof t!="string"||!n)return;let[r,o,a]=Zs(t,e,s);t in Gs&&(o=(p=>function(m){if(!m.relatedTarget||m.relatedTarget!==m.delegateTarget&&!m.delegateTarget.contains(m.relatedTarget))return p.call(this,m)})(o));const l=Js(n),u=l[a]||(l[a]={}),d=Qs(u,o,r?e:null);if(d){d.oneOff=d.oneOff&&i;return}const f=Xs(o,t.replace(di,"")),E=r?_i(n,e,o):gi(n,o);E.delegationSelector=r?e:null,E.callable=o,E.oneOff=i,E.uidEvent=f,u[f]=E,n.addEventListener(a,E,r)}function Re(n,t,e,s,i){const r=Qs(t[e],s,i);r&&(n.removeEventListener(e,r,!!i),delete t[e][r.uidEvent])}function Ei(n,t,e,s){const i=t[e]||{};for(const[r,o]of Object.entries(i))r.includes(s)&&Re(n,t,e,o.callable,o.delegationSelector)}function tn(n){return n=n.replace(fi,""),Gs[n]||n}const h={on(n,t,e,s){es(n,t,e,s,!1)},one(n,t,e,s){es(n,t,e,s,!0)},off(n,t,e,s){if(typeof t!="string"||!n)return;const[i,r,o]=Zs(t,e,s),a=o!==t,l=Js(n),u=l[o]||{},d=t.startsWith(".");if(typeof r<"u"){if(!Object.keys(u).length)return;Re(n,l,o,r,i?e:null);return}if(d)for(const f of Object.keys(l))Ei(n,l,f,t.slice(1));for(const[f,E]of Object.entries(u)){const A=f.replace(pi,"");(!a||t.includes(A))&&Re(n,l,o,E.callable,E.delegationSelector)}},trigger(n,t,e){if(typeof t!="string"||!n)return null;const s=Ys(),i=tn(t),r=t!==i;let o=null,a=!0,l=!0,u=!1;r&&s&&(o=s.Event(t,e),s(n).trigger(o),a=!o.isPropagationStopped(),l=!o.isImmediatePropagationStopped(),u=o.isDefaultPrevented());const d=je(new Event(t,{bubbles:a,cancelable:!0}),e);return u&&d.preventDefault(),l&&n.dispatchEvent(d),d.defaultPrevented&&o&&o.preventDefault(),d}};function je(n,t={}){for(const[e,s]of Object.entries(t))try{n[e]=s}catch{Object.defineProperty(n,e,{configurable:!0,get(){return s}})}return n}function ss(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function _e(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const H={setDataAttribute(n,t,e){n.setAttribute(`data-bs-${_e(t)}`,e)},removeDataAttribute(n,t){n.removeAttribute(`data-bs-${_e(t)}`)},getDataAttributes(n){if(!n)return{};const t={},e=Object.keys(n.dataset).filter(s=>s.startsWith("bs")&&!s.startsWith("bsConfig"));for(const s of e){let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=ss(n.dataset[s])}return t},getDataAttribute(n,t){return ss(n.getAttribute(`data-bs-${_e(t)}`))}};class It{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const s=V(e)?H.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof s=="object"?s:{},...V(e)?H.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[s,i]of Object.entries(e)){const r=t[s],o=V(r)?"element":ui(r);if(!new RegExp(i).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${o}" but expected type "${i}".`)}}}const Ai="5.3.0-alpha2";class P extends It{constructor(t,e){super(),t=q(t),t&&(this._element=t,this._config=this._getConfig(e),pe.set(this._element,this.constructor.DATA_KEY,this))}dispose(){pe.remove(this._element,this.constructor.DATA_KEY),h.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,s=!0){qs(t,e,s)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return pe.get(q(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return Ai}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Ee=n=>{let t=n.getAttribute("data-bs-target");if(!t||t==="#"){let e=n.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return Ws(t)},_={find(n,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,n))},findOne(n,t=document.documentElement){return Element.prototype.querySelector.call(t,n)},children(n,t){return[].concat(...n.children).filter(e=>e.matches(t))},parents(n,t){const e=[];let s=n.parentNode.closest(t);for(;s;)e.push(s),s=s.parentNode.closest(t);return e},prev(n,t){let e=n.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(n,t){let e=n.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(n){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,n).filter(e=>!G(e)&&At(e))},getSelectorFromElement(n){const t=Ee(n);return t&&_.findOne(t)?t:null},getElementFromSelector(n){const t=Ee(n);return t?_.findOne(t):null},getMultipleElementsFromSelector(n){const t=Ee(n);return t?_.find(t):[]}},re=(n,t="hide")=>{const e=`click.dismiss${n.EVENT_KEY}`,s=n.NAME;h.on(document,e,`[data-bs-dismiss="${s}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),G(this))return;const r=_.getElementFromSelector(this)||this.closest(`.${s}`);n.getOrCreateInstance(r)[t]()})},bi="alert",Ti="bs.alert",en=`.${Ti}`,Ci=`close${en}`,vi=`closed${en}`,Si="fade",yi="show";class Lt extends P{static get NAME(){return bi}close(){if(h.trigger(this._element,Ci).defaultPrevented)return;this._element.classList.remove(yi);const e=this._element.classList.contains(Si);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),h.trigger(this._element,vi),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Lt.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}re(Lt,"close");R(Lt);const wi="button",ki="bs.button",Oi=`.${ki}`,Di=".data-api",Ni="active",ns='[data-bs-toggle="button"]',Fi=`click${Oi}${Di}`;class Rt extends P{static get NAME(){return wi}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Ni))}static jQueryInterface(t){return this.each(function(){const e=Rt.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}h.on(document,Fi,ns,n=>{n.preventDefault();const t=n.target.closest(ns);Rt.getOrCreateInstance(t).toggle()});R(Rt);const Ii="swipe",bt=".bs.swipe",Li=`touchstart${bt}`,Ri=`touchmove${bt}`,Pi=`touchend${bt}`,xi=`pointerdown${bt}`,Mi=`pointerup${bt}`,Bi="touch",$i="pen",Vi="pointer-event",Hi=40,Ui={endCallback:null,leftCallback:null,rightCallback:null},ji={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ee extends It{constructor(t,e){super(),this._element=t,!(!t||!ee.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Ui}static get DefaultType(){return ji}static get NAME(){return Ii}dispose(){h.off(this._element,bt)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),y(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Hi)return;const e=t/this._deltaX;this._deltaX=0,e&&y(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(h.on(this._element,xi,t=>this._start(t)),h.on(this._element,Mi,t=>this._end(t)),this._element.classList.add(Vi)):(h.on(this._element,Li,t=>this._start(t)),h.on(this._element,Ri,t=>this._move(t)),h.on(this._element,Pi,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===$i||t.pointerType===Bi)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Wi="carousel",zi="bs.carousel",J=`.${zi}`,sn=".data-api",Ki="ArrowLeft",Yi="ArrowRight",qi=500,St="next",ut="prev",ct="left",Yt="right",Gi=`slide${J}`,Ae=`slid${J}`,Xi=`keydown${J}`,Ji=`mouseenter${J}`,Qi=`mouseleave${J}`,Zi=`dragstart${J}`,tr=`load${J}${sn}`,er=`click${J}${sn}`,nn="carousel",Vt="active",sr="slide",nr="carousel-item-end",ir="carousel-item-start",rr="carousel-item-next",or="carousel-item-prev",rn=".active",on=".carousel-item",ar=rn+on,ur=".carousel-item img",lr=".carousel-indicators",cr="[data-bs-slide], [data-bs-slide-to]",hr='[data-bs-ride="carousel"]',dr={[Ki]:Yt,[Yi]:ct},fr={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},pr={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Tt extends P{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=_.findOne(lr,this._element),this._addEventListeners(),this._config.ride===nn&&this.cycle()}static get Default(){return fr}static get DefaultType(){return pr}static get NAME(){return Wi}next(){this._slide(St)}nextWhenVisible(){!document.hidden&&At(this._element)&&this.next()}prev(){this._slide(ut)}pause(){this._isSliding&&zs(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){h.one(this._element,Ae,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){h.one(this._element,Ae,()=>this.to(t));return}const s=this._getItemIndex(this._getActive());if(s===t)return;const i=t>s?St:ut;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&h.on(this._element,Xi,t=>this._keydown(t)),this._config.pause==="hover"&&(h.on(this._element,Ji,()=>this.pause()),h.on(this._element,Qi,()=>this._maybeEnableCycle())),this._config.touch&&ee.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const s of _.find(ur,this._element))h.on(s,Zi,i=>i.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(ct)),rightCallback:()=>this._slide(this._directionToOrder(Yt)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),qi+this._config.interval))}};this._swipeHelper=new ee(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=dr[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=_.findOne(rn,this._indicatorsElement);e.classList.remove(Vt),e.removeAttribute("aria-current");const s=_.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);s&&(s.classList.add(Vt),s.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const s=this._getActive(),i=t===St,r=e||Ue(this._getItems(),s,i,this._config.wrap);if(r===s)return;const o=this._getItemIndex(r),a=A=>h.trigger(this._element,A,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(s),to:o});if(a(Gi).defaultPrevented||!s||!r)return;const u=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const d=i?ir:nr,f=i?rr:or;r.classList.add(f),Ft(r),s.classList.add(d),r.classList.add(d);const E=()=>{r.classList.remove(d,f),r.classList.add(Vt),s.classList.remove(Vt,f,d),this._isSliding=!1,a(Ae)};this._queueCallback(E,s,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(sr)}_getActive(){return _.findOne(ar,this._element)}_getItems(){return _.find(on,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return I()?t===ct?ut:St:t===ct?St:ut}_orderToDirection(t){return I()?t===ut?ct:Yt:t===ut?Yt:ct}static jQueryInterface(t){return this.each(function(){const e=Tt.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}h.on(document,er,cr,function(n){const t=_.getElementFromSelector(this);if(!t||!t.classList.contains(nn))return;n.preventDefault();const e=Tt.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");if(s){e.to(s),e._maybeEnableCycle();return}if(H.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});h.on(window,tr,()=>{const n=_.find(hr);for(const t of n)Tt.getOrCreateInstance(t)});R(Tt);const mr="collapse",gr="bs.collapse",Pt=`.${gr}`,_r=".data-api",Er=`show${Pt}`,Ar=`shown${Pt}`,br=`hide${Pt}`,Tr=`hidden${Pt}`,Cr=`click${Pt}${_r}`,be="show",dt="collapse",Ht="collapsing",vr="collapsed",Sr=`:scope .${dt} .${dt}`,yr="collapse-horizontal",wr="width",kr="height",Or=".collapse.show, .collapse.collapsing",Pe='[data-bs-toggle="collapse"]',Dr={parent:null,toggle:!0},Nr={parent:"(null|element)",toggle:"boolean"};class gt extends P{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const s=_.find(Pe);for(const i of s){const r=_.getSelectorFromElement(i),o=_.find(r).filter(a=>a===this._element);r!==null&&o.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Dr}static get DefaultType(){return Nr}static get NAME(){return mr}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Or).filter(a=>a!==this._element).map(a=>gt.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||h.trigger(this._element,Er).defaultPrevented)return;for(const a of t)a.hide();const s=this._getDimension();this._element.classList.remove(dt),this._element.classList.add(Ht),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(Ht),this._element.classList.add(dt,be),this._element.style[s]="",h.trigger(this._element,Ar)},o=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[s]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||h.trigger(this._element,br).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Ft(this._element),this._element.classList.add(Ht),this._element.classList.remove(dt,be);for(const i of this._triggerArray){const r=_.getElementFromSelector(i);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(Ht),this._element.classList.add(dt),h.trigger(this._element,Tr)};this._element.style[e]="",this._queueCallback(s,this._element,!0)}_isShown(t=this._element){return t.classList.contains(be)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=q(t.parent),t}_getDimension(){return this._element.classList.contains(yr)?wr:kr}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Pe);for(const e of t){const s=_.getElementFromSelector(e);s&&this._addAriaAndCollapsedClass([e],this._isShown(s))}}_getFirstLevelChildren(t){const e=_.find(Sr,this._config.parent);return _.find(t,this._config.parent).filter(s=>!e.includes(s))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const s of t)s.classList.toggle(vr,!e),s.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const s=gt.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t]()}})}}h.on(document,Cr,Pe,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const t of _.getMultipleElementsFromSelector(this))gt.getOrCreateInstance(t,{toggle:!1}).toggle()});R(gt);const is="dropdown",Fr="bs.dropdown",ot=`.${Fr}`,We=".data-api",Ir="Escape",rs="Tab",Lr="ArrowUp",os="ArrowDown",Rr=2,Pr=`hide${ot}`,xr=`hidden${ot}`,Mr=`show${ot}`,Br=`shown${ot}`,an=`click${ot}${We}`,un=`keydown${ot}${We}`,$r=`keyup${ot}${We}`,ht="show",Vr="dropup",Hr="dropend",Ur="dropstart",jr="dropup-center",Wr="dropdown-center",st='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',zr=`${st}.${ht}`,qt=".dropdown-menu",Kr=".navbar",Yr=".navbar-nav",qr=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Gr=I()?"top-end":"top-start",Xr=I()?"top-start":"top-end",Jr=I()?"bottom-end":"bottom-start",Qr=I()?"bottom-start":"bottom-end",Zr=I()?"left-start":"right-start",to=I()?"right-start":"left-start",eo="top",so="bottom",no={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},io={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class N extends P{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=_.next(this._element,qt)[0]||_.prev(this._element,qt)[0]||_.findOne(qt,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return no}static get DefaultType(){return io}static get NAME(){return is}toggle(){return this._isShown()?this.hide():this.show()}show(){if(G(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!h.trigger(this._element,Mr,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Yr))for(const s of[].concat(...document.body.children))h.on(s,"mouseover",te);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ht),this._element.classList.add(ht),h.trigger(this._element,Br,t)}}hide(){if(G(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!h.trigger(this._element,Pr,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))h.off(s,"mouseover",te);this._popper&&this._popper.destroy(),this._menu.classList.remove(ht),this._element.classList.remove(ht),this._element.setAttribute("aria-expanded","false"),H.removeDataAttribute(this._menu,"popper"),h.trigger(this._element,xr,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!V(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${is.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Ms>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:V(this._config.reference)?t=q(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Bs(t,this._menu,e)}_isShown(){return this._menu.classList.contains(ht)}_getPlacement(){const t=this._parent;if(t.classList.contains(Hr))return Zr;if(t.classList.contains(Ur))return to;if(t.classList.contains(jr))return eo;if(t.classList.contains(Wr))return so;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Vr)?e?Xr:Gr:e?Qr:Jr}_detectNavbar(){return this._element.closest(Kr)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(H.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...y(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const s=_.find(qr,this._menu).filter(i=>At(i));s.length&&Ue(s,e,t===os,!s.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=N.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===Rr||t.type==="keyup"&&t.key!==rs)return;const e=_.find(zr);for(const s of e){const i=N.getInstance(s);if(!i||i._config.autoClose===!1)continue;const r=t.composedPath(),o=r.includes(i._menu);if(r.includes(i._element)||i._config.autoClose==="inside"&&!o||i._config.autoClose==="outside"&&o||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===rs||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:i._element};t.type==="click"&&(a.clickEvent=t),i._completeHide(a)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),s=t.key===Ir,i=[Lr,os].includes(t.key);if(!i&&!s||e&&!s)return;t.preventDefault();const r=this.matches(st)?this:_.prev(this,st)[0]||_.next(this,st)[0]||_.findOne(st,t.delegateTarget.parentNode),o=N.getOrCreateInstance(r);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),r.focus())}}h.on(document,un,st,N.dataApiKeydownHandler);h.on(document,un,qt,N.dataApiKeydownHandler);h.on(document,an,N.clearMenus);h.on(document,$r,N.clearMenus);h.on(document,an,st,function(n){n.preventDefault(),N.getOrCreateInstance(this).toggle()});R(N);const ln="backdrop",ro="fade",as="show",us=`mousedown.bs.${ln}`,oo={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ao={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class cn extends It{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return oo}static get DefaultType(){return ao}static get NAME(){return ln}show(t){if(!this._config.isVisible){y(t);return}this._append();const e=this._getElement();this._config.isAnimated&&Ft(e),e.classList.add(as),this._emulateAnimation(()=>{y(t)})}hide(t){if(!this._config.isVisible){y(t);return}this._getElement().classList.remove(as),this._emulateAnimation(()=>{this.dispose(),y(t)})}dispose(){this._isAppended&&(h.off(this._element,us),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(ro),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=q(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),h.on(t,us,()=>{y(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){qs(t,this._getElement(),this._config.isAnimated)}}const uo="focustrap",lo="bs.focustrap",se=`.${lo}`,co=`focusin${se}`,ho=`keydown.tab${se}`,fo="Tab",po="forward",ls="backward",mo={autofocus:!0,trapElement:null},go={autofocus:"boolean",trapElement:"element"};class hn extends It{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return mo}static get DefaultType(){return go}static get NAME(){return uo}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),h.off(document,se),h.on(document,co,t=>this._handleFocusin(t)),h.on(document,ho,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,h.off(document,se))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const s=_.focusableChildren(e);s.length===0?e.focus():this._lastTabNavDirection===ls?s[s.length-1].focus():s[0].focus()}_handleKeydown(t){t.key===fo&&(this._lastTabNavDirection=t.shiftKey?ls:po)}}const cs=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hs=".sticky-top",Ut="padding-right",ds="margin-right";class xe{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ut,e=>e+t),this._setElementAttributes(cs,Ut,e=>e+t),this._setElementAttributes(hs,ds,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ut),this._resetElementAttributes(cs,Ut),this._resetElementAttributes(hs,ds)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,s){const i=this.getWidth(),r=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+i)return;this._saveInitialAttribute(o,e);const a=window.getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,`${s(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,r)}_saveInitialAttribute(t,e){const s=t.style.getPropertyValue(e);s&&H.setDataAttribute(t,e,s)}_resetElementAttributes(t,e){const s=i=>{const r=H.getDataAttribute(i,e);if(r===null){i.style.removeProperty(e);return}H.removeDataAttribute(i,e),i.style.setProperty(e,r)};this._applyManipulationCallback(t,s)}_applyManipulationCallback(t,e){if(V(t)){e(t);return}for(const s of _.find(t,this._element))e(s)}}const _o="modal",Eo="bs.modal",L=`.${Eo}`,Ao=".data-api",bo="Escape",To=`hide${L}`,Co=`hidePrevented${L}`,dn=`hidden${L}`,fn=`show${L}`,vo=`shown${L}`,So=`resize${L}`,yo=`click.dismiss${L}`,wo=`mousedown.dismiss${L}`,ko=`keydown.dismiss${L}`,Oo=`click${L}${Ao}`,fs="modal-open",Do="fade",ps="show",Te="modal-static",No=".modal.show",Fo=".modal-dialog",Io=".modal-body",Lo='[data-bs-toggle="modal"]',Ro={backdrop:!0,focus:!0,keyboard:!0},Po={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class rt extends P{constructor(t,e){super(t,e),this._dialog=_.findOne(Fo,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new xe,this._addEventListeners()}static get Default(){return Ro}static get DefaultType(){return Po}static get NAME(){return _o}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||h.trigger(this._element,fn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(fs),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||h.trigger(this._element,To).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ps),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){h.off(window,L),h.off(this._dialog,L),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new cn({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new hn({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=_.findOne(Io,this._dialog);e&&(e.scrollTop=0),Ft(this._element),this._element.classList.add(ps);const s=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,h.trigger(this._element,vo,{relatedTarget:t})};this._queueCallback(s,this._dialog,this._isAnimated())}_addEventListeners(){h.on(this._element,ko,t=>{if(t.key===bo){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),h.on(window,So,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),h.on(this._element,wo,t=>{h.one(this._element,yo,e=>{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(fs),this._resetAdjustments(),this._scrollBar.reset(),h.trigger(this._element,dn)})}_isAnimated(){return this._element.classList.contains(Do)}_triggerBackdropTransition(){if(h.trigger(this._element,Co).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,s=this._element.style.overflowY;s==="hidden"||this._element.classList.contains(Te)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Te),this._queueCallback(()=>{this._element.classList.remove(Te),this._queueCallback(()=>{this._element.style.overflowY=s},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),s=e>0;if(s&&!t){const i=I()?"paddingLeft":"paddingRight";this._element.style[i]=`${e}px`}if(!s&&t){const i=I()?"paddingRight":"paddingLeft";this._element.style[i]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const s=rt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof s[t]>"u")throw new TypeError(`No method named "${t}"`);s[t](e)}})}}h.on(document,Oo,Lo,function(n){const t=_.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),h.one(t,fn,i=>{i.defaultPrevented||h.one(t,dn,()=>{At(this)&&this.focus()})});const e=_.findOne(No);e&&rt.getInstance(e).hide(),rt.getOrCreateInstance(t).toggle(this)});re(rt);R(rt);const xo="offcanvas",Mo="bs.offcanvas",W=`.${Mo}`,pn=".data-api",Bo=`load${W}${pn}`,$o="Escape",ms="show",gs="showing",_s="hiding",Vo="offcanvas-backdrop",mn=".offcanvas.show",Ho=`show${W}`,Uo=`shown${W}`,jo=`hide${W}`,Es=`hidePrevented${W}`,gn=`hidden${W}`,Wo=`resize${W}`,zo=`click${W}${pn}`,Ko=`keydown.dismiss${W}`,Yo='[data-bs-toggle="offcanvas"]',qo={backdrop:!0,keyboard:!0,scroll:!1},Go={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class j extends P{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return qo}static get DefaultType(){return Go}static get NAME(){return xo}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||h.trigger(this._element,Ho,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new xe().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(gs);const s=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(ms),this._element.classList.remove(gs),h.trigger(this._element,Uo,{relatedTarget:t})};this._queueCallback(s,this._element,!0)}hide(){if(!this._isShown||h.trigger(this._element,jo).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(_s),this._backdrop.hide();const e=()=>{this._element.classList.remove(ms,_s),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new xe().reset(),h.trigger(this._element,gn)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){h.trigger(this._element,Es);return}this.hide()},e=!!this._config.backdrop;return new cn({className:Vo,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new hn({trapElement:this._element})}_addEventListeners(){h.on(this._element,Ko,t=>{if(t.key===$o){if(this._config.keyboard){this.hide();return}h.trigger(this._element,Es)}})}static jQueryInterface(t){return this.each(function(){const e=j.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}h.on(document,zo,Yo,function(n){const t=_.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),G(this))return;h.one(t,gn,()=>{At(this)&&this.focus()});const e=_.findOne(mn);e&&e!==t&&j.getInstance(e).hide(),j.getOrCreateInstance(t).toggle(this)});h.on(window,Bo,()=>{for(const n of _.find(mn))j.getOrCreateInstance(n).show()});h.on(window,Wo,()=>{for(const n of _.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&j.getOrCreateInstance(n).hide()});re(j);R(j);const Xo=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Jo=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Qo=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Zo=(n,t)=>{const e=n.nodeName.toLowerCase();return t.includes(e)?Xo.has(e)?!!(Jo.test(n.nodeValue)||Qo.test(n.nodeValue)):!0:t.filter(s=>s instanceof RegExp).some(s=>s.test(e))},ta=/^aria-[\w-]*$/i,_n={"*":["class","dir","id","lang","role",ta],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function ea(n,t,e){if(!n.length)return n;if(e&&typeof e=="function")return e(n);const i=new window.DOMParser().parseFromString(n,"text/html"),r=[].concat(...i.body.querySelectorAll("*"));for(const o of r){const a=o.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){o.remove();continue}const l=[].concat(...o.attributes),u=[].concat(t["*"]||[],t[a]||[]);for(const d of l)Zo(d,u)||o.removeAttribute(d.nodeName)}return i.body.innerHTML}const sa="TemplateFactory",na={allowList:_n,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},ia={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ra={entry:"(string|element|function|null)",selector:"(string|element)"};class oa extends It{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return na}static get DefaultType(){return ia}static get NAME(){return sa}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,r]of Object.entries(this._config.content))this._setContent(t,r,i);const e=t.children[0],s=this._resolvePossibleFunction(this._config.extraClass);return s&&e.classList.add(...s.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,s]of Object.entries(t))super._typeCheckConfig({selector:e,entry:s},ra)}_setContent(t,e,s){const i=_.findOne(s,t);if(i){if(e=this._resolvePossibleFunction(e),!e){i.remove();return}if(V(e)){this._putElementInTemplate(q(e),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(e);return}i.textContent=e}}_maybeSanitize(t){return this._config.sanitize?ea(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return y(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}const aa="tooltip",ua=new Set(["sanitize","allowList","sanitizeFn"]),Ce="fade",la="modal",jt="show",ca=".tooltip-inner",As=`.${la}`,bs="hide.bs.modal",yt="hover",ve="focus",ha="click",da="manual",fa="hide",pa="hidden",ma="show",ga="shown",_a="inserted",Ea="click",Aa="focusin",ba="focusout",Ta="mouseenter",Ca="mouseleave",va={AUTO:"auto",TOP:"top",RIGHT:I()?"left":"right",BOTTOM:"bottom",LEFT:I()?"right":"left"},Sa={allowList:_n,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},ya={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Q extends P{constructor(t,e){if(typeof Ms>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Sa}static get DefaultType(){return ya}static get NAME(){return aa}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),h.off(this._element.closest(As),bs,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=h.trigger(this._element,this.constructor.eventName(ma)),s=(Ks(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!s)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(i),h.trigger(this._element,this.constructor.eventName(_a))),this._popper=this._createPopper(i),i.classList.add(jt),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))h.on(a,"mouseover",te);const o=()=>{h.trigger(this._element,this.constructor.eventName(ga)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||h.trigger(this._element,this.constructor.eventName(fa)).defaultPrevented)return;if(this._getTipElement().classList.remove(jt),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))h.off(i,"mouseover",te);this._activeTrigger[ha]=!1,this._activeTrigger[ve]=!1,this._activeTrigger[yt]=!1,this._isHovered=null;const s=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),h.trigger(this._element,this.constructor.eventName(pa)))};this._queueCallback(s,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Ce,jt),e.classList.add(`bs-${this.constructor.NAME}-auto`);const s=li(this.constructor.NAME).toString();return e.setAttribute("id",s),this._isAnimated()&&e.classList.add(Ce),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new oa({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ca]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ce)}_isShown(){return this.tip&&this.tip.classList.contains(jt)}_createPopper(t){const e=y(this._config.placement,[this,t,this._element]),s=va[e.toUpperCase()];return Bs(this._element,t,this._getPopperConfig(s))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return y(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:s=>{this._getTipElement().setAttribute("data-popper-placement",s.state.placement)}}]};return{...e,...y(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if(e==="click")h.on(this._element,this.constructor.eventName(Ea),this._config.selector,s=>{this._initializeOnDelegatedTarget(s).toggle()});else if(e!==da){const s=e===yt?this.constructor.eventName(Ta):this.constructor.eventName(Aa),i=e===yt?this.constructor.eventName(Ca):this.constructor.eventName(ba);h.on(this._element,s,this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[r.type==="focusin"?ve:yt]=!0,o._enter()}),h.on(this._element,i,this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[r.type==="focusout"?ve:yt]=o._element.contains(r.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},h.on(this._element.closest(As),bs,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=H.getDataAttributes(this._element);for(const s of Object.keys(e))ua.has(s)&&delete e[s];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:q(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,s]of Object.entries(this._config))this.constructor.Default[e]!==s&&(t[e]=s);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=Q.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}R(Q);const wa="popover",ka=".popover-header",Oa=".popover-body",Da={...Q.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Na={...Q.DefaultType,content:"(null|string|element|function)"};class xt extends Q{static get Default(){return Da}static get DefaultType(){return Na}static get NAME(){return wa}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ka]:this._getTitle(),[Oa]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=xt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}R(xt);const Fa="scrollspy",Ia="bs.scrollspy",ze=`.${Ia}`,La=".data-api",Ra=`activate${ze}`,Ts=`click${ze}`,Pa=`load${ze}${La}`,xa="dropdown-item",lt="active",Ma='[data-bs-spy="scroll"]',Se="[href]",Ba=".nav, .list-group",Cs=".nav-link",$a=".nav-item",Va=".list-group-item",Ha=`${Cs}, ${$a} > ${Cs}, ${Va}`,Ua=".dropdown",ja=".dropdown-toggle",Wa={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},za={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Mt extends P{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Wa}static get DefaultType(){return za}static get NAME(){return Fa}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=q(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(h.off(this._config.target,Ts),h.on(this._config.target,Ts,Se,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const s=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(s.scrollTo){s.scrollTo({top:i,behavior:"smooth"});return}s.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){const e=o=>this._targetLinks.get(`#${o.target.id}`),s=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(e(o))},i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&a){if(s(o),!i)return;continue}!r&&!a&&s(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=_.find(Se,this._config.target);for(const e of t){if(!e.hash||G(e))continue;const s=_.findOne(e.hash,this._element);At(s)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,s))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(lt),this._activateParents(t),h.trigger(this._element,Ra,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(xa)){_.findOne(ja,t.closest(Ua)).classList.add(lt);return}for(const e of _.parents(t,Ba))for(const s of _.prev(e,Ha))s.classList.add(lt)}_clearActiveClass(t){t.classList.remove(lt);const e=_.find(`${Se}.${lt}`,t);for(const s of e)s.classList.remove(lt)}static jQueryInterface(t){return this.each(function(){const e=Mt.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}h.on(window,Pa,()=>{for(const n of _.find(Ma))Mt.getOrCreateInstance(n)});R(Mt);const Ka="tab",Ya="bs.tab",at=`.${Ya}`,qa=`hide${at}`,Ga=`hidden${at}`,Xa=`show${at}`,Ja=`shown${at}`,Qa=`click${at}`,Za=`keydown${at}`,tu=`load${at}`,eu="ArrowLeft",vs="ArrowRight",su="ArrowUp",Ss="ArrowDown",nt="active",ys="fade",ye="show",nu="dropdown",iu=".dropdown-toggle",ru=".dropdown-menu",we=":not(.dropdown-toggle)",ou='.list-group, .nav, [role="tablist"]',au=".nav-item, .list-group-item",uu=`.nav-link${we}, .list-group-item${we}, [role="tab"]${we}`,En='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ke=`${uu}, ${En}`,lu=`.${nt}[data-bs-toggle="tab"], .${nt}[data-bs-toggle="pill"], .${nt}[data-bs-toggle="list"]`;class X extends P{constructor(t){super(t),this._parent=this._element.closest(ou),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),h.on(this._element,Za,e=>this._keydown(e)))}static get NAME(){return Ka}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),s=e?h.trigger(e,qa,{relatedTarget:t}):null;h.trigger(t,Xa,{relatedTarget:e}).defaultPrevented||s&&s.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(nt),this._activate(_.getElementFromSelector(t));const s=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(ye);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),h.trigger(t,Ja,{relatedTarget:e})};this._queueCallback(s,t,t.classList.contains(ys))}_deactivate(t,e){if(!t)return;t.classList.remove(nt),t.blur(),this._deactivate(_.getElementFromSelector(t));const s=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(ye);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),h.trigger(t,Ga,{relatedTarget:e})};this._queueCallback(s,t,t.classList.contains(ys))}_keydown(t){if(![eu,vs,su,Ss].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=[vs,Ss].includes(t.key),s=Ue(this._getChildren().filter(i=>!G(i)),t.target,e,!0);s&&(s.focus({preventScroll:!0}),X.getOrCreateInstance(s).show())}_getChildren(){return _.find(ke,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const s of e)this._setInitialAttributesOnChild(s)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),s=this._getOuterElement(t);t.setAttribute("aria-selected",e),s!==t&&this._setAttributeIfNotExists(s,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=_.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const s=this._getOuterElement(t);if(!s.classList.contains(nu))return;const i=(r,o)=>{const a=_.findOne(r,s);a&&a.classList.toggle(o,e)};i(iu,nt),i(ru,ye),s.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,s){t.hasAttribute(e)||t.setAttribute(e,s)}_elemIsActive(t){return t.classList.contains(nt)}_getInnerElement(t){return t.matches(ke)?t:_.findOne(ke,t)}_getOuterElement(t){return t.closest(au)||t}static jQueryInterface(t){return this.each(function(){const e=X.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}h.on(document,Qa,En,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!G(this)&&X.getOrCreateInstance(this).show()});h.on(window,tu,()=>{for(const n of _.find(lu))X.getOrCreateInstance(n)});R(X);const cu="toast",hu="bs.toast",Z=`.${hu}`,du=`mouseover${Z}`,fu=`mouseout${Z}`,pu=`focusin${Z}`,mu=`focusout${Z}`,gu=`hide${Z}`,_u=`hidden${Z}`,Eu=`show${Z}`,Au=`shown${Z}`,bu="fade",ws="hide",Wt="show",zt="showing",Tu={animation:"boolean",autohide:"boolean",delay:"number"},Cu={animation:!0,autohide:!0,delay:5e3};class Ct extends P{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Cu}static get DefaultType(){return Tu}static get NAME(){return cu}show(){if(h.trigger(this._element,Eu).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(bu);const e=()=>{this._element.classList.remove(zt),h.trigger(this._element,Au),this._maybeScheduleHide()};this._element.classList.remove(ws),Ft(this._element),this._element.classList.add(Wt,zt),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||h.trigger(this._element,gu).defaultPrevented)return;const e=()=>{this._element.classList.add(ws),this._element.classList.remove(zt,Wt),h.trigger(this._element,_u)};this._element.classList.add(zt),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Wt),super.dispose()}isShown(){return this._element.classList.contains(Wt)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}const s=t.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){h.on(this._element,du,t=>this._onInteraction(t,!0)),h.on(this._element,fu,t=>this._onInteraction(t,!1)),h.on(this._element,pu,t=>this._onInteraction(t,!0)),h.on(this._element,mu,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=Ct.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}re(Ct);R(Ct);const vu=Object.freeze(Object.defineProperty({__proto__:null,Alert:Lt,Button:Rt,Carousel:Tt,Collapse:gt,Dropdown:N,Modal:rt,Offcanvas:j,Popover:xt,ScrollSpy:Mt,Tab:X,Toast:Ct,Tooltip:Q},Symbol.toStringTag,{value:"Module"}));let Su=[].slice.call(document.querySelectorAll('[data-bs-toggle="dropdown"]'));Su.map(function(n){let t={boundary:n.getAttribute("data-bs-boundary")==="viewport"?document.querySelector(".btn"):"clippingParents"};return new N(n,t)});let yu=[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));yu.map(function(n){let t={delay:{show:50,hide:50},html:n.getAttribute("data-bs-html")==="true",placement:n.getAttribute("data-bs-placement")??"auto"};return new Q(n,t)});let wu=[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));wu.map(function(n){let t={delay:{show:50,hide:50},html:n.getAttribute("data-bs-html")==="true",placement:n.getAttribute("data-bs-placement")??"auto"};return new xt(n,t)});let ku=[].slice.call(document.querySelectorAll('[data-bs-toggle="switch-icon"]'));ku.map(function(n){n.addEventListener("click",t=>{t.stopPropagation(),n.classList.toggle("active")})});const Ou=()=>{const n=window.location.hash;n&&[].slice.call(document.querySelectorAll('[data-bs-toggle="tab"]')).filter(s=>s.hash===n).map(s=>{new X(s).show()})};Ou();let Du=[].slice.call(document.querySelectorAll('[data-bs-toggle="toast"]'));Du.map(function(n){return new Ct(n)});const An="tblr-",bn=(n,t)=>{const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return e?`rgba(${parseInt(e[1],16)}, ${parseInt(e[2],16)}, ${parseInt(e[3],16)}, ${t})`:null},Nu=(n,t=1)=>{const e=getComputedStyle(document.body).getPropertyValue(`--${An}${n}`).trim();return t!==1?bn(e,t):e},Fu=Object.freeze(Object.defineProperty({__proto__:null,getColor:Nu,hexToRgba:bn,prefix:An},Symbol.toStringTag,{value:"Module"}));globalThis.bootstrap=vu;globalThis.tabler=Fu;function Tn(n,t){return function(){return n.apply(t,arguments)}}const{toString:Iu}=Object.prototype,{getPrototypeOf:Ke}=Object,oe=(n=>t=>{const e=Iu.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),B=n=>(n=n.toLowerCase(),t=>oe(t)===n),ae=n=>t=>typeof t===n,{isArray:vt}=Array,Nt=ae("undefined");function Lu(n){return n!==null&&!Nt(n)&&n.constructor!==null&&!Nt(n.constructor)&&F(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Cn=B("ArrayBuffer");function Ru(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Cn(n.buffer),t}const Pu=ae("string"),F=ae("function"),vn=ae("number"),ue=n=>n!==null&&typeof n=="object",xu=n=>n===!0||n===!1,Gt=n=>{if(oe(n)!=="object")return!1;const t=Ke(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Mu=B("Date"),Bu=B("File"),$u=B("Blob"),Vu=B("FileList"),Hu=n=>ue(n)&&F(n.pipe),Uu=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||F(n.append)&&((t=oe(n))==="formdata"||t==="object"&&F(n.toString)&&n.toString()==="[object FormData]"))},ju=B("URLSearchParams"),Wu=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bt(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let s,i;if(typeof n!="object"&&(n=[n]),vt(n))for(s=0,i=n.length;s0;)if(i=e[s],t===i.toLowerCase())return i;return null}const yn=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),wn=n=>!Nt(n)&&n!==yn;function Me(){const{caseless:n}=wn(this)&&this||{},t={},e=(s,i)=>{const r=n&&Sn(t,i)||i;Gt(t[r])&&Gt(s)?t[r]=Me(t[r],s):Gt(s)?t[r]=Me({},s):vt(s)?t[r]=s.slice():t[r]=s};for(let s=0,i=arguments.length;s(Bt(t,(i,r)=>{e&&F(i)?n[r]=Tn(i,e):n[r]=i},{allOwnKeys:s}),n),Ku=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Yu=(n,t,e,s)=>{n.prototype=Object.create(t.prototype,s),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},qu=(n,t,e,s)=>{let i,r,o;const a={};if(t=t||{},n==null)return t;do{for(i=Object.getOwnPropertyNames(n),r=i.length;r-- >0;)o=i[r],(!s||s(o,n,t))&&!a[o]&&(t[o]=n[o],a[o]=!0);n=e!==!1&&Ke(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},Gu=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const s=n.indexOf(t,e);return s!==-1&&s===e},Xu=n=>{if(!n)return null;if(vt(n))return n;let t=n.length;if(!vn(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Ju=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Ke(Uint8Array)),Qu=(n,t)=>{const s=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=s.next())&&!i.done;){const r=i.value;t.call(n,r[0],r[1])}},Zu=(n,t)=>{let e;const s=[];for(;(e=n.exec(t))!==null;)s.push(e);return s},tl=B("HTMLFormElement"),el=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,s,i){return s.toUpperCase()+i}),ks=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),sl=B("RegExp"),kn=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),s={};Bt(e,(i,r)=>{t(i,r,n)!==!1&&(s[r]=i)}),Object.defineProperties(n,s)},nl=n=>{kn(n,(t,e)=>{if(F(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const s=n[e];if(F(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},il=(n,t)=>{const e={},s=i=>{i.forEach(r=>{e[r]=!0})};return vt(n)?s(n):s(String(n).split(t)),e},rl=()=>{},ol=(n,t)=>(n=+n,Number.isFinite(n)?n:t),Oe="abcdefghijklmnopqrstuvwxyz",Os="0123456789",On={DIGIT:Os,ALPHA:Oe,ALPHA_DIGIT:Oe+Oe.toUpperCase()+Os},al=(n=16,t=On.ALPHA_DIGIT)=>{let e="";const{length:s}=t;for(;n--;)e+=t[Math.random()*s|0];return e};function ul(n){return!!(n&&F(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const ll=n=>{const t=new Array(10),e=(s,i)=>{if(ue(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[i]=s;const r=vt(s)?[]:{};return Bt(s,(o,a)=>{const l=e(o,i+1);!Nt(l)&&(r[a]=l)}),t[i]=void 0,r}}return s};return e(n,0)},cl=B("AsyncFunction"),hl=n=>n&&(ue(n)||F(n))&&F(n.then)&&F(n.catch),c={isArray:vt,isArrayBuffer:Cn,isBuffer:Lu,isFormData:Uu,isArrayBufferView:Ru,isString:Pu,isNumber:vn,isBoolean:xu,isObject:ue,isPlainObject:Gt,isUndefined:Nt,isDate:Mu,isFile:Bu,isBlob:$u,isRegExp:sl,isFunction:F,isStream:Hu,isURLSearchParams:ju,isTypedArray:Ju,isFileList:Vu,forEach:Bt,merge:Me,extend:zu,trim:Wu,stripBOM:Ku,inherits:Yu,toFlatObject:qu,kindOf:oe,kindOfTest:B,endsWith:Gu,toArray:Xu,forEachEntry:Qu,matchAll:Zu,isHTMLForm:tl,hasOwnProperty:ks,hasOwnProp:ks,reduceDescriptors:kn,freezeMethods:nl,toObjectSet:il,toCamelCase:el,noop:rl,toFiniteNumber:ol,findKey:Sn,global:yn,isContextDefined:wn,ALPHABET:On,generateString:al,isSpecCompliantForm:ul,toJSONObject:ll,isAsyncFn:cl,isThenable:hl};function T(n,t,e,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),s&&(this.request=s),i&&(this.response=i)}c.inherits(T,Error,{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:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Dn=T.prototype,Nn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Nn[n]={value:n}});Object.defineProperties(T,Nn);Object.defineProperty(Dn,"isAxiosError",{value:!0});T.from=(n,t,e,s,i,r)=>{const o=Object.create(Dn);return c.toFlatObject(n,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),T.call(o,n.message,t,e,s,i),o.cause=n,o.name=n.name,r&&Object.assign(o,r),o};const dl=null;function Be(n){return c.isPlainObject(n)||c.isArray(n)}function Fn(n){return c.endsWith(n,"[]")?n.slice(0,-2):n}function Ds(n,t,e){return n?n.concat(t).map(function(i,r){return i=Fn(i),!e&&r?"["+i+"]":i}).join(e?".":""):t}function fl(n){return c.isArray(n)&&!n.some(Be)}const pl=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function le(n,t,e){if(!c.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=c.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,S){return!c.isUndefined(S[m])});const s=e.metaTokens,i=e.visitor||d,r=e.dots,o=e.indexes,l=(e.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(c.isDate(p))return p.toISOString();if(!l&&c.isBlob(p))throw new T("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(p)||c.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,m,S){let k=p;if(p&&!S&&typeof p=="object"){if(c.endsWith(m,"{}"))m=s?m:m.slice(0,-2),p=JSON.stringify(p);else if(c.isArray(p)&&fl(p)||(c.isFileList(p)||c.endsWith(m,"[]"))&&(k=c.toArray(p)))return m=Fn(m),k.forEach(function(tt,x){!(c.isUndefined(tt)||tt===null)&&t.append(o===!0?Ds([m],x,r):o===null?m:m+"[]",u(tt))}),!1}return Be(p)?!0:(t.append(Ds(S,m,r),u(p)),!1)}const f=[],E=Object.assign(pl,{defaultVisitor:d,convertValue:u,isVisitable:Be});function A(p,m){if(!c.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(p),c.forEach(p,function(k,z){(!(c.isUndefined(k)||k===null)&&i.call(t,k,c.isString(z)?z.trim():z,m,E))===!0&&A(k,m?m.concat(z):[z])}),f.pop()}}if(!c.isObject(n))throw new TypeError("data must be an object");return A(n),t}function Ns(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Ye(n,t){this._pairs=[],n&&le(n,this,t)}const In=Ye.prototype;In.append=function(t,e){this._pairs.push([t,e])};In.toString=function(t){const e=t?function(s){return t.call(this,s,Ns)}:Ns;return this._pairs.map(function(i){return e(i[0])+"="+e(i[1])},"").join("&")};function ml(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ln(n,t,e){if(!t)return n;const s=e&&e.encode||ml,i=e&&e.serialize;let r;if(i?r=i(t,e):r=c.isURLSearchParams(t)?t.toString():new Ye(t,e).toString(s),r){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+r}return n}class gl{constructor(){this.handlers=[]}use(t,e,s){return this.handlers.push({fulfilled:t,rejected:e,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Fs=gl,Rn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_l=typeof URLSearchParams<"u"?URLSearchParams:Ye,El=typeof FormData<"u"?FormData:null,Al=typeof Blob<"u"?Blob:null,bl=(()=>{let n;return typeof navigator<"u"&&((n=navigator.product)==="ReactNative"||n==="NativeScript"||n==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Tl=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),M={isBrowser:!0,classes:{URLSearchParams:_l,FormData:El,Blob:Al},isStandardBrowserEnv:bl,isStandardBrowserWebWorkerEnv:Tl,protocols:["http","https","file","blob","url","data"]};function Cl(n,t){return le(n,new M.classes.URLSearchParams,Object.assign({visitor:function(e,s,i,r){return M.isNode&&c.isBuffer(e)?(this.append(s,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function vl(n){return c.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Sl(n){const t={},e=Object.keys(n);let s;const i=e.length;let r;for(s=0;s=e.length;return o=!o&&c.isArray(i)?i.length:o,l?(c.hasOwnProp(i,o)?i[o]=[i[o],s]:i[o]=s,!a):((!i[o]||!c.isObject(i[o]))&&(i[o]=[]),t(e,s,i[o],r)&&c.isArray(i[o])&&(i[o]=Sl(i[o])),!a)}if(c.isFormData(n)&&c.isFunction(n.entries)){const e={};return c.forEachEntry(n,(s,i)=>{t(vl(s),i,e,0)}),e}return null}const yl={"Content-Type":void 0};function wl(n,t,e){if(c.isString(n))try{return(t||JSON.parse)(n),c.trim(n)}catch(s){if(s.name!=="SyntaxError")throw s}return(e||JSON.stringify)(n)}const ce={transitional:Rn,adapter:["xhr","http"],transformRequest:[function(t,e){const s=e.getContentType()||"",i=s.indexOf("application/json")>-1,r=c.isObject(t);if(r&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return i&&i?JSON.stringify(Pn(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Cl(t,this.formSerializer).toString();if((a=c.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return le(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||i?(e.setContentType("application/json",!1),wl(t)):t}],transformResponse:[function(t){const e=this.transitional||ce.transitional,s=e&&e.forcedJSONParsing,i=this.responseType==="json";if(t&&c.isString(t)&&(s&&!this.responseType||i)){const o=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?T.from(a,T.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:M.classes.FormData,Blob:M.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};c.forEach(["delete","get","head"],function(t){ce.headers[t]={}});c.forEach(["post","put","patch"],function(t){ce.headers[t]=c.merge(yl)});const qe=ce,kl=c.toObjectSet(["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"]),Ol=n=>{const t={};let e,s,i;return n&&n.split(` -`).forEach(function(o){i=o.indexOf(":"),e=o.substring(0,i).trim().toLowerCase(),s=o.substring(i+1).trim(),!(!e||t[e]&&kl[e])&&(e==="set-cookie"?t[e]?t[e].push(s):t[e]=[s]:t[e]=t[e]?t[e]+", "+s:s)}),t},Is=Symbol("internals");function wt(n){return n&&String(n).trim().toLowerCase()}function Xt(n){return n===!1||n==null?n:c.isArray(n)?n.map(Xt):String(n)}function Dl(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=e.exec(n);)t[s[1]]=s[2];return t}const Nl=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function De(n,t,e,s,i){if(c.isFunction(s))return s.call(this,t,e);if(i&&(t=e),!!c.isString(t)){if(c.isString(s))return t.indexOf(s)!==-1;if(c.isRegExp(s))return s.test(t)}}function Fl(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,s)=>e.toUpperCase()+s)}function Il(n,t){const e=c.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(n,s+e,{value:function(i,r,o){return this[s].call(this,t,i,r,o)},configurable:!0})})}class he{constructor(t){t&&this.set(t)}set(t,e,s){const i=this;function r(a,l,u){const d=wt(l);if(!d)throw new Error("header name must be a non-empty string");const f=c.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Xt(a))}const o=(a,l)=>c.forEach(a,(u,d)=>r(u,d,l));return c.isPlainObject(t)||t instanceof this.constructor?o(t,e):c.isString(t)&&(t=t.trim())&&!Nl(t)?o(Ol(t),e):t!=null&&r(e,t,s),this}get(t,e){if(t=wt(t),t){const s=c.findKey(this,t);if(s){const i=this[s];if(!e)return i;if(e===!0)return Dl(i);if(c.isFunction(e))return e.call(this,i,s);if(c.isRegExp(e))return e.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=wt(t),t){const s=c.findKey(this,t);return!!(s&&this[s]!==void 0&&(!e||De(this,this[s],s,e)))}return!1}delete(t,e){const s=this;let i=!1;function r(o){if(o=wt(o),o){const a=c.findKey(s,o);a&&(!e||De(s,s[a],a,e))&&(delete s[a],i=!0)}}return c.isArray(t)?t.forEach(r):r(t),i}clear(t){const e=Object.keys(this);let s=e.length,i=!1;for(;s--;){const r=e[s];(!t||De(this,this[r],r,t,!0))&&(delete this[r],i=!0)}return i}normalize(t){const e=this,s={};return c.forEach(this,(i,r)=>{const o=c.findKey(s,r);if(o){e[o]=Xt(i),delete e[r];return}const a=t?Fl(r):String(r).trim();a!==r&&delete e[r],e[a]=Xt(i),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return c.forEach(this,(s,i)=>{s!=null&&s!==!1&&(e[i]=t&&c.isArray(s)?s.join(", "):s)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const s=new this(t);return e.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[Is]=this[Is]={accessors:{}}).accessors,i=this.prototype;function r(o){const a=wt(o);s[a]||(Il(i,o),s[a]=!0)}return c.isArray(t)?t.forEach(r):r(t),this}}he.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.freezeMethods(he.prototype);c.freezeMethods(he);const U=he;function Ne(n,t){const e=this||qe,s=t||e,i=U.from(s.headers);let r=s.data;return c.forEach(n,function(a){r=a.call(e,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function xn(n){return!!(n&&n.__CANCEL__)}function $t(n,t,e){T.call(this,n??"canceled",T.ERR_CANCELED,t,e),this.name="CanceledError"}c.inherits($t,T,{__CANCEL__:!0});function Ll(n,t,e){const s=e.config.validateStatus;!e.status||!s||s(e.status)?n(e):t(new T("Request failed with status code "+e.status,[T.ERR_BAD_REQUEST,T.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}const Rl=M.isStandardBrowserEnv?function(){return{write:function(e,s,i,r,o,a){const l=[];l.push(e+"="+encodeURIComponent(s)),c.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),c.isString(r)&&l.push("path="+r),c.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){const s=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Pl(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function xl(n,t){return t?n.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):n}function Mn(n,t){return n&&!Pl(t)?xl(n,t):t}const Ml=M.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let s;function i(r){let o=r;return t&&(e.setAttribute("href",o),o=e.href),e.setAttribute("href",o),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return s=i(window.location.href),function(o){const a=c.isString(o)?i(o):o;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function Bl(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function $l(n,t){n=n||10;const e=new Array(n),s=new Array(n);let i=0,r=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=s[r];o||(o=u),e[i]=l,s[i]=u;let f=r,E=0;for(;f!==i;)E+=e[f++],f=f%n;if(i=(i+1)%n,i===r&&(r=(r+1)%n),u-o{const r=i.loaded,o=i.lengthComputable?i.total:void 0,a=r-e,l=s(a),u=r<=o;e=r;const d={loaded:r,total:o,progress:o?r/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&u?(o-r)/l:void 0,event:i};d[t?"download":"upload"]=!0,n(d)}}const Vl=typeof XMLHttpRequest<"u",Hl=Vl&&function(n){return new Promise(function(e,s){let i=n.data;const r=U.from(n.headers).normalize(),o=n.responseType;let a;function l(){n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}c.isFormData(i)&&(M.isStandardBrowserEnv||M.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(n.auth){const A=n.auth.username||"",p=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";r.set("Authorization","Basic "+btoa(A+":"+p))}const d=Mn(n.baseURL,n.url);u.open(n.method.toUpperCase(),Ln(d,n.params,n.paramsSerializer),!0),u.timeout=n.timeout;function f(){if(!u)return;const A=U.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:A,config:n,request:u};Ll(function(k){e(k),l()},function(k){s(k),l()},m),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(s(new T("Request aborted",T.ECONNABORTED,n,u)),u=null)},u.onerror=function(){s(new T("Network Error",T.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let p=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const m=n.transitional||Rn;n.timeoutErrorMessage&&(p=n.timeoutErrorMessage),s(new T(p,m.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,n,u)),u=null},M.isStandardBrowserEnv){const A=(n.withCredentials||Ml(d))&&n.xsrfCookieName&&Rl.read(n.xsrfCookieName);A&&r.set(n.xsrfHeaderName,A)}i===void 0&&r.setContentType(null),"setRequestHeader"in u&&c.forEach(r.toJSON(),function(p,m){u.setRequestHeader(m,p)}),c.isUndefined(n.withCredentials)||(u.withCredentials=!!n.withCredentials),o&&o!=="json"&&(u.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&u.addEventListener("progress",Ls(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Ls(n.onUploadProgress)),(n.cancelToken||n.signal)&&(a=A=>{u&&(s(!A||A.type?new $t(null,n,u):A),u.abort(),u=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const E=Bl(d);if(E&&M.protocols.indexOf(E)===-1){s(new T("Unsupported protocol "+E+":",T.ERR_BAD_REQUEST,n));return}u.send(i||null)})},Jt={http:dl,xhr:Hl};c.forEach(Jt,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const Ul={getAdapter:n=>{n=c.isArray(n)?n:[n];const{length:t}=n;let e,s;for(let i=0;in instanceof U?n.toJSON():n;function _t(n,t){t=t||{};const e={};function s(u,d,f){return c.isPlainObject(u)&&c.isPlainObject(d)?c.merge.call({caseless:f},u,d):c.isPlainObject(d)?c.merge({},d):c.isArray(d)?d.slice():d}function i(u,d,f){if(c.isUndefined(d)){if(!c.isUndefined(u))return s(void 0,u,f)}else return s(u,d,f)}function r(u,d){if(!c.isUndefined(d))return s(void 0,d)}function o(u,d){if(c.isUndefined(d)){if(!c.isUndefined(u))return s(void 0,u)}else return s(void 0,d)}function a(u,d,f){if(f in t)return s(u,d);if(f in n)return s(void 0,u)}const l={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,d)=>i(Ps(u),Ps(d),!0)};return c.forEach(Object.keys(Object.assign({},n,t)),function(d){const f=l[d]||i,E=f(n[d],t[d],d);c.isUndefined(E)&&f!==a||(e[d]=E)}),e}const Bn="1.4.0",Ge={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Ge[n]=function(s){return typeof s===n||"a"+(t<1?"n ":" ")+n}});const xs={};Ge.transitional=function(t,e,s){function i(r,o){return"[Axios v"+Bn+"] Transitional option '"+r+"'"+o+(s?". "+s:"")}return(r,o,a)=>{if(t===!1)throw new T(i(o," has been removed"+(e?" in "+e:"")),T.ERR_DEPRECATED);return e&&!xs[o]&&(xs[o]=!0,console.warn(i(o," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(r,o,a):!0}};function jl(n,t,e){if(typeof n!="object")throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);const s=Object.keys(n);let i=s.length;for(;i-- >0;){const r=s[i],o=t[r];if(o){const a=n[r],l=a===void 0||o(a,r,n);if(l!==!0)throw new T("option "+r+" must be "+l,T.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new T("Unknown option "+r,T.ERR_BAD_OPTION)}}const $e={assertOptions:jl,validators:Ge},Y=$e.validators;class ne{constructor(t){this.defaults=t,this.interceptors={request:new Fs,response:new Fs}}request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=_t(this.defaults,e);const{transitional:s,paramsSerializer:i,headers:r}=e;s!==void 0&&$e.assertOptions(s,{silentJSONParsing:Y.transitional(Y.boolean),forcedJSONParsing:Y.transitional(Y.boolean),clarifyTimeoutError:Y.transitional(Y.boolean)},!1),i!=null&&(c.isFunction(i)?e.paramsSerializer={serialize:i}:$e.assertOptions(i,{encode:Y.function,serialize:Y.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o;o=r&&c.merge(r.common,r[e.method]),o&&c.forEach(["delete","get","head","post","put","patch","common"],p=>{delete r[p]}),e.headers=U.concat(o,r);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(e)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let d,f=0,E;if(!l){const p=[Rs.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),E=p.length,d=Promise.resolve(e);f{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](i);s._listeners=null}),this.promise.then=i=>{let r;const o=new Promise(a=>{s.subscribe(a),r=a}).then(i);return o.cancel=function(){s.unsubscribe(r)},o},t(function(r,o,a){s.reason||(s.reason=new $t(r,o,a),e(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}static source(){let t;return{token:new Xe(function(i){t=i}),cancel:t}}}const Wl=Xe;function zl(n){return function(e){return n.apply(null,e)}}function Kl(n){return c.isObject(n)&&n.isAxiosError===!0}const Ve={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ve).forEach(([n,t])=>{Ve[t]=n});const Yl=Ve;function $n(n){const t=new Qt(n),e=Tn(Qt.prototype.request,t);return c.extend(e,Qt.prototype,t,{allOwnKeys:!0}),c.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return $n(_t(n,i))},e}const v=$n(qe);v.Axios=Qt;v.CanceledError=$t;v.CancelToken=Wl;v.isCancel=xn;v.VERSION=Bn;v.toFormData=le;v.AxiosError=T;v.Cancel=v.CanceledError;v.all=function(t){return Promise.all(t)};v.spread=zl;v.isAxiosError=Kl;v.mergeConfig=_t;v.AxiosHeaders=U;v.formToJSON=n=>Pn(c.isHTMLForm(n)?new FormData(n):n);v.HttpStatusCode=Yl;v.default=v;const ql=v;window.axios=ql;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest"; diff --git a/public/build/assets/bundle-43b5b4d7.js b/public/build/assets/bundle-43b5b4d7.js new file mode 100644 index 0000000..749029b --- /dev/null +++ b/public/build/assets/bundle-43b5b4d7.js @@ -0,0 +1,32 @@ +import{A as E}from"./admin-app-0df052b8.js";function P(_,j){for(var v=0;vp[c]})}}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(_,j){(function(v,p){_.exports=p()})(window,function(){return function(v){var p={};function c(o){if(p[o])return p[o].exports;var l=p[o]={i:o,l:!1,exports:{}};return v[o].call(l.exports,l,l.exports,c),l.l=!0,l.exports}return c.m=v,c.c=p,c.d=function(o,l,d){c.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:d})},c.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},c.t=function(o,l){if(1&l&&(o=c(o)),8&l||4&l&&typeof o=="object"&&o&&o.__esModule)return o;var d=Object.create(null);if(c.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:o}),2&l&&typeof o!="string")for(var f in o)c.d(d,f,(function(b){return o[b]}).bind(null,f));return d},c.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return c.d(l,"a",l),l},c.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},c.p="/",c(c.s=4)}([function(v,p,c){var o=c(1),l=c(2);typeof(l=l.__esModule?l.default:l)=="string"&&(l=[[v.i,l,""]]);var d={insert:"head",singleton:!1};o(l,d),v.exports=l.locals||{}},function(v,p,c){var o,l=function(){return o===void 0&&(o=!!(window&&document&&document.all&&!window.atob)),o},d=function(){var r={};return function(i){if(r[i]===void 0){var s=document.querySelector(i);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch{s=null}r[i]=s}return r[i]}}(),f=[];function b(r){for(var i=-1,s=0;sa.length)&&(e=a.length);for(var t=0,n=new Array(e);t',default:n.defaultStyle==="ordered"||!0}],this._data={style:this.settings.find(function(i){return i.default===!0}).name,items:[]},this.data=t}return w(a,null,[{key:"isReadOnlySupported",get:function(){return!0}},{key:"enableLineBreaks",get:function(){return!0}},{key:"toolbox",get:function(){return{icon:o,title:"List"}}}]),w(a,[{key:"render",value:function(){var e=this;return this._elements.wrapper=this.makeMainTag(this._data.style),this._data.items.length?this._data.items.forEach(function(t){e._elements.wrapper.appendChild(e._make("li",e.CSS.item,{innerHTML:t}))}):this._elements.wrapper.appendChild(this._make("li",this.CSS.item)),this.readOnly||this._elements.wrapper.addEventListener("keydown",function(t){switch(t.keyCode){case 13:e.getOutofList(t);break;case 8:e.backspace(t)}},!1),this._elements.wrapper}},{key:"save",value:function(){return this.data}},{key:"renderSettings",value:function(){var e=this;return this.settings.map(function(t){return b(b({},t),{},{isActive:e._data.style===t.name,closeOnActivate:!0,onActivate:function(){return e.toggleTune(t.name)}})})}},{key:"onPaste",value:function(e){var t=e.detail.data;this.data=this.pasteHandler(t)}},{key:"makeMainTag",value:function(e){var t=e==="ordered"?this.CSS.wrapperOrdered:this.CSS.wrapperUnordered,n=e==="ordered"?"ol":"ul";return this._make(n,[this.CSS.baseBlock,this.CSS.wrapper,t],{contentEditable:!this.readOnly})}},{key:"toggleTune",value:function(e){for(var t=this.makeMainTag(e);this._elements.wrapper.hasChildNodes();)t.appendChild(this._elements.wrapper.firstChild);this._elements.wrapper.replaceWith(t),this._elements.wrapper=t,this._data.style=e}},{key:"_make",value:function(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=document.createElement(e);Array.isArray(n)?(t=r.classList).add.apply(t,l(n)):n&&r.classList.add(n);for(var i in h)r[i]=h[i];return r}},{key:"getOutofList",value:function(e){var t=this._elements.wrapper.querySelectorAll("."+this.CSS.item);if(!(t.length<2)){var n=t[t.length-1],h=this.currentItem;h!==n||n.textContent.trim().length||(h.parentElement.removeChild(h),this.api.blocks.insert(),this.api.caret.setToBlock(this.api.blocks.getCurrentBlockIndex()),e.preventDefault(),e.stopPropagation())}}},{key:"backspace",value:function(e){var t=this._elements.wrapper.querySelectorAll("."+this.CSS.item),n=t[0];n&&t.length<2&&!n.innerHTML.replace("
"," ").trim()&&e.preventDefault()}},{key:"selectItem",value:function(e){e.preventDefault();var t=window.getSelection(),n=t.anchorNode.parentNode.closest("."+this.CSS.item),h=new Range;h.selectNodeContents(n),t.removeAllRanges(),t.addRange(h)}},{key:"pasteHandler",value:function(e){var t,n=e.tagName;switch(n){case"OL":t="ordered";break;case"UL":case"LI":t="unordered"}var h={style:t,items:[]};if(n==="LI")h.items=[e.innerHTML];else{var r=Array.from(e.querySelectorAll("LI"));h.items=r.map(function(i){return i.innerHTML}).filter(function(i){return!!i.trim()})}return h}},{key:"CSS",get:function(){return{baseBlock:this.api.styles.block,wrapper:"cdx-list",wrapperOrdered:"cdx-list--ordered",wrapperUnordered:"cdx-list--unordered",item:"cdx-list__item"}}},{key:"data",set:function(e){e||(e={}),this._data.style=e.style||this.settings.find(function(n){return n.default===!0}).name,this._data.items=e.items||[];var t=this._elements.wrapper;t&&t.parentNode.replaceChild(this.render(),t)},get:function(){this._data.items=[];for(var e=this._elements.wrapper.querySelectorAll(".".concat(this.CSS.item)),t=0;t"," ").trim()&&this._data.items.push(e[t].innerHTML);return this._data}},{key:"currentItem",get:function(){var e=window.getSelection().anchorNode;return e.nodeType!==Node.ELEMENT_NODE&&(e=e.parentNode),e.closest(".".concat(this.CSS.item))}}],[{key:"conversionConfig",get:function(){return{export:function(e){return e.items.join(". ")},import:function(e){return{items:[e],style:"unordered"}}}}},{key:"sanitize",get:function(){return{style:{},items:{br:!0}}}},{key:"pasteConfig",get:function(){return{tags:["OL","UL","LI"]}}}]),a}()}]).default})})(T);var A=T.exports;const N=E(A),H=P({__proto__:null,default:N},[A]);export{N as L,H as b}; diff --git a/public/build/assets/bundle-94bef551.js b/public/build/assets/bundle-94bef551.js new file mode 100644 index 0000000..012e778 --- /dev/null +++ b/public/build/assets/bundle-94bef551.js @@ -0,0 +1,54 @@ +import{A as N}from"./admin-app-0df052b8.js";function P(x,H){for(var g=0;gb[l]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var A={exports:{}};(function(x,H){(function(g,b){x.exports=b()})(window,function(){return function(g){var b={};function l(n){if(b[n])return b[n].exports;var i=b[n]={i:n,l:!1,exports:{}};return g[n].call(i.exports,i,i.exports,l),i.l=!0,i.exports}return l.m=g,l.c=b,l.d=function(n,i,h){l.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:h})},l.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},l.t=function(n,i){if(1&i&&(n=l(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var h=Object.create(null);if(l.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var m in n)l.d(h,m,(function(f){return n[f]}).bind(null,m));return h},l.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return l.d(i,"a",i),i},l.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},l.p="/",l(l.s=5)}([function(g,b,l){var n=l(1);typeof n=="string"&&(n=[[g.i,n,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};l(3)(n,i),n.locals&&(g.exports=n.locals)},function(g,b,l){(g.exports=l(2)(!1)).push([g.i,`/** + * Plugin styles + */ +.ce-header { + padding: 0.6em 0 3px; + margin: 0; + line-height: 1.25em; + outline: none; +} + +.ce-header p, +.ce-header div{ + padding: 0 !important; + margin: 0 !important; +} + +/** + * Styles for Plugin icon in Toolbar + */ +.ce-header__icon {} + +.ce-header[contentEditable=true][data-placeholder]::before{ + position: absolute; + content: attr(data-placeholder); + color: #707684; + font-weight: normal; + display: none; + cursor: text; +} + +.ce-header[contentEditable=true][data-placeholder]:empty::before { + display: block; +} + +.ce-header[contentEditable=true][data-placeholder]:empty:focus::before { + display: none; +} +`,""])},function(g,b){g.exports=function(l){var n=[];return n.toString=function(){return this.map(function(i){var h=function(m,f){var y=m[1]||"",u=m[3];if(!u)return y;if(f&&typeof btoa=="function"){var o=(v=u,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(v))))+" */"),s=u.sources.map(function(k){return"/*# sourceURL="+u.sourceRoot+k+" */"});return[y].concat(s).concat([o]).join(` +`)}var v;return[y].join(` +`)}(i,l);return i[2]?"@media "+i[2]+"{"+h+"}":h}).join("")},n.i=function(i,h){typeof i=="string"&&(i=[[null,i,""]]);for(var m={},f=0;f=0&&s.splice(e,1)}function S(t){var e=document.createElement("style");return t.attrs.type===void 0&&(t.attrs.type="text/css"),j(e,t.attrs),C(t,e),e}function j(t,e){Object.keys(e).forEach(function(r){t.setAttribute(r,e[r])})}function T(t,e){var r,a,d,c;if(e.transform&&t.css){if(!(c=e.transform(t.css)))return function(){};t.css=c}if(e.singleton){var w=o++;r=u||(u=S(e)),a=U.bind(null,r,w,!1),d=U.bind(null,r,w,!0)}else t.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(r=function(p){var M=document.createElement("link");return p.attrs.type===void 0&&(p.attrs.type="text/css"),p.attrs.rel="stylesheet",j(M,p.attrs),C(p,M),M}(e),a=I.bind(null,r,e),d=function(){_(r),r.href&&URL.revokeObjectURL(r.href)}):(r=S(e),a=B.bind(null,r),d=function(){_(r)});return a(t),function(p){if(p){if(p.css===t.css&&p.media===t.media&&p.sourceMap===t.sourceMap)return;a(t=p)}else d()}}g.exports=function(t,e){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs=typeof e.attrs=="object"?e.attrs:{},e.singleton||typeof e.singleton=="boolean"||(e.singleton=m()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var r=L(t,e);return k(r,e),function(a){for(var d=[],c=0;c',title:"Heading"}}}],(y=[{key:"normalizeData",value:function(o){var s={};return n(o)!=="object"&&(o={}),s.text=o.text||"",s.level=parseInt(o.level)||this.defaultLevel.number,s}},{key:"render",value:function(){return this._element}},{key:"renderSettings",value:function(){var o=this;return this.levels.map(function(s){return{icon:s.svg,label:o.api.i18n.t("Heading ".concat(s.number)),onActivate:function(){return o.setLevel(s.number)},closeOnActivate:!0,isActive:o.currentLevel.number===s.number}})}},{key:"setLevel",value:function(o){this.data={level:o,text:this.data.text}}},{key:"merge",value:function(o){var s={text:this.data.text+o.text,level:this.data.level};this.data=s}},{key:"validate",value:function(o){return o.text.trim()!==""}},{key:"save",value:function(o){return{text:o.innerHTML,level:this.currentLevel.number}}},{key:"getTag",value:function(){var o=document.createElement(this.currentLevel.tag);return o.innerHTML=this._data.text||"",o.classList.add(this._CSS.wrapper),o.contentEditable=this.readOnly?"false":"true",o.dataset.placeholder=this.api.i18n.t(this._settings.placeholder||""),o}},{key:"onPaste",value:function(o){var s=o.detail.data,v=this.defaultLevel.number;switch(s.tagName){case"H1":v=1;break;case"H2":v=2;break;case"H3":v=3;break;case"H4":v=4;break;case"H5":v=5;break;case"H6":v=6}this._settings.levels&&(v=this._settings.levels.reduce(function(k,L){return Math.abs(L-v)'},{number:2,tag:"H2",svg:''},{number:3,tag:"H3",svg:''},{number:4,tag:"H4",svg:''},{number:5,tag:"H5",svg:''},{number:6,tag:"H6",svg:''}];return this._settings.levels?s.filter(function(v){return o._settings.levels.includes(v.number)}):s}}])&&i(f.prototype,y),u&&i(f,u),m}()}]).default})})(A);var E=A.exports;const V=N(E),z=P({__proto__:null,default:V},[E]);export{V as H,z as b}; diff --git a/public/build/manifest.json b/public/build/manifest.json index 97a2462..70e823d 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -1,4 +1,32 @@ { + "NativeImageBlock.css": { + "file": "assets/NativeImageBlock-e3b0c442.css", + "src": "NativeImageBlock.css" + }, + "_NativeImageBlock-bcbff98b.js": { + "css": [ + "assets/NativeImageBlock-e3b0c442.css" + ], + "file": "assets/NativeImageBlock-bcbff98b.js", + "imports": [ + "resources/js/admin-app.js" + ], + "isDynamicEntry": true + }, + "_bundle-43b5b4d7.js": { + "file": "assets/bundle-43b5b4d7.js", + "imports": [ + "resources/js/admin-app.js" + ], + "isDynamicEntry": true + }, + "_bundle-94bef551.js": { + "file": "assets/bundle-94bef551.js", + "imports": [ + "resources/js/admin-app.js" + ], + "isDynamicEntry": true + }, "_index-8746c87e.js": { "file": "assets/index-8746c87e.js" }, @@ -10,8 +38,20 @@ "file": "assets/bootstrap-icons-cfe45b98.woff2", "src": "node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff2" }, + "resources/js/admin-app.css": { + "file": "assets/admin-app-935fc652.css", + "src": "resources/js/admin-app.css" + }, "resources/js/admin-app.js": { - "file": "assets/admin-app-ff7516d6.js", + "css": [ + "assets/admin-app-935fc652.css" + ], + "dynamicImports": [ + "_NativeImageBlock-bcbff98b.js", + "resources/js/vue/PostEditor.vue", + "resources/js/vue/VueEditorJs.vue" + ], + "file": "assets/admin-app-0df052b8.js", "imports": [ "_index-8746c87e.js" ], @@ -26,6 +66,32 @@ "isEntry": true, "src": "resources/js/front-app.js" }, + "resources/js/vue/PostEditor.vue": { + "file": "assets/PostEditor-a6038129.js", + "imports": [ + "resources/js/vue/VueEditorJs.vue", + "_NativeImageBlock-bcbff98b.js", + "_bundle-43b5b4d7.js", + "_bundle-94bef551.js", + "resources/js/admin-app.js", + "_index-8746c87e.js" + ], + "isDynamicEntry": true, + "src": "resources/js/vue/PostEditor.vue" + }, + "resources/js/vue/VueEditorJs.vue": { + "dynamicImports": [ + "_bundle-94bef551.js", + "_bundle-43b5b4d7.js" + ], + "file": "assets/VueEditorJs-6310d292.js", + "imports": [ + "resources/js/admin-app.js", + "_index-8746c87e.js" + ], + "isDynamicEntry": true, + "src": "resources/js/vue/VueEditorJs.vue" + }, "resources/sass/admin-app.scss": { "file": "assets/admin-app-bade20ce.css", "isEntry": true, diff --git a/resources/js/stores/postStore.js b/resources/js/stores/postStore.js index f6e5176..ba3b2f5 100644 --- a/resources/js/stores/postStore.js +++ b/resources/js/stores/postStore.js @@ -10,6 +10,7 @@ export const usePostStore = defineStore("postStore", { defaultLocaleSlug: "my", countryLocales: [], localeCategories: [], + authors: [], }, }), getters: { @@ -22,8 +23,21 @@ export const usePostStore = defineStore("postStore", { localeCategories(state) { return state.data.localeCategories; }, + authors(state) { + return state.data.authors; + }, }, actions: { + async fetchAuthors() { + try { + const response = await axios.get(route("api.admin.authors")); + console.log(response); + this.data.authors = response.data.authors; + } catch (error) { + // alert(error); + console.log(error); + } + }, async fetchCountryLocales() { try { const response = await axios.get(route("api.admin.country-locales")); diff --git a/resources/js/vue/NativeImageBlock.vue b/resources/js/vue/NativeImageBlock.vue index 4be8f90..bff8ff2 100644 --- a/resources/js/vue/NativeImageBlock.vue +++ b/resources/js/vue/NativeImageBlock.vue @@ -9,7 +9,7 @@
-
+
Loading...
@@ -34,16 +34,18 @@ diff --git a/resources/js/vue/PostEditor.vue b/resources/js/vue/PostEditor.vue index f6bb5e1..4cb0087 100644 --- a/resources/js/vue/PostEditor.vue +++ b/resources/js/vue/PostEditor.vue @@ -31,12 +31,13 @@
-
+
-
@@ -101,6 +150,36 @@
+
+
Authors
+
+
+ +
+
+
+
+
Other Settings
+
+
+ + +
+
+
@@ -116,16 +195,29 @@ import { mapActions, mapState } from "pinia"; import { usePostStore } from "@/stores/postStore.js"; +import axios from "axios"; +import route from "ziggy-js/src/js/index"; + export default { components: { VueEditorJs, List, Header }, + props: { + postId: { + type: Number, // The prop type is Number + default: null, // Default value if the prop is not provided + }, + }, data() { return { + isSaving: false, + showEditorJs: false, post: { + id: null, title: "", slug: "", excerpt: "", author_id: null, featured: false, + publish_date: null, featured_image: null, body: { time: 1591362820044, @@ -179,6 +271,7 @@ export default { "countryLocales", "localeCategories", "defaultLocaleSlug", + "authors", ]), getPostFullUrl() { if (this.post.slug?.length > 0) { @@ -200,6 +293,7 @@ export default { ...mapActions(usePostStore, [ "fetchCountryLocales", "fetchLocaleCategories", + "fetchAuthors", ]), checkAndSave() { let errors = []; @@ -208,6 +302,10 @@ export default { errors.push("post title"); } + if (!(this.post.publish_date?.length > 0)) { + errors.push("publish date"); + } + if (!(this.post.slug?.length > 0)) { errors.push("post slug"); } @@ -241,7 +339,36 @@ export default { this.savePost(); } }, - savePost() {}, + savePost() { + this.isSaving = true; + + const formData = new FormData(); + + for (const [key, _item] of Object.entries(this.post)) { + if (key == "body") { + formData.append(key, JSON.stringify(_item)); + } else { + formData.append(key, _item); + } + } + + axios + .post(route("api.admin.post.upsert"), formData, { + headers: { + "Content-Type": "application/json", + }, + }) + .then((response) => { + console.warn(response); + }); + + setTimeout( + function () { + this.isSaving = false; + }.bind(this), + 1000 + ); + }, onInitialized(editor) {}, imageSaved(src) { this.post.featured_image = src; @@ -278,6 +405,34 @@ export default { } return null; }, + async fetchPostData(id) { + const response = await axios.get(route("api.admin.post.get", { id: id })); + + if (response?.data?.post != null) { + let tmp = this.post; + let post = response.data.post; + + tmp.id = post.id; + tmp.title = post.title; + tmp.slug = post.slug; + tmp.publish_date = post.publish_date; + tmp.excerpt = post.excerpt; + tmp.author_id = post.author_id; + tmp.featured = post.featured; + tmp.featured_image = post.featured_image; + tmp.body = post.body; + tmp.locale_slug = post.post_category.category.country_locale_slug; + tmp.locale_id = post.post_category.category.country_locale_id; + tmp.status = post.status; + tmp.categories = post.post_category.category.id; + + this.post = tmp; + + this.config.data = post.body; + } + + console.log(response.data.post); + }, slugify: function (title) { var slug = ""; // Change to lower case @@ -300,6 +455,25 @@ export default { setTimeout( function () { this.fetchLocaleCategories(this.post.locale_slug); + this.fetchAuthors(); + + if (this.postId != null) { + this.fetchPostData(this.postId).then(() => { + setTimeout( + function () { + this.showEditorJs = true; + }.bind(this), + 1000 + ); + }); + } else { + setTimeout( + function () { + this.showEditorJs = true; + }.bind(this), + 1000 + ); + } }.bind(this), 100 ); diff --git a/resources/js/ziggy.js b/resources/js/ziggy.js index 2ea2457..7d24e91 100644 --- a/resources/js/ziggy.js +++ b/resources/js/ziggy.js @@ -1,4 +1,4 @@ -const Ziggy = {"url":"https:\/\/productalert.test","port":null,"defaults":{},"routes":{"debugbar.openhandler":{"uri":"_debugbar\/open","methods":["GET","HEAD"]},"debugbar.clockwork":{"uri":"_debugbar\/clockwork\/{id}","methods":["GET","HEAD"]},"debugbar.assets.css":{"uri":"_debugbar\/assets\/stylesheets","methods":["GET","HEAD"]},"debugbar.assets.js":{"uri":"_debugbar\/assets\/javascript","methods":["GET","HEAD"]},"debugbar.cache.delete":{"uri":"_debugbar\/cache\/{key}\/{tags?}","methods":["DELETE"]},"sanctum.csrf-cookie":{"uri":"sanctum\/csrf-cookie","methods":["GET","HEAD"]},"ignition.healthCheck":{"uri":"_ignition\/health-check","methods":["GET","HEAD"]},"ignition.executeSolution":{"uri":"_ignition\/execute-solution","methods":["POST"]},"ignition.updateConfig":{"uri":"_ignition\/update-config","methods":["POST"]},"api.auth.login.post":{"uri":"api\/login","methods":["POST"]},"api.auth.logout.post":{"uri":"api\/logout","methods":["POST"]},"api.admin.country-locales":{"uri":"api\/admin\/country-locales","methods":["GET","HEAD"]},"api.admin.categories":{"uri":"api\/admin\/categories\/{country_locale_slug}","methods":["GET","HEAD"]},"api.admin.upload.cloud.image":{"uri":"api\/admin\/image\/upload","methods":["GET","HEAD"]},"login":{"uri":"login","methods":["GET","HEAD"]},"logout":{"uri":"logout","methods":["POST"]},"register":{"uri":"register","methods":["GET","HEAD"]},"password.request":{"uri":"password\/reset","methods":["GET","HEAD"]},"password.email":{"uri":"password\/email","methods":["POST"]},"password.reset":{"uri":"password\/reset\/{token}","methods":["GET","HEAD"]},"password.update":{"uri":"password\/reset","methods":["POST"]},"password.confirm":{"uri":"password\/confirm","methods":["GET","HEAD"]},"dashboard":{"uri":"admin","methods":["GET","HEAD"]},"about":{"uri":"admin\/about","methods":["GET","HEAD"]},"users.index":{"uri":"admin\/users","methods":["GET","HEAD"]},"posts.manage":{"uri":"admin\/posts","methods":["GET","HEAD"]},"posts.manage.edit":{"uri":"admin\/posts\/edit\/{post_id}","methods":["GET","HEAD"]},"posts.manage.new":{"uri":"admin\/posts\/new","methods":["GET","HEAD"]},"profile.show":{"uri":"admin\/profile","methods":["GET","HEAD"]},"profile.update":{"uri":"admin\/profile","methods":["PUT"]},"home":{"uri":"\/","methods":["GET","HEAD"]},"home.country":{"uri":"{country}","methods":["GET","HEAD"]},"home.country.posts":{"uri":"{country}\/posts","methods":["GET","HEAD"]},"home.country.post":{"uri":"{country}\/posts\/{post_slug}","methods":["GET","HEAD"]},"home.country.category":{"uri":"{country}\/{category}","methods":["GET","HEAD"]}}}; +const Ziggy = {"url":"https:\/\/productalert.test","port":null,"defaults":{},"routes":{"debugbar.openhandler":{"uri":"_debugbar\/open","methods":["GET","HEAD"]},"debugbar.clockwork":{"uri":"_debugbar\/clockwork\/{id}","methods":["GET","HEAD"]},"debugbar.assets.css":{"uri":"_debugbar\/assets\/stylesheets","methods":["GET","HEAD"]},"debugbar.assets.js":{"uri":"_debugbar\/assets\/javascript","methods":["GET","HEAD"]},"debugbar.cache.delete":{"uri":"_debugbar\/cache\/{key}\/{tags?}","methods":["DELETE"]},"sanctum.csrf-cookie":{"uri":"sanctum\/csrf-cookie","methods":["GET","HEAD"]},"ignition.healthCheck":{"uri":"_ignition\/health-check","methods":["GET","HEAD"]},"ignition.executeSolution":{"uri":"_ignition\/execute-solution","methods":["POST"]},"ignition.updateConfig":{"uri":"_ignition\/update-config","methods":["POST"]},"api.auth.login.post":{"uri":"api\/login","methods":["POST"]},"api.auth.logout.post":{"uri":"api\/logout","methods":["POST"]},"api.admin.post.get":{"uri":"api\/admin\/post\/{id}","methods":["GET","HEAD"]},"api.admin.country-locales":{"uri":"api\/admin\/country-locales","methods":["GET","HEAD"]},"api.admin.categories":{"uri":"api\/admin\/categories\/{country_locale_slug}","methods":["GET","HEAD"]},"api.admin.authors":{"uri":"api\/admin\/authors","methods":["GET","HEAD"]},"api.admin.upload.cloud.image":{"uri":"api\/admin\/image\/upload","methods":["POST"]},"api.admin.post.upsert":{"uri":"api\/admin\/admin\/post\/upsert","methods":["POST"]},"login":{"uri":"login","methods":["GET","HEAD"]},"logout":{"uri":"logout","methods":["POST"]},"register":{"uri":"register","methods":["GET","HEAD"]},"password.request":{"uri":"password\/reset","methods":["GET","HEAD"]},"password.email":{"uri":"password\/email","methods":["POST"]},"password.reset":{"uri":"password\/reset\/{token}","methods":["GET","HEAD"]},"password.update":{"uri":"password\/reset","methods":["POST"]},"password.confirm":{"uri":"password\/confirm","methods":["GET","HEAD"]},"dashboard":{"uri":"admin","methods":["GET","HEAD"]},"about":{"uri":"admin\/about","methods":["GET","HEAD"]},"users.index":{"uri":"admin\/users","methods":["GET","HEAD"]},"posts.manage":{"uri":"admin\/posts","methods":["GET","HEAD"]},"posts.manage.edit":{"uri":"admin\/posts\/edit\/{post_id}","methods":["GET","HEAD"]},"posts.manage.new":{"uri":"admin\/posts\/new","methods":["GET","HEAD"]},"profile.show":{"uri":"admin\/profile","methods":["GET","HEAD"]},"profile.update":{"uri":"admin\/profile","methods":["PUT"]},"home":{"uri":"\/","methods":["GET","HEAD"]},"home.country":{"uri":"{country}","methods":["GET","HEAD"]},"home.country.posts":{"uri":"{country}\/posts","methods":["GET","HEAD"]},"home.country.post":{"uri":"{country}\/posts\/{post_slug}","methods":["GET","HEAD"]},"home.country.category":{"uri":"{country}\/{category}","methods":["GET","HEAD"]}}}; if (typeof window !== 'undefined' && typeof window.Ziggy !== 'undefined') { Object.assign(Ziggy.routes, window.Ziggy.routes); diff --git a/resources/views/admin/posts/manage.blade.php b/resources/views/admin/posts/manage.blade.php index 7d7b577..13de711 100644 --- a/resources/views/admin/posts/manage.blade.php +++ b/resources/views/admin/posts/manage.blade.php @@ -29,9 +29,9 @@ Image + Status Title - {{ __('Created at') }} - {{ __('Updated in') }} + Datetime Actions @@ -42,12 +42,33 @@ + @if($post->status === 'publish') + {{ ucfirst($post->status) }} + @elseif($post->status === 'future') + {{ ucfirst($post->status) }} + @elseif($post->status === 'draft') + {{ ucfirst($post->status) }} + @elseif($post->status === 'private') + {{ ucfirst($post->status) }} + @elseif ($post->status == 'trash') + {{ ucfirst($post->status) }} + @else + {{ ucfirst($post->status) }} + @endif + + + @if(!is_empty($post->post_category?->category?->country_locale_slug) && $post->status == 'publish') {{ $post->title }} + href="{{ route('home.country.post', ['country' => $post->post_category?->category?->country_locale_slug, 'post_slug' => $post->slug]) }}">{{ $post->title }} + @else + {{ $post->title }} + @endif - {{ $post->created_at }} - {{ $post->updated_at->diffForhumans() }} + + Created at {{ $post->created_at->timezone(session()->get('timezone'))->isoFormat('Do MMMM YYYY, h:mm A') }}
+ Updated {{ $post->updated_at->diffForhumans() }} + diff --git a/resources/views/admin/posts/upsert.blade.php b/resources/views/admin/posts/upsert.blade.php index 7f540f9..f5b4f59 100644 --- a/resources/views/admin/posts/upsert.blade.php +++ b/resources/views/admin/posts/upsert.blade.php @@ -6,19 +6,22 @@
- + @if (!is_null($post)) + + @else + + @endif
@endsection diff --git a/resources/views/front/post.blade.php b/resources/views/front/post.blade.php index ff97491..d1b7c7a 100644 --- a/resources/views/front/post.blade.php +++ b/resources/views/front/post.blade.php @@ -31,10 +31,10 @@

{{ $post->excerpt }}

- + Photo of {{ $post->name }}
- {{ $post->html_body }} + {!! $post->html_body !!}
diff --git a/resources/views/layouts/front/app.blade.php b/resources/views/layouts/front/app.blade.php index b274819..7473b4a 100644 --- a/resources/views/layouts/front/app.blade.php +++ b/resources/views/layouts/front/app.blade.php @@ -5,8 +5,11 @@ - - {{ config('app.name', 'Laravel') }} +{!! SEOMeta::generate() !!} +{!! OpenGraph::generate() !!} +{!! Twitter::generate() !!} +{!! JsonLdMulti::generate() !!} + @vite('resources/sass/front-app.scss') diff --git a/resources/views/layouts/front/footer.blade.php b/resources/views/layouts/front/footer.blade.php index ce43575..c227c3d 100644 --- a/resources/views/layouts/front/footer.blade.php +++ b/resources/views/layouts/front/footer.blade.php @@ -1,35 +1,34 @@