From d9a0f08203f3058854eb070c8637388fd28509e1 Mon Sep 17 00:00:00 2001 From: Giuseppe Criscione <18699708+giuscris@users.noreply.github.com> Date: Sun, 12 May 2024 19:36:30 +0200 Subject: [PATCH] Improve Pages and Files management in the panel --- formwork/config/system.yaml | 9 +- formwork/fields/dynamic/vars.php | 5 + formwork/schemes/config/system.yaml | 1 + formwork/src/Files/FileUploader.php | 15 +-- formwork/src/Images/Exif/ExifData.php | 111 ++++++++++++++++++ formwork/src/Images/Image.php | 6 +- formwork/src/Pages/Page.php | 3 +- .../src/Panel/Controllers/PagesController.php | 102 +++++++++++++--- .../src/Panel/Controllers/UsersController.php | 6 +- formwork/src/Utils/MimeType.php | 8 ++ panel/assets/css/panel-dark.min.css | 2 +- panel/assets/css/panel.min.css | 2 +- panel/assets/icons/svg/arrow-left-circle.svg | 1 + panel/assets/icons/svg/page-down.svg | 1 + panel/assets/icons/svg/page-up.svg | 1 + panel/assets/icons/svg/sparks.svg | 1 + panel/assets/js/app.min.js | 42 +++---- panel/routes.php | 12 ++ panel/src/scss/components/_base.scss | 8 ++ panel/src/scss/components/_mixins.scss | 12 ++ panel/src/scss/components/_pages.scss | 25 ++++ panel/src/ts/components/files.ts | 8 +- panel/src/ts/components/views/pages.ts | 28 +++++ panel/translations/de.yaml | 40 +++++++ panel/translations/en.yaml | 40 +++++++ panel/translations/es.yaml | 40 +++++++ panel/translations/fr.yaml | 40 +++++++ panel/translations/it.yaml | 40 +++++++ panel/translations/pt.yaml | 40 +++++++ panel/translations/ru.yaml | 40 +++++++ panel/views/fields/page/files.php | 8 +- panel/views/modals/slug.php | 2 +- panel/views/pages/editor.php | 2 + panel/views/pages/file.php | 94 +++++++++++++++ .../views/partials/files/images/exif/data.php | 8 ++ .../views/partials/files/images/info/exif.php | 48 ++++++++ .../views/partials/files/images/info/info.php | 45 +++++++ .../partials/files/images/position/map.php | 1 + site/config/system.yaml | 10 ++ 39 files changed, 837 insertions(+), 70 deletions(-) create mode 100644 panel/assets/icons/svg/arrow-left-circle.svg create mode 100644 panel/assets/icons/svg/page-down.svg create mode 100644 panel/assets/icons/svg/page-up.svg create mode 100644 panel/assets/icons/svg/sparks.svg create mode 100644 panel/views/pages/file.php create mode 100644 panel/views/partials/files/images/exif/data.php create mode 100644 panel/views/partials/files/images/info/exif.php create mode 100644 panel/views/partials/files/images/info/info.php create mode 100644 panel/views/partials/files/images/position/map.php diff --git a/formwork/config/system.yaml b/formwork/config/system.yaml index 4e888e80..777a9000 100644 --- a/formwork/config/system.yaml +++ b/formwork/config/system.yaml @@ -40,14 +40,7 @@ fields: file: '${%SYSTEM_PATH%}/fields/dynamic/vars.php' files: - allowedExtensions: - - .jpg - - .jpeg - - .png - - .gif - - .svg - - .webp - - .pdf + allowedExtensions: [] images: jpegQuality: 85 diff --git a/formwork/fields/dynamic/vars.php b/formwork/fields/dynamic/vars.php index 303eb27b..f4571242 100644 --- a/formwork/fields/dynamic/vars.php +++ b/formwork/fields/dynamic/vars.php @@ -3,6 +3,7 @@ use Formwork\App; use Formwork\Languages\LanguageCodes; use Formwork\Panel\Utils\DateFormats; +use Formwork\Utils\MimeType; return function (App $app) { return [ @@ -19,5 +20,9 @@ return function (App $app) { 'languages' => [ 'names' => LanguageCodes::names(), ], + + 'mimeTypes' => [ + 'extensionTypes' => MimeType::extensionTypes(), + ], ]; }; diff --git a/formwork/schemes/config/system.yaml b/formwork/schemes/config/system.yaml index b7222062..0dbd2f17 100644 --- a/formwork/schemes/config/system.yaml +++ b/formwork/schemes/config/system.yaml @@ -80,6 +80,7 @@ fields: type: tags label: '{{panel.options.system.files.allowedExtensions}}' pattern: '^\.[a-zA-Z0-9]+$' + options@: mimeTypes.extensionTypes cache.enabled: type: togglegroup diff --git a/formwork/src/Files/FileUploader.php b/formwork/src/Files/FileUploader.php index 77b74372..f141d24d 100644 --- a/formwork/src/Files/FileUploader.php +++ b/formwork/src/Files/FileUploader.php @@ -2,17 +2,18 @@ namespace Formwork\Files; -use Formwork\Config\Config; use Formwork\Exceptions\TranslatedException; use Formwork\Http\Files\UploadedFile; -use Formwork\Utils\Arr; use Formwork\Utils\FileSystem; use Formwork\Utils\MimeType; use Formwork\Utils\Str; class FileUploader { - public function __construct(protected Config $config) + /** + * @param list $allowedMimeTypes + */ + public function __construct(protected array $allowedMimeTypes) { } @@ -21,20 +22,20 @@ class FileUploader */ public function allowedMimeTypes(): array { - return Arr::map($this->config->get('system.files.allowedExtensions'), fn (string $ext) => MimeType::fromExtension($ext)); + return $this->allowedMimeTypes; } - public function upload(UploadedFile $uploadedFile, string $destinationPath, ?string $name = null): File + public function upload(UploadedFile $uploadedFile, string $destinationPath, ?string $name = null, bool $overwrite = false): File { $mimeType = MimeType::fromFile($uploadedFile->tempPath()); - if (!in_array($mimeType, $this->allowedMimeTypes(), true)) { + if (!in_array($mimeType, $this->allowedMimeTypes, true)) { throw new TranslatedException(sprintf('Invalid mime type %s for file uploads', $mimeType), 'upload.error.mimeType'); } $filename = Str::slug($name ?? pathinfo($uploadedFile->clientName(), PATHINFO_FILENAME)) . '.' . MimeType::toExtension($mimeType); - $uploadedFile->move($destinationPath, $filename); + $uploadedFile->move($destinationPath, $filename, $overwrite); return new File(FileSystem::joinPaths($destinationPath, $filename)); } diff --git a/formwork/src/Images/Exif/ExifData.php b/formwork/src/Images/Exif/ExifData.php index 4e222a32..a4309308 100644 --- a/formwork/src/Images/Exif/ExifData.php +++ b/formwork/src/Images/Exif/ExifData.php @@ -3,6 +3,7 @@ namespace Formwork\Images\Exif; use Formwork\Data\Contracts\Arrayable; +use Formwork\Utils\Str; use Generator; class ExifData implements Arrayable @@ -77,4 +78,114 @@ class ExifData implements Arrayable ? $this->tags[$key][1] ?? $this->tags[$key][0] : $default; } + + public function hasPositionData(): bool + { + return $this->hasMultiple(['GPSLatitude', 'GPSLongitude']); + } + + public function dateTimeOriginal(): ?ExifDateTime + { + /** @var ExifDateTime|null */ + return $this->get('DateTimeOriginal'); + } + + public function makeAndModel(): ?string + { + $make = (string) $this->get('Make'); + $model = (string) $this->get('Model'); + + if ($model === '') { + return $make ?: null; + } + + return $make . ' ' . Str::after($model, $make . ' '); + } + + public function lensModel(): ?string + { + return $this->get('LensModel') ? str_replace('f/', 'ƒ/', (string) $this->get('LensModel')) : null; + } + + public function focalLength(): ?string + { + return $this->get('FocalLength') ? $this->get('FocalLength') . ' mm' : null; + } + + public function exposureTime(): ?string + { + return $this->get('ExposureTime') ? $this->get('ExposureTime') . ' s' : null; + } + + public function aperture(): ?string + { + return $this->get('FNumber') ? 'ƒ/' . $this->get('FNumber') : null; + } + + public function photographicSensitivity(): ?string + { + return $this->get('PhotographicSensitivity') ? 'ISO ' . $this->get('PhotographicSensitivity') : null; + } + + public function exposureCompensation(): ?string + { + /** @var float|null */ + $compensation = $this->get('ExposureBiasValue'); + return $compensation ? round($compensation, 2) . ' EV' : null; + } + + public function exposureProgram(): ?string + { + /** @var int */ + $exposureProgram = $this->getRaw('ExposureProgram', 0); + + if ($exposureProgram < 0) { + return null; + } + + return match ($exposureProgram) { + 2 => 'P', + 3 => 'A', + 4 => 'S', + 1 => 'M', + default => 'AUTO', + }; + } + + public function hasAutoWhiteBalance(): ?bool + { + return $this->has('WhiteBalance') ? $this->getRaw('WhiteBalance') === 0 : null; + } + + public function hasFlashFired(): ?bool + { + return $this->has('Flash') ? (bool) ($this->getRaw('Flash') % 2) : null; + } + + /** + * @return 'average'|'evaluative'|'partial'|'spot'|null + */ + public function meteringMode(): ?string + { + /** @var int|null */ + $meteringMode = $this->getRaw('MeteringMode'); + if ($meteringMode === null) { + return null; + } + if ($meteringMode <= 2 || $meteringMode > 6) { + return 'average'; + } + if ($meteringMode === 3) { + return 'spot'; + } + if ($meteringMode === 4 || $meteringMode == 5) { + return 'evaluative'; + } + return 'partial'; + } + + public function colorSpace(): ?string + { + return $this->get('ColorSpace'); + } } diff --git a/formwork/src/Images/Image.php b/formwork/src/Images/Image.php index 2834afd2..f324511e 100644 --- a/formwork/src/Images/Image.php +++ b/formwork/src/Images/Image.php @@ -354,10 +354,8 @@ class Image extends File { return [ ...parent::toArray(), - 'imageInfo' => $this->info()->toArray(), - 'exif' => $this->getExifData()?->toArray(), - 'colorProfile' => $this->getColorProfile()?->name(), - 'uri' => $this->uri(), + 'imageInfo' => $this->info()->toArray(), + 'uri' => $this->uri(), ]; } diff --git a/formwork/src/Pages/Page.php b/formwork/src/Pages/Page.php index ed50370f..423ba0c4 100644 --- a/formwork/src/Pages/Page.php +++ b/formwork/src/Pages/Page.php @@ -587,8 +587,7 @@ class Page extends Model implements Stringable 'preferred' => $site->languages()->preferred(), ]); - $this->files ??= new FileCollection($files); - $this->files->sortBy('path'); + $this->files ??= (new FileCollection($files))->sort(); $this->data = [...$this->defaults(), ...$this->data]; } diff --git a/formwork/src/Panel/Controllers/PagesController.php b/formwork/src/Panel/Controllers/PagesController.php index 98125270..73e715ce 100644 --- a/formwork/src/Panel/Controllers/PagesController.php +++ b/formwork/src/Panel/Controllers/PagesController.php @@ -21,6 +21,7 @@ use Formwork\Router\RouteParams; use Formwork\Utils\Arr; use Formwork\Utils\Date; use Formwork\Utils\FileSystem; +use Formwork\Utils\MimeType; use Formwork\Utils\Str; use Formwork\Utils\Uri; use RuntimeException; @@ -191,12 +192,8 @@ class PagesController extends AbstractController throw new UnexpectedValueException('Unexpected missing page route'); } - // Redirect if page route has changed - if ($routeParams->get('page') !== ($route = trim($page->route(), '/'))) { - return $this->redirect($this->generateRoute('panel.pages.edit', ['page' => $route])); - } - - break; + // Redirect to avoid ERR_CACHE_MISS + return $this->redirect($this->generateRoute('panel.pages.edit', ['page' => $page->route()])); } $this->modal('changes'); @@ -394,31 +391,97 @@ class PagesController extends AbstractController if ($newName !== $previousName) { if ($page->files()->has($newName)) { $this->panel()->notify($this->translate('panel.pages.page.cannotRenameFile.fileAlreadyExists'), 'error'); - return $this->redirect($this->generateRoute('panel.pages.edit', ['page' => $routeParams->get('page')])); + } else { + FileSystem::move($page->path() . $previousName, $page->path() . $newName); + $this->panel()->notify($this->translate('panel.pages.page.fileRenamed'), 'success'); } + } - FileSystem::move($page->path() . $previousName, $page->path() . $newName); - $this->panel()->notify($this->translate('panel.pages.page.fileRenamed'), 'success'); + $previousFileRoute = $this->generateRoute('panel.pages.file', ['page' => $routeParams->get('page'), 'filename' => $previousName]); + + if (Str::removeEnd((string) Uri::path($request->referer()), '/') === $this->site()->uri($previousFileRoute)) { + return $this->redirect($this->generateRoute('panel.pages.file', ['page' => $routeParams->get('page'), 'filename' => $newName])); } return $this->redirect($this->generateRoute('panel.pages.edit', ['page' => $routeParams->get('page')])); } - public function getFileInfo(RouteParams $routeParams): JsonResponse + /** + * Pages@replaceFile action + */ + public function replaceFile(RouteParams $routeParams): RedirectResponse { - $this->ensurePermission('pages.getFileInfo'); + $this->ensurePermission('pages.replaceFiles'); $page = $this->site()->findPage($routeParams->get('page')); + $filename = $routeParams->get('filename'); + if ($page === null) { - return JsonResponse::error($this->translate('panel.pages.page.cannotRenameFile.pageNotFound')); + $this->panel()->notify($this->translate('panel.pages.page.cannotReplaceFile.pageNotFound'), 'error'); + return $this->redirectToReferer(default: '/pages/'); } - if (!$page->files()->has($routeParams->get('filename'))) { - return JsonResponse::error($this->translate('panel.pages.page.cannotRenameFile.fileNotFound')); + if (!$page->files()->has($filename)) { + $this->panel()->notify($this->translate('panel.pages.page.cannotReplaceFile.fileNotFound'), 'error'); + return $this->redirectToReferer(default: '/pages/'); } - return JsonResponse::success('Yes!', data: $page->files()->get($routeParams->get('filename'))->toArray()); + if (!$this->request->files()->isEmpty()) { + $files = $this->request->files()->getAll(); + + if (count($files) > 1) { + $this->panel()->notify($this->translate('panel.pages.page.cannotReplaceFile.multipleFiles'), 'error'); + return $this->redirectToReferer(default: '/pages/'); + } + + try { + $this->processPageUploads($this->request->files()->getAll(), $page, [$page->files()->get($filename)->mimeType()], FileSystem::name($filename), true); + } catch (TranslatedException $e) { + $this->panel()->notify($this->translate('upload.error', $e->getTranslatedMessage()), 'error'); + return $this->redirect($this->generateRoute('panel.pages.edit', ['page' => $routeParams->get('page')])); + } + } + + $this->panel()->notify($this->translate('panel.uploader.uploaded'), 'success'); + return $this->redirectToReferer(default: '/pages/'); + } + + /** + * Pages@file action + */ + public function file(RouteParams $routeParams): Response + { + $this->ensurePermission('pages.file'); + + $page = $this->site()->findPage($routeParams->get('page')); + + $filename = $routeParams->get('filename'); + + if ($page === null) { + $this->panel()->notify($this->translate('panel.pages.page.cannotReplaceFile.pageNotFound'), 'error'); + return $this->redirectToReferer(default: '/pages/'); + } + + if (!$page->files()->has($filename)) { + $this->panel()->notify($this->translate('panel.pages.page.cannotReplaceFile.fileNotFound'), 'error'); + return $this->redirect($this->generateRoute('panel.pages.edit', ['page' => $routeParams->get('page')])); + } + + $files = $page->files(); + $file = $files->get($filename); + $fileIndex = $files->indexOf($file); + + $this->modal('renameFile'); + $this->modal('deleteFile'); + + return new Response($this->view('pages.file', [ + 'title' => $this->translate('panel.pages.editPage', $page->title()), + 'page' => $page, + 'file' => $file, + 'previousFile' => $files->nth($fileIndex - 1), + 'nextFile' => $files->nth($fileIndex + 1), + ])); } /** @@ -616,10 +679,13 @@ class PagesController extends AbstractController * Process page uploads * * @param array $files + * @param list $mimeTypes */ - protected function processPageUploads(array $files, Page $page): void + protected function processPageUploads(array $files, Page $page, ?array $mimeTypes = null, ?string $name = null, bool $overwrite = false): void { - $fileUploader = new FileUploader($this->config); + $mimeTypes ??= Arr::map($this->config->get('system.files.allowedExtensions'), fn (string $ext) => MimeType::fromExtension($ext)); + + $fileUploader = new FileUploader($mimeTypes); foreach ($files as $file) { if (!$file->isUploaded()) { @@ -628,7 +694,7 @@ class PagesController extends AbstractController if ($page->path() === null) { throw new UnexpectedValueException('Unexpected missing page path'); } - $uploadedFile = $fileUploader->upload($file, $page->path()); + $uploadedFile = $fileUploader->upload($file, $page->path(), $name, $overwrite); // Process JPEG and PNG images according to system options (e.g. quality) if ($this->config->get('system.uploads.processImages') && in_array($uploadedFile->mimeType(), ['image/jpeg', 'image/png'], true)) { $image = new Image($uploadedFile->path(), $this->config->get('system.images')); diff --git a/formwork/src/Panel/Controllers/UsersController.php b/formwork/src/Panel/Controllers/UsersController.php index 796f2c5e..cf4e6cd2 100644 --- a/formwork/src/Panel/Controllers/UsersController.php +++ b/formwork/src/Panel/Controllers/UsersController.php @@ -14,7 +14,9 @@ use Formwork\Panel\Security\Password; use Formwork\Panel\Users\User; use Formwork\Parsers\Yaml; use Formwork\Router\RouteParams; +use Formwork\Utils\Arr; use Formwork\Utils\FileSystem; +use Formwork\Utils\MimeType; use RuntimeException; class UsersController extends AbstractController @@ -205,7 +207,9 @@ class UsersController extends AbstractController { $imagesPath = FileSystem::joinPaths($this->config->get('system.panel.paths.assets'), '/images/users/'); - $fileUploader = new FileUploader($this->config); + $mimeTypes = Arr::map($this->config->get('system.files.allowedExtensions'), fn (string $ext) => MimeType::fromExtension($ext)); + + $fileUploader = new FileUploader($mimeTypes); $uploadedFile = $fileUploader->upload($file, $imagesPath, FileSystem::randomName()); diff --git a/formwork/src/Utils/MimeType.php b/formwork/src/Utils/MimeType.php index aaa00487..8685e078 100644 --- a/formwork/src/Utils/MimeType.php +++ b/formwork/src/Utils/MimeType.php @@ -179,4 +179,12 @@ class MimeType { return static::getAssociatedExtensions($mimeType)[0] ?? null; } + + /** + * @return array + */ + public static function extensionTypes(): array + { + return Arr::mapKeys(Arr::map(self::MIME_TYPES, fn ($value, $key) => sprintf('.%s (%s)', $key, $value)), fn ($key) => '.' . $key); + } } diff --git a/panel/assets/css/panel-dark.min.css b/panel/assets/css/panel-dark.min.css index b2f79043..fa3d672f 100644 --- a/panel/assets/css/panel-dark.min.css +++ b/panel/assets/css/panel-dark.min.css @@ -1 +1 @@ -html{font-size:100%;text-size-adjust:100%}body{margin:0;background-color:#1f2123;color:#f2f2f3;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;line-height:1.5;-webkit-tap-highlight-color:rgba(242,242,243,0)}*{box-sizing:border-box}main{display:block}a{background-color:rgba(0,0,0,0);color:#1d86e1;outline-color:rgba(2,136,252,.375);text-decoration:none;transition:color 150ms}a:hover{color:#176bb4}a:not([href]){cursor:default}img{max-width:100%;border-style:none}mark{background-color:gold}code,pre{border-radius:4px;background-color:#333638;font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875em}code{padding:.125rem .25rem;color:#176bb4}pre{padding:1rem;white-space:pre-wrap}[hidden]{display:none}.focused{outline:2px solid rgba(2,136,252,.375)}::selection{background-color:rgba(29,134,225,.25)}::placeholder{color:#979ca1}h1,.h1{font-size:2.49rem}h2,.h2{font-size:2.07rem}h3,.h3{font-size:1.73rem}h4,.h4{font-size:1.44rem}h5,.h5{font-size:1.2rem}h6,.h6{font-size:1rem}h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6{margin-top:0;margin-bottom:.25rem;font-weight:500}strong{font-weight:600}p{margin-top:0;margin-bottom:.5rem;line-height:1.5}ul{padding:0;margin-top:0;margin-bottom:.5rem;margin-left:1.25rem;list-style-position:outside}.text-bold{font-weight:600}.text-italic{font-style:italic}@keyframes fade-in-right{from{opacity:0;transform:translate3d(150%, 0, 0)}to{opacity:1;transform:none}}@keyframes fade-out-right{from{opacity:1;transform:none}to{opacity:0;transform:translate3d(150%, 0, 0)}}@keyframes shake{0%,100%{transform:translate3d(0, 0, 0)}10%,50%,90%{transform:translate3d(-10px, 0, 0)}30%,70%{transform:translate3d(10px, 0, 0)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.badge{display:inline-block;min-width:1.375em;padding:.25rem .5rem;border-radius:2em;margin-left:.25rem;background-color:#333638;font-size:.75em;font-weight:600;line-height:1.125;text-align:center}.button .badge{padding:.125rem .375rem;font-size:.75rem;line-height:1}.button-accent .badge{background-color:#d2e7f9;color:#1d86e1}.button-success .badge{background-color:#d5f5e2;color:#2ecc70}.button-warning .badge{background-color:#fdebcf;color:#f39c11}.button-danger .badge{background-color:#fadbd8;color:#e74c3b}.button{display:inline-block;padding:.375rem .5rem;border:1px solid rgba(0,0,0,0);border-radius:4px;background-color:rgba(0,0,0,0);color:inherit;cursor:default;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:.875rem;font-weight:500;line-height:1.15;outline:none;text-align:center;transition:border-color 150ms,background-color 150ms,color 150ms;white-space:nowrap;user-select:none}.button:hover{color:#1d86e1}.button:focus{outline:2px solid rgba(2,136,252,.375)}.button[disabled],.button[disabled]:hover,.button.disabled,.button.disabled:hover{box-shadow:none;color:#4b4f53;pointer-events:none}.button .icon{display:inline-block;margin-right:.25rem}.button-right{margin-right:0;margin-left:.25rem;float:right}.button-accent{border:1px solid #1d86e1;background-color:#1d86e1;box-shadow:0 1px 0 rgba(242,242,243,.25);color:#fff}.button-accent:hover,.button-accent:focus,.button-accent.active{border-color:#176bb4;background-color:#176bb4;color:#fff}.button-accent:focus{outline:2px solid rgba(2,136,252,.375)}.button-secondary{border:1px solid #333638;background-color:#333638;box-shadow:0 1px 0 rgba(242,242,243,.25);color:#f2f2f3}.button-secondary:hover,.button-secondary:focus,.button-secondary.active{border-color:#4b4f53;background-color:#4b4f53;color:#f2f2f3}.button-secondary:focus{outline:2px solid rgba(242,242,243,.375)}.button-success{border:1px solid #2ecc70;background-color:#2ecc70;box-shadow:0 1px 0 rgba(242,242,243,.25);color:#fff}.button-success:hover,.button-success:focus,.button-success.active{border-color:#25a35a;background-color:#25a35a;color:#fff}.button-success:focus{outline:2px solid rgba(46,204,112,.375)}.button-warning{border:1px solid #f39c11;background-color:#f39c11;box-shadow:0 1px 0 rgba(242,242,243,.25);color:#fff}.button-warning:hover,.button-warning:focus,.button-warning.active{border-color:#c27d0e;background-color:#c27d0e;color:#fff}.button-warning:focus{outline:2px solid rgba(243,156,17,.375)}.button-danger{border:1px solid #e74c3b;background-color:#e74c3b;box-shadow:0 1px 0 rgba(242,242,243,.25);color:#fff}.button-danger:hover,.button-danger:focus,.button-danger.active{border-color:#b93d2f;background-color:#b93d2f;color:#fff}.button-danger:focus{outline:2px solid rgba(231,76,59,.375)}.button-link .icon{margin-right:0}.caption{font-size:.875rem;font-weight:600;letter-spacing:1px;text-transform:uppercase}.ct-label{color:rgba(0, 0, 0, 40%);fill:rgba(0, 0, 0, 40%);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:rgba(0, 0, 0, 20%);stroke-dasharray:2px;stroke-width:1px}.ct-grid-background{fill:none}.ct-point{stroke-linecap:round;stroke-width:10px}.ct-line{fill:none;stroke-width:4px}.ct-area{fill-opacity:.1;stroke:none}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#e6805e}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#e6805e}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-chart{position:relative;display:block;width:100%;height:14rem;user-select:none}.ct-label{color:rgba(242,242,243,.4);fill:rgba(242,242,243,.4);white-space:pre-wrap}.ct-grid{stroke:rgba(242,242,243,.2)}.ct-series-a .ct-line,.ct-series-a .ct-point{stroke:#1d86e1}.ct-series-a .ct-area{fill:#1d86e1}.ct-series-b .ct-line,.ct-series-b .ct-point{stroke:#f39c11}.ct-series-b .ct-area{fill:#f39c11}.ct-label.ct-horizontal,.ct-label.ct-horizontal.ct-end{display:inline-block;width:auto !important;min-width:3rem;color:#f2f2f3;text-align:center;transform:translateX(-50%)}.ct-legend{font-size:.875rem;user-select:none}.ct-legend-right{text-align:right}.ct-legend-label{white-space:nowrap}.ct-legend-label .icon{display:inline-block;margin:0 .25rem}.ct-legend-label.ct-series-a .icon{color:#1d86e1}.ct-legend-label.ct-series-b .icon{color:#f39c11}.container{max-width:1280px;padding:0;margin:0 auto}.row{display:flex;flex-wrap:wrap;margin:0}@media(min-width: 768px){.container{padding:0 1rem}.container .row{margin-right:-0.5rem;margin-left:-0.5rem}}.col-xs,.col-xs-1-12,.col-xs-2-12,.col-xs-1-6,.col-xs-3-12,.col-xs-1-4,.col-xs-4-12,.col-xs-1-3,.col-xs-5-12,.col-xs-6-12,.col-xs-1-2,.col-xs-7-12,.col-xs-8-12,.col-xs-2-3,.col-xs-9-12,.col-xs-3-4,.col-xs-10-12,.col-xs-5-6,.col-xs-11-12,.col-xs-12-12,.col-xs-1-1,.col-sm,.col-sm-1-12,.col-sm-2-12,.col-sm-1-6,.col-sm-3-12,.col-sm-1-4,.col-sm-4-12,.col-sm-1-3,.col-sm-5-12,.col-sm-6-12,.col-sm-1-2,.col-sm-7-12,.col-sm-8-12,.col-sm-2-3,.col-sm-9-12,.col-sm-3-4,.col-sm-10-12,.col-sm-5-6,.col-sm-11-12,.col-sm-12-12,.col-sm-1-1,.col-md,.col-md-1-12,.col-md-2-12,.col-md-1-6,.col-md-3-12,.col-md-1-4,.col-md-4-12,.col-md-1-3,.col-md-5-12,.col-md-6-12,.col-md-1-2,.col-md-7-12,.col-md-8-12,.col-md-2-3,.col-md-9-12,.col-md-3-4,.col-md-10-12,.col-md-5-6,.col-md-11-12,.col-md-12-12,.col-md-1-1,.col-lg,.col-lg-1-12,.col-lg-2-12,.col-lg-1-6,.col-lg-3-12,.col-lg-1-4,.col-lg-4-12,.col-lg-1-3,.col-lg-5-12,.col-lg-6-12,.col-lg-1-2,.col-lg-7-12,.col-lg-8-12,.col-lg-2-3,.col-lg-9-12,.col-lg-3-4,.col-lg-10-12,.col-lg-5-6,.col-lg-11-12,.col-lg-12-12,.col-lg-1-1{width:100%}@media(min-width: 768px){.col-xs,.col-xs-1-12,.col-xs-2-12,.col-xs-1-6,.col-xs-3-12,.col-xs-1-4,.col-xs-4-12,.col-xs-1-3,.col-xs-5-12,.col-xs-6-12,.col-xs-1-2,.col-xs-7-12,.col-xs-8-12,.col-xs-2-3,.col-xs-9-12,.col-xs-3-4,.col-xs-10-12,.col-xs-5-6,.col-xs-11-12,.col-xs-12-12,.col-xs-1-1,.col-sm,.col-sm-1-12,.col-sm-2-12,.col-sm-1-6,.col-sm-3-12,.col-sm-1-4,.col-sm-4-12,.col-sm-1-3,.col-sm-5-12,.col-sm-6-12,.col-sm-1-2,.col-sm-7-12,.col-sm-8-12,.col-sm-2-3,.col-sm-9-12,.col-sm-3-4,.col-sm-10-12,.col-sm-5-6,.col-sm-11-12,.col-sm-12-12,.col-sm-1-1,.col-md,.col-md-1-12,.col-md-2-12,.col-md-1-6,.col-md-3-12,.col-md-1-4,.col-md-4-12,.col-md-1-3,.col-md-5-12,.col-md-6-12,.col-md-1-2,.col-md-7-12,.col-md-8-12,.col-md-2-3,.col-md-9-12,.col-md-3-4,.col-md-10-12,.col-md-5-6,.col-md-11-12,.col-md-12-12,.col-md-1-1,.col-lg,.col-lg-1-12,.col-lg-2-12,.col-lg-1-6,.col-lg-3-12,.col-lg-1-4,.col-lg-4-12,.col-lg-1-3,.col-lg-5-12,.col-lg-6-12,.col-lg-1-2,.col-lg-7-12,.col-lg-8-12,.col-lg-2-3,.col-lg-9-12,.col-lg-3-4,.col-lg-10-12,.col-lg-5-6,.col-lg-11-12,.col-lg-12-12,.col-lg-1-1{padding:0 .5rem}}.col-xs{width:auto;max-width:100%;flex:1 0 auto}.col-xs-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-xs-2-12,.col-xs-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-xs-3-12,.col-xs-1-4{max-width:25%;flex:0 0 25%}.col-xs-4-12,.col-xs-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-xs-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-xs-6-12,.col-xs-1-2{max-width:50%;flex:0 0 50%}.col-xs-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-xs-8-12,.col-xs-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-xs-9-12,.col-xs-3-4{max-width:75%;flex:0 0 75%}.col-xs-10-12,.col-xs-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-xs-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-xs-12-12,.col-xs-1-1{max-width:100%;flex:0 0 100%}@media(min-width: 768px){.col-sm{width:auto;max-width:100%;flex:1 0 auto}.col-sm-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-sm-2-12,.col-sm-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-sm-3-12,.col-sm-1-4{max-width:25%;flex:0 0 25%}.col-sm-4-12,.col-sm-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-sm-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-sm-6-12,.col-sm-1-2{max-width:50%;flex:0 0 50%}.col-sm-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-sm-8-12,.col-sm-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-sm-9-12,.col-sm-3-4{max-width:75%;flex:0 0 75%}.col-sm-10-12,.col-sm-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-sm-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-sm-12-12,.col-sm-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1024px){.col-md{width:auto;max-width:100%;flex:1 0 auto}.col-md-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-md-2-12,.col-md-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-md-3-12,.col-md-1-4{max-width:25%;flex:0 0 25%}.col-md-4-12,.col-md-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-md-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-md-6-12,.col-md-1-2{max-width:50%;flex:0 0 50%}.col-md-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-md-8-12,.col-md-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-md-9-12,.col-md-3-4{max-width:75%;flex:0 0 75%}.col-md-10-12,.col-md-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-md-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-md-12-12,.col-md-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1280px){.col-lg{width:auto;max-width:100%;flex:1 0 auto}.col-lg-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-lg-2-12,.col-lg-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-lg-3-12,.col-lg-1-4{max-width:25%;flex:0 0 25%}.col-lg-4-12,.col-lg-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-lg-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-lg-6-12,.col-lg-1-2{max-width:50%;flex:0 0 50%}.col-lg-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-lg-8-12,.col-lg-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-lg-9-12,.col-lg-3-4{max-width:75%;flex:0 0 75%}.col-lg-10-12,.col-lg-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-lg-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-lg-12-12,.col-lg-1-1{max-width:100%;flex:0 0 100%}}.dropdown{position:relative;display:inline-block;margin-bottom:.5rem}.dropdown-button{margin-bottom:0}.dropdown-button.caret::after{display:inline-block;height:0;margin-left:.25rem;content:" ";vertical-align:.125rem;border-top:.25rem solid;border-right:.25rem solid rgba(0,0,0,0);border-left:.25rem solid rgba(0,0,0,0)}.dropdown-menu,.dropdown-list{position:absolute;z-index:8;top:100%;left:0;display:none;min-width:8rem;padding:.25rem 0;border:1px solid #4b4f53;border-radius:4px;margin-top:3px;background-color:#181a1b;box-shadow:0 .0625rem .25rem rgba(6,27,45,.1),.125rem .25rem .375rem rgba(6,27,45,.1),.125rem .5rem .75rem rgba(6,27,45,.1);float:left}.dropdown-list{width:100%;max-height:14.84375rem;overflow-y:auto}.dropdown-item{display:block;width:100%;padding:.5rem 1rem;color:#f2f2f3;cursor:pointer !important;font-size:.875rem;white-space:nowrap}.dropdown-item:hover{background-color:#292b2e;color:#f2f2f3}.dropdown-item.disabled{color:#979ca1;cursor:default !important}.dropdown-item.disabled:hover{background-color:rgba(0,0,0,0);color:#979ca1}.dropdown-item.selected{background-color:#1d86e1;color:#fff}.dropdown-item .icon{display:inline-block;margin-right:.25rem}.dropdown-empty{display:block;width:100%;padding:.5rem 1rem;color:#979ca1;cursor:default !important;font-size:.875rem;white-space:nowrap}.dropdown-separator{height:0;border-top:1px solid #4b4f53;margin:.25rem 0}.files-list{padding:0;margin:0;margin-bottom:1rem;list-style-type:none;user-select:none}.is-thumbnails .files-items{margin:0 -0.25rem}.files-item{display:flex;align-items:center;padding:.5rem;border-bottom:1px solid #333638;font-size:.875rem}.files-item:hover{background-color:#1f2123}.files-item:first-child{border-top:1px solid #333638}.files-item .dropdown{margin-bottom:0}.file-name{flex-grow:1}.file-icon{margin-right:.5rem}.file-size{color:#979ca1}.is-thumbnails .files-item{position:relative;display:inline-block;width:10rem;height:10rem;box-sizing:border-box;padding:.5rem;border:1px solid #4b4f53;border-radius:4px;margin:.25rem}.file-thumbnail{position:relative;top:0;left:0;display:none;width:100%;height:100%;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:contain}.is-thumbnails .file-thumbnail{display:block}.is-thumbnails .file-name{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:4px;background-color:rgba(51,54,56,.9);font-size:.75rem;text-align:center;user-select:none}.is-thumbnails .dropdown{position:absolute;top:.5rem;right:.5rem}.is-thumbnails .dropdown-button{margin-top:.25rem;margin-right:.25rem;background-color:rgba(51,54,56,.9)}.is-thumbnails .dropdown-button:hover,.is-thumbnails .dropdown-button:focus{background-color:#4b4f53;color:inherit}.is-thumbnails .file-icon{position:absolute;top:50%;left:50%;color:#4b4f53;font-size:4rem;line-height:0;transform:translate(-50%, -50%)}.is-thumbnails .file-thumbnail+.file-icon{display:none}.form-input,.form-textarea,.form-select{width:100%;padding:.25rem .5rem;border:1px solid #4b4f53;border-radius:4px;margin:0;margin-bottom:.75rem;background-color:#181a1b;color:#f2f2f3;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:.875rem;line-height:1.5;appearance:none}.form-input:focus,.form-textarea:focus,.form-select:focus{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.form-input[disabled],[disabled].form-textarea,[disabled].form-select{background-color:#292b2e;color:#979ca1}.form-input[readonly],[readonly].form-textarea,[readonly].form-select{user-select:none}.form-input[type=checkbox],[type=checkbox].form-textarea,[type=checkbox].form-select,.form-input[type=radio],[type=radio].form-textarea,[type=radio].form-select{width:auto;height:inherit;padding:0;margin-bottom:0;vertical-align:text-top}.form-input[type=file],[type=file].form-textarea,[type=file].form-select{padding:0;border:none;border-radius:0}.form-input[type=file]::-webkit-file-upload-button,[type=file].form-textarea::-webkit-file-upload-button,[type=file].form-select::-webkit-file-upload-button{appearance:button;font:inherit}.form-input[type=number]::-webkit-inner-spin-button,[type=number].form-textarea::-webkit-inner-spin-button,[type=number].form-select::-webkit-inner-spin-button,.form-input[type=number]::-webkit-outer-spin-button,[type=number].form-textarea::-webkit-outer-spin-button,[type=number].form-select::-webkit-outer-spin-button{height:auto}.form-input[type=search],[type=search].form-textarea,[type=search].form-select{padding-left:2rem;background:#181a1b url('data:image/svg+xml;utf8,') no-repeat left .5rem top .375rem;background-size:1rem 1rem}.form-input[type=search]::-webkit-search-cancel-button,[type=search].form-textarea::-webkit-search-cancel-button,[type=search].form-select::-webkit-search-cancel-button{display:none}.form-select{padding:.25rem 1.5rem .25rem .5rem;background:#181a1b url("data:image/svg+xml;utf8,") no-repeat right .75rem center;background-color:#181a1b;background-size:8px 6px}.form-select:-moz-focusring{color:rgba(0,0,0,0);text-shadow:0 0 0 #f2f2f3}.form-textarea{overflow:auto;min-height:4.4375rem;max-height:39.875rem;resize:vertical}.form-input-large{font-size:1.125rem}.form-input-accent{border-color:#1d86e1}.form-input-success{border-color:#2ecc70}.form-input-warning{border-color:#f39c11}.form-input-danger{border-color:#e74c3b}.form-input-invalid{animation:shake 500ms;animation-fill-mode:both}.form-input-wrap{position:relative;margin-bottom:.75rem}.form-input-wrap .form-input,.form-input-wrap .form-select,.form-input-wrap .form-textarea{padding-right:1.625rem;margin-bottom:0}.form-input-reset{position:absolute;top:50%;right:.5rem;color:#f2f2f3;transform:translateY(-50%);transition:color 150ms}.form-input-reset:hover{color:#1d86e1}.form-label{display:inline-block;margin-bottom:.25rem;font-size:.875rem;user-select:none;appearance:none}.form-label-suggestion{color:#979ca1;font-size:.75rem;line-height:1}.form-label-required::after{display:inline-block;margin-left:.125rem;color:#e74c3b;content:"*"}.form-input-array{margin-bottom:.5rem;user-select:none}.form-input-array .sortable-handle .icon{vertical-align:middle}.form-input-array-row{display:flex;padding:.25rem .5rem;margin:0 -0.5rem;white-space:nowrap}.form-input-array-key,.form-input-array-value{display:inline-block;margin-bottom:0}.form-input-array-key{width:30%;margin-right:.25rem}.form-input-array-value{margin-right:.25rem}.form-input-array-add,.form-input-array-remove{min-width:1rem;padding:0;margin-right:.25rem}.form-checkbox{position:absolute;opacity:0}.form-checkbox+.form-checkbox-text::before{position:relative;top:.125rem;display:inline-block;width:1rem;height:1rem;box-sizing:border-box;border:1px solid #4b4f53;border-radius:4px;margin-right:.5rem;content:" ";transition:border-color 150ms,background-color 150ms}.form-checkbox+.form-checkbox-text:hover::before,.form-checkbox[disabled]+.form-checkbox-text::before{background-color:#1f2123}.form-checkbox:checked+.form-checkbox-text::before{border-color:#1d86e1;background-color:#1d86e1}.form-checkbox:focus+.form-checkbox-text::before{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.form-checkbox:checked+.form-checkbox-text:hover::before{border-color:#176bb4;background-color:#176bb4}.form-checkbox:checked+.form-checkbox-text::after{position:absolute;top:.125rem;left:0;display:block;width:1rem;height:1rem;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath fill='%23fff' d='M4.727 7.036L8.263 3.5l.707.707L4.727 8.45 2 5.722l.707-.707z'/%3E%3C/svg%3E");content:" "}.form-checkbox:checked[disabled]+.form-checkbox-text::before{border-color:#4b4f53;background-color:#4b4f53}.form-checkbox-label{position:relative;margin-bottom:.75rem;line-height:1.5}.form-input-date{cursor:default}.calendar{position:absolute;z-index:8;top:100%;display:none;width:18rem;padding:.5rem;border:1px solid #4b4f53;border-radius:4px;margin:3px 1rem 1rem;background-color:#181a1b;box-shadow:0 .0625rem .25rem rgba(6,27,45,.1),.125rem .25rem .375rem rgba(6,27,45,.1),.125rem .5rem .75rem rgba(6,27,45,.1);color:#f2f2f3}.calendar-header{margin-bottom:.5rem}.calendar-buttons{margin:0 -0.5rem;font-size:0}.calendar-buttons button{width:33.3%}.calendar button{padding:0 .5rem;border:0;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#f2f2f3;cursor:pointer;font-size:.875rem;outline:none}.calendar button:hover{color:#1d86e1}.calendar button:focus{outline:none}.calendar-buttons .currentMonth{font-weight:600}.calendar-table{width:100%}.calendar-table td{width:14%;cursor:default;text-align:center;user-select:none}.calendar-time{width:50%;margin:0 auto;text-align:center}.calendar-header-day{font-size:.875rem}.calendar-day{border-radius:4px;transition:background-color 150ms,color 150ms}.calendar-day:hover{background-color:#176bb4;color:#fff}.calendar-day.selected{background-color:#1d86e1;color:#fff}.calendar-prev-month-day,.calendar-next-month-day{color:#4b4f53}.calendar-separator{height:0;border-top:1px solid #4b4f53;margin:.5rem -0.5rem}.form-input-duration{box-sizing:border-box;padding:.25rem .25rem;border:1px solid #4b4f53;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;user-select:none}.form-input-duration.focused{border-color:#1d86e1}.form-input-duration>span{text-align:center}.form-input-duration .form-input,.form-input-duration .form-select,.form-input-duration .form-textarea{width:2rem;padding:0;border:0;margin:0;appearance:textfield;background-color:#292b2e;text-align:center;vertical-align:baseline}.form-input-duration .form-input::-webkit-inner-spin-button,.form-input-duration .form-select::-webkit-inner-spin-button,.form-input-duration .form-textarea::-webkit-inner-spin-button,.form-input-duration .form-input::-webkit-outer-spin-button,.form-input-duration .form-select::-webkit-outer-spin-button,.form-input-duration .form-textarea::-webkit-outer-spin-button{margin:0;appearance:none}.form-input-duration .form-input:focus,.form-input-duration .form-select:focus,.form-input-duration .form-textarea:focus{outline:none}.form-input-duration .form-label{padding:0 .5rem;margin:0}.form-input-duration-hidden{display:none}.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:blue}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, 0.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.editor-toolbar{padding:.125rem .25rem;border:1px solid #4b4f53;background-color:#1f2123;border-top-left-radius:4px;border-top-right-radius:4px}.toolbar-button{padding:.5rem}.toolbar-button:hover,.toolbar-button:focus{background-color:#333638;color:#1d86e1}.toolbar-button:focus{outline:2px solid rgba(2,136,252,.375)}.toolbar-button .icon{margin-right:0}.editor-textarea{min-height:6rem;max-height:46.5rem;padding:.75rem 1rem;border:1px solid #4b4f53;border-radius:4px;margin-bottom:.5rem;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:1rem}.editor-textarea:focus{outline:none}.CodeMirror{min-height:6rem;max-height:46.5rem;padding:0 1rem;border:1px solid #4b4f53;border-radius:4px;margin-bottom:.5rem;background:#181a1b;color:#f2f2f3;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:1rem;resize:vertical}.CodeMirror-wrap .CodeMirror-line-like.CodeMirror-placeholder{color:#979ca1}.CodeMirror-lines{padding:.75rem 0}.CodeMirror-lines pre{padding:0 !important}.editor-toolbar+.editor-textarea,.editor-textarea+.CodeMirror{border-top-width:0;border-top-left-radius:0;border-top-right-radius:0}.editor-wrap{border-radius:4px;margin-bottom:.75rem}.editor-wrap.focused .editor-toolbar,.editor-wrap.focused .CodeMirror{border-color:#1d86e1}.CodeMirror-cursor{border-left-color:#f2f2f3}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler{background-color:inherit}.CodeMirror-selected{background:rgba(0,0,0,0)}.CodeMirror-focused .CodeMirror-selected{background:rgba(29,134,225,.25)}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:rgba(29,134,225,.25)}.cm-formatting-code-block,.cm-formatting-list{display:inline !important}.cm-formatting,.cm-image-alt-text,.cm-url{display:none}.CodeMirror-activeline .cm-formatting,.CodeMirror-activeline .cm-image-alt-text,.CodeMirror-activeline .cm-url{display:inline}.cm-s-formwork .cm-formatting{color:#979ca1}.cm-s-formwork .cm-header-1{font-size:1.75rem}.cm-s-formwork .cm-header-2{font-size:1.5rem}.cm-s-formwork .cm-header-3{font-size:1.25rem}.cm-s-formwork .cm-comment{font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875rem}.cm-s-formwork .cm-comment.cm-header-1{font-size:1.53125rem}.cm-s-formwork .cm-comment.cm-header-2{font-size:1.3125rem}.cm-s-formwork .cm-comment.cm-header-3{font-size:1.09375rem}.cm-s-formwork .cm-quote{color:#979ca1}.cm-s-formwork .cm-formatting-quote+.cm-quote{padding-left:1.25rem;background:#181a1b url('data:image/svg+xml;utf8,') no-repeat left center;background-size:1rem 1rem}.cm-s-formwork .CodeMirror-activeline .cm-formatting-quote+.cm-quote{padding-left:0;background:rgba(0,0,0,0)}.cm-s-formwork .cm-link{color:#1d86e1;text-decoration:underline}.cm-s-formwork .cm-url.cm-formatting,.cm-s-formwork .cm-image-alt-text.cm-formatting,.cm-s-formwork .cm-image-marker{color:#1d86e1}.cm-s-formwork .cm-url,.cm-s-formwork .cm-image-alt-text{color:#979ca1;text-decoration:none}.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting){display:inline;padding:0 .25rem 0 1.5rem;border-radius:4px;background:#181a1b url('data:image/svg+xml;utf8,') no-repeat left .25rem center;background-color:#292b2e;background-size:1rem 1rem;color:#f2f2f3}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting){padding:0;background:rgba(0,0,0,0);color:#979ca1}.cm-s-formwork .cm-hr{color:#979ca1}.cm-s-formwork .cm-tag{color:#25a35a}.cm-s-formwork .cm-bracket{color:#f2f2f3}.cm-s-formwork .cm-attribute{color:#8c68cd}.cm-s-formwork .cm-bracket,.cm-s-formwork .cm-md-xml{font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875rem}.form-input-file{display:none}.form-input-file-label{display:block;padding:.5rem;margin-bottom:1rem;background-color:#1f2123;clear:both;font-size:.875rem}.form-input-file-label>span{display:block;padding:1.5rem 1rem;border:2px dashed #4b4f53;border-radius:4px;color:#f2f2f3;text-align:center;transition:background-color 300ms}.form-input-file-label>span:hover{background-color:#292b2e}.form-input-file-label.drag>span{background-color:#292b2e}.form-input-image{cursor:default}.image-picker-thumbnails{overflow:auto;height:15rem;padding:.5rem;margin-bottom:1rem}.image-picker-thumbnail{position:relative;display:inline-block;width:8rem;height:8rem;box-sizing:border-box;padding:.5rem;border:1px solid #4b4f53;border-radius:4px;margin:.25rem;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:contain}.image-picker-thumbnail::after{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:4px;background-color:rgba(51,54,56,.9);content:attr(data-filename);font-size:.75rem;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-picker-thumbnail.selected{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.image-picker-empty-state{margin:3rem auto 4rem;text-align:center}.image-picker-empty-state-icon{color:#7c8288;font-size:2rem}.form-input[type=range],[type=range].form-select,[type=range].form-textarea{--progress: 0;position:relative;z-index:1;padding:.875rem 0;border:0;margin-bottom:0;background-color:rgba(0,0,0,0);appearance:none}.form-input[type=range]::-webkit-slider-runnable-track,[type=range].form-select::-webkit-slider-runnable-track,[type=range].form-textarea::-webkit-slider-runnable-track{width:100%;height:.375rem;border:0;border-radius:.1875rem;background:linear-gradient(90deg, #1d86e1 var(--progress), #4b4f53 var(--progress));background-color:#4b4f53;cursor:default}.form-input[type=range]::-webkit-slider-thumb,[type=range].form-select::-webkit-slider-thumb,[type=range].form-textarea::-webkit-slider-thumb{width:1.125rem;height:1.125rem;border:0;border-radius:50%;margin-top:-0.375rem;background-color:#1d86e1;cursor:default;transition:background-color 150ms;appearance:none}.form-input[type=range]::-moz-range-track,[type=range].form-select::-moz-range-track,[type=range].form-textarea::-moz-range-track{width:100%;height:.375rem;border:0;border-radius:.1875rem;background:linear-gradient(90deg, #1d86e1 var(--progress), #4b4f53 var(--progress));background-color:#4b4f53}.form-input[type=range]::-moz-range-thumb,[type=range].form-select::-moz-range-thumb,[type=range].form-textarea::-moz-range-thumb{width:1.125rem;height:1.125rem;border:0;border-radius:50%;background-color:#1d86e1;cursor:default;transition:background-color 150ms;appearance:none}.form-input[type=range]:focus,[type=range].form-select:focus,[type=range].form-textarea:focus{outline:none}.form-input[type=range]:hover::-webkit-slider-thumb,[type=range].form-select:hover::-webkit-slider-thumb,[type=range].form-textarea:hover::-webkit-slider-thumb,.form-input[type=range]:hover::-moz-range-thumb,[type=range].form-select:hover::-moz-range-thumb,[type=range].form-textarea:hover::-moz-range-thumb{background-color:#176bb4}.form-input[type=range][disabled],[type=range][disabled].form-select,[type=range][disabled].form-textarea{background-color:rgba(0,0,0,0)}.form-input[type=range][disabled]::-webkit-slider-thumb,[type=range][disabled].form-select::-webkit-slider-thumb,[type=range][disabled].form-textarea::-webkit-slider-thumb,.form-input[type=range][disabled]::-moz-range-thumb,[type=range][disabled].form-select::-moz-range-thumb,[type=range][disabled].form-textarea::-moz-range-thumb{background-color:#979ca1}.form-input[type=range]:focus::-webkit-slider-thumb,[type=range].form-select:focus::-webkit-slider-thumb,[type=range].form-textarea:focus::-webkit-slider-thumb{background-color:#176bb4;outline:2px solid rgba(2,136,252,.375)}.form-input[type=range]:focus::-moz-range-thumb,[type=range].form-select:focus::-moz-range-thumb,[type=range].form-textarea:focus::-moz-range-thumb{background-color:#176bb4;outline:2px solid rgba(2,136,252,.375)}.form-input-range-value{min-width:3rem;padding:.25rem .5rem;font-size:.875rem;user-select:none}.form-input-range{position:relative;width:100%;margin-bottom:.5rem}.form-input-range-ticks{position:absolute;right:0;bottom:.625rem;left:0;display:flex;justify-content:space-between;padding:0 .5625rem}.form-input-range-ticks .tick{width:1px;height:.375rem;background-color:#4b4f53}.form-input-tag{position:relative;display:block;box-sizing:border-box;padding:.25rem .25rem;padding-bottom:0;border:1px solid #4b4f53;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;user-select:none}.form-input-tag.focused{border-color:#1d86e1}.tag-inner-input{display:inline-block;width:auto;max-width:100%;box-sizing:border-box;padding:0 .25rem;border:0;border-radius:0;margin-bottom:.25rem;font-family:inherit;font-size:.875rem;line-height:inherit}.tag-inner-input:focus{outline:none}.form-input-tag-hidden{display:none}.form-input-tag .tag{display:inline-block;box-sizing:border-box;padding:0 .375rem;border-radius:4px;margin-bottom:.25rem;background-color:#292b2e;cursor:default;font-size:.875rem;user-select:none}.form-input-tag.disabled,.form-input-tag.disabled .tag-inner-input{background-color:#1f2123}.form-input-tag.disabled .tag{background-color:#333638}.tag-remove{display:inline-block;padding:0 .125rem;margin-left:.25rem;color:#f2f2f3;font-style:normal;transition:color 150ms}.tag-remove:hover{color:#1d86e1}.tag-remove::after{content:"×";font-weight:600}.form-togglegroup{display:inline-block;border:1px solid #4b4f53;border-radius:4px;margin:0;margin-bottom:.75rem;font-size:0}.form-togglegroup:focus-within{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.form-togglegroup .form-label{margin:0}.form-togglegroup .form-input[type=radio],.form-togglegroup [type=radio].form-select,.form-togglegroup [type=radio].form-textarea{position:absolute;opacity:0}.form-togglegroup .form-input[type=radio]+span,.form-togglegroup [type=radio].form-select+span,.form-togglegroup [type=radio].form-textarea+span{display:inline-block;padding:.25rem .75rem;border-radius:3px;font-size:.875rem;transition:background-color 150ms,color 150ms}.form-togglegroup .form-input[type=radio]:hover+span,.form-togglegroup [type=radio].form-select:hover+span,.form-togglegroup [type=radio].form-textarea:hover+span{background-color:#1f2123}.form-togglegroup .form-input[type=radio]:checked+span,.form-togglegroup [type=radio].form-select:checked+span,.form-togglegroup [type=radio].form-textarea:checked+span{background-color:#1d86e1;color:#fff}.form-togglegroup .form-input[type=radio]:focus+span,.form-togglegroup [type=radio].form-select:focus+span,.form-togglegroup [type=radio].form-textarea:focus+span{background-color:#176bb4}.form-togglegroup[disabled] .form-input[type=radio]+span,.form-togglegroup[disabled] [type=radio].form-select+span,.form-togglegroup[disabled] [type=radio].form-textarea+span{background-color:rgba(0,0,0,0);color:#f2f2f3}.form-togglegroup[disabled] .form-input[type=radio]:checked+span,.form-togglegroup[disabled] [type=radio].form-select:checked+span,.form-togglegroup[disabled] [type=radio].form-textarea:checked+span{background-color:#333638}.form-togglegroup .form-input[type=radio]:checked:hover+span,.form-togglegroup [type=radio].form-select:checked:hover+span,.form-togglegroup [type=radio].form-textarea:checked:hover+span{background-color:#176bb4}.header{position:sticky;z-index:9;top:3.5rem;display:flex;min-height:4.5rem;align-items:center;padding:.5rem 1rem;border-bottom:1px solid #333638;margin-bottom:1rem;background-color:#1f2123;white-space:nowrap}@media(min-width: 768px){.header{padding:.5rem 1.5rem;margin-right:-1rem;margin-left:-1rem}}@media(min-width: 1024px){.header{min-height:5.5rem;margin-right:-1.5rem;margin-bottom:1.75rem;margin-left:-1.5rem}}.header-title{overflow:hidden;flex-grow:1;font-size:1.2rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.icon{display:inline-block;width:1em;min-width:16px;height:1em;min-height:16px;vertical-align:-0.125rem}.logo{margin-bottom:2rem;color:#f2f2f3;font-size:1.2rem;font-weight:600;line-height:1.5rem;text-align:center}@media(min-width: 1024px){.logo{text-align:left}}.logo img{height:1.5rem;margin-right:.25rem;vertical-align:-0.25rem}.logo a{padding-top:2px;color:#f2f2f3}.modal-backdrop{position:fixed;z-index:16;background-color:rgba(6,27,45,.5);inset:0}.modal{position:fixed;z-index:20;display:none;align-items:center;inset:0;outline:0}.modal.show{display:flex}.modal-header,.modal-content,.modal-footer{padding:1rem 1.5rem}.modal-header{border-bottom:1px solid #333638}.modal-footer{border-top:1px solid #333638}.modal-container{width:26rem;max-width:26rem;border:1px solid #4b4f53;border-radius:4px;margin:3rem .5rem;background-color:#181a1b;box-shadow:.125rem .125rem .5rem rgba(6,27,45,.15),.125rem .25rem .5rem rgba(6,27,45,.15),.5rem .5rem 1rem rgba(6,27,45,.15)}@media(width >= 26rem){.modal-container{margin:3rem auto}}.modal-size-large{width:40rem;max-width:40rem}@media(width <= 40rem){.modal-size-large{margin:3rem .5rem}}.notification-container{position:fixed;z-index:14;top:20px;right:20px}.notification{position:relative;overflow:hidden;width:350px;padding:1.5rem 2.5rem;border-radius:4px;margin-bottom:.5rem;animation:fade-in-right 300ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#292b2e;box-shadow:0 .0625rem .25rem rgba(6,27,45,.1),.125rem .25rem .375rem rgba(6,27,45,.1),.125rem .5rem .75rem rgba(6,27,45,.1);cursor:default;text-overflow:ellipsis;transition:top 300ms ease-in,opacity 150ms}.notification:hover{opacity:.95}.notification.fadeout{animation:fade-out-right 300ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}.notification .icon{position:absolute;top:50%;left:1rem;display:block;width:16px;height:16px;color:#fff;transform:translate(0, -50%)}.notification-info,.notification-success,.notification-warning,.notification-danger{padding-left:3.25rem}.notification-info{background-color:#1d86e1;color:#fff}.notification-success{background-color:#25a35a;color:#fff}.notification-warning{background-color:#f39c11;color:#fff}.notification-danger{background-color:#e74c3b;color:#fff}.pages-tree{padding:0;margin:0;list-style-type:none;user-select:none}.pages-tree .pages-tree{display:none}.pages-tree-root{border-top:1px solid #333638}.pages-tree-headers{display:flex;align-items:center;padding:.25rem 0;font-weight:600;user-select:none}.pages-tree-row{display:flex;align-items:center;padding:.5rem 0;border-bottom:1px solid #333638}.pages-tree-row:hover{background-color:#1f2123}.pages-tree-item{position:relative}.pages-tree-item::before{position:absolute;z-index:1;top:-2.125rem;width:1.625rem;height:3.625rem;border-bottom:2px solid #333638;border-left:2px solid #333638}.pages-tree-item::after{position:absolute;z-index:1;top:-2.125rem;width:1.625rem;height:100%;border-left:2px solid #333638}.is-filtered .pages-tree-item::before,.is-filtered .pages-tree-item::after{display:none}.pages-tree-item:last-child::after,.is-dragging>.pages-tree-item:nth-last-child(2)::after{display:none}.pages-tree-item.has-children::before,.pages-tree-item.has-children::after,.is-reordering .pages-tree-item.is-orderable::before,.is-reordering .pages-tree-item.is-orderable::after{width:.875rem}.is-reordering .pages-tree-item:not(.is-orderable,.has-children)::before,.is-reordering .pages-tree-item:not(.is-orderable,.has-children)::after{width:2.375rem}.pages-tree-level-2::before,.pages-tree-level-2::after{left:.625rem;content:""}.pages-tree-level-2 .page-details{padding-left:1.75rem}.pages-tree-level-3::before,.pages-tree-level-3::after{left:2.25rem;content:""}.pages-tree-level-3 .page-details{padding-left:3.5rem}.pages-tree-level-4::before,.pages-tree-level-4::after{left:4rem;content:""}.pages-tree-level-4 .page-details{padding-left:5.25rem}.pages-tree-level-5::before,.pages-tree-level-5::after{left:5.75rem;content:""}.pages-tree-level-5 .page-details{padding-left:7rem}.pages-tree-level-6::before,.pages-tree-level-6::after{left:7.5rem;content:""}.pages-tree-level-6 .page-details{padding-left:8.75rem}.pages-tree-level-7::before,.pages-tree-level-7::after{left:9.25rem;content:""}.pages-tree-level-7 .page-details{padding-left:10.5rem}.pages-tree-level-8::before,.pages-tree-level-8::after{left:11rem;content:""}.pages-tree-level-8 .page-details{padding-left:12.25rem}.pages-tree-level-9::before,.pages-tree-level-9::after{left:12.75rem;content:""}.pages-tree-level-9 .page-details{padding-left:14rem}.pages-tree-level-10::before,.pages-tree-level-10::after{left:14.5rem;content:""}.pages-tree-level-10 .page-details{padding-left:15.75rem}.pages-tree-item-cell,.pages-tree-headers-cell{padding:.25rem;font-size:.875rem}.page-details{min-width:0}.pages-tree-icon{min-width:1rem}.pages-tree-children-toggle{padding:0;border:0;color:#979ca1;cursor:pointer}.pages-tree-children-toggle .icon{margin-right:0;transition:transform 150ms,color 150ms}.pages-tree-row .sortable-handle{display:none}.pages-tree.is-filtered .sortable-handle{display:none}.pages-tree.is-filtered .pages-tree-children-toggle{display:none}.pages-tree.is-reordering .sortable-handle{display:block}.pages-tree-children{display:none}.sortable-chosen .pages-tree-item-cell{background-color:rgba(0,0,0,0);opacity:.5}.sortable-chosen .pages-tree-children,.sortable-fallback .pages-tree-children{display:none !important}.sortable-chosen .pages-tree-children-toggle .icon,.sortable-fallback .pages-tree-children-toggle .icon{transform:none !important}.sortable-fallback .pages-tree-item-cell{opacity:1}.pages-tree-item.is-expanded>.pages-tree-children{display:block}.pages-tree-item.is-expanded>.pages-tree-row .pages-tree-children-toggle .icon{transform:rotate(-180deg)}.is-dragging{cursor:grab !important}.is-dragging>.is-not-orderable *{cursor:no-drop !important}.is-dragging>.is-not-orderable .pages-tree-row:hover{background-color:#fadbd8}.panel-header{position:fixed;z-index:10;top:0;right:0;left:0;display:flex;align-items:center;padding:.75rem;padding-left:4rem;background-color:#333638;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05);color:#f2f2f3;font-weight:500;user-select:none}@media(min-width: 1024px){.panel-header{left:16rem;padding-left:1.5rem}}.panel-user-card{display:flex;align-items:center;margin-bottom:2rem;cursor:pointer}.panel-user-avatar{width:48px}.panel-user-avatar img{width:48px;border-radius:50%;transition:box-shadow 300ms ease-out}.panel-user-card:hover .panel-user-avatar img{box-shadow:0 0 0 .5rem #333638}.panel-user-details{padding:0 .75rem}.panel-user-fullname{color:#f2f2f3}.panel-user-username{color:#979ca1;font-size:.875rem}.panel-main{padding-top:4rem}@media(min-width: 1024px){.panel-main{padding:1.875rem;padding-top:4rem;padding-left:17.875rem}}.section{padding:1.5rem 1.25rem;margin-bottom:1rem;background-color:#181a1b;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05)}@media(min-width: 768px){.section{padding:1.5rem 1.75rem;border-radius:4px}}.section-header{margin-bottom:1rem;font-size:1rem;font-weight:600;user-select:none}.section.collapsed .section-header{margin-bottom:0}.section-toggle{padding:0;color:#979ca1;cursor:pointer}.section-toggle .icon{margin-right:0;transition:transform 150ms,color 150ms}.section.collapsed .section-toggle .icon{transform:rotate(180deg)}.section.collapsed .section-content{display:none}.sidebar{position:fixed;z-index:12;top:0;bottom:0;left:0;width:16rem;padding:1rem 1.5rem;background:linear-gradient(to bottom, #181a1b 0%, #1f2123 100%);background-color:#181a1b;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05);user-select:none}.sidebar.show{display:block}.sidebar-wrapper{height:calc(100% - 9rem);overflow-y:auto}.sidebar-backdrop{position:fixed;z-index:11;background-color:rgba(6,27,45,.5);inset:0}.sidebar-toggle{position:fixed;z-index:13;top:.75rem;left:.75rem;cursor:pointer}.sidebar-navigation{padding:0;margin:0;margin-bottom:1rem;list-style-type:none}.sidebar-navigation:last-child{margin-bottom:0}.sidebar-navigation>li{position:relative;padding:.25rem 0;padding-left:1rem;margin:0;margin-bottom:.5rem}.sidebar-navigation>li a{color:#f2f2f3}.sidebar-navigation>.active{font-weight:600}.sidebar-navigation>.active::before{position:absolute;top:0;bottom:0;left:0;width:3px;background-color:#1d86e1;content:" "}.sortable-handle .icon{display:inline-block;margin-bottom:0;color:#979ca1;cursor:grab}.sortable-chosen,.sortable-ghost{background-color:#181a1b;cursor:grabbing}.sortable-chosen *{cursor:grabbing}.sortable-fallback{box-shadow:0 0 .75rem .25rem rgba(6,27,45,.15)}.sortable-fallback::before,.sortable-fallback::after{display:none}.spinner{position:relative;display:inline-block;width:1.5rem;height:1.5rem;border-width:.2rem;border-style:solid;border-color:#1d86e1;border-radius:50%;border-bottom-color:rgba(0,0,0,0);border-left-color:rgba(0,0,0,0);margin-right:.75rem;animation:750ms spin infinite linear;text-align:center;transition:border 500ms;transition-timing-function:ease-out;vertical-align:-0.375rem}.spinner .icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.spinner-info{border-color:#1d86e1;animation:none;color:#1d86e1}.spinner-success{border-color:#2ecc70;animation:none;color:#2ecc70}.spinner-danger{border-color:#e74c3b;animation:none;color:#e74c3b}.table{width:100%;border-collapse:collapse;table-layout:fixed}.table-header{padding:.5rem;font-weight:600;text-align:left}.table-cell{padding:.5rem}.table-bordered .table-cell{border-top:1px solid #333638;border-bottom:1px solid #333638}.table-striped tbody>tr:nth-child(2n+1){background-color:#1f2123}.table-hoverable tbody>tr:hover{background-color:#1f2123}.table-striped.table-hoverable tbody>tr:hover{background-color:#292b2e}.tabs{padding:2px 2px 0;border-bottom:1px solid #333638;margin-bottom:1rem;overflow-x:auto;white-space:nowrap;user-select:none}.tabs-tab{display:inline-block;padding:.5rem 1.25rem;color:#f2f2f3;cursor:pointer}.tabs-tab:hover{color:#f2f2f3}.tabs-tab.active{border-bottom:3px solid #1d86e1;font-weight:600}.caption+.tabs{margin-top:-0.5rem}.header+.tabs{margin-top:-0.5rem}@media(min-width: 1024px){.header+.tabs{margin-top:-1.5rem}}.tooltip{position:absolute;z-index:20;display:none;min-width:2rem;padding:.25rem .5rem;border-radius:4px;background-color:rgba(242,242,243,.8);color:#181a1b;font-size:.75rem;pointer-events:none;text-align:center}.tooltip .icon{transform:scale(0.75);vertical-align:-0.25rem}.error-container{max-width:32rem;padding:1rem;margin:4rem auto;text-align:center}.error-container h1{color:#7c8288;user-select:none}.error-container h2{margin-bottom:1rem;font-size:2rem}.error-code{display:block;font-size:8rem;font-weight:400}.error-status{display:block;font-size:1.75rem}.error-container .action{font-size:1.125rem}.error-container .logo{width:3.5rem;height:3.5rem;margin:2rem auto;background-position:center;background-repeat:no-repeat;background-size:cover}.login-modal-container{max-width:24rem;padding:2rem;border-radius:4px;margin:3rem .5rem;background-color:#181a1b;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05)}@media(width >= 24rem){.login-modal-container{margin:3rem auto}}.login-modal-info,.login-modal-success,.login-modal-warning,.login-modal-danger{position:relative;padding:1rem 2rem 1rem 3.5rem;margin:-2rem -2rem 1rem;border-top-left-radius:4px;border-top-right-radius:4px}.login-modal-info a,.login-modal-success a,.login-modal-warning a,.login-modal-danger a{display:block;color:#fff;text-decoration:underline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.login-modal-info .icon,.login-modal-success .icon,.login-modal-warning .icon,.login-modal-danger .icon{position:absolute;top:50%;left:1rem;display:block;transform:translate(0, -50%)}.login-modal-info{background-color:#1d86e1;color:#fff}.login-modal-success{background-color:#25a35a;color:#fff}.login-modal-warning{background-color:#f39c11;color:#fff}.login-modal-danger{background-color:#e74c3b;color:#fff}.options-form .form-checkbox-label{margin-bottom:.5rem;font-size:1rem}.info-data{width:100%;margin-bottom:1rem;table-layout:fixed}.info-data td{overflow:hidden;padding:.5rem;vertical-align:top}.info-data-key{width:25%}.info-data-value{width:75%;font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875rem;word-break:break-word}.page-details{flex:1}.page-title{padding:2px;margin:-2px;font-size:1rem}.page-route{color:#979ca1;font-size:.875rem}.page-route-changeable{padding:2px;margin:-2px}.button .page-language{font-size:.75rem}.page-date{max-width:20%;flex:0 0 20%;text-align:center}.page-status{flex:0 0 20%;text-align:center}.page-status .icon{display:inline-block;margin-right:.375rem}.page-status-published .icon{color:#2ecc70}.page-status-not-published .icon{color:#e74c3b}.page-status-not-routable .icon{color:#f39c11}.page-actions{flex:0 0 15%;text-align:center;white-space:nowrap}.page-actions .button-link{font-size:1rem}.page-info{padding:0 .25rem;margin-bottom:.75rem}.page-slug-change{padding:0;border-color:rgba(0,0,0,0);margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#979ca1;cursor:pointer}.page-slug-change:hover,.page-slug-change:focus{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:#979ca1}.page-slug-change:focus{outline:2px solid rgba(2,136,252,.375)}.page-slug-change .icon{display:inline-block;margin-right:0;color:#f2f2f3;opacity:0;transition:opacity 150ms}.page-slug-change:hover .icon,.page-slug-change:focus .icon{opacity:1}.is-dragging .page-title{pointer-events:none}.pages-tree.is-filtered .pages-tree-item .page-details{padding-left:0}.user-summary{display:flex;align-items:center}.user-summary-avatar{max-width:33.3333%;flex:0 0 33.3333%;padding:.75rem;text-align:center}.user-summary-avatar img{width:180px;border-radius:50%}.user-summary-data{padding:.75rem}.users-list{border-top:1px solid #333638;user-select:none}.users-list-headers{display:flex;align-items:center;padding:.25rem 0;font-size:.875rem;font-weight:600;user-select:none}.users-item{display:flex;align-items:center;padding:.5rem 0;border-bottom:1px solid #333638}.users-item:hover{background-color:#1f2123}.users-item-cell,.users-headers-cell{padding:.25rem .5rem}.user-username{flex:1}.user-avatar{display:inline-block;width:2rem;height:2rem;border-radius:50%;vertical-align:middle}.user-fullname,.user-email{max-width:25%;flex:0 0 25%;font-size:.875rem}.user-last-access{max-width:20%;flex:0 0 20%;font-size:.875rem;text-align:center}.user-actions{flex:0 0 10%;text-align:center}.m-0{margin:0}.m-1{margin:0.125rem}.m-2{margin:0.25rem}.m-3{margin:0.375rem}.m-4{margin:0.5rem}.m-5{margin:0.625rem}.m-6{margin:0.75rem}.m-7{margin:0.875rem}.m-8{margin:1rem}.m-9{margin:1.5rem}.m-10{margin:2rem}.mt-0{margin-top:0}.mt-1{margin-top:0.125rem}.mt-2{margin-top:0.25rem}.mt-3{margin-top:0.375rem}.mt-4{margin-top:0.5rem}.mt-5{margin-top:0.625rem}.mt-6{margin-top:0.75rem}.mt-7{margin-top:0.875rem}.mt-8{margin-top:1rem}.mt-9{margin-top:1.5rem}.mt-10{margin-top:2rem}.ml-0{margin-left:0}.ml-1{margin-left:0.125rem}.ml-2{margin-left:0.25rem}.ml-3{margin-left:0.375rem}.ml-4{margin-left:0.5rem}.ml-5{margin-left:0.625rem}.ml-6{margin-left:0.75rem}.ml-7{margin-left:0.875rem}.ml-8{margin-left:1rem}.ml-9{margin-left:1.5rem}.ml-10{margin-left:2rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:0.125rem}.mb-2{margin-bottom:0.25rem}.mb-3{margin-bottom:0.375rem}.mb-4{margin-bottom:0.5rem}.mb-5{margin-bottom:0.625rem}.mb-6{margin-bottom:0.75rem}.mb-7{margin-bottom:0.875rem}.mb-8{margin-bottom:1rem}.mb-9{margin-bottom:1.5rem}.mb-10{margin-bottom:2rem}.mr-0{margin-right:0}.mr-1{margin-right:0.125rem}.mr-2{margin-right:0.25rem}.mr-3{margin-right:0.375rem}.mr-4{margin-right:0.5rem}.mr-5{margin-right:0.625rem}.mr-6{margin-right:0.75rem}.mr-7{margin-right:0.875rem}.mr-8{margin-right:1rem}.mr-9{margin-right:1.5rem}.mr-10{margin-right:2rem}.p-0{padding:0}.p-1{padding:0.125rem}.p-2{padding:0.25rem}.p-3{padding:0.375rem}.p-4{padding:0.5rem}.p-5{padding:0.625rem}.p-6{padding:0.75rem}.p-7{padding:0.875rem}.p-8{padding:1rem}.p-9{padding:1.5rem}.p-10{padding:2rem}.pt-0{padding-top:0}.pt-1{padding-top:0.125rem}.pt-2{padding-top:0.25rem}.pt-3{padding-top:0.375rem}.pt-4{padding-top:0.5rem}.pt-5{padding-top:0.625rem}.pt-6{padding-top:0.75rem}.pt-7{padding-top:0.875rem}.pt-8{padding-top:1rem}.pt-9{padding-top:1.5rem}.pt-10{padding-top:2rem}.pl-0{padding-left:0}.pl-1{padding-left:0.125rem}.pl-2{padding-left:0.25rem}.pl-3{padding-left:0.375rem}.pl-4{padding-left:0.5rem}.pl-5{padding-left:0.625rem}.pl-6{padding-left:0.75rem}.pl-7{padding-left:0.875rem}.pl-8{padding-left:1rem}.pl-9{padding-left:1.5rem}.pl-10{padding-left:2rem}.pb-0{padding-bottom:0}.pb-1{padding-bottom:0.125rem}.pb-2{padding-bottom:0.25rem}.pb-3{padding-bottom:0.375rem}.pb-4{padding-bottom:0.5rem}.pb-5{padding-bottom:0.625rem}.pb-6{padding-bottom:0.75rem}.pb-7{padding-bottom:0.875rem}.pb-8{padding-bottom:1rem}.pb-9{padding-bottom:1.5rem}.pb-10{padding-bottom:2rem}.pr-0{padding-right:0}.pr-1{padding-right:0.125rem}.pr-2{padding-right:0.25rem}.pr-3{padding-right:0.375rem}.pr-4{padding-right:0.5rem}.pr-5{padding-right:0.625rem}.pr-6{padding-right:0.75rem}.pr-7{padding-right:0.875rem}.pr-8{padding-right:1rem}.pr-9{padding-right:1.5rem}.pr-10{padding-right:2rem}.min-w-0{min-width:0}.min-w-100{min-width:100%}.max-w-0{max-width:0}.max-w-100{max-width:100%}.flex{display:flex}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.flex-grow-0{flex-grow:0}.flex-grow-1{flex-grow:1}.text-size-xs{font-size:0.75rem}.text-size-sm{font-size:0.875rem}.text-size-md{font-size:1rem}.text-size-lg{font-size:1.5rem}.text-size-xl{font-size:2rem}.text-size-xxl{font-size:3rem}.text-color-blue{color:#1d86e1}.text-color-green{color:#25a35a}.text-color-yellow{color:#ffd700}.text-color-amber{color:#f39c11}.text-color-red{color:#e74c3b}.text-color-purple{color:#6f42c1}.text-color-accent{color:#1d86e1}.text-color-gray-dark{color:#c4c7ca}.text-color-gray-medium{color:#979ca1}.text-color-gray-light{color:#4b4f53}.text-color-success{color:#2ecc70}.text-color-warning{color:#f39c11}.text-color-danger{color:#e74c3b}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace{white-space:nowrap}.whitespace-wrap{white-space:normal}@media(min-width: 600px){.hide-from-xs{display:none}}@media(max-width: 599px){.show-from-xs{display:none}}@media(min-width: 768px){.hide-from-sm{display:none}}@media(max-width: 767px){.show-from-sm{display:none}}@media(min-width: 1024px){.hide-from-md{display:none}}@media(max-width: 1023px){.show-from-md{display:none}}@media(min-width: 1280px){.hide-from-lg{display:none}}@media(max-width: 1279px){.show-from-lg{display:none}} +html{font-size:100%;text-size-adjust:100%}body{margin:0;background-color:#1f2123;color:#f2f2f3;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;line-height:1.5;-webkit-tap-highlight-color:rgba(242,242,243,0)}*{box-sizing:border-box}main{display:block}a{background-color:rgba(0,0,0,0);color:#1d86e1;outline-color:rgba(2,136,252,.375);text-decoration:none;transition:color 150ms}a:hover{color:#176bb4}a:not([href]){cursor:default}img{max-width:100%;border-style:none}mark{background-color:gold}code,pre{border-radius:4px;background-color:#333638;font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875em}code{padding:.125rem .25rem;color:#176bb4}pre{padding:1rem;white-space:pre-wrap}[hidden]{display:none}.focused{outline:2px solid rgba(2,136,252,.375)}::selection{background-color:rgba(29,134,225,.25)}::placeholder{color:#979ca1}.link-secondary{color:#979ca1}.link-secondary:hover{color:#c4c7ca}h1,.h1{font-size:2.49rem}h2,.h2{font-size:2.07rem}h3,.h3{font-size:1.73rem}h4,.h4{font-size:1.44rem}h5,.h5{font-size:1.2rem}h6,.h6{font-size:1rem}h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6{margin-top:0;margin-bottom:.25rem;font-weight:500}strong{font-weight:600}p{margin-top:0;margin-bottom:.5rem;line-height:1.5}ul{padding:0;margin-top:0;margin-bottom:.5rem;margin-left:1.25rem;list-style-position:outside}.text-bold{font-weight:600}.text-italic{font-style:italic}@keyframes fade-in-right{from{opacity:0;transform:translate3d(150%, 0, 0)}to{opacity:1;transform:none}}@keyframes fade-out-right{from{opacity:1;transform:none}to{opacity:0;transform:translate3d(150%, 0, 0)}}@keyframes shake{0%,100%{transform:translate3d(0, 0, 0)}10%,50%,90%{transform:translate3d(-10px, 0, 0)}30%,70%{transform:translate3d(10px, 0, 0)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.badge{display:inline-block;min-width:1.375em;padding:.25rem .5rem;border-radius:2em;margin-left:.25rem;background-color:#333638;font-size:.75em;font-weight:600;line-height:1.125;text-align:center}.button .badge{padding:.125rem .375rem;font-size:.75rem;line-height:1}.button-accent .badge{background-color:#d2e7f9;color:#1d86e1}.button-success .badge{background-color:#d5f5e2;color:#2ecc70}.button-warning .badge{background-color:#fdebcf;color:#f39c11}.button-danger .badge{background-color:#fadbd8;color:#e74c3b}.button{display:inline-block;padding:.375rem .5rem;border:1px solid rgba(0,0,0,0);border-radius:4px;background-color:rgba(0,0,0,0);color:inherit;cursor:default;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:.875rem;font-weight:500;line-height:1.15;outline:none;text-align:center;transition:border-color 150ms,background-color 150ms,color 150ms;white-space:nowrap;user-select:none}.button:hover{color:#1d86e1}.button:focus{outline:2px solid rgba(2,136,252,.375)}.button[disabled],.button[disabled]:hover,.button.disabled,.button.disabled:hover{box-shadow:none;color:#4b4f53;pointer-events:none}.button .icon{display:inline-block;margin-right:.25rem}.button-right{margin-right:0;margin-left:.25rem;float:right}.button-accent{border:1px solid #1d86e1;background-color:#1d86e1;box-shadow:0 1px 0 rgba(242,242,243,.25);color:#fff}.button-accent:hover,.button-accent:focus,.button-accent.active{border-color:#176bb4;background-color:#176bb4;color:#fff}.button-accent:focus{outline:2px solid rgba(2,136,252,.375)}.button-secondary{border:1px solid #333638;background-color:#333638;box-shadow:0 1px 0 rgba(242,242,243,.25);color:#f2f2f3}.button-secondary:hover,.button-secondary:focus,.button-secondary.active{border-color:#4b4f53;background-color:#4b4f53;color:#f2f2f3}.button-secondary:focus{outline:2px solid rgba(242,242,243,.375)}.button-success{border:1px solid #2ecc70;background-color:#2ecc70;box-shadow:0 1px 0 rgba(242,242,243,.25);color:#fff}.button-success:hover,.button-success:focus,.button-success.active{border-color:#25a35a;background-color:#25a35a;color:#fff}.button-success:focus{outline:2px solid rgba(46,204,112,.375)}.button-warning{border:1px solid #f39c11;background-color:#f39c11;box-shadow:0 1px 0 rgba(242,242,243,.25);color:#fff}.button-warning:hover,.button-warning:focus,.button-warning.active{border-color:#c27d0e;background-color:#c27d0e;color:#fff}.button-warning:focus{outline:2px solid rgba(243,156,17,.375)}.button-danger{border:1px solid #e74c3b;background-color:#e74c3b;box-shadow:0 1px 0 rgba(242,242,243,.25);color:#fff}.button-danger:hover,.button-danger:focus,.button-danger.active{border-color:#b93d2f;background-color:#b93d2f;color:#fff}.button-danger:focus{outline:2px solid rgba(231,76,59,.375)}.button-link .icon{margin-right:0}.caption{font-size:.875rem;font-weight:600;letter-spacing:1px;text-transform:uppercase}.ct-label{color:rgba(0, 0, 0, 40%);fill:rgba(0, 0, 0, 40%);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:rgba(0, 0, 0, 20%);stroke-dasharray:2px;stroke-width:1px}.ct-grid-background{fill:none}.ct-point{stroke-linecap:round;stroke-width:10px}.ct-line{fill:none;stroke-width:4px}.ct-area{fill-opacity:.1;stroke:none}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#e6805e}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#e6805e}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-chart{position:relative;display:block;width:100%;height:14rem;user-select:none}.ct-label{color:rgba(242,242,243,.4);fill:rgba(242,242,243,.4);white-space:pre-wrap}.ct-grid{stroke:rgba(242,242,243,.2)}.ct-series-a .ct-line,.ct-series-a .ct-point{stroke:#1d86e1}.ct-series-a .ct-area{fill:#1d86e1}.ct-series-b .ct-line,.ct-series-b .ct-point{stroke:#f39c11}.ct-series-b .ct-area{fill:#f39c11}.ct-label.ct-horizontal,.ct-label.ct-horizontal.ct-end{display:inline-block;width:auto !important;min-width:3rem;color:#f2f2f3;text-align:center;transform:translateX(-50%)}.ct-legend{font-size:.875rem;user-select:none}.ct-legend-right{text-align:right}.ct-legend-label{white-space:nowrap}.ct-legend-label .icon{display:inline-block;margin:0 .25rem}.ct-legend-label.ct-series-a .icon{color:#1d86e1}.ct-legend-label.ct-series-b .icon{color:#f39c11}.container{max-width:1280px;padding:0;margin:0 auto}.row{display:flex;flex-wrap:wrap;margin:0}@media(min-width: 768px){.container{padding:0 1rem}.container .row{margin-right:-0.5rem;margin-left:-0.5rem}}.col-xs,.col-xs-1-12,.col-xs-2-12,.col-xs-1-6,.col-xs-3-12,.col-xs-1-4,.col-xs-4-12,.col-xs-1-3,.col-xs-5-12,.col-xs-6-12,.col-xs-1-2,.col-xs-7-12,.col-xs-8-12,.col-xs-2-3,.col-xs-9-12,.col-xs-3-4,.col-xs-10-12,.col-xs-5-6,.col-xs-11-12,.col-xs-12-12,.col-xs-1-1,.col-sm,.col-sm-1-12,.col-sm-2-12,.col-sm-1-6,.col-sm-3-12,.col-sm-1-4,.col-sm-4-12,.col-sm-1-3,.col-sm-5-12,.col-sm-6-12,.col-sm-1-2,.col-sm-7-12,.col-sm-8-12,.col-sm-2-3,.col-sm-9-12,.col-sm-3-4,.col-sm-10-12,.col-sm-5-6,.col-sm-11-12,.col-sm-12-12,.col-sm-1-1,.col-md,.col-md-1-12,.col-md-2-12,.col-md-1-6,.col-md-3-12,.col-md-1-4,.col-md-4-12,.col-md-1-3,.col-md-5-12,.col-md-6-12,.col-md-1-2,.col-md-7-12,.col-md-8-12,.col-md-2-3,.col-md-9-12,.col-md-3-4,.col-md-10-12,.col-md-5-6,.col-md-11-12,.col-md-12-12,.col-md-1-1,.col-lg,.col-lg-1-12,.col-lg-2-12,.col-lg-1-6,.col-lg-3-12,.col-lg-1-4,.col-lg-4-12,.col-lg-1-3,.col-lg-5-12,.col-lg-6-12,.col-lg-1-2,.col-lg-7-12,.col-lg-8-12,.col-lg-2-3,.col-lg-9-12,.col-lg-3-4,.col-lg-10-12,.col-lg-5-6,.col-lg-11-12,.col-lg-12-12,.col-lg-1-1{width:100%}@media(min-width: 768px){.col-xs,.col-xs-1-12,.col-xs-2-12,.col-xs-1-6,.col-xs-3-12,.col-xs-1-4,.col-xs-4-12,.col-xs-1-3,.col-xs-5-12,.col-xs-6-12,.col-xs-1-2,.col-xs-7-12,.col-xs-8-12,.col-xs-2-3,.col-xs-9-12,.col-xs-3-4,.col-xs-10-12,.col-xs-5-6,.col-xs-11-12,.col-xs-12-12,.col-xs-1-1,.col-sm,.col-sm-1-12,.col-sm-2-12,.col-sm-1-6,.col-sm-3-12,.col-sm-1-4,.col-sm-4-12,.col-sm-1-3,.col-sm-5-12,.col-sm-6-12,.col-sm-1-2,.col-sm-7-12,.col-sm-8-12,.col-sm-2-3,.col-sm-9-12,.col-sm-3-4,.col-sm-10-12,.col-sm-5-6,.col-sm-11-12,.col-sm-12-12,.col-sm-1-1,.col-md,.col-md-1-12,.col-md-2-12,.col-md-1-6,.col-md-3-12,.col-md-1-4,.col-md-4-12,.col-md-1-3,.col-md-5-12,.col-md-6-12,.col-md-1-2,.col-md-7-12,.col-md-8-12,.col-md-2-3,.col-md-9-12,.col-md-3-4,.col-md-10-12,.col-md-5-6,.col-md-11-12,.col-md-12-12,.col-md-1-1,.col-lg,.col-lg-1-12,.col-lg-2-12,.col-lg-1-6,.col-lg-3-12,.col-lg-1-4,.col-lg-4-12,.col-lg-1-3,.col-lg-5-12,.col-lg-6-12,.col-lg-1-2,.col-lg-7-12,.col-lg-8-12,.col-lg-2-3,.col-lg-9-12,.col-lg-3-4,.col-lg-10-12,.col-lg-5-6,.col-lg-11-12,.col-lg-12-12,.col-lg-1-1{padding:0 .5rem}}.col-xs{width:auto;max-width:100%;flex:1 0 auto}.col-xs-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-xs-2-12,.col-xs-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-xs-3-12,.col-xs-1-4{max-width:25%;flex:0 0 25%}.col-xs-4-12,.col-xs-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-xs-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-xs-6-12,.col-xs-1-2{max-width:50%;flex:0 0 50%}.col-xs-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-xs-8-12,.col-xs-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-xs-9-12,.col-xs-3-4{max-width:75%;flex:0 0 75%}.col-xs-10-12,.col-xs-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-xs-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-xs-12-12,.col-xs-1-1{max-width:100%;flex:0 0 100%}@media(min-width: 768px){.col-sm{width:auto;max-width:100%;flex:1 0 auto}.col-sm-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-sm-2-12,.col-sm-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-sm-3-12,.col-sm-1-4{max-width:25%;flex:0 0 25%}.col-sm-4-12,.col-sm-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-sm-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-sm-6-12,.col-sm-1-2{max-width:50%;flex:0 0 50%}.col-sm-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-sm-8-12,.col-sm-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-sm-9-12,.col-sm-3-4{max-width:75%;flex:0 0 75%}.col-sm-10-12,.col-sm-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-sm-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-sm-12-12,.col-sm-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1024px){.col-md{width:auto;max-width:100%;flex:1 0 auto}.col-md-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-md-2-12,.col-md-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-md-3-12,.col-md-1-4{max-width:25%;flex:0 0 25%}.col-md-4-12,.col-md-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-md-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-md-6-12,.col-md-1-2{max-width:50%;flex:0 0 50%}.col-md-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-md-8-12,.col-md-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-md-9-12,.col-md-3-4{max-width:75%;flex:0 0 75%}.col-md-10-12,.col-md-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-md-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-md-12-12,.col-md-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1280px){.col-lg{width:auto;max-width:100%;flex:1 0 auto}.col-lg-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-lg-2-12,.col-lg-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-lg-3-12,.col-lg-1-4{max-width:25%;flex:0 0 25%}.col-lg-4-12,.col-lg-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-lg-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-lg-6-12,.col-lg-1-2{max-width:50%;flex:0 0 50%}.col-lg-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-lg-8-12,.col-lg-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-lg-9-12,.col-lg-3-4{max-width:75%;flex:0 0 75%}.col-lg-10-12,.col-lg-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-lg-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-lg-12-12,.col-lg-1-1{max-width:100%;flex:0 0 100%}}.dropdown{position:relative;display:inline-block;margin-bottom:.5rem}.dropdown-button{margin-bottom:0}.dropdown-button.caret::after{display:inline-block;height:0;margin-left:.25rem;content:" ";vertical-align:.125rem;border-top:.25rem solid;border-right:.25rem solid rgba(0,0,0,0);border-left:.25rem solid rgba(0,0,0,0)}.dropdown-menu,.dropdown-list{position:absolute;z-index:8;top:100%;left:0;display:none;min-width:8rem;padding:.25rem 0;border:1px solid #4b4f53;border-radius:4px;margin-top:3px;background-color:#181a1b;box-shadow:0 .0625rem .25rem rgba(6,27,45,.1),.125rem .25rem .375rem rgba(6,27,45,.1),.125rem .5rem .75rem rgba(6,27,45,.1);float:left}.dropdown-list{width:100%;max-height:14.84375rem;overflow-y:auto}.dropdown-item{display:block;width:100%;padding:.5rem 1rem;color:#f2f2f3;cursor:pointer !important;font-size:.875rem;white-space:nowrap}.dropdown-item:hover{background-color:#292b2e;color:#f2f2f3}.dropdown-item.disabled{color:#979ca1;cursor:default !important}.dropdown-item.disabled:hover{background-color:rgba(0,0,0,0);color:#979ca1}.dropdown-item.selected{background-color:#1d86e1;color:#fff}.dropdown-item .icon{display:inline-block;margin-right:.25rem}.dropdown-empty{display:block;width:100%;padding:.5rem 1rem;color:#979ca1;cursor:default !important;font-size:.875rem;white-space:nowrap}.dropdown-separator{height:0;border-top:1px solid #4b4f53;margin:.25rem 0}.files-list{padding:0;margin:0;margin-bottom:1rem;list-style-type:none;user-select:none}.is-thumbnails .files-items{margin:0 -0.25rem}.files-item{display:flex;align-items:center;padding:.5rem;border-bottom:1px solid #333638;font-size:.875rem}.files-item:hover{background-color:#1f2123}.files-item:first-child{border-top:1px solid #333638}.files-item .dropdown{margin-bottom:0}.file-name{flex-grow:1}.file-icon{margin-right:.5rem}.file-size{color:#979ca1}.is-thumbnails .files-item{position:relative;display:inline-block;width:10rem;height:10rem;box-sizing:border-box;padding:.5rem;border:1px solid #4b4f53;border-radius:4px;margin:.25rem}.file-thumbnail{position:relative;top:0;left:0;display:none;width:100%;height:100%;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:contain}.is-thumbnails .file-thumbnail{display:block}.is-thumbnails .file-name{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:4px;background-color:rgba(51,54,56,.9);font-size:.75rem;text-align:center;user-select:none}.is-thumbnails .dropdown{position:absolute;top:.5rem;right:.5rem}.is-thumbnails .dropdown-button{margin-top:.25rem;margin-right:.25rem;background-color:rgba(51,54,56,.9)}.is-thumbnails .dropdown-button:hover,.is-thumbnails .dropdown-button:focus{background-color:#4b4f53;color:inherit}.is-thumbnails .file-icon{position:absolute;top:50%;left:50%;color:#4b4f53;font-size:4rem;line-height:0;transform:translate(-50%, -50%)}.is-thumbnails .file-thumbnail+.file-icon{display:none}.form-input,.form-textarea,.form-select{width:100%;padding:.25rem .5rem;border:1px solid #4b4f53;border-radius:4px;margin:0;margin-bottom:.75rem;background-color:#181a1b;color:#f2f2f3;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:.875rem;line-height:1.5;appearance:none}.form-input:focus,.form-textarea:focus,.form-select:focus{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.form-input[disabled],[disabled].form-textarea,[disabled].form-select{background-color:#292b2e;color:#979ca1}.form-input[readonly],[readonly].form-textarea,[readonly].form-select{user-select:none}.form-input[type=checkbox],[type=checkbox].form-textarea,[type=checkbox].form-select,.form-input[type=radio],[type=radio].form-textarea,[type=radio].form-select{width:auto;height:inherit;padding:0;margin-bottom:0;vertical-align:text-top}.form-input[type=file],[type=file].form-textarea,[type=file].form-select{padding:0;border:none;border-radius:0}.form-input[type=file]::-webkit-file-upload-button,[type=file].form-textarea::-webkit-file-upload-button,[type=file].form-select::-webkit-file-upload-button{appearance:button;font:inherit}.form-input[type=number]::-webkit-inner-spin-button,[type=number].form-textarea::-webkit-inner-spin-button,[type=number].form-select::-webkit-inner-spin-button,.form-input[type=number]::-webkit-outer-spin-button,[type=number].form-textarea::-webkit-outer-spin-button,[type=number].form-select::-webkit-outer-spin-button{height:auto}.form-input[type=search],[type=search].form-textarea,[type=search].form-select{padding-left:2rem;background:#181a1b url('data:image/svg+xml;utf8,') no-repeat left .5rem top .375rem;background-size:1rem 1rem}.form-input[type=search]::-webkit-search-cancel-button,[type=search].form-textarea::-webkit-search-cancel-button,[type=search].form-select::-webkit-search-cancel-button{display:none}.form-select{padding:.25rem 1.5rem .25rem .5rem;background:#181a1b url("data:image/svg+xml;utf8,") no-repeat right .75rem center;background-color:#181a1b;background-size:8px 6px}.form-select:-moz-focusring{color:rgba(0,0,0,0);text-shadow:0 0 0 #f2f2f3}.form-textarea{overflow:auto;min-height:4.4375rem;max-height:39.875rem;resize:vertical}.form-input-large{font-size:1.125rem}.form-input-accent{border-color:#1d86e1}.form-input-success{border-color:#2ecc70}.form-input-warning{border-color:#f39c11}.form-input-danger{border-color:#e74c3b}.form-input-invalid{animation:shake 500ms;animation-fill-mode:both}.form-input-wrap{position:relative;margin-bottom:.75rem}.form-input-wrap .form-input,.form-input-wrap .form-select,.form-input-wrap .form-textarea{padding-right:1.625rem;margin-bottom:0}.form-input-reset{position:absolute;top:50%;right:.5rem;color:#f2f2f3;transform:translateY(-50%);transition:color 150ms}.form-input-reset:hover{color:#1d86e1}.form-label{display:inline-block;margin-bottom:.25rem;font-size:.875rem;user-select:none;appearance:none}.form-label-suggestion{color:#979ca1;font-size:.75rem;line-height:1}.form-label-required::after{display:inline-block;margin-left:.125rem;color:#e74c3b;content:"*"}.form-input-array{margin-bottom:.5rem;user-select:none}.form-input-array .sortable-handle .icon{vertical-align:middle}.form-input-array-row{display:flex;padding:.25rem .5rem;margin:0 -0.5rem;white-space:nowrap}.form-input-array-key,.form-input-array-value{display:inline-block;margin-bottom:0}.form-input-array-key{width:30%;margin-right:.25rem}.form-input-array-value{margin-right:.25rem}.form-input-array-add,.form-input-array-remove{min-width:1rem;padding:0;margin-right:.25rem}.form-checkbox{position:absolute;opacity:0}.form-checkbox+.form-checkbox-text::before{position:relative;top:.125rem;display:inline-block;width:1rem;height:1rem;box-sizing:border-box;border:1px solid #4b4f53;border-radius:4px;margin-right:.5rem;content:" ";transition:border-color 150ms,background-color 150ms}.form-checkbox+.form-checkbox-text:hover::before,.form-checkbox[disabled]+.form-checkbox-text::before{background-color:#1f2123}.form-checkbox:checked+.form-checkbox-text::before{border-color:#1d86e1;background-color:#1d86e1}.form-checkbox:focus+.form-checkbox-text::before{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.form-checkbox:checked+.form-checkbox-text:hover::before{border-color:#176bb4;background-color:#176bb4}.form-checkbox:checked+.form-checkbox-text::after{position:absolute;top:.125rem;left:0;display:block;width:1rem;height:1rem;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath fill='%23fff' d='M4.727 7.036L8.263 3.5l.707.707L4.727 8.45 2 5.722l.707-.707z'/%3E%3C/svg%3E");content:" "}.form-checkbox:checked[disabled]+.form-checkbox-text::before{border-color:#4b4f53;background-color:#4b4f53}.form-checkbox-label{position:relative;margin-bottom:.75rem;line-height:1.5}.form-input-date{cursor:default}.calendar{position:absolute;z-index:8;top:100%;display:none;width:18rem;padding:.5rem;border:1px solid #4b4f53;border-radius:4px;margin:3px 1rem 1rem;background-color:#181a1b;box-shadow:0 .0625rem .25rem rgba(6,27,45,.1),.125rem .25rem .375rem rgba(6,27,45,.1),.125rem .5rem .75rem rgba(6,27,45,.1);color:#f2f2f3}.calendar-header{margin-bottom:.5rem}.calendar-buttons{margin:0 -0.5rem;font-size:0}.calendar-buttons button{width:33.3%}.calendar button{padding:0 .5rem;border:0;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#f2f2f3;cursor:pointer;font-size:.875rem;outline:none}.calendar button:hover{color:#1d86e1}.calendar button:focus{outline:none}.calendar-buttons .currentMonth{font-weight:600}.calendar-table{width:100%}.calendar-table td{width:14%;cursor:default;text-align:center;user-select:none}.calendar-time{width:50%;margin:0 auto;text-align:center}.calendar-header-day{font-size:.875rem}.calendar-day{border-radius:4px;transition:background-color 150ms,color 150ms}.calendar-day:hover{background-color:#176bb4;color:#fff}.calendar-day.selected{background-color:#1d86e1;color:#fff}.calendar-prev-month-day,.calendar-next-month-day{color:#4b4f53}.calendar-separator{height:0;border-top:1px solid #4b4f53;margin:.5rem -0.5rem}.form-input-duration{box-sizing:border-box;padding:.25rem .25rem;border:1px solid #4b4f53;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;user-select:none}.form-input-duration.focused{border-color:#1d86e1}.form-input-duration>span{text-align:center}.form-input-duration .form-input,.form-input-duration .form-select,.form-input-duration .form-textarea{width:2rem;padding:0;border:0;margin:0;appearance:textfield;background-color:#292b2e;text-align:center;vertical-align:baseline}.form-input-duration .form-input::-webkit-inner-spin-button,.form-input-duration .form-select::-webkit-inner-spin-button,.form-input-duration .form-textarea::-webkit-inner-spin-button,.form-input-duration .form-input::-webkit-outer-spin-button,.form-input-duration .form-select::-webkit-outer-spin-button,.form-input-duration .form-textarea::-webkit-outer-spin-button{margin:0;appearance:none}.form-input-duration .form-input:focus,.form-input-duration .form-select:focus,.form-input-duration .form-textarea:focus{outline:none}.form-input-duration .form-label{padding:0 .5rem;margin:0}.form-input-duration-hidden{display:none}.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:blue}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, 0.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.editor-toolbar{padding:.125rem .25rem;border:1px solid #4b4f53;background-color:#1f2123;border-top-left-radius:4px;border-top-right-radius:4px}.toolbar-button{padding:.5rem}.toolbar-button:hover,.toolbar-button:focus{background-color:#333638;color:#1d86e1}.toolbar-button:focus{outline:2px solid rgba(2,136,252,.375)}.toolbar-button .icon{margin-right:0}.editor-textarea{min-height:6rem;max-height:46.5rem;padding:.75rem 1rem;border:1px solid #4b4f53;border-radius:4px;margin-bottom:.5rem;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:1rem}.editor-textarea:focus{outline:none}.CodeMirror{min-height:6rem;max-height:46.5rem;padding:0 1rem;border:1px solid #4b4f53;border-radius:4px;margin-bottom:.5rem;background:#181a1b;color:#f2f2f3;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:1rem;resize:vertical}.CodeMirror-wrap .CodeMirror-line-like.CodeMirror-placeholder{color:#979ca1}.CodeMirror-lines{padding:.75rem 0}.CodeMirror-lines pre{padding:0 !important}.editor-toolbar+.editor-textarea,.editor-textarea+.CodeMirror{border-top-width:0;border-top-left-radius:0;border-top-right-radius:0}.editor-wrap{border-radius:4px;margin-bottom:.75rem}.editor-wrap.focused .editor-toolbar,.editor-wrap.focused .CodeMirror{border-color:#1d86e1}.CodeMirror-cursor{border-left-color:#f2f2f3}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler{background-color:inherit}.CodeMirror-selected{background:rgba(0,0,0,0)}.CodeMirror-focused .CodeMirror-selected{background:rgba(29,134,225,.25)}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:rgba(29,134,225,.25)}.cm-formatting-code-block,.cm-formatting-list{display:inline !important}.cm-formatting,.cm-image-alt-text,.cm-url{display:none}.CodeMirror-activeline .cm-formatting,.CodeMirror-activeline .cm-image-alt-text,.CodeMirror-activeline .cm-url{display:inline}.cm-s-formwork .cm-formatting{color:#979ca1}.cm-s-formwork .cm-header-1{font-size:1.75rem}.cm-s-formwork .cm-header-2{font-size:1.5rem}.cm-s-formwork .cm-header-3{font-size:1.25rem}.cm-s-formwork .cm-comment{font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875rem}.cm-s-formwork .cm-comment.cm-header-1{font-size:1.53125rem}.cm-s-formwork .cm-comment.cm-header-2{font-size:1.3125rem}.cm-s-formwork .cm-comment.cm-header-3{font-size:1.09375rem}.cm-s-formwork .cm-quote{color:#979ca1}.cm-s-formwork .cm-formatting-quote+.cm-quote{padding-left:1.25rem;background:#181a1b url('data:image/svg+xml;utf8,') no-repeat left center;background-size:1rem 1rem}.cm-s-formwork .CodeMirror-activeline .cm-formatting-quote+.cm-quote{padding-left:0;background:rgba(0,0,0,0)}.cm-s-formwork .cm-link{color:#1d86e1;text-decoration:underline}.cm-s-formwork .cm-url.cm-formatting,.cm-s-formwork .cm-image-alt-text.cm-formatting,.cm-s-formwork .cm-image-marker{color:#1d86e1}.cm-s-formwork .cm-url,.cm-s-formwork .cm-image-alt-text{color:#979ca1;text-decoration:none}.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting){display:inline;padding:0 .25rem 0 1.5rem;border-radius:4px;background:#181a1b url('data:image/svg+xml;utf8,') no-repeat left .25rem center;background-color:#292b2e;background-size:1rem 1rem;color:#f2f2f3}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting){padding:0;background:rgba(0,0,0,0);color:#979ca1}.cm-s-formwork .cm-hr{color:#979ca1}.cm-s-formwork .cm-tag{color:#25a35a}.cm-s-formwork .cm-bracket{color:#f2f2f3}.cm-s-formwork .cm-attribute{color:#8c68cd}.cm-s-formwork .cm-bracket,.cm-s-formwork .cm-md-xml{font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875rem}.form-input-file{display:none}.form-input-file-label{display:block;padding:.5rem;margin-bottom:1rem;background-color:#1f2123;clear:both;font-size:.875rem}.form-input-file-label>span{display:block;padding:1.5rem 1rem;border:2px dashed #4b4f53;border-radius:4px;color:#f2f2f3;text-align:center;transition:background-color 300ms}.form-input-file-label>span:hover{background-color:#292b2e}.form-input-file-label.drag>span{background-color:#292b2e}.form-input-image{cursor:default}.image-picker-thumbnails{overflow:auto;height:15rem;padding:.5rem;margin-bottom:1rem}.image-picker-thumbnail{position:relative;display:inline-block;width:8rem;height:8rem;box-sizing:border-box;padding:.5rem;border:1px solid #4b4f53;border-radius:4px;margin:.25rem;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:contain}.image-picker-thumbnail::after{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:4px;background-color:rgba(51,54,56,.9);content:attr(data-filename);font-size:.75rem;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-picker-thumbnail.selected{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.image-picker-empty-state{margin:3rem auto 4rem;text-align:center}.image-picker-empty-state-icon{color:#7c8288;font-size:2rem}.form-input[type=range],[type=range].form-select,[type=range].form-textarea{--progress: 0;position:relative;z-index:1;padding:.875rem 0;border:0;margin-bottom:0;background-color:rgba(0,0,0,0);appearance:none}.form-input[type=range]::-webkit-slider-runnable-track,[type=range].form-select::-webkit-slider-runnable-track,[type=range].form-textarea::-webkit-slider-runnable-track{width:100%;height:.375rem;border:0;border-radius:.1875rem;background:linear-gradient(90deg, #1d86e1 var(--progress), #4b4f53 var(--progress));background-color:#4b4f53;cursor:default}.form-input[type=range]::-webkit-slider-thumb,[type=range].form-select::-webkit-slider-thumb,[type=range].form-textarea::-webkit-slider-thumb{width:1.125rem;height:1.125rem;border:0;border-radius:50%;margin-top:-0.375rem;background-color:#1d86e1;cursor:default;transition:background-color 150ms;appearance:none}.form-input[type=range]::-moz-range-track,[type=range].form-select::-moz-range-track,[type=range].form-textarea::-moz-range-track{width:100%;height:.375rem;border:0;border-radius:.1875rem;background:linear-gradient(90deg, #1d86e1 var(--progress), #4b4f53 var(--progress));background-color:#4b4f53}.form-input[type=range]::-moz-range-thumb,[type=range].form-select::-moz-range-thumb,[type=range].form-textarea::-moz-range-thumb{width:1.125rem;height:1.125rem;border:0;border-radius:50%;background-color:#1d86e1;cursor:default;transition:background-color 150ms;appearance:none}.form-input[type=range]:focus,[type=range].form-select:focus,[type=range].form-textarea:focus{outline:none}.form-input[type=range]:hover::-webkit-slider-thumb,[type=range].form-select:hover::-webkit-slider-thumb,[type=range].form-textarea:hover::-webkit-slider-thumb,.form-input[type=range]:hover::-moz-range-thumb,[type=range].form-select:hover::-moz-range-thumb,[type=range].form-textarea:hover::-moz-range-thumb{background-color:#176bb4}.form-input[type=range][disabled],[type=range][disabled].form-select,[type=range][disabled].form-textarea{background-color:rgba(0,0,0,0)}.form-input[type=range][disabled]::-webkit-slider-thumb,[type=range][disabled].form-select::-webkit-slider-thumb,[type=range][disabled].form-textarea::-webkit-slider-thumb,.form-input[type=range][disabled]::-moz-range-thumb,[type=range][disabled].form-select::-moz-range-thumb,[type=range][disabled].form-textarea::-moz-range-thumb{background-color:#979ca1}.form-input[type=range]:focus::-webkit-slider-thumb,[type=range].form-select:focus::-webkit-slider-thumb,[type=range].form-textarea:focus::-webkit-slider-thumb{background-color:#176bb4;outline:2px solid rgba(2,136,252,.375)}.form-input[type=range]:focus::-moz-range-thumb,[type=range].form-select:focus::-moz-range-thumb,[type=range].form-textarea:focus::-moz-range-thumb{background-color:#176bb4;outline:2px solid rgba(2,136,252,.375)}.form-input-range-value{min-width:3rem;padding:.25rem .5rem;font-size:.875rem;user-select:none}.form-input-range{position:relative;width:100%;margin-bottom:.5rem}.form-input-range-ticks{position:absolute;right:0;bottom:.625rem;left:0;display:flex;justify-content:space-between;padding:0 .5625rem}.form-input-range-ticks .tick{width:1px;height:.375rem;background-color:#4b4f53}.form-input-tag{position:relative;display:block;box-sizing:border-box;padding:.25rem .25rem;padding-bottom:0;border:1px solid #4b4f53;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;user-select:none}.form-input-tag.focused{border-color:#1d86e1}.tag-inner-input{display:inline-block;width:auto;max-width:100%;box-sizing:border-box;padding:0 .25rem;border:0;border-radius:0;margin-bottom:.25rem;font-family:inherit;font-size:.875rem;line-height:inherit}.tag-inner-input:focus{outline:none}.form-input-tag-hidden{display:none}.form-input-tag .tag{display:inline-block;box-sizing:border-box;padding:0 .375rem;border-radius:4px;margin-bottom:.25rem;background-color:#292b2e;cursor:default;font-size:.875rem;user-select:none}.form-input-tag.disabled,.form-input-tag.disabled .tag-inner-input{background-color:#1f2123}.form-input-tag.disabled .tag{background-color:#333638}.tag-remove{display:inline-block;padding:0 .125rem;margin-left:.25rem;color:#f2f2f3;font-style:normal;transition:color 150ms}.tag-remove:hover{color:#1d86e1}.tag-remove::after{content:"×";font-weight:600}.form-togglegroup{display:inline-block;border:1px solid #4b4f53;border-radius:4px;margin:0;margin-bottom:.75rem;font-size:0}.form-togglegroup:focus-within{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.form-togglegroup .form-label{margin:0}.form-togglegroup .form-input[type=radio],.form-togglegroup [type=radio].form-select,.form-togglegroup [type=radio].form-textarea{position:absolute;opacity:0}.form-togglegroup .form-input[type=radio]+span,.form-togglegroup [type=radio].form-select+span,.form-togglegroup [type=radio].form-textarea+span{display:inline-block;padding:.25rem .75rem;border-radius:3px;font-size:.875rem;transition:background-color 150ms,color 150ms}.form-togglegroup .form-input[type=radio]:hover+span,.form-togglegroup [type=radio].form-select:hover+span,.form-togglegroup [type=radio].form-textarea:hover+span{background-color:#1f2123}.form-togglegroup .form-input[type=radio]:checked+span,.form-togglegroup [type=radio].form-select:checked+span,.form-togglegroup [type=radio].form-textarea:checked+span{background-color:#1d86e1;color:#fff}.form-togglegroup .form-input[type=radio]:focus+span,.form-togglegroup [type=radio].form-select:focus+span,.form-togglegroup [type=radio].form-textarea:focus+span{background-color:#176bb4}.form-togglegroup[disabled] .form-input[type=radio]+span,.form-togglegroup[disabled] [type=radio].form-select+span,.form-togglegroup[disabled] [type=radio].form-textarea+span{background-color:rgba(0,0,0,0);color:#f2f2f3}.form-togglegroup[disabled] .form-input[type=radio]:checked+span,.form-togglegroup[disabled] [type=radio].form-select:checked+span,.form-togglegroup[disabled] [type=radio].form-textarea:checked+span{background-color:#333638}.form-togglegroup .form-input[type=radio]:checked:hover+span,.form-togglegroup [type=radio].form-select:checked:hover+span,.form-togglegroup [type=radio].form-textarea:checked:hover+span{background-color:#176bb4}.header{position:sticky;z-index:9;top:3.5rem;display:flex;min-height:4.5rem;align-items:center;padding:.5rem 1rem;border-bottom:1px solid #333638;margin-bottom:1rem;background-color:#1f2123;white-space:nowrap}@media(min-width: 768px){.header{padding:.5rem 1.5rem;margin-right:-1rem;margin-left:-1rem}}@media(min-width: 1024px){.header{min-height:5.5rem;margin-right:-1.5rem;margin-bottom:1.75rem;margin-left:-1.5rem}}.header-title{overflow:hidden;flex-grow:1;font-size:1.2rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.icon{display:inline-block;width:1em;min-width:16px;height:1em;min-height:16px;vertical-align:-0.125rem}.logo{margin-bottom:2rem;color:#f2f2f3;font-size:1.2rem;font-weight:600;line-height:1.5rem;text-align:center}@media(min-width: 1024px){.logo{text-align:left}}.logo img{height:1.5rem;margin-right:.25rem;vertical-align:-0.25rem}.logo a{padding-top:2px;color:#f2f2f3}.modal-backdrop{position:fixed;z-index:16;background-color:rgba(6,27,45,.5);inset:0}.modal{position:fixed;z-index:20;display:none;align-items:center;inset:0;outline:0}.modal.show{display:flex}.modal-header,.modal-content,.modal-footer{padding:1rem 1.5rem}.modal-header{border-bottom:1px solid #333638}.modal-footer{border-top:1px solid #333638}.modal-container{width:26rem;max-width:26rem;border:1px solid #4b4f53;border-radius:4px;margin:3rem .5rem;background-color:#181a1b;box-shadow:.125rem .125rem .5rem rgba(6,27,45,.15),.125rem .25rem .5rem rgba(6,27,45,.15),.5rem .5rem 1rem rgba(6,27,45,.15)}@media(width >= 26rem){.modal-container{margin:3rem auto}}.modal-size-large{width:40rem;max-width:40rem}@media(width <= 40rem){.modal-size-large{margin:3rem .5rem}}.notification-container{position:fixed;z-index:14;top:20px;right:20px}.notification{position:relative;overflow:hidden;width:350px;padding:1.5rem 2.5rem;border-radius:4px;margin-bottom:.5rem;animation:fade-in-right 300ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#292b2e;box-shadow:0 .0625rem .25rem rgba(6,27,45,.1),.125rem .25rem .375rem rgba(6,27,45,.1),.125rem .5rem .75rem rgba(6,27,45,.1);cursor:default;text-overflow:ellipsis;transition:top 300ms ease-in,opacity 150ms}.notification:hover{opacity:.95}.notification.fadeout{animation:fade-out-right 300ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}.notification .icon{position:absolute;top:50%;left:1rem;display:block;width:16px;height:16px;color:#fff;transform:translate(0, -50%)}.notification-info,.notification-success,.notification-warning,.notification-danger{padding-left:3.25rem}.notification-info{background-color:#1d86e1;color:#fff}.notification-success{background-color:#25a35a;color:#fff}.notification-warning{background-color:#f39c11;color:#fff}.notification-danger{background-color:#e74c3b;color:#fff}.pages-tree{padding:0;margin:0;list-style-type:none;user-select:none}.pages-tree .pages-tree{display:none}.pages-tree-root{border-top:1px solid #333638}.pages-tree-headers{display:flex;align-items:center;padding:.25rem 0;font-weight:600;user-select:none}.pages-tree-row{display:flex;align-items:center;padding:.5rem 0;border-bottom:1px solid #333638}.pages-tree-row:hover{background-color:#1f2123}.pages-tree-item{position:relative}.pages-tree-item::before{position:absolute;z-index:1;top:-2.125rem;width:1.625rem;height:3.625rem;border-bottom:2px solid #333638;border-left:2px solid #333638}.pages-tree-item::after{position:absolute;z-index:1;top:-2.125rem;width:1.625rem;height:100%;border-left:2px solid #333638}.is-filtered .pages-tree-item::before,.is-filtered .pages-tree-item::after{display:none}.pages-tree-item:last-child::after,.is-dragging>.pages-tree-item:nth-last-child(2)::after{display:none}.pages-tree-item.has-children::before,.pages-tree-item.has-children::after,.is-reordering .pages-tree-item.is-orderable::before,.is-reordering .pages-tree-item.is-orderable::after{width:.875rem}.is-reordering .pages-tree-item:not(.is-orderable,.has-children)::before,.is-reordering .pages-tree-item:not(.is-orderable,.has-children)::after{width:2.375rem}.pages-tree-level-2::before,.pages-tree-level-2::after{left:.625rem;content:""}.pages-tree-level-2 .page-details{padding-left:1.75rem}.pages-tree-level-3::before,.pages-tree-level-3::after{left:2.25rem;content:""}.pages-tree-level-3 .page-details{padding-left:3.5rem}.pages-tree-level-4::before,.pages-tree-level-4::after{left:4rem;content:""}.pages-tree-level-4 .page-details{padding-left:5.25rem}.pages-tree-level-5::before,.pages-tree-level-5::after{left:5.75rem;content:""}.pages-tree-level-5 .page-details{padding-left:7rem}.pages-tree-level-6::before,.pages-tree-level-6::after{left:7.5rem;content:""}.pages-tree-level-6 .page-details{padding-left:8.75rem}.pages-tree-level-7::before,.pages-tree-level-7::after{left:9.25rem;content:""}.pages-tree-level-7 .page-details{padding-left:10.5rem}.pages-tree-level-8::before,.pages-tree-level-8::after{left:11rem;content:""}.pages-tree-level-8 .page-details{padding-left:12.25rem}.pages-tree-level-9::before,.pages-tree-level-9::after{left:12.75rem;content:""}.pages-tree-level-9 .page-details{padding-left:14rem}.pages-tree-level-10::before,.pages-tree-level-10::after{left:14.5rem;content:""}.pages-tree-level-10 .page-details{padding-left:15.75rem}.pages-tree-item-cell,.pages-tree-headers-cell{padding:.25rem;font-size:.875rem}.page-details{min-width:0}.pages-tree-icon{min-width:1rem}.pages-tree-children-toggle{padding:0;border:0;color:#979ca1;cursor:pointer}.pages-tree-children-toggle .icon{margin-right:0;transition:transform 150ms,color 150ms}.pages-tree-row .sortable-handle{display:none}.pages-tree.is-filtered .sortable-handle{display:none}.pages-tree.is-filtered .pages-tree-children-toggle{display:none}.pages-tree.is-reordering .sortable-handle{display:block}.pages-tree-children{display:none}.sortable-chosen .pages-tree-item-cell{background-color:rgba(0,0,0,0);opacity:.5}.sortable-chosen .pages-tree-children,.sortable-fallback .pages-tree-children{display:none !important}.sortable-chosen .pages-tree-children-toggle .icon,.sortable-fallback .pages-tree-children-toggle .icon{transform:none !important}.sortable-fallback .pages-tree-item-cell{opacity:1}.pages-tree-item.is-expanded>.pages-tree-children{display:block}.pages-tree-item.is-expanded>.pages-tree-row .pages-tree-children-toggle .icon{transform:rotate(-180deg)}.is-dragging{cursor:grab !important}.is-dragging>.is-not-orderable *{cursor:no-drop !important}.is-dragging>.is-not-orderable .pages-tree-row:hover{background-color:#fadbd8}.panel-header{position:fixed;z-index:10;top:0;right:0;left:0;display:flex;align-items:center;padding:.75rem;padding-left:4rem;background-color:#333638;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05);color:#f2f2f3;font-weight:500;user-select:none}@media(min-width: 1024px){.panel-header{left:16rem;padding-left:1.5rem}}.panel-user-card{display:flex;align-items:center;margin-bottom:2rem;cursor:pointer}.panel-user-avatar{width:48px}.panel-user-avatar img{width:48px;border-radius:50%;transition:box-shadow 300ms ease-out}.panel-user-card:hover .panel-user-avatar img{box-shadow:0 0 0 .5rem #333638}.panel-user-details{padding:0 .75rem}.panel-user-fullname{color:#f2f2f3}.panel-user-username{color:#979ca1;font-size:.875rem}.panel-main{padding-top:4rem}@media(min-width: 1024px){.panel-main{padding:1.875rem;padding-top:4rem;padding-left:17.875rem}}.section{padding:1.5rem 1.25rem;margin-bottom:1rem;background-color:#181a1b;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05)}@media(min-width: 768px){.section{padding:1.5rem 1.75rem;border-radius:4px}}.section-header{margin-bottom:1rem;font-size:1rem;font-weight:600;user-select:none}.section.collapsed .section-header{margin-bottom:0}.section-toggle{padding:0;color:#979ca1;cursor:pointer}.section-toggle .icon{margin-right:0;transition:transform 150ms,color 150ms}.section.collapsed .section-toggle .icon{transform:rotate(180deg)}.section.collapsed .section-content{display:none}.sidebar{position:fixed;z-index:12;top:0;bottom:0;left:0;width:16rem;padding:1rem 1.5rem;background:linear-gradient(to bottom, #181a1b 0%, #1f2123 100%);background-color:#181a1b;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05);user-select:none}.sidebar.show{display:block}.sidebar-wrapper{height:calc(100% - 9rem);overflow-y:auto}.sidebar-backdrop{position:fixed;z-index:11;background-color:rgba(6,27,45,.5);inset:0}.sidebar-toggle{position:fixed;z-index:13;top:.75rem;left:.75rem;cursor:pointer}.sidebar-navigation{padding:0;margin:0;margin-bottom:1rem;list-style-type:none}.sidebar-navigation:last-child{margin-bottom:0}.sidebar-navigation>li{position:relative;padding:.25rem 0;padding-left:1rem;margin:0;margin-bottom:.5rem}.sidebar-navigation>li a{color:#f2f2f3}.sidebar-navigation>.active{font-weight:600}.sidebar-navigation>.active::before{position:absolute;top:0;bottom:0;left:0;width:3px;background-color:#1d86e1;content:" "}.sortable-handle .icon{display:inline-block;margin-bottom:0;color:#979ca1;cursor:grab}.sortable-chosen,.sortable-ghost{background-color:#181a1b;cursor:grabbing}.sortable-chosen *{cursor:grabbing}.sortable-fallback{box-shadow:0 0 .75rem .25rem rgba(6,27,45,.15)}.sortable-fallback::before,.sortable-fallback::after{display:none}.spinner{position:relative;display:inline-block;width:1.5rem;height:1.5rem;border-width:.2rem;border-style:solid;border-color:#1d86e1;border-radius:50%;border-bottom-color:rgba(0,0,0,0);border-left-color:rgba(0,0,0,0);margin-right:.75rem;animation:750ms spin infinite linear;text-align:center;transition:border 500ms;transition-timing-function:ease-out;vertical-align:-0.375rem}.spinner .icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.spinner-info{border-color:#1d86e1;animation:none;color:#1d86e1}.spinner-success{border-color:#2ecc70;animation:none;color:#2ecc70}.spinner-danger{border-color:#e74c3b;animation:none;color:#e74c3b}.table{width:100%;border-collapse:collapse;table-layout:fixed}.table-header{padding:.5rem;font-weight:600;text-align:left}.table-cell{padding:.5rem}.table-bordered .table-cell{border-top:1px solid #333638;border-bottom:1px solid #333638}.table-striped tbody>tr:nth-child(2n+1){background-color:#1f2123}.table-hoverable tbody>tr:hover{background-color:#1f2123}.table-striped.table-hoverable tbody>tr:hover{background-color:#292b2e}.tabs{padding:2px 2px 0;border-bottom:1px solid #333638;margin-bottom:1rem;overflow-x:auto;white-space:nowrap;user-select:none}.tabs-tab{display:inline-block;padding:.5rem 1.25rem;color:#f2f2f3;cursor:pointer}.tabs-tab:hover{color:#f2f2f3}.tabs-tab.active{border-bottom:3px solid #1d86e1;font-weight:600}.caption+.tabs{margin-top:-0.5rem}.header+.tabs{margin-top:-0.5rem}@media(min-width: 1024px){.header+.tabs{margin-top:-1.5rem}}.tooltip{position:absolute;z-index:20;display:none;min-width:2rem;padding:.25rem .5rem;border-radius:4px;background-color:rgba(242,242,243,.8);color:#181a1b;font-size:.75rem;pointer-events:none;text-align:center}.tooltip .icon{transform:scale(0.75);vertical-align:-0.25rem}.error-container{max-width:32rem;padding:1rem;margin:4rem auto;text-align:center}.error-container h1{color:#7c8288;user-select:none}.error-container h2{margin-bottom:1rem;font-size:2rem}.error-code{display:block;font-size:8rem;font-weight:400}.error-status{display:block;font-size:1.75rem}.error-container .action{font-size:1.125rem}.error-container .logo{width:3.5rem;height:3.5rem;margin:2rem auto;background-position:center;background-repeat:no-repeat;background-size:cover}.login-modal-container{max-width:24rem;padding:2rem;border-radius:4px;margin:3rem .5rem;background-color:#181a1b;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05)}@media(width >= 24rem){.login-modal-container{margin:3rem auto}}.login-modal-info,.login-modal-success,.login-modal-warning,.login-modal-danger{position:relative;padding:1rem 2rem 1rem 3.5rem;margin:-2rem -2rem 1rem;border-top-left-radius:4px;border-top-right-radius:4px}.login-modal-info a,.login-modal-success a,.login-modal-warning a,.login-modal-danger a{display:block;color:#fff;text-decoration:underline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.login-modal-info .icon,.login-modal-success .icon,.login-modal-warning .icon,.login-modal-danger .icon{position:absolute;top:50%;left:1rem;display:block;transform:translate(0, -50%)}.login-modal-info{background-color:#1d86e1;color:#fff}.login-modal-success{background-color:#25a35a;color:#fff}.login-modal-warning{background-color:#f39c11;color:#fff}.login-modal-danger{background-color:#e74c3b;color:#fff}.options-form .form-checkbox-label{margin-bottom:.5rem;font-size:1rem}.info-data{width:100%;margin-bottom:1rem;table-layout:fixed}.info-data td{overflow:hidden;padding:.5rem;vertical-align:top}.info-data-key{width:25%}.info-data-value{width:75%;font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875rem;word-break:break-word}.page-details{flex:1}.page-title{padding:2px;margin:-2px;font-size:1rem}.page-route{color:#979ca1;font-size:.875rem}.page-route-changeable{padding:2px;margin:-2px}.button .page-language{font-size:.75rem}.page-date{max-width:20%;flex:0 0 20%;text-align:center}.page-status{flex:0 0 20%;text-align:center}.page-status .icon{display:inline-block;margin-right:.375rem}.page-status-published .icon{color:#2ecc70}.page-status-not-published .icon{color:#e74c3b}.page-status-not-routable .icon{color:#f39c11}.page-actions{flex:0 0 15%;text-align:center;white-space:nowrap}.page-actions .button-link{font-size:1rem}.page-info{padding:0 .25rem;margin-bottom:.75rem}.page-slug-change{padding:0;border-color:rgba(0,0,0,0);margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#979ca1;cursor:pointer}.page-slug-change:hover,.page-slug-change:focus{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:#979ca1}.page-slug-change:focus{outline:2px solid rgba(2,136,252,.375)}.page-slug-change .icon{display:inline-block;margin-right:0;color:#f2f2f3;opacity:0;transition:opacity 150ms}.page-slug-change:hover .icon,.page-slug-change:focus .icon{opacity:1}.is-dragging .page-title{pointer-events:none}.pages-tree.is-filtered .pages-tree-item .page-details{padding-left:0}.page-file-preview-container{display:flex;justify-content:center;background-color:#333638}.page-file-preview-link{cursor:zoom-in;line-height:0}.page-file-preview-image{max-height:40.5rem;object-fit:contain;background-image:linear-gradient(45deg, rgba(0, 0, 0, 0.125) 25%, transparent 25%),linear-gradient(-45deg, rgba(0, 0, 0, 0.125) 25%, transparent 25%),linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.125) 75%),linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.125) 75%);background-position:0 0,0 .75rem,.75rem -0.75rem,-0.75rem 0;background-size:1.5rem 1.5rem}.page-file-info-entry-title{font-weight:600}.page-file-info-entry-uri{word-break:break-word}.user-summary{display:flex;align-items:center}.user-summary-avatar{max-width:33.3333%;flex:0 0 33.3333%;padding:.75rem;text-align:center}.user-summary-avatar img{width:180px;border-radius:50%}.user-summary-data{padding:.75rem}.users-list{border-top:1px solid #333638;user-select:none}.users-list-headers{display:flex;align-items:center;padding:.25rem 0;font-size:.875rem;font-weight:600;user-select:none}.users-item{display:flex;align-items:center;padding:.5rem 0;border-bottom:1px solid #333638}.users-item:hover{background-color:#1f2123}.users-item-cell,.users-headers-cell{padding:.25rem .5rem}.user-username{flex:1}.user-avatar{display:inline-block;width:2rem;height:2rem;border-radius:50%;vertical-align:middle}.user-fullname,.user-email{max-width:25%;flex:0 0 25%;font-size:.875rem}.user-last-access{max-width:20%;flex:0 0 20%;font-size:.875rem;text-align:center}.user-actions{flex:0 0 10%;text-align:center}.m-0{margin:0}.m-1{margin:0.125rem}.m-2{margin:0.25rem}.m-3{margin:0.375rem}.m-4{margin:0.5rem}.m-5{margin:0.625rem}.m-6{margin:0.75rem}.m-7{margin:0.875rem}.m-8{margin:1rem}.m-9{margin:1.5rem}.m-10{margin:2rem}.mt-0{margin-top:0}.mt-1{margin-top:0.125rem}.mt-2{margin-top:0.25rem}.mt-3{margin-top:0.375rem}.mt-4{margin-top:0.5rem}.mt-5{margin-top:0.625rem}.mt-6{margin-top:0.75rem}.mt-7{margin-top:0.875rem}.mt-8{margin-top:1rem}.mt-9{margin-top:1.5rem}.mt-10{margin-top:2rem}.ml-0{margin-left:0}.ml-1{margin-left:0.125rem}.ml-2{margin-left:0.25rem}.ml-3{margin-left:0.375rem}.ml-4{margin-left:0.5rem}.ml-5{margin-left:0.625rem}.ml-6{margin-left:0.75rem}.ml-7{margin-left:0.875rem}.ml-8{margin-left:1rem}.ml-9{margin-left:1.5rem}.ml-10{margin-left:2rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:0.125rem}.mb-2{margin-bottom:0.25rem}.mb-3{margin-bottom:0.375rem}.mb-4{margin-bottom:0.5rem}.mb-5{margin-bottom:0.625rem}.mb-6{margin-bottom:0.75rem}.mb-7{margin-bottom:0.875rem}.mb-8{margin-bottom:1rem}.mb-9{margin-bottom:1.5rem}.mb-10{margin-bottom:2rem}.mr-0{margin-right:0}.mr-1{margin-right:0.125rem}.mr-2{margin-right:0.25rem}.mr-3{margin-right:0.375rem}.mr-4{margin-right:0.5rem}.mr-5{margin-right:0.625rem}.mr-6{margin-right:0.75rem}.mr-7{margin-right:0.875rem}.mr-8{margin-right:1rem}.mr-9{margin-right:1.5rem}.mr-10{margin-right:2rem}.p-0{padding:0}.p-1{padding:0.125rem}.p-2{padding:0.25rem}.p-3{padding:0.375rem}.p-4{padding:0.5rem}.p-5{padding:0.625rem}.p-6{padding:0.75rem}.p-7{padding:0.875rem}.p-8{padding:1rem}.p-9{padding:1.5rem}.p-10{padding:2rem}.pt-0{padding-top:0}.pt-1{padding-top:0.125rem}.pt-2{padding-top:0.25rem}.pt-3{padding-top:0.375rem}.pt-4{padding-top:0.5rem}.pt-5{padding-top:0.625rem}.pt-6{padding-top:0.75rem}.pt-7{padding-top:0.875rem}.pt-8{padding-top:1rem}.pt-9{padding-top:1.5rem}.pt-10{padding-top:2rem}.pl-0{padding-left:0}.pl-1{padding-left:0.125rem}.pl-2{padding-left:0.25rem}.pl-3{padding-left:0.375rem}.pl-4{padding-left:0.5rem}.pl-5{padding-left:0.625rem}.pl-6{padding-left:0.75rem}.pl-7{padding-left:0.875rem}.pl-8{padding-left:1rem}.pl-9{padding-left:1.5rem}.pl-10{padding-left:2rem}.pb-0{padding-bottom:0}.pb-1{padding-bottom:0.125rem}.pb-2{padding-bottom:0.25rem}.pb-3{padding-bottom:0.375rem}.pb-4{padding-bottom:0.5rem}.pb-5{padding-bottom:0.625rem}.pb-6{padding-bottom:0.75rem}.pb-7{padding-bottom:0.875rem}.pb-8{padding-bottom:1rem}.pb-9{padding-bottom:1.5rem}.pb-10{padding-bottom:2rem}.pr-0{padding-right:0}.pr-1{padding-right:0.125rem}.pr-2{padding-right:0.25rem}.pr-3{padding-right:0.375rem}.pr-4{padding-right:0.5rem}.pr-5{padding-right:0.625rem}.pr-6{padding-right:0.75rem}.pr-7{padding-right:0.875rem}.pr-8{padding-right:1rem}.pr-9{padding-right:1.5rem}.pr-10{padding-right:2rem}.min-w-0{min-width:0}.min-w-100{min-width:100%}.max-w-0{max-width:0}.max-w-100{max-width:100%}.flex{display:flex}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.flex-grow-0{flex-grow:0}.flex-grow-1{flex-grow:1}.text-size-xs{font-size:0.75rem}.text-size-sm{font-size:0.875rem}.text-size-md{font-size:1rem}.text-size-lg{font-size:1.5rem}.text-size-xl{font-size:2rem}.text-size-xxl{font-size:3rem}.text-color-blue{color:#1d86e1}.text-color-green{color:#25a35a}.text-color-yellow{color:#ffd700}.text-color-amber{color:#f39c11}.text-color-red{color:#e74c3b}.text-color-purple{color:#6f42c1}.text-color-accent{color:#1d86e1}.text-color-gray-dark{color:#c4c7ca}.text-color-gray-medium{color:#979ca1}.text-color-gray-light{color:#4b4f53}.text-color-success{color:#2ecc70}.text-color-warning{color:#f39c11}.text-color-danger{color:#e74c3b}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace{white-space:nowrap}.whitespace-wrap{white-space:normal}@media(min-width: 600px){.hide-from-xs{display:none}}@media(max-width: 599px){.show-from-xs{display:none}}@media(min-width: 768px){.hide-from-sm{display:none}}@media(max-width: 767px){.show-from-sm{display:none}}@media(min-width: 1024px){.hide-from-md{display:none}}@media(max-width: 1023px){.show-from-md{display:none}}@media(min-width: 1280px){.hide-from-lg{display:none}}@media(max-width: 1279px){.show-from-lg{display:none}} diff --git a/panel/assets/css/panel.min.css b/panel/assets/css/panel.min.css index 82d9131b..771e9100 100644 --- a/panel/assets/css/panel.min.css +++ b/panel/assets/css/panel.min.css @@ -1 +1 @@ -html{font-size:100%;text-size-adjust:100%}body{margin:0;background-color:#f7f7f8;color:#22272a;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;line-height:1.5;-webkit-tap-highlight-color:rgba(34,39,42,0)}*{box-sizing:border-box}main{display:block}a{background-color:rgba(0,0,0,0);color:#1d86e1;outline-color:rgba(2,136,252,.375);text-decoration:none;transition:color 150ms}a:hover{color:#176bb4}a:not([href]){cursor:default}img{max-width:100%;border-style:none}mark{background-color:gold}code,pre{border-radius:4px;background-color:#e0e3e6;font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875em}code{padding:.125rem .25rem;color:#176bb4}pre{padding:1rem;white-space:pre-wrap}[hidden]{display:none}.focused{outline:2px solid rgba(2,136,252,.375)}::selection{background-color:rgba(29,134,225,.25)}::placeholder{color:#707e89}h1,.h1{font-size:2.49rem}h2,.h2{font-size:2.07rem}h3,.h3{font-size:1.73rem}h4,.h4{font-size:1.44rem}h5,.h5{font-size:1.2rem}h6,.h6{font-size:1rem}h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6{margin-top:0;margin-bottom:.25rem;font-weight:500}strong{font-weight:600}p{margin-top:0;margin-bottom:.5rem;line-height:1.5}ul{padding:0;margin-top:0;margin-bottom:.5rem;margin-left:1.25rem;list-style-position:outside}.text-bold{font-weight:600}.text-italic{font-style:italic}@keyframes fade-in-right{from{opacity:0;transform:translate3d(150%, 0, 0)}to{opacity:1;transform:none}}@keyframes fade-out-right{from{opacity:1;transform:none}to{opacity:0;transform:translate3d(150%, 0, 0)}}@keyframes shake{0%,100%{transform:translate3d(0, 0, 0)}10%,50%,90%{transform:translate3d(-10px, 0, 0)}30%,70%{transform:translate3d(10px, 0, 0)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.badge{display:inline-block;min-width:1.375em;padding:.25rem .5rem;border-radius:2em;margin-left:.25rem;background-color:#e0e3e6;font-size:.75em;font-weight:600;line-height:1.125;text-align:center}.button .badge{padding:.125rem .375rem;font-size:.75rem;line-height:1}.button-accent .badge{background-color:#d2e7f9;color:#1d86e1}.button-success .badge{background-color:#d5f5e2;color:#2ecc70}.button-warning .badge{background-color:#fdebcf;color:#f39c11}.button-danger .badge{background-color:#fadbd8;color:#e74c3b}.button{display:inline-block;padding:.375rem .5rem;border:1px solid rgba(0,0,0,0);border-radius:4px;background-color:rgba(0,0,0,0);color:inherit;cursor:default;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:.875rem;font-weight:500;line-height:1.15;outline:none;text-align:center;transition:border-color 150ms,background-color 150ms,color 150ms;white-space:nowrap;user-select:none}.button:hover{color:#1d86e1}.button:focus{outline:2px solid rgba(2,136,252,.375)}.button[disabled],.button[disabled]:hover,.button.disabled,.button.disabled:hover{box-shadow:none;color:#c4cacf;pointer-events:none}.button .icon{display:inline-block;margin-right:.25rem}.button-right{margin-right:0;margin-left:.25rem;float:right}.button-accent{border:1px solid #1d86e1;background-color:#1d86e1;box-shadow:0 1px 0 rgba(34,39,42,.25);color:#fff}.button-accent:hover,.button-accent:focus,.button-accent.active{border-color:#176bb4;background-color:#176bb4;color:#fff}.button-accent:focus{outline:2px solid rgba(2,136,252,.375)}.button-secondary{border:1px solid #e0e3e6;background-color:#e0e3e6;box-shadow:0 1px 0 rgba(34,39,42,.25);color:#22272a}.button-secondary:hover,.button-secondary:focus,.button-secondary.active{border-color:#c4cacf;background-color:#c4cacf;color:#22272a}.button-secondary:focus{outline:2px solid rgba(34,39,42,.375)}.button-success{border:1px solid #2ecc70;background-color:#2ecc70;box-shadow:0 1px 0 rgba(34,39,42,.25);color:#fff}.button-success:hover,.button-success:focus,.button-success.active{border-color:#25a35a;background-color:#25a35a;color:#fff}.button-success:focus{outline:2px solid rgba(46,204,112,.375)}.button-warning{border:1px solid #f39c11;background-color:#f39c11;box-shadow:0 1px 0 rgba(34,39,42,.25);color:#fff}.button-warning:hover,.button-warning:focus,.button-warning.active{border-color:#c27d0e;background-color:#c27d0e;color:#fff}.button-warning:focus{outline:2px solid rgba(243,156,17,.375)}.button-danger{border:1px solid #e74c3b;background-color:#e74c3b;box-shadow:0 1px 0 rgba(34,39,42,.25);color:#fff}.button-danger:hover,.button-danger:focus,.button-danger.active{border-color:#b93d2f;background-color:#b93d2f;color:#fff}.button-danger:focus{outline:2px solid rgba(231,76,59,.375)}.button-link .icon{margin-right:0}.caption{font-size:.875rem;font-weight:600;letter-spacing:1px;text-transform:uppercase}.ct-label{color:rgba(0, 0, 0, 40%);fill:rgba(0, 0, 0, 40%);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:rgba(0, 0, 0, 20%);stroke-dasharray:2px;stroke-width:1px}.ct-grid-background{fill:none}.ct-point{stroke-linecap:round;stroke-width:10px}.ct-line{fill:none;stroke-width:4px}.ct-area{fill-opacity:.1;stroke:none}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#e6805e}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#e6805e}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-chart{position:relative;display:block;width:100%;height:14rem;user-select:none}.ct-label{color:rgba(34,39,42,.4);fill:rgba(34,39,42,.4);white-space:pre-wrap}.ct-grid{stroke:rgba(34,39,42,.2)}.ct-series-a .ct-line,.ct-series-a .ct-point{stroke:#1d86e1}.ct-series-a .ct-area{fill:#1d86e1}.ct-series-b .ct-line,.ct-series-b .ct-point{stroke:#f39c11}.ct-series-b .ct-area{fill:#f39c11}.ct-label.ct-horizontal,.ct-label.ct-horizontal.ct-end{display:inline-block;width:auto !important;min-width:3rem;color:#22272a;text-align:center;transform:translateX(-50%)}.ct-legend{font-size:.875rem;user-select:none}.ct-legend-right{text-align:right}.ct-legend-label{white-space:nowrap}.ct-legend-label .icon{display:inline-block;margin:0 .25rem}.ct-legend-label.ct-series-a .icon{color:#1d86e1}.ct-legend-label.ct-series-b .icon{color:#f39c11}.container{max-width:1280px;padding:0;margin:0 auto}.row{display:flex;flex-wrap:wrap;margin:0}@media(min-width: 768px){.container{padding:0 1rem}.container .row{margin-right:-0.5rem;margin-left:-0.5rem}}.col-xs,.col-xs-1-12,.col-xs-2-12,.col-xs-1-6,.col-xs-3-12,.col-xs-1-4,.col-xs-4-12,.col-xs-1-3,.col-xs-5-12,.col-xs-6-12,.col-xs-1-2,.col-xs-7-12,.col-xs-8-12,.col-xs-2-3,.col-xs-9-12,.col-xs-3-4,.col-xs-10-12,.col-xs-5-6,.col-xs-11-12,.col-xs-12-12,.col-xs-1-1,.col-sm,.col-sm-1-12,.col-sm-2-12,.col-sm-1-6,.col-sm-3-12,.col-sm-1-4,.col-sm-4-12,.col-sm-1-3,.col-sm-5-12,.col-sm-6-12,.col-sm-1-2,.col-sm-7-12,.col-sm-8-12,.col-sm-2-3,.col-sm-9-12,.col-sm-3-4,.col-sm-10-12,.col-sm-5-6,.col-sm-11-12,.col-sm-12-12,.col-sm-1-1,.col-md,.col-md-1-12,.col-md-2-12,.col-md-1-6,.col-md-3-12,.col-md-1-4,.col-md-4-12,.col-md-1-3,.col-md-5-12,.col-md-6-12,.col-md-1-2,.col-md-7-12,.col-md-8-12,.col-md-2-3,.col-md-9-12,.col-md-3-4,.col-md-10-12,.col-md-5-6,.col-md-11-12,.col-md-12-12,.col-md-1-1,.col-lg,.col-lg-1-12,.col-lg-2-12,.col-lg-1-6,.col-lg-3-12,.col-lg-1-4,.col-lg-4-12,.col-lg-1-3,.col-lg-5-12,.col-lg-6-12,.col-lg-1-2,.col-lg-7-12,.col-lg-8-12,.col-lg-2-3,.col-lg-9-12,.col-lg-3-4,.col-lg-10-12,.col-lg-5-6,.col-lg-11-12,.col-lg-12-12,.col-lg-1-1{width:100%}@media(min-width: 768px){.col-xs,.col-xs-1-12,.col-xs-2-12,.col-xs-1-6,.col-xs-3-12,.col-xs-1-4,.col-xs-4-12,.col-xs-1-3,.col-xs-5-12,.col-xs-6-12,.col-xs-1-2,.col-xs-7-12,.col-xs-8-12,.col-xs-2-3,.col-xs-9-12,.col-xs-3-4,.col-xs-10-12,.col-xs-5-6,.col-xs-11-12,.col-xs-12-12,.col-xs-1-1,.col-sm,.col-sm-1-12,.col-sm-2-12,.col-sm-1-6,.col-sm-3-12,.col-sm-1-4,.col-sm-4-12,.col-sm-1-3,.col-sm-5-12,.col-sm-6-12,.col-sm-1-2,.col-sm-7-12,.col-sm-8-12,.col-sm-2-3,.col-sm-9-12,.col-sm-3-4,.col-sm-10-12,.col-sm-5-6,.col-sm-11-12,.col-sm-12-12,.col-sm-1-1,.col-md,.col-md-1-12,.col-md-2-12,.col-md-1-6,.col-md-3-12,.col-md-1-4,.col-md-4-12,.col-md-1-3,.col-md-5-12,.col-md-6-12,.col-md-1-2,.col-md-7-12,.col-md-8-12,.col-md-2-3,.col-md-9-12,.col-md-3-4,.col-md-10-12,.col-md-5-6,.col-md-11-12,.col-md-12-12,.col-md-1-1,.col-lg,.col-lg-1-12,.col-lg-2-12,.col-lg-1-6,.col-lg-3-12,.col-lg-1-4,.col-lg-4-12,.col-lg-1-3,.col-lg-5-12,.col-lg-6-12,.col-lg-1-2,.col-lg-7-12,.col-lg-8-12,.col-lg-2-3,.col-lg-9-12,.col-lg-3-4,.col-lg-10-12,.col-lg-5-6,.col-lg-11-12,.col-lg-12-12,.col-lg-1-1{padding:0 .5rem}}.col-xs{width:auto;max-width:100%;flex:1 0 auto}.col-xs-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-xs-2-12,.col-xs-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-xs-3-12,.col-xs-1-4{max-width:25%;flex:0 0 25%}.col-xs-4-12,.col-xs-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-xs-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-xs-6-12,.col-xs-1-2{max-width:50%;flex:0 0 50%}.col-xs-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-xs-8-12,.col-xs-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-xs-9-12,.col-xs-3-4{max-width:75%;flex:0 0 75%}.col-xs-10-12,.col-xs-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-xs-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-xs-12-12,.col-xs-1-1{max-width:100%;flex:0 0 100%}@media(min-width: 768px){.col-sm{width:auto;max-width:100%;flex:1 0 auto}.col-sm-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-sm-2-12,.col-sm-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-sm-3-12,.col-sm-1-4{max-width:25%;flex:0 0 25%}.col-sm-4-12,.col-sm-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-sm-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-sm-6-12,.col-sm-1-2{max-width:50%;flex:0 0 50%}.col-sm-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-sm-8-12,.col-sm-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-sm-9-12,.col-sm-3-4{max-width:75%;flex:0 0 75%}.col-sm-10-12,.col-sm-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-sm-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-sm-12-12,.col-sm-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1024px){.col-md{width:auto;max-width:100%;flex:1 0 auto}.col-md-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-md-2-12,.col-md-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-md-3-12,.col-md-1-4{max-width:25%;flex:0 0 25%}.col-md-4-12,.col-md-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-md-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-md-6-12,.col-md-1-2{max-width:50%;flex:0 0 50%}.col-md-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-md-8-12,.col-md-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-md-9-12,.col-md-3-4{max-width:75%;flex:0 0 75%}.col-md-10-12,.col-md-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-md-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-md-12-12,.col-md-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1280px){.col-lg{width:auto;max-width:100%;flex:1 0 auto}.col-lg-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-lg-2-12,.col-lg-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-lg-3-12,.col-lg-1-4{max-width:25%;flex:0 0 25%}.col-lg-4-12,.col-lg-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-lg-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-lg-6-12,.col-lg-1-2{max-width:50%;flex:0 0 50%}.col-lg-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-lg-8-12,.col-lg-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-lg-9-12,.col-lg-3-4{max-width:75%;flex:0 0 75%}.col-lg-10-12,.col-lg-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-lg-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-lg-12-12,.col-lg-1-1{max-width:100%;flex:0 0 100%}}.dropdown{position:relative;display:inline-block;margin-bottom:.5rem}.dropdown-button{margin-bottom:0}.dropdown-button.caret::after{display:inline-block;height:0;margin-left:.25rem;content:" ";vertical-align:.125rem;border-top:.25rem solid;border-right:.25rem solid rgba(0,0,0,0);border-left:.25rem solid rgba(0,0,0,0)}.dropdown-menu,.dropdown-list{position:absolute;z-index:8;top:100%;left:0;display:none;min-width:8rem;padding:.25rem 0;border:1px solid #c4cacf;border-radius:4px;margin-top:3px;background-color:#fcfcfd;box-shadow:0 .0625rem .25rem rgba(6,27,45,.1),.125rem .25rem .375rem rgba(6,27,45,.1),.125rem .5rem .75rem rgba(6,27,45,.1);float:left}.dropdown-list{width:100%;max-height:14.84375rem;overflow-y:auto}.dropdown-item{display:block;width:100%;padding:.5rem 1rem;color:#22272a;cursor:pointer !important;font-size:.875rem;white-space:nowrap}.dropdown-item:hover{background-color:#ebedef;color:#22272a}.dropdown-item.disabled{color:#707e89;cursor:default !important}.dropdown-item.disabled:hover{background-color:rgba(0,0,0,0);color:#707e89}.dropdown-item.selected{background-color:#1d86e1;color:#fff}.dropdown-item .icon{display:inline-block;margin-right:.25rem}.dropdown-empty{display:block;width:100%;padding:.5rem 1rem;color:#707e89;cursor:default !important;font-size:.875rem;white-space:nowrap}.dropdown-separator{height:0;border-top:1px solid #c4cacf;margin:.25rem 0}.files-list{padding:0;margin:0;margin-bottom:1rem;list-style-type:none;user-select:none}.is-thumbnails .files-items{margin:0 -0.25rem}.files-item{display:flex;align-items:center;padding:.5rem;border-bottom:1px solid #e0e3e6;font-size:.875rem}.files-item:hover{background-color:#f7f7f8}.files-item:first-child{border-top:1px solid #e0e3e6}.files-item .dropdown{margin-bottom:0}.file-name{flex-grow:1}.file-icon{margin-right:.5rem}.file-size{color:#707e89}.is-thumbnails .files-item{position:relative;display:inline-block;width:10rem;height:10rem;box-sizing:border-box;padding:.5rem;border:1px solid #c4cacf;border-radius:4px;margin:.25rem}.file-thumbnail{position:relative;top:0;left:0;display:none;width:100%;height:100%;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:contain}.is-thumbnails .file-thumbnail{display:block}.is-thumbnails .file-name{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:4px;background-color:rgba(224,227,230,.9);font-size:.75rem;text-align:center;user-select:none}.is-thumbnails .dropdown{position:absolute;top:.5rem;right:.5rem}.is-thumbnails .dropdown-button{margin-top:.25rem;margin-right:.25rem;background-color:rgba(224,227,230,.9)}.is-thumbnails .dropdown-button:hover,.is-thumbnails .dropdown-button:focus{background-color:#c4cacf;color:inherit}.is-thumbnails .file-icon{position:absolute;top:50%;left:50%;color:#c4cacf;font-size:4rem;line-height:0;transform:translate(-50%, -50%)}.is-thumbnails .file-thumbnail+.file-icon{display:none}.form-input,.form-textarea,.form-select{width:100%;padding:.25rem .5rem;border:1px solid #c4cacf;border-radius:4px;margin:0;margin-bottom:.75rem;background-color:#fcfcfd;color:#22272a;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:.875rem;line-height:1.5;appearance:none}.form-input:focus,.form-textarea:focus,.form-select:focus{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.form-input[disabled],[disabled].form-textarea,[disabled].form-select{background-color:#ebedef;color:#707e89}.form-input[readonly],[readonly].form-textarea,[readonly].form-select{user-select:none}.form-input[type=checkbox],[type=checkbox].form-textarea,[type=checkbox].form-select,.form-input[type=radio],[type=radio].form-textarea,[type=radio].form-select{width:auto;height:inherit;padding:0;margin-bottom:0;vertical-align:text-top}.form-input[type=file],[type=file].form-textarea,[type=file].form-select{padding:0;border:none;border-radius:0}.form-input[type=file]::-webkit-file-upload-button,[type=file].form-textarea::-webkit-file-upload-button,[type=file].form-select::-webkit-file-upload-button{appearance:button;font:inherit}.form-input[type=number]::-webkit-inner-spin-button,[type=number].form-textarea::-webkit-inner-spin-button,[type=number].form-select::-webkit-inner-spin-button,.form-input[type=number]::-webkit-outer-spin-button,[type=number].form-textarea::-webkit-outer-spin-button,[type=number].form-select::-webkit-outer-spin-button{height:auto}.form-input[type=search],[type=search].form-textarea,[type=search].form-select{padding-left:2rem;background:#fcfcfd url('data:image/svg+xml;utf8,') no-repeat left .5rem top .375rem;background-size:1rem 1rem}.form-input[type=search]::-webkit-search-cancel-button,[type=search].form-textarea::-webkit-search-cancel-button,[type=search].form-select::-webkit-search-cancel-button{display:none}.form-select{padding:.25rem 1.5rem .25rem .5rem;background:#fcfcfd url("data:image/svg+xml;utf8,") no-repeat right .75rem center;background-color:#fcfcfd;background-size:8px 6px}.form-select:-moz-focusring{color:rgba(0,0,0,0);text-shadow:0 0 0 #22272a}.form-textarea{overflow:auto;min-height:4.4375rem;max-height:39.875rem;resize:vertical}.form-input-large{font-size:1.125rem}.form-input-accent{border-color:#1d86e1}.form-input-success{border-color:#2ecc70}.form-input-warning{border-color:#f39c11}.form-input-danger{border-color:#e74c3b}.form-input-invalid{animation:shake 500ms;animation-fill-mode:both}.form-input-wrap{position:relative;margin-bottom:.75rem}.form-input-wrap .form-input,.form-input-wrap .form-select,.form-input-wrap .form-textarea{padding-right:1.625rem;margin-bottom:0}.form-input-reset{position:absolute;top:50%;right:.5rem;color:#22272a;transform:translateY(-50%);transition:color 150ms}.form-input-reset:hover{color:#1d86e1}.form-label{display:inline-block;margin-bottom:.25rem;font-size:.875rem;user-select:none;appearance:none}.form-label-suggestion{color:#707e89;font-size:.75rem;line-height:1}.form-label-required::after{display:inline-block;margin-left:.125rem;color:#e74c3b;content:"*"}.form-input-array{margin-bottom:.5rem;user-select:none}.form-input-array .sortable-handle .icon{vertical-align:middle}.form-input-array-row{display:flex;padding:.25rem .5rem;margin:0 -0.5rem;white-space:nowrap}.form-input-array-key,.form-input-array-value{display:inline-block;margin-bottom:0}.form-input-array-key{width:30%;margin-right:.25rem}.form-input-array-value{margin-right:.25rem}.form-input-array-add,.form-input-array-remove{min-width:1rem;padding:0;margin-right:.25rem}.form-checkbox{position:absolute;opacity:0}.form-checkbox+.form-checkbox-text::before{position:relative;top:.125rem;display:inline-block;width:1rem;height:1rem;box-sizing:border-box;border:1px solid #c4cacf;border-radius:4px;margin-right:.5rem;content:" ";transition:border-color 150ms,background-color 150ms}.form-checkbox+.form-checkbox-text:hover::before,.form-checkbox[disabled]+.form-checkbox-text::before{background-color:#f7f7f8}.form-checkbox:checked+.form-checkbox-text::before{border-color:#1d86e1;background-color:#1d86e1}.form-checkbox:focus+.form-checkbox-text::before{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.form-checkbox:checked+.form-checkbox-text:hover::before{border-color:#176bb4;background-color:#176bb4}.form-checkbox:checked+.form-checkbox-text::after{position:absolute;top:.125rem;left:0;display:block;width:1rem;height:1rem;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath fill='%23fff' d='M4.727 7.036L8.263 3.5l.707.707L4.727 8.45 2 5.722l.707-.707z'/%3E%3C/svg%3E");content:" "}.form-checkbox:checked[disabled]+.form-checkbox-text::before{border-color:#c4cacf;background-color:#c4cacf}.form-checkbox-label{position:relative;margin-bottom:.75rem;line-height:1.5}.form-input-date{cursor:default}.calendar{position:absolute;z-index:8;top:100%;display:none;width:18rem;padding:.5rem;border:1px solid #c4cacf;border-radius:4px;margin:3px 1rem 1rem;background-color:#fcfcfd;box-shadow:0 .0625rem .25rem rgba(6,27,45,.1),.125rem .25rem .375rem rgba(6,27,45,.1),.125rem .5rem .75rem rgba(6,27,45,.1);color:#22272a}.calendar-header{margin-bottom:.5rem}.calendar-buttons{margin:0 -0.5rem;font-size:0}.calendar-buttons button{width:33.3%}.calendar button{padding:0 .5rem;border:0;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#22272a;cursor:pointer;font-size:.875rem;outline:none}.calendar button:hover{color:#1d86e1}.calendar button:focus{outline:none}.calendar-buttons .currentMonth{font-weight:600}.calendar-table{width:100%}.calendar-table td{width:14%;cursor:default;text-align:center;user-select:none}.calendar-time{width:50%;margin:0 auto;text-align:center}.calendar-header-day{font-size:.875rem}.calendar-day{border-radius:4px;transition:background-color 150ms,color 150ms}.calendar-day:hover{background-color:#176bb4;color:#fff}.calendar-day.selected{background-color:#1d86e1;color:#fff}.calendar-prev-month-day,.calendar-next-month-day{color:#c4cacf}.calendar-separator{height:0;border-top:1px solid #c4cacf;margin:.5rem -0.5rem}.form-input-duration{box-sizing:border-box;padding:.25rem .25rem;border:1px solid #c4cacf;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;user-select:none}.form-input-duration.focused{border-color:#1d86e1}.form-input-duration>span{text-align:center}.form-input-duration .form-input,.form-input-duration .form-select,.form-input-duration .form-textarea{width:2rem;padding:0;border:0;margin:0;appearance:textfield;background-color:#ebedef;text-align:center;vertical-align:baseline}.form-input-duration .form-input::-webkit-inner-spin-button,.form-input-duration .form-select::-webkit-inner-spin-button,.form-input-duration .form-textarea::-webkit-inner-spin-button,.form-input-duration .form-input::-webkit-outer-spin-button,.form-input-duration .form-select::-webkit-outer-spin-button,.form-input-duration .form-textarea::-webkit-outer-spin-button{margin:0;appearance:none}.form-input-duration .form-input:focus,.form-input-duration .form-select:focus,.form-input-duration .form-textarea:focus{outline:none}.form-input-duration .form-label{padding:0 .5rem;margin:0}.form-input-duration-hidden{display:none}.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:blue}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, 0.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.editor-toolbar{padding:.125rem .25rem;border:1px solid #c4cacf;background-color:#f7f7f8;border-top-left-radius:4px;border-top-right-radius:4px}.toolbar-button{padding:.5rem}.toolbar-button:hover,.toolbar-button:focus{background-color:#e0e3e6;color:#1d86e1}.toolbar-button:focus{outline:2px solid rgba(2,136,252,.375)}.toolbar-button .icon{margin-right:0}.editor-textarea{min-height:6rem;max-height:46.5rem;padding:.75rem 1rem;border:1px solid #c4cacf;border-radius:4px;margin-bottom:.5rem;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:1rem}.editor-textarea:focus{outline:none}.CodeMirror{min-height:6rem;max-height:46.5rem;padding:0 1rem;border:1px solid #c4cacf;border-radius:4px;margin-bottom:.5rem;background:#fcfcfd;color:#22272a;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:1rem;resize:vertical}.CodeMirror-wrap .CodeMirror-line-like.CodeMirror-placeholder{color:#707e89}.CodeMirror-lines{padding:.75rem 0}.CodeMirror-lines pre{padding:0 !important}.editor-toolbar+.editor-textarea,.editor-textarea+.CodeMirror{border-top-width:0;border-top-left-radius:0;border-top-right-radius:0}.editor-wrap{border-radius:4px;margin-bottom:.75rem}.editor-wrap.focused .editor-toolbar,.editor-wrap.focused .CodeMirror{border-color:#1d86e1}.CodeMirror-cursor{border-left-color:#22272a}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler{background-color:inherit}.CodeMirror-selected{background:rgba(0,0,0,0)}.CodeMirror-focused .CodeMirror-selected{background:rgba(29,134,225,.25)}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:rgba(29,134,225,.25)}.cm-formatting-code-block,.cm-formatting-list{display:inline !important}.cm-formatting,.cm-image-alt-text,.cm-url{display:none}.CodeMirror-activeline .cm-formatting,.CodeMirror-activeline .cm-image-alt-text,.CodeMirror-activeline .cm-url{display:inline}.cm-s-formwork .cm-formatting{color:#707e89}.cm-s-formwork .cm-header-1{font-size:1.75rem}.cm-s-formwork .cm-header-2{font-size:1.5rem}.cm-s-formwork .cm-header-3{font-size:1.25rem}.cm-s-formwork .cm-comment{font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875rem}.cm-s-formwork .cm-comment.cm-header-1{font-size:1.53125rem}.cm-s-formwork .cm-comment.cm-header-2{font-size:1.3125rem}.cm-s-formwork .cm-comment.cm-header-3{font-size:1.09375rem}.cm-s-formwork .cm-quote{color:#707e89}.cm-s-formwork .cm-formatting-quote+.cm-quote{padding-left:1.25rem;background:#fcfcfd url('data:image/svg+xml;utf8,') no-repeat left center;background-size:1rem 1rem}.cm-s-formwork .CodeMirror-activeline .cm-formatting-quote+.cm-quote{padding-left:0;background:rgba(0,0,0,0)}.cm-s-formwork .cm-link{color:#1d86e1;text-decoration:underline}.cm-s-formwork .cm-url.cm-formatting,.cm-s-formwork .cm-image-alt-text.cm-formatting,.cm-s-formwork .cm-image-marker{color:#1d86e1}.cm-s-formwork .cm-url,.cm-s-formwork .cm-image-alt-text{color:#707e89;text-decoration:none}.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting){display:inline;padding:0 .25rem 0 1.5rem;border-radius:4px;background:#fcfcfd url('data:image/svg+xml;utf8,') no-repeat left .25rem center;background-color:#ebedef;background-size:1rem 1rem;color:#22272a}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting){padding:0;background:rgba(0,0,0,0);color:#707e89}.cm-s-formwork .cm-hr{color:#707e89}.cm-s-formwork .cm-tag{color:#25a35a}.cm-s-formwork .cm-bracket{color:#22272a}.cm-s-formwork .cm-attribute{color:#8c68cd}.cm-s-formwork .cm-bracket,.cm-s-formwork .cm-md-xml{font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875rem}.form-input-file{display:none}.form-input-file-label{display:block;padding:.5rem;margin-bottom:1rem;background-color:#f7f7f8;clear:both;font-size:.875rem}.form-input-file-label>span{display:block;padding:1.5rem 1rem;border:2px dashed #c4cacf;border-radius:4px;color:#22272a;text-align:center;transition:background-color 300ms}.form-input-file-label>span:hover{background-color:#ebedef}.form-input-file-label.drag>span{background-color:#ebedef}.form-input-image{cursor:default}.image-picker-thumbnails{overflow:auto;height:15rem;padding:.5rem;margin-bottom:1rem}.image-picker-thumbnail{position:relative;display:inline-block;width:8rem;height:8rem;box-sizing:border-box;padding:.5rem;border:1px solid #c4cacf;border-radius:4px;margin:.25rem;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:contain}.image-picker-thumbnail::after{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:4px;background-color:rgba(224,227,230,.9);content:attr(data-filename);font-size:.75rem;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-picker-thumbnail.selected{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.image-picker-empty-state{margin:3rem auto 4rem;text-align:center}.image-picker-empty-state-icon{color:#8c97a1;font-size:2rem}.form-input[type=range],[type=range].form-select,[type=range].form-textarea{--progress: 0;position:relative;z-index:1;padding:.875rem 0;border:0;margin-bottom:0;background-color:rgba(0,0,0,0);appearance:none}.form-input[type=range]::-webkit-slider-runnable-track,[type=range].form-select::-webkit-slider-runnable-track,[type=range].form-textarea::-webkit-slider-runnable-track{width:100%;height:.375rem;border:0;border-radius:.1875rem;background:linear-gradient(90deg, #1d86e1 var(--progress), #c4cacf var(--progress));background-color:#c4cacf;cursor:default}.form-input[type=range]::-webkit-slider-thumb,[type=range].form-select::-webkit-slider-thumb,[type=range].form-textarea::-webkit-slider-thumb{width:1.125rem;height:1.125rem;border:0;border-radius:50%;margin-top:-0.375rem;background-color:#1d86e1;cursor:default;transition:background-color 150ms;appearance:none}.form-input[type=range]::-moz-range-track,[type=range].form-select::-moz-range-track,[type=range].form-textarea::-moz-range-track{width:100%;height:.375rem;border:0;border-radius:.1875rem;background:linear-gradient(90deg, #1d86e1 var(--progress), #c4cacf var(--progress));background-color:#c4cacf}.form-input[type=range]::-moz-range-thumb,[type=range].form-select::-moz-range-thumb,[type=range].form-textarea::-moz-range-thumb{width:1.125rem;height:1.125rem;border:0;border-radius:50%;background-color:#1d86e1;cursor:default;transition:background-color 150ms;appearance:none}.form-input[type=range]:focus,[type=range].form-select:focus,[type=range].form-textarea:focus{outline:none}.form-input[type=range]:hover::-webkit-slider-thumb,[type=range].form-select:hover::-webkit-slider-thumb,[type=range].form-textarea:hover::-webkit-slider-thumb,.form-input[type=range]:hover::-moz-range-thumb,[type=range].form-select:hover::-moz-range-thumb,[type=range].form-textarea:hover::-moz-range-thumb{background-color:#176bb4}.form-input[type=range][disabled],[type=range][disabled].form-select,[type=range][disabled].form-textarea{background-color:rgba(0,0,0,0)}.form-input[type=range][disabled]::-webkit-slider-thumb,[type=range][disabled].form-select::-webkit-slider-thumb,[type=range][disabled].form-textarea::-webkit-slider-thumb,.form-input[type=range][disabled]::-moz-range-thumb,[type=range][disabled].form-select::-moz-range-thumb,[type=range][disabled].form-textarea::-moz-range-thumb{background-color:#707e89}.form-input[type=range]:focus::-webkit-slider-thumb,[type=range].form-select:focus::-webkit-slider-thumb,[type=range].form-textarea:focus::-webkit-slider-thumb{background-color:#176bb4;outline:2px solid rgba(2,136,252,.375)}.form-input[type=range]:focus::-moz-range-thumb,[type=range].form-select:focus::-moz-range-thumb,[type=range].form-textarea:focus::-moz-range-thumb{background-color:#176bb4;outline:2px solid rgba(2,136,252,.375)}.form-input-range-value{min-width:3rem;padding:.25rem .5rem;font-size:.875rem;user-select:none}.form-input-range{position:relative;width:100%;margin-bottom:.5rem}.form-input-range-ticks{position:absolute;right:0;bottom:.625rem;left:0;display:flex;justify-content:space-between;padding:0 .5625rem}.form-input-range-ticks .tick{width:1px;height:.375rem;background-color:#c4cacf}.form-input-tag{position:relative;display:block;box-sizing:border-box;padding:.25rem .25rem;padding-bottom:0;border:1px solid #c4cacf;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;user-select:none}.form-input-tag.focused{border-color:#1d86e1}.tag-inner-input{display:inline-block;width:auto;max-width:100%;box-sizing:border-box;padding:0 .25rem;border:0;border-radius:0;margin-bottom:.25rem;font-family:inherit;font-size:.875rem;line-height:inherit}.tag-inner-input:focus{outline:none}.form-input-tag-hidden{display:none}.form-input-tag .tag{display:inline-block;box-sizing:border-box;padding:0 .375rem;border-radius:4px;margin-bottom:.25rem;background-color:#ebedef;cursor:default;font-size:.875rem;user-select:none}.form-input-tag.disabled,.form-input-tag.disabled .tag-inner-input{background-color:#f7f7f8}.form-input-tag.disabled .tag{background-color:#e0e3e6}.tag-remove{display:inline-block;padding:0 .125rem;margin-left:.25rem;color:#22272a;font-style:normal;transition:color 150ms}.tag-remove:hover{color:#1d86e1}.tag-remove::after{content:"×";font-weight:600}.form-togglegroup{display:inline-block;border:1px solid #c4cacf;border-radius:4px;margin:0;margin-bottom:.75rem;font-size:0}.form-togglegroup:focus-within{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.form-togglegroup .form-label{margin:0}.form-togglegroup .form-input[type=radio],.form-togglegroup [type=radio].form-select,.form-togglegroup [type=radio].form-textarea{position:absolute;opacity:0}.form-togglegroup .form-input[type=radio]+span,.form-togglegroup [type=radio].form-select+span,.form-togglegroup [type=radio].form-textarea+span{display:inline-block;padding:.25rem .75rem;border-radius:3px;font-size:.875rem;transition:background-color 150ms,color 150ms}.form-togglegroup .form-input[type=radio]:hover+span,.form-togglegroup [type=radio].form-select:hover+span,.form-togglegroup [type=radio].form-textarea:hover+span{background-color:#f7f7f8}.form-togglegroup .form-input[type=radio]:checked+span,.form-togglegroup [type=radio].form-select:checked+span,.form-togglegroup [type=radio].form-textarea:checked+span{background-color:#1d86e1;color:#fff}.form-togglegroup .form-input[type=radio]:focus+span,.form-togglegroup [type=radio].form-select:focus+span,.form-togglegroup [type=radio].form-textarea:focus+span{background-color:#176bb4}.form-togglegroup[disabled] .form-input[type=radio]+span,.form-togglegroup[disabled] [type=radio].form-select+span,.form-togglegroup[disabled] [type=radio].form-textarea+span{background-color:rgba(0,0,0,0);color:#22272a}.form-togglegroup[disabled] .form-input[type=radio]:checked+span,.form-togglegroup[disabled] [type=radio].form-select:checked+span,.form-togglegroup[disabled] [type=radio].form-textarea:checked+span{background-color:#e0e3e6}.form-togglegroup .form-input[type=radio]:checked:hover+span,.form-togglegroup [type=radio].form-select:checked:hover+span,.form-togglegroup [type=radio].form-textarea:checked:hover+span{background-color:#176bb4}.header{position:sticky;z-index:9;top:3.5rem;display:flex;min-height:4.5rem;align-items:center;padding:.5rem 1rem;border-bottom:1px solid #e0e3e6;margin-bottom:1rem;background-color:#f7f7f8;white-space:nowrap}@media(min-width: 768px){.header{padding:.5rem 1.5rem;margin-right:-1rem;margin-left:-1rem}}@media(min-width: 1024px){.header{min-height:5.5rem;margin-right:-1.5rem;margin-bottom:1.75rem;margin-left:-1.5rem}}.header-title{overflow:hidden;flex-grow:1;font-size:1.2rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.icon{display:inline-block;width:1em;min-width:16px;height:1em;min-height:16px;vertical-align:-0.125rem}.logo{margin-bottom:2rem;color:#22272a;font-size:1.2rem;font-weight:600;line-height:1.5rem;text-align:center}@media(min-width: 1024px){.logo{text-align:left}}.logo img{height:1.5rem;margin-right:.25rem;vertical-align:-0.25rem}.logo a{padding-top:2px;color:#22272a}.modal-backdrop{position:fixed;z-index:16;background-color:rgba(6,27,45,.5);inset:0}.modal{position:fixed;z-index:20;display:none;align-items:center;inset:0;outline:0}.modal.show{display:flex}.modal-header,.modal-content,.modal-footer{padding:1rem 1.5rem}.modal-header{border-bottom:1px solid #e0e3e6}.modal-footer{border-top:1px solid #e0e3e6}.modal-container{width:26rem;max-width:26rem;border:1px solid #c4cacf;border-radius:4px;margin:3rem .5rem;background-color:#fcfcfd;box-shadow:.125rem .125rem .5rem rgba(6,27,45,.15),.125rem .25rem .5rem rgba(6,27,45,.15),.5rem .5rem 1rem rgba(6,27,45,.15)}@media(width >= 26rem){.modal-container{margin:3rem auto}}.modal-size-large{width:40rem;max-width:40rem}@media(width <= 40rem){.modal-size-large{margin:3rem .5rem}}.notification-container{position:fixed;z-index:14;top:20px;right:20px}.notification{position:relative;overflow:hidden;width:350px;padding:1.5rem 2.5rem;border-radius:4px;margin-bottom:.5rem;animation:fade-in-right 300ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#ebedef;box-shadow:0 .0625rem .25rem rgba(6,27,45,.1),.125rem .25rem .375rem rgba(6,27,45,.1),.125rem .5rem .75rem rgba(6,27,45,.1);cursor:default;text-overflow:ellipsis;transition:top 300ms ease-in,opacity 150ms}.notification:hover{opacity:.95}.notification.fadeout{animation:fade-out-right 300ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}.notification .icon{position:absolute;top:50%;left:1rem;display:block;width:16px;height:16px;color:#fff;transform:translate(0, -50%)}.notification-info,.notification-success,.notification-warning,.notification-danger{padding-left:3.25rem}.notification-info{background-color:#1d86e1;color:#fff}.notification-success{background-color:#25a35a;color:#fff}.notification-warning{background-color:#f39c11;color:#fff}.notification-danger{background-color:#e74c3b;color:#fff}.pages-tree{padding:0;margin:0;list-style-type:none;user-select:none}.pages-tree .pages-tree{display:none}.pages-tree-root{border-top:1px solid #e0e3e6}.pages-tree-headers{display:flex;align-items:center;padding:.25rem 0;font-weight:600;user-select:none}.pages-tree-row{display:flex;align-items:center;padding:.5rem 0;border-bottom:1px solid #e0e3e6}.pages-tree-row:hover{background-color:#f7f7f8}.pages-tree-item{position:relative}.pages-tree-item::before{position:absolute;z-index:1;top:-2.125rem;width:1.625rem;height:3.625rem;border-bottom:2px solid #e0e3e6;border-left:2px solid #e0e3e6}.pages-tree-item::after{position:absolute;z-index:1;top:-2.125rem;width:1.625rem;height:100%;border-left:2px solid #e0e3e6}.is-filtered .pages-tree-item::before,.is-filtered .pages-tree-item::after{display:none}.pages-tree-item:last-child::after,.is-dragging>.pages-tree-item:nth-last-child(2)::after{display:none}.pages-tree-item.has-children::before,.pages-tree-item.has-children::after,.is-reordering .pages-tree-item.is-orderable::before,.is-reordering .pages-tree-item.is-orderable::after{width:.875rem}.is-reordering .pages-tree-item:not(.is-orderable,.has-children)::before,.is-reordering .pages-tree-item:not(.is-orderable,.has-children)::after{width:2.375rem}.pages-tree-level-2::before,.pages-tree-level-2::after{left:.625rem;content:""}.pages-tree-level-2 .page-details{padding-left:1.75rem}.pages-tree-level-3::before,.pages-tree-level-3::after{left:2.25rem;content:""}.pages-tree-level-3 .page-details{padding-left:3.5rem}.pages-tree-level-4::before,.pages-tree-level-4::after{left:4rem;content:""}.pages-tree-level-4 .page-details{padding-left:5.25rem}.pages-tree-level-5::before,.pages-tree-level-5::after{left:5.75rem;content:""}.pages-tree-level-5 .page-details{padding-left:7rem}.pages-tree-level-6::before,.pages-tree-level-6::after{left:7.5rem;content:""}.pages-tree-level-6 .page-details{padding-left:8.75rem}.pages-tree-level-7::before,.pages-tree-level-7::after{left:9.25rem;content:""}.pages-tree-level-7 .page-details{padding-left:10.5rem}.pages-tree-level-8::before,.pages-tree-level-8::after{left:11rem;content:""}.pages-tree-level-8 .page-details{padding-left:12.25rem}.pages-tree-level-9::before,.pages-tree-level-9::after{left:12.75rem;content:""}.pages-tree-level-9 .page-details{padding-left:14rem}.pages-tree-level-10::before,.pages-tree-level-10::after{left:14.5rem;content:""}.pages-tree-level-10 .page-details{padding-left:15.75rem}.pages-tree-item-cell,.pages-tree-headers-cell{padding:.25rem;font-size:.875rem}.page-details{min-width:0}.pages-tree-icon{min-width:1rem}.pages-tree-children-toggle{padding:0;border:0;color:#707e89;cursor:pointer}.pages-tree-children-toggle .icon{margin-right:0;transition:transform 150ms,color 150ms}.pages-tree-row .sortable-handle{display:none}.pages-tree.is-filtered .sortable-handle{display:none}.pages-tree.is-filtered .pages-tree-children-toggle{display:none}.pages-tree.is-reordering .sortable-handle{display:block}.pages-tree-children{display:none}.sortable-chosen .pages-tree-item-cell{background-color:rgba(0,0,0,0);opacity:.5}.sortable-chosen .pages-tree-children,.sortable-fallback .pages-tree-children{display:none !important}.sortable-chosen .pages-tree-children-toggle .icon,.sortable-fallback .pages-tree-children-toggle .icon{transform:none !important}.sortable-fallback .pages-tree-item-cell{opacity:1}.pages-tree-item.is-expanded>.pages-tree-children{display:block}.pages-tree-item.is-expanded>.pages-tree-row .pages-tree-children-toggle .icon{transform:rotate(-180deg)}.is-dragging{cursor:grab !important}.is-dragging>.is-not-orderable *{cursor:no-drop !important}.is-dragging>.is-not-orderable .pages-tree-row:hover{background-color:#fadbd8}.panel-header{position:fixed;z-index:10;top:0;right:0;left:0;display:flex;align-items:center;padding:.75rem;padding-left:4rem;background-color:#e0e3e6;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05);color:#22272a;font-weight:500;user-select:none}@media(min-width: 1024px){.panel-header{left:16rem;padding-left:1.5rem}}.panel-user-card{display:flex;align-items:center;margin-bottom:2rem;cursor:pointer}.panel-user-avatar{width:48px}.panel-user-avatar img{width:48px;border-radius:50%;transition:box-shadow 300ms ease-out}.panel-user-card:hover .panel-user-avatar img{box-shadow:0 0 0 .5rem #e0e3e6}.panel-user-details{padding:0 .75rem}.panel-user-fullname{color:#22272a}.panel-user-username{color:#707e89;font-size:.875rem}.panel-main{padding-top:4rem}@media(min-width: 1024px){.panel-main{padding:1.875rem;padding-top:4rem;padding-left:17.875rem}}.section{padding:1.5rem 1.25rem;margin-bottom:1rem;background-color:#fcfcfd;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05)}@media(min-width: 768px){.section{padding:1.5rem 1.75rem;border-radius:4px}}.section-header{margin-bottom:1rem;font-size:1rem;font-weight:600;user-select:none}.section.collapsed .section-header{margin-bottom:0}.section-toggle{padding:0;color:#707e89;cursor:pointer}.section-toggle .icon{margin-right:0;transition:transform 150ms,color 150ms}.section.collapsed .section-toggle .icon{transform:rotate(180deg)}.section.collapsed .section-content{display:none}.sidebar{position:fixed;z-index:12;top:0;bottom:0;left:0;width:16rem;padding:1rem 1.5rem;background:linear-gradient(to bottom, #fcfcfd 0%, #f7f7f8 100%);background-color:#fcfcfd;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05);user-select:none}.sidebar.show{display:block}.sidebar-wrapper{height:calc(100% - 9rem);overflow-y:auto}.sidebar-backdrop{position:fixed;z-index:11;background-color:rgba(6,27,45,.5);inset:0}.sidebar-toggle{position:fixed;z-index:13;top:.75rem;left:.75rem;cursor:pointer}.sidebar-navigation{padding:0;margin:0;margin-bottom:1rem;list-style-type:none}.sidebar-navigation:last-child{margin-bottom:0}.sidebar-navigation>li{position:relative;padding:.25rem 0;padding-left:1rem;margin:0;margin-bottom:.5rem}.sidebar-navigation>li a{color:#22272a}.sidebar-navigation>.active{font-weight:600}.sidebar-navigation>.active::before{position:absolute;top:0;bottom:0;left:0;width:3px;background-color:#1d86e1;content:" "}.sortable-handle .icon{display:inline-block;margin-bottom:0;color:#707e89;cursor:grab}.sortable-chosen,.sortable-ghost{background-color:#fcfcfd;cursor:grabbing}.sortable-chosen *{cursor:grabbing}.sortable-fallback{box-shadow:0 0 .75rem .25rem rgba(6,27,45,.15)}.sortable-fallback::before,.sortable-fallback::after{display:none}.spinner{position:relative;display:inline-block;width:1.5rem;height:1.5rem;border-width:.2rem;border-style:solid;border-color:#1d86e1;border-radius:50%;border-bottom-color:rgba(0,0,0,0);border-left-color:rgba(0,0,0,0);margin-right:.75rem;animation:750ms spin infinite linear;text-align:center;transition:border 500ms;transition-timing-function:ease-out;vertical-align:-0.375rem}.spinner .icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.spinner-info{border-color:#1d86e1;animation:none;color:#1d86e1}.spinner-success{border-color:#2ecc70;animation:none;color:#2ecc70}.spinner-danger{border-color:#e74c3b;animation:none;color:#e74c3b}.table{width:100%;border-collapse:collapse;table-layout:fixed}.table-header{padding:.5rem;font-weight:600;text-align:left}.table-cell{padding:.5rem}.table-bordered .table-cell{border-top:1px solid #e0e3e6;border-bottom:1px solid #e0e3e6}.table-striped tbody>tr:nth-child(2n+1){background-color:#f7f7f8}.table-hoverable tbody>tr:hover{background-color:#f7f7f8}.table-striped.table-hoverable tbody>tr:hover{background-color:#ebedef}.tabs{padding:2px 2px 0;border-bottom:1px solid #e0e3e6;margin-bottom:1rem;overflow-x:auto;white-space:nowrap;user-select:none}.tabs-tab{display:inline-block;padding:.5rem 1.25rem;color:#22272a;cursor:pointer}.tabs-tab:hover{color:#22272a}.tabs-tab.active{border-bottom:3px solid #1d86e1;font-weight:600}.caption+.tabs{margin-top:-0.5rem}.header+.tabs{margin-top:-0.5rem}@media(min-width: 1024px){.header+.tabs{margin-top:-1.5rem}}.tooltip{position:absolute;z-index:20;display:none;min-width:2rem;padding:.25rem .5rem;border-radius:4px;background-color:rgba(34,39,42,.8);color:#fcfcfd;font-size:.75rem;pointer-events:none;text-align:center}.tooltip .icon{transform:scale(0.75);vertical-align:-0.25rem}.error-container{max-width:32rem;padding:1rem;margin:4rem auto;text-align:center}.error-container h1{color:#8c97a1;user-select:none}.error-container h2{margin-bottom:1rem;font-size:2rem}.error-code{display:block;font-size:8rem;font-weight:400}.error-status{display:block;font-size:1.75rem}.error-container .action{font-size:1.125rem}.error-container .logo{width:3.5rem;height:3.5rem;margin:2rem auto;background-position:center;background-repeat:no-repeat;background-size:cover}.login-modal-container{max-width:24rem;padding:2rem;border-radius:4px;margin:3rem .5rem;background-color:#fcfcfd;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05)}@media(width >= 24rem){.login-modal-container{margin:3rem auto}}.login-modal-info,.login-modal-success,.login-modal-warning,.login-modal-danger{position:relative;padding:1rem 2rem 1rem 3.5rem;margin:-2rem -2rem 1rem;border-top-left-radius:4px;border-top-right-radius:4px}.login-modal-info a,.login-modal-success a,.login-modal-warning a,.login-modal-danger a{display:block;color:#fff;text-decoration:underline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.login-modal-info .icon,.login-modal-success .icon,.login-modal-warning .icon,.login-modal-danger .icon{position:absolute;top:50%;left:1rem;display:block;transform:translate(0, -50%)}.login-modal-info{background-color:#1d86e1;color:#fff}.login-modal-success{background-color:#25a35a;color:#fff}.login-modal-warning{background-color:#f39c11;color:#fff}.login-modal-danger{background-color:#e74c3b;color:#fff}.options-form .form-checkbox-label{margin-bottom:.5rem;font-size:1rem}.info-data{width:100%;margin-bottom:1rem;table-layout:fixed}.info-data td{overflow:hidden;padding:.5rem;vertical-align:top}.info-data-key{width:25%}.info-data-value{width:75%;font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875rem;word-break:break-word}.page-details{flex:1}.page-title{padding:2px;margin:-2px;font-size:1rem}.page-route{color:#707e89;font-size:.875rem}.page-route-changeable{padding:2px;margin:-2px}.button .page-language{font-size:.75rem}.page-date{max-width:20%;flex:0 0 20%;text-align:center}.page-status{flex:0 0 20%;text-align:center}.page-status .icon{display:inline-block;margin-right:.375rem}.page-status-published .icon{color:#2ecc70}.page-status-not-published .icon{color:#e74c3b}.page-status-not-routable .icon{color:#f39c11}.page-actions{flex:0 0 15%;text-align:center;white-space:nowrap}.page-actions .button-link{font-size:1rem}.page-info{padding:0 .25rem;margin-bottom:.75rem}.page-slug-change{padding:0;border-color:rgba(0,0,0,0);margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#707e89;cursor:pointer}.page-slug-change:hover,.page-slug-change:focus{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:#707e89}.page-slug-change:focus{outline:2px solid rgba(2,136,252,.375)}.page-slug-change .icon{display:inline-block;margin-right:0;color:#22272a;opacity:0;transition:opacity 150ms}.page-slug-change:hover .icon,.page-slug-change:focus .icon{opacity:1}.is-dragging .page-title{pointer-events:none}.pages-tree.is-filtered .pages-tree-item .page-details{padding-left:0}.user-summary{display:flex;align-items:center}.user-summary-avatar{max-width:33.3333%;flex:0 0 33.3333%;padding:.75rem;text-align:center}.user-summary-avatar img{width:180px;border-radius:50%}.user-summary-data{padding:.75rem}.users-list{border-top:1px solid #e0e3e6;user-select:none}.users-list-headers{display:flex;align-items:center;padding:.25rem 0;font-size:.875rem;font-weight:600;user-select:none}.users-item{display:flex;align-items:center;padding:.5rem 0;border-bottom:1px solid #e0e3e6}.users-item:hover{background-color:#f7f7f8}.users-item-cell,.users-headers-cell{padding:.25rem .5rem}.user-username{flex:1}.user-avatar{display:inline-block;width:2rem;height:2rem;border-radius:50%;vertical-align:middle}.user-fullname,.user-email{max-width:25%;flex:0 0 25%;font-size:.875rem}.user-last-access{max-width:20%;flex:0 0 20%;font-size:.875rem;text-align:center}.user-actions{flex:0 0 10%;text-align:center}.m-0{margin:0}.m-1{margin:0.125rem}.m-2{margin:0.25rem}.m-3{margin:0.375rem}.m-4{margin:0.5rem}.m-5{margin:0.625rem}.m-6{margin:0.75rem}.m-7{margin:0.875rem}.m-8{margin:1rem}.m-9{margin:1.5rem}.m-10{margin:2rem}.mt-0{margin-top:0}.mt-1{margin-top:0.125rem}.mt-2{margin-top:0.25rem}.mt-3{margin-top:0.375rem}.mt-4{margin-top:0.5rem}.mt-5{margin-top:0.625rem}.mt-6{margin-top:0.75rem}.mt-7{margin-top:0.875rem}.mt-8{margin-top:1rem}.mt-9{margin-top:1.5rem}.mt-10{margin-top:2rem}.ml-0{margin-left:0}.ml-1{margin-left:0.125rem}.ml-2{margin-left:0.25rem}.ml-3{margin-left:0.375rem}.ml-4{margin-left:0.5rem}.ml-5{margin-left:0.625rem}.ml-6{margin-left:0.75rem}.ml-7{margin-left:0.875rem}.ml-8{margin-left:1rem}.ml-9{margin-left:1.5rem}.ml-10{margin-left:2rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:0.125rem}.mb-2{margin-bottom:0.25rem}.mb-3{margin-bottom:0.375rem}.mb-4{margin-bottom:0.5rem}.mb-5{margin-bottom:0.625rem}.mb-6{margin-bottom:0.75rem}.mb-7{margin-bottom:0.875rem}.mb-8{margin-bottom:1rem}.mb-9{margin-bottom:1.5rem}.mb-10{margin-bottom:2rem}.mr-0{margin-right:0}.mr-1{margin-right:0.125rem}.mr-2{margin-right:0.25rem}.mr-3{margin-right:0.375rem}.mr-4{margin-right:0.5rem}.mr-5{margin-right:0.625rem}.mr-6{margin-right:0.75rem}.mr-7{margin-right:0.875rem}.mr-8{margin-right:1rem}.mr-9{margin-right:1.5rem}.mr-10{margin-right:2rem}.p-0{padding:0}.p-1{padding:0.125rem}.p-2{padding:0.25rem}.p-3{padding:0.375rem}.p-4{padding:0.5rem}.p-5{padding:0.625rem}.p-6{padding:0.75rem}.p-7{padding:0.875rem}.p-8{padding:1rem}.p-9{padding:1.5rem}.p-10{padding:2rem}.pt-0{padding-top:0}.pt-1{padding-top:0.125rem}.pt-2{padding-top:0.25rem}.pt-3{padding-top:0.375rem}.pt-4{padding-top:0.5rem}.pt-5{padding-top:0.625rem}.pt-6{padding-top:0.75rem}.pt-7{padding-top:0.875rem}.pt-8{padding-top:1rem}.pt-9{padding-top:1.5rem}.pt-10{padding-top:2rem}.pl-0{padding-left:0}.pl-1{padding-left:0.125rem}.pl-2{padding-left:0.25rem}.pl-3{padding-left:0.375rem}.pl-4{padding-left:0.5rem}.pl-5{padding-left:0.625rem}.pl-6{padding-left:0.75rem}.pl-7{padding-left:0.875rem}.pl-8{padding-left:1rem}.pl-9{padding-left:1.5rem}.pl-10{padding-left:2rem}.pb-0{padding-bottom:0}.pb-1{padding-bottom:0.125rem}.pb-2{padding-bottom:0.25rem}.pb-3{padding-bottom:0.375rem}.pb-4{padding-bottom:0.5rem}.pb-5{padding-bottom:0.625rem}.pb-6{padding-bottom:0.75rem}.pb-7{padding-bottom:0.875rem}.pb-8{padding-bottom:1rem}.pb-9{padding-bottom:1.5rem}.pb-10{padding-bottom:2rem}.pr-0{padding-right:0}.pr-1{padding-right:0.125rem}.pr-2{padding-right:0.25rem}.pr-3{padding-right:0.375rem}.pr-4{padding-right:0.5rem}.pr-5{padding-right:0.625rem}.pr-6{padding-right:0.75rem}.pr-7{padding-right:0.875rem}.pr-8{padding-right:1rem}.pr-9{padding-right:1.5rem}.pr-10{padding-right:2rem}.min-w-0{min-width:0}.min-w-100{min-width:100%}.max-w-0{max-width:0}.max-w-100{max-width:100%}.flex{display:flex}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.flex-grow-0{flex-grow:0}.flex-grow-1{flex-grow:1}.text-size-xs{font-size:0.75rem}.text-size-sm{font-size:0.875rem}.text-size-md{font-size:1rem}.text-size-lg{font-size:1.5rem}.text-size-xl{font-size:2rem}.text-size-xxl{font-size:3rem}.text-color-blue{color:#1d86e1}.text-color-green{color:#25a35a}.text-color-yellow{color:#ffd700}.text-color-amber{color:#f39c11}.text-color-red{color:#e74c3b}.text-color-purple{color:#6f42c1}.text-color-accent{color:#1d86e1}.text-color-gray-dark{color:#49525a}.text-color-gray-medium{color:#707e89}.text-color-gray-light{color:#c4cacf}.text-color-success{color:#2ecc70}.text-color-warning{color:#f39c11}.text-color-danger{color:#e74c3b}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace{white-space:nowrap}.whitespace-wrap{white-space:normal}@media(min-width: 600px){.hide-from-xs{display:none}}@media(max-width: 599px){.show-from-xs{display:none}}@media(min-width: 768px){.hide-from-sm{display:none}}@media(max-width: 767px){.show-from-sm{display:none}}@media(min-width: 1024px){.hide-from-md{display:none}}@media(max-width: 1023px){.show-from-md{display:none}}@media(min-width: 1280px){.hide-from-lg{display:none}}@media(max-width: 1279px){.show-from-lg{display:none}} +html{font-size:100%;text-size-adjust:100%}body{margin:0;background-color:#f7f7f8;color:#22272a;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;line-height:1.5;-webkit-tap-highlight-color:rgba(34,39,42,0)}*{box-sizing:border-box}main{display:block}a{background-color:rgba(0,0,0,0);color:#1d86e1;outline-color:rgba(2,136,252,.375);text-decoration:none;transition:color 150ms}a:hover{color:#176bb4}a:not([href]){cursor:default}img{max-width:100%;border-style:none}mark{background-color:gold}code,pre{border-radius:4px;background-color:#e0e3e6;font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875em}code{padding:.125rem .25rem;color:#176bb4}pre{padding:1rem;white-space:pre-wrap}[hidden]{display:none}.focused{outline:2px solid rgba(2,136,252,.375)}::selection{background-color:rgba(29,134,225,.25)}::placeholder{color:#707e89}.link-secondary{color:#707e89}.link-secondary:hover{color:#49525a}h1,.h1{font-size:2.49rem}h2,.h2{font-size:2.07rem}h3,.h3{font-size:1.73rem}h4,.h4{font-size:1.44rem}h5,.h5{font-size:1.2rem}h6,.h6{font-size:1rem}h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6{margin-top:0;margin-bottom:.25rem;font-weight:500}strong{font-weight:600}p{margin-top:0;margin-bottom:.5rem;line-height:1.5}ul{padding:0;margin-top:0;margin-bottom:.5rem;margin-left:1.25rem;list-style-position:outside}.text-bold{font-weight:600}.text-italic{font-style:italic}@keyframes fade-in-right{from{opacity:0;transform:translate3d(150%, 0, 0)}to{opacity:1;transform:none}}@keyframes fade-out-right{from{opacity:1;transform:none}to{opacity:0;transform:translate3d(150%, 0, 0)}}@keyframes shake{0%,100%{transform:translate3d(0, 0, 0)}10%,50%,90%{transform:translate3d(-10px, 0, 0)}30%,70%{transform:translate3d(10px, 0, 0)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.badge{display:inline-block;min-width:1.375em;padding:.25rem .5rem;border-radius:2em;margin-left:.25rem;background-color:#e0e3e6;font-size:.75em;font-weight:600;line-height:1.125;text-align:center}.button .badge{padding:.125rem .375rem;font-size:.75rem;line-height:1}.button-accent .badge{background-color:#d2e7f9;color:#1d86e1}.button-success .badge{background-color:#d5f5e2;color:#2ecc70}.button-warning .badge{background-color:#fdebcf;color:#f39c11}.button-danger .badge{background-color:#fadbd8;color:#e74c3b}.button{display:inline-block;padding:.375rem .5rem;border:1px solid rgba(0,0,0,0);border-radius:4px;background-color:rgba(0,0,0,0);color:inherit;cursor:default;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:.875rem;font-weight:500;line-height:1.15;outline:none;text-align:center;transition:border-color 150ms,background-color 150ms,color 150ms;white-space:nowrap;user-select:none}.button:hover{color:#1d86e1}.button:focus{outline:2px solid rgba(2,136,252,.375)}.button[disabled],.button[disabled]:hover,.button.disabled,.button.disabled:hover{box-shadow:none;color:#c4cacf;pointer-events:none}.button .icon{display:inline-block;margin-right:.25rem}.button-right{margin-right:0;margin-left:.25rem;float:right}.button-accent{border:1px solid #1d86e1;background-color:#1d86e1;box-shadow:0 1px 0 rgba(34,39,42,.25);color:#fff}.button-accent:hover,.button-accent:focus,.button-accent.active{border-color:#176bb4;background-color:#176bb4;color:#fff}.button-accent:focus{outline:2px solid rgba(2,136,252,.375)}.button-secondary{border:1px solid #e0e3e6;background-color:#e0e3e6;box-shadow:0 1px 0 rgba(34,39,42,.25);color:#22272a}.button-secondary:hover,.button-secondary:focus,.button-secondary.active{border-color:#c4cacf;background-color:#c4cacf;color:#22272a}.button-secondary:focus{outline:2px solid rgba(34,39,42,.375)}.button-success{border:1px solid #2ecc70;background-color:#2ecc70;box-shadow:0 1px 0 rgba(34,39,42,.25);color:#fff}.button-success:hover,.button-success:focus,.button-success.active{border-color:#25a35a;background-color:#25a35a;color:#fff}.button-success:focus{outline:2px solid rgba(46,204,112,.375)}.button-warning{border:1px solid #f39c11;background-color:#f39c11;box-shadow:0 1px 0 rgba(34,39,42,.25);color:#fff}.button-warning:hover,.button-warning:focus,.button-warning.active{border-color:#c27d0e;background-color:#c27d0e;color:#fff}.button-warning:focus{outline:2px solid rgba(243,156,17,.375)}.button-danger{border:1px solid #e74c3b;background-color:#e74c3b;box-shadow:0 1px 0 rgba(34,39,42,.25);color:#fff}.button-danger:hover,.button-danger:focus,.button-danger.active{border-color:#b93d2f;background-color:#b93d2f;color:#fff}.button-danger:focus{outline:2px solid rgba(231,76,59,.375)}.button-link .icon{margin-right:0}.caption{font-size:.875rem;font-weight:600;letter-spacing:1px;text-transform:uppercase}.ct-label{color:rgba(0, 0, 0, 40%);fill:rgba(0, 0, 0, 40%);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:rgba(0, 0, 0, 20%);stroke-dasharray:2px;stroke-width:1px}.ct-grid-background{fill:none}.ct-point{stroke-linecap:round;stroke-width:10px}.ct-line{fill:none;stroke-width:4px}.ct-area{fill-opacity:.1;stroke:none}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#e6805e}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#e6805e}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-chart{position:relative;display:block;width:100%;height:14rem;user-select:none}.ct-label{color:rgba(34,39,42,.4);fill:rgba(34,39,42,.4);white-space:pre-wrap}.ct-grid{stroke:rgba(34,39,42,.2)}.ct-series-a .ct-line,.ct-series-a .ct-point{stroke:#1d86e1}.ct-series-a .ct-area{fill:#1d86e1}.ct-series-b .ct-line,.ct-series-b .ct-point{stroke:#f39c11}.ct-series-b .ct-area{fill:#f39c11}.ct-label.ct-horizontal,.ct-label.ct-horizontal.ct-end{display:inline-block;width:auto !important;min-width:3rem;color:#22272a;text-align:center;transform:translateX(-50%)}.ct-legend{font-size:.875rem;user-select:none}.ct-legend-right{text-align:right}.ct-legend-label{white-space:nowrap}.ct-legend-label .icon{display:inline-block;margin:0 .25rem}.ct-legend-label.ct-series-a .icon{color:#1d86e1}.ct-legend-label.ct-series-b .icon{color:#f39c11}.container{max-width:1280px;padding:0;margin:0 auto}.row{display:flex;flex-wrap:wrap;margin:0}@media(min-width: 768px){.container{padding:0 1rem}.container .row{margin-right:-0.5rem;margin-left:-0.5rem}}.col-xs,.col-xs-1-12,.col-xs-2-12,.col-xs-1-6,.col-xs-3-12,.col-xs-1-4,.col-xs-4-12,.col-xs-1-3,.col-xs-5-12,.col-xs-6-12,.col-xs-1-2,.col-xs-7-12,.col-xs-8-12,.col-xs-2-3,.col-xs-9-12,.col-xs-3-4,.col-xs-10-12,.col-xs-5-6,.col-xs-11-12,.col-xs-12-12,.col-xs-1-1,.col-sm,.col-sm-1-12,.col-sm-2-12,.col-sm-1-6,.col-sm-3-12,.col-sm-1-4,.col-sm-4-12,.col-sm-1-3,.col-sm-5-12,.col-sm-6-12,.col-sm-1-2,.col-sm-7-12,.col-sm-8-12,.col-sm-2-3,.col-sm-9-12,.col-sm-3-4,.col-sm-10-12,.col-sm-5-6,.col-sm-11-12,.col-sm-12-12,.col-sm-1-1,.col-md,.col-md-1-12,.col-md-2-12,.col-md-1-6,.col-md-3-12,.col-md-1-4,.col-md-4-12,.col-md-1-3,.col-md-5-12,.col-md-6-12,.col-md-1-2,.col-md-7-12,.col-md-8-12,.col-md-2-3,.col-md-9-12,.col-md-3-4,.col-md-10-12,.col-md-5-6,.col-md-11-12,.col-md-12-12,.col-md-1-1,.col-lg,.col-lg-1-12,.col-lg-2-12,.col-lg-1-6,.col-lg-3-12,.col-lg-1-4,.col-lg-4-12,.col-lg-1-3,.col-lg-5-12,.col-lg-6-12,.col-lg-1-2,.col-lg-7-12,.col-lg-8-12,.col-lg-2-3,.col-lg-9-12,.col-lg-3-4,.col-lg-10-12,.col-lg-5-6,.col-lg-11-12,.col-lg-12-12,.col-lg-1-1{width:100%}@media(min-width: 768px){.col-xs,.col-xs-1-12,.col-xs-2-12,.col-xs-1-6,.col-xs-3-12,.col-xs-1-4,.col-xs-4-12,.col-xs-1-3,.col-xs-5-12,.col-xs-6-12,.col-xs-1-2,.col-xs-7-12,.col-xs-8-12,.col-xs-2-3,.col-xs-9-12,.col-xs-3-4,.col-xs-10-12,.col-xs-5-6,.col-xs-11-12,.col-xs-12-12,.col-xs-1-1,.col-sm,.col-sm-1-12,.col-sm-2-12,.col-sm-1-6,.col-sm-3-12,.col-sm-1-4,.col-sm-4-12,.col-sm-1-3,.col-sm-5-12,.col-sm-6-12,.col-sm-1-2,.col-sm-7-12,.col-sm-8-12,.col-sm-2-3,.col-sm-9-12,.col-sm-3-4,.col-sm-10-12,.col-sm-5-6,.col-sm-11-12,.col-sm-12-12,.col-sm-1-1,.col-md,.col-md-1-12,.col-md-2-12,.col-md-1-6,.col-md-3-12,.col-md-1-4,.col-md-4-12,.col-md-1-3,.col-md-5-12,.col-md-6-12,.col-md-1-2,.col-md-7-12,.col-md-8-12,.col-md-2-3,.col-md-9-12,.col-md-3-4,.col-md-10-12,.col-md-5-6,.col-md-11-12,.col-md-12-12,.col-md-1-1,.col-lg,.col-lg-1-12,.col-lg-2-12,.col-lg-1-6,.col-lg-3-12,.col-lg-1-4,.col-lg-4-12,.col-lg-1-3,.col-lg-5-12,.col-lg-6-12,.col-lg-1-2,.col-lg-7-12,.col-lg-8-12,.col-lg-2-3,.col-lg-9-12,.col-lg-3-4,.col-lg-10-12,.col-lg-5-6,.col-lg-11-12,.col-lg-12-12,.col-lg-1-1{padding:0 .5rem}}.col-xs{width:auto;max-width:100%;flex:1 0 auto}.col-xs-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-xs-2-12,.col-xs-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-xs-3-12,.col-xs-1-4{max-width:25%;flex:0 0 25%}.col-xs-4-12,.col-xs-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-xs-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-xs-6-12,.col-xs-1-2{max-width:50%;flex:0 0 50%}.col-xs-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-xs-8-12,.col-xs-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-xs-9-12,.col-xs-3-4{max-width:75%;flex:0 0 75%}.col-xs-10-12,.col-xs-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-xs-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-xs-12-12,.col-xs-1-1{max-width:100%;flex:0 0 100%}@media(min-width: 768px){.col-sm{width:auto;max-width:100%;flex:1 0 auto}.col-sm-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-sm-2-12,.col-sm-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-sm-3-12,.col-sm-1-4{max-width:25%;flex:0 0 25%}.col-sm-4-12,.col-sm-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-sm-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-sm-6-12,.col-sm-1-2{max-width:50%;flex:0 0 50%}.col-sm-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-sm-8-12,.col-sm-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-sm-9-12,.col-sm-3-4{max-width:75%;flex:0 0 75%}.col-sm-10-12,.col-sm-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-sm-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-sm-12-12,.col-sm-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1024px){.col-md{width:auto;max-width:100%;flex:1 0 auto}.col-md-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-md-2-12,.col-md-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-md-3-12,.col-md-1-4{max-width:25%;flex:0 0 25%}.col-md-4-12,.col-md-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-md-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-md-6-12,.col-md-1-2{max-width:50%;flex:0 0 50%}.col-md-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-md-8-12,.col-md-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-md-9-12,.col-md-3-4{max-width:75%;flex:0 0 75%}.col-md-10-12,.col-md-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-md-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-md-12-12,.col-md-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1280px){.col-lg{width:auto;max-width:100%;flex:1 0 auto}.col-lg-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-lg-2-12,.col-lg-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-lg-3-12,.col-lg-1-4{max-width:25%;flex:0 0 25%}.col-lg-4-12,.col-lg-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-lg-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-lg-6-12,.col-lg-1-2{max-width:50%;flex:0 0 50%}.col-lg-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-lg-8-12,.col-lg-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-lg-9-12,.col-lg-3-4{max-width:75%;flex:0 0 75%}.col-lg-10-12,.col-lg-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-lg-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-lg-12-12,.col-lg-1-1{max-width:100%;flex:0 0 100%}}.dropdown{position:relative;display:inline-block;margin-bottom:.5rem}.dropdown-button{margin-bottom:0}.dropdown-button.caret::after{display:inline-block;height:0;margin-left:.25rem;content:" ";vertical-align:.125rem;border-top:.25rem solid;border-right:.25rem solid rgba(0,0,0,0);border-left:.25rem solid rgba(0,0,0,0)}.dropdown-menu,.dropdown-list{position:absolute;z-index:8;top:100%;left:0;display:none;min-width:8rem;padding:.25rem 0;border:1px solid #c4cacf;border-radius:4px;margin-top:3px;background-color:#fcfcfd;box-shadow:0 .0625rem .25rem rgba(6,27,45,.1),.125rem .25rem .375rem rgba(6,27,45,.1),.125rem .5rem .75rem rgba(6,27,45,.1);float:left}.dropdown-list{width:100%;max-height:14.84375rem;overflow-y:auto}.dropdown-item{display:block;width:100%;padding:.5rem 1rem;color:#22272a;cursor:pointer !important;font-size:.875rem;white-space:nowrap}.dropdown-item:hover{background-color:#ebedef;color:#22272a}.dropdown-item.disabled{color:#707e89;cursor:default !important}.dropdown-item.disabled:hover{background-color:rgba(0,0,0,0);color:#707e89}.dropdown-item.selected{background-color:#1d86e1;color:#fff}.dropdown-item .icon{display:inline-block;margin-right:.25rem}.dropdown-empty{display:block;width:100%;padding:.5rem 1rem;color:#707e89;cursor:default !important;font-size:.875rem;white-space:nowrap}.dropdown-separator{height:0;border-top:1px solid #c4cacf;margin:.25rem 0}.files-list{padding:0;margin:0;margin-bottom:1rem;list-style-type:none;user-select:none}.is-thumbnails .files-items{margin:0 -0.25rem}.files-item{display:flex;align-items:center;padding:.5rem;border-bottom:1px solid #e0e3e6;font-size:.875rem}.files-item:hover{background-color:#f7f7f8}.files-item:first-child{border-top:1px solid #e0e3e6}.files-item .dropdown{margin-bottom:0}.file-name{flex-grow:1}.file-icon{margin-right:.5rem}.file-size{color:#707e89}.is-thumbnails .files-item{position:relative;display:inline-block;width:10rem;height:10rem;box-sizing:border-box;padding:.5rem;border:1px solid #c4cacf;border-radius:4px;margin:.25rem}.file-thumbnail{position:relative;top:0;left:0;display:none;width:100%;height:100%;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:contain}.is-thumbnails .file-thumbnail{display:block}.is-thumbnails .file-name{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:4px;background-color:rgba(224,227,230,.9);font-size:.75rem;text-align:center;user-select:none}.is-thumbnails .dropdown{position:absolute;top:.5rem;right:.5rem}.is-thumbnails .dropdown-button{margin-top:.25rem;margin-right:.25rem;background-color:rgba(224,227,230,.9)}.is-thumbnails .dropdown-button:hover,.is-thumbnails .dropdown-button:focus{background-color:#c4cacf;color:inherit}.is-thumbnails .file-icon{position:absolute;top:50%;left:50%;color:#c4cacf;font-size:4rem;line-height:0;transform:translate(-50%, -50%)}.is-thumbnails .file-thumbnail+.file-icon{display:none}.form-input,.form-textarea,.form-select{width:100%;padding:.25rem .5rem;border:1px solid #c4cacf;border-radius:4px;margin:0;margin-bottom:.75rem;background-color:#fcfcfd;color:#22272a;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:.875rem;line-height:1.5;appearance:none}.form-input:focus,.form-textarea:focus,.form-select:focus{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.form-input[disabled],[disabled].form-textarea,[disabled].form-select{background-color:#ebedef;color:#707e89}.form-input[readonly],[readonly].form-textarea,[readonly].form-select{user-select:none}.form-input[type=checkbox],[type=checkbox].form-textarea,[type=checkbox].form-select,.form-input[type=radio],[type=radio].form-textarea,[type=radio].form-select{width:auto;height:inherit;padding:0;margin-bottom:0;vertical-align:text-top}.form-input[type=file],[type=file].form-textarea,[type=file].form-select{padding:0;border:none;border-radius:0}.form-input[type=file]::-webkit-file-upload-button,[type=file].form-textarea::-webkit-file-upload-button,[type=file].form-select::-webkit-file-upload-button{appearance:button;font:inherit}.form-input[type=number]::-webkit-inner-spin-button,[type=number].form-textarea::-webkit-inner-spin-button,[type=number].form-select::-webkit-inner-spin-button,.form-input[type=number]::-webkit-outer-spin-button,[type=number].form-textarea::-webkit-outer-spin-button,[type=number].form-select::-webkit-outer-spin-button{height:auto}.form-input[type=search],[type=search].form-textarea,[type=search].form-select{padding-left:2rem;background:#fcfcfd url('data:image/svg+xml;utf8,') no-repeat left .5rem top .375rem;background-size:1rem 1rem}.form-input[type=search]::-webkit-search-cancel-button,[type=search].form-textarea::-webkit-search-cancel-button,[type=search].form-select::-webkit-search-cancel-button{display:none}.form-select{padding:.25rem 1.5rem .25rem .5rem;background:#fcfcfd url("data:image/svg+xml;utf8,") no-repeat right .75rem center;background-color:#fcfcfd;background-size:8px 6px}.form-select:-moz-focusring{color:rgba(0,0,0,0);text-shadow:0 0 0 #22272a}.form-textarea{overflow:auto;min-height:4.4375rem;max-height:39.875rem;resize:vertical}.form-input-large{font-size:1.125rem}.form-input-accent{border-color:#1d86e1}.form-input-success{border-color:#2ecc70}.form-input-warning{border-color:#f39c11}.form-input-danger{border-color:#e74c3b}.form-input-invalid{animation:shake 500ms;animation-fill-mode:both}.form-input-wrap{position:relative;margin-bottom:.75rem}.form-input-wrap .form-input,.form-input-wrap .form-select,.form-input-wrap .form-textarea{padding-right:1.625rem;margin-bottom:0}.form-input-reset{position:absolute;top:50%;right:.5rem;color:#22272a;transform:translateY(-50%);transition:color 150ms}.form-input-reset:hover{color:#1d86e1}.form-label{display:inline-block;margin-bottom:.25rem;font-size:.875rem;user-select:none;appearance:none}.form-label-suggestion{color:#707e89;font-size:.75rem;line-height:1}.form-label-required::after{display:inline-block;margin-left:.125rem;color:#e74c3b;content:"*"}.form-input-array{margin-bottom:.5rem;user-select:none}.form-input-array .sortable-handle .icon{vertical-align:middle}.form-input-array-row{display:flex;padding:.25rem .5rem;margin:0 -0.5rem;white-space:nowrap}.form-input-array-key,.form-input-array-value{display:inline-block;margin-bottom:0}.form-input-array-key{width:30%;margin-right:.25rem}.form-input-array-value{margin-right:.25rem}.form-input-array-add,.form-input-array-remove{min-width:1rem;padding:0;margin-right:.25rem}.form-checkbox{position:absolute;opacity:0}.form-checkbox+.form-checkbox-text::before{position:relative;top:.125rem;display:inline-block;width:1rem;height:1rem;box-sizing:border-box;border:1px solid #c4cacf;border-radius:4px;margin-right:.5rem;content:" ";transition:border-color 150ms,background-color 150ms}.form-checkbox+.form-checkbox-text:hover::before,.form-checkbox[disabled]+.form-checkbox-text::before{background-color:#f7f7f8}.form-checkbox:checked+.form-checkbox-text::before{border-color:#1d86e1;background-color:#1d86e1}.form-checkbox:focus+.form-checkbox-text::before{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.form-checkbox:checked+.form-checkbox-text:hover::before{border-color:#176bb4;background-color:#176bb4}.form-checkbox:checked+.form-checkbox-text::after{position:absolute;top:.125rem;left:0;display:block;width:1rem;height:1rem;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath fill='%23fff' d='M4.727 7.036L8.263 3.5l.707.707L4.727 8.45 2 5.722l.707-.707z'/%3E%3C/svg%3E");content:" "}.form-checkbox:checked[disabled]+.form-checkbox-text::before{border-color:#c4cacf;background-color:#c4cacf}.form-checkbox-label{position:relative;margin-bottom:.75rem;line-height:1.5}.form-input-date{cursor:default}.calendar{position:absolute;z-index:8;top:100%;display:none;width:18rem;padding:.5rem;border:1px solid #c4cacf;border-radius:4px;margin:3px 1rem 1rem;background-color:#fcfcfd;box-shadow:0 .0625rem .25rem rgba(6,27,45,.1),.125rem .25rem .375rem rgba(6,27,45,.1),.125rem .5rem .75rem rgba(6,27,45,.1);color:#22272a}.calendar-header{margin-bottom:.5rem}.calendar-buttons{margin:0 -0.5rem;font-size:0}.calendar-buttons button{width:33.3%}.calendar button{padding:0 .5rem;border:0;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#22272a;cursor:pointer;font-size:.875rem;outline:none}.calendar button:hover{color:#1d86e1}.calendar button:focus{outline:none}.calendar-buttons .currentMonth{font-weight:600}.calendar-table{width:100%}.calendar-table td{width:14%;cursor:default;text-align:center;user-select:none}.calendar-time{width:50%;margin:0 auto;text-align:center}.calendar-header-day{font-size:.875rem}.calendar-day{border-radius:4px;transition:background-color 150ms,color 150ms}.calendar-day:hover{background-color:#176bb4;color:#fff}.calendar-day.selected{background-color:#1d86e1;color:#fff}.calendar-prev-month-day,.calendar-next-month-day{color:#c4cacf}.calendar-separator{height:0;border-top:1px solid #c4cacf;margin:.5rem -0.5rem}.form-input-duration{box-sizing:border-box;padding:.25rem .25rem;border:1px solid #c4cacf;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;user-select:none}.form-input-duration.focused{border-color:#1d86e1}.form-input-duration>span{text-align:center}.form-input-duration .form-input,.form-input-duration .form-select,.form-input-duration .form-textarea{width:2rem;padding:0;border:0;margin:0;appearance:textfield;background-color:#ebedef;text-align:center;vertical-align:baseline}.form-input-duration .form-input::-webkit-inner-spin-button,.form-input-duration .form-select::-webkit-inner-spin-button,.form-input-duration .form-textarea::-webkit-inner-spin-button,.form-input-duration .form-input::-webkit-outer-spin-button,.form-input-duration .form-select::-webkit-outer-spin-button,.form-input-duration .form-textarea::-webkit-outer-spin-button{margin:0;appearance:none}.form-input-duration .form-input:focus,.form-input-duration .form-select:focus,.form-input-duration .form-textarea:focus{outline:none}.form-input-duration .form-label{padding:0 .5rem;margin:0}.form-input-duration-hidden{display:none}.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:blue}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, 0.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.editor-toolbar{padding:.125rem .25rem;border:1px solid #c4cacf;background-color:#f7f7f8;border-top-left-radius:4px;border-top-right-radius:4px}.toolbar-button{padding:.5rem}.toolbar-button:hover,.toolbar-button:focus{background-color:#e0e3e6;color:#1d86e1}.toolbar-button:focus{outline:2px solid rgba(2,136,252,.375)}.toolbar-button .icon{margin-right:0}.editor-textarea{min-height:6rem;max-height:46.5rem;padding:.75rem 1rem;border:1px solid #c4cacf;border-radius:4px;margin-bottom:.5rem;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:1rem}.editor-textarea:focus{outline:none}.CodeMirror{min-height:6rem;max-height:46.5rem;padding:0 1rem;border:1px solid #c4cacf;border-radius:4px;margin-bottom:.5rem;background:#fcfcfd;color:#22272a;font-family:-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Helvetica","Arial",sans-serif;font-size:1rem;resize:vertical}.CodeMirror-wrap .CodeMirror-line-like.CodeMirror-placeholder{color:#707e89}.CodeMirror-lines{padding:.75rem 0}.CodeMirror-lines pre{padding:0 !important}.editor-toolbar+.editor-textarea,.editor-textarea+.CodeMirror{border-top-width:0;border-top-left-radius:0;border-top-right-radius:0}.editor-wrap{border-radius:4px;margin-bottom:.75rem}.editor-wrap.focused .editor-toolbar,.editor-wrap.focused .CodeMirror{border-color:#1d86e1}.CodeMirror-cursor{border-left-color:#22272a}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler{background-color:inherit}.CodeMirror-selected{background:rgba(0,0,0,0)}.CodeMirror-focused .CodeMirror-selected{background:rgba(29,134,225,.25)}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:rgba(29,134,225,.25)}.cm-formatting-code-block,.cm-formatting-list{display:inline !important}.cm-formatting,.cm-image-alt-text,.cm-url{display:none}.CodeMirror-activeline .cm-formatting,.CodeMirror-activeline .cm-image-alt-text,.CodeMirror-activeline .cm-url{display:inline}.cm-s-formwork .cm-formatting{color:#707e89}.cm-s-formwork .cm-header-1{font-size:1.75rem}.cm-s-formwork .cm-header-2{font-size:1.5rem}.cm-s-formwork .cm-header-3{font-size:1.25rem}.cm-s-formwork .cm-comment{font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875rem}.cm-s-formwork .cm-comment.cm-header-1{font-size:1.53125rem}.cm-s-formwork .cm-comment.cm-header-2{font-size:1.3125rem}.cm-s-formwork .cm-comment.cm-header-3{font-size:1.09375rem}.cm-s-formwork .cm-quote{color:#707e89}.cm-s-formwork .cm-formatting-quote+.cm-quote{padding-left:1.25rem;background:#fcfcfd url('data:image/svg+xml;utf8,') no-repeat left center;background-size:1rem 1rem}.cm-s-formwork .CodeMirror-activeline .cm-formatting-quote+.cm-quote{padding-left:0;background:rgba(0,0,0,0)}.cm-s-formwork .cm-link{color:#1d86e1;text-decoration:underline}.cm-s-formwork .cm-url.cm-formatting,.cm-s-formwork .cm-image-alt-text.cm-formatting,.cm-s-formwork .cm-image-marker{color:#1d86e1}.cm-s-formwork .cm-url,.cm-s-formwork .cm-image-alt-text{color:#707e89;text-decoration:none}.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting){display:inline;padding:0 .25rem 0 1.5rem;border-radius:4px;background:#fcfcfd url('data:image/svg+xml;utf8,') no-repeat left .25rem center;background-color:#ebedef;background-size:1rem 1rem;color:#22272a}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting){padding:0;background:rgba(0,0,0,0);color:#707e89}.cm-s-formwork .cm-hr{color:#707e89}.cm-s-formwork .cm-tag{color:#25a35a}.cm-s-formwork .cm-bracket{color:#22272a}.cm-s-formwork .cm-attribute{color:#8c68cd}.cm-s-formwork .cm-bracket,.cm-s-formwork .cm-md-xml{font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875rem}.form-input-file{display:none}.form-input-file-label{display:block;padding:.5rem;margin-bottom:1rem;background-color:#f7f7f8;clear:both;font-size:.875rem}.form-input-file-label>span{display:block;padding:1.5rem 1rem;border:2px dashed #c4cacf;border-radius:4px;color:#22272a;text-align:center;transition:background-color 300ms}.form-input-file-label>span:hover{background-color:#ebedef}.form-input-file-label.drag>span{background-color:#ebedef}.form-input-image{cursor:default}.image-picker-thumbnails{overflow:auto;height:15rem;padding:.5rem;margin-bottom:1rem}.image-picker-thumbnail{position:relative;display:inline-block;width:8rem;height:8rem;box-sizing:border-box;padding:.5rem;border:1px solid #c4cacf;border-radius:4px;margin:.25rem;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:contain}.image-picker-thumbnail::after{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:4px;background-color:rgba(224,227,230,.9);content:attr(data-filename);font-size:.75rem;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-picker-thumbnail.selected{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.image-picker-empty-state{margin:3rem auto 4rem;text-align:center}.image-picker-empty-state-icon{color:#8c97a1;font-size:2rem}.form-input[type=range],[type=range].form-select,[type=range].form-textarea{--progress: 0;position:relative;z-index:1;padding:.875rem 0;border:0;margin-bottom:0;background-color:rgba(0,0,0,0);appearance:none}.form-input[type=range]::-webkit-slider-runnable-track,[type=range].form-select::-webkit-slider-runnable-track,[type=range].form-textarea::-webkit-slider-runnable-track{width:100%;height:.375rem;border:0;border-radius:.1875rem;background:linear-gradient(90deg, #1d86e1 var(--progress), #c4cacf var(--progress));background-color:#c4cacf;cursor:default}.form-input[type=range]::-webkit-slider-thumb,[type=range].form-select::-webkit-slider-thumb,[type=range].form-textarea::-webkit-slider-thumb{width:1.125rem;height:1.125rem;border:0;border-radius:50%;margin-top:-0.375rem;background-color:#1d86e1;cursor:default;transition:background-color 150ms;appearance:none}.form-input[type=range]::-moz-range-track,[type=range].form-select::-moz-range-track,[type=range].form-textarea::-moz-range-track{width:100%;height:.375rem;border:0;border-radius:.1875rem;background:linear-gradient(90deg, #1d86e1 var(--progress), #c4cacf var(--progress));background-color:#c4cacf}.form-input[type=range]::-moz-range-thumb,[type=range].form-select::-moz-range-thumb,[type=range].form-textarea::-moz-range-thumb{width:1.125rem;height:1.125rem;border:0;border-radius:50%;background-color:#1d86e1;cursor:default;transition:background-color 150ms;appearance:none}.form-input[type=range]:focus,[type=range].form-select:focus,[type=range].form-textarea:focus{outline:none}.form-input[type=range]:hover::-webkit-slider-thumb,[type=range].form-select:hover::-webkit-slider-thumb,[type=range].form-textarea:hover::-webkit-slider-thumb,.form-input[type=range]:hover::-moz-range-thumb,[type=range].form-select:hover::-moz-range-thumb,[type=range].form-textarea:hover::-moz-range-thumb{background-color:#176bb4}.form-input[type=range][disabled],[type=range][disabled].form-select,[type=range][disabled].form-textarea{background-color:rgba(0,0,0,0)}.form-input[type=range][disabled]::-webkit-slider-thumb,[type=range][disabled].form-select::-webkit-slider-thumb,[type=range][disabled].form-textarea::-webkit-slider-thumb,.form-input[type=range][disabled]::-moz-range-thumb,[type=range][disabled].form-select::-moz-range-thumb,[type=range][disabled].form-textarea::-moz-range-thumb{background-color:#707e89}.form-input[type=range]:focus::-webkit-slider-thumb,[type=range].form-select:focus::-webkit-slider-thumb,[type=range].form-textarea:focus::-webkit-slider-thumb{background-color:#176bb4;outline:2px solid rgba(2,136,252,.375)}.form-input[type=range]:focus::-moz-range-thumb,[type=range].form-select:focus::-moz-range-thumb,[type=range].form-textarea:focus::-moz-range-thumb{background-color:#176bb4;outline:2px solid rgba(2,136,252,.375)}.form-input-range-value{min-width:3rem;padding:.25rem .5rem;font-size:.875rem;user-select:none}.form-input-range{position:relative;width:100%;margin-bottom:.5rem}.form-input-range-ticks{position:absolute;right:0;bottom:.625rem;left:0;display:flex;justify-content:space-between;padding:0 .5625rem}.form-input-range-ticks .tick{width:1px;height:.375rem;background-color:#c4cacf}.form-input-tag{position:relative;display:block;box-sizing:border-box;padding:.25rem .25rem;padding-bottom:0;border:1px solid #c4cacf;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;user-select:none}.form-input-tag.focused{border-color:#1d86e1}.tag-inner-input{display:inline-block;width:auto;max-width:100%;box-sizing:border-box;padding:0 .25rem;border:0;border-radius:0;margin-bottom:.25rem;font-family:inherit;font-size:.875rem;line-height:inherit}.tag-inner-input:focus{outline:none}.form-input-tag-hidden{display:none}.form-input-tag .tag{display:inline-block;box-sizing:border-box;padding:0 .375rem;border-radius:4px;margin-bottom:.25rem;background-color:#ebedef;cursor:default;font-size:.875rem;user-select:none}.form-input-tag.disabled,.form-input-tag.disabled .tag-inner-input{background-color:#f7f7f8}.form-input-tag.disabled .tag{background-color:#e0e3e6}.tag-remove{display:inline-block;padding:0 .125rem;margin-left:.25rem;color:#22272a;font-style:normal;transition:color 150ms}.tag-remove:hover{color:#1d86e1}.tag-remove::after{content:"×";font-weight:600}.form-togglegroup{display:inline-block;border:1px solid #c4cacf;border-radius:4px;margin:0;margin-bottom:.75rem;font-size:0}.form-togglegroup:focus-within{border-color:#1d86e1;outline:2px solid rgba(2,136,252,.375)}.form-togglegroup .form-label{margin:0}.form-togglegroup .form-input[type=radio],.form-togglegroup [type=radio].form-select,.form-togglegroup [type=radio].form-textarea{position:absolute;opacity:0}.form-togglegroup .form-input[type=radio]+span,.form-togglegroup [type=radio].form-select+span,.form-togglegroup [type=radio].form-textarea+span{display:inline-block;padding:.25rem .75rem;border-radius:3px;font-size:.875rem;transition:background-color 150ms,color 150ms}.form-togglegroup .form-input[type=radio]:hover+span,.form-togglegroup [type=radio].form-select:hover+span,.form-togglegroup [type=radio].form-textarea:hover+span{background-color:#f7f7f8}.form-togglegroup .form-input[type=radio]:checked+span,.form-togglegroup [type=radio].form-select:checked+span,.form-togglegroup [type=radio].form-textarea:checked+span{background-color:#1d86e1;color:#fff}.form-togglegroup .form-input[type=radio]:focus+span,.form-togglegroup [type=radio].form-select:focus+span,.form-togglegroup [type=radio].form-textarea:focus+span{background-color:#176bb4}.form-togglegroup[disabled] .form-input[type=radio]+span,.form-togglegroup[disabled] [type=radio].form-select+span,.form-togglegroup[disabled] [type=radio].form-textarea+span{background-color:rgba(0,0,0,0);color:#22272a}.form-togglegroup[disabled] .form-input[type=radio]:checked+span,.form-togglegroup[disabled] [type=radio].form-select:checked+span,.form-togglegroup[disabled] [type=radio].form-textarea:checked+span{background-color:#e0e3e6}.form-togglegroup .form-input[type=radio]:checked:hover+span,.form-togglegroup [type=radio].form-select:checked:hover+span,.form-togglegroup [type=radio].form-textarea:checked:hover+span{background-color:#176bb4}.header{position:sticky;z-index:9;top:3.5rem;display:flex;min-height:4.5rem;align-items:center;padding:.5rem 1rem;border-bottom:1px solid #e0e3e6;margin-bottom:1rem;background-color:#f7f7f8;white-space:nowrap}@media(min-width: 768px){.header{padding:.5rem 1.5rem;margin-right:-1rem;margin-left:-1rem}}@media(min-width: 1024px){.header{min-height:5.5rem;margin-right:-1.5rem;margin-bottom:1.75rem;margin-left:-1.5rem}}.header-title{overflow:hidden;flex-grow:1;font-size:1.2rem;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.icon{display:inline-block;width:1em;min-width:16px;height:1em;min-height:16px;vertical-align:-0.125rem}.logo{margin-bottom:2rem;color:#22272a;font-size:1.2rem;font-weight:600;line-height:1.5rem;text-align:center}@media(min-width: 1024px){.logo{text-align:left}}.logo img{height:1.5rem;margin-right:.25rem;vertical-align:-0.25rem}.logo a{padding-top:2px;color:#22272a}.modal-backdrop{position:fixed;z-index:16;background-color:rgba(6,27,45,.5);inset:0}.modal{position:fixed;z-index:20;display:none;align-items:center;inset:0;outline:0}.modal.show{display:flex}.modal-header,.modal-content,.modal-footer{padding:1rem 1.5rem}.modal-header{border-bottom:1px solid #e0e3e6}.modal-footer{border-top:1px solid #e0e3e6}.modal-container{width:26rem;max-width:26rem;border:1px solid #c4cacf;border-radius:4px;margin:3rem .5rem;background-color:#fcfcfd;box-shadow:.125rem .125rem .5rem rgba(6,27,45,.15),.125rem .25rem .5rem rgba(6,27,45,.15),.5rem .5rem 1rem rgba(6,27,45,.15)}@media(width >= 26rem){.modal-container{margin:3rem auto}}.modal-size-large{width:40rem;max-width:40rem}@media(width <= 40rem){.modal-size-large{margin:3rem .5rem}}.notification-container{position:fixed;z-index:14;top:20px;right:20px}.notification{position:relative;overflow:hidden;width:350px;padding:1.5rem 2.5rem;border-radius:4px;margin-bottom:.5rem;animation:fade-in-right 300ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#ebedef;box-shadow:0 .0625rem .25rem rgba(6,27,45,.1),.125rem .25rem .375rem rgba(6,27,45,.1),.125rem .5rem .75rem rgba(6,27,45,.1);cursor:default;text-overflow:ellipsis;transition:top 300ms ease-in,opacity 150ms}.notification:hover{opacity:.95}.notification.fadeout{animation:fade-out-right 300ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}.notification .icon{position:absolute;top:50%;left:1rem;display:block;width:16px;height:16px;color:#fff;transform:translate(0, -50%)}.notification-info,.notification-success,.notification-warning,.notification-danger{padding-left:3.25rem}.notification-info{background-color:#1d86e1;color:#fff}.notification-success{background-color:#25a35a;color:#fff}.notification-warning{background-color:#f39c11;color:#fff}.notification-danger{background-color:#e74c3b;color:#fff}.pages-tree{padding:0;margin:0;list-style-type:none;user-select:none}.pages-tree .pages-tree{display:none}.pages-tree-root{border-top:1px solid #e0e3e6}.pages-tree-headers{display:flex;align-items:center;padding:.25rem 0;font-weight:600;user-select:none}.pages-tree-row{display:flex;align-items:center;padding:.5rem 0;border-bottom:1px solid #e0e3e6}.pages-tree-row:hover{background-color:#f7f7f8}.pages-tree-item{position:relative}.pages-tree-item::before{position:absolute;z-index:1;top:-2.125rem;width:1.625rem;height:3.625rem;border-bottom:2px solid #e0e3e6;border-left:2px solid #e0e3e6}.pages-tree-item::after{position:absolute;z-index:1;top:-2.125rem;width:1.625rem;height:100%;border-left:2px solid #e0e3e6}.is-filtered .pages-tree-item::before,.is-filtered .pages-tree-item::after{display:none}.pages-tree-item:last-child::after,.is-dragging>.pages-tree-item:nth-last-child(2)::after{display:none}.pages-tree-item.has-children::before,.pages-tree-item.has-children::after,.is-reordering .pages-tree-item.is-orderable::before,.is-reordering .pages-tree-item.is-orderable::after{width:.875rem}.is-reordering .pages-tree-item:not(.is-orderable,.has-children)::before,.is-reordering .pages-tree-item:not(.is-orderable,.has-children)::after{width:2.375rem}.pages-tree-level-2::before,.pages-tree-level-2::after{left:.625rem;content:""}.pages-tree-level-2 .page-details{padding-left:1.75rem}.pages-tree-level-3::before,.pages-tree-level-3::after{left:2.25rem;content:""}.pages-tree-level-3 .page-details{padding-left:3.5rem}.pages-tree-level-4::before,.pages-tree-level-4::after{left:4rem;content:""}.pages-tree-level-4 .page-details{padding-left:5.25rem}.pages-tree-level-5::before,.pages-tree-level-5::after{left:5.75rem;content:""}.pages-tree-level-5 .page-details{padding-left:7rem}.pages-tree-level-6::before,.pages-tree-level-6::after{left:7.5rem;content:""}.pages-tree-level-6 .page-details{padding-left:8.75rem}.pages-tree-level-7::before,.pages-tree-level-7::after{left:9.25rem;content:""}.pages-tree-level-7 .page-details{padding-left:10.5rem}.pages-tree-level-8::before,.pages-tree-level-8::after{left:11rem;content:""}.pages-tree-level-8 .page-details{padding-left:12.25rem}.pages-tree-level-9::before,.pages-tree-level-9::after{left:12.75rem;content:""}.pages-tree-level-9 .page-details{padding-left:14rem}.pages-tree-level-10::before,.pages-tree-level-10::after{left:14.5rem;content:""}.pages-tree-level-10 .page-details{padding-left:15.75rem}.pages-tree-item-cell,.pages-tree-headers-cell{padding:.25rem;font-size:.875rem}.page-details{min-width:0}.pages-tree-icon{min-width:1rem}.pages-tree-children-toggle{padding:0;border:0;color:#707e89;cursor:pointer}.pages-tree-children-toggle .icon{margin-right:0;transition:transform 150ms,color 150ms}.pages-tree-row .sortable-handle{display:none}.pages-tree.is-filtered .sortable-handle{display:none}.pages-tree.is-filtered .pages-tree-children-toggle{display:none}.pages-tree.is-reordering .sortable-handle{display:block}.pages-tree-children{display:none}.sortable-chosen .pages-tree-item-cell{background-color:rgba(0,0,0,0);opacity:.5}.sortable-chosen .pages-tree-children,.sortable-fallback .pages-tree-children{display:none !important}.sortable-chosen .pages-tree-children-toggle .icon,.sortable-fallback .pages-tree-children-toggle .icon{transform:none !important}.sortable-fallback .pages-tree-item-cell{opacity:1}.pages-tree-item.is-expanded>.pages-tree-children{display:block}.pages-tree-item.is-expanded>.pages-tree-row .pages-tree-children-toggle .icon{transform:rotate(-180deg)}.is-dragging{cursor:grab !important}.is-dragging>.is-not-orderable *{cursor:no-drop !important}.is-dragging>.is-not-orderable .pages-tree-row:hover{background-color:#fadbd8}.panel-header{position:fixed;z-index:10;top:0;right:0;left:0;display:flex;align-items:center;padding:.75rem;padding-left:4rem;background-color:#e0e3e6;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05);color:#22272a;font-weight:500;user-select:none}@media(min-width: 1024px){.panel-header{left:16rem;padding-left:1.5rem}}.panel-user-card{display:flex;align-items:center;margin-bottom:2rem;cursor:pointer}.panel-user-avatar{width:48px}.panel-user-avatar img{width:48px;border-radius:50%;transition:box-shadow 300ms ease-out}.panel-user-card:hover .panel-user-avatar img{box-shadow:0 0 0 .5rem #e0e3e6}.panel-user-details{padding:0 .75rem}.panel-user-fullname{color:#22272a}.panel-user-username{color:#707e89;font-size:.875rem}.panel-main{padding-top:4rem}@media(min-width: 1024px){.panel-main{padding:1.875rem;padding-top:4rem;padding-left:17.875rem}}.section{padding:1.5rem 1.25rem;margin-bottom:1rem;background-color:#fcfcfd;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05)}@media(min-width: 768px){.section{padding:1.5rem 1.75rem;border-radius:4px}}.section-header{margin-bottom:1rem;font-size:1rem;font-weight:600;user-select:none}.section.collapsed .section-header{margin-bottom:0}.section-toggle{padding:0;color:#707e89;cursor:pointer}.section-toggle .icon{margin-right:0;transition:transform 150ms,color 150ms}.section.collapsed .section-toggle .icon{transform:rotate(180deg)}.section.collapsed .section-content{display:none}.sidebar{position:fixed;z-index:12;top:0;bottom:0;left:0;width:16rem;padding:1rem 1.5rem;background:linear-gradient(to bottom, #fcfcfd 0%, #f7f7f8 100%);background-color:#fcfcfd;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05);user-select:none}.sidebar.show{display:block}.sidebar-wrapper{height:calc(100% - 9rem);overflow-y:auto}.sidebar-backdrop{position:fixed;z-index:11;background-color:rgba(6,27,45,.5);inset:0}.sidebar-toggle{position:fixed;z-index:13;top:.75rem;left:.75rem;cursor:pointer}.sidebar-navigation{padding:0;margin:0;margin-bottom:1rem;list-style-type:none}.sidebar-navigation:last-child{margin-bottom:0}.sidebar-navigation>li{position:relative;padding:.25rem 0;padding-left:1rem;margin:0;margin-bottom:.5rem}.sidebar-navigation>li a{color:#22272a}.sidebar-navigation>.active{font-weight:600}.sidebar-navigation>.active::before{position:absolute;top:0;bottom:0;left:0;width:3px;background-color:#1d86e1;content:" "}.sortable-handle .icon{display:inline-block;margin-bottom:0;color:#707e89;cursor:grab}.sortable-chosen,.sortable-ghost{background-color:#fcfcfd;cursor:grabbing}.sortable-chosen *{cursor:grabbing}.sortable-fallback{box-shadow:0 0 .75rem .25rem rgba(6,27,45,.15)}.sortable-fallback::before,.sortable-fallback::after{display:none}.spinner{position:relative;display:inline-block;width:1.5rem;height:1.5rem;border-width:.2rem;border-style:solid;border-color:#1d86e1;border-radius:50%;border-bottom-color:rgba(0,0,0,0);border-left-color:rgba(0,0,0,0);margin-right:.75rem;animation:750ms spin infinite linear;text-align:center;transition:border 500ms;transition-timing-function:ease-out;vertical-align:-0.375rem}.spinner .icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.spinner-info{border-color:#1d86e1;animation:none;color:#1d86e1}.spinner-success{border-color:#2ecc70;animation:none;color:#2ecc70}.spinner-danger{border-color:#e74c3b;animation:none;color:#e74c3b}.table{width:100%;border-collapse:collapse;table-layout:fixed}.table-header{padding:.5rem;font-weight:600;text-align:left}.table-cell{padding:.5rem}.table-bordered .table-cell{border-top:1px solid #e0e3e6;border-bottom:1px solid #e0e3e6}.table-striped tbody>tr:nth-child(2n+1){background-color:#f7f7f8}.table-hoverable tbody>tr:hover{background-color:#f7f7f8}.table-striped.table-hoverable tbody>tr:hover{background-color:#ebedef}.tabs{padding:2px 2px 0;border-bottom:1px solid #e0e3e6;margin-bottom:1rem;overflow-x:auto;white-space:nowrap;user-select:none}.tabs-tab{display:inline-block;padding:.5rem 1.25rem;color:#22272a;cursor:pointer}.tabs-tab:hover{color:#22272a}.tabs-tab.active{border-bottom:3px solid #1d86e1;font-weight:600}.caption+.tabs{margin-top:-0.5rem}.header+.tabs{margin-top:-0.5rem}@media(min-width: 1024px){.header+.tabs{margin-top:-1.5rem}}.tooltip{position:absolute;z-index:20;display:none;min-width:2rem;padding:.25rem .5rem;border-radius:4px;background-color:rgba(34,39,42,.8);color:#fcfcfd;font-size:.75rem;pointer-events:none;text-align:center}.tooltip .icon{transform:scale(0.75);vertical-align:-0.25rem}.error-container{max-width:32rem;padding:1rem;margin:4rem auto;text-align:center}.error-container h1{color:#8c97a1;user-select:none}.error-container h2{margin-bottom:1rem;font-size:2rem}.error-code{display:block;font-size:8rem;font-weight:400}.error-status{display:block;font-size:1.75rem}.error-container .action{font-size:1.125rem}.error-container .logo{width:3.5rem;height:3.5rem;margin:2rem auto;background-position:center;background-repeat:no-repeat;background-size:cover}.login-modal-container{max-width:24rem;padding:2rem;border-radius:4px;margin:3rem .5rem;background-color:#fcfcfd;box-shadow:0 .0625rem .125rem rgba(6,27,45,.05),0 .0625rem .25rem rgba(6,27,45,.05),0 .125rem .5rem rgba(6,27,45,.05)}@media(width >= 24rem){.login-modal-container{margin:3rem auto}}.login-modal-info,.login-modal-success,.login-modal-warning,.login-modal-danger{position:relative;padding:1rem 2rem 1rem 3.5rem;margin:-2rem -2rem 1rem;border-top-left-radius:4px;border-top-right-radius:4px}.login-modal-info a,.login-modal-success a,.login-modal-warning a,.login-modal-danger a{display:block;color:#fff;text-decoration:underline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.login-modal-info .icon,.login-modal-success .icon,.login-modal-warning .icon,.login-modal-danger .icon{position:absolute;top:50%;left:1rem;display:block;transform:translate(0, -50%)}.login-modal-info{background-color:#1d86e1;color:#fff}.login-modal-success{background-color:#25a35a;color:#fff}.login-modal-warning{background-color:#f39c11;color:#fff}.login-modal-danger{background-color:#e74c3b;color:#fff}.options-form .form-checkbox-label{margin-bottom:.5rem;font-size:1rem}.info-data{width:100%;margin-bottom:1rem;table-layout:fixed}.info-data td{overflow:hidden;padding:.5rem;vertical-align:top}.info-data-key{width:25%}.info-data-value{width:75%;font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono","Menlo","Consolas",monospace;font-size:.875rem;word-break:break-word}.page-details{flex:1}.page-title{padding:2px;margin:-2px;font-size:1rem}.page-route{color:#707e89;font-size:.875rem}.page-route-changeable{padding:2px;margin:-2px}.button .page-language{font-size:.75rem}.page-date{max-width:20%;flex:0 0 20%;text-align:center}.page-status{flex:0 0 20%;text-align:center}.page-status .icon{display:inline-block;margin-right:.375rem}.page-status-published .icon{color:#2ecc70}.page-status-not-published .icon{color:#e74c3b}.page-status-not-routable .icon{color:#f39c11}.page-actions{flex:0 0 15%;text-align:center;white-space:nowrap}.page-actions .button-link{font-size:1rem}.page-info{padding:0 .25rem;margin-bottom:.75rem}.page-slug-change{padding:0;border-color:rgba(0,0,0,0);margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#707e89;cursor:pointer}.page-slug-change:hover,.page-slug-change:focus{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:#707e89}.page-slug-change:focus{outline:2px solid rgba(2,136,252,.375)}.page-slug-change .icon{display:inline-block;margin-right:0;color:#22272a;opacity:0;transition:opacity 150ms}.page-slug-change:hover .icon,.page-slug-change:focus .icon{opacity:1}.is-dragging .page-title{pointer-events:none}.pages-tree.is-filtered .pages-tree-item .page-details{padding-left:0}.page-file-preview-container{display:flex;justify-content:center;background-color:#e0e3e6}.page-file-preview-link{cursor:zoom-in;line-height:0}.page-file-preview-image{max-height:40.5rem;object-fit:contain;background-image:linear-gradient(45deg, rgba(0, 0, 0, 0.125) 25%, transparent 25%),linear-gradient(-45deg, rgba(0, 0, 0, 0.125) 25%, transparent 25%),linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.125) 75%),linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.125) 75%);background-position:0 0,0 .75rem,.75rem -0.75rem,-0.75rem 0;background-size:1.5rem 1.5rem}.page-file-info-entry-title{font-weight:600}.page-file-info-entry-uri{word-break:break-word}.user-summary{display:flex;align-items:center}.user-summary-avatar{max-width:33.3333%;flex:0 0 33.3333%;padding:.75rem;text-align:center}.user-summary-avatar img{width:180px;border-radius:50%}.user-summary-data{padding:.75rem}.users-list{border-top:1px solid #e0e3e6;user-select:none}.users-list-headers{display:flex;align-items:center;padding:.25rem 0;font-size:.875rem;font-weight:600;user-select:none}.users-item{display:flex;align-items:center;padding:.5rem 0;border-bottom:1px solid #e0e3e6}.users-item:hover{background-color:#f7f7f8}.users-item-cell,.users-headers-cell{padding:.25rem .5rem}.user-username{flex:1}.user-avatar{display:inline-block;width:2rem;height:2rem;border-radius:50%;vertical-align:middle}.user-fullname,.user-email{max-width:25%;flex:0 0 25%;font-size:.875rem}.user-last-access{max-width:20%;flex:0 0 20%;font-size:.875rem;text-align:center}.user-actions{flex:0 0 10%;text-align:center}.m-0{margin:0}.m-1{margin:0.125rem}.m-2{margin:0.25rem}.m-3{margin:0.375rem}.m-4{margin:0.5rem}.m-5{margin:0.625rem}.m-6{margin:0.75rem}.m-7{margin:0.875rem}.m-8{margin:1rem}.m-9{margin:1.5rem}.m-10{margin:2rem}.mt-0{margin-top:0}.mt-1{margin-top:0.125rem}.mt-2{margin-top:0.25rem}.mt-3{margin-top:0.375rem}.mt-4{margin-top:0.5rem}.mt-5{margin-top:0.625rem}.mt-6{margin-top:0.75rem}.mt-7{margin-top:0.875rem}.mt-8{margin-top:1rem}.mt-9{margin-top:1.5rem}.mt-10{margin-top:2rem}.ml-0{margin-left:0}.ml-1{margin-left:0.125rem}.ml-2{margin-left:0.25rem}.ml-3{margin-left:0.375rem}.ml-4{margin-left:0.5rem}.ml-5{margin-left:0.625rem}.ml-6{margin-left:0.75rem}.ml-7{margin-left:0.875rem}.ml-8{margin-left:1rem}.ml-9{margin-left:1.5rem}.ml-10{margin-left:2rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:0.125rem}.mb-2{margin-bottom:0.25rem}.mb-3{margin-bottom:0.375rem}.mb-4{margin-bottom:0.5rem}.mb-5{margin-bottom:0.625rem}.mb-6{margin-bottom:0.75rem}.mb-7{margin-bottom:0.875rem}.mb-8{margin-bottom:1rem}.mb-9{margin-bottom:1.5rem}.mb-10{margin-bottom:2rem}.mr-0{margin-right:0}.mr-1{margin-right:0.125rem}.mr-2{margin-right:0.25rem}.mr-3{margin-right:0.375rem}.mr-4{margin-right:0.5rem}.mr-5{margin-right:0.625rem}.mr-6{margin-right:0.75rem}.mr-7{margin-right:0.875rem}.mr-8{margin-right:1rem}.mr-9{margin-right:1.5rem}.mr-10{margin-right:2rem}.p-0{padding:0}.p-1{padding:0.125rem}.p-2{padding:0.25rem}.p-3{padding:0.375rem}.p-4{padding:0.5rem}.p-5{padding:0.625rem}.p-6{padding:0.75rem}.p-7{padding:0.875rem}.p-8{padding:1rem}.p-9{padding:1.5rem}.p-10{padding:2rem}.pt-0{padding-top:0}.pt-1{padding-top:0.125rem}.pt-2{padding-top:0.25rem}.pt-3{padding-top:0.375rem}.pt-4{padding-top:0.5rem}.pt-5{padding-top:0.625rem}.pt-6{padding-top:0.75rem}.pt-7{padding-top:0.875rem}.pt-8{padding-top:1rem}.pt-9{padding-top:1.5rem}.pt-10{padding-top:2rem}.pl-0{padding-left:0}.pl-1{padding-left:0.125rem}.pl-2{padding-left:0.25rem}.pl-3{padding-left:0.375rem}.pl-4{padding-left:0.5rem}.pl-5{padding-left:0.625rem}.pl-6{padding-left:0.75rem}.pl-7{padding-left:0.875rem}.pl-8{padding-left:1rem}.pl-9{padding-left:1.5rem}.pl-10{padding-left:2rem}.pb-0{padding-bottom:0}.pb-1{padding-bottom:0.125rem}.pb-2{padding-bottom:0.25rem}.pb-3{padding-bottom:0.375rem}.pb-4{padding-bottom:0.5rem}.pb-5{padding-bottom:0.625rem}.pb-6{padding-bottom:0.75rem}.pb-7{padding-bottom:0.875rem}.pb-8{padding-bottom:1rem}.pb-9{padding-bottom:1.5rem}.pb-10{padding-bottom:2rem}.pr-0{padding-right:0}.pr-1{padding-right:0.125rem}.pr-2{padding-right:0.25rem}.pr-3{padding-right:0.375rem}.pr-4{padding-right:0.5rem}.pr-5{padding-right:0.625rem}.pr-6{padding-right:0.75rem}.pr-7{padding-right:0.875rem}.pr-8{padding-right:1rem}.pr-9{padding-right:1.5rem}.pr-10{padding-right:2rem}.min-w-0{min-width:0}.min-w-100{min-width:100%}.max-w-0{max-width:0}.max-w-100{max-width:100%}.flex{display:flex}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.flex-grow-0{flex-grow:0}.flex-grow-1{flex-grow:1}.text-size-xs{font-size:0.75rem}.text-size-sm{font-size:0.875rem}.text-size-md{font-size:1rem}.text-size-lg{font-size:1.5rem}.text-size-xl{font-size:2rem}.text-size-xxl{font-size:3rem}.text-color-blue{color:#1d86e1}.text-color-green{color:#25a35a}.text-color-yellow{color:#ffd700}.text-color-amber{color:#f39c11}.text-color-red{color:#e74c3b}.text-color-purple{color:#6f42c1}.text-color-accent{color:#1d86e1}.text-color-gray-dark{color:#49525a}.text-color-gray-medium{color:#707e89}.text-color-gray-light{color:#c4cacf}.text-color-success{color:#2ecc70}.text-color-warning{color:#f39c11}.text-color-danger{color:#e74c3b}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace{white-space:nowrap}.whitespace-wrap{white-space:normal}@media(min-width: 600px){.hide-from-xs{display:none}}@media(max-width: 599px){.show-from-xs{display:none}}@media(min-width: 768px){.hide-from-sm{display:none}}@media(max-width: 767px){.show-from-sm{display:none}}@media(min-width: 1024px){.hide-from-md{display:none}}@media(max-width: 1023px){.show-from-md{display:none}}@media(min-width: 1280px){.hide-from-lg{display:none}}@media(max-width: 1279px){.show-from-lg{display:none}} diff --git a/panel/assets/icons/svg/arrow-left-circle.svg b/panel/assets/icons/svg/arrow-left-circle.svg new file mode 100644 index 00000000..8d9cacb2 --- /dev/null +++ b/panel/assets/icons/svg/arrow-left-circle.svg @@ -0,0 +1 @@ + diff --git a/panel/assets/icons/svg/page-down.svg b/panel/assets/icons/svg/page-down.svg new file mode 100644 index 00000000..41d2c5b8 --- /dev/null +++ b/panel/assets/icons/svg/page-down.svg @@ -0,0 +1 @@ + diff --git a/panel/assets/icons/svg/page-up.svg b/panel/assets/icons/svg/page-up.svg new file mode 100644 index 00000000..da9a1c49 --- /dev/null +++ b/panel/assets/icons/svg/page-up.svg @@ -0,0 +1 @@ + diff --git a/panel/assets/icons/svg/sparks.svg b/panel/assets/icons/svg/sparks.svg new file mode 100644 index 00000000..03681d35 --- /dev/null +++ b/panel/assets/icons/svg/sparks.svg @@ -0,0 +1 @@ + diff --git a/panel/assets/js/app.min.js b/panel/assets/js/app.min.js index c372cd55..b3f1bb3d 100644 --- a/panel/assets/js/app.min.js +++ b/panel/assets/js/app.min.js @@ -1,36 +1,36 @@ -var Formwork=(()=>{var Eh=Object.create;var mi=Object.defineProperty,Lh=Object.defineProperties,Sh=Object.getOwnPropertyDescriptor,Th=Object.getOwnPropertyDescriptors,kh=Object.getOwnPropertyNames,mo=Object.getOwnPropertySymbols,Ch=Object.getPrototypeOf,wl=Object.prototype.hasOwnProperty,sf=Object.prototype.propertyIsEnumerable;var xl=(u,o,a)=>o in u?mi(u,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):u[o]=a,ot=(u,o)=>{for(var a in o||(o={}))wl.call(o,a)&&xl(u,a,o[a]);if(mo)for(var a of mo(o))sf.call(o,a)&&xl(u,a,o[a]);return u},El=(u,o)=>Lh(u,Th(o));var uf=(u,o)=>{var a={};for(var s in u)wl.call(u,s)&&o.indexOf(s)<0&&(a[s]=u[s]);if(u!=null&&mo)for(var s of mo(u))o.indexOf(s)<0&&sf.call(u,s)&&(a[s]=u[s]);return a};var Lr=(u,o)=>()=>(o||u((o={exports:{}}).exports,o),o.exports),Mh=(u,o)=>{for(var a in o)mi(u,a,{get:o[a],enumerable:!0})},ff=(u,o,a,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of kh(o))!wl.call(u,c)&&c!==a&&mi(u,c,{get:()=>o[c],enumerable:!(s=Sh(o,c))||s.enumerable});return u};var go=(u,o,a)=>(a=u!=null?Eh(Ch(u)):{},ff(o||!u||!u.__esModule?mi(a,"default",{value:u,enumerable:!0}):a,u)),Dh=u=>ff(mi({},"__esModule",{value:!0}),u);var Ue=(u,o,a)=>(xl(u,typeof o!="symbol"?o+"":o,a),a);var Qn=Lr((zl,_l)=>{(function(u,o){typeof zl=="object"&&typeof _l!="undefined"?_l.exports=o():typeof define=="function"&&define.amd?define(o):(u=u||self,u.CodeMirror=o())})(zl,function(){"use strict";var u=navigator.userAgent,o=navigator.platform,a=/gecko\/\d/i.test(u),s=/MSIE \d/.test(u),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(u),h=/Edge\/(\d+)/.exec(u),m=s||c||h,v=m&&(s?document.documentMode||6:+(h||c)[1]),x=!h&&/WebKit\//.test(u),w=x&&/Qt\/\d+\.\d+/.test(u),S=!h&&/Chrome\/(\d+)/.exec(u),k=S&&+S[1],H=/Opera\//.test(u),I=/Apple Computer/.test(navigator.vendor),D=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(u),U=/PhantomJS/.test(u),Z=I&&(/Mobile\/\w+/.test(u)||navigator.maxTouchPoints>2),oe=/Android/.test(u),V=Z||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(u),j=Z||/Mac/.test(o),F=/\bCrOS\b/.test(u),te=/win/i.test(o),Y=H&&u.match(/Version\/(\d*\.\d*)/);Y&&(Y=Number(Y[1])),Y&&Y>=15&&(H=!1,x=!0);var N=j&&(w||H&&(Y==null||Y<12.11)),P=a||m&&v>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var $=function(e,t){var r=e.className,n=R(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function ee(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function _(e,t){return ee(e).appendChild(t)}function L(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var l=0;l=t)return f+(t-l);f+=d-l,f+=r-f%r,l=d+1}}var at=function(){this.id=null,this.f=null,this.time=0,this.handler=Je(this.onTimeout,this)};at.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},at.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r=t)return n+Math.min(f,t-i);if(i+=l-n,i+=r-i%r,n=l+1,i>=t)return n}}var kt=[""];function _t(e){for(;kt.length<=e;)kt.push(be(kt)+" ");return kt[e]}function be(e){return e[e.length-1]}function Ct(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Ii.test(e))}function Jn(e,t){return t?t.source.indexOf("\\w")>-1&&Rr(e)?!0:t.test(e):Rr(e)}function Oi(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ha=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Wr(e){return e.charCodeAt(0)>=768&&ha.test(e)}function Vn(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,l=n<0?Math.ceil(i):Math.floor(i);if(l==t)return e(l)?t:r;e(l)?r=l:t=l+n}}function Ke(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,l=0;lt||t==r&&f.to==t)&&(n(Math.max(f.from,t),Math.min(f.to,r),f.level==1?"rtl":"ltr",l),i=!0)}i||n(t,r,"ltr")}var Nn=null;function we(e,t,r){var n;Nn=null;for(var i=0;it)return i;l.to==t&&(l.from!=l.to&&r=="before"?n=i:Nn=i),l.from==t&&(l.from!=l.to&&r!="before"?n=i:Nn=i)}return n!=null?n:Nn}var Te=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(g){return g<=247?e.charAt(g):1424<=g&&g<=1524?"R":1536<=g&&g<=1785?t.charAt(g-1536):1774<=g&&g<=2220?"r":8192<=g&&g<=8203?"w":g==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,l=/[LRr]/,f=/[Lb1n]/,d=/[1n]/;function p(g,b,E){this.level=g,this.from=b,this.to=E}return function(g,b){var E=b=="ltr"?"L":"R";if(g.length==0||b=="ltr"&&!n.test(g))return!1;for(var M=g.length,C=[],O=0;O-1&&(n[t]=i.slice(0,l).concat(i.slice(l+1)))}}}function ye(e,t){var r=er(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function tr(e){e.prototype.on=function(t,r){ue(this,t,r)},e.prototype.off=function(t,r){Ve(this,t,r)}}function yt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function os(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function pa(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function zr(e){yt(e),os(e)}function ma(e){return e.target||e.srcElement}function as(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),j&&e.ctrlKey&&t==1&&(t=3),t}var pc=function(){if(m&&v<9)return!1;var e=L("div");return"draggable"in e||"dragDrop"in e}(),ga;function mc(e){if(ga==null){var t=L("span","\u200B");_(e,L("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ga=t.offsetWidth<=1&&t.offsetHeight>2&&!(m&&v<8))}var r=ga?L("span","\u200B"):L("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var va;function gc(e){if(va!=null)return va;var t=_(e,document.createTextNode("A\u062EA")),r=W(t,0,1).getBoundingClientRect(),n=W(t,1,2).getBoundingClientRect();return ee(e),!r||r.left==r.right?!1:va=n.right-r.right<3}var ya=` +var Formwork=(()=>{var Eh=Object.create;var mi=Object.defineProperty,Lh=Object.defineProperties,Sh=Object.getOwnPropertyDescriptor,Th=Object.getOwnPropertyDescriptors,kh=Object.getOwnPropertyNames,mo=Object.getOwnPropertySymbols,Ch=Object.getPrototypeOf,wl=Object.prototype.hasOwnProperty,sf=Object.prototype.propertyIsEnumerable;var xl=(u,o,a)=>o in u?mi(u,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):u[o]=a,ot=(u,o)=>{for(var a in o||(o={}))wl.call(o,a)&&xl(u,a,o[a]);if(mo)for(var a of mo(o))sf.call(o,a)&&xl(u,a,o[a]);return u},El=(u,o)=>Lh(u,Th(o));var uf=(u,o)=>{var a={};for(var s in u)wl.call(u,s)&&o.indexOf(s)<0&&(a[s]=u[s]);if(u!=null&&mo)for(var s of mo(u))o.indexOf(s)<0&&sf.call(u,s)&&(a[s]=u[s]);return a};var Lr=(u,o)=>()=>(o||u((o={exports:{}}).exports,o),o.exports),Mh=(u,o)=>{for(var a in o)mi(u,a,{get:o[a],enumerable:!0})},ff=(u,o,a,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of kh(o))!wl.call(u,c)&&c!==a&&mi(u,c,{get:()=>o[c],enumerable:!(s=Sh(o,c))||s.enumerable});return u};var go=(u,o,a)=>(a=u!=null?Eh(Ch(u)):{},ff(o||!u||!u.__esModule?mi(a,"default",{value:u,enumerable:!0}):a,u)),Dh=u=>ff(mi({},"__esModule",{value:!0}),u);var Ue=(u,o,a)=>(xl(u,typeof o!="symbol"?o+"":o,a),a);var Qn=Lr((zl,_l)=>{(function(u,o){typeof zl=="object"&&typeof _l!="undefined"?_l.exports=o():typeof define=="function"&&define.amd?define(o):(u=u||self,u.CodeMirror=o())})(zl,function(){"use strict";var u=navigator.userAgent,o=navigator.platform,a=/gecko\/\d/i.test(u),s=/MSIE \d/.test(u),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(u),h=/Edge\/(\d+)/.exec(u),m=s||c||h,v=m&&(s?document.documentMode||6:+(h||c)[1]),x=!h&&/WebKit\//.test(u),w=x&&/Qt\/\d+\.\d+/.test(u),S=!h&&/Chrome\/(\d+)/.exec(u),k=S&&+S[1],D=/Opera\//.test(u),N=/Apple Computer/.test(navigator.vendor),M=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(u),G=/PhantomJS/.test(u),Z=N&&(/Mobile\/\w+/.test(u)||navigator.maxTouchPoints>2),oe=/Android/.test(u),V=Z||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(u),j=Z||/Mac/.test(o),F=/\bCrOS\b/.test(u),te=/win/i.test(o),Y=D&&u.match(/Version\/(\d*\.\d*)/);Y&&(Y=Number(Y[1])),Y&&Y>=15&&(D=!1,x=!0);var I=j&&(w||D&&(Y==null||Y<12.11)),P=a||m&&v>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var $=function(e,t){var r=e.className,n=R(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function ee(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function _(e,t){return ee(e).appendChild(t)}function L(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var l=0;l=t)return f+(t-l);f+=d-l,f+=r-f%r,l=d+1}}var at=function(){this.id=null,this.f=null,this.time=0,this.handler=Je(this.onTimeout,this)};at.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},at.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r=t)return n+Math.min(f,t-i);if(i+=l-n,i+=r-i%r,n=l+1,i>=t)return n}}var kt=[""];function _t(e){for(;kt.length<=e;)kt.push(be(kt)+" ");return kt[e]}function be(e){return e[e.length-1]}function Ct(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Ii.test(e))}function Jn(e,t){return t?t.source.indexOf("\\w")>-1&&Rr(e)?!0:t.test(e):Rr(e)}function Oi(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ha=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Wr(e){return e.charCodeAt(0)>=768&&ha.test(e)}function Vn(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,l=n<0?Math.ceil(i):Math.floor(i);if(l==t)return e(l)?t:r;e(l)?r=l:t=l+n}}function Ke(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,l=0;lt||t==r&&f.to==t)&&(n(Math.max(f.from,t),Math.min(f.to,r),f.level==1?"rtl":"ltr",l),i=!0)}i||n(t,r,"ltr")}var Nn=null;function we(e,t,r){var n;Nn=null;for(var i=0;it)return i;l.to==t&&(l.from!=l.to&&r=="before"?n=i:Nn=i),l.from==t&&(l.from!=l.to&&r!="before"?n=i:Nn=i)}return n!=null?n:Nn}var Te=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(g){return g<=247?e.charAt(g):1424<=g&&g<=1524?"R":1536<=g&&g<=1785?t.charAt(g-1536):1774<=g&&g<=2220?"r":8192<=g&&g<=8203?"w":g==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,l=/[LRr]/,f=/[Lb1n]/,d=/[1n]/;function p(g,b,E){this.level=g,this.from=b,this.to=E}return function(g,b){var E=b=="ltr"?"L":"R";if(g.length==0||b=="ltr"&&!n.test(g))return!1;for(var A=g.length,C=[],O=0;O-1&&(n[t]=i.slice(0,l).concat(i.slice(l+1)))}}}function ye(e,t){var r=er(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function tr(e){e.prototype.on=function(t,r){ue(this,t,r)},e.prototype.off=function(t,r){Ve(this,t,r)}}function yt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function os(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function pa(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function zr(e){yt(e),os(e)}function ma(e){return e.target||e.srcElement}function as(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),j&&e.ctrlKey&&t==1&&(t=3),t}var pc=function(){if(m&&v<9)return!1;var e=L("div");return"draggable"in e||"dragDrop"in e}(),ga;function mc(e){if(ga==null){var t=L("span","\u200B");_(e,L("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ga=t.offsetWidth<=1&&t.offsetHeight>2&&!(m&&v<8))}var r=ga?L("span","\u200B"):L("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var va;function gc(e){if(va!=null)return va;var t=_(e,document.createTextNode("A\u062EA")),r=W(t,0,1).getBoundingClientRect(),n=W(t,1,2).getBoundingClientRect();return ee(e),!r||r.left==r.right?!1:va=n.right-r.right<3}var ya=` b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf(` -`,t);i==-1&&(i=e.length);var l=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),f=l.indexOf("\r");f!=-1?(r.push(l.slice(0,f)),t+=f+1):(r.push(l),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},vc=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(r){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},yc=function(){var e=L("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ba=null;function bc(e){if(ba!=null)return ba;var t=_(e,L("span","x")),r=t.getBoundingClientRect(),n=W(t,0,1).getBoundingClientRect();return ba=Math.abs(r.left-n.left)>1}var xa={},nr={};function xc(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),xa[e]=t}function wc(e,t){nr[e]=t}function Fi(e){if(typeof e=="string"&&nr.hasOwnProperty(e))e=nr[e];else if(e&&typeof e.name=="string"&&nr.hasOwnProperty(e.name)){var t=nr[e.name];typeof t=="string"&&(t={name:t}),e=Br(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Fi("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Fi("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function wa(e,t){t=Fi(t);var r=xa[t.name];if(!r)return wa(e,"text/plain");var n=r(e,t);if(rr.hasOwnProperty(t.name)){var i=rr[t.name];for(var l in i)i.hasOwnProperty(l)&&(n.hasOwnProperty(l)&&(n["_"+l]=n[l]),n[l]=i[l])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var f in t.modeProps)n[f]=t.modeProps[f];return n}var rr={};function Ec(e,t){var r=rr.hasOwnProperty(e)?rr[e]:rr[e]={};ut(t,r)}function On(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ea(e,t){for(var r;e.innerMode&&(r=e.innerMode(t),!(!r||r.mode==e));)t=r.state,e=r.mode;return r||{mode:e,state:t}}function ls(e,t,r){return e.startState?e.startState(t,r):!0}var je=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};je.prototype.eol=function(){return this.pos>=this.string.length},je.prototype.sol=function(){return this.pos==this.lineStart},je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},je.prototype.next=function(){if(this.post},je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},je.prototype.skipToEnd=function(){this.pos=this.string.length},je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},je.prototype.backUp=function(e){this.pos-=e},je.prototype.column=function(){return this.lastColumnPos0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},je.prototype.current=function(){return this.string.slice(this.start,this.pos)},je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function le(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],l=i.chunkSize();if(t=e.first&&tr?G(r,le(e,r).text.length):Lc(t,le(e,t.line).text.length)}function Lc(e,t){var r=e.ch;return r==null||r>t?G(e.line,t):r<0?G(e.line,0):e}function us(e,t){for(var r=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t},Zt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Zt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Zt.fromSaved=function(e,t,r){return t instanceof Ri?new Zt(e,On(e.mode,t.state),r,t.lookAhead):new Zt(e,On(e.mode,t),r)},Zt.prototype.save=function(e){var t=e!==!1?On(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ri(t,this.maxLookAhead):t};function fs(e,t,r,n){var i=[e.state.modeGen],l={};gs(e,t.text,e.doc.mode,r,function(g,b){return i.push(g,b)},l,n);for(var f=r.state,d=function(g){r.baseTokens=i;var b=e.state.overlays[g],E=1,M=0;r.state=!0,gs(e,t.text,b.mode,r,function(C,O){for(var z=E;MC&&i.splice(E,1,C,i[E+1],q),E+=2,M=Math.min(C,q)}if(O)if(b.opaque)i.splice(z,E-z,C,"overlay "+O),E=z+2;else for(;ze.options.maxHighlightLength&&On(e.doc.mode,n.state),l=fs(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Gr(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new Zt(n,!0,t);var l=Sc(e,t,r),f=l>n.first&&le(n,l-1).stateAfter,d=f?Zt.fromSaved(n,f,l):new Zt(n,ls(n.mode),l);return n.iter(l,t,function(p){Ca(e,p.text,d);var g=d.line;p.stateAfter=g==t-1||g%5==0||g>=i.viewFrom&&gt.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var hs=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function ps(e,t,r,n){var i=e.doc,l=i.mode,f;t=pe(i,t);var d=le(i,t.line),p=Gr(e,t.line,r),g=new je(d.text,e.options.tabSize,p),b;for(n&&(b=[]);(n||g.pose.options.maxHighlightLength?(d=!1,f&&Ca(e,t,n,b.pos),b.pos=t.length,E=null):E=ms(Ma(r,b,n.state,M),l),M){var C=M[0].name;C&&(E="m-"+(E?C+" "+E:C))}if(!d||g!=E){for(;pf;--d){if(d<=l.first)return l.first;var p=le(l,d-1),g=p.stateAfter;if(g&&(!r||d+(g instanceof Ri?g.lookAhead:0)<=l.modeFrontier))return d;var b=Pe(p.text,null,e.options.tabSize);(i==null||n>b)&&(i=d-1,n=b)}return i}function Tc(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=le(e,n).stateAfter;if(i&&(!(i instanceof Ri)||n+i.lookAhead=t:l.to>t);(n||(n=[])).push(new Wi(f,l.from,p?null:l.to))}}return n}function Hc(e,t,r){var n;if(e)for(var i=0;i=t:l.to>t);if(d||l.from==t&&f.type=="bookmark"&&(!r||l.marker.insertLeft)){var p=l.from==null||(f.inclusiveLeft?l.from<=t:l.from0&&d)for(var ne=0;ne0)){var b=[p,1],E=he(g.from,d.from),M=he(g.to,d.to);(E<0||!f.inclusiveLeft&&!E)&&b.push({from:g.from,to:d.from}),(M>0||!f.inclusiveRight&&!M)&&b.push({from:d.to,to:g.to}),i.splice.apply(i,b),p+=b.length-3}}return i}function bs(e){var t=e.markedSpans;if(t){for(var r=0;rt)&&(!n||Aa(n,l.marker)<0)&&(n=l.marker)}return n}function Ls(e,t,r,n,i){var l=le(e,t),f=rn&&l.markedSpans;if(f)for(var d=0;d=0&&E<=0||b<=0&&E>=0)&&(b<=0&&(p.marker.inclusiveRight&&i.inclusiveLeft?he(g.to,r)>=0:he(g.to,r)>0)||b>=0&&(p.marker.inclusiveRight&&i.inclusiveLeft?he(g.from,n)<=0:he(g.from,n)<0)))return!0}}}function qt(e){for(var t;t=Es(e);)e=t.find(-1,!0).line;return e}function Oc(e){for(var t;t=Gi(e);)e=t.find(1,!0).line;return e}function Fc(e){for(var t,r;t=Gi(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function Ha(e,t){var r=le(e,t),n=qt(r);return r==n?t:Ce(n)}function Ss(e,t){if(t>e.lastLine())return t;var r=le(e,t),n;if(!vn(e,r))return t;for(;n=Gi(r);)r=n.find(1,!0).line;return Ce(r)+1}function vn(e,t){var r=rn&&t.markedSpans;if(r){for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var ir=function(e,t,r){this.text=e,xs(this,t),this.height=r?r(this):1};ir.prototype.lineNo=function(){return Ce(this)},tr(ir);function Pc(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),bs(e),xs(e,r);var i=n?n(e):1;i!=e.height&&Qt(e,i)}function Bc(e){e.parent=null,bs(e)}var Rc={},Wc={};function Ts(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Wc:Rc;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function ks(e,t){var r=B("span",null,null,x?"padding-right: .1px":null),n={pre:B("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var l=i?t.rest[i-1]:t.line,f=void 0;n.pos=0,n.addToken=_c,gc(e.display.measure)&&(f=Ut(l,e.doc.direction))&&(n.addToken=Uc(n.addToken,f)),n.map=[];var d=t!=e.display.externalMeasured&&Ce(l);qc(l,n,cs(e,l,d)),l.styleClasses&&(l.styleClasses.bgClass&&(n.bgClass=vt(l.styleClasses.bgClass,n.bgClass||"")),l.styleClasses.textClass&&(n.textClass=vt(l.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(mc(e.display.measure))),i==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(x){var p=n.content.lastChild;(/\bcm-tab\b/.test(p.className)||p.querySelector&&p.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return ye(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=vt(n.pre.className,n.textClass||"")),n}function zc(e){var t=L("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function _c(e,t,r,n,i,l,f){if(t){var d=e.splitSpaces?Gc(t,e.trailingSpace):t,p=e.cm.state.specialChars,g=!1,b;if(!p.test(t))e.col+=t.length,b=document.createTextNode(d),e.map.push(e.pos,e.pos+t.length,b),m&&v<9&&(g=!0),e.pos+=t.length;else{b=document.createDocumentFragment();for(var E=0;;){p.lastIndex=E;var M=p.exec(t),C=M?M.index-E:t.length-E;if(C){var O=document.createTextNode(d.slice(E,E+C));m&&v<9?b.appendChild(L("span",[O])):b.appendChild(O),e.map.push(e.pos,e.pos+C,O),e.col+=C,e.pos+=C}if(!M)break;E+=C+1;var z=void 0;if(M[0]==" "){var q=e.cm.options.tabSize,X=q-e.col%q;z=b.appendChild(L("span",_t(X),"cm-tab")),z.setAttribute("role","presentation"),z.setAttribute("cm-text"," "),e.col+=X}else M[0]=="\r"||M[0]==` -`?(z=b.appendChild(L("span",M[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),z.setAttribute("cm-text",M[0]),e.col+=1):(z=e.cm.options.specialCharPlaceholder(M[0]),z.setAttribute("cm-text",M[0]),m&&v<9?b.appendChild(L("span",[z])):b.appendChild(z),e.col+=1);e.map.push(e.pos,e.pos+1,z),e.pos++}}if(e.trailingSpace=d.charCodeAt(t.length-1)==32,r||n||i||g||l||f){var J=r||"";n&&(J+=n),i&&(J+=i);var K=L("span",[b],J,l);if(f)for(var ne in f)f.hasOwnProperty(ne)&&ne!="style"&&ne!="class"&&K.setAttribute(ne,f[ne]);return e.content.appendChild(K)}e.content.appendChild(b)}}function Gc(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;ig&&E.from<=g));M++);if(E.to>=b)return e(r,n,i,l,f,d,p);e(r,n.slice(0,E.to-g),i,l,null,d,p),l=null,n=n.slice(E.to-g),g=E.to}}}function Cs(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function qc(e,t,r){var n=e.markedSpans,i=e.text,l=0;if(!n){for(var f=1;fp||ve.collapsed&&se.to==p&&se.from==p)){if(se.to!=null&&se.to!=p&&C>se.to&&(C=se.to,z=""),ve.className&&(O+=" "+ve.className),ve.css&&(M=(M?M+";":"")+ve.css),ve.startStyle&&se.from==p&&(q+=" "+ve.startStyle),ve.endStyle&&se.to==C&&(ne||(ne=[])).push(ve.endStyle,se.to),ve.title&&((J||(J={})).title=ve.title),ve.attributes)for(var Ae in ve.attributes)(J||(J={}))[Ae]=ve.attributes[Ae];ve.collapsed&&(!X||Aa(X.marker,ve)<0)&&(X=se)}else se.from>p&&C>se.from&&(C=se.from)}if(ne)for(var rt=0;rt=d)break;for(var Dt=Math.min(d,C);;){if(b){var wt=p+b.length;if(!X){var Ye=wt>Dt?b.slice(0,Dt-p):b;t.addToken(t,Ye,E?E+O:O,q,p+Ye.length==C?z:"",M,J)}if(wt>=Dt){b=b.slice(Dt-p),p=Dt;break}p=wt,q=""}b=i.slice(l,l=r[g++]),E=Ts(r[g++],t.cm.options)}}}function Ms(e,t,r){this.line=t,this.rest=Fc(t),this.size=this.rest?Ce(be(this.rest))-r+1:1,this.node=this.text=null,this.hidden=vn(e,t)}function qi(e,t,r){for(var n=[],i,l=t;l2&&l.push((p.bottom+g.top)/2-r.top)}}l.push(r.bottom-r.top)}}function Fs(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;nr)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function td(e,t){t=qt(t);var r=Ce(t),n=e.display.externalMeasured=new Ms(e.doc,t,r);n.lineN=r;var i=n.built=ks(e,n);return n.text=i.pre,_(e.display.lineMeasure,i.pre),n}function Ps(e,t,r,n){return Vt(e,ar(e,t),r,n)}function Ba(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(l=p-d,i=l-1,t>=p&&(f="right")),i!=null){if(n=e[g+2],d==p&&r==(n.insertLeft?"left":"right")&&(f=r),r=="left"&&i==0)for(;g&&e[g-2]==e[g-3]&&e[g-1].insertLeft;)n=e[(g-=3)+2],f="left";if(r=="right"&&i==p-d)for(;g=0&&(r=e[i]).left==r.right;i--);return r}function rd(e,t,r,n){var i=Rs(t.map,r,n),l=i.node,f=i.start,d=i.end,p=i.collapse,g;if(l.nodeType==3){for(var b=0;b<4;b++){for(;f&&Wr(t.line.text.charAt(i.coverStart+f));)--f;for(;i.coverStart+d0&&(p=n="right");var E;e.options.lineWrapping&&(E=l.getClientRects()).length>1?g=E[n=="right"?E.length-1:0]:g=l.getBoundingClientRect()}if(m&&v<9&&!f&&(!g||!g.left&&!g.right)){var M=l.parentNode.getClientRects()[0];M?g={left:M.left,right:M.left+sr(e.display),top:M.top,bottom:M.bottom}:g=Bs}for(var C=g.top-t.rect.top,O=g.bottom-t.rect.top,z=(C+O)/2,q=t.view.measure.heights,X=0;X=n.text.length?(p=n.text.length,g="before"):p<=0&&(p=0,g="after"),!d)return f(g=="before"?p-1:p,g=="before");function b(O,z,q){var X=d[z],J=X.level==1;return f(q?O-1:O,J!=q)}var E=we(d,p,g),M=Nn,C=b(p,E,g=="before");return M!=null&&(C.other=b(p,M,g!="before")),C}function qs(e,t){var r=0;t=pe(e.doc,t),e.options.lineWrapping||(r=sr(e.display)*t.ch);var n=le(e.doc,t.line),i=on(n)+ji(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function Wa(e,t,r,n,i){var l=G(e,t,r);return l.xRel=i,n&&(l.outside=n),l}function za(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return Wa(n.first,0,null,-1,-1);var i=Pn(n,r),l=n.first+n.size-1;if(i>l)return Wa(n.first+n.size-1,le(n,l).text.length,null,1,1);t<0&&(t=0);for(var f=le(n,i);;){var d=od(e,f,i,t,r),p=Ic(f,d.ch+(d.xRel>0||d.outside>0?1:0));if(!p)return d;var g=p.find(1);if(g.line==i)return g;f=le(n,i=g.line)}}function js(e,t,r,n){n-=Ra(t);var i=t.text.length,l=mn(function(f){return Vt(e,r,f-1).bottom<=n},i,0);return i=mn(function(f){return Vt(e,r,f).top>n},l,i),{begin:l,end:i}}function Ys(e,t,r,n){r||(r=ar(e,t));var i=Yi(e,t,Vt(e,r,n),"line").top;return js(e,t,r,i)}function _a(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function od(e,t,r,n,i){i-=on(t);var l=ar(e,t),f=Ra(t),d=0,p=t.text.length,g=!0,b=Ut(t,e.doc.direction);if(b){var E=(e.options.lineWrapping?ld:ad)(e,t,r,l,b,n,i);g=E.level!=1,d=g?E.from:E.to-1,p=g?E.to:E.from-1}var M=null,C=null,O=mn(function(fe){var se=Vt(e,l,fe);return se.top+=f,se.bottom+=f,_a(se,n,i,!1)?(se.top<=i&&se.left<=n&&(M=fe,C=se),!0):!1},d,p),z,q,X=!1;if(C){var J=n-C.left=ne.bottom?1:0}return O=Vn(t.text,O,1),Wa(r,O,q,X,n-z)}function ad(e,t,r,n,i,l,f){var d=mn(function(E){var M=i[E],C=M.level!=1;return _a(jt(e,G(r,C?M.to:M.from,C?"before":"after"),"line",t,n),l,f,!0)},0,i.length-1),p=i[d];if(d>0){var g=p.level!=1,b=jt(e,G(r,g?p.from:p.to,g?"after":"before"),"line",t,n);_a(b,l,f,!0)&&b.top>f&&(p=i[d-1])}return p}function ld(e,t,r,n,i,l,f){var d=js(e,t,n,f),p=d.begin,g=d.end;/\s/.test(t.text.charAt(g-1))&&g--;for(var b=null,E=null,M=0;M=g||C.to<=p)){var O=C.level!=1,z=Vt(e,n,O?Math.min(g,C.to)-1:Math.max(p,C.from)).right,q=zq)&&(b=C,E=q)}}return b||(b=i[i.length-1]),b.fromg&&(b={from:b.from,to:g,level:b.level}),b}var Rn;function lr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Rn==null){Rn=L("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(L("br"));Rn.appendChild(document.createTextNode("x"))}_(e.measure,Rn);var r=Rn.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),ee(e.measure),r||1}function sr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=L("span","xxxxxxxxxx"),r=L("pre",[t],"CodeMirror-line-like");_(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ga(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,l=t.gutters.firstChild,f=0;l;l=l.nextSibling,++f){var d=e.display.gutterSpecs[f].className;r[d]=l.offsetLeft+l.clientLeft+i,n[d]=l.clientWidth}return{fixedPos:Ua(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Ua(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Xs(e){var t=lr(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/sr(e.display)-3);return function(i){if(vn(e.doc,i))return 0;var l=0;if(i.widgets)for(var f=0;f0&&(g=le(e.doc,p.line).text).length==p.ch){var b=Pe(g,g.length,e.options.tabSize)-g.length;p=G(p.line,Math.max(0,Math.round((l-Os(e.display).left)/sr(e.display))-b))}return p}function zn(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var r=e.display.view,n=0;nt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)rn&&Ha(e.doc,t)i.viewFrom?bn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)bn(e);else if(t<=i.viewFrom){var l=Ki(e,r,r+n,1);l?(i.view=i.view.slice(l.index),i.viewFrom=l.lineN,i.viewTo+=n):bn(e)}else if(r>=i.viewTo){var f=Ki(e,t,t,-1);f?(i.view=i.view.slice(0,f.index),i.viewTo=f.lineN):bn(e)}else{var d=Ki(e,t,t,-1),p=Ki(e,r,r+n,1);d&&p?(i.view=i.view.slice(0,d.index).concat(qi(e,d.lineN,p.lineN)).concat(i.view.slice(p.index)),i.viewTo+=n):bn(e)}var g=i.externalMeasured;g&&(r=i.lineN&&t=n.viewTo)){var l=n.view[zn(e,t)];if(l.node!=null){var f=l.changes||(l.changes=[]);De(f,r)==-1&&f.push(r)}}}function bn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ki(e,t,r,n){var i=zn(e,t),l,f=e.display.view;if(!rn||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var d=e.display.viewFrom,p=0;p0){if(i==f.length-1)return null;l=d+f[i].size-t,i++}else l=d-t;t+=l,r+=l}for(;Ha(e.doc,r)!=r;){if(i==(n<0?0:f.length-1))return null;r+=n*f[i-(n<0?1:0)].size,i+=n}return{index:i,lineN:r}}function sd(e,t,r){var n=e.display,i=n.view;i.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=qi(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=qi(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,zn(e,r)))),n.viewTo=r}function Ks(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||p.to().line0?f:e.defaultCharWidth())+"px"}if(n.other){var d=r.appendChild(L("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));d.style.display="",d.style.left=n.other.left+"px",d.style.top=n.other.top+"px",d.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function $i(e,t){return e.top-t.top||e.left-t.left}function ud(e,t,r){var n=e.display,i=e.doc,l=document.createDocumentFragment(),f=Os(e.display),d=f.left,p=Math.max(n.sizerWidth,Bn(e)-n.sizer.offsetLeft)-f.right,g=i.direction=="ltr";function b(K,ne,fe,se){ne<0&&(ne=0),ne=Math.round(ne),se=Math.round(se),l.appendChild(L("div",null,"CodeMirror-selected","position: absolute; left: "+K+`px; - top: `+ne+"px; width: "+(fe==null?p-K:fe)+`px; - height: `+(se-ne)+"px"))}function E(K,ne,fe){var se=le(i,K),ve=se.text.length,Ae,rt;function Be(Ye,Et){return Xi(e,G(K,Ye),"div",se,Et)}function Dt(Ye,Et,st){var $e=Ys(e,se,null,Ye),Xe=Et=="ltr"==(st=="after")?"left":"right",ze=st=="after"?$e.begin:$e.end-(/\s/.test(se.text.charAt($e.end-1))?2:1);return Be(ze,Xe)[Xe]}var wt=Ut(se,i.direction);return Ke(wt,ne||0,fe==null?ve:fe,function(Ye,Et,st,$e){var Xe=st=="ltr",ze=Be(Ye,Xe?"left":"right"),Lt=Be(Et-1,Xe?"right":"left"),wr=ne==null&&Ye==0,Tn=fe==null&&Et==ve,ct=$e==0,en=!wt||$e==wt.length-1;if(Lt.top-ze.top<=3){var it=(g?wr:Tn)&&ct,yl=(g?Tn:wr)&&en,un=it?d:(Xe?ze:Lt).left,jn=yl?p:(Xe?Lt:ze).right;b(un,ze.top,jn-un,ze.bottom)}else{var Yn,mt,Er,bl;Xe?(Yn=g&&wr&&ct?d:ze.left,mt=g?p:Dt(Ye,st,"before"),Er=g?d:Dt(Et,st,"after"),bl=g&&Tn&&en?p:Lt.right):(Yn=g?Dt(Ye,st,"before"):d,mt=!g&&wr&&ct?p:ze.right,Er=!g&&Tn&&en?d:Lt.left,bl=g?Dt(Et,st,"after"):p),b(Yn,ze.top,mt-Yn,ze.bottom),ze.bottom0?t.blinker=setInterval(function(){e.hasFocus()||ur(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Qs(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ka(e))}function Xa(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ur(e))},100)}function Ka(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ye(e,"focus",e,t),e.state.focused=!0,Ie(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),x&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ya(e))}function ur(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ye(e,"blur",e,t),e.state.focused=!1,$(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Qi(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,l=0,f=0;f.005||C<-.005)&&(ie.display.sizerWidth){var z=Math.ceil(b/sr(e.display));z>e.display.maxLineLength&&(e.display.maxLineLength=z,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}Math.abs(l)>2&&(t.scroller.scrollTop+=l)}function Zs(e){if(e.widgets)for(var t=0;t=f&&(l=Pn(t,on(le(t,p))-e.wrapper.clientHeight),f=p)}return{from:l,to:Math.max(f,l+1)}}function fd(e,t){if(!Ne(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null,l=r.wrapper.ownerDocument;if(t.top+n.top<0?i=!0:t.bottom+n.top>(l.defaultView.innerHeight||l.documentElement.clientHeight)&&(i=!1),i!=null&&!U){var f=L("div","\u200B",null,`position: absolute; +`,t);i==-1&&(i=e.length);var l=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),f=l.indexOf("\r");f!=-1?(r.push(l.slice(0,f)),t+=f+1):(r.push(l),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},vc=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(r){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},yc=function(){var e=L("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ba=null;function bc(e){if(ba!=null)return ba;var t=_(e,L("span","x")),r=t.getBoundingClientRect(),n=W(t,0,1).getBoundingClientRect();return ba=Math.abs(r.left-n.left)>1}var xa={},nr={};function xc(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),xa[e]=t}function wc(e,t){nr[e]=t}function Fi(e){if(typeof e=="string"&&nr.hasOwnProperty(e))e=nr[e];else if(e&&typeof e.name=="string"&&nr.hasOwnProperty(e.name)){var t=nr[e.name];typeof t=="string"&&(t={name:t}),e=Br(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Fi("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Fi("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function wa(e,t){t=Fi(t);var r=xa[t.name];if(!r)return wa(e,"text/plain");var n=r(e,t);if(rr.hasOwnProperty(t.name)){var i=rr[t.name];for(var l in i)i.hasOwnProperty(l)&&(n.hasOwnProperty(l)&&(n["_"+l]=n[l]),n[l]=i[l])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var f in t.modeProps)n[f]=t.modeProps[f];return n}var rr={};function Ec(e,t){var r=rr.hasOwnProperty(e)?rr[e]:rr[e]={};ut(t,r)}function On(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ea(e,t){for(var r;e.innerMode&&(r=e.innerMode(t),!(!r||r.mode==e));)t=r.state,e=r.mode;return r||{mode:e,state:t}}function ls(e,t,r){return e.startState?e.startState(t,r):!0}var je=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};je.prototype.eol=function(){return this.pos>=this.string.length},je.prototype.sol=function(){return this.pos==this.lineStart},je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},je.prototype.next=function(){if(this.post},je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},je.prototype.skipToEnd=function(){this.pos=this.string.length},je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},je.prototype.backUp=function(e){this.pos-=e},je.prototype.column=function(){return this.lastColumnPos0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},je.prototype.current=function(){return this.string.slice(this.start,this.pos)},je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function le(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],l=i.chunkSize();if(t=e.first&&tr?U(r,le(e,r).text.length):Lc(t,le(e,t.line).text.length)}function Lc(e,t){var r=e.ch;return r==null||r>t?U(e.line,t):r<0?U(e.line,0):e}function us(e,t){for(var r=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t},Zt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Zt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Zt.fromSaved=function(e,t,r){return t instanceof Ri?new Zt(e,On(e.mode,t.state),r,t.lookAhead):new Zt(e,On(e.mode,t),r)},Zt.prototype.save=function(e){var t=e!==!1?On(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ri(t,this.maxLookAhead):t};function fs(e,t,r,n){var i=[e.state.modeGen],l={};gs(e,t.text,e.doc.mode,r,function(g,b){return i.push(g,b)},l,n);for(var f=r.state,d=function(g){r.baseTokens=i;var b=e.state.overlays[g],E=1,A=0;r.state=!0,gs(e,t.text,b.mode,r,function(C,O){for(var z=E;AC&&i.splice(E,1,C,i[E+1],q),E+=2,A=Math.min(C,q)}if(O)if(b.opaque)i.splice(z,E-z,C,"overlay "+O),E=z+2;else for(;ze.options.maxHighlightLength&&On(e.doc.mode,n.state),l=fs(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Gr(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new Zt(n,!0,t);var l=Sc(e,t,r),f=l>n.first&&le(n,l-1).stateAfter,d=f?Zt.fromSaved(n,f,l):new Zt(n,ls(n.mode),l);return n.iter(l,t,function(p){Ca(e,p.text,d);var g=d.line;p.stateAfter=g==t-1||g%5==0||g>=i.viewFrom&&gt.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var hs=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function ps(e,t,r,n){var i=e.doc,l=i.mode,f;t=pe(i,t);var d=le(i,t.line),p=Gr(e,t.line,r),g=new je(d.text,e.options.tabSize,p),b;for(n&&(b=[]);(n||g.pose.options.maxHighlightLength?(d=!1,f&&Ca(e,t,n,b.pos),b.pos=t.length,E=null):E=ms(Ma(r,b,n.state,A),l),A){var C=A[0].name;C&&(E="m-"+(E?C+" "+E:C))}if(!d||g!=E){for(;pf;--d){if(d<=l.first)return l.first;var p=le(l,d-1),g=p.stateAfter;if(g&&(!r||d+(g instanceof Ri?g.lookAhead:0)<=l.modeFrontier))return d;var b=Pe(p.text,null,e.options.tabSize);(i==null||n>b)&&(i=d-1,n=b)}return i}function Tc(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=le(e,n).stateAfter;if(i&&(!(i instanceof Ri)||n+i.lookAhead=t:l.to>t);(n||(n=[])).push(new Wi(f,l.from,p?null:l.to))}}return n}function Hc(e,t,r){var n;if(e)for(var i=0;i=t:l.to>t);if(d||l.from==t&&f.type=="bookmark"&&(!r||l.marker.insertLeft)){var p=l.from==null||(f.inclusiveLeft?l.from<=t:l.from0&&d)for(var re=0;re0)){var b=[p,1],E=he(g.from,d.from),A=he(g.to,d.to);(E<0||!f.inclusiveLeft&&!E)&&b.push({from:g.from,to:d.from}),(A>0||!f.inclusiveRight&&!A)&&b.push({from:d.to,to:g.to}),i.splice.apply(i,b),p+=b.length-3}}return i}function bs(e){var t=e.markedSpans;if(t){for(var r=0;rt)&&(!n||Aa(n,l.marker)<0)&&(n=l.marker)}return n}function Ls(e,t,r,n,i){var l=le(e,t),f=rn&&l.markedSpans;if(f)for(var d=0;d=0&&E<=0||b<=0&&E>=0)&&(b<=0&&(p.marker.inclusiveRight&&i.inclusiveLeft?he(g.to,r)>=0:he(g.to,r)>0)||b>=0&&(p.marker.inclusiveRight&&i.inclusiveLeft?he(g.from,n)<=0:he(g.from,n)<0)))return!0}}}function qt(e){for(var t;t=Es(e);)e=t.find(-1,!0).line;return e}function Oc(e){for(var t;t=Gi(e);)e=t.find(1,!0).line;return e}function Fc(e){for(var t,r;t=Gi(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function Ha(e,t){var r=le(e,t),n=qt(r);return r==n?t:Ce(n)}function Ss(e,t){if(t>e.lastLine())return t;var r=le(e,t),n;if(!vn(e,r))return t;for(;n=Gi(r);)r=n.find(1,!0).line;return Ce(r)+1}function vn(e,t){var r=rn&&t.markedSpans;if(r){for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var ir=function(e,t,r){this.text=e,xs(this,t),this.height=r?r(this):1};ir.prototype.lineNo=function(){return Ce(this)},tr(ir);function Pc(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),bs(e),xs(e,r);var i=n?n(e):1;i!=e.height&&Qt(e,i)}function Bc(e){e.parent=null,bs(e)}var Rc={},Wc={};function Ts(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Wc:Rc;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function ks(e,t){var r=B("span",null,null,x?"padding-right: .1px":null),n={pre:B("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var l=i?t.rest[i-1]:t.line,f=void 0;n.pos=0,n.addToken=_c,gc(e.display.measure)&&(f=Ut(l,e.doc.direction))&&(n.addToken=Uc(n.addToken,f)),n.map=[];var d=t!=e.display.externalMeasured&&Ce(l);qc(l,n,cs(e,l,d)),l.styleClasses&&(l.styleClasses.bgClass&&(n.bgClass=vt(l.styleClasses.bgClass,n.bgClass||"")),l.styleClasses.textClass&&(n.textClass=vt(l.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(mc(e.display.measure))),i==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(x){var p=n.content.lastChild;(/\bcm-tab\b/.test(p.className)||p.querySelector&&p.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return ye(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=vt(n.pre.className,n.textClass||"")),n}function zc(e){var t=L("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function _c(e,t,r,n,i,l,f){if(t){var d=e.splitSpaces?Gc(t,e.trailingSpace):t,p=e.cm.state.specialChars,g=!1,b;if(!p.test(t))e.col+=t.length,b=document.createTextNode(d),e.map.push(e.pos,e.pos+t.length,b),m&&v<9&&(g=!0),e.pos+=t.length;else{b=document.createDocumentFragment();for(var E=0;;){p.lastIndex=E;var A=p.exec(t),C=A?A.index-E:t.length-E;if(C){var O=document.createTextNode(d.slice(E,E+C));m&&v<9?b.appendChild(L("span",[O])):b.appendChild(O),e.map.push(e.pos,e.pos+C,O),e.col+=C,e.pos+=C}if(!A)break;E+=C+1;var z=void 0;if(A[0]==" "){var q=e.cm.options.tabSize,X=q-e.col%q;z=b.appendChild(L("span",_t(X),"cm-tab")),z.setAttribute("role","presentation"),z.setAttribute("cm-text"," "),e.col+=X}else A[0]=="\r"||A[0]==` +`?(z=b.appendChild(L("span",A[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),z.setAttribute("cm-text",A[0]),e.col+=1):(z=e.cm.options.specialCharPlaceholder(A[0]),z.setAttribute("cm-text",A[0]),m&&v<9?b.appendChild(L("span",[z])):b.appendChild(z),e.col+=1);e.map.push(e.pos,e.pos+1,z),e.pos++}}if(e.trailingSpace=d.charCodeAt(t.length-1)==32,r||n||i||g||l||f){var J=r||"";n&&(J+=n),i&&(J+=i);var K=L("span",[b],J,l);if(f)for(var re in f)f.hasOwnProperty(re)&&re!="style"&&re!="class"&&K.setAttribute(re,f[re]);return e.content.appendChild(K)}e.content.appendChild(b)}}function Gc(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;ig&&E.from<=g));A++);if(E.to>=b)return e(r,n,i,l,f,d,p);e(r,n.slice(0,E.to-g),i,l,null,d,p),l=null,n=n.slice(E.to-g),g=E.to}}}function Cs(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function qc(e,t,r){var n=e.markedSpans,i=e.text,l=0;if(!n){for(var f=1;fp||ve.collapsed&&se.to==p&&se.from==p)){if(se.to!=null&&se.to!=p&&C>se.to&&(C=se.to,z=""),ve.className&&(O+=" "+ve.className),ve.css&&(A=(A?A+";":"")+ve.css),ve.startStyle&&se.from==p&&(q+=" "+ve.startStyle),ve.endStyle&&se.to==C&&(re||(re=[])).push(ve.endStyle,se.to),ve.title&&((J||(J={})).title=ve.title),ve.attributes)for(var Ae in ve.attributes)(J||(J={}))[Ae]=ve.attributes[Ae];ve.collapsed&&(!X||Aa(X.marker,ve)<0)&&(X=se)}else se.from>p&&C>se.from&&(C=se.from)}if(re)for(var rt=0;rt=d)break;for(var Dt=Math.min(d,C);;){if(b){var wt=p+b.length;if(!X){var Ye=wt>Dt?b.slice(0,Dt-p):b;t.addToken(t,Ye,E?E+O:O,q,p+Ye.length==C?z:"",A,J)}if(wt>=Dt){b=b.slice(Dt-p),p=Dt;break}p=wt,q=""}b=i.slice(l,l=r[g++]),E=Ts(r[g++],t.cm.options)}}}function Ms(e,t,r){this.line=t,this.rest=Fc(t),this.size=this.rest?Ce(be(this.rest))-r+1:1,this.node=this.text=null,this.hidden=vn(e,t)}function qi(e,t,r){for(var n=[],i,l=t;l2&&l.push((p.bottom+g.top)/2-r.top)}}l.push(r.bottom-r.top)}}function Fs(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;nr)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function td(e,t){t=qt(t);var r=Ce(t),n=e.display.externalMeasured=new Ms(e.doc,t,r);n.lineN=r;var i=n.built=ks(e,n);return n.text=i.pre,_(e.display.lineMeasure,i.pre),n}function Ps(e,t,r,n){return Vt(e,ar(e,t),r,n)}function Ba(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(l=p-d,i=l-1,t>=p&&(f="right")),i!=null){if(n=e[g+2],d==p&&r==(n.insertLeft?"left":"right")&&(f=r),r=="left"&&i==0)for(;g&&e[g-2]==e[g-3]&&e[g-1].insertLeft;)n=e[(g-=3)+2],f="left";if(r=="right"&&i==p-d)for(;g=0&&(r=e[i]).left==r.right;i--);return r}function rd(e,t,r,n){var i=Rs(t.map,r,n),l=i.node,f=i.start,d=i.end,p=i.collapse,g;if(l.nodeType==3){for(var b=0;b<4;b++){for(;f&&Wr(t.line.text.charAt(i.coverStart+f));)--f;for(;i.coverStart+d0&&(p=n="right");var E;e.options.lineWrapping&&(E=l.getClientRects()).length>1?g=E[n=="right"?E.length-1:0]:g=l.getBoundingClientRect()}if(m&&v<9&&!f&&(!g||!g.left&&!g.right)){var A=l.parentNode.getClientRects()[0];A?g={left:A.left,right:A.left+sr(e.display),top:A.top,bottom:A.bottom}:g=Bs}for(var C=g.top-t.rect.top,O=g.bottom-t.rect.top,z=(C+O)/2,q=t.view.measure.heights,X=0;X=n.text.length?(p=n.text.length,g="before"):p<=0&&(p=0,g="after"),!d)return f(g=="before"?p-1:p,g=="before");function b(O,z,q){var X=d[z],J=X.level==1;return f(q?O-1:O,J!=q)}var E=we(d,p,g),A=Nn,C=b(p,E,g=="before");return A!=null&&(C.other=b(p,A,g!="before")),C}function qs(e,t){var r=0;t=pe(e.doc,t),e.options.lineWrapping||(r=sr(e.display)*t.ch);var n=le(e.doc,t.line),i=on(n)+ji(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function Wa(e,t,r,n,i){var l=U(e,t,r);return l.xRel=i,n&&(l.outside=n),l}function za(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return Wa(n.first,0,null,-1,-1);var i=Pn(n,r),l=n.first+n.size-1;if(i>l)return Wa(n.first+n.size-1,le(n,l).text.length,null,1,1);t<0&&(t=0);for(var f=le(n,i);;){var d=od(e,f,i,t,r),p=Ic(f,d.ch+(d.xRel>0||d.outside>0?1:0));if(!p)return d;var g=p.find(1);if(g.line==i)return g;f=le(n,i=g.line)}}function js(e,t,r,n){n-=Ra(t);var i=t.text.length,l=mn(function(f){return Vt(e,r,f-1).bottom<=n},i,0);return i=mn(function(f){return Vt(e,r,f).top>n},l,i),{begin:l,end:i}}function Ys(e,t,r,n){r||(r=ar(e,t));var i=Yi(e,t,Vt(e,r,n),"line").top;return js(e,t,r,i)}function _a(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function od(e,t,r,n,i){i-=on(t);var l=ar(e,t),f=Ra(t),d=0,p=t.text.length,g=!0,b=Ut(t,e.doc.direction);if(b){var E=(e.options.lineWrapping?ld:ad)(e,t,r,l,b,n,i);g=E.level!=1,d=g?E.from:E.to-1,p=g?E.to:E.from-1}var A=null,C=null,O=mn(function(fe){var se=Vt(e,l,fe);return se.top+=f,se.bottom+=f,_a(se,n,i,!1)?(se.top<=i&&se.left<=n&&(A=fe,C=se),!0):!1},d,p),z,q,X=!1;if(C){var J=n-C.left=re.bottom?1:0}return O=Vn(t.text,O,1),Wa(r,O,q,X,n-z)}function ad(e,t,r,n,i,l,f){var d=mn(function(E){var A=i[E],C=A.level!=1;return _a(jt(e,U(r,C?A.to:A.from,C?"before":"after"),"line",t,n),l,f,!0)},0,i.length-1),p=i[d];if(d>0){var g=p.level!=1,b=jt(e,U(r,g?p.from:p.to,g?"after":"before"),"line",t,n);_a(b,l,f,!0)&&b.top>f&&(p=i[d-1])}return p}function ld(e,t,r,n,i,l,f){var d=js(e,t,n,f),p=d.begin,g=d.end;/\s/.test(t.text.charAt(g-1))&&g--;for(var b=null,E=null,A=0;A=g||C.to<=p)){var O=C.level!=1,z=Vt(e,n,O?Math.min(g,C.to)-1:Math.max(p,C.from)).right,q=zq)&&(b=C,E=q)}}return b||(b=i[i.length-1]),b.fromg&&(b={from:b.from,to:g,level:b.level}),b}var Rn;function lr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Rn==null){Rn=L("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(L("br"));Rn.appendChild(document.createTextNode("x"))}_(e.measure,Rn);var r=Rn.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),ee(e.measure),r||1}function sr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=L("span","xxxxxxxxxx"),r=L("pre",[t],"CodeMirror-line-like");_(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ga(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,l=t.gutters.firstChild,f=0;l;l=l.nextSibling,++f){var d=e.display.gutterSpecs[f].className;r[d]=l.offsetLeft+l.clientLeft+i,n[d]=l.clientWidth}return{fixedPos:Ua(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Ua(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Xs(e){var t=lr(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/sr(e.display)-3);return function(i){if(vn(e.doc,i))return 0;var l=0;if(i.widgets)for(var f=0;f0&&(g=le(e.doc,p.line).text).length==p.ch){var b=Pe(g,g.length,e.options.tabSize)-g.length;p=U(p.line,Math.max(0,Math.round((l-Os(e.display).left)/sr(e.display))-b))}return p}function zn(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var r=e.display.view,n=0;nt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)rn&&Ha(e.doc,t)i.viewFrom?bn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)bn(e);else if(t<=i.viewFrom){var l=Ki(e,r,r+n,1);l?(i.view=i.view.slice(l.index),i.viewFrom=l.lineN,i.viewTo+=n):bn(e)}else if(r>=i.viewTo){var f=Ki(e,t,t,-1);f?(i.view=i.view.slice(0,f.index),i.viewTo=f.lineN):bn(e)}else{var d=Ki(e,t,t,-1),p=Ki(e,r,r+n,1);d&&p?(i.view=i.view.slice(0,d.index).concat(qi(e,d.lineN,p.lineN)).concat(i.view.slice(p.index)),i.viewTo+=n):bn(e)}var g=i.externalMeasured;g&&(r=i.lineN&&t=n.viewTo)){var l=n.view[zn(e,t)];if(l.node!=null){var f=l.changes||(l.changes=[]);De(f,r)==-1&&f.push(r)}}}function bn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ki(e,t,r,n){var i=zn(e,t),l,f=e.display.view;if(!rn||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var d=e.display.viewFrom,p=0;p0){if(i==f.length-1)return null;l=d+f[i].size-t,i++}else l=d-t;t+=l,r+=l}for(;Ha(e.doc,r)!=r;){if(i==(n<0?0:f.length-1))return null;r+=n*f[i-(n<0?1:0)].size,i+=n}return{index:i,lineN:r}}function sd(e,t,r){var n=e.display,i=n.view;i.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=qi(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=qi(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,zn(e,r)))),n.viewTo=r}function Ks(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||p.to().line0?f:e.defaultCharWidth())+"px"}if(n.other){var d=r.appendChild(L("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));d.style.display="",d.style.left=n.other.left+"px",d.style.top=n.other.top+"px",d.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function $i(e,t){return e.top-t.top||e.left-t.left}function ud(e,t,r){var n=e.display,i=e.doc,l=document.createDocumentFragment(),f=Os(e.display),d=f.left,p=Math.max(n.sizerWidth,Bn(e)-n.sizer.offsetLeft)-f.right,g=i.direction=="ltr";function b(K,re,fe,se){re<0&&(re=0),re=Math.round(re),se=Math.round(se),l.appendChild(L("div",null,"CodeMirror-selected","position: absolute; left: "+K+`px; + top: `+re+"px; width: "+(fe==null?p-K:fe)+`px; + height: `+(se-re)+"px"))}function E(K,re,fe){var se=le(i,K),ve=se.text.length,Ae,rt;function Be(Ye,Et){return Xi(e,U(K,Ye),"div",se,Et)}function Dt(Ye,Et,st){var $e=Ys(e,se,null,Ye),Xe=Et=="ltr"==(st=="after")?"left":"right",ze=st=="after"?$e.begin:$e.end-(/\s/.test(se.text.charAt($e.end-1))?2:1);return Be(ze,Xe)[Xe]}var wt=Ut(se,i.direction);return Ke(wt,re||0,fe==null?ve:fe,function(Ye,Et,st,$e){var Xe=st=="ltr",ze=Be(Ye,Xe?"left":"right"),Lt=Be(Et-1,Xe?"right":"left"),wr=re==null&&Ye==0,Tn=fe==null&&Et==ve,ct=$e==0,en=!wt||$e==wt.length-1;if(Lt.top-ze.top<=3){var it=(g?wr:Tn)&&ct,yl=(g?Tn:wr)&&en,un=it?d:(Xe?ze:Lt).left,jn=yl?p:(Xe?Lt:ze).right;b(un,ze.top,jn-un,ze.bottom)}else{var Yn,mt,Er,bl;Xe?(Yn=g&&wr&&ct?d:ze.left,mt=g?p:Dt(Ye,st,"before"),Er=g?d:Dt(Et,st,"after"),bl=g&&Tn&&en?p:Lt.right):(Yn=g?Dt(Ye,st,"before"):d,mt=!g&&wr&&ct?p:ze.right,Er=!g&&Tn&&en?d:Lt.left,bl=g?Dt(Et,st,"after"):p),b(Yn,ze.top,mt-Yn,ze.bottom),ze.bottom0?t.blinker=setInterval(function(){e.hasFocus()||ur(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Qs(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ka(e))}function Xa(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ur(e))},100)}function Ka(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ye(e,"focus",e,t),e.state.focused=!0,Ie(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),x&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ya(e))}function ur(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ye(e,"blur",e,t),e.state.focused=!1,$(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Qi(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,l=0,f=0;f.005||C<-.005)&&(ie.display.sizerWidth){var z=Math.ceil(b/sr(e.display));z>e.display.maxLineLength&&(e.display.maxLineLength=z,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}Math.abs(l)>2&&(t.scroller.scrollTop+=l)}function Zs(e){if(e.widgets)for(var t=0;t=f&&(l=Pn(t,on(le(t,p))-e.wrapper.clientHeight),f=p)}return{from:l,to:Math.max(f,l+1)}}function fd(e,t){if(!Ne(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null,l=r.wrapper.ownerDocument;if(t.top+n.top<0?i=!0:t.bottom+n.top>(l.defaultView.innerHeight||l.documentElement.clientHeight)&&(i=!1),i!=null&&!G){var f=L("div","\u200B",null,`position: absolute; top: `+(t.top-r.viewOffset-ji(e.display))+`px; height: `+(t.bottom-t.top+Jt(e)+r.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(f),f.scrollIntoView(i),e.display.lineSpace.removeChild(f)}}}function cd(e,t,r,n){n==null&&(n=0);var i;!e.options.lineWrapping&&t==r&&(r=t.sticky=="before"?G(t.line,t.ch+1,"before"):t,t=t.ch?G(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var l=0;l<5;l++){var f=!1,d=jt(e,t),p=!r||r==t?d:jt(e,r);i={left:Math.min(d.left,p.left),top:Math.min(d.top,p.top)-n,right:Math.max(d.left,p.left),bottom:Math.max(d.bottom,p.bottom)+n};var g=$a(e,i),b=e.doc.scrollTop,E=e.doc.scrollLeft;if(g.scrollTop!=null&&(Qr(e,g.scrollTop),Math.abs(e.doc.scrollTop-b)>1&&(f=!0)),g.scrollLeft!=null&&(_n(e,g.scrollLeft),Math.abs(e.doc.scrollLeft-E)>1&&(f=!0)),!f)break}return i}function dd(e,t){var r=$a(e,t);r.scrollTop!=null&&Qr(e,r.scrollTop),r.scrollLeft!=null&&_n(e,r.scrollLeft)}function $a(e,t){var r=e.display,n=lr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,l=Pa(e),f={};t.bottom-t.top>l&&(t.bottom=t.top+l);var d=e.doc.height+Fa(r),p=t.topd-n;if(t.topi+l){var b=Math.min(t.top,(g?d:t.bottom)-l);b!=i&&(f.scrollTop=b)}var E=e.options.fixedGutter?0:r.gutters.offsetWidth,M=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-E,C=Bn(e)-r.gutters.offsetWidth,O=t.right-t.left>C;return O&&(t.right=t.left+C),t.left<10?f.scrollLeft=0:t.leftC+M-3&&(f.scrollLeft=t.right+(O?0:10)-C),f}function Qa(e,t){t!=null&&(Ji(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function fr(e){Ji(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function $r(e,t,r){(t!=null||r!=null)&&Ji(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function hd(e,t){Ji(e),e.curOp.scrollToPos=t}function Ji(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=qs(e,t.from),n=qs(e,t.to);Js(e,r,n,t.margin)}}function Js(e,t,r,n){var i=$a(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});$r(e,i.scrollLeft,i.scrollTop)}function Qr(e,t){Math.abs(e.doc.scrollTop-t)<2||(a||Ja(e,{top:t}),Vs(e,t,!0),a&&Ja(e),Vr(e,100))}function Vs(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function _n(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)&&(e.doc.scrollLeft=t,iu(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Zr(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Fa(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Jt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var Gn=function(e,t,r){this.cm=r;var n=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),ue(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),ue(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&v<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Gn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var l=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+l)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},Gn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Gn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Gn.prototype.zeroWidthHack=function(){var e=j&&!D?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new at,this.disableVert=new at},Gn.prototype.enableZeroWidthBar=function(e,t,r){e.style.visibility="";function n(){var i=e.getBoundingClientRect(),l=r=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);l!=e?e.style.visibility="hidden":t.set(1e3,n)}t.set(1e3,n)},Gn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Jr=function(){};Jr.prototype.update=function(){return{bottom:0,right:0}},Jr.prototype.setScrollLeft=function(){},Jr.prototype.setScrollTop=function(){},Jr.prototype.clear=function(){};function cr(e,t){t||(t=Zr(e));var r=e.display.barWidth,n=e.display.barHeight;eu(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Qi(e),eu(e,Zr(e)),r=e.display.barWidth,n=e.display.barHeight}function eu(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}var tu={native:Gn,null:Jr};function nu(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&$(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new tu[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ue(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){r=="horizontal"?_n(e,t):Qr(e,t)},e),e.display.scrollbars.addClass&&Ie(e.display.wrapper,e.display.scrollbars.addClass)}var pd=0;function Un(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++pd,markArrays:null},jc(e.curOp)}function qn(e){var t=e.curOp;t&&Xc(t,function(r){for(var n=0;n=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Vi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function vd(e){e.updatedDisplay=e.mustUpdate&&Za(e.cm,e.update)}function yd(e){var t=e.cm,r=t.display;e.updatedDisplay&&Qi(t),e.barMeasure=Zr(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ps(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Jt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Bn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function bd(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var r=+new Date+e.options.workTime,n=Gr(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(l){if(n.line>=e.display.viewFrom){var f=l.styles,d=l.text.length>e.options.maxHighlightLength?On(t.mode,n.state):null,p=fs(e,l,n,!0);d&&(n.state=d),l.styles=p.styles;var g=l.styleClasses,b=p.classes;b?l.styleClasses=b:g&&(l.styleClasses=null);for(var E=!f||f.length!=l.styles.length||g!=b&&(!g||!b||g.bgClass!=b.bgClass||g.textClass!=b.textClass),M=0;!E&&Mr)return Vr(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Mt(e,function(){for(var l=0;l=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&Ks(e)==0)return!1;ou(e)&&(bn(e),t.dims=Ga(e));var i=n.first+n.size,l=Math.max(t.visible.from-e.options.viewportMargin,n.first),f=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFromf&&r.viewTo-f<20&&(f=Math.min(i,r.viewTo)),rn&&(l=Ha(e.doc,l),f=Ss(e.doc,f));var d=l!=r.viewFrom||f!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;sd(e,l,f),r.viewOffset=on(le(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var p=Ks(e);if(!d&&p==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var g=Ld(e);return p>4&&(r.lineDiv.style.display="none"),Td(e,r.updateLineNumbers,t.dims),p>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Sd(g),ee(r.cursorDiv),ee(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,d&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,Vr(e,400)),r.updateLineNumbers=null,!0}function ru(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Bn(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+Fa(e.display)-Pa(e),r.top)}),t.visible=Zi(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Zi(e.display,e.doc,r));if(!Za(e,t))break;Qi(e);var i=Zr(e);Kr(e),cr(e,i),el(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ja(e,t){var r=new Vi(e,t);if(Za(e,r)){Qi(e),ru(e,r);var n=Zr(e);Kr(e),cr(e,n),el(e,n),r.finish()}}function Td(e,t,r){var n=e.display,i=e.options.lineNumbers,l=n.lineDiv,f=l.firstChild;function d(O){var z=O.nextSibling;return x&&j&&e.display.currentWheelTarget==O?O.style.display="none":O.parentNode.removeChild(O),z}for(var p=n.view,g=n.viewFrom,b=0;b-1&&(C=!1),Ds(e,E,g,r)),C&&(ee(E.lineNumber),E.lineNumber.appendChild(document.createTextNode(Sa(e.options,g)))),f=E.node.nextSibling}g+=E.size}for(;f;)f=d(f)}function Va(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",et(e,"gutterChanged",e)}function el(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Jt(e)+"px"}function iu(e){var t=e.display,r=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Ua(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,l=n+"px",f=0;f=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),m&&v<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!x&&!(a&&V)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=tl(n.gutters,n.lineNumbers),au(i),r.init(i)}var eo=0,ln=null;m?ln=-.53:a?ln=15:S?ln=-.7:I&&(ln=-1/3);function lu(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),r==null&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:r==null&&(r=e.wheelDelta),{x:t,y:r}}function Cd(e){var t=lu(e);return t.x*=ln,t.y*=ln,t}function su(e,t){S&&k==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var r=lu(t),n=r.x,i=r.y,l=ln;t.deltaMode===0&&(n=t.deltaX,i=t.deltaY,l=1);var f=e.display,d=f.scroller,p=d.scrollWidth>d.clientWidth,g=d.scrollHeight>d.clientHeight;if(n&&p||i&&g){if(i&&j&&x){e:for(var b=t.target,E=f.view;b!=d;b=b.parentNode)for(var M=0;M=0&&he(e,n.to())<=0)return r}return-1};var Se=function(e,t){this.anchor=e,this.head=t};Se.prototype.from=function(){return Bi(this.anchor,this.head)},Se.prototype.to=function(){return Pi(this.anchor,this.head)},Se.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Yt(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(M,C){return he(M.from(),C.from())}),r=De(t,i);for(var l=1;l0:p>=0){var g=Bi(d.from(),f.from()),b=Pi(d.to(),f.to()),E=d.empty()?f.from()==f.head:d.from()==d.head;l<=r&&--r,t.splice(--l,2,new Se(E?b:g,E?g:b))}}return new It(t,r)}function xn(e,t){return new It([new Se(e,t||e)],0)}function wn(e){return e.text?G(e.from.line+e.text.length-1,be(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function uu(e,t){if(he(e,t.from)<0)return e;if(he(e,t.to)<=0)return wn(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=wn(t).ch-t.to.ch),G(r,n)}function nl(e,t){for(var r=[],n=0;n1&&e.remove(d.line+1,O-1),e.insert(d.line+1,X)}et(e,"change",e,t)}function En(e,t,r){function n(i,l,f){if(i.linked)for(var d=0;d1&&!e.done[e.done.length-2].ranges)return e.done.pop(),be(e.done)}function mu(e,t,r,n){var i=e.history;i.undone.length=0;var l=+new Date,f,d;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(f=Ad(i,i.lastOp==n)))d=be(f.changes),he(t.from,t.to)==0&&he(t.from,d.to)==0?d.to=wn(t):f.changes.push(ol(e,t));else{var p=be(i.done);for((!p||!p.ranges)&&no(e.sel,i.done),f={changes:[ol(e,t)],generation:i.generation},i.done.push(f);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,d||ye(e,"historyAdded")}function Hd(e,t,r,n){var i=t.charAt(0);return i=="*"||i=="+"&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Nd(e,t,r,n){var i=e.history,l=n&&n.origin;r==i.lastSelOp||l&&i.lastSelOrigin==l&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==l||Hd(e,l,be(i.done),t))?i.done[i.done.length-1]=t:no(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=l,i.lastSelOp=r,n&&n.clearRedo!==!1&&pu(i.undone)}function no(e,t){var r=be(t);r&&r.ranges&&r.equals(e)||t.push(e)}function gu(e,t,r,n){var i=t["spans_"+e.id],l=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(f){f.markedSpans&&((i||(i=t["spans_"+e.id]={}))[l]=f.markedSpans),++l})}function Id(e){if(!e)return null;for(var t,r=0;r-1&&(be(d)[E]=g[E],delete g[E])}}return n}function al(e,t,r,n){if(n){var i=e.anchor;if(r){var l=he(t,i)<0;l!=he(r,i)<0?(i=t,t=r):l!=he(t,r)<0&&(t=r)}return new Se(i,t)}else return new Se(r||t,t)}function ro(e,t,r,n,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),ft(e,new It([al(e.sel.primary(),t,r,i)],0),n)}function yu(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),l=0;l=t.ch:d.to>t.ch))){if(i&&(ye(p,"beforeCursorEnter"),p.explicitlyCleared))if(l.markedSpans){--f;continue}else break;if(!p.atomic)continue;if(r){var E=p.find(n<0?1:-1),M=void 0;if((n<0?b:g)&&(E=Su(e,E,-n,E&&E.line==t.line?l:null)),E&&E.line==t.line&&(M=he(E,r))&&(n<0?M<0:M>0))return hr(e,E,t,n,i)}var C=p.find(n<0?-1:1);return(n<0?g:b)&&(C=Su(e,C,n,C.line==t.line?l:null)),C?hr(e,C,t,n,i):null}}return t}function oo(e,t,r,n,i){var l=n||1,f=hr(e,t,r,l,i)||!i&&hr(e,t,r,l,!0)||hr(e,t,r,-l,i)||!i&&hr(e,t,r,-l,!0);return f||(e.cantEdit=!0,G(e.first,0))}function Su(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?pe(e,G(t.line-1)):null:r>0&&t.ch==(n||le(e,t.line)).text.length?t.line=0;--i)Cu(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else Cu(e,t)}}function Cu(e,t){if(!(t.text.length==1&&t.text[0]==""&&he(t.from,t.to)==0)){var r=nl(e,t);mu(e,t,r,e.cm?e.cm.curOp.id:NaN),ni(e,t,r,Da(e,t));var n=[];En(e,function(i,l){!l&&De(n,i.history)==-1&&(Hu(i.history,t),n.push(i.history)),ni(i,t,null,Da(i,t))})}}function ao(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!r)){for(var i=e.history,l,f=e.sel,d=t=="undo"?i.done:i.undone,p=t=="undo"?i.undone:i.done,g=0;g=0;--C){var O=M(C);if(O)return O.v}}}}function Mu(e,t){if(t!=0&&(e.first+=t,e.sel=new It(Ct(e.sel.ranges,function(i){return new Se(G(i.anchor.line+t,i.anchor.ch),G(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){bt(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.linel&&(t={from:t.from,to:G(l,le(e,l).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Fn(e,t.from,t.to),r||(r=nl(e,t)),e.cm?Pd(e.cm,t,n):il(e,t,n),io(e,r,lt),e.cantEdit&&oo(e,G(e.firstLine(),0))&&(e.cantEdit=!1)}}function Pd(e,t,r){var n=e.doc,i=e.display,l=t.from,f=t.to,d=!1,p=l.line;e.options.lineWrapping||(p=Ce(qt(le(n,l.line))),n.iter(p,f.line+1,function(C){if(C==i.maxLine)return d=!0,!0})),n.sel.contains(t.from,t.to)>-1&&In(e),il(n,t,r,Xs(e)),e.options.lineWrapping||(n.iter(p,l.line+t.text.length,function(C){var O=Ui(C);O>i.maxLineLength&&(i.maxLine=C,i.maxLineLength=O,i.maxLineChanged=!0,d=!1)}),d&&(e.curOp.updateMaxLine=!0)),Tc(n,l.line),Vr(e,400);var g=t.text.length-(f.line-l.line)-1;t.full?bt(e):l.line==f.line&&t.text.length==1&&!cu(e.doc,t)?yn(e,l.line,"text"):bt(e,l.line,f.line+1,g);var b=Rt(e,"changes"),E=Rt(e,"change");if(E||b){var M={from:l,to:f,text:t.text,removed:t.removed,origin:t.origin};E&&et(e,"change",e,M),b&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(M)}e.display.selForContextMenu=null}function mr(e,t,r,n,i){var l;n||(n=r),he(n,r)<0&&(l=[n,r],r=l[0],n=l[1]),typeof t=="string"&&(t=e.splitLines(t)),pr(e,{from:r,to:n,text:t,origin:i})}function Du(e,t,r,n){r1||!(this.children[0]instanceof ii))){var d=[];this.collapse(d),this.children=[new ii(d)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var f=i.lines.length%25+25,d=f;d10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=g,e.display.maxLineLength=b,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&bt(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Eu(e.doc)),e&&et(e,"markerCleared",e,this,n,i),t&&qn(e),this.parent&&this.parent.clear()}},Ln.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var r,n,i=0;i0||f==0&&l.clearWhenEmpty!==!1)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=B("span",[l.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(Ls(e,t.line,t,r,l)||t.line!=r.line&&Ls(e,r.line,t,r,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");Cc()}l.addToHistory&&mu(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var d=t.line,p=e.cm,g;if(e.iter(d,r.line+1,function(E){p&&l.collapsed&&!p.options.lineWrapping&&qt(E)==p.display.maxLine&&(g=!0),l.collapsed&&d!=t.line&&Qt(E,0),Dc(E,new Wi(l,d==t.line?t.ch:null,d==r.line?r.ch:null),e.cm&&e.cm.curOp),++d}),l.collapsed&&e.iter(t.line,r.line+1,function(E){vn(e,E)&&Qt(E,0)}),l.clearOnEnter&&ue(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(kc(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++Iu,l.atomic=!0),p){if(g&&(p.curOp.updateMaxLine=!0),l.collapsed)bt(p,t.line,r.line+1);else if(l.className||l.startStyle||l.endStyle||l.css||l.attributes||l.title)for(var b=t.line;b<=r.line;b++)yn(p,b,"text");l.atomic&&Eu(p.doc),et(p,"markerAdded",p,l)}return l}var li=function(e,t){this.markers=e,this.primary=t;for(var r=0;r=0;p--)pr(this,n[p]);d?xu(this,d):this.cm&&fr(this.cm)}),undo:nt(function(){ao(this,"undo")}),redo:nt(function(){ao(this,"redo")}),undoSelection:nt(function(){ao(this,"undo",!0)}),redoSelection:nt(function(){ao(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=pe(this,e),t=pe(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(l){var f=l.markedSpans;if(f)for(var d=0;d=p.to||p.from==null&&i!=e.line||p.from!=null&&i==t.line&&p.from>=t.ch)&&(!r||r(p.marker))&&n.push(p.marker.parent||p.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=l,++r}),pe(this,G(r,t))},indexFromPos:function(e){e=pe(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var b=e.dataTransfer.getData("Text");if(b){var E;if(t.state.draggingText&&!t.state.draggingText.copy&&(E=t.listSelections()),io(t.doc,xn(r,r)),E)for(var M=0;M=0;d--)mr(e.doc,"",n[d].from,n[d].to,"+delete");fr(e)})}function sl(e,t,r){var n=Vn(e.text,t+r,r);return n<0||n>e.text.length?null:n}function ul(e,t,r){var n=sl(e,t.ch,r);return n==null?null:new G(t.line,n,r<0?"after":"before")}function fl(e,t,r,n,i){if(e){t.doc.direction=="rtl"&&(i=-i);var l=Ut(r,t.doc.direction);if(l){var f=i<0?be(l):l[0],d=i<0==(f.level==1),p=d?"after":"before",g;if(f.level>0||t.doc.direction=="rtl"){var b=ar(t,r);g=i<0?r.text.length-1:0;var E=Vt(t,b,g).top;g=mn(function(M){return Vt(t,b,M).top==E},i<0==(f.level==1)?f.from:f.to-1,g),p=="before"&&(g=sl(r,g,1))}else g=i<0?f.to:f.from;return new G(n,g,p)}}return new G(n,i<0?r.text.length:0,i<0?"before":"after")}function Qd(e,t,r,n){var i=Ut(t,e.doc.direction);if(!i)return ul(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var l=we(i,r.ch,r.sticky),f=i[l];if(e.doc.direction=="ltr"&&f.level%2==0&&(n>0?f.to>r.ch:f.from=f.from&&M>=b.begin)){var C=E?"before":"after";return new G(r.line,M,C)}}var O=function(X,J,K){for(var ne=function(Ae,rt){return rt?new G(r.line,d(Ae,1),"before"):new G(r.line,Ae,"after")};X>=0&&X0==(fe.level!=1),ve=se?K.begin:d(K.end,-1);if(fe.from<=ve&&ve0?b.end:d(b.begin,-1);return q!=null&&!(n>0&&q==t.text.length)&&(z=O(n>0?0:i.length-1,n,g(q)),z)?z:null}var fi={selectAll:Tu,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),lt)},killLine:function(e){return yr(e,function(t){if(t.empty()){var r=le(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)i=new G(i.line,i.ch+1),e.replaceRange(l.charAt(i.ch-1)+l.charAt(i.ch-2),G(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var f=le(e.doc,i.line-1).text;f&&(i=new G(i.line,1),e.replaceRange(l.charAt(0)+e.doc.lineSeparator()+f.charAt(f.length-1),G(i.line-1,f.length-1),i,"+transpose"))}}r.push(new Se(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return Mt(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;ne&&he(t,this.pos)==0&&r==this.button};var di,hi;function rh(e,t){var r=+new Date;return hi&&hi.compare(r,e,t)?(di=hi=null,"triple"):di&&di.compare(r,e,t)?(hi=new dl(r,e,t),di=null,"double"):(di=new dl(r,e,t),hi=null,"single")}function $u(e){var t=this,r=t.display;if(!(Ne(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,an(r,e)){x||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(!hl(t,e)){var n=Wn(t,e),i=as(e),l=n?rh(n,i):"single";me(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&ih(t,i,n,l,e))&&(i==1?n?ah(t,n,l,e):ma(e)==r.scroller&&yt(e):i==2?(n&&ro(t.doc,n),setTimeout(function(){return r.input.focus()},20)):i==3&&(P?t.display.input.onContextMenu(e):Xa(t)))}}}function ih(e,t,r,n,i){var l="Click";return n=="double"?l="Double"+l:n=="triple"&&(l="Triple"+l),l=(t==1?"Left":t==2?"Middle":"Right")+l,ci(e,zu(l,i),i,function(f){if(typeof f=="string"&&(f=fi[f]),!f)return!1;var d=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),d=f(e,r)!=We}finally{e.state.suppressEdits=!1}return d})}function oh(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(i.unit==null){var l=F?r.shiftKey&&r.metaKey:r.altKey;i.unit=l?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey),i.addNew==null&&(i.addNew=j?r.metaKey:r.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(j?r.altKey:r.ctrlKey)),i}function ah(e,t,r,n){m?setTimeout(Je(Qs,e),0):e.curOp.focus=xe(ae(e));var i=oh(e,r,n),l=e.doc.sel,f;e.options.dragDrop&&pc&&!e.isReadOnly()&&r=="single"&&(f=l.contains(t))>-1&&(he((f=l.ranges[f]).from(),t)<0||t.xRel>0)&&(he(f.to(),t)>0||t.xRel<0)?lh(e,n,t,i):sh(e,n,t,i)}function lh(e,t,r,n){var i=e.display,l=!1,f=tt(e,function(g){x&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Xa(e)),Ve(i.wrapper.ownerDocument,"mouseup",f),Ve(i.wrapper.ownerDocument,"mousemove",d),Ve(i.scroller,"dragstart",p),Ve(i.scroller,"drop",f),l||(yt(g),n.addNew||ro(e.doc,r,null,null,n.extend),x&&!I||m&&v==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),d=function(g){l=l||Math.abs(t.clientX-g.clientX)+Math.abs(t.clientY-g.clientY)>=10},p=function(){return l=!0};x&&(i.scroller.draggable=!0),e.state.draggingText=f,f.copy=!n.moveOnDrag,ue(i.wrapper.ownerDocument,"mouseup",f),ue(i.wrapper.ownerDocument,"mousemove",d),ue(i.scroller,"dragstart",p),ue(i.scroller,"drop",f),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Qu(e,t,r){if(r=="char")return new Se(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new Se(G(t.line,0),pe(e.doc,G(t.line+1,0)));var n=r(e,t);return new Se(n.from,n.to)}function sh(e,t,r,n){m&&Xa(e);var i=e.display,l=e.doc;yt(t);var f,d,p=l.sel,g=p.ranges;if(n.addNew&&!n.extend?(d=l.sel.contains(r),d>-1?f=g[d]:f=new Se(r,r)):(f=l.sel.primary(),d=l.sel.primIndex),n.unit=="rectangle")n.addNew||(f=new Se(r,r)),r=Wn(e,t,!0,!0),d=-1;else{var b=Qu(e,r,n.unit);n.extend?f=al(f,b.anchor,b.head,n.extend):f=b}n.addNew?d==-1?(d=g.length,ft(l,Yt(e,g.concat([f]),d),{scroll:!1,origin:"*mouse"})):g.length>1&&g[d].empty()&&n.unit=="char"&&!n.extend?(ft(l,Yt(e,g.slice(0,d).concat(g.slice(d+1)),0),{scroll:!1,origin:"*mouse"}),p=l.sel):ll(l,d,f,pn):(d=0,ft(l,new It([f],0),pn),p=l.sel);var E=r;function M(K){if(he(E,K)!=0)if(E=K,n.unit=="rectangle"){for(var ne=[],fe=e.options.tabSize,se=Pe(le(l,r.line).text,r.ch,fe),ve=Pe(le(l,K.line).text,K.ch,fe),Ae=Math.min(se,ve),rt=Math.max(se,ve),Be=Math.min(r.line,K.line),Dt=Math.min(e.lastLine(),Math.max(r.line,K.line));Be<=Dt;Be++){var wt=le(l,Be).text,Ye=Nt(wt,Ae,fe);Ae==rt?ne.push(new Se(G(Be,Ye),G(Be,Ye))):wt.length>Ye&&ne.push(new Se(G(Be,Ye),G(Be,Nt(wt,rt,fe))))}ne.length||ne.push(new Se(r,r)),ft(l,Yt(e,p.ranges.slice(0,d).concat(ne),d),{origin:"*mouse",scroll:!1}),e.scrollIntoView(K)}else{var Et=f,st=Qu(e,K,n.unit),$e=Et.anchor,Xe;he(st.anchor,$e)>0?(Xe=st.head,$e=Bi(Et.from(),st.anchor)):(Xe=st.anchor,$e=Pi(Et.to(),st.head));var ze=p.ranges.slice(0);ze[d]=uh(e,new Se(pe(l,$e),Xe)),ft(l,Yt(e,ze,d),pn)}}var C=i.wrapper.getBoundingClientRect(),O=0;function z(K){var ne=++O,fe=Wn(e,K,!0,n.unit=="rectangle");if(fe)if(he(fe,E)!=0){e.curOp.focus=xe(ae(e)),M(fe);var se=Zi(i,l);(fe.line>=se.to||fe.lineC.bottom?20:0;ve&&setTimeout(tt(e,function(){O==ne&&(i.scroller.scrollTop+=ve,z(K))}),50)}}function q(K){e.state.selectingText=!1,O=1/0,K&&(yt(K),i.input.focus()),Ve(i.wrapper.ownerDocument,"mousemove",X),Ve(i.wrapper.ownerDocument,"mouseup",J),l.history.lastSelOrigin=null}var X=tt(e,function(K){K.buttons===0||!as(K)?q(K):z(K)}),J=tt(e,q);e.state.selectingText=J,ue(i.wrapper.ownerDocument,"mousemove",X),ue(i.wrapper.ownerDocument,"mouseup",J)}function uh(e,t){var r=t.anchor,n=t.head,i=le(e.doc,r.line);if(he(r,n)==0&&r.sticky==n.sticky)return t;var l=Ut(i);if(!l)return t;var f=we(l,r.ch,r.sticky),d=l[f];if(d.from!=r.ch&&d.to!=r.ch)return t;var p=f+(d.from==r.ch==(d.level!=1)?0:1);if(p==0||p==l.length)return t;var g;if(n.line!=r.line)g=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var b=we(l,n.ch,n.sticky),E=b-f||(n.ch-r.ch)*(d.level==1?-1:1);b==p-1||b==p?g=E<0:g=E>0}var M=l[p+(g?-1:0)],C=g==(M.level==1),O=C?M.from:M.to,z=C?"after":"before";return r.ch==O&&r.sticky==z?t:new Se(new G(r.line,O,z),n)}function Zu(e,t,r,n){var i,l;if(t.touches)i=t.touches[0].clientX,l=t.touches[0].clientY;else try{i=t.clientX,l=t.clientY}catch(M){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&yt(t);var f=e.display,d=f.lineDiv.getBoundingClientRect();if(l>d.bottom||!Rt(e,r))return pa(t);l-=d.top-f.viewOffset;for(var p=0;p=i){var b=Pn(e.doc,l),E=e.display.gutterSpecs[p];return ye(e,r,e,b,E.className,t),pa(t)}}}function hl(e,t){return Zu(e,t,"gutterClick",!0)}function Ju(e,t){an(e.display,t)||fh(e,t)||Ne(e,t,"contextmenu")||P||e.display.input.onContextMenu(t)}function fh(e,t){return Rt(e,"gutterContextMenu")?Zu(e,t,"gutterContextMenu",!1):!1}function Vu(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xr(e)}var br={toString:function(){return"CodeMirror.Init"}},ef={},fo={};function ch(e){var t=e.optionHandlers;function r(n,i,l,f){e.defaults[n]=i,l&&(t[n]=f?function(d,p,g){g!=br&&l(d,p,g)}:l)}e.defineOption=r,e.Init=br,r("value","",function(n,i){return n.setValue(i)},!0),r("mode",null,function(n,i){n.doc.modeOption=i,rl(n)},!0),r("indentUnit",2,rl,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){ti(n),Xr(n),bt(n)},!0),r("lineSeparator",null,function(n,i){if(n.doc.lineSep=i,!!i){var l=[],f=n.doc.first;n.doc.iter(function(p){for(var g=0;;){var b=p.text.indexOf(i,g);if(b==-1)break;g=b+i.length,l.push(G(f,b))}f++});for(var d=l.length-1;d>=0;d--)mr(n.doc,i,l[d],G(l[d].line,l[d].ch+i.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(n,i,l){n.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),l!=br&&n.refresh()}),r("specialCharPlaceholder",zc,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",V?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(n,i){return n.getInputField().spellcheck=i},!0),r("autocorrect",!1,function(n,i){return n.getInputField().autocorrect=i},!0),r("autocapitalize",!1,function(n,i){return n.getInputField().autocapitalize=i},!0),r("rtlMoveVisually",!te),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){Vu(n),ei(n)},!0),r("keyMap","default",function(n,i,l){var f=so(i),d=l!=br&&so(l);d&&d.detach&&d.detach(n,f),f.attach&&f.attach(n,d||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,hh,!0),r("gutters",[],function(n,i){n.display.gutterSpecs=tl(i,n.options.lineNumbers),ei(n)},!0),r("fixedGutter",!0,function(n,i){n.display.gutters.style.left=i?Ua(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return cr(n)},!0),r("scrollbarStyle","native",function(n){nu(n),cr(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),r("lineNumbers",!1,function(n,i){n.display.gutterSpecs=tl(n.options.gutters,i),ei(n)},!0),r("firstLineNumber",1,ei,!0),r("lineNumberFormatter",function(n){return n},ei,!0),r("showCursorWhenSelecting",!1,Kr,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,i){i=="nocursor"&&(ur(n),n.display.input.blur()),n.display.input.readOnlyChanged(i)}),r("screenReaderLabel",null,function(n,i){i=i===""?null:i,n.display.input.screenReaderLabelChanged(i)}),r("disableInput",!1,function(n,i){i||n.display.input.reset()},!0),r("dragDrop",!0,dh),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Kr,!0),r("singleCursorHeightPerLine",!0,Kr,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,ti,!0),r("addModeClass",!1,ti,!0),r("pollInterval",100),r("undoDepth",200,function(n,i){return n.doc.history.undoDepth=i}),r("historyEventDelay",1250),r("viewportMargin",10,function(n){return n.refresh()},!0),r("maxHighlightLength",1e4,ti,!0),r("moveInputWithCursor",!0,function(n,i){i||n.display.input.resetPosition()}),r("tabindex",null,function(n,i){return n.display.input.getField().tabIndex=i||""}),r("autofocus",null),r("direction","ltr",function(n,i){return n.doc.setDirection(i)},!0),r("phrases",null)}function dh(e,t,r){var n=r&&r!=br;if(!t!=!n){var i=e.display.dragFunctions,l=t?ue:Ve;l(e.display.scroller,"dragstart",i.start),l(e.display.scroller,"dragenter",i.enter),l(e.display.scroller,"dragover",i.over),l(e.display.scroller,"dragleave",i.leave),l(e.display.scroller,"drop",i.drop)}}function hh(e){e.options.lineWrapping?(Ie(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):($(e.display.wrapper,"CodeMirror-wrap"),Ia(e)),qa(e),bt(e),Xr(e),setTimeout(function(){return cr(e)},100)}function Fe(e,t){var r=this;if(!(this instanceof Fe))return new Fe(e,t);this.options=t=t?ut(t):{},ut(ef,t,!1);var n=t.value;typeof n=="string"?n=new xt(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Fe.inputStyles[t.inputStyle](this),l=this.display=new kd(e,n,i,t);l.wrapper.CodeMirror=this,Vu(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),nu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new at,keySeq:null,specialChars:null},t.autofocus&&!V&&l.input.focus(),m&&v<11&&setTimeout(function(){return r.display.input.reset(!0)},20),ph(this),jd(),Un(this),this.curOp.forceUpdate=!0,du(this,n),t.autofocus&&!V||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Ka(r)},20):ur(this);for(var f in fo)fo.hasOwnProperty(f)&&fo[f](this,t[f],br);ou(this),t.finishInit&&t.finishInit(this);for(var d=0;d20*20}ue(t.scroller,"touchstart",function(p){if(!Ne(e,p)&&!l(p)&&!hl(e,p)){t.input.ensurePolled(),clearTimeout(r);var g=+new Date;t.activeTouch={start:g,moved:!1,prev:g-n.end<=300?n:null},p.touches.length==1&&(t.activeTouch.left=p.touches[0].pageX,t.activeTouch.top=p.touches[0].pageY)}}),ue(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ue(t.scroller,"touchend",function(p){var g=t.activeTouch;if(g&&!an(t,p)&&g.left!=null&&!g.moved&&new Date-g.start<300){var b=e.coordsChar(t.activeTouch,"page"),E;!g.prev||f(g,g.prev)?E=new Se(b,b):!g.prev.prev||f(g,g.prev.prev)?E=e.findWordAt(b):E=new Se(G(b.line,0),pe(e.doc,G(b.line+1,0))),e.setSelection(E.anchor,E.head),e.focus(),yt(p)}i()}),ue(t.scroller,"touchcancel",i),ue(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Qr(e,t.scroller.scrollTop),_n(e,t.scroller.scrollLeft,!0),ye(e,"scroll",e))}),ue(t.scroller,"mousewheel",function(p){return su(e,p)}),ue(t.scroller,"DOMMouseScroll",function(p){return su(e,p)}),ue(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(p){Ne(e,p)||zr(p)},over:function(p){Ne(e,p)||(qd(e,p),zr(p))},start:function(p){return Ud(e,p)},drop:tt(e,Gd),leave:function(p){Ne(e,p)||Pu(e)}};var d=t.input.getField();ue(d,"keyup",function(p){return Xu.call(e,p)}),ue(d,"keydown",tt(e,Yu)),ue(d,"keypress",tt(e,Ku)),ue(d,"focus",function(p){return Ka(e,p)}),ue(d,"blur",function(p){return ur(e,p)})}var pl=[];Fe.defineInitHook=function(e){return pl.push(e)};function pi(e,t,r,n){var i=e.doc,l;r==null&&(r="add"),r=="smart"&&(i.mode.indent?l=Gr(e,t).state:r="prev");var f=e.options.tabSize,d=le(i,t),p=Pe(d.text,null,f);d.stateAfter&&(d.stateAfter=null);var g=d.text.match(/^\s*/)[0],b;if(!n&&!/\S/.test(d.text))b=0,r="not";else if(r=="smart"&&(b=i.mode.indent(l,d.text.slice(g.length),d.text),b==We||b>150)){if(!n)return;r="prev"}r=="prev"?t>i.first?b=Pe(le(i,t-1).text,null,f):b=0:r=="add"?b=p+e.options.indentUnit:r=="subtract"?b=p-e.options.indentUnit:typeof r=="number"&&(b=p+r),b=Math.max(0,b);var E="",M=0;if(e.options.indentWithTabs)for(var C=Math.floor(b/f);C;--C)M+=f,E+=" ";if(Mf,p=ya(t),g=null;if(d&&n.ranges.length>1)if(Xt&&Xt.text.join(` -`)==t){if(n.ranges.length%Xt.text.length==0){g=[];for(var b=0;b=0;M--){var C=n.ranges[M],O=C.from(),z=C.to();C.empty()&&(r&&r>0?O=G(O.line,O.ch-r):e.state.overwrite&&!d?z=G(z.line,Math.min(le(l,z.line).text.length,z.ch+be(p).length)):d&&Xt&&Xt.lineWise&&Xt.text.join(` + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(f),f.scrollIntoView(i),e.display.lineSpace.removeChild(f)}}}function cd(e,t,r,n){n==null&&(n=0);var i;!e.options.lineWrapping&&t==r&&(r=t.sticky=="before"?U(t.line,t.ch+1,"before"):t,t=t.ch?U(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var l=0;l<5;l++){var f=!1,d=jt(e,t),p=!r||r==t?d:jt(e,r);i={left:Math.min(d.left,p.left),top:Math.min(d.top,p.top)-n,right:Math.max(d.left,p.left),bottom:Math.max(d.bottom,p.bottom)+n};var g=$a(e,i),b=e.doc.scrollTop,E=e.doc.scrollLeft;if(g.scrollTop!=null&&(Qr(e,g.scrollTop),Math.abs(e.doc.scrollTop-b)>1&&(f=!0)),g.scrollLeft!=null&&(_n(e,g.scrollLeft),Math.abs(e.doc.scrollLeft-E)>1&&(f=!0)),!f)break}return i}function dd(e,t){var r=$a(e,t);r.scrollTop!=null&&Qr(e,r.scrollTop),r.scrollLeft!=null&&_n(e,r.scrollLeft)}function $a(e,t){var r=e.display,n=lr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,l=Pa(e),f={};t.bottom-t.top>l&&(t.bottom=t.top+l);var d=e.doc.height+Fa(r),p=t.topd-n;if(t.topi+l){var b=Math.min(t.top,(g?d:t.bottom)-l);b!=i&&(f.scrollTop=b)}var E=e.options.fixedGutter?0:r.gutters.offsetWidth,A=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-E,C=Bn(e)-r.gutters.offsetWidth,O=t.right-t.left>C;return O&&(t.right=t.left+C),t.left<10?f.scrollLeft=0:t.leftC+A-3&&(f.scrollLeft=t.right+(O?0:10)-C),f}function Qa(e,t){t!=null&&(Ji(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function fr(e){Ji(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function $r(e,t,r){(t!=null||r!=null)&&Ji(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function hd(e,t){Ji(e),e.curOp.scrollToPos=t}function Ji(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=qs(e,t.from),n=qs(e,t.to);Js(e,r,n,t.margin)}}function Js(e,t,r,n){var i=$a(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});$r(e,i.scrollLeft,i.scrollTop)}function Qr(e,t){Math.abs(e.doc.scrollTop-t)<2||(a||Ja(e,{top:t}),Vs(e,t,!0),a&&Ja(e),Vr(e,100))}function Vs(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function _n(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)&&(e.doc.scrollLeft=t,iu(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Zr(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Fa(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Jt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var Gn=function(e,t,r){this.cm=r;var n=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),ue(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),ue(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&v<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Gn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var l=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+l)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},Gn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Gn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Gn.prototype.zeroWidthHack=function(){var e=j&&!M?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new at,this.disableVert=new at},Gn.prototype.enableZeroWidthBar=function(e,t,r){e.style.visibility="";function n(){var i=e.getBoundingClientRect(),l=r=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);l!=e?e.style.visibility="hidden":t.set(1e3,n)}t.set(1e3,n)},Gn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Jr=function(){};Jr.prototype.update=function(){return{bottom:0,right:0}},Jr.prototype.setScrollLeft=function(){},Jr.prototype.setScrollTop=function(){},Jr.prototype.clear=function(){};function cr(e,t){t||(t=Zr(e));var r=e.display.barWidth,n=e.display.barHeight;eu(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Qi(e),eu(e,Zr(e)),r=e.display.barWidth,n=e.display.barHeight}function eu(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}var tu={native:Gn,null:Jr};function nu(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&$(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new tu[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ue(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){r=="horizontal"?_n(e,t):Qr(e,t)},e),e.display.scrollbars.addClass&&Ie(e.display.wrapper,e.display.scrollbars.addClass)}var pd=0;function Un(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++pd,markArrays:null},jc(e.curOp)}function qn(e){var t=e.curOp;t&&Xc(t,function(r){for(var n=0;n=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Vi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function vd(e){e.updatedDisplay=e.mustUpdate&&Za(e.cm,e.update)}function yd(e){var t=e.cm,r=t.display;e.updatedDisplay&&Qi(t),e.barMeasure=Zr(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ps(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Jt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Bn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function bd(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var r=+new Date+e.options.workTime,n=Gr(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(l){if(n.line>=e.display.viewFrom){var f=l.styles,d=l.text.length>e.options.maxHighlightLength?On(t.mode,n.state):null,p=fs(e,l,n,!0);d&&(n.state=d),l.styles=p.styles;var g=l.styleClasses,b=p.classes;b?l.styleClasses=b:g&&(l.styleClasses=null);for(var E=!f||f.length!=l.styles.length||g!=b&&(!g||!b||g.bgClass!=b.bgClass||g.textClass!=b.textClass),A=0;!E&&Ar)return Vr(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Mt(e,function(){for(var l=0;l=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&Ks(e)==0)return!1;ou(e)&&(bn(e),t.dims=Ga(e));var i=n.first+n.size,l=Math.max(t.visible.from-e.options.viewportMargin,n.first),f=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFromf&&r.viewTo-f<20&&(f=Math.min(i,r.viewTo)),rn&&(l=Ha(e.doc,l),f=Ss(e.doc,f));var d=l!=r.viewFrom||f!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;sd(e,l,f),r.viewOffset=on(le(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var p=Ks(e);if(!d&&p==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var g=Ld(e);return p>4&&(r.lineDiv.style.display="none"),Td(e,r.updateLineNumbers,t.dims),p>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Sd(g),ee(r.cursorDiv),ee(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,d&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,Vr(e,400)),r.updateLineNumbers=null,!0}function ru(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Bn(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+Fa(e.display)-Pa(e),r.top)}),t.visible=Zi(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Zi(e.display,e.doc,r));if(!Za(e,t))break;Qi(e);var i=Zr(e);Kr(e),cr(e,i),el(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ja(e,t){var r=new Vi(e,t);if(Za(e,r)){Qi(e),ru(e,r);var n=Zr(e);Kr(e),cr(e,n),el(e,n),r.finish()}}function Td(e,t,r){var n=e.display,i=e.options.lineNumbers,l=n.lineDiv,f=l.firstChild;function d(O){var z=O.nextSibling;return x&&j&&e.display.currentWheelTarget==O?O.style.display="none":O.parentNode.removeChild(O),z}for(var p=n.view,g=n.viewFrom,b=0;b-1&&(C=!1),Ds(e,E,g,r)),C&&(ee(E.lineNumber),E.lineNumber.appendChild(document.createTextNode(Sa(e.options,g)))),f=E.node.nextSibling}g+=E.size}for(;f;)f=d(f)}function Va(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",et(e,"gutterChanged",e)}function el(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Jt(e)+"px"}function iu(e){var t=e.display,r=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Ua(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,l=n+"px",f=0;f=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),m&&v<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!x&&!(a&&V)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=tl(n.gutters,n.lineNumbers),au(i),r.init(i)}var eo=0,ln=null;m?ln=-.53:a?ln=15:S?ln=-.7:N&&(ln=-1/3);function lu(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),r==null&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:r==null&&(r=e.wheelDelta),{x:t,y:r}}function Cd(e){var t=lu(e);return t.x*=ln,t.y*=ln,t}function su(e,t){S&&k==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var r=lu(t),n=r.x,i=r.y,l=ln;t.deltaMode===0&&(n=t.deltaX,i=t.deltaY,l=1);var f=e.display,d=f.scroller,p=d.scrollWidth>d.clientWidth,g=d.scrollHeight>d.clientHeight;if(n&&p||i&&g){if(i&&j&&x){e:for(var b=t.target,E=f.view;b!=d;b=b.parentNode)for(var A=0;A=0&&he(e,n.to())<=0)return r}return-1};var Se=function(e,t){this.anchor=e,this.head=t};Se.prototype.from=function(){return Bi(this.anchor,this.head)},Se.prototype.to=function(){return Pi(this.anchor,this.head)},Se.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Yt(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(A,C){return he(A.from(),C.from())}),r=De(t,i);for(var l=1;l0:p>=0){var g=Bi(d.from(),f.from()),b=Pi(d.to(),f.to()),E=d.empty()?f.from()==f.head:d.from()==d.head;l<=r&&--r,t.splice(--l,2,new Se(E?b:g,E?g:b))}}return new It(t,r)}function xn(e,t){return new It([new Se(e,t||e)],0)}function wn(e){return e.text?U(e.from.line+e.text.length-1,be(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function uu(e,t){if(he(e,t.from)<0)return e;if(he(e,t.to)<=0)return wn(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=wn(t).ch-t.to.ch),U(r,n)}function nl(e,t){for(var r=[],n=0;n1&&e.remove(d.line+1,O-1),e.insert(d.line+1,X)}et(e,"change",e,t)}function En(e,t,r){function n(i,l,f){if(i.linked)for(var d=0;d1&&!e.done[e.done.length-2].ranges)return e.done.pop(),be(e.done)}function mu(e,t,r,n){var i=e.history;i.undone.length=0;var l=+new Date,f,d;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(f=Ad(i,i.lastOp==n)))d=be(f.changes),he(t.from,t.to)==0&&he(t.from,d.to)==0?d.to=wn(t):f.changes.push(ol(e,t));else{var p=be(i.done);for((!p||!p.ranges)&&no(e.sel,i.done),f={changes:[ol(e,t)],generation:i.generation},i.done.push(f);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,d||ye(e,"historyAdded")}function Hd(e,t,r,n){var i=t.charAt(0);return i=="*"||i=="+"&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Nd(e,t,r,n){var i=e.history,l=n&&n.origin;r==i.lastSelOp||l&&i.lastSelOrigin==l&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==l||Hd(e,l,be(i.done),t))?i.done[i.done.length-1]=t:no(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=l,i.lastSelOp=r,n&&n.clearRedo!==!1&&pu(i.undone)}function no(e,t){var r=be(t);r&&r.ranges&&r.equals(e)||t.push(e)}function gu(e,t,r,n){var i=t["spans_"+e.id],l=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(f){f.markedSpans&&((i||(i=t["spans_"+e.id]={}))[l]=f.markedSpans),++l})}function Id(e){if(!e)return null;for(var t,r=0;r-1&&(be(d)[E]=g[E],delete g[E])}}return n}function al(e,t,r,n){if(n){var i=e.anchor;if(r){var l=he(t,i)<0;l!=he(r,i)<0?(i=t,t=r):l!=he(t,r)<0&&(t=r)}return new Se(i,t)}else return new Se(r||t,t)}function ro(e,t,r,n,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),ft(e,new It([al(e.sel.primary(),t,r,i)],0),n)}function yu(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),l=0;l=t.ch:d.to>t.ch))){if(i&&(ye(p,"beforeCursorEnter"),p.explicitlyCleared))if(l.markedSpans){--f;continue}else break;if(!p.atomic)continue;if(r){var E=p.find(n<0?1:-1),A=void 0;if((n<0?b:g)&&(E=Su(e,E,-n,E&&E.line==t.line?l:null)),E&&E.line==t.line&&(A=he(E,r))&&(n<0?A<0:A>0))return hr(e,E,t,n,i)}var C=p.find(n<0?-1:1);return(n<0?g:b)&&(C=Su(e,C,n,C.line==t.line?l:null)),C?hr(e,C,t,n,i):null}}return t}function oo(e,t,r,n,i){var l=n||1,f=hr(e,t,r,l,i)||!i&&hr(e,t,r,l,!0)||hr(e,t,r,-l,i)||!i&&hr(e,t,r,-l,!0);return f||(e.cantEdit=!0,U(e.first,0))}function Su(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?pe(e,U(t.line-1)):null:r>0&&t.ch==(n||le(e,t.line)).text.length?t.line=0;--i)Cu(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else Cu(e,t)}}function Cu(e,t){if(!(t.text.length==1&&t.text[0]==""&&he(t.from,t.to)==0)){var r=nl(e,t);mu(e,t,r,e.cm?e.cm.curOp.id:NaN),ni(e,t,r,Da(e,t));var n=[];En(e,function(i,l){!l&&De(n,i.history)==-1&&(Hu(i.history,t),n.push(i.history)),ni(i,t,null,Da(i,t))})}}function ao(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!r)){for(var i=e.history,l,f=e.sel,d=t=="undo"?i.done:i.undone,p=t=="undo"?i.undone:i.done,g=0;g=0;--C){var O=A(C);if(O)return O.v}}}}function Mu(e,t){if(t!=0&&(e.first+=t,e.sel=new It(Ct(e.sel.ranges,function(i){return new Se(U(i.anchor.line+t,i.anchor.ch),U(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){bt(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.linel&&(t={from:t.from,to:U(l,le(e,l).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Fn(e,t.from,t.to),r||(r=nl(e,t)),e.cm?Pd(e.cm,t,n):il(e,t,n),io(e,r,lt),e.cantEdit&&oo(e,U(e.firstLine(),0))&&(e.cantEdit=!1)}}function Pd(e,t,r){var n=e.doc,i=e.display,l=t.from,f=t.to,d=!1,p=l.line;e.options.lineWrapping||(p=Ce(qt(le(n,l.line))),n.iter(p,f.line+1,function(C){if(C==i.maxLine)return d=!0,!0})),n.sel.contains(t.from,t.to)>-1&&In(e),il(n,t,r,Xs(e)),e.options.lineWrapping||(n.iter(p,l.line+t.text.length,function(C){var O=Ui(C);O>i.maxLineLength&&(i.maxLine=C,i.maxLineLength=O,i.maxLineChanged=!0,d=!1)}),d&&(e.curOp.updateMaxLine=!0)),Tc(n,l.line),Vr(e,400);var g=t.text.length-(f.line-l.line)-1;t.full?bt(e):l.line==f.line&&t.text.length==1&&!cu(e.doc,t)?yn(e,l.line,"text"):bt(e,l.line,f.line+1,g);var b=Rt(e,"changes"),E=Rt(e,"change");if(E||b){var A={from:l,to:f,text:t.text,removed:t.removed,origin:t.origin};E&&et(e,"change",e,A),b&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(A)}e.display.selForContextMenu=null}function mr(e,t,r,n,i){var l;n||(n=r),he(n,r)<0&&(l=[n,r],r=l[0],n=l[1]),typeof t=="string"&&(t=e.splitLines(t)),pr(e,{from:r,to:n,text:t,origin:i})}function Du(e,t,r,n){r1||!(this.children[0]instanceof ii))){var d=[];this.collapse(d),this.children=[new ii(d)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var f=i.lines.length%25+25,d=f;d10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=g,e.display.maxLineLength=b,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&bt(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Eu(e.doc)),e&&et(e,"markerCleared",e,this,n,i),t&&qn(e),this.parent&&this.parent.clear()}},Ln.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var r,n,i=0;i0||f==0&&l.clearWhenEmpty!==!1)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=B("span",[l.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(Ls(e,t.line,t,r,l)||t.line!=r.line&&Ls(e,r.line,t,r,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");Cc()}l.addToHistory&&mu(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var d=t.line,p=e.cm,g;if(e.iter(d,r.line+1,function(E){p&&l.collapsed&&!p.options.lineWrapping&&qt(E)==p.display.maxLine&&(g=!0),l.collapsed&&d!=t.line&&Qt(E,0),Dc(E,new Wi(l,d==t.line?t.ch:null,d==r.line?r.ch:null),e.cm&&e.cm.curOp),++d}),l.collapsed&&e.iter(t.line,r.line+1,function(E){vn(e,E)&&Qt(E,0)}),l.clearOnEnter&&ue(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(kc(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++Iu,l.atomic=!0),p){if(g&&(p.curOp.updateMaxLine=!0),l.collapsed)bt(p,t.line,r.line+1);else if(l.className||l.startStyle||l.endStyle||l.css||l.attributes||l.title)for(var b=t.line;b<=r.line;b++)yn(p,b,"text");l.atomic&&Eu(p.doc),et(p,"markerAdded",p,l)}return l}var li=function(e,t){this.markers=e,this.primary=t;for(var r=0;r=0;p--)pr(this,n[p]);d?xu(this,d):this.cm&&fr(this.cm)}),undo:nt(function(){ao(this,"undo")}),redo:nt(function(){ao(this,"redo")}),undoSelection:nt(function(){ao(this,"undo",!0)}),redoSelection:nt(function(){ao(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=pe(this,e),t=pe(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(l){var f=l.markedSpans;if(f)for(var d=0;d=p.to||p.from==null&&i!=e.line||p.from!=null&&i==t.line&&p.from>=t.ch)&&(!r||r(p.marker))&&n.push(p.marker.parent||p.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=l,++r}),pe(this,U(r,t))},indexFromPos:function(e){e=pe(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var b=e.dataTransfer.getData("Text");if(b){var E;if(t.state.draggingText&&!t.state.draggingText.copy&&(E=t.listSelections()),io(t.doc,xn(r,r)),E)for(var A=0;A=0;d--)mr(e.doc,"",n[d].from,n[d].to,"+delete");fr(e)})}function sl(e,t,r){var n=Vn(e.text,t+r,r);return n<0||n>e.text.length?null:n}function ul(e,t,r){var n=sl(e,t.ch,r);return n==null?null:new U(t.line,n,r<0?"after":"before")}function fl(e,t,r,n,i){if(e){t.doc.direction=="rtl"&&(i=-i);var l=Ut(r,t.doc.direction);if(l){var f=i<0?be(l):l[0],d=i<0==(f.level==1),p=d?"after":"before",g;if(f.level>0||t.doc.direction=="rtl"){var b=ar(t,r);g=i<0?r.text.length-1:0;var E=Vt(t,b,g).top;g=mn(function(A){return Vt(t,b,A).top==E},i<0==(f.level==1)?f.from:f.to-1,g),p=="before"&&(g=sl(r,g,1))}else g=i<0?f.to:f.from;return new U(n,g,p)}}return new U(n,i<0?r.text.length:0,i<0?"before":"after")}function Qd(e,t,r,n){var i=Ut(t,e.doc.direction);if(!i)return ul(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var l=we(i,r.ch,r.sticky),f=i[l];if(e.doc.direction=="ltr"&&f.level%2==0&&(n>0?f.to>r.ch:f.from=f.from&&A>=b.begin)){var C=E?"before":"after";return new U(r.line,A,C)}}var O=function(X,J,K){for(var re=function(Ae,rt){return rt?new U(r.line,d(Ae,1),"before"):new U(r.line,Ae,"after")};X>=0&&X0==(fe.level!=1),ve=se?K.begin:d(K.end,-1);if(fe.from<=ve&&ve0?b.end:d(b.begin,-1);return q!=null&&!(n>0&&q==t.text.length)&&(z=O(n>0?0:i.length-1,n,g(q)),z)?z:null}var fi={selectAll:Tu,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),lt)},killLine:function(e){return yr(e,function(t){if(t.empty()){var r=le(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)i=new U(i.line,i.ch+1),e.replaceRange(l.charAt(i.ch-1)+l.charAt(i.ch-2),U(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var f=le(e.doc,i.line-1).text;f&&(i=new U(i.line,1),e.replaceRange(l.charAt(0)+e.doc.lineSeparator()+f.charAt(f.length-1),U(i.line-1,f.length-1),i,"+transpose"))}}r.push(new Se(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return Mt(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;ne&&he(t,this.pos)==0&&r==this.button};var di,hi;function rh(e,t){var r=+new Date;return hi&&hi.compare(r,e,t)?(di=hi=null,"triple"):di&&di.compare(r,e,t)?(hi=new dl(r,e,t),di=null,"double"):(di=new dl(r,e,t),hi=null,"single")}function $u(e){var t=this,r=t.display;if(!(Ne(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,an(r,e)){x||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(!hl(t,e)){var n=Wn(t,e),i=as(e),l=n?rh(n,i):"single";me(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&ih(t,i,n,l,e))&&(i==1?n?ah(t,n,l,e):ma(e)==r.scroller&&yt(e):i==2?(n&&ro(t.doc,n),setTimeout(function(){return r.input.focus()},20)):i==3&&(P?t.display.input.onContextMenu(e):Xa(t)))}}}function ih(e,t,r,n,i){var l="Click";return n=="double"?l="Double"+l:n=="triple"&&(l="Triple"+l),l=(t==1?"Left":t==2?"Middle":"Right")+l,ci(e,zu(l,i),i,function(f){if(typeof f=="string"&&(f=fi[f]),!f)return!1;var d=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),d=f(e,r)!=We}finally{e.state.suppressEdits=!1}return d})}function oh(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(i.unit==null){var l=F?r.shiftKey&&r.metaKey:r.altKey;i.unit=l?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey),i.addNew==null&&(i.addNew=j?r.metaKey:r.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(j?r.altKey:r.ctrlKey)),i}function ah(e,t,r,n){m?setTimeout(Je(Qs,e),0):e.curOp.focus=xe(ae(e));var i=oh(e,r,n),l=e.doc.sel,f;e.options.dragDrop&&pc&&!e.isReadOnly()&&r=="single"&&(f=l.contains(t))>-1&&(he((f=l.ranges[f]).from(),t)<0||t.xRel>0)&&(he(f.to(),t)>0||t.xRel<0)?lh(e,n,t,i):sh(e,n,t,i)}function lh(e,t,r,n){var i=e.display,l=!1,f=tt(e,function(g){x&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Xa(e)),Ve(i.wrapper.ownerDocument,"mouseup",f),Ve(i.wrapper.ownerDocument,"mousemove",d),Ve(i.scroller,"dragstart",p),Ve(i.scroller,"drop",f),l||(yt(g),n.addNew||ro(e.doc,r,null,null,n.extend),x&&!N||m&&v==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),d=function(g){l=l||Math.abs(t.clientX-g.clientX)+Math.abs(t.clientY-g.clientY)>=10},p=function(){return l=!0};x&&(i.scroller.draggable=!0),e.state.draggingText=f,f.copy=!n.moveOnDrag,ue(i.wrapper.ownerDocument,"mouseup",f),ue(i.wrapper.ownerDocument,"mousemove",d),ue(i.scroller,"dragstart",p),ue(i.scroller,"drop",f),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Qu(e,t,r){if(r=="char")return new Se(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new Se(U(t.line,0),pe(e.doc,U(t.line+1,0)));var n=r(e,t);return new Se(n.from,n.to)}function sh(e,t,r,n){m&&Xa(e);var i=e.display,l=e.doc;yt(t);var f,d,p=l.sel,g=p.ranges;if(n.addNew&&!n.extend?(d=l.sel.contains(r),d>-1?f=g[d]:f=new Se(r,r)):(f=l.sel.primary(),d=l.sel.primIndex),n.unit=="rectangle")n.addNew||(f=new Se(r,r)),r=Wn(e,t,!0,!0),d=-1;else{var b=Qu(e,r,n.unit);n.extend?f=al(f,b.anchor,b.head,n.extend):f=b}n.addNew?d==-1?(d=g.length,ft(l,Yt(e,g.concat([f]),d),{scroll:!1,origin:"*mouse"})):g.length>1&&g[d].empty()&&n.unit=="char"&&!n.extend?(ft(l,Yt(e,g.slice(0,d).concat(g.slice(d+1)),0),{scroll:!1,origin:"*mouse"}),p=l.sel):ll(l,d,f,pn):(d=0,ft(l,new It([f],0),pn),p=l.sel);var E=r;function A(K){if(he(E,K)!=0)if(E=K,n.unit=="rectangle"){for(var re=[],fe=e.options.tabSize,se=Pe(le(l,r.line).text,r.ch,fe),ve=Pe(le(l,K.line).text,K.ch,fe),Ae=Math.min(se,ve),rt=Math.max(se,ve),Be=Math.min(r.line,K.line),Dt=Math.min(e.lastLine(),Math.max(r.line,K.line));Be<=Dt;Be++){var wt=le(l,Be).text,Ye=Nt(wt,Ae,fe);Ae==rt?re.push(new Se(U(Be,Ye),U(Be,Ye))):wt.length>Ye&&re.push(new Se(U(Be,Ye),U(Be,Nt(wt,rt,fe))))}re.length||re.push(new Se(r,r)),ft(l,Yt(e,p.ranges.slice(0,d).concat(re),d),{origin:"*mouse",scroll:!1}),e.scrollIntoView(K)}else{var Et=f,st=Qu(e,K,n.unit),$e=Et.anchor,Xe;he(st.anchor,$e)>0?(Xe=st.head,$e=Bi(Et.from(),st.anchor)):(Xe=st.anchor,$e=Pi(Et.to(),st.head));var ze=p.ranges.slice(0);ze[d]=uh(e,new Se(pe(l,$e),Xe)),ft(l,Yt(e,ze,d),pn)}}var C=i.wrapper.getBoundingClientRect(),O=0;function z(K){var re=++O,fe=Wn(e,K,!0,n.unit=="rectangle");if(fe)if(he(fe,E)!=0){e.curOp.focus=xe(ae(e)),A(fe);var se=Zi(i,l);(fe.line>=se.to||fe.lineC.bottom?20:0;ve&&setTimeout(tt(e,function(){O==re&&(i.scroller.scrollTop+=ve,z(K))}),50)}}function q(K){e.state.selectingText=!1,O=1/0,K&&(yt(K),i.input.focus()),Ve(i.wrapper.ownerDocument,"mousemove",X),Ve(i.wrapper.ownerDocument,"mouseup",J),l.history.lastSelOrigin=null}var X=tt(e,function(K){K.buttons===0||!as(K)?q(K):z(K)}),J=tt(e,q);e.state.selectingText=J,ue(i.wrapper.ownerDocument,"mousemove",X),ue(i.wrapper.ownerDocument,"mouseup",J)}function uh(e,t){var r=t.anchor,n=t.head,i=le(e.doc,r.line);if(he(r,n)==0&&r.sticky==n.sticky)return t;var l=Ut(i);if(!l)return t;var f=we(l,r.ch,r.sticky),d=l[f];if(d.from!=r.ch&&d.to!=r.ch)return t;var p=f+(d.from==r.ch==(d.level!=1)?0:1);if(p==0||p==l.length)return t;var g;if(n.line!=r.line)g=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var b=we(l,n.ch,n.sticky),E=b-f||(n.ch-r.ch)*(d.level==1?-1:1);b==p-1||b==p?g=E<0:g=E>0}var A=l[p+(g?-1:0)],C=g==(A.level==1),O=C?A.from:A.to,z=C?"after":"before";return r.ch==O&&r.sticky==z?t:new Se(new U(r.line,O,z),n)}function Zu(e,t,r,n){var i,l;if(t.touches)i=t.touches[0].clientX,l=t.touches[0].clientY;else try{i=t.clientX,l=t.clientY}catch(A){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&yt(t);var f=e.display,d=f.lineDiv.getBoundingClientRect();if(l>d.bottom||!Rt(e,r))return pa(t);l-=d.top-f.viewOffset;for(var p=0;p=i){var b=Pn(e.doc,l),E=e.display.gutterSpecs[p];return ye(e,r,e,b,E.className,t),pa(t)}}}function hl(e,t){return Zu(e,t,"gutterClick",!0)}function Ju(e,t){an(e.display,t)||fh(e,t)||Ne(e,t,"contextmenu")||P||e.display.input.onContextMenu(t)}function fh(e,t){return Rt(e,"gutterContextMenu")?Zu(e,t,"gutterContextMenu",!1):!1}function Vu(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xr(e)}var br={toString:function(){return"CodeMirror.Init"}},ef={},fo={};function ch(e){var t=e.optionHandlers;function r(n,i,l,f){e.defaults[n]=i,l&&(t[n]=f?function(d,p,g){g!=br&&l(d,p,g)}:l)}e.defineOption=r,e.Init=br,r("value","",function(n,i){return n.setValue(i)},!0),r("mode",null,function(n,i){n.doc.modeOption=i,rl(n)},!0),r("indentUnit",2,rl,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){ti(n),Xr(n),bt(n)},!0),r("lineSeparator",null,function(n,i){if(n.doc.lineSep=i,!!i){var l=[],f=n.doc.first;n.doc.iter(function(p){for(var g=0;;){var b=p.text.indexOf(i,g);if(b==-1)break;g=b+i.length,l.push(U(f,b))}f++});for(var d=l.length-1;d>=0;d--)mr(n.doc,i,l[d],U(l[d].line,l[d].ch+i.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(n,i,l){n.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),l!=br&&n.refresh()}),r("specialCharPlaceholder",zc,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",V?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(n,i){return n.getInputField().spellcheck=i},!0),r("autocorrect",!1,function(n,i){return n.getInputField().autocorrect=i},!0),r("autocapitalize",!1,function(n,i){return n.getInputField().autocapitalize=i},!0),r("rtlMoveVisually",!te),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){Vu(n),ei(n)},!0),r("keyMap","default",function(n,i,l){var f=so(i),d=l!=br&&so(l);d&&d.detach&&d.detach(n,f),f.attach&&f.attach(n,d||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,hh,!0),r("gutters",[],function(n,i){n.display.gutterSpecs=tl(i,n.options.lineNumbers),ei(n)},!0),r("fixedGutter",!0,function(n,i){n.display.gutters.style.left=i?Ua(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return cr(n)},!0),r("scrollbarStyle","native",function(n){nu(n),cr(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),r("lineNumbers",!1,function(n,i){n.display.gutterSpecs=tl(n.options.gutters,i),ei(n)},!0),r("firstLineNumber",1,ei,!0),r("lineNumberFormatter",function(n){return n},ei,!0),r("showCursorWhenSelecting",!1,Kr,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,i){i=="nocursor"&&(ur(n),n.display.input.blur()),n.display.input.readOnlyChanged(i)}),r("screenReaderLabel",null,function(n,i){i=i===""?null:i,n.display.input.screenReaderLabelChanged(i)}),r("disableInput",!1,function(n,i){i||n.display.input.reset()},!0),r("dragDrop",!0,dh),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Kr,!0),r("singleCursorHeightPerLine",!0,Kr,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,ti,!0),r("addModeClass",!1,ti,!0),r("pollInterval",100),r("undoDepth",200,function(n,i){return n.doc.history.undoDepth=i}),r("historyEventDelay",1250),r("viewportMargin",10,function(n){return n.refresh()},!0),r("maxHighlightLength",1e4,ti,!0),r("moveInputWithCursor",!0,function(n,i){i||n.display.input.resetPosition()}),r("tabindex",null,function(n,i){return n.display.input.getField().tabIndex=i||""}),r("autofocus",null),r("direction","ltr",function(n,i){return n.doc.setDirection(i)},!0),r("phrases",null)}function dh(e,t,r){var n=r&&r!=br;if(!t!=!n){var i=e.display.dragFunctions,l=t?ue:Ve;l(e.display.scroller,"dragstart",i.start),l(e.display.scroller,"dragenter",i.enter),l(e.display.scroller,"dragover",i.over),l(e.display.scroller,"dragleave",i.leave),l(e.display.scroller,"drop",i.drop)}}function hh(e){e.options.lineWrapping?(Ie(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):($(e.display.wrapper,"CodeMirror-wrap"),Ia(e)),qa(e),bt(e),Xr(e),setTimeout(function(){return cr(e)},100)}function Fe(e,t){var r=this;if(!(this instanceof Fe))return new Fe(e,t);this.options=t=t?ut(t):{},ut(ef,t,!1);var n=t.value;typeof n=="string"?n=new xt(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Fe.inputStyles[t.inputStyle](this),l=this.display=new kd(e,n,i,t);l.wrapper.CodeMirror=this,Vu(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),nu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new at,keySeq:null,specialChars:null},t.autofocus&&!V&&l.input.focus(),m&&v<11&&setTimeout(function(){return r.display.input.reset(!0)},20),ph(this),jd(),Un(this),this.curOp.forceUpdate=!0,du(this,n),t.autofocus&&!V||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Ka(r)},20):ur(this);for(var f in fo)fo.hasOwnProperty(f)&&fo[f](this,t[f],br);ou(this),t.finishInit&&t.finishInit(this);for(var d=0;d20*20}ue(t.scroller,"touchstart",function(p){if(!Ne(e,p)&&!l(p)&&!hl(e,p)){t.input.ensurePolled(),clearTimeout(r);var g=+new Date;t.activeTouch={start:g,moved:!1,prev:g-n.end<=300?n:null},p.touches.length==1&&(t.activeTouch.left=p.touches[0].pageX,t.activeTouch.top=p.touches[0].pageY)}}),ue(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ue(t.scroller,"touchend",function(p){var g=t.activeTouch;if(g&&!an(t,p)&&g.left!=null&&!g.moved&&new Date-g.start<300){var b=e.coordsChar(t.activeTouch,"page"),E;!g.prev||f(g,g.prev)?E=new Se(b,b):!g.prev.prev||f(g,g.prev.prev)?E=e.findWordAt(b):E=new Se(U(b.line,0),pe(e.doc,U(b.line+1,0))),e.setSelection(E.anchor,E.head),e.focus(),yt(p)}i()}),ue(t.scroller,"touchcancel",i),ue(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Qr(e,t.scroller.scrollTop),_n(e,t.scroller.scrollLeft,!0),ye(e,"scroll",e))}),ue(t.scroller,"mousewheel",function(p){return su(e,p)}),ue(t.scroller,"DOMMouseScroll",function(p){return su(e,p)}),ue(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(p){Ne(e,p)||zr(p)},over:function(p){Ne(e,p)||(qd(e,p),zr(p))},start:function(p){return Ud(e,p)},drop:tt(e,Gd),leave:function(p){Ne(e,p)||Pu(e)}};var d=t.input.getField();ue(d,"keyup",function(p){return Xu.call(e,p)}),ue(d,"keydown",tt(e,Yu)),ue(d,"keypress",tt(e,Ku)),ue(d,"focus",function(p){return Ka(e,p)}),ue(d,"blur",function(p){return ur(e,p)})}var pl=[];Fe.defineInitHook=function(e){return pl.push(e)};function pi(e,t,r,n){var i=e.doc,l;r==null&&(r="add"),r=="smart"&&(i.mode.indent?l=Gr(e,t).state:r="prev");var f=e.options.tabSize,d=le(i,t),p=Pe(d.text,null,f);d.stateAfter&&(d.stateAfter=null);var g=d.text.match(/^\s*/)[0],b;if(!n&&!/\S/.test(d.text))b=0,r="not";else if(r=="smart"&&(b=i.mode.indent(l,d.text.slice(g.length),d.text),b==We||b>150)){if(!n)return;r="prev"}r=="prev"?t>i.first?b=Pe(le(i,t-1).text,null,f):b=0:r=="add"?b=p+e.options.indentUnit:r=="subtract"?b=p-e.options.indentUnit:typeof r=="number"&&(b=p+r),b=Math.max(0,b);var E="",A=0;if(e.options.indentWithTabs)for(var C=Math.floor(b/f);C;--C)A+=f,E+=" ";if(Af,p=ya(t),g=null;if(d&&n.ranges.length>1)if(Xt&&Xt.text.join(` +`)==t){if(n.ranges.length%Xt.text.length==0){g=[];for(var b=0;b=0;A--){var C=n.ranges[A],O=C.from(),z=C.to();C.empty()&&(r&&r>0?O=U(O.line,O.ch-r):e.state.overwrite&&!d?z=U(z.line,Math.min(le(l,z.line).text.length,z.ch+be(p).length)):d&&Xt&&Xt.lineWise&&Xt.text.join(` `)==p.join(` -`)&&(O=z=G(O.line,0)));var q={from:O,to:z,text:g?g[M%g.length]:p,origin:i||(d?"paste":e.state.cutIncoming>f?"cut":"+input")};pr(e.doc,q),et(e,"inputRead",e,q)}t&&!d&&nf(e,t),fr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=E),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function tf(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Mt(t,function(){return ml(t,r,0,null,"paste")}),!0}function nf(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var l=e.getModeAt(i.head),f=!1;if(l.electricChars){for(var d=0;d-1){f=pi(e,i.head.line,"smart");break}}else l.electricInput&&l.electricInput.test(le(e.doc,i.head.line).text.slice(0,i.head.ch))&&(f=pi(e,i.head.line,"smart"));f&&et(e,"electricInput",e,i.head.line)}}}function rf(e){for(var t=[],r=[],n=0;nl&&(pi(this,d.head.line,n,!0),l=d.head.line,f==this.doc.sel.primIndex&&fr(this));else{var p=d.from(),g=d.to(),b=Math.max(l,p.line);l=Math.min(this.lastLine(),g.line-(g.ch?0:1))+1;for(var E=b;E0&&ll(this.doc,f,new Se(p,M[f].to()),lt)}}}),getTokenAt:function(n,i){return ps(this,n,i)},getLineTokens:function(n,i){return ps(this,G(n),i,!0)},getTokenTypeAt:function(n){n=pe(this.doc,n);var i=cs(this,le(this.doc,n.line)),l=0,f=(i.length-1)/2,d=n.ch,p;if(d==0)p=i[2];else for(;;){var g=l+f>>1;if((g?i[g*2-1]:0)>=d)f=g;else if(i[g*2+1]p&&(n=p,f=!0),d=le(this.doc,n)}else d=n;return Yi(this,d,{top:0,left:0},i||"page",l||f).top+(f?this.doc.height-on(d):0)},defaultTextHeight:function(){return lr(this.display)},defaultCharWidth:function(){return sr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,i,l,f,d){var p=this.display;n=jt(this,pe(this.doc,n));var g=n.bottom,b=n.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),p.sizer.appendChild(i),f=="over")g=n.top;else if(f=="above"||f=="near"){var E=Math.max(p.wrapper.clientHeight,this.doc.height),M=Math.max(p.sizer.clientWidth,p.lineSpace.clientWidth);(f=="above"||n.bottom+i.offsetHeight>E)&&n.top>i.offsetHeight?g=n.top-i.offsetHeight:n.bottom+i.offsetHeight<=E&&(g=n.bottom),b+i.offsetWidth>M&&(b=M-i.offsetWidth)}i.style.top=g+"px",i.style.left=i.style.right="",d=="right"?(b=p.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(d=="left"?b=0:d=="middle"&&(b=(p.sizer.clientWidth-i.offsetWidth)/2),i.style.left=b+"px"),l&&dd(this,{left:b,top:g,right:b+i.offsetWidth,bottom:g+i.offsetHeight})},triggerOnKeyDown:pt(Yu),triggerOnKeyPress:pt(Ku),triggerOnKeyUp:Xu,triggerOnMouseDown:pt($u),execCommand:function(n){if(fi.hasOwnProperty(n))return fi[n].call(null,this)},triggerElectric:pt(function(n){nf(this,n)}),findPosH:function(n,i,l,f){var d=1;i<0&&(d=-1,i=-i);for(var p=pe(this.doc,n),g=0;g0&&b(l.charAt(f-1));)--f;for(;d.5||this.options.lineWrapping)&&qa(this),ye(this,"refresh",this)}),swapDoc:pt(function(n){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),du(this,n),Xr(this),this.display.input.reset(),$r(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,et(this,"swapDoc",this,i),i}),phrase:function(n){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,n)?i[n]:n},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},tr(e),e.registerHelper=function(n,i,l){r.hasOwnProperty(n)||(r[n]=e[n]={_global:[]}),r[n][i]=l},e.registerGlobalHelper=function(n,i,l,f){e.registerHelper(n,i,f),r[n]._global.push({pred:l,val:f})}}function vl(e,t,r,n,i){var l=t,f=r,d=le(e,t.line),p=i&&e.direction=="rtl"?-r:r;function g(){var J=t.line+p;return J=e.first+e.size?!1:(t=new G(J,t.ch,t.sticky),d=le(e,J))}function b(J){var K;if(n=="codepoint"){var ne=d.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(ne))K=null;else{var fe=r>0?ne>=55296&&ne<56320:ne>=56320&&ne<57343;K=new G(t.line,Math.max(0,Math.min(d.text.length,t.ch+r*(fe?2:1))),-r)}}else i?K=Qd(e.cm,d,t,r):K=ul(d,t,r);if(K==null)if(!J&&g())t=fl(i,e.cm,d,t.line,p);else return!1;else t=K;return!0}if(n=="char"||n=="codepoint")b();else if(n=="column")b(!0);else if(n=="word"||n=="group")for(var E=null,M=n=="group",C=e.cm&&e.cm.getHelper(t,"wordChars"),O=!0;!(r<0&&!b(!O));O=!1){var z=d.text.charAt(t.ch)||` -`,q=Jn(z,C)?"w":M&&z==` -`?"n":!M||/\s/.test(z)?null:"p";if(M&&!O&&!q&&(q="s"),E&&E!=q){r<0&&(r=1,b(),t.sticky="after");break}if(q&&(E=q),r>0&&!b(!O))break}var X=oo(e,t,l,f,!0);return Ta(l,X)&&(X.hitSide=!0),X}function af(e,t,r,n){var i=e.doc,l=t.left,f;if(n=="page"){var d=Math.min(e.display.wrapper.clientHeight,me(e).innerHeight||i(e).documentElement.clientHeight),p=Math.max(d-.5*lr(e.display),3);f=(r>0?t.bottom:t.top)+r*p}else n=="line"&&(f=r>0?t.bottom+3:t.top-3);for(var g;g=za(e,l,f),!!g.outside;){if(r<0?f<=0:f>=i.height){g.hitSide=!0;break}f+=r*5}return g}var Me=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new at,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Me.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;i.contentEditable=!0,gl(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function l(d){for(var p=d.target;p;p=p.parentNode){if(p==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(p.className))break}return!1}ue(i,"paste",function(d){!l(d)||Ne(n,d)||tf(d,n)||v<=11&&setTimeout(tt(n,function(){return t.updateFromDOM()}),20)}),ue(i,"compositionstart",function(d){t.composing={data:d.data,done:!1}}),ue(i,"compositionupdate",function(d){t.composing||(t.composing={data:d.data,done:!1})}),ue(i,"compositionend",function(d){t.composing&&(d.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ue(i,"touchstart",function(){return r.forceCompositionEnd()}),ue(i,"input",function(){t.composing||t.readFromDOMSoon()});function f(d){if(!(!l(d)||Ne(n,d))){if(n.somethingSelected())co({lineWise:!1,text:n.getSelections()}),d.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var p=rf(n);co({lineWise:!0,text:p.text}),d.type=="cut"&&n.operation(function(){n.setSelections(p.ranges,0,lt),n.replaceSelection("",null,"cut")})}else return;if(d.clipboardData){d.clipboardData.clearData();var g=Xt.text.join(` +`)&&(O=z=U(O.line,0)));var q={from:O,to:z,text:g?g[A%g.length]:p,origin:i||(d?"paste":e.state.cutIncoming>f?"cut":"+input")};pr(e.doc,q),et(e,"inputRead",e,q)}t&&!d&&nf(e,t),fr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=E),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function tf(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Mt(t,function(){return ml(t,r,0,null,"paste")}),!0}function nf(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var l=e.getModeAt(i.head),f=!1;if(l.electricChars){for(var d=0;d-1){f=pi(e,i.head.line,"smart");break}}else l.electricInput&&l.electricInput.test(le(e.doc,i.head.line).text.slice(0,i.head.ch))&&(f=pi(e,i.head.line,"smart"));f&&et(e,"electricInput",e,i.head.line)}}}function rf(e){for(var t=[],r=[],n=0;nl&&(pi(this,d.head.line,n,!0),l=d.head.line,f==this.doc.sel.primIndex&&fr(this));else{var p=d.from(),g=d.to(),b=Math.max(l,p.line);l=Math.min(this.lastLine(),g.line-(g.ch?0:1))+1;for(var E=b;E0&&ll(this.doc,f,new Se(p,A[f].to()),lt)}}}),getTokenAt:function(n,i){return ps(this,n,i)},getLineTokens:function(n,i){return ps(this,U(n),i,!0)},getTokenTypeAt:function(n){n=pe(this.doc,n);var i=cs(this,le(this.doc,n.line)),l=0,f=(i.length-1)/2,d=n.ch,p;if(d==0)p=i[2];else for(;;){var g=l+f>>1;if((g?i[g*2-1]:0)>=d)f=g;else if(i[g*2+1]p&&(n=p,f=!0),d=le(this.doc,n)}else d=n;return Yi(this,d,{top:0,left:0},i||"page",l||f).top+(f?this.doc.height-on(d):0)},defaultTextHeight:function(){return lr(this.display)},defaultCharWidth:function(){return sr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,i,l,f,d){var p=this.display;n=jt(this,pe(this.doc,n));var g=n.bottom,b=n.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),p.sizer.appendChild(i),f=="over")g=n.top;else if(f=="above"||f=="near"){var E=Math.max(p.wrapper.clientHeight,this.doc.height),A=Math.max(p.sizer.clientWidth,p.lineSpace.clientWidth);(f=="above"||n.bottom+i.offsetHeight>E)&&n.top>i.offsetHeight?g=n.top-i.offsetHeight:n.bottom+i.offsetHeight<=E&&(g=n.bottom),b+i.offsetWidth>A&&(b=A-i.offsetWidth)}i.style.top=g+"px",i.style.left=i.style.right="",d=="right"?(b=p.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(d=="left"?b=0:d=="middle"&&(b=(p.sizer.clientWidth-i.offsetWidth)/2),i.style.left=b+"px"),l&&dd(this,{left:b,top:g,right:b+i.offsetWidth,bottom:g+i.offsetHeight})},triggerOnKeyDown:pt(Yu),triggerOnKeyPress:pt(Ku),triggerOnKeyUp:Xu,triggerOnMouseDown:pt($u),execCommand:function(n){if(fi.hasOwnProperty(n))return fi[n].call(null,this)},triggerElectric:pt(function(n){nf(this,n)}),findPosH:function(n,i,l,f){var d=1;i<0&&(d=-1,i=-i);for(var p=pe(this.doc,n),g=0;g0&&b(l.charAt(f-1));)--f;for(;d.5||this.options.lineWrapping)&&qa(this),ye(this,"refresh",this)}),swapDoc:pt(function(n){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),du(this,n),Xr(this),this.display.input.reset(),$r(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,et(this,"swapDoc",this,i),i}),phrase:function(n){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,n)?i[n]:n},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},tr(e),e.registerHelper=function(n,i,l){r.hasOwnProperty(n)||(r[n]=e[n]={_global:[]}),r[n][i]=l},e.registerGlobalHelper=function(n,i,l,f){e.registerHelper(n,i,f),r[n]._global.push({pred:l,val:f})}}function vl(e,t,r,n,i){var l=t,f=r,d=le(e,t.line),p=i&&e.direction=="rtl"?-r:r;function g(){var J=t.line+p;return J=e.first+e.size?!1:(t=new U(J,t.ch,t.sticky),d=le(e,J))}function b(J){var K;if(n=="codepoint"){var re=d.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(re))K=null;else{var fe=r>0?re>=55296&&re<56320:re>=56320&&re<57343;K=new U(t.line,Math.max(0,Math.min(d.text.length,t.ch+r*(fe?2:1))),-r)}}else i?K=Qd(e.cm,d,t,r):K=ul(d,t,r);if(K==null)if(!J&&g())t=fl(i,e.cm,d,t.line,p);else return!1;else t=K;return!0}if(n=="char"||n=="codepoint")b();else if(n=="column")b(!0);else if(n=="word"||n=="group")for(var E=null,A=n=="group",C=e.cm&&e.cm.getHelper(t,"wordChars"),O=!0;!(r<0&&!b(!O));O=!1){var z=d.text.charAt(t.ch)||` +`,q=Jn(z,C)?"w":A&&z==` +`?"n":!A||/\s/.test(z)?null:"p";if(A&&!O&&!q&&(q="s"),E&&E!=q){r<0&&(r=1,b(),t.sticky="after");break}if(q&&(E=q),r>0&&!b(!O))break}var X=oo(e,t,l,f,!0);return Ta(l,X)&&(X.hitSide=!0),X}function af(e,t,r,n){var i=e.doc,l=t.left,f;if(n=="page"){var d=Math.min(e.display.wrapper.clientHeight,me(e).innerHeight||i(e).documentElement.clientHeight),p=Math.max(d-.5*lr(e.display),3);f=(r>0?t.bottom:t.top)+r*p}else n=="line"&&(f=r>0?t.bottom+3:t.top-3);for(var g;g=za(e,l,f),!!g.outside;){if(r<0?f<=0:f>=i.height){g.hitSide=!0;break}f+=r*5}return g}var Me=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new at,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Me.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;i.contentEditable=!0,gl(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function l(d){for(var p=d.target;p;p=p.parentNode){if(p==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(p.className))break}return!1}ue(i,"paste",function(d){!l(d)||Ne(n,d)||tf(d,n)||v<=11&&setTimeout(tt(n,function(){return t.updateFromDOM()}),20)}),ue(i,"compositionstart",function(d){t.composing={data:d.data,done:!1}}),ue(i,"compositionupdate",function(d){t.composing||(t.composing={data:d.data,done:!1})}),ue(i,"compositionend",function(d){t.composing&&(d.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ue(i,"touchstart",function(){return r.forceCompositionEnd()}),ue(i,"input",function(){t.composing||t.readFromDOMSoon()});function f(d){if(!(!l(d)||Ne(n,d))){if(n.somethingSelected())co({lineWise:!1,text:n.getSelections()}),d.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var p=rf(n);co({lineWise:!0,text:p.text}),d.type=="cut"&&n.operation(function(){n.setSelections(p.ranges,0,lt),n.replaceSelection("",null,"cut")})}else return;if(d.clipboardData){d.clipboardData.clearData();var g=Xt.text.join(` `);if(d.clipboardData.setData("Text",g),d.clipboardData.getData("Text")==g){d.preventDefault();return}}var b=of(),E=b.firstChild;gl(E),n.display.lineSpace.insertBefore(b,n.display.lineSpace.firstChild),E.value=Xt.text.join(` -`);var M=xe(Ee(i));T(E),setTimeout(function(){n.display.lineSpace.removeChild(b),M.focus(),M==i&&r.showPrimarySelection()},50)}}ue(i,"copy",f),ue(i,"cut",f)},Me.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Me.prototype.prepareSelection=function(){var e=$s(this.cm,!1);return e.focus=xe(Ee(this.div))==this.div,e},Me.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Me.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Me.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line=t.display.viewFrom&&lf(t,n)||{node:d[0].measure.map[2],offset:0},g=i.linee.firstLine()&&(n=G(n.line-1,le(e.doc,n.line-1).length)),i.ch==le(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var l,f,d;n.line==t.viewFrom||(l=zn(e,n.line))==0?(f=Ce(t.view[0].line),d=t.view[0].node):(f=Ce(t.view[l].line),d=t.view[l-1].node.nextSibling);var p=zn(e,i.line),g,b;if(p==t.view.length-1?(g=t.viewTo-1,b=t.lineDiv.lastChild):(g=Ce(t.view[p+1].line)-1,b=t.view[p+1].node.previousSibling),!d)return!1;for(var E=e.doc.splitLines(vh(e,d,b,f,g)),M=Fn(e.doc,G(f,0),G(g,le(e.doc,g).text.length));E.length>1&&M.length>1;)if(be(E)==be(M))E.pop(),M.pop(),g--;else if(E[0]==M[0])E.shift(),M.shift(),f++;else break;for(var C=0,O=0,z=E[0],q=M[0],X=Math.min(z.length,q.length);Cn.ch&&J.charCodeAt(J.length-O-1)==K.charCodeAt(K.length-O-1);)C--,O++;E[E.length-1]=J.slice(0,J.length-O).replace(/^\u200b+/,""),E[0]=E[0].slice(C).replace(/\u200b+$/,"");var fe=G(f,C),se=G(g,M.length?be(M).length-O:0);if(E.length>1||E[0]||he(fe,se))return mr(e.doc,E,fe,se,"+input"),!0},Me.prototype.ensurePolled=function(){this.forceCompositionEnd()},Me.prototype.reset=function(){this.forceCompositionEnd()},Me.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Me.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Me.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Mt(this.cm,function(){return bt(e.cm)})},Me.prototype.setUneditable=function(e){e.contentEditable="false"},Me.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||tt(this.cm,ml)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Me.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Me.prototype.onContextMenu=function(){},Me.prototype.resetPosition=function(){},Me.prototype.needsContentAttribute=!0;function lf(e,t){var r=Ba(e,t.line);if(!r||r.hidden)return null;var n=le(e.doc,t.line),i=Fs(r,n,t.line),l=Ut(n,e.doc.direction),f="left";if(l){var d=we(l,t.ch);f=d%2?"right":"left"}var p=Rs(i.map,t.ch,f);return p.offset=p.collapse=="right"?p.end:p.start,p}function gh(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function xr(e,t){return t&&(e.bad=!0),e}function vh(e,t,r,n,i){var l="",f=!1,d=e.doc.lineSeparator(),p=!1;function g(C){return function(O){return O.id==C}}function b(){f&&(l+=d,p&&(l+=d),f=p=!1)}function E(C){C&&(b(),l+=C)}function M(C){if(C.nodeType==1){var O=C.getAttribute("cm-text");if(O){E(O);return}var z=C.getAttribute("cm-marker"),q;if(z){var X=e.findMarks(G(n,0),G(i+1,0),g(+z));X.length&&(q=X[0].find(0))&&E(Fn(e.doc,q.from,q.to).join(d));return}if(C.getAttribute("contenteditable")=="false")return;var J=/^(pre|div|p|li|table|br)$/i.test(C.nodeName);if(!/^br$/i.test(C.nodeName)&&C.textContent.length==0)return;J&&b();for(var K=0;K=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),ue(i,"paste",function(f){Ne(n,f)||tf(f,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())});function l(f){if(!Ne(n,f)){if(n.somethingSelected())co({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var d=rf(n);co({lineWise:!0,text:d.text}),f.type=="cut"?n.setSelections(d.ranges,null,lt):(r.prevInput="",i.value=d.text.join(` +`);var A=xe(Ee(i));T(E),setTimeout(function(){n.display.lineSpace.removeChild(b),A.focus(),A==i&&r.showPrimarySelection()},50)}}ue(i,"copy",f),ue(i,"cut",f)},Me.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Me.prototype.prepareSelection=function(){var e=$s(this.cm,!1);return e.focus=xe(Ee(this.div))==this.div,e},Me.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Me.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Me.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line=t.display.viewFrom&&lf(t,n)||{node:d[0].measure.map[2],offset:0},g=i.linee.firstLine()&&(n=U(n.line-1,le(e.doc,n.line-1).length)),i.ch==le(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var l,f,d;n.line==t.viewFrom||(l=zn(e,n.line))==0?(f=Ce(t.view[0].line),d=t.view[0].node):(f=Ce(t.view[l].line),d=t.view[l-1].node.nextSibling);var p=zn(e,i.line),g,b;if(p==t.view.length-1?(g=t.viewTo-1,b=t.lineDiv.lastChild):(g=Ce(t.view[p+1].line)-1,b=t.view[p+1].node.previousSibling),!d)return!1;for(var E=e.doc.splitLines(vh(e,d,b,f,g)),A=Fn(e.doc,U(f,0),U(g,le(e.doc,g).text.length));E.length>1&&A.length>1;)if(be(E)==be(A))E.pop(),A.pop(),g--;else if(E[0]==A[0])E.shift(),A.shift(),f++;else break;for(var C=0,O=0,z=E[0],q=A[0],X=Math.min(z.length,q.length);Cn.ch&&J.charCodeAt(J.length-O-1)==K.charCodeAt(K.length-O-1);)C--,O++;E[E.length-1]=J.slice(0,J.length-O).replace(/^\u200b+/,""),E[0]=E[0].slice(C).replace(/\u200b+$/,"");var fe=U(f,C),se=U(g,A.length?be(A).length-O:0);if(E.length>1||E[0]||he(fe,se))return mr(e.doc,E,fe,se,"+input"),!0},Me.prototype.ensurePolled=function(){this.forceCompositionEnd()},Me.prototype.reset=function(){this.forceCompositionEnd()},Me.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Me.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Me.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Mt(this.cm,function(){return bt(e.cm)})},Me.prototype.setUneditable=function(e){e.contentEditable="false"},Me.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||tt(this.cm,ml)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Me.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Me.prototype.onContextMenu=function(){},Me.prototype.resetPosition=function(){},Me.prototype.needsContentAttribute=!0;function lf(e,t){var r=Ba(e,t.line);if(!r||r.hidden)return null;var n=le(e.doc,t.line),i=Fs(r,n,t.line),l=Ut(n,e.doc.direction),f="left";if(l){var d=we(l,t.ch);f=d%2?"right":"left"}var p=Rs(i.map,t.ch,f);return p.offset=p.collapse=="right"?p.end:p.start,p}function gh(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function xr(e,t){return t&&(e.bad=!0),e}function vh(e,t,r,n,i){var l="",f=!1,d=e.doc.lineSeparator(),p=!1;function g(C){return function(O){return O.id==C}}function b(){f&&(l+=d,p&&(l+=d),f=p=!1)}function E(C){C&&(b(),l+=C)}function A(C){if(C.nodeType==1){var O=C.getAttribute("cm-text");if(O){E(O);return}var z=C.getAttribute("cm-marker"),q;if(z){var X=e.findMarks(U(n,0),U(i+1,0),g(+z));X.length&&(q=X[0].find(0))&&E(Fn(e.doc,q.from,q.to).join(d));return}if(C.getAttribute("contenteditable")=="false")return;var J=/^(pre|div|p|li|table|br)$/i.test(C.nodeName);if(!/^br$/i.test(C.nodeName)&&C.textContent.length==0)return;J&&b();for(var K=0;K=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),ue(i,"paste",function(f){Ne(n,f)||tf(f,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())});function l(f){if(!Ne(n,f)){if(n.somethingSelected())co({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var d=rf(n);co({lineWise:!0,text:d.text}),f.type=="cut"?n.setSelections(d.ranges,null,lt):(r.prevInput="",i.value=d.text.join(` `),T(i))}else return;f.type=="cut"&&(n.state.cutIncoming=+new Date)}}ue(i,"cut",l),ue(i,"copy",l),ue(e.scroller,"paste",function(f){if(!(an(e,f)||Ne(n,f))){if(!i.dispatchEvent){n.state.pasteIncoming=+new Date,r.focus();return}var d=new Event("paste");d.clipboardData=f.clipboardData,i.dispatchEvent(d)}}),ue(e.lineSpace,"selectstart",function(f){an(e,f)||yt(f)}),ue(i,"compositionstart",function(){var f=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:f,range:n.markText(f,n.getCursor("to"),{className:"CodeMirror-composing"})}}),ue(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Ge.prototype.createField=function(e){this.wrapper=of(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;gl(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Ge.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ge.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=$s(e);if(e.options.moveInputWithCursor){var i=jt(e,r.sel.primary().head,"div"),l=t.wrapper.getBoundingClientRect(),f=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+f.top-l.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+f.left-l.left))}return n},Ge.prototype.showSelection=function(e){var t=this.cm,r=t.display;_(r.cursorDiv,e.cursors),_(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ge.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&T(this.textarea),m&&v>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",m&&v>=9&&(this.hasSelection=null));this.resetting=!1}},Ge.prototype.getField=function(){return this.textarea},Ge.prototype.supportsTouch=function(){return!1},Ge.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!V||xe(Ee(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},Ge.prototype.blur=function(){this.textarea.blur()},Ge.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ge.prototype.receivedFocus=function(){this.slowPoll()},Ge.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ge.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function r(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,r)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,r)},Ge.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||vc(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(m&&v>=9&&this.hasSelection===i||j&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var l=i.charCodeAt(0);if(l==8203&&!n&&(n="\u200B"),l==8666)return this.reset(),this.cm.execCommand("undo")}for(var f=0,d=Math.min(n.length,i.length);f1e3||i.indexOf(` -`)>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ge.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ge.prototype.onKeyPress=function(){m&&v>=9&&(this.hasSelection=null),this.fastPoll()},Ge.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var l=Wn(r,e),f=n.scroller.scrollTop;if(!l||H)return;var d=r.options.resetSelectionOnContextMenu;d&&r.doc.sel.contains(l)==-1&&tt(r,ft)(r.doc,xn(l),lt);var p=i.style.cssText,g=t.wrapper.style.cssText,b=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; +`)>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ge.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ge.prototype.onKeyPress=function(){m&&v>=9&&(this.hasSelection=null),this.fastPoll()},Ge.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var l=Wn(r,e),f=n.scroller.scrollTop;if(!l||D)return;var d=r.options.resetSelectionOnContextMenu;d&&r.doc.sel.contains(l)==-1&&tt(r,ft)(r.doc,xn(l),lt);var p=i.style.cssText,g=t.wrapper.style.cssText,b=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-b.top-5)+"px; left: "+(e.clientX-b.left-5)+`px; z-index: 1000; background: `+(m?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var E;x&&(E=i.ownerDocument.defaultView.scrollY),n.input.focus(),x&&i.ownerDocument.defaultView.scrollTo(null,E),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=C,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function M(){if(i.selectionStart!=null){var z=r.somethingSelected(),q="\u200B"+(z?i.value:"");i.value="\u21DA",i.value=q,t.prevInput=z?"":"\u200B",i.selectionStart=1,i.selectionEnd=q.length,n.selForContextMenu=r.doc.sel}}function C(){if(t.contextMenuPending==C&&(t.contextMenuPending=!1,t.wrapper.style.cssText=g,i.style.cssText=p,m&&v<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=f),i.selectionStart!=null)){(!m||m&&v<9)&&M();var z=0,q=function(){n.selForContextMenu==r.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?tt(r,Tu)(r):z++<10?n.detectingSelectAll=setTimeout(q,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(q,200)}}if(m&&v>=9&&M(),P){zr(e);var O=function(){Ve(window,"mouseup",O),setTimeout(C,20)};ue(window,"mouseup",O)}else setTimeout(C,50)},Ge.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ge.prototype.setUneditable=function(){},Ge.prototype.needsContentAttribute=!1;function bh(e,t){if(t=t?ut(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var r=xe(Ee(e));t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=d.getValue()}var i;if(e.form&&(ue(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var l=e.form;i=l.submit;try{var f=l.submit=function(){n(),l.submit=i,l.submit(),l.submit=f}}catch(p){}}t.finishInit=function(p){p.save=n,p.getTextArea=function(){return e},p.toTextArea=function(){p.toTextArea=isNaN,n(),e.parentNode.removeChild(p.getWrapperElement()),e.style.display="",e.form&&(Ve(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var d=Fe(function(p){return e.parentNode.insertBefore(p,e.nextSibling)},t);return d}function xh(e){e.off=Ve,e.on=ue,e.wheelEventPixels=Cd,e.Doc=xt,e.splitLines=ya,e.countColumn=Pe,e.findColumn=Nt,e.isWordChar=Rr,e.Pass=We,e.signal=ye,e.Line=ir,e.changeEnd=wn,e.scrollbarModel=tu,e.Pos=G,e.cmpPos=he,e.modes=xa,e.mimeModes=nr,e.resolveMode=Fi,e.getMode=wa,e.modeExtensions=rr,e.extendMode=Ec,e.copyState=On,e.startState=ls,e.innerMode=Ea,e.commands=fi,e.keyMap=sn,e.keyName=_u,e.isModifierKey=Wu,e.lookupKey=vr,e.normalizeKeyMap=$d,e.StringStream=je,e.SharedTextMarker=li,e.TextMarker=Ln,e.LineWidget=ai,e.e_preventDefault=yt,e.e_stopPropagation=os,e.e_stop=zr,e.addClass=Ie,e.contains=ie,e.rmClass=$,e.keyNames=Sn}ch(Fe),mh(Fe);var wh="iter insert remove copy getEditor constructor".split(" ");for(var po in xt.prototype)xt.prototype.hasOwnProperty(po)&&De(wh,po)<0&&(Fe.prototype[po]=function(e){return function(){return e.apply(this.doc,arguments)}}(xt.prototype[po]));return tr(xt),Fe.inputStyles={textarea:Ge,contenteditable:Me},Fe.defineMode=function(e){!Fe.defaults.mode&&e!="null"&&(Fe.defaults.mode=e),xc.apply(this,arguments)},Fe.defineMIME=wc,Fe.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Fe.defineMIME("text/plain","null"),Fe.defineExtension=function(e,t){Fe.prototype[e]=t},Fe.defineDocExtension=function(e,t){xt.prototype[e]=t},Fe.fromTextArea=bh,xh(Fe),Fe.version="5.65.16",Fe})});var _f=Lr((Wf,zf)=>{(function(u){typeof Wf=="object"&&typeof zf=="object"?u(Qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};u.defineMode("xml",function(s,c){var h=s.indentUnit,m={},v=c.htmlMode?o:a;for(var x in v)m[x]=v[x];for(var x in c)m[x]=c[x];var w,S;function k(L,B){function W(Ie){return B.tokenize=Ie,Ie(L,B)}var ie=L.next();if(ie=="<")return L.eat("!")?L.eat("[")?L.match("CDATA[")?W(D("atom","]]>")):null:L.match("--")?W(D("comment","-->")):L.match("DOCTYPE",!0,!0)?(L.eatWhile(/[\w\._\-]/),W(U(1))):null:L.eat("?")?(L.eatWhile(/[\w\._\-]/),B.tokenize=D("meta","?>"),"meta"):(w=L.eat("/")?"closeTag":"openTag",B.tokenize=H,"tag bracket");if(ie=="&"){var xe;return L.eat("#")?L.eat("x")?xe=L.eatWhile(/[a-fA-F\d]/)&&L.eat(";"):xe=L.eatWhile(/[\d]/)&&L.eat(";"):xe=L.eatWhile(/[\w\.\-:]/)&&L.eat(";"),xe?"atom":"error"}else return L.eatWhile(/[^&<]/),null}k.isInText=!0;function H(L,B){var W=L.next();if(W==">"||W=="/"&&L.eat(">"))return B.tokenize=k,w=W==">"?"endTag":"selfcloseTag","tag bracket";if(W=="=")return w="equals",null;if(W=="<"){B.tokenize=k,B.state=F,B.tagName=B.tagStart=null;var ie=B.tokenize(L,B);return ie?ie+" tag error":"tag error"}else return/[\'\"]/.test(W)?(B.tokenize=I(W),B.stringStartCol=L.column(),B.tokenize(L,B)):(L.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function I(L){var B=function(W,ie){for(;!W.eol();)if(W.next()==L){ie.tokenize=H;break}return"string"};return B.isInAttribute=!0,B}function D(L,B){return function(W,ie){for(;!W.eol();){if(W.match(B)){ie.tokenize=k;break}W.next()}return L}}function U(L){return function(B,W){for(var ie;(ie=B.next())!=null;){if(ie=="<")return W.tokenize=U(L+1),W.tokenize(B,W);if(ie==">")if(L==1){W.tokenize=k;break}else return W.tokenize=U(L-1),W.tokenize(B,W)}return"meta"}}function Z(L){return L&&L.toLowerCase()}function oe(L,B,W){this.prev=L.context,this.tagName=B||"",this.indent=L.indented,this.startOfLine=W,(m.doNotIndent.hasOwnProperty(B)||L.context&&L.context.noIndent)&&(this.noIndent=!0)}function V(L){L.context&&(L.context=L.context.prev)}function j(L,B){for(var W;;){if(!L.context||(W=L.context.tagName,!m.contextGrabbers.hasOwnProperty(Z(W))||!m.contextGrabbers[Z(W)].hasOwnProperty(Z(B))))return;V(L)}}function F(L,B,W){return L=="openTag"?(W.tagStart=B.column(),te):L=="closeTag"?Y:F}function te(L,B,W){return L=="word"?(W.tagName=B.current(),S="tag",R):m.allowMissingTagName&&L=="endTag"?(S="tag bracket",R(L,B,W)):(S="error",te)}function Y(L,B,W){if(L=="word"){var ie=B.current();return W.context&&W.context.tagName!=ie&&m.implicitlyClosed.hasOwnProperty(Z(W.context.tagName))&&V(W),W.context&&W.context.tagName==ie||m.matchClosing===!1?(S="tag",N):(S="tag error",P)}else return m.allowMissingTagName&&L=="endTag"?(S="tag bracket",N(L,B,W)):(S="error",P)}function N(L,B,W){return L!="endTag"?(S="error",N):(V(W),F)}function P(L,B,W){return S="error",N(L,B,W)}function R(L,B,W){if(L=="word")return S="attribute",$;if(L=="endTag"||L=="selfcloseTag"){var ie=W.tagName,xe=W.tagStart;return W.tagName=W.tagStart=null,L=="selfcloseTag"||m.autoSelfClosers.hasOwnProperty(Z(ie))?j(W,ie):(j(W,ie),W.context=new oe(W,ie,xe==W.indented)),F}return S="error",R}function $(L,B,W){return L=="equals"?ee:(m.allowMissing||(S="error"),R(L,B,W))}function ee(L,B,W){return L=="string"?_:L=="word"&&m.allowUnquoted?(S="string",R):(S="error",R(L,B,W))}function _(L,B,W){return L=="string"?_:R(L,B,W)}return{startState:function(L){var B={tokenize:k,state:F,indented:L||0,tagName:null,tagStart:null,context:null};return L!=null&&(B.baseIndent=L),B},token:function(L,B){if(!B.tagName&&L.sol()&&(B.indented=L.indentation()),L.eatSpace())return null;w=null;var W=B.tokenize(L,B);return(W||w)&&W!="comment"&&(S=null,B.state=B.state(w||W,L,B),S&&(W=S=="error"?W+" error":S)),W},indent:function(L,B,W){var ie=L.context;if(L.tokenize.isInAttribute)return L.tagStart==L.indented?L.stringStartCol+1:L.indented+h;if(ie&&ie.noIndent)return u.Pass;if(L.tokenize!=H&&L.tokenize!=k)return W?W.match(/^(\s*)/)[0].length:0;if(L.tagName)return m.multilineTagIndentPastTag!==!1?L.tagStart+L.tagName.length+2:L.tagStart+h*(m.multilineTagIndentFactor||1);if(m.alignCDATA&&/$/,blockCommentStart:"",configuration:m.htmlMode?"html":"xml",helperType:m.htmlMode?"html":"xml",skipAttribute:function(L){L.state==ee&&(L.state=R)},xmlCurrentTag:function(L){return L.tagName?{name:L.tagName,close:L.type=="closeTag"}:null},xmlCurrentContext:function(L){for(var B=[],W=L.context;W;W=W.prev)B.push(W.tagName);return B.reverse()}}}),u.defineMIME("text/xml","xml"),u.defineMIME("application/xml","xml"),u.mimeModes.hasOwnProperty("text/html")||u.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var qf=Lr((Gf,Uf)=>{(function(u){typeof Gf=="object"&&typeof Uf=="object"?u(Qn()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var o=0;o-1&&s.substring(m+1,s.length);if(v)return u.findModeByExtension(v)},u.findModeByName=function(s){s=s.toLowerCase();for(var c=0;c{(function(u){typeof jf=="object"&&typeof Yf=="object"?u(Qn(),_f(),qf()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("markdown",function(o,a){var s=u.getMode(o,"text/html"),c=s.name=="null";function h(T){if(u.findModeByName){var y=u.findModeByName(T);y&&(T=y.mime||y.mimes[0])}var ae=u.getMode(o,T);return ae.name=="null"?null:ae}a.highlightFormatting===void 0&&(a.highlightFormatting=!1),a.maxBlockquoteDepth===void 0&&(a.maxBlockquoteDepth=0),a.taskLists===void 0&&(a.taskLists=!1),a.strikethrough===void 0&&(a.strikethrough=!1),a.emoji===void 0&&(a.emoji=!1),a.fencedCodeBlockHighlighting===void 0&&(a.fencedCodeBlockHighlighting=!0),a.fencedCodeBlockDefaultMode===void 0&&(a.fencedCodeBlockDefaultMode="text/plain"),a.xml===void 0&&(a.xml=!0),a.tokenTypeOverrides===void 0&&(a.tokenTypeOverrides={});var m={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var v in m)m.hasOwnProperty(v)&&a.tokenTypeOverrides[v]&&(m[v]=a.tokenTypeOverrides[v]);var x=/^([*\-_])(?:\s*\1){2,}\s*$/,w=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,S=/^\[(x| )\](?=\s)/i,k=a.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,H=/^ {0,3}(?:\={1,}|-{2,})\s*$/,I=/^[^#!\[\]*_\\<>` "'(~:]+/,D=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,U=/^\s*\[[^\]]+?\]:.*$/,Z=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,oe=" ";function V(T,y,ae){return y.f=y.inline=ae,ae(T,y)}function j(T,y,ae){return y.f=y.block=ae,ae(T,y)}function F(T){return!T||!/\S/.test(T.string)}function te(T){if(T.linkTitle=!1,T.linkHref=!1,T.linkText=!1,T.em=!1,T.strong=!1,T.strikethrough=!1,T.quote=0,T.indentedCode=!1,T.f==N){var y=c;if(!y){var ae=u.innerMode(s,T.htmlState);y=ae.mode.name=="xml"&&ae.state.tagStart===null&&!ae.state.context&&ae.state.tokenize.isInText}y&&(T.f=ee,T.block=Y,T.htmlState=null)}return T.trailingSpace=0,T.trailingSpaceNewLine=!1,T.prevLine=T.thisLine,T.thisLine={stream:null},null}function Y(T,y){var ae=T.column()===y.indentation,Ee=F(y.prevLine.stream),me=y.indentedCode,Je=y.prevLine.hr,ut=y.list!==!1,Pe=(y.listStack[y.listStack.length-1]||0)+3;y.indentedCode=!1;var at=y.indentation;if(y.indentationDiff===null&&(y.indentationDiff=y.indentation,ut)){for(y.list=null;at=4&&(me||y.prevLine.fencedCodeEnd||y.prevLine.header||Ee))return T.skipToEnd(),y.indentedCode=!0,m.code;if(T.eatSpace())return null;if(ae&&y.indentation<=Pe&&(We=T.match(k))&&We[1].length<=6)return y.quote=0,y.header=We[1].length,y.thisLine.header=!0,a.highlightFormatting&&(y.formatting="header"),y.f=y.inline,R(y);if(y.indentation<=Pe&&T.eat(">"))return y.quote=ae?1:y.quote+1,a.highlightFormatting&&(y.formatting="quote"),T.eatSpace(),R(y);if(!Oe&&!y.setext&&ae&&y.indentation<=Pe&&(We=T.match(w))){var lt=We[1]?"ol":"ul";return y.indentation=at+T.current().length,y.list=!0,y.quote=0,y.listStack.push(y.indentation),y.em=!1,y.strong=!1,y.code=!1,y.strikethrough=!1,a.taskLists&&T.match(S,!1)&&(y.taskList=!0),y.f=y.inline,a.highlightFormatting&&(y.formatting=["list","list-"+lt]),R(y)}else{if(ae&&y.indentation<=Pe&&(We=T.match(D,!0)))return y.quote=0,y.fencedEndRE=new RegExp(We[1]+"+ *$"),y.localMode=a.fencedCodeBlockHighlighting&&h(We[2]||a.fencedCodeBlockDefaultMode),y.localMode&&(y.localState=u.startState(y.localMode)),y.f=y.block=P,a.highlightFormatting&&(y.formatting="code-block"),y.code=-1,R(y);if(y.setext||(!De||!ut)&&!y.quote&&y.list===!1&&!y.code&&!Oe&&!U.test(T.string)&&(We=T.lookAhead(1))&&(We=We.match(H)))return y.setext?(y.header=y.setext,y.setext=0,T.skipToEnd(),a.highlightFormatting&&(y.formatting="header")):(y.header=We[0].charAt(0)=="="?1:2,y.setext=y.header),y.thisLine.header=!0,y.f=y.inline,R(y);if(Oe)return T.skipToEnd(),y.hr=!0,y.thisLine.hr=!0,m.hr;if(T.peek()==="[")return V(T,y,ie)}return V(T,y,y.inline)}function N(T,y){var ae=s.token(T,y.htmlState);if(!c){var Ee=u.innerMode(s,y.htmlState);(Ee.mode.name=="xml"&&Ee.state.tagStart===null&&!Ee.state.context&&Ee.state.tokenize.isInText||y.md_inside&&T.current().indexOf(">")>-1)&&(y.f=ee,y.block=Y,y.htmlState=null)}return ae}function P(T,y){var ae=y.listStack[y.listStack.length-1]||0,Ee=y.indentation=T.quote?y.push(m.formatting+"-"+T.formatting[ae]+"-"+T.quote):y.push("error"))}if(T.taskOpen)return y.push("meta"),y.length?y.join(" "):null;if(T.taskClosed)return y.push("property"),y.length?y.join(" "):null;if(T.linkHref?y.push(m.linkHref,"url"):(T.strong&&y.push(m.strong),T.em&&y.push(m.em),T.strikethrough&&y.push(m.strikethrough),T.emoji&&y.push(m.emoji),T.linkText&&y.push(m.linkText),T.code&&y.push(m.code),T.image&&y.push(m.image),T.imageAltText&&y.push(m.imageAltText,"link"),T.imageMarker&&y.push(m.imageMarker)),T.header&&y.push(m.header,m.header+"-"+T.header),T.quote&&(y.push(m.quote),!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=T.quote?y.push(m.quote+"-"+T.quote):y.push(m.quote+"-"+a.maxBlockquoteDepth)),T.list!==!1){var Ee=(T.listStack.length-1)%3;Ee?Ee===1?y.push(m.list2):y.push(m.list3):y.push(m.list1)}return T.trailingSpaceNewLine?y.push("trailing-space-new-line"):T.trailingSpace&&y.push("trailing-space-"+(T.trailingSpace%2?"a":"b")),y.length?y.join(" "):null}function $(T,y){if(T.match(I,!0))return R(y)}function ee(T,y){var ae=y.text(T,y);if(typeof ae!="undefined")return ae;if(y.list)return y.list=null,R(y);if(y.taskList){var Ee=T.match(S,!0)[1]===" ";return Ee?y.taskOpen=!0:y.taskClosed=!0,a.highlightFormatting&&(y.formatting="task"),y.taskList=!1,R(y)}if(y.taskOpen=!1,y.taskClosed=!1,y.header&&T.match(/^#+$/,!0))return a.highlightFormatting&&(y.formatting="header"),R(y);var me=T.next();if(y.linkTitle){y.linkTitle=!1;var Je=me;me==="("&&(Je=")"),Je=(Je+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ut="^\\s*(?:[^"+Je+"\\\\]+|\\\\\\\\|\\\\.)"+Je;if(T.match(new RegExp(ut),!0))return m.linkHref}if(me==="`"){var Pe=y.formatting;a.highlightFormatting&&(y.formatting="code"),T.eatWhile("`");var at=T.current().length;if(y.code==0&&(!y.quote||at==1))return y.code=at,R(y);if(at==y.code){var De=R(y);return y.code=0,De}else return y.formatting=Pe,R(y)}else if(y.code)return R(y);if(me==="\\"&&(T.next(),a.highlightFormatting)){var Oe=R(y),We=m.formatting+"-escape";return Oe?Oe+" "+We:We}if(me==="!"&&T.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return y.imageMarker=!0,y.image=!0,a.highlightFormatting&&(y.formatting="image"),R(y);if(me==="["&&y.imageMarker&&T.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return y.imageMarker=!1,y.imageAltText=!0,a.highlightFormatting&&(y.formatting="image"),R(y);if(me==="]"&&y.imageAltText){a.highlightFormatting&&(y.formatting="image");var Oe=R(y);return y.imageAltText=!1,y.image=!1,y.inline=y.f=L,Oe}if(me==="["&&!y.image)return y.linkText&&T.match(/^.*?\]/)||(y.linkText=!0,a.highlightFormatting&&(y.formatting="link")),R(y);if(me==="]"&&y.linkText){a.highlightFormatting&&(y.formatting="link");var Oe=R(y);return y.linkText=!1,y.inline=y.f=T.match(/\(.*?\)| ?\[.*?\]/,!1)?L:ee,Oe}if(me==="<"&&T.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){y.f=y.inline=_,a.highlightFormatting&&(y.formatting="link");var Oe=R(y);return Oe?Oe+=" ":Oe="",Oe+m.linkInline}if(me==="<"&&T.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){y.f=y.inline=_,a.highlightFormatting&&(y.formatting="link");var Oe=R(y);return Oe?Oe+=" ":Oe="",Oe+m.linkEmail}if(a.xml&&me==="<"&&T.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var lt=T.string.indexOf(">",T.pos);if(lt!=-1){var pn=T.string.substring(T.start,lt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(pn)&&(y.md_inside=!0)}return T.backUp(1),y.htmlState=u.startState(s),j(T,y,N)}if(a.xml&&me==="<"&&T.match(/^\/\w*?>/))return y.md_inside=!1,"tag";if(me==="*"||me==="_"){for(var Ht=1,Nt=T.pos==1?" ":T.string.charAt(T.pos-2);Ht<3&&T.eat(me);)Ht++;var kt=T.peek()||" ",_t=!/\s/.test(kt)&&(!Z.test(kt)||/\s/.test(Nt)||Z.test(Nt)),be=!/\s/.test(Nt)&&(!Z.test(Nt)||/\s/.test(kt)||Z.test(kt)),Ct=null,Gt=null;if(Ht%2&&(!y.em&&_t&&(me==="*"||!be||Z.test(Nt))?Ct=!0:y.em==me&&be&&(me==="*"||!_t||Z.test(kt))&&(Ct=!1)),Ht>1&&(!y.strong&&_t&&(me==="*"||!be||Z.test(Nt))?Gt=!0:y.strong==me&&be&&(me==="*"||!_t||Z.test(kt))&&(Gt=!1)),Gt!=null||Ct!=null){a.highlightFormatting&&(y.formatting=Ct==null?"strong":Gt==null?"em":"strong em"),Ct===!0&&(y.em=me),Gt===!0&&(y.strong=me);var De=R(y);return Ct===!1&&(y.em=!1),Gt===!1&&(y.strong=!1),De}}else if(me===" "&&(T.eat("*")||T.eat("_"))){if(T.peek()===" ")return R(y);T.backUp(1)}if(a.strikethrough){if(me==="~"&&T.eatWhile(me)){if(y.strikethrough){a.highlightFormatting&&(y.formatting="strikethrough");var De=R(y);return y.strikethrough=!1,De}else if(T.match(/^[^\s]/,!1))return y.strikethrough=!0,a.highlightFormatting&&(y.formatting="strikethrough"),R(y)}else if(me===" "&&T.match("~~",!0)){if(T.peek()===" ")return R(y);T.backUp(2)}}if(a.emoji&&me===":"&&T.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){y.emoji=!0,a.highlightFormatting&&(y.formatting="emoji");var Hn=R(y);return y.emoji=!1,Hn}return me===" "&&(T.match(/^ +$/,!1)?y.trailingSpace++:y.trailingSpace&&(y.trailingSpaceNewLine=!0)),R(y)}function _(T,y){var ae=T.next();if(ae===">"){y.f=y.inline=ee,a.highlightFormatting&&(y.formatting="link");var Ee=R(y);return Ee?Ee+=" ":Ee="",Ee+m.linkInline}return T.match(/^[^>]+/,!0),m.linkInline}function L(T,y){if(T.eatSpace())return null;var ae=T.next();return ae==="("||ae==="["?(y.f=y.inline=W(ae==="("?")":"]"),a.highlightFormatting&&(y.formatting="link-string"),y.linkHref=!0,R(y)):"error"}var B={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function W(T){return function(y,ae){var Ee=y.next();if(Ee===T){ae.f=ae.inline=ee,a.highlightFormatting&&(ae.formatting="link-string");var me=R(ae);return ae.linkHref=!1,me}return y.match(B[T]),ae.linkHref=!0,R(ae)}}function ie(T,y){return T.match(/^([^\]\\]|\\.)*\]:/,!1)?(y.f=xe,T.next(),a.highlightFormatting&&(y.formatting="link"),y.linkText=!0,R(y)):V(T,y,ee)}function xe(T,y){if(T.match("]:",!0)){y.f=y.inline=Ie,a.highlightFormatting&&(y.formatting="link");var ae=R(y);return y.linkText=!1,ae}return T.match(/^([^\]\\]|\\.)+/,!0),m.linkText}function Ie(T,y){return T.eatSpace()?null:(T.match(/^[^\s]+/,!0),T.peek()===void 0?y.linkTitle=!0:T.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),y.f=y.inline=ee,m.linkHref+" url")}var vt={startState:function(){return{f:Y,prevLine:{stream:null},thisLine:{stream:null},block:Y,htmlState:null,indentation:0,inline:ee,text:$,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(T){return{f:T.f,prevLine:T.prevLine,thisLine:T.thisLine,block:T.block,htmlState:T.htmlState&&u.copyState(s,T.htmlState),indentation:T.indentation,localMode:T.localMode,localState:T.localMode?u.copyState(T.localMode,T.localState):null,inline:T.inline,text:T.text,formatting:!1,linkText:T.linkText,linkTitle:T.linkTitle,linkHref:T.linkHref,code:T.code,em:T.em,strong:T.strong,strikethrough:T.strikethrough,emoji:T.emoji,header:T.header,setext:T.setext,hr:T.hr,taskList:T.taskList,list:T.list,listStack:T.listStack.slice(0),quote:T.quote,indentedCode:T.indentedCode,trailingSpace:T.trailingSpace,trailingSpaceNewLine:T.trailingSpaceNewLine,md_inside:T.md_inside,fencedEndRE:T.fencedEndRE}},token:function(T,y){if(y.formatting=!1,T!=y.thisLine.stream){if(y.header=0,y.hr=!1,T.match(/^\s*$/,!0))return te(y),null;if(y.prevLine=y.thisLine,y.thisLine={stream:T},y.taskList=!1,y.trailingSpace=0,y.trailingSpaceNewLine=!1,!y.localState&&(y.f=y.block,y.f!=N)){var ae=T.match(/^\s*/,!0)[0].replace(/\t/g,oe).length;if(y.indentation=ae,y.indentationDiff=null,ae>0)return null}}return y.f(T,y)},innerMode:function(T){return T.block==N?{state:T.htmlState,mode:s}:T.localState?{state:T.localState,mode:T.localMode}:{state:T,mode:vt}},indent:function(T,y,ae){return T.block==N&&s.indent?s.indent(T.htmlState,y,ae):T.localState&&T.localMode.indent?T.localMode.indent(T.localState,y,ae):u.Pass},blankLine:te,getType:R,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return vt},"xml"),u.defineMIME("text/markdown","markdown"),u.defineMIME("text/x-markdown","markdown")})});var Qf=Lr((Kf,$f)=>{(function(u){typeof Kf=="object"&&typeof $f=="object"?u(Qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){u.defineOption("placeholder","",function(v,x,w){var S=w&&w!=u.Init;if(x&&!S)v.on("blur",c),v.on("change",h),v.on("swapDoc",h),u.on(v.getInputField(),"compositionupdate",v.state.placeholderCompose=function(){s(v)}),h(v);else if(!x&&S){v.off("blur",c),v.off("change",h),v.off("swapDoc",h),u.off(v.getInputField(),"compositionupdate",v.state.placeholderCompose),o(v);var k=v.getWrapperElement();k.className=k.className.replace(" CodeMirror-empty","")}x&&!v.hasFocus()&&c(v)});function o(v){v.state.placeholder&&(v.state.placeholder.parentNode.removeChild(v.state.placeholder),v.state.placeholder=null)}function a(v){o(v);var x=v.state.placeholder=document.createElement("pre");x.style.cssText="height: 0; overflow: visible",x.style.direction=v.getOption("direction"),x.className="CodeMirror-placeholder CodeMirror-line-like";var w=v.getOption("placeholder");typeof w=="string"&&(w=document.createTextNode(w)),x.appendChild(w),v.display.lineSpace.insertBefore(x,v.display.lineSpace.firstChild)}function s(v){setTimeout(function(){var x=!1;if(v.lineCount()==1){var w=v.getInputField();x=w.nodeName=="TEXTAREA"?!v.getLine(0).length:!/[^\u200b]/.test(w.querySelector(".CodeMirror-line").textContent)}x?a(v):o(v)},20)}function c(v){m(v)&&a(v)}function h(v){var x=v.getWrapperElement(),w=m(v);x.className=x.className.replace(" CodeMirror-empty","")+(w?" CodeMirror-empty":""),w?a(v):o(v)}function m(v){return v.lineCount()===1&&v.getLine(0)===""}})});var Vf=Lr((Zf,Jf)=>{(function(u){typeof Zf=="object"&&typeof Jf=="object"?u(Qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";var o=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,a=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,s=/[*+-]\s/;u.commands.newlineAndIndentContinueMarkdownList=function(h){if(h.getOption("disableInput"))return u.Pass;for(var m=h.listSelections(),v=[],x=0;x\s*$/.test(D),V=!/>\s*$/.test(D);(oe||V)&&h.replaceRange("",{line:w.line,ch:0},{line:w.line,ch:w.ch+1}),v[x]=` -`}else{var j=U[1],F=U[5],te=!(s.test(U[2])||U[2].indexOf(">")>=0),Y=te?parseInt(U[3],10)+1+U[4]:U[2].replace("x"," ");v[x]=` -`+j+Y+F,te&&c(h,w)}}h.replaceSelections(v)};function c(h,m){var v=m.line,x=0,w=0,S=o.exec(h.getLine(v)),k=S[1];do{x+=1;var H=v+x,I=h.getLine(H),D=o.exec(I);if(D){var U=D[1],Z=parseInt(S[3],10)+x-w,oe=parseInt(D[3],10),V=oe;if(k===U&&!isNaN(oe))Z===oe&&(V=oe+1),Z>oe&&(V=Z+1),h.replaceRange(I.replace(o,U+V+D[4]+D[5]),{line:H,ch:0},{line:H,ch:I.length});else{if(k.length>U.length||k.lengthHe});function cf(){let u={},o=document.cookie.split(";");for(let a of o){let s=a.split("=",2);s.length===2&&(u[s[0].trim()]=decodeURIComponent(s[1].trim()))}return u}function df(u,o,a){let s=`${u}=${o}`;for(let c in a)s+=`;${c}=${a[c]}`;document.cookie=s}var vo=class{constructor(){let o=()=>{let a=cf(),s="formwork_preferred_color_scheme",c=s in a?a[s]:null,h="light";window.matchMedia("(prefers-color-scheme: light)").matches?h="light":window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="dark"),h&&h!==c&&df(s,h,{"max-age":2592e3,path:He.config.baseUri,samesite:"strict"})};window.addEventListener("beforeunload",o),window.addEventListener("pagehide",o)}};function A(u,o=document){return o.querySelector(u)}function re(u,o=document){return o.querySelectorAll(u)}function yo(u){let o=getComputedStyle(u);return u.offsetWidth+parseInt(o.marginLeft)+parseInt(o.marginRight)}function bo(u){let o=getComputedStyle(u);return u.offsetHeight+parseInt(o.marginTop)+parseInt(o.marginBottom)}function kn(u,o,a=!1){let s,c=null;function h(...m){let v=this;return c&&clearTimeout(c),a&&!c&&(s=u.apply(v,m)),c=setTimeout(()=>{a||(s=u.apply(v,m)),c=null},o),s}return h}function xo(u,o){let a,s=0,c=null;function h(...m){let v=Date.now();s===0&&(s=v);let x=s+o-v,w=this;return x<=0||x>o?(c&&(clearTimeout(c),c=null),s=v,a=u.apply(w,m)):c||(c=setTimeout(()=>{s=Date.now(),a=u.apply(w,m),c=null},x)),a}return h}var wo=class{constructor(){A(".dropdown")&&document.addEventListener("click",o=>{re(".dropdown-menu").forEach(s=>s.style.display="");let a=o.target.closest(".dropdown-button");if(a){let s=document.getElementById(a.dataset.dropdown),c=getComputedStyle(s).display!=="none";o.preventDefault();let h=xo(()=>hf(s),100);s&&!c?(s.style.display="block",hf(s),window.addEventListener("resize",h)):window.removeEventListener("resize",h)}})}};function hf(u){u.style.left="0",u.style.right="";let o=u.getBoundingClientRect(),a=o.top+window.scrollY,s=o.left+window.scrollX,c=yo(u),h=bo(u),m=document.documentElement.clientWidth,v=document.documentElement.clientHeight;s+c>m&&(u.style.left="auto",u.style.right="0"),(a{let a=A(".form-togglegroup",o);if(a){let s=window.localStorage.getItem("formwork.filesListViewAs");s&&(re("input",a).forEach(c=>c.checked=!1),A(`input[value=${s}]`,o).checked=!0,o.classList.toggle("is-thumbnails",s==="thumbnails")),re("input",a).forEach(c=>{c.addEventListener("input",()=>{o.classList.toggle("is-thumbnails",c.value==="thumbnails"),window.localStorage.setItem("formwork.filesListViewAs",c.value)})})}re("video.file-thumbnail",o).forEach(s=>{s.addEventListener("click",()=>{s.controls||(s.controls=!0)})})})}};typeof window.HTMLFormElement.prototype.requestSubmit=="undefined"&&(window.HTMLFormElement.prototype.requestSubmit=function(u){if(u){if(!(u instanceof HTMLElement))throw new TypeError("Failed to execute 'requestSubmit' on 'HTMLFormElement': parameter 1 is not of type 'HTMLElement'.");if(u.type!=="submit")throw new TypeError("Failed to execute 'requestSubmit' on 'HTMLFormElement': the specified element is not a submit button.");if(u.form!==this)throw new DOMException("Failed to execute 'requestSubmit' on 'HTMLFormElement': the specified element is not owned by this form element.","NotFoundError");u.click()}else u=document.createElement("input"),u.type="submit",u.hidden=!0,this.appendChild(u),u.click(),this.removeChild(u)});function pf(u,o){var a=Object.keys(u);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(u);o&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(u,c).enumerable})),a.push.apply(a,s)}return a}function nn(u){for(var o=1;o=0)&&(a[c]=u[c]);return a}function Nh(u,o){if(u==null)return{};var a=Hh(u,o),s,c;if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(u);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(u,s)&&(a[s]=u[s])}return a}var Ih="1.15.2";function fn(u){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(u)}var dn=fn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Si=fn(/Edge/i),mf=fn(/firefox/i),bi=fn(/safari/i)&&!fn(/chrome/i)&&!fn(/android/i),Lf=fn(/iP(ad|od|hone)/i),Sf=fn(/chrome/i)&&fn(/android/i),Tf={capture:!1,passive:!1};function ke(u,o,a){u.addEventListener(o,a,!dn&&Tf)}function Le(u,o,a){u.removeEventListener(o,a,!dn&&Tf)}function No(u,o){if(o){if(o[0]===">"&&(o=o.substring(1)),u)try{if(u.matches)return u.matches(o);if(u.msMatchesSelector)return u.msMatchesSelector(o);if(u.webkitMatchesSelector)return u.webkitMatchesSelector(o)}catch(a){return!1}return!1}}function Oh(u){return u.host&&u!==document&&u.host.nodeType?u.host:u.parentNode}function $t(u,o,a,s){if(u){a=a||document;do{if(o!=null&&(o[0]===">"?u.parentNode===a&&No(u,o):No(u,o))||s&&u===a)return u;if(u===a)break}while(u=Oh(u))}return null}var gf=/\s+/g;function Ot(u,o,a){if(u&&o)if(u.classList)u.classList[a?"add":"remove"](o);else{var s=(" "+u.className+" ").replace(gf," ").replace(" "+o+" "," ");u.className=(s+(a?" "+o:"")).replace(gf," ")}}function ce(u,o,a){var s=u&&u.style;if(s){if(a===void 0)return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(u,""):u.currentStyle&&(a=u.currentStyle),o===void 0?a:a[o];!(o in s)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),s[o]=a+(typeof a=="string"?"":"px")}}function Mr(u,o){var a="";if(typeof u=="string")a=u;else do{var s=ce(u,"transform");s&&s!=="none"&&(a=s+" "+a)}while(!o&&(u=u.parentNode));var c=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return c&&new c(a)}function kf(u,o,a){if(u){var s=u.getElementsByTagName(o),c=0,h=s.length;if(a)for(;c=h:m=c<=h,!m)return s;if(s===tn())break;s=Dn(s,!1)}return!1}function Dr(u,o,a,s){for(var c=0,h=0,m=u.children;h2&&arguments[2]!==void 0?arguments[2]:{},c=s.evt,h=Nh(s,Gh);Ti.pluginEvent.bind(de)(o,a,nn({dragEl:Q,parentEl:qe,ghostEl:ge,rootEl:Re,nextEl:$n,lastDownEl:Mo,cloneEl:_e,cloneHidden:Mn,dragStarted:gi,putSortable:dt,activeSortable:de.active,originalEvent:c,oldIndex:Cr,oldDraggableIndex:wi,newIndex:Ft,newDraggableIndex:Cn,hideGhostForTarget:Of,unhideGhostForTarget:Ff,cloneNowHidden:function(){Mn=!0},cloneNowShown:function(){Mn=!1},dispatchSortableEvent:function(v){St({sortable:a,name:v,originalEvent:c})}},h))};function St(u){_h(nn({putSortable:dt,cloneEl:_e,targetEl:Q,rootEl:Re,oldIndex:Cr,oldDraggableIndex:wi,newIndex:Ft,newDraggableIndex:Cn},u))}var Q,qe,ge,Re,$n,Mo,_e,Mn,Cr,Ft,wi,Cn,Lo,dt,kr=!1,Io=!1,Oo=[],Xn,Kt,Tl,kl,bf,xf,gi,Tr,Ei,Li=!1,So=!1,Do,gt,Cl=[],Nl=!1,Fo=[],Bo=typeof document!="undefined",To=Lf,wf=Si||dn?"cssFloat":"float",Uh=Bo&&!Sf&&!Lf&&"draggable"in document.createElement("div"),Hf=function(){if(Bo){if(dn)return!1;var u=document.createElement("x");return u.style.cssText="pointer-events:auto",u.style.pointerEvents==="auto"}}(),Nf=function(o,a){var s=ce(o),c=parseInt(s.width)-parseInt(s.paddingLeft)-parseInt(s.paddingRight)-parseInt(s.borderLeftWidth)-parseInt(s.borderRightWidth),h=Dr(o,0,a),m=Dr(o,1,a),v=h&&ce(h),x=m&&ce(m),w=v&&parseInt(v.marginLeft)+parseInt(v.marginRight)+Ze(h).width,S=x&&parseInt(x.marginLeft)+parseInt(x.marginRight)+Ze(m).width;if(s.display==="flex")return s.flexDirection==="column"||s.flexDirection==="column-reverse"?"vertical":"horizontal";if(s.display==="grid")return s.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(h&&v.float&&v.float!=="none"){var k=v.float==="left"?"left":"right";return m&&(x.clear==="both"||x.clear===k)?"vertical":"horizontal"}return h&&(v.display==="block"||v.display==="flex"||v.display==="table"||v.display==="grid"||w>=c&&s[wf]==="none"||m&&s[wf]==="none"&&w+S>c)?"vertical":"horizontal"},qh=function(o,a,s){var c=s?o.left:o.top,h=s?o.right:o.bottom,m=s?o.width:o.height,v=s?a.left:a.top,x=s?a.right:a.bottom,w=s?a.width:a.height;return c===v||h===x||c+m/2===v+w/2},jh=function(o,a){var s;return Oo.some(function(c){var h=c[Pt].options.emptyInsertThreshold;if(!(!h||Pl(c))){var m=Ze(c),v=o>=m.left-h&&o<=m.right+h,x=a>=m.top-h&&a<=m.bottom+h;if(v&&x)return s=c}}),s},If=function(o){function a(h,m){return function(v,x,w,S){var k=v.options.group.name&&x.options.group.name&&v.options.group.name===x.options.group.name;if(h==null&&(m||k))return!0;if(h==null||h===!1)return!1;if(m&&h==="clone")return h;if(typeof h=="function")return a(h(v,x,w,S),m)(v,x,w,S);var H=(m?v:x).options.group.name;return h===!0||typeof h=="string"&&h===H||h.join&&h.indexOf(H)>-1}}var s={},c=o.group;(!c||Co(c)!="object")&&(c={name:c}),s.name=c.name,s.checkPull=a(c.pull,!0),s.checkPut=a(c.put),s.revertClone=c.revertClone,o.group=s},Of=function(){!Hf&&ge&&ce(ge,"display","none")},Ff=function(){!Hf&&ge&&ce(ge,"display","")};Bo&&!Sf&&document.addEventListener("click",function(u){if(Io)return u.preventDefault(),u.stopPropagation&&u.stopPropagation(),u.stopImmediatePropagation&&u.stopImmediatePropagation(),Io=!1,!1},!0);var Kn=function(o){if(Q){o=o.touches?o.touches[0]:o;var a=jh(o.clientX,o.clientY);if(a){var s={};for(var c in o)o.hasOwnProperty(c)&&(s[c]=o[c]);s.target=s.rootEl=a,s.preventDefault=void 0,s.stopPropagation=void 0,a[Pt]._onDragOver(s)}}},Yh=function(o){Q&&Q.parentNode[Pt]._isOutsideThisEl(o.target)};function de(u,o){if(!(u&&u.nodeType&&u.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(u));this.el=u,this.options=o=cn({},o),u[Pt]=this;var a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(u.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nf(u,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(m,v){m.setData("Text",v.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:de.supportPointer!==!1&&"PointerEvent"in window&&!bi,emptyInsertThreshold:5};Ti.initializePlugins(this,u,a);for(var s in a)!(s in o)&&(o[s]=a[s]);If(o);for(var c in this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this));this.nativeDraggable=o.forceFallback?!1:Uh,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?ke(u,"pointerdown",this._onTapStart):(ke(u,"mousedown",this._onTapStart),ke(u,"touchstart",this._onTapStart)),this.nativeDraggable&&(ke(u,"dragover",this),ke(u,"dragenter",this)),Oo.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),cn(this,Rh())}de.prototype={constructor:de,_isOutsideThisEl:function(o){!this.el.contains(o)&&o!==this.el&&(Tr=null)},_getDirection:function(o,a){return typeof this.options.direction=="function"?this.options.direction.call(this,o,a,Q):this.options.direction},_onTapStart:function(o){if(o.cancelable){var a=this,s=this.el,c=this.options,h=c.preventOnFilter,m=o.type,v=o.touches&&o.touches[0]||o.pointerType&&o.pointerType==="touch"&&o,x=(v||o).target,w=o.target.shadowRoot&&(o.path&&o.path[0]||o.composedPath&&o.composedPath()[0])||x,S=c.filter;if(ep(s),!Q&&!(/mousedown|pointerdown/.test(m)&&o.button!==0||c.disabled)&&!w.isContentEditable&&!(!this.nativeDraggable&&bi&&x&&x.tagName.toUpperCase()==="SELECT")&&(x=$t(x,c.draggable,s,!1),!(x&&x.animated)&&Mo!==x)){if(Cr=Wt(x),wi=Wt(x,c.draggable),typeof S=="function"){if(S.call(this,o,x,this)){St({sortable:a,rootEl:w,name:"filter",targetEl:x,toEl:s,fromEl:s}),At("filter",a,{evt:o}),h&&o.cancelable&&o.preventDefault();return}}else if(S&&(S=S.split(",").some(function(k){if(k=$t(w,k.trim(),s,!1),k)return St({sortable:a,rootEl:k,name:"filter",targetEl:x,fromEl:s,toEl:s}),At("filter",a,{evt:o}),!0}),S)){h&&o.cancelable&&o.preventDefault();return}c.handle&&!$t(w,c.handle,s,!1)||this._prepareDragStart(o,v,x)}}},_prepareDragStart:function(o,a,s){var c=this,h=c.el,m=c.options,v=h.ownerDocument,x;if(s&&!Q&&s.parentNode===h){var w=Ze(s);if(Re=h,Q=s,qe=Q.parentNode,$n=Q.nextSibling,Mo=s,Lo=m.group,de.dragged=Q,Xn={target:Q,clientX:(a||o).clientX,clientY:(a||o).clientY},bf=Xn.clientX-w.left,xf=Xn.clientY-w.top,this._lastX=(a||o).clientX,this._lastY=(a||o).clientY,Q.style["will-change"]="all",x=function(){if(At("delayEnded",c,{evt:o}),de.eventCanceled){c._onDrop();return}c._disableDelayedDragEvents(),!mf&&c.nativeDraggable&&(Q.draggable=!0),c._triggerDragStart(o,a),St({sortable:c,name:"choose",originalEvent:o}),Ot(Q,m.chosenClass,!0)},m.ignore.split(",").forEach(function(S){kf(Q,S.trim(),Ml)}),ke(v,"dragover",Kn),ke(v,"mousemove",Kn),ke(v,"touchmove",Kn),ke(v,"mouseup",c._onDrop),ke(v,"touchend",c._onDrop),ke(v,"touchcancel",c._onDrop),mf&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Q.draggable=!0),At("delayStart",this,{evt:o}),m.delay&&(!m.delayOnTouchOnly||a)&&(!this.nativeDraggable||!(Si||dn))){if(de.eventCanceled){this._onDrop();return}ke(v,"mouseup",c._disableDelayedDrag),ke(v,"touchend",c._disableDelayedDrag),ke(v,"touchcancel",c._disableDelayedDrag),ke(v,"mousemove",c._delayedDragTouchMoveHandler),ke(v,"touchmove",c._delayedDragTouchMoveHandler),m.supportPointer&&ke(v,"pointermove",c._delayedDragTouchMoveHandler),c._dragStartTimer=setTimeout(x,m.delay)}else x()}},_delayedDragTouchMoveHandler:function(o){var a=o.touches?o.touches[0]:o;Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Q&&Ml(Q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var o=this.el.ownerDocument;Le(o,"mouseup",this._disableDelayedDrag),Le(o,"touchend",this._disableDelayedDrag),Le(o,"touchcancel",this._disableDelayedDrag),Le(o,"mousemove",this._delayedDragTouchMoveHandler),Le(o,"touchmove",this._delayedDragTouchMoveHandler),Le(o,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(o,a){a=a||o.pointerType=="touch"&&o,!this.nativeDraggable||a?this.options.supportPointer?ke(document,"pointermove",this._onTouchMove):a?ke(document,"touchmove",this._onTouchMove):ke(document,"mousemove",this._onTouchMove):(ke(Q,"dragend",this),ke(Re,"dragstart",this._onDragStart));try{document.selection?Ao(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(s){}},_dragStarted:function(o,a){if(kr=!1,Re&&Q){At("dragStarted",this,{evt:a}),this.nativeDraggable&&ke(document,"dragover",Yh);var s=this.options;!o&&Ot(Q,s.dragClass,!1),Ot(Q,s.ghostClass,!0),de.active=this,o&&this._appendGhost(),St({sortable:this,name:"start",originalEvent:a})}else this._nulling()},_emulateDragOver:function(){if(Kt){this._lastX=Kt.clientX,this._lastY=Kt.clientY,Of();for(var o=document.elementFromPoint(Kt.clientX,Kt.clientY),a=o;o&&o.shadowRoot&&(o=o.shadowRoot.elementFromPoint(Kt.clientX,Kt.clientY),o!==a);)a=o;if(Q.parentNode[Pt]._isOutsideThisEl(o),a)do{if(a[Pt]){var s=void 0;if(s=a[Pt]._onDragOver({clientX:Kt.clientX,clientY:Kt.clientY,target:o,rootEl:a}),s&&!this.options.dragoverBubble)break}o=a}while(a=a.parentNode);Ff()}},_onTouchMove:function(o){if(Xn){var a=this.options,s=a.fallbackTolerance,c=a.fallbackOffset,h=o.touches?o.touches[0]:o,m=ge&&Mr(ge,!0),v=ge&&m&&m.a,x=ge&&m&&m.d,w=To&>&&yf(gt),S=(h.clientX-Xn.clientX+c.x)/(v||1)+(w?w[0]-Cl[0]:0)/(v||1),k=(h.clientY-Xn.clientY+c.y)/(x||1)+(w?w[1]-Cl[1]:0)/(x||1);if(!de.active&&!kr){if(s&&Math.max(Math.abs(h.clientX-this._lastX),Math.abs(h.clientY-this._lastY))=0&&(St({rootEl:qe,name:"add",toEl:qe,fromEl:Re,originalEvent:o}),St({sortable:this,name:"remove",toEl:qe,originalEvent:o}),St({rootEl:qe,name:"sort",toEl:qe,fromEl:Re,originalEvent:o}),St({sortable:this,name:"sort",toEl:qe,originalEvent:o})),dt&&dt.save()):Ft!==Cr&&Ft>=0&&(St({sortable:this,name:"update",toEl:qe,originalEvent:o}),St({sortable:this,name:"sort",toEl:qe,originalEvent:o})),de.active&&((Ft==null||Ft===-1)&&(Ft=Cr,Cn=wi),St({sortable:this,name:"end",toEl:qe,originalEvent:o}),this.save()))),this._nulling()},_nulling:function(){At("nulling",this),Re=Q=qe=ge=$n=_e=Mo=Mn=Xn=Kt=gi=Ft=Cn=Cr=wi=Tr=Ei=dt=Lo=de.dragged=de.ghost=de.clone=de.active=null,Fo.forEach(function(o){o.checked=!0}),Fo.length=Tl=kl=0},handleEvent:function(o){switch(o.type){case"drop":case"dragend":this._onDrop(o);break;case"dragenter":case"dragover":Q&&(this._onDragOver(o),Xh(o));break;case"selectstart":o.preventDefault();break}},toArray:function(){for(var o=[],a,s=this.el.children,c=0,h=s.length,m=this.options;cc.right+h||u.clientY>s.bottom&&u.clientX>s.left:u.clientY>c.bottom+h||u.clientX>s.right&&u.clientY>s.top}function Zh(u,o,a,s,c,h,m,v){var x=s?u.clientY:u.clientX,w=s?a.height:a.width,S=s?a.top:a.left,k=s?a.bottom:a.right,H=!1;if(!m){if(v&&DoS+w*h/2:xk-Do)return-Ei}else if(x>S+w*(1-c)/2&&xk-w*h/2)?x>S+w/2?1:-1:0}function Jh(u){return Wt(Q)x(w)),Ro.create(o,{handle:".sortable-handle",forceFallback:!0});function c(w){let S=w.cloneNode(!0),k=w.parentNode;m(S),x(S),w.nextSibling?k.insertBefore(S,w.nextSibling):k.appendChild(S)}function h(w){let S=w.parentNode;re(".form-input-array-row",S).length>1?S.removeChild(w):m(w)}function m(w){if(a){let k=A(".form-input-array-key",w);k.value="",k.removeAttribute("value")}let S=A(".form-input-array-value",w);S.value="",S.removeAttribute("value"),S.name=`${s}[]`}function v(w){let S=A(".form-input-array-key",w),k=A(".form-input-array-value",w);k.name=`${s}[${S.value.trim()}]`}function x(w){let S=A(".form-input-array-add",w),k=A(".form-input-array-remove",w);if(S.addEventListener("click",c.bind(S,w)),k.addEventListener("click",h.bind(k,w)),a){let H=A(".form-input-array-key",w),I=A(".form-input-array-value",w);H.addEventListener("keyup",v.bind(H,w)),I.addEventListener("keyup",v.bind(I,w))}}}};var Wl=new Map;function ki(u,o){if(Wl.has(u)){o(Wl.get(u));return}let a=new XMLHttpRequest;a.onload=function(){let s=this.status===200?this.response:"";s!==""&&Wl.set(u,s),o(s)},a.open("GET",`${He.config.baseUri}assets/icons/svg/${u}.svg`),a.send()}function ht(u,o,a="afterbegin"){ki(u,s=>o.insertAdjacentHTML(a,s))}var Ar={};function Hr(u,o,a,s){let c;function h(){clearTimeout(c)}u.addEventListener("mousedown",function(m){let v=this;m.button!==0?h():(o.call(v,m),c=setTimeout(()=>c=setInterval(o.bind(v,m),s),a))}),u.addEventListener("mouseout",h),window.addEventListener("mouseup",h)}var zo=class{constructor(o,a={}){let c=Object.assign({},{weekStarts:0,format:"YYYY-MM-DD",time:!1,labels:{today:"Today",weekdays:{long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},months:{long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}},onChange(F){let te=v();te!==null&&(Ar[te.id]=F,te.value=j(F))}},a);Ar[o.id]=new Date;let h=x(A(".calendar"),Ar[o.id]);m();function m(){let F=o.value;o.readOnly=!0,o.size=c.format.length,H(F)&&(Ar[o.id]=new Date(F),o.value=j(Ar[o.id])),o.addEventListener("focus",()=>{h.gotoDate(Ar[o.id]),h.show()}),o.addEventListener("blur",()=>{h.hide()}),o.addEventListener("keydown",te=>{switch(te.key){case"Backspace":o.value="",o.blur();break;case"Escape":o.blur();break;case"Tab":o.blur();return}te.preventDefault()})}function v(){let F=document.activeElement;return F.matches(".form-input-date")?F:null}function x(F,te){let Y,N,P,R,$,ee;F=F||Nn(),_(te);function _(we){Y=we.getFullYear(),N=we.getMonth(),P=we.getDate(),R=we.getHours(),$=we.getMinutes(),ee=we.getSeconds()}function L(we){_(we),Ke()}function B(){return new Date(Y,N,P,R,$,ee)}function W(){return F}function ie(){_(new Date)}function xe(){ie(),Ke()}function Ie(){Y--}function vt(){Ie(),Ke()}function T(){Y++}function y(){T(),Ke()}function ae(){P=D(N,Y)}function Ee(){ae(),Ke()}function me(){N=S(N-1,12),N===11&&Ie(),P>D(N,Y)&&ae()}function Je(){me(),Ke()}function ut(){N=S(N+1,12),N===0&&T(),P>D(N,Y)&&ae()}function Pe(){ut(),Ke()}function at(){P-=7,P<1&&(me(),P+=D(N,Y))}function De(){at(),Ke()}function Oe(){P+=7,P>D(N,Y)&&(P-=D(N,Y),ut())}function We(){Oe(),Ke()}function lt(){P--,P<1&&(me(),ae())}function pn(){lt(),Ke()}function Ht(){P++,P>D(N,Y)&&(ut(),P=1)}function Nt(){Ht(),Ke()}function kt(){R=S(R+1,24),R===0&&Ht()}function _t(){kt(),Ke()}function be(){R=S(R-1,24),R===23&<()}function Ct(){be(),Ke()}function Gt(){$=S($+1,60),$===0&&kt()}function Hn(){Gt(),Ke()}function Br(){$=S($-1,60),$===59&&be()}function Ii(){Br(),Ke()}function Rr(){ee=S(ee+1,60),ee===0&&Gt()}function Jn(){Rr(),Ke()}function Oi(){ee=S(ee-1,60),ee===59&&Br()}function ha(){Oi(),Ke()}function Wr(){F.style.display="block",w()}function Vn(){F.style.display="none"}function mn(){return getComputedStyle(F).display!=="none"}function Ke(){A(".calendar-table",F).innerHTML=we(),Te(),c.time&&Ut();function we(){let gn=new Date(Y,N,1).getDay(),ue=S(gn-c.weekStarts,7),er=D(N,Y),Ve=1,ye="";ye+='',ye+=`${c.labels.months.long[N]} ${Y}`,ye+="",ye+="";for(let Ne=0;Ne<7;Ne++)ye+='',ye+=c.labels.weekdays.short[S(Ne+c.weekStarts,7)],ye+="";ye+="";for(let Ne=0;Ne<6;Ne++){for(let In=0;In<7;In++)Ve<=er&&(Ne>0||In>=ue)?(Ve===P?ye+='':ye+='',ye+=Ve++):Ve===1?(ye+='',ye+=D(S(N-1,12),Y)-ue+In+1):(ye+='',ye+=Ve++-er),ye+="";ye+=""}return ye+="",ye}function Te(){re(".calendar-day",F).forEach(gn=>{gn.addEventListener("mousedown",ue=>{ue.stopPropagation(),ue.preventDefault()}),gn.addEventListener("click",()=>{P=parseInt(`${gn.textContent}`),Ke(),c.onChange(B())})})}function Ut(){A(".calendar-hours",F).innerHTML=k(V(c.format)?S(R,12)||12:R,2),A(".calendar-minutes",F).innerHTML=k($,2),A(".calendar-meridiem",F).innerHTML=V(c.format)?R<12?"AM":"PM":""}}function Nn(){let we=document.createElement("div");return we.className="calendar",we.innerHTML=`
`,c.time&&(we.innerHTML+='
:
',ht("chevron-down",A(".prevHour",we)),ht("chevron-up",A(".nextHour",we)),ht("chevron-down",A(".prevMinute",we)),ht("chevron-up",A(".nextMinute",we))),ht("calendar-clock",A(".currentMonth",we)),ht("chevron-left",A(".prevMonth",we)),ht("chevron-right",A(".nextMonth",we)),A(".currentMonth",we).addEventListener("mousedown",Te=>{xe(),c.onChange(B()),Te.preventDefault()}),Hr(A(".prevMonth",we),Te=>{Je(),c.onChange(B()),Te.preventDefault()},750,500),Hr(A(".nextMonth",we),Te=>{Pe(),c.onChange(B()),Te.preventDefault()},750,500),c.time&&(Hr(A(".nextHour",we),Te=>{_t(),c.onChange(B()),Te.preventDefault()},750,250),Hr(A(".prevHour",we),Te=>{Ct(),c.onChange(B()),Te.preventDefault()},750,250),Hr(A(".nextMinute",we),Te=>{Hn(),c.onChange(B()),Te.preventDefault()},750,250),Hr(A(".prevMinute",we),Te=>{Ii(),c.onChange(B()),Te.preventDefault()},750,250)),window.addEventListener("resize",xo(w,100)),window.addEventListener("mousedown",Te=>{we.style.display!=="none"&&Te.target.closest(".calendar")&&Te.preventDefault()}),window.addEventListener("keydown",Te=>{if(mn()){switch(Te.key){case"Enter":A(".calendar-day.selected",we).click(),Vn();break;case"Backspace":case"Escape":case"Tab":Vn();break;case"ArrowLeft":Te.ctrlKey||Te.metaKey?Te.shiftKey?vt():Je():pn(),c.onChange(B());break;case"ArrowUp":De(),c.onChange(B());break;case"ArrowRight":Te.ctrlKey||Te.metaKey?Te.shiftKey?y():Pe():Nt(),c.onChange(B());break;case"ArrowDown":We(),c.onChange(B());break;case"0":(Te.ctrlKey||Te.metaKey)&&xe(),c.onChange(B());break;default:return}Te.preventDefault()}}),document.body.appendChild(we),we}return{setDate:_,gotoDate:L,getDate:B,getElement:W,now:xe,prevYear:vt,nextYear:y,lastDayOfMonth:Ee,prevMonth:Je,nextMonth:Pe,prevWeek:De,nextWeek:We,prevDay:pn,nextDay:Nt,nextHour:_t,prevHour:Ct,nextMinute:Hn,prevMinute:Ii,nextSecond:Jn,prevSecond:ha,show:Wr,hide:Vn,isVisible:mn}}function w(){let F=v();if(!F||!h.isVisible())return;let te=F.getBoundingClientRect(),Y=te.top+window.scrollY,N=te.left+window.scrollX,P=h.getElement();P.style.top=`${Y+F.offsetHeight}px`,P.style.left=`${N+F.offsetLeft}px`;let R=P.getBoundingClientRect(),$=R.top+window.scrollY,ee=R.left+window.scrollX,_=yo(P),L=bo(P),B=document.documentElement.clientWidth,W=document.documentElement.clientHeight;ee+_>B&&(P.style.left=`${B-_}px`),($=N.getTime()?te+1:F.getTime()>=Y.getTime()?te:te-1}function oe(F){let te=Z(F),Y=U(new Date(te,0,4),1),N=U(F,1);return Math.round((N.getTime()-Y.getTime())/6048e5)+1}function V(F){let te=F.match(/\[([^\]]*)\]|H{1,2}/);return te!==null&&te[0][0]==="H"}function j(F,te=c.format){let Y=/\[([^\]]*)\]|[YR]{4}|uuu|[YR]{2}|[MD]{1,4}|[WHhms]{1,2}|[AaZz]/g;function N(P){let R=P>0?"-":"+",$=Math.floor(Math.abs(P)/60),ee=Math.abs(P)%60;return[R+k($,2),k(ee,2)]}return te.replace(Y,(P,R)=>{switch(P){case"YY":return F.getFullYear().toString().substr(-2);case"YYYY":return F.getFullYear();case"M":return F.getMonth()+1;case"MM":return k(F.getMonth()+1,2);case"MMM":return c.labels.months.short[F.getMonth()];case"MMMM":return c.labels.months.long[F.getMonth()];case"D":return F.getDate();case"DD":return k(F.getDate(),2);case"DDD":return c.labels.weekdays.short[S(F.getDay()+c.weekStarts,7)];case"DDDD":return c.labels.weekdays.long[S(F.getDay()+c.weekStarts,7)];case"W":return oe(F);case"WW":return k(oe(F),2);case"RR":return Z(F).toString().substr(-2);case"RRRR":return Z(F);case"H":return S(F.getHours(),12)||12;case"HH":return k(S(F.getHours(),12)||12,2);case"h":return F.getHours();case"hh":return k(F.getHours(),2);case"m":return F.getMinutes();case"mm":return k(F.getMinutes(),2);case"s":return F.getSeconds();case"ss":return k(F.getSeconds(),2);case"uuu":return k(F.getMilliseconds(),3);case"A":return F.getHours()<12?"AM":"PM";case"a":return F.getHours()<12?"am":"pm";case"Z":return N(F.getTimezoneOffset()).join(":");case"z":return N(F.getTimezoneOffset()).join("");default:return R||P}})}}};function Bf(u){let o=Number.MAX_SAFE_INTEGER,a=-o;return u>o?o:u{V.includes(F)&&(j[F]=Math.floor(oe/hn[F]),oe-=j[F]*hn[F])}),j}function S(oe){let V=0;return Object.entries(oe).forEach(([j,F])=>{V+=F*hn[j]}),Bf(V)}function k(){let oe={},V=0,j=0;Object.entries(m).forEach(([F,te])=>{oe[F]=parseInt(te.value)}),V=S(oe),h.step&&(j=parseInt(h.step)*hn[x.unit],V=Math.floor(V/j)*j),h.min&&(V=Math.max(V,parseInt(h.min))),h.max&&(V=Math.min(V,parseInt(h.max))),h.value=`${Math.round(V/hn[x.unit])}`}function H(){let oe=w(parseInt(h.value)*hn[x.unit]);Object.entries(m).forEach(([V,j])=>{j.value=`${oe[V]||0}`})}function I(){Object.values(m).forEach(oe=>{oe.style.width=`${Math.max(3,oe.value.length+2)}ch`})}function D(){Object.entries(m).forEach(([oe,V])=>{v[oe].innerHTML=x.labels[oe][parseInt(V.value)===1?0:1]})}function U(oe,V){c=document.createElement("div"),c.className="form-input-duration";let j;for(let F of x.intervals){j=document.createElement("input"),j.className="form-input";let te=document.createElement("span");te.className=`duration-${F}`,j.type="number",j.value=`${oe[F]||0}`,j.style.width=`${Math.max(3,j.value.length+2)}ch`,V[F]>1&&(j.step=`${V[F]}`),o.disabled&&(j.disabled=!0),m[F]=j,j.addEventListener("input",function(){for(;this.value.charAt(0)==="0"&&this.value.length>1&&!this.value.charAt(1).match(/[.,]/);)this.value=this.value.slice(1);for(;parseInt(this.value)>Number.MAX_SAFE_INTEGER;)this.value=this.value.slice(0,-1);I(),k(),D()}),j.addEventListener("blur",()=>{k(),H(),I(),D()}),j.addEventListener("focus",()=>c.classList.add("focused")),j.addEventListener("blur",()=>c.classList.remove("focused")),te.addEventListener("mousedown",function(N){let P=A("input",this);P&&N.target!==P&&(P.focus(),N.preventDefault())});let Y=document.createElement("label");Y.className="form-label",Y.innerHTML=x.labels[F][parseInt(j.value)===1?0:1],v[F]=Y,te.appendChild(j),te.appendChild(Y),c.appendChild(te)}return c.addEventListener("mousedown",function(F){F.target===this&&(j.focus(),F.preventDefault())}),c}function Z(){h=document.createElement("input"),h.className="form-input-duration-hidden",h.name=o.name,h.id=o.id,h.type="text",h.value=o.value,h.readOnly=!0,h.hidden=!0,o.min&&(h.min=o.min),o.max&&(h.max=o.max),o.step&&(h.step=o.step),o.required&&(h.required=!0),o.disabled&&(h.disabled=!0),"intervals"in o.dataset&&(x.intervals=o.dataset.intervals.split(", ")),"unit"in o.dataset&&(x.unit=o.dataset.unit);let oe=parseInt(o.value)*hn[x.unit],V=parseInt(o.step)*hn[x.unit],j=U(w(oe||0),w(V||1));o.parentNode.replaceChild(j,o),j.appendChild(h)}}};function Rf(u,o){if(u.length!==o.length)return!1;for(let a=0;a({extend:!1,addNew:!1})}),c=A(`.editor-toolbar[data-for=${o.id}]`),h=o.parentNode.classList.contains("editor-wrap")?o.parentNode:null,m=[];s.getWrapperElement().style.height=`${a}px`,(D=A("[data-command=bold]",c))==null||D.addEventListener("click",()=>{S("**")}),(U=A("[data-command=italic]",c))==null||U.addEventListener("click",()=>{S("_")}),(Z=A("[data-command=ul]",c))==null||Z.addEventListener("click",()=>{S(`${w()}- `,"")}),(oe=A("[data-command=ol]",c))==null||oe.addEventListener("click",()=>{let N=/^(\d+)\./.exec(v(s.getValue()));S(N?` -${parseInt(N[1])+1}. `:`${w()}1. `,"")}),(V=A("[data-command=quote]",c))==null||V.addEventListener("click",()=>{S(`${w()}> `,"")}),(j=A("[data-command=link]",c))==null||j.addEventListener("click",()=>{let N=s.getSelection();/^(https?:\/\/|mailto:)/i.test(N)?S("[",`](${N})`,!0):N!==""?S(`[${N}](http://`,")",!0):S("[","](http://)")}),(F=A("[data-command=image]",c))==null||F.addEventListener("click",()=>{He.modals.imagesModal.show(void 0,N=>{let P=A(".image-picker-thumbnail.selected",N.element);P&&P.classList.remove("selected");function R(){if(P){let $=P.dataset.filename;S(`${w()}![`,`](${$})`)}N.hide(),this.removeEventListener("click",R)}A(".image-picker-confirm",N.element).addEventListener("click",R)})}),(te=A("[data-command=undo]",c))==null||te.addEventListener("click",()=>{s.undo(),s.focus()}),(Y=A("[data-command=redo]",c))==null||Y.addEventListener("click",()=>{s.redo(),s.focus()}),s.on("changes",kn(()=>{o.value=s.getValue(),s.historySize().undo<1?A("[data-command=undo]").disabled=!0:A("[data-command=undo]").disabled=!1,s.historySize().redo<1?A("[data-command=redo]").disabled=!0:A("[data-command=redo]").disabled=!1},500)),s.on("beforeSelectionChange",(N,P)=>{let R=k(P.ranges);N.operation(()=>{Rf(R,m)||(H(N,m),I(N,R),m=R)}),N.refresh()}),s.on("focus",()=>{h!==null&&h.classList.add("focused")}),s.on("blur",N=>{h!==null&&h.classList.remove("focused"),H(N,m),m=[]}),document.addEventListener("keydown",N=>{var P,R,$;if(!N.altKey&&(N.ctrlKey||N.metaKey))switch(N.key){case"b":(P=A("[data-command=bold]",c))==null||P.click(),N.preventDefault();break;case"i":(R=A("[data-command=italic]",c))==null||R.click(),N.preventDefault();break;case"k":($=A("[data-command=link]",c))==null||$.click(),N.preventDefault();break}});function v(N){let P=N.lastIndexOf(` -`);return P===-1?N:N.substring(P+1)}function x(){let N=s.getLine(s.getCursor().line);return N.length===0?void 0:N.slice(-1)}function w(){switch(x()){case void 0:return"";case` + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var E;x&&(E=i.ownerDocument.defaultView.scrollY),n.input.focus(),x&&i.ownerDocument.defaultView.scrollTo(null,E),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=C,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function A(){if(i.selectionStart!=null){var z=r.somethingSelected(),q="\u200B"+(z?i.value:"");i.value="\u21DA",i.value=q,t.prevInput=z?"":"\u200B",i.selectionStart=1,i.selectionEnd=q.length,n.selForContextMenu=r.doc.sel}}function C(){if(t.contextMenuPending==C&&(t.contextMenuPending=!1,t.wrapper.style.cssText=g,i.style.cssText=p,m&&v<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=f),i.selectionStart!=null)){(!m||m&&v<9)&&A();var z=0,q=function(){n.selForContextMenu==r.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?tt(r,Tu)(r):z++<10?n.detectingSelectAll=setTimeout(q,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(q,200)}}if(m&&v>=9&&A(),P){zr(e);var O=function(){Ve(window,"mouseup",O),setTimeout(C,20)};ue(window,"mouseup",O)}else setTimeout(C,50)},Ge.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ge.prototype.setUneditable=function(){},Ge.prototype.needsContentAttribute=!1;function bh(e,t){if(t=t?ut(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var r=xe(Ee(e));t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=d.getValue()}var i;if(e.form&&(ue(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var l=e.form;i=l.submit;try{var f=l.submit=function(){n(),l.submit=i,l.submit(),l.submit=f}}catch(p){}}t.finishInit=function(p){p.save=n,p.getTextArea=function(){return e},p.toTextArea=function(){p.toTextArea=isNaN,n(),e.parentNode.removeChild(p.getWrapperElement()),e.style.display="",e.form&&(Ve(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var d=Fe(function(p){return e.parentNode.insertBefore(p,e.nextSibling)},t);return d}function xh(e){e.off=Ve,e.on=ue,e.wheelEventPixels=Cd,e.Doc=xt,e.splitLines=ya,e.countColumn=Pe,e.findColumn=Nt,e.isWordChar=Rr,e.Pass=We,e.signal=ye,e.Line=ir,e.changeEnd=wn,e.scrollbarModel=tu,e.Pos=U,e.cmpPos=he,e.modes=xa,e.mimeModes=nr,e.resolveMode=Fi,e.getMode=wa,e.modeExtensions=rr,e.extendMode=Ec,e.copyState=On,e.startState=ls,e.innerMode=Ea,e.commands=fi,e.keyMap=sn,e.keyName=_u,e.isModifierKey=Wu,e.lookupKey=vr,e.normalizeKeyMap=$d,e.StringStream=je,e.SharedTextMarker=li,e.TextMarker=Ln,e.LineWidget=ai,e.e_preventDefault=yt,e.e_stopPropagation=os,e.e_stop=zr,e.addClass=Ie,e.contains=ie,e.rmClass=$,e.keyNames=Sn}ch(Fe),mh(Fe);var wh="iter insert remove copy getEditor constructor".split(" ");for(var po in xt.prototype)xt.prototype.hasOwnProperty(po)&&De(wh,po)<0&&(Fe.prototype[po]=function(e){return function(){return e.apply(this.doc,arguments)}}(xt.prototype[po]));return tr(xt),Fe.inputStyles={textarea:Ge,contenteditable:Me},Fe.defineMode=function(e){!Fe.defaults.mode&&e!="null"&&(Fe.defaults.mode=e),xc.apply(this,arguments)},Fe.defineMIME=wc,Fe.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Fe.defineMIME("text/plain","null"),Fe.defineExtension=function(e,t){Fe.prototype[e]=t},Fe.defineDocExtension=function(e,t){xt.prototype[e]=t},Fe.fromTextArea=bh,xh(Fe),Fe.version="5.65.16",Fe})});var _f=Lr((Wf,zf)=>{(function(u){typeof Wf=="object"&&typeof zf=="object"?u(Qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};u.defineMode("xml",function(s,c){var h=s.indentUnit,m={},v=c.htmlMode?o:a;for(var x in v)m[x]=v[x];for(var x in c)m[x]=c[x];var w,S;function k(L,B){function W(Ie){return B.tokenize=Ie,Ie(L,B)}var ie=L.next();if(ie=="<")return L.eat("!")?L.eat("[")?L.match("CDATA[")?W(M("atom","]]>")):null:L.match("--")?W(M("comment","-->")):L.match("DOCTYPE",!0,!0)?(L.eatWhile(/[\w\._\-]/),W(G(1))):null:L.eat("?")?(L.eatWhile(/[\w\._\-]/),B.tokenize=M("meta","?>"),"meta"):(w=L.eat("/")?"closeTag":"openTag",B.tokenize=D,"tag bracket");if(ie=="&"){var xe;return L.eat("#")?L.eat("x")?xe=L.eatWhile(/[a-fA-F\d]/)&&L.eat(";"):xe=L.eatWhile(/[\d]/)&&L.eat(";"):xe=L.eatWhile(/[\w\.\-:]/)&&L.eat(";"),xe?"atom":"error"}else return L.eatWhile(/[^&<]/),null}k.isInText=!0;function D(L,B){var W=L.next();if(W==">"||W=="/"&&L.eat(">"))return B.tokenize=k,w=W==">"?"endTag":"selfcloseTag","tag bracket";if(W=="=")return w="equals",null;if(W=="<"){B.tokenize=k,B.state=F,B.tagName=B.tagStart=null;var ie=B.tokenize(L,B);return ie?ie+" tag error":"tag error"}else return/[\'\"]/.test(W)?(B.tokenize=N(W),B.stringStartCol=L.column(),B.tokenize(L,B)):(L.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function N(L){var B=function(W,ie){for(;!W.eol();)if(W.next()==L){ie.tokenize=D;break}return"string"};return B.isInAttribute=!0,B}function M(L,B){return function(W,ie){for(;!W.eol();){if(W.match(B)){ie.tokenize=k;break}W.next()}return L}}function G(L){return function(B,W){for(var ie;(ie=B.next())!=null;){if(ie=="<")return W.tokenize=G(L+1),W.tokenize(B,W);if(ie==">")if(L==1){W.tokenize=k;break}else return W.tokenize=G(L-1),W.tokenize(B,W)}return"meta"}}function Z(L){return L&&L.toLowerCase()}function oe(L,B,W){this.prev=L.context,this.tagName=B||"",this.indent=L.indented,this.startOfLine=W,(m.doNotIndent.hasOwnProperty(B)||L.context&&L.context.noIndent)&&(this.noIndent=!0)}function V(L){L.context&&(L.context=L.context.prev)}function j(L,B){for(var W;;){if(!L.context||(W=L.context.tagName,!m.contextGrabbers.hasOwnProperty(Z(W))||!m.contextGrabbers[Z(W)].hasOwnProperty(Z(B))))return;V(L)}}function F(L,B,W){return L=="openTag"?(W.tagStart=B.column(),te):L=="closeTag"?Y:F}function te(L,B,W){return L=="word"?(W.tagName=B.current(),S="tag",R):m.allowMissingTagName&&L=="endTag"?(S="tag bracket",R(L,B,W)):(S="error",te)}function Y(L,B,W){if(L=="word"){var ie=B.current();return W.context&&W.context.tagName!=ie&&m.implicitlyClosed.hasOwnProperty(Z(W.context.tagName))&&V(W),W.context&&W.context.tagName==ie||m.matchClosing===!1?(S="tag",I):(S="tag error",P)}else return m.allowMissingTagName&&L=="endTag"?(S="tag bracket",I(L,B,W)):(S="error",P)}function I(L,B,W){return L!="endTag"?(S="error",I):(V(W),F)}function P(L,B,W){return S="error",I(L,B,W)}function R(L,B,W){if(L=="word")return S="attribute",$;if(L=="endTag"||L=="selfcloseTag"){var ie=W.tagName,xe=W.tagStart;return W.tagName=W.tagStart=null,L=="selfcloseTag"||m.autoSelfClosers.hasOwnProperty(Z(ie))?j(W,ie):(j(W,ie),W.context=new oe(W,ie,xe==W.indented)),F}return S="error",R}function $(L,B,W){return L=="equals"?ee:(m.allowMissing||(S="error"),R(L,B,W))}function ee(L,B,W){return L=="string"?_:L=="word"&&m.allowUnquoted?(S="string",R):(S="error",R(L,B,W))}function _(L,B,W){return L=="string"?_:R(L,B,W)}return{startState:function(L){var B={tokenize:k,state:F,indented:L||0,tagName:null,tagStart:null,context:null};return L!=null&&(B.baseIndent=L),B},token:function(L,B){if(!B.tagName&&L.sol()&&(B.indented=L.indentation()),L.eatSpace())return null;w=null;var W=B.tokenize(L,B);return(W||w)&&W!="comment"&&(S=null,B.state=B.state(w||W,L,B),S&&(W=S=="error"?W+" error":S)),W},indent:function(L,B,W){var ie=L.context;if(L.tokenize.isInAttribute)return L.tagStart==L.indented?L.stringStartCol+1:L.indented+h;if(ie&&ie.noIndent)return u.Pass;if(L.tokenize!=D&&L.tokenize!=k)return W?W.match(/^(\s*)/)[0].length:0;if(L.tagName)return m.multilineTagIndentPastTag!==!1?L.tagStart+L.tagName.length+2:L.tagStart+h*(m.multilineTagIndentFactor||1);if(m.alignCDATA&&/$/,blockCommentStart:"",configuration:m.htmlMode?"html":"xml",helperType:m.htmlMode?"html":"xml",skipAttribute:function(L){L.state==ee&&(L.state=R)},xmlCurrentTag:function(L){return L.tagName?{name:L.tagName,close:L.type=="closeTag"}:null},xmlCurrentContext:function(L){for(var B=[],W=L.context;W;W=W.prev)B.push(W.tagName);return B.reverse()}}}),u.defineMIME("text/xml","xml"),u.defineMIME("application/xml","xml"),u.mimeModes.hasOwnProperty("text/html")||u.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var qf=Lr((Gf,Uf)=>{(function(u){typeof Gf=="object"&&typeof Uf=="object"?u(Qn()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var o=0;o-1&&s.substring(m+1,s.length);if(v)return u.findModeByExtension(v)},u.findModeByName=function(s){s=s.toLowerCase();for(var c=0;c{(function(u){typeof jf=="object"&&typeof Yf=="object"?u(Qn(),_f(),qf()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("markdown",function(o,a){var s=u.getMode(o,"text/html"),c=s.name=="null";function h(T){if(u.findModeByName){var y=u.findModeByName(T);y&&(T=y.mime||y.mimes[0])}var ae=u.getMode(o,T);return ae.name=="null"?null:ae}a.highlightFormatting===void 0&&(a.highlightFormatting=!1),a.maxBlockquoteDepth===void 0&&(a.maxBlockquoteDepth=0),a.taskLists===void 0&&(a.taskLists=!1),a.strikethrough===void 0&&(a.strikethrough=!1),a.emoji===void 0&&(a.emoji=!1),a.fencedCodeBlockHighlighting===void 0&&(a.fencedCodeBlockHighlighting=!0),a.fencedCodeBlockDefaultMode===void 0&&(a.fencedCodeBlockDefaultMode="text/plain"),a.xml===void 0&&(a.xml=!0),a.tokenTypeOverrides===void 0&&(a.tokenTypeOverrides={});var m={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var v in m)m.hasOwnProperty(v)&&a.tokenTypeOverrides[v]&&(m[v]=a.tokenTypeOverrides[v]);var x=/^([*\-_])(?:\s*\1){2,}\s*$/,w=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,S=/^\[(x| )\](?=\s)/i,k=a.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,D=/^ {0,3}(?:\={1,}|-{2,})\s*$/,N=/^[^#!\[\]*_\\<>` "'(~:]+/,M=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,G=/^\s*\[[^\]]+?\]:.*$/,Z=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,oe=" ";function V(T,y,ae){return y.f=y.inline=ae,ae(T,y)}function j(T,y,ae){return y.f=y.block=ae,ae(T,y)}function F(T){return!T||!/\S/.test(T.string)}function te(T){if(T.linkTitle=!1,T.linkHref=!1,T.linkText=!1,T.em=!1,T.strong=!1,T.strikethrough=!1,T.quote=0,T.indentedCode=!1,T.f==I){var y=c;if(!y){var ae=u.innerMode(s,T.htmlState);y=ae.mode.name=="xml"&&ae.state.tagStart===null&&!ae.state.context&&ae.state.tokenize.isInText}y&&(T.f=ee,T.block=Y,T.htmlState=null)}return T.trailingSpace=0,T.trailingSpaceNewLine=!1,T.prevLine=T.thisLine,T.thisLine={stream:null},null}function Y(T,y){var ae=T.column()===y.indentation,Ee=F(y.prevLine.stream),me=y.indentedCode,Je=y.prevLine.hr,ut=y.list!==!1,Pe=(y.listStack[y.listStack.length-1]||0)+3;y.indentedCode=!1;var at=y.indentation;if(y.indentationDiff===null&&(y.indentationDiff=y.indentation,ut)){for(y.list=null;at=4&&(me||y.prevLine.fencedCodeEnd||y.prevLine.header||Ee))return T.skipToEnd(),y.indentedCode=!0,m.code;if(T.eatSpace())return null;if(ae&&y.indentation<=Pe&&(We=T.match(k))&&We[1].length<=6)return y.quote=0,y.header=We[1].length,y.thisLine.header=!0,a.highlightFormatting&&(y.formatting="header"),y.f=y.inline,R(y);if(y.indentation<=Pe&&T.eat(">"))return y.quote=ae?1:y.quote+1,a.highlightFormatting&&(y.formatting="quote"),T.eatSpace(),R(y);if(!Oe&&!y.setext&&ae&&y.indentation<=Pe&&(We=T.match(w))){var lt=We[1]?"ol":"ul";return y.indentation=at+T.current().length,y.list=!0,y.quote=0,y.listStack.push(y.indentation),y.em=!1,y.strong=!1,y.code=!1,y.strikethrough=!1,a.taskLists&&T.match(S,!1)&&(y.taskList=!0),y.f=y.inline,a.highlightFormatting&&(y.formatting=["list","list-"+lt]),R(y)}else{if(ae&&y.indentation<=Pe&&(We=T.match(M,!0)))return y.quote=0,y.fencedEndRE=new RegExp(We[1]+"+ *$"),y.localMode=a.fencedCodeBlockHighlighting&&h(We[2]||a.fencedCodeBlockDefaultMode),y.localMode&&(y.localState=u.startState(y.localMode)),y.f=y.block=P,a.highlightFormatting&&(y.formatting="code-block"),y.code=-1,R(y);if(y.setext||(!De||!ut)&&!y.quote&&y.list===!1&&!y.code&&!Oe&&!G.test(T.string)&&(We=T.lookAhead(1))&&(We=We.match(D)))return y.setext?(y.header=y.setext,y.setext=0,T.skipToEnd(),a.highlightFormatting&&(y.formatting="header")):(y.header=We[0].charAt(0)=="="?1:2,y.setext=y.header),y.thisLine.header=!0,y.f=y.inline,R(y);if(Oe)return T.skipToEnd(),y.hr=!0,y.thisLine.hr=!0,m.hr;if(T.peek()==="[")return V(T,y,ie)}return V(T,y,y.inline)}function I(T,y){var ae=s.token(T,y.htmlState);if(!c){var Ee=u.innerMode(s,y.htmlState);(Ee.mode.name=="xml"&&Ee.state.tagStart===null&&!Ee.state.context&&Ee.state.tokenize.isInText||y.md_inside&&T.current().indexOf(">")>-1)&&(y.f=ee,y.block=Y,y.htmlState=null)}return ae}function P(T,y){var ae=y.listStack[y.listStack.length-1]||0,Ee=y.indentation=T.quote?y.push(m.formatting+"-"+T.formatting[ae]+"-"+T.quote):y.push("error"))}if(T.taskOpen)return y.push("meta"),y.length?y.join(" "):null;if(T.taskClosed)return y.push("property"),y.length?y.join(" "):null;if(T.linkHref?y.push(m.linkHref,"url"):(T.strong&&y.push(m.strong),T.em&&y.push(m.em),T.strikethrough&&y.push(m.strikethrough),T.emoji&&y.push(m.emoji),T.linkText&&y.push(m.linkText),T.code&&y.push(m.code),T.image&&y.push(m.image),T.imageAltText&&y.push(m.imageAltText,"link"),T.imageMarker&&y.push(m.imageMarker)),T.header&&y.push(m.header,m.header+"-"+T.header),T.quote&&(y.push(m.quote),!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=T.quote?y.push(m.quote+"-"+T.quote):y.push(m.quote+"-"+a.maxBlockquoteDepth)),T.list!==!1){var Ee=(T.listStack.length-1)%3;Ee?Ee===1?y.push(m.list2):y.push(m.list3):y.push(m.list1)}return T.trailingSpaceNewLine?y.push("trailing-space-new-line"):T.trailingSpace&&y.push("trailing-space-"+(T.trailingSpace%2?"a":"b")),y.length?y.join(" "):null}function $(T,y){if(T.match(N,!0))return R(y)}function ee(T,y){var ae=y.text(T,y);if(typeof ae!="undefined")return ae;if(y.list)return y.list=null,R(y);if(y.taskList){var Ee=T.match(S,!0)[1]===" ";return Ee?y.taskOpen=!0:y.taskClosed=!0,a.highlightFormatting&&(y.formatting="task"),y.taskList=!1,R(y)}if(y.taskOpen=!1,y.taskClosed=!1,y.header&&T.match(/^#+$/,!0))return a.highlightFormatting&&(y.formatting="header"),R(y);var me=T.next();if(y.linkTitle){y.linkTitle=!1;var Je=me;me==="("&&(Je=")"),Je=(Je+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ut="^\\s*(?:[^"+Je+"\\\\]+|\\\\\\\\|\\\\.)"+Je;if(T.match(new RegExp(ut),!0))return m.linkHref}if(me==="`"){var Pe=y.formatting;a.highlightFormatting&&(y.formatting="code"),T.eatWhile("`");var at=T.current().length;if(y.code==0&&(!y.quote||at==1))return y.code=at,R(y);if(at==y.code){var De=R(y);return y.code=0,De}else return y.formatting=Pe,R(y)}else if(y.code)return R(y);if(me==="\\"&&(T.next(),a.highlightFormatting)){var Oe=R(y),We=m.formatting+"-escape";return Oe?Oe+" "+We:We}if(me==="!"&&T.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return y.imageMarker=!0,y.image=!0,a.highlightFormatting&&(y.formatting="image"),R(y);if(me==="["&&y.imageMarker&&T.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return y.imageMarker=!1,y.imageAltText=!0,a.highlightFormatting&&(y.formatting="image"),R(y);if(me==="]"&&y.imageAltText){a.highlightFormatting&&(y.formatting="image");var Oe=R(y);return y.imageAltText=!1,y.image=!1,y.inline=y.f=L,Oe}if(me==="["&&!y.image)return y.linkText&&T.match(/^.*?\]/)||(y.linkText=!0,a.highlightFormatting&&(y.formatting="link")),R(y);if(me==="]"&&y.linkText){a.highlightFormatting&&(y.formatting="link");var Oe=R(y);return y.linkText=!1,y.inline=y.f=T.match(/\(.*?\)| ?\[.*?\]/,!1)?L:ee,Oe}if(me==="<"&&T.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){y.f=y.inline=_,a.highlightFormatting&&(y.formatting="link");var Oe=R(y);return Oe?Oe+=" ":Oe="",Oe+m.linkInline}if(me==="<"&&T.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){y.f=y.inline=_,a.highlightFormatting&&(y.formatting="link");var Oe=R(y);return Oe?Oe+=" ":Oe="",Oe+m.linkEmail}if(a.xml&&me==="<"&&T.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var lt=T.string.indexOf(">",T.pos);if(lt!=-1){var pn=T.string.substring(T.start,lt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(pn)&&(y.md_inside=!0)}return T.backUp(1),y.htmlState=u.startState(s),j(T,y,I)}if(a.xml&&me==="<"&&T.match(/^\/\w*?>/))return y.md_inside=!1,"tag";if(me==="*"||me==="_"){for(var Ht=1,Nt=T.pos==1?" ":T.string.charAt(T.pos-2);Ht<3&&T.eat(me);)Ht++;var kt=T.peek()||" ",_t=!/\s/.test(kt)&&(!Z.test(kt)||/\s/.test(Nt)||Z.test(Nt)),be=!/\s/.test(Nt)&&(!Z.test(Nt)||/\s/.test(kt)||Z.test(kt)),Ct=null,Gt=null;if(Ht%2&&(!y.em&&_t&&(me==="*"||!be||Z.test(Nt))?Ct=!0:y.em==me&&be&&(me==="*"||!_t||Z.test(kt))&&(Ct=!1)),Ht>1&&(!y.strong&&_t&&(me==="*"||!be||Z.test(Nt))?Gt=!0:y.strong==me&&be&&(me==="*"||!_t||Z.test(kt))&&(Gt=!1)),Gt!=null||Ct!=null){a.highlightFormatting&&(y.formatting=Ct==null?"strong":Gt==null?"em":"strong em"),Ct===!0&&(y.em=me),Gt===!0&&(y.strong=me);var De=R(y);return Ct===!1&&(y.em=!1),Gt===!1&&(y.strong=!1),De}}else if(me===" "&&(T.eat("*")||T.eat("_"))){if(T.peek()===" ")return R(y);T.backUp(1)}if(a.strikethrough){if(me==="~"&&T.eatWhile(me)){if(y.strikethrough){a.highlightFormatting&&(y.formatting="strikethrough");var De=R(y);return y.strikethrough=!1,De}else if(T.match(/^[^\s]/,!1))return y.strikethrough=!0,a.highlightFormatting&&(y.formatting="strikethrough"),R(y)}else if(me===" "&&T.match("~~",!0)){if(T.peek()===" ")return R(y);T.backUp(2)}}if(a.emoji&&me===":"&&T.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){y.emoji=!0,a.highlightFormatting&&(y.formatting="emoji");var Hn=R(y);return y.emoji=!1,Hn}return me===" "&&(T.match(/^ +$/,!1)?y.trailingSpace++:y.trailingSpace&&(y.trailingSpaceNewLine=!0)),R(y)}function _(T,y){var ae=T.next();if(ae===">"){y.f=y.inline=ee,a.highlightFormatting&&(y.formatting="link");var Ee=R(y);return Ee?Ee+=" ":Ee="",Ee+m.linkInline}return T.match(/^[^>]+/,!0),m.linkInline}function L(T,y){if(T.eatSpace())return null;var ae=T.next();return ae==="("||ae==="["?(y.f=y.inline=W(ae==="("?")":"]"),a.highlightFormatting&&(y.formatting="link-string"),y.linkHref=!0,R(y)):"error"}var B={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function W(T){return function(y,ae){var Ee=y.next();if(Ee===T){ae.f=ae.inline=ee,a.highlightFormatting&&(ae.formatting="link-string");var me=R(ae);return ae.linkHref=!1,me}return y.match(B[T]),ae.linkHref=!0,R(ae)}}function ie(T,y){return T.match(/^([^\]\\]|\\.)*\]:/,!1)?(y.f=xe,T.next(),a.highlightFormatting&&(y.formatting="link"),y.linkText=!0,R(y)):V(T,y,ee)}function xe(T,y){if(T.match("]:",!0)){y.f=y.inline=Ie,a.highlightFormatting&&(y.formatting="link");var ae=R(y);return y.linkText=!1,ae}return T.match(/^([^\]\\]|\\.)+/,!0),m.linkText}function Ie(T,y){return T.eatSpace()?null:(T.match(/^[^\s]+/,!0),T.peek()===void 0?y.linkTitle=!0:T.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),y.f=y.inline=ee,m.linkHref+" url")}var vt={startState:function(){return{f:Y,prevLine:{stream:null},thisLine:{stream:null},block:Y,htmlState:null,indentation:0,inline:ee,text:$,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(T){return{f:T.f,prevLine:T.prevLine,thisLine:T.thisLine,block:T.block,htmlState:T.htmlState&&u.copyState(s,T.htmlState),indentation:T.indentation,localMode:T.localMode,localState:T.localMode?u.copyState(T.localMode,T.localState):null,inline:T.inline,text:T.text,formatting:!1,linkText:T.linkText,linkTitle:T.linkTitle,linkHref:T.linkHref,code:T.code,em:T.em,strong:T.strong,strikethrough:T.strikethrough,emoji:T.emoji,header:T.header,setext:T.setext,hr:T.hr,taskList:T.taskList,list:T.list,listStack:T.listStack.slice(0),quote:T.quote,indentedCode:T.indentedCode,trailingSpace:T.trailingSpace,trailingSpaceNewLine:T.trailingSpaceNewLine,md_inside:T.md_inside,fencedEndRE:T.fencedEndRE}},token:function(T,y){if(y.formatting=!1,T!=y.thisLine.stream){if(y.header=0,y.hr=!1,T.match(/^\s*$/,!0))return te(y),null;if(y.prevLine=y.thisLine,y.thisLine={stream:T},y.taskList=!1,y.trailingSpace=0,y.trailingSpaceNewLine=!1,!y.localState&&(y.f=y.block,y.f!=I)){var ae=T.match(/^\s*/,!0)[0].replace(/\t/g,oe).length;if(y.indentation=ae,y.indentationDiff=null,ae>0)return null}}return y.f(T,y)},innerMode:function(T){return T.block==I?{state:T.htmlState,mode:s}:T.localState?{state:T.localState,mode:T.localMode}:{state:T,mode:vt}},indent:function(T,y,ae){return T.block==I&&s.indent?s.indent(T.htmlState,y,ae):T.localState&&T.localMode.indent?T.localMode.indent(T.localState,y,ae):u.Pass},blankLine:te,getType:R,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return vt},"xml"),u.defineMIME("text/markdown","markdown"),u.defineMIME("text/x-markdown","markdown")})});var Qf=Lr((Kf,$f)=>{(function(u){typeof Kf=="object"&&typeof $f=="object"?u(Qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){u.defineOption("placeholder","",function(v,x,w){var S=w&&w!=u.Init;if(x&&!S)v.on("blur",c),v.on("change",h),v.on("swapDoc",h),u.on(v.getInputField(),"compositionupdate",v.state.placeholderCompose=function(){s(v)}),h(v);else if(!x&&S){v.off("blur",c),v.off("change",h),v.off("swapDoc",h),u.off(v.getInputField(),"compositionupdate",v.state.placeholderCompose),o(v);var k=v.getWrapperElement();k.className=k.className.replace(" CodeMirror-empty","")}x&&!v.hasFocus()&&c(v)});function o(v){v.state.placeholder&&(v.state.placeholder.parentNode.removeChild(v.state.placeholder),v.state.placeholder=null)}function a(v){o(v);var x=v.state.placeholder=document.createElement("pre");x.style.cssText="height: 0; overflow: visible",x.style.direction=v.getOption("direction"),x.className="CodeMirror-placeholder CodeMirror-line-like";var w=v.getOption("placeholder");typeof w=="string"&&(w=document.createTextNode(w)),x.appendChild(w),v.display.lineSpace.insertBefore(x,v.display.lineSpace.firstChild)}function s(v){setTimeout(function(){var x=!1;if(v.lineCount()==1){var w=v.getInputField();x=w.nodeName=="TEXTAREA"?!v.getLine(0).length:!/[^\u200b]/.test(w.querySelector(".CodeMirror-line").textContent)}x?a(v):o(v)},20)}function c(v){m(v)&&a(v)}function h(v){var x=v.getWrapperElement(),w=m(v);x.className=x.className.replace(" CodeMirror-empty","")+(w?" CodeMirror-empty":""),w?a(v):o(v)}function m(v){return v.lineCount()===1&&v.getLine(0)===""}})});var Vf=Lr((Zf,Jf)=>{(function(u){typeof Zf=="object"&&typeof Jf=="object"?u(Qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";var o=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,a=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,s=/[*+-]\s/;u.commands.newlineAndIndentContinueMarkdownList=function(h){if(h.getOption("disableInput"))return u.Pass;for(var m=h.listSelections(),v=[],x=0;x\s*$/.test(M),V=!/>\s*$/.test(M);(oe||V)&&h.replaceRange("",{line:w.line,ch:0},{line:w.line,ch:w.ch+1}),v[x]=` +`}else{var j=G[1],F=G[5],te=!(s.test(G[2])||G[2].indexOf(">")>=0),Y=te?parseInt(G[3],10)+1+G[4]:G[2].replace("x"," ");v[x]=` +`+j+Y+F,te&&c(h,w)}}h.replaceSelections(v)};function c(h,m){var v=m.line,x=0,w=0,S=o.exec(h.getLine(v)),k=S[1];do{x+=1;var D=v+x,N=h.getLine(D),M=o.exec(N);if(M){var G=M[1],Z=parseInt(S[3],10)+x-w,oe=parseInt(M[3],10),V=oe;if(k===G&&!isNaN(oe))Z===oe&&(V=oe+1),Z>oe&&(V=Z+1),h.replaceRange(N.replace(o,G+V+M[4]+M[5]),{line:D,ch:0},{line:D,ch:N.length});else{if(k.length>G.length||k.lengthHe});function cf(){let u={},o=document.cookie.split(";");for(let a of o){let s=a.split("=",2);s.length===2&&(u[s[0].trim()]=decodeURIComponent(s[1].trim()))}return u}function df(u,o,a){let s=`${u}=${o}`;for(let c in a)s+=`;${c}=${a[c]}`;document.cookie=s}var vo=class{constructor(){let o=()=>{let a=cf(),s="formwork_preferred_color_scheme",c=s in a?a[s]:null,h="light";window.matchMedia("(prefers-color-scheme: light)").matches?h="light":window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="dark"),h&&h!==c&&df(s,h,{"max-age":2592e3,path:He.config.baseUri,samesite:"strict"})};window.addEventListener("beforeunload",o),window.addEventListener("pagehide",o)}};function H(u,o=document){return o.querySelector(u)}function ne(u,o=document){return o.querySelectorAll(u)}function yo(u){let o=getComputedStyle(u);return u.offsetWidth+parseInt(o.marginLeft)+parseInt(o.marginRight)}function bo(u){let o=getComputedStyle(u);return u.offsetHeight+parseInt(o.marginTop)+parseInt(o.marginBottom)}function kn(u,o,a=!1){let s,c=null;function h(...m){let v=this;return c&&clearTimeout(c),a&&!c&&(s=u.apply(v,m)),c=setTimeout(()=>{a||(s=u.apply(v,m)),c=null},o),s}return h}function xo(u,o){let a,s=0,c=null;function h(...m){let v=Date.now();s===0&&(s=v);let x=s+o-v,w=this;return x<=0||x>o?(c&&(clearTimeout(c),c=null),s=v,a=u.apply(w,m)):c||(c=setTimeout(()=>{s=Date.now(),a=u.apply(w,m),c=null},x)),a}return h}var wo=class{constructor(){H(".dropdown")&&document.addEventListener("click",o=>{ne(".dropdown-menu").forEach(s=>s.style.display="");let a=o.target.closest(".dropdown-button");if(a){let s=document.getElementById(a.dataset.dropdown),c=getComputedStyle(s).display!=="none";o.preventDefault();let h=xo(()=>hf(s),100);s&&!c?(s.style.display="block",hf(s),window.addEventListener("resize",h)):window.removeEventListener("resize",h)}})}};function hf(u){u.style.left="0",u.style.right="";let o=u.getBoundingClientRect(),a=o.top+window.scrollY,s=o.left+window.scrollX,c=yo(u),h=bo(u),m=document.documentElement.clientWidth,v=document.documentElement.clientHeight;s+c>m&&(u.style.left="auto",u.style.right="0"),(a{let a=H(".form-togglegroup",o);if(a){let s=window.localStorage.getItem("formwork.filesListViewAs");s&&(ne("input",a).forEach(c=>c.checked=!1),H(`input[value=${s}]`,o).checked=!0,o.classList.toggle("is-thumbnails",s==="thumbnails")),ne("input",a).forEach(c=>{c.addEventListener("input",()=>{o.classList.toggle("is-thumbnails",c.value==="thumbnails"),window.localStorage.setItem("formwork.filesListViewAs",c.value)})})}ne(".files-item",o).forEach(s=>{s.addEventListener("click",c=>{!c.target.closest(".dropdown")&&typeof s.dataset.href=="string"&&(location.href=s.dataset.href)})})})}};typeof window.HTMLFormElement.prototype.requestSubmit=="undefined"&&(window.HTMLFormElement.prototype.requestSubmit=function(u){if(u){if(!(u instanceof HTMLElement))throw new TypeError("Failed to execute 'requestSubmit' on 'HTMLFormElement': parameter 1 is not of type 'HTMLElement'.");if(u.type!=="submit")throw new TypeError("Failed to execute 'requestSubmit' on 'HTMLFormElement': the specified element is not a submit button.");if(u.form!==this)throw new DOMException("Failed to execute 'requestSubmit' on 'HTMLFormElement': the specified element is not owned by this form element.","NotFoundError");u.click()}else u=document.createElement("input"),u.type="submit",u.hidden=!0,this.appendChild(u),u.click(),this.removeChild(u)});function pf(u,o){var a=Object.keys(u);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(u);o&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(u,c).enumerable})),a.push.apply(a,s)}return a}function nn(u){for(var o=1;o=0)&&(a[c]=u[c]);return a}function Nh(u,o){if(u==null)return{};var a=Hh(u,o),s,c;if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(u);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(u,s)&&(a[s]=u[s])}return a}var Ih="1.15.2";function fn(u){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(u)}var dn=fn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Si=fn(/Edge/i),mf=fn(/firefox/i),bi=fn(/safari/i)&&!fn(/chrome/i)&&!fn(/android/i),Lf=fn(/iP(ad|od|hone)/i),Sf=fn(/chrome/i)&&fn(/android/i),Tf={capture:!1,passive:!1};function ke(u,o,a){u.addEventListener(o,a,!dn&&Tf)}function Le(u,o,a){u.removeEventListener(o,a,!dn&&Tf)}function No(u,o){if(o){if(o[0]===">"&&(o=o.substring(1)),u)try{if(u.matches)return u.matches(o);if(u.msMatchesSelector)return u.msMatchesSelector(o);if(u.webkitMatchesSelector)return u.webkitMatchesSelector(o)}catch(a){return!1}return!1}}function Oh(u){return u.host&&u!==document&&u.host.nodeType?u.host:u.parentNode}function $t(u,o,a,s){if(u){a=a||document;do{if(o!=null&&(o[0]===">"?u.parentNode===a&&No(u,o):No(u,o))||s&&u===a)return u;if(u===a)break}while(u=Oh(u))}return null}var gf=/\s+/g;function Ot(u,o,a){if(u&&o)if(u.classList)u.classList[a?"add":"remove"](o);else{var s=(" "+u.className+" ").replace(gf," ").replace(" "+o+" "," ");u.className=(s+(a?" "+o:"")).replace(gf," ")}}function ce(u,o,a){var s=u&&u.style;if(s){if(a===void 0)return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(u,""):u.currentStyle&&(a=u.currentStyle),o===void 0?a:a[o];!(o in s)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),s[o]=a+(typeof a=="string"?"":"px")}}function Mr(u,o){var a="";if(typeof u=="string")a=u;else do{var s=ce(u,"transform");s&&s!=="none"&&(a=s+" "+a)}while(!o&&(u=u.parentNode));var c=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return c&&new c(a)}function kf(u,o,a){if(u){var s=u.getElementsByTagName(o),c=0,h=s.length;if(a)for(;c=h:m=c<=h,!m)return s;if(s===tn())break;s=Dn(s,!1)}return!1}function Dr(u,o,a,s){for(var c=0,h=0,m=u.children;h2&&arguments[2]!==void 0?arguments[2]:{},c=s.evt,h=Nh(s,Gh);Ti.pluginEvent.bind(de)(o,a,nn({dragEl:Q,parentEl:qe,ghostEl:ge,rootEl:Re,nextEl:$n,lastDownEl:Mo,cloneEl:_e,cloneHidden:Mn,dragStarted:gi,putSortable:dt,activeSortable:de.active,originalEvent:c,oldIndex:Cr,oldDraggableIndex:wi,newIndex:Ft,newDraggableIndex:Cn,hideGhostForTarget:Of,unhideGhostForTarget:Ff,cloneNowHidden:function(){Mn=!0},cloneNowShown:function(){Mn=!1},dispatchSortableEvent:function(v){St({sortable:a,name:v,originalEvent:c})}},h))};function St(u){_h(nn({putSortable:dt,cloneEl:_e,targetEl:Q,rootEl:Re,oldIndex:Cr,oldDraggableIndex:wi,newIndex:Ft,newDraggableIndex:Cn},u))}var Q,qe,ge,Re,$n,Mo,_e,Mn,Cr,Ft,wi,Cn,Lo,dt,kr=!1,Io=!1,Oo=[],Xn,Kt,Tl,kl,bf,xf,gi,Tr,Ei,Li=!1,So=!1,Do,gt,Cl=[],Nl=!1,Fo=[],Bo=typeof document!="undefined",To=Lf,wf=Si||dn?"cssFloat":"float",Uh=Bo&&!Sf&&!Lf&&"draggable"in document.createElement("div"),Hf=function(){if(Bo){if(dn)return!1;var u=document.createElement("x");return u.style.cssText="pointer-events:auto",u.style.pointerEvents==="auto"}}(),Nf=function(o,a){var s=ce(o),c=parseInt(s.width)-parseInt(s.paddingLeft)-parseInt(s.paddingRight)-parseInt(s.borderLeftWidth)-parseInt(s.borderRightWidth),h=Dr(o,0,a),m=Dr(o,1,a),v=h&&ce(h),x=m&&ce(m),w=v&&parseInt(v.marginLeft)+parseInt(v.marginRight)+Ze(h).width,S=x&&parseInt(x.marginLeft)+parseInt(x.marginRight)+Ze(m).width;if(s.display==="flex")return s.flexDirection==="column"||s.flexDirection==="column-reverse"?"vertical":"horizontal";if(s.display==="grid")return s.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(h&&v.float&&v.float!=="none"){var k=v.float==="left"?"left":"right";return m&&(x.clear==="both"||x.clear===k)?"vertical":"horizontal"}return h&&(v.display==="block"||v.display==="flex"||v.display==="table"||v.display==="grid"||w>=c&&s[wf]==="none"||m&&s[wf]==="none"&&w+S>c)?"vertical":"horizontal"},qh=function(o,a,s){var c=s?o.left:o.top,h=s?o.right:o.bottom,m=s?o.width:o.height,v=s?a.left:a.top,x=s?a.right:a.bottom,w=s?a.width:a.height;return c===v||h===x||c+m/2===v+w/2},jh=function(o,a){var s;return Oo.some(function(c){var h=c[Pt].options.emptyInsertThreshold;if(!(!h||Pl(c))){var m=Ze(c),v=o>=m.left-h&&o<=m.right+h,x=a>=m.top-h&&a<=m.bottom+h;if(v&&x)return s=c}}),s},If=function(o){function a(h,m){return function(v,x,w,S){var k=v.options.group.name&&x.options.group.name&&v.options.group.name===x.options.group.name;if(h==null&&(m||k))return!0;if(h==null||h===!1)return!1;if(m&&h==="clone")return h;if(typeof h=="function")return a(h(v,x,w,S),m)(v,x,w,S);var D=(m?v:x).options.group.name;return h===!0||typeof h=="string"&&h===D||h.join&&h.indexOf(D)>-1}}var s={},c=o.group;(!c||Co(c)!="object")&&(c={name:c}),s.name=c.name,s.checkPull=a(c.pull,!0),s.checkPut=a(c.put),s.revertClone=c.revertClone,o.group=s},Of=function(){!Hf&&ge&&ce(ge,"display","none")},Ff=function(){!Hf&&ge&&ce(ge,"display","")};Bo&&!Sf&&document.addEventListener("click",function(u){if(Io)return u.preventDefault(),u.stopPropagation&&u.stopPropagation(),u.stopImmediatePropagation&&u.stopImmediatePropagation(),Io=!1,!1},!0);var Kn=function(o){if(Q){o=o.touches?o.touches[0]:o;var a=jh(o.clientX,o.clientY);if(a){var s={};for(var c in o)o.hasOwnProperty(c)&&(s[c]=o[c]);s.target=s.rootEl=a,s.preventDefault=void 0,s.stopPropagation=void 0,a[Pt]._onDragOver(s)}}},Yh=function(o){Q&&Q.parentNode[Pt]._isOutsideThisEl(o.target)};function de(u,o){if(!(u&&u.nodeType&&u.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(u));this.el=u,this.options=o=cn({},o),u[Pt]=this;var a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(u.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nf(u,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(m,v){m.setData("Text",v.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:de.supportPointer!==!1&&"PointerEvent"in window&&!bi,emptyInsertThreshold:5};Ti.initializePlugins(this,u,a);for(var s in a)!(s in o)&&(o[s]=a[s]);If(o);for(var c in this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this));this.nativeDraggable=o.forceFallback?!1:Uh,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?ke(u,"pointerdown",this._onTapStart):(ke(u,"mousedown",this._onTapStart),ke(u,"touchstart",this._onTapStart)),this.nativeDraggable&&(ke(u,"dragover",this),ke(u,"dragenter",this)),Oo.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),cn(this,Rh())}de.prototype={constructor:de,_isOutsideThisEl:function(o){!this.el.contains(o)&&o!==this.el&&(Tr=null)},_getDirection:function(o,a){return typeof this.options.direction=="function"?this.options.direction.call(this,o,a,Q):this.options.direction},_onTapStart:function(o){if(o.cancelable){var a=this,s=this.el,c=this.options,h=c.preventOnFilter,m=o.type,v=o.touches&&o.touches[0]||o.pointerType&&o.pointerType==="touch"&&o,x=(v||o).target,w=o.target.shadowRoot&&(o.path&&o.path[0]||o.composedPath&&o.composedPath()[0])||x,S=c.filter;if(ep(s),!Q&&!(/mousedown|pointerdown/.test(m)&&o.button!==0||c.disabled)&&!w.isContentEditable&&!(!this.nativeDraggable&&bi&&x&&x.tagName.toUpperCase()==="SELECT")&&(x=$t(x,c.draggable,s,!1),!(x&&x.animated)&&Mo!==x)){if(Cr=Wt(x),wi=Wt(x,c.draggable),typeof S=="function"){if(S.call(this,o,x,this)){St({sortable:a,rootEl:w,name:"filter",targetEl:x,toEl:s,fromEl:s}),At("filter",a,{evt:o}),h&&o.cancelable&&o.preventDefault();return}}else if(S&&(S=S.split(",").some(function(k){if(k=$t(w,k.trim(),s,!1),k)return St({sortable:a,rootEl:k,name:"filter",targetEl:x,fromEl:s,toEl:s}),At("filter",a,{evt:o}),!0}),S)){h&&o.cancelable&&o.preventDefault();return}c.handle&&!$t(w,c.handle,s,!1)||this._prepareDragStart(o,v,x)}}},_prepareDragStart:function(o,a,s){var c=this,h=c.el,m=c.options,v=h.ownerDocument,x;if(s&&!Q&&s.parentNode===h){var w=Ze(s);if(Re=h,Q=s,qe=Q.parentNode,$n=Q.nextSibling,Mo=s,Lo=m.group,de.dragged=Q,Xn={target:Q,clientX:(a||o).clientX,clientY:(a||o).clientY},bf=Xn.clientX-w.left,xf=Xn.clientY-w.top,this._lastX=(a||o).clientX,this._lastY=(a||o).clientY,Q.style["will-change"]="all",x=function(){if(At("delayEnded",c,{evt:o}),de.eventCanceled){c._onDrop();return}c._disableDelayedDragEvents(),!mf&&c.nativeDraggable&&(Q.draggable=!0),c._triggerDragStart(o,a),St({sortable:c,name:"choose",originalEvent:o}),Ot(Q,m.chosenClass,!0)},m.ignore.split(",").forEach(function(S){kf(Q,S.trim(),Ml)}),ke(v,"dragover",Kn),ke(v,"mousemove",Kn),ke(v,"touchmove",Kn),ke(v,"mouseup",c._onDrop),ke(v,"touchend",c._onDrop),ke(v,"touchcancel",c._onDrop),mf&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Q.draggable=!0),At("delayStart",this,{evt:o}),m.delay&&(!m.delayOnTouchOnly||a)&&(!this.nativeDraggable||!(Si||dn))){if(de.eventCanceled){this._onDrop();return}ke(v,"mouseup",c._disableDelayedDrag),ke(v,"touchend",c._disableDelayedDrag),ke(v,"touchcancel",c._disableDelayedDrag),ke(v,"mousemove",c._delayedDragTouchMoveHandler),ke(v,"touchmove",c._delayedDragTouchMoveHandler),m.supportPointer&&ke(v,"pointermove",c._delayedDragTouchMoveHandler),c._dragStartTimer=setTimeout(x,m.delay)}else x()}},_delayedDragTouchMoveHandler:function(o){var a=o.touches?o.touches[0]:o;Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Q&&Ml(Q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var o=this.el.ownerDocument;Le(o,"mouseup",this._disableDelayedDrag),Le(o,"touchend",this._disableDelayedDrag),Le(o,"touchcancel",this._disableDelayedDrag),Le(o,"mousemove",this._delayedDragTouchMoveHandler),Le(o,"touchmove",this._delayedDragTouchMoveHandler),Le(o,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(o,a){a=a||o.pointerType=="touch"&&o,!this.nativeDraggable||a?this.options.supportPointer?ke(document,"pointermove",this._onTouchMove):a?ke(document,"touchmove",this._onTouchMove):ke(document,"mousemove",this._onTouchMove):(ke(Q,"dragend",this),ke(Re,"dragstart",this._onDragStart));try{document.selection?Ao(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(s){}},_dragStarted:function(o,a){if(kr=!1,Re&&Q){At("dragStarted",this,{evt:a}),this.nativeDraggable&&ke(document,"dragover",Yh);var s=this.options;!o&&Ot(Q,s.dragClass,!1),Ot(Q,s.ghostClass,!0),de.active=this,o&&this._appendGhost(),St({sortable:this,name:"start",originalEvent:a})}else this._nulling()},_emulateDragOver:function(){if(Kt){this._lastX=Kt.clientX,this._lastY=Kt.clientY,Of();for(var o=document.elementFromPoint(Kt.clientX,Kt.clientY),a=o;o&&o.shadowRoot&&(o=o.shadowRoot.elementFromPoint(Kt.clientX,Kt.clientY),o!==a);)a=o;if(Q.parentNode[Pt]._isOutsideThisEl(o),a)do{if(a[Pt]){var s=void 0;if(s=a[Pt]._onDragOver({clientX:Kt.clientX,clientY:Kt.clientY,target:o,rootEl:a}),s&&!this.options.dragoverBubble)break}o=a}while(a=a.parentNode);Ff()}},_onTouchMove:function(o){if(Xn){var a=this.options,s=a.fallbackTolerance,c=a.fallbackOffset,h=o.touches?o.touches[0]:o,m=ge&&Mr(ge,!0),v=ge&&m&&m.a,x=ge&&m&&m.d,w=To&>&&yf(gt),S=(h.clientX-Xn.clientX+c.x)/(v||1)+(w?w[0]-Cl[0]:0)/(v||1),k=(h.clientY-Xn.clientY+c.y)/(x||1)+(w?w[1]-Cl[1]:0)/(x||1);if(!de.active&&!kr){if(s&&Math.max(Math.abs(h.clientX-this._lastX),Math.abs(h.clientY-this._lastY))=0&&(St({rootEl:qe,name:"add",toEl:qe,fromEl:Re,originalEvent:o}),St({sortable:this,name:"remove",toEl:qe,originalEvent:o}),St({rootEl:qe,name:"sort",toEl:qe,fromEl:Re,originalEvent:o}),St({sortable:this,name:"sort",toEl:qe,originalEvent:o})),dt&&dt.save()):Ft!==Cr&&Ft>=0&&(St({sortable:this,name:"update",toEl:qe,originalEvent:o}),St({sortable:this,name:"sort",toEl:qe,originalEvent:o})),de.active&&((Ft==null||Ft===-1)&&(Ft=Cr,Cn=wi),St({sortable:this,name:"end",toEl:qe,originalEvent:o}),this.save()))),this._nulling()},_nulling:function(){At("nulling",this),Re=Q=qe=ge=$n=_e=Mo=Mn=Xn=Kt=gi=Ft=Cn=Cr=wi=Tr=Ei=dt=Lo=de.dragged=de.ghost=de.clone=de.active=null,Fo.forEach(function(o){o.checked=!0}),Fo.length=Tl=kl=0},handleEvent:function(o){switch(o.type){case"drop":case"dragend":this._onDrop(o);break;case"dragenter":case"dragover":Q&&(this._onDragOver(o),Xh(o));break;case"selectstart":o.preventDefault();break}},toArray:function(){for(var o=[],a,s=this.el.children,c=0,h=s.length,m=this.options;cc.right+h||u.clientY>s.bottom&&u.clientX>s.left:u.clientY>c.bottom+h||u.clientX>s.right&&u.clientY>s.top}function Zh(u,o,a,s,c,h,m,v){var x=s?u.clientY:u.clientX,w=s?a.height:a.width,S=s?a.top:a.left,k=s?a.bottom:a.right,D=!1;if(!m){if(v&&DoS+w*h/2:xk-Do)return-Ei}else if(x>S+w*(1-c)/2&&xk-w*h/2)?x>S+w/2?1:-1:0}function Jh(u){return Wt(Q)x(w)),Ro.create(o,{handle:".sortable-handle",forceFallback:!0});function c(w){let S=w.cloneNode(!0),k=w.parentNode;m(S),x(S),w.nextSibling?k.insertBefore(S,w.nextSibling):k.appendChild(S)}function h(w){let S=w.parentNode;ne(".form-input-array-row",S).length>1?S.removeChild(w):m(w)}function m(w){if(a){let k=H(".form-input-array-key",w);k.value="",k.removeAttribute("value")}let S=H(".form-input-array-value",w);S.value="",S.removeAttribute("value"),S.name=`${s}[]`}function v(w){let S=H(".form-input-array-key",w),k=H(".form-input-array-value",w);k.name=`${s}[${S.value.trim()}]`}function x(w){let S=H(".form-input-array-add",w),k=H(".form-input-array-remove",w);if(S.addEventListener("click",c.bind(S,w)),k.addEventListener("click",h.bind(k,w)),a){let D=H(".form-input-array-key",w),N=H(".form-input-array-value",w);D.addEventListener("keyup",v.bind(D,w)),N.addEventListener("keyup",v.bind(N,w))}}}};var Wl=new Map;function ki(u,o){if(Wl.has(u)){o(Wl.get(u));return}let a=new XMLHttpRequest;a.onload=function(){let s=this.status===200?this.response:"";s!==""&&Wl.set(u,s),o(s)},a.open("GET",`${He.config.baseUri}assets/icons/svg/${u}.svg`),a.send()}function ht(u,o,a="afterbegin"){ki(u,s=>o.insertAdjacentHTML(a,s))}var Ar={};function Hr(u,o,a,s){let c;function h(){clearTimeout(c)}u.addEventListener("mousedown",function(m){let v=this;m.button!==0?h():(o.call(v,m),c=setTimeout(()=>c=setInterval(o.bind(v,m),s),a))}),u.addEventListener("mouseout",h),window.addEventListener("mouseup",h)}var zo=class{constructor(o,a={}){let c=Object.assign({},{weekStarts:0,format:"YYYY-MM-DD",time:!1,labels:{today:"Today",weekdays:{long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},months:{long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}},onChange(F){let te=v();te!==null&&(Ar[te.id]=F,te.value=j(F))}},a);Ar[o.id]=new Date;let h=x(H(".calendar"),Ar[o.id]);m();function m(){let F=o.value;o.readOnly=!0,o.size=c.format.length,D(F)&&(Ar[o.id]=new Date(F),o.value=j(Ar[o.id])),o.addEventListener("focus",()=>{h.gotoDate(Ar[o.id]),h.show()}),o.addEventListener("blur",()=>{h.hide()}),o.addEventListener("keydown",te=>{switch(te.key){case"Backspace":o.value="",o.blur();break;case"Escape":o.blur();break;case"Tab":o.blur();return}te.preventDefault()})}function v(){let F=document.activeElement;return F.matches(".form-input-date")?F:null}function x(F,te){let Y,I,P,R,$,ee;F=F||Nn(),_(te);function _(we){Y=we.getFullYear(),I=we.getMonth(),P=we.getDate(),R=we.getHours(),$=we.getMinutes(),ee=we.getSeconds()}function L(we){_(we),Ke()}function B(){return new Date(Y,I,P,R,$,ee)}function W(){return F}function ie(){_(new Date)}function xe(){ie(),Ke()}function Ie(){Y--}function vt(){Ie(),Ke()}function T(){Y++}function y(){T(),Ke()}function ae(){P=M(I,Y)}function Ee(){ae(),Ke()}function me(){I=S(I-1,12),I===11&&Ie(),P>M(I,Y)&&ae()}function Je(){me(),Ke()}function ut(){I=S(I+1,12),I===0&&T(),P>M(I,Y)&&ae()}function Pe(){ut(),Ke()}function at(){P-=7,P<1&&(me(),P+=M(I,Y))}function De(){at(),Ke()}function Oe(){P+=7,P>M(I,Y)&&(P-=M(I,Y),ut())}function We(){Oe(),Ke()}function lt(){P--,P<1&&(me(),ae())}function pn(){lt(),Ke()}function Ht(){P++,P>M(I,Y)&&(ut(),P=1)}function Nt(){Ht(),Ke()}function kt(){R=S(R+1,24),R===0&&Ht()}function _t(){kt(),Ke()}function be(){R=S(R-1,24),R===23&<()}function Ct(){be(),Ke()}function Gt(){$=S($+1,60),$===0&&kt()}function Hn(){Gt(),Ke()}function Br(){$=S($-1,60),$===59&&be()}function Ii(){Br(),Ke()}function Rr(){ee=S(ee+1,60),ee===0&&Gt()}function Jn(){Rr(),Ke()}function Oi(){ee=S(ee-1,60),ee===59&&Br()}function ha(){Oi(),Ke()}function Wr(){F.style.display="block",w()}function Vn(){F.style.display="none"}function mn(){return getComputedStyle(F).display!=="none"}function Ke(){H(".calendar-table",F).innerHTML=we(),Te(),c.time&&Ut();function we(){let gn=new Date(Y,I,1).getDay(),ue=S(gn-c.weekStarts,7),er=M(I,Y),Ve=1,ye="";ye+='',ye+=`${c.labels.months.long[I]} ${Y}`,ye+="",ye+="";for(let Ne=0;Ne<7;Ne++)ye+='',ye+=c.labels.weekdays.short[S(Ne+c.weekStarts,7)],ye+="";ye+="";for(let Ne=0;Ne<6;Ne++){for(let In=0;In<7;In++)Ve<=er&&(Ne>0||In>=ue)?(Ve===P?ye+='':ye+='',ye+=Ve++):Ve===1?(ye+='',ye+=M(S(I-1,12),Y)-ue+In+1):(ye+='',ye+=Ve++-er),ye+="";ye+=""}return ye+="",ye}function Te(){ne(".calendar-day",F).forEach(gn=>{gn.addEventListener("mousedown",ue=>{ue.stopPropagation(),ue.preventDefault()}),gn.addEventListener("click",()=>{P=parseInt(`${gn.textContent}`),Ke(),c.onChange(B())})})}function Ut(){H(".calendar-hours",F).innerHTML=k(V(c.format)?S(R,12)||12:R,2),H(".calendar-minutes",F).innerHTML=k($,2),H(".calendar-meridiem",F).innerHTML=V(c.format)?R<12?"AM":"PM":""}}function Nn(){let we=document.createElement("div");return we.className="calendar",we.innerHTML=`
`,c.time&&(we.innerHTML+='
:
',ht("chevron-down",H(".prevHour",we)),ht("chevron-up",H(".nextHour",we)),ht("chevron-down",H(".prevMinute",we)),ht("chevron-up",H(".nextMinute",we))),ht("calendar-clock",H(".currentMonth",we)),ht("chevron-left",H(".prevMonth",we)),ht("chevron-right",H(".nextMonth",we)),H(".currentMonth",we).addEventListener("mousedown",Te=>{xe(),c.onChange(B()),Te.preventDefault()}),Hr(H(".prevMonth",we),Te=>{Je(),c.onChange(B()),Te.preventDefault()},750,500),Hr(H(".nextMonth",we),Te=>{Pe(),c.onChange(B()),Te.preventDefault()},750,500),c.time&&(Hr(H(".nextHour",we),Te=>{_t(),c.onChange(B()),Te.preventDefault()},750,250),Hr(H(".prevHour",we),Te=>{Ct(),c.onChange(B()),Te.preventDefault()},750,250),Hr(H(".nextMinute",we),Te=>{Hn(),c.onChange(B()),Te.preventDefault()},750,250),Hr(H(".prevMinute",we),Te=>{Ii(),c.onChange(B()),Te.preventDefault()},750,250)),window.addEventListener("resize",xo(w,100)),window.addEventListener("mousedown",Te=>{we.style.display!=="none"&&Te.target.closest(".calendar")&&Te.preventDefault()}),window.addEventListener("keydown",Te=>{if(mn()){switch(Te.key){case"Enter":H(".calendar-day.selected",we).click(),Vn();break;case"Backspace":case"Escape":case"Tab":Vn();break;case"ArrowLeft":Te.ctrlKey||Te.metaKey?Te.shiftKey?vt():Je():pn(),c.onChange(B());break;case"ArrowUp":De(),c.onChange(B());break;case"ArrowRight":Te.ctrlKey||Te.metaKey?Te.shiftKey?y():Pe():Nt(),c.onChange(B());break;case"ArrowDown":We(),c.onChange(B());break;case"0":(Te.ctrlKey||Te.metaKey)&&xe(),c.onChange(B());break;default:return}Te.preventDefault()}}),document.body.appendChild(we),we}return{setDate:_,gotoDate:L,getDate:B,getElement:W,now:xe,prevYear:vt,nextYear:y,lastDayOfMonth:Ee,prevMonth:Je,nextMonth:Pe,prevWeek:De,nextWeek:We,prevDay:pn,nextDay:Nt,nextHour:_t,prevHour:Ct,nextMinute:Hn,prevMinute:Ii,nextSecond:Jn,prevSecond:ha,show:Wr,hide:Vn,isVisible:mn}}function w(){let F=v();if(!F||!h.isVisible())return;let te=F.getBoundingClientRect(),Y=te.top+window.scrollY,I=te.left+window.scrollX,P=h.getElement();P.style.top=`${Y+F.offsetHeight}px`,P.style.left=`${I+F.offsetLeft}px`;let R=P.getBoundingClientRect(),$=R.top+window.scrollY,ee=R.left+window.scrollX,_=yo(P),L=bo(P),B=document.documentElement.clientWidth,W=document.documentElement.clientHeight;ee+_>B&&(P.style.left=`${B-_}px`),($=I.getTime()?te+1:F.getTime()>=Y.getTime()?te:te-1}function oe(F){let te=Z(F),Y=G(new Date(te,0,4),1),I=G(F,1);return Math.round((I.getTime()-Y.getTime())/6048e5)+1}function V(F){let te=F.match(/\[([^\]]*)\]|H{1,2}/);return te!==null&&te[0][0]==="H"}function j(F,te=c.format){let Y=/\[([^\]]*)\]|[YR]{4}|uuu|[YR]{2}|[MD]{1,4}|[WHhms]{1,2}|[AaZz]/g;function I(P){let R=P>0?"-":"+",$=Math.floor(Math.abs(P)/60),ee=Math.abs(P)%60;return[R+k($,2),k(ee,2)]}return te.replace(Y,(P,R)=>{switch(P){case"YY":return F.getFullYear().toString().substr(-2);case"YYYY":return F.getFullYear();case"M":return F.getMonth()+1;case"MM":return k(F.getMonth()+1,2);case"MMM":return c.labels.months.short[F.getMonth()];case"MMMM":return c.labels.months.long[F.getMonth()];case"D":return F.getDate();case"DD":return k(F.getDate(),2);case"DDD":return c.labels.weekdays.short[S(F.getDay()+c.weekStarts,7)];case"DDDD":return c.labels.weekdays.long[S(F.getDay()+c.weekStarts,7)];case"W":return oe(F);case"WW":return k(oe(F),2);case"RR":return Z(F).toString().substr(-2);case"RRRR":return Z(F);case"H":return S(F.getHours(),12)||12;case"HH":return k(S(F.getHours(),12)||12,2);case"h":return F.getHours();case"hh":return k(F.getHours(),2);case"m":return F.getMinutes();case"mm":return k(F.getMinutes(),2);case"s":return F.getSeconds();case"ss":return k(F.getSeconds(),2);case"uuu":return k(F.getMilliseconds(),3);case"A":return F.getHours()<12?"AM":"PM";case"a":return F.getHours()<12?"am":"pm";case"Z":return I(F.getTimezoneOffset()).join(":");case"z":return I(F.getTimezoneOffset()).join("");default:return R||P}})}}};function Bf(u){let o=Number.MAX_SAFE_INTEGER,a=-o;return u>o?o:u{V.includes(F)&&(j[F]=Math.floor(oe/hn[F]),oe-=j[F]*hn[F])}),j}function S(oe){let V=0;return Object.entries(oe).forEach(([j,F])=>{V+=F*hn[j]}),Bf(V)}function k(){let oe={},V=0,j=0;Object.entries(m).forEach(([F,te])=>{oe[F]=parseInt(te.value)}),V=S(oe),h.step&&(j=parseInt(h.step)*hn[x.unit],V=Math.floor(V/j)*j),h.min&&(V=Math.max(V,parseInt(h.min))),h.max&&(V=Math.min(V,parseInt(h.max))),h.value=`${Math.round(V/hn[x.unit])}`}function D(){let oe=w(parseInt(h.value)*hn[x.unit]);Object.entries(m).forEach(([V,j])=>{j.value=`${oe[V]||0}`})}function N(){Object.values(m).forEach(oe=>{oe.style.width=`${Math.max(3,oe.value.length+2)}ch`})}function M(){Object.entries(m).forEach(([oe,V])=>{v[oe].innerHTML=x.labels[oe][parseInt(V.value)===1?0:1]})}function G(oe,V){c=document.createElement("div"),c.className="form-input-duration";let j;for(let F of x.intervals){j=document.createElement("input"),j.className="form-input";let te=document.createElement("span");te.className=`duration-${F}`,j.type="number",j.value=`${oe[F]||0}`,j.style.width=`${Math.max(3,j.value.length+2)}ch`,V[F]>1&&(j.step=`${V[F]}`),o.disabled&&(j.disabled=!0),m[F]=j,j.addEventListener("input",function(){for(;this.value.charAt(0)==="0"&&this.value.length>1&&!this.value.charAt(1).match(/[.,]/);)this.value=this.value.slice(1);for(;parseInt(this.value)>Number.MAX_SAFE_INTEGER;)this.value=this.value.slice(0,-1);N(),k(),M()}),j.addEventListener("blur",()=>{k(),D(),N(),M()}),j.addEventListener("focus",()=>c.classList.add("focused")),j.addEventListener("blur",()=>c.classList.remove("focused")),te.addEventListener("mousedown",function(I){let P=H("input",this);P&&I.target!==P&&(P.focus(),I.preventDefault())});let Y=document.createElement("label");Y.className="form-label",Y.innerHTML=x.labels[F][parseInt(j.value)===1?0:1],v[F]=Y,te.appendChild(j),te.appendChild(Y),c.appendChild(te)}return c.addEventListener("mousedown",function(F){F.target===this&&(j.focus(),F.preventDefault())}),c}function Z(){h=document.createElement("input"),h.className="form-input-duration-hidden",h.name=o.name,h.id=o.id,h.type="text",h.value=o.value,h.readOnly=!0,h.hidden=!0,o.min&&(h.min=o.min),o.max&&(h.max=o.max),o.step&&(h.step=o.step),o.required&&(h.required=!0),o.disabled&&(h.disabled=!0),"intervals"in o.dataset&&(x.intervals=o.dataset.intervals.split(", ")),"unit"in o.dataset&&(x.unit=o.dataset.unit);let oe=parseInt(o.value)*hn[x.unit],V=parseInt(o.step)*hn[x.unit],j=G(w(oe||0),w(V||1));o.parentNode.replaceChild(j,o),j.appendChild(h)}}};function Rf(u,o){if(u.length!==o.length)return!1;for(let a=0;a({extend:!1,addNew:!1})}),c=H(`.editor-toolbar[data-for=${o.id}]`),h=o.parentNode.classList.contains("editor-wrap")?o.parentNode:null,m=[];s.getWrapperElement().style.height=`${a}px`,(M=H("[data-command=bold]",c))==null||M.addEventListener("click",()=>{S("**")}),(G=H("[data-command=italic]",c))==null||G.addEventListener("click",()=>{S("_")}),(Z=H("[data-command=ul]",c))==null||Z.addEventListener("click",()=>{S(`${w()}- `,"")}),(oe=H("[data-command=ol]",c))==null||oe.addEventListener("click",()=>{let I=/^(\d+)\./.exec(v(s.getValue()));S(I?` +${parseInt(I[1])+1}. `:`${w()}1. `,"")}),(V=H("[data-command=quote]",c))==null||V.addEventListener("click",()=>{S(`${w()}> `,"")}),(j=H("[data-command=link]",c))==null||j.addEventListener("click",()=>{let I=s.getSelection();/^(https?:\/\/|mailto:)/i.test(I)?S("[",`](${I})`,!0):I!==""?S(`[${I}](http://`,")",!0):S("[","](http://)")}),(F=H("[data-command=image]",c))==null||F.addEventListener("click",()=>{He.modals.imagesModal.show(void 0,I=>{let P=H(".image-picker-thumbnail.selected",I.element);P&&P.classList.remove("selected");function R(){if(P){let $=P.dataset.filename;S(`${w()}![`,`](${$})`)}I.hide(),this.removeEventListener("click",R)}H(".image-picker-confirm",I.element).addEventListener("click",R)})}),(te=H("[data-command=undo]",c))==null||te.addEventListener("click",()=>{s.undo(),s.focus()}),(Y=H("[data-command=redo]",c))==null||Y.addEventListener("click",()=>{s.redo(),s.focus()}),s.on("changes",kn(()=>{o.value=s.getValue(),s.historySize().undo<1?H("[data-command=undo]").disabled=!0:H("[data-command=undo]").disabled=!1,s.historySize().redo<1?H("[data-command=redo]").disabled=!0:H("[data-command=redo]").disabled=!1},500)),s.on("beforeSelectionChange",(I,P)=>{let R=k(P.ranges);I.operation(()=>{Rf(R,m)||(D(I,m),N(I,R),m=R)}),I.refresh()}),s.on("focus",()=>{h!==null&&h.classList.add("focused")}),s.on("blur",I=>{h!==null&&h.classList.remove("focused"),D(I,m),m=[]}),document.addEventListener("keydown",I=>{var P,R,$;if(!I.altKey&&(I.ctrlKey||I.metaKey))switch(I.key){case"b":(P=H("[data-command=bold]",c))==null||P.click(),I.preventDefault();break;case"i":(R=H("[data-command=italic]",c))==null||R.click(),I.preventDefault();break;case"k":($=H("[data-command=link]",c))==null||$.click(),I.preventDefault();break}});function v(I){let P=I.lastIndexOf(` +`);return P===-1?I:I.substring(P+1)}function x(){let I=s.getLine(s.getCursor().line);return I.length===0?void 0:I.slice(-1)}function w(){switch(x()){case void 0:return"";case` `:return` `;default:return` -`}}function S(N,P,R=!1){P===void 0&&(P=N);let $=R===!0?"":s.getSelection(),ee=s.getCursor(),_=N.split(` -`).length-1;s.replaceSelection(N+$+P),s.setCursor(ee.line+_,ee.ch+N.length-_),s.focus()}function k(N){let P=[];for(let R of N)P.push(R.head.line);return P}function H(N,P){for(let R of P)N.removeLineClass(R,"wrap","CodeMirror-activeline")}function I(N,P){for(let R of P)N.addLineClass(R,"wrap","CodeMirror-activeline")}}};var Uo=class{constructor(o){var w,S;let a=A(`label[for="${o.id}"]`),s=A("span",a),c=!1;o.dataset.label=(w=A(`label[for="${o.id}"] span`))==null?void 0:w.innerHTML,o.addEventListener("change",h),o.addEventListener("input",h),(S=o.form)==null||S.addEventListener("submit",()=>{o.files&&o.files.length>0&&(s.innerHTML+=' '),c=!0}),a.addEventListener("drag",m),a.addEventListener("dragstart",m),a.addEventListener("dragend",m),a.addEventListener("dragover",v),a.addEventListener("dragenter",v),a.addEventListener("dragleave",x),a.addEventListener("drop",k=>{k.preventDefault(),!c&&k.dataTransfer&&(o.files=k.dataTransfer.files,o.dispatchEvent(new Event("change")))}),a.addEventListener("click",k=>{c&&k.preventDefault()});function h(){if(this.files&&this.files.length>0){let k=[];for(let H of Array.from(this.files))k.push(H.name);s.innerHTML=k.join(", ")}else s.innerHTML=this.dataset.label}function m(k){k.preventDefault()}function v(k){this.classList.add("drag"),k.preventDefault()}function x(k){this.classList.remove("drag"),k.preventDefault()}}};var qo=class{constructor(o){o.addEventListener("click",()=>{He.modals.imagesModal.show(void 0,a=>{let s=A(".image-picker-thumbnail.selected",a.element);if(s&&s.classList.remove("selected"),o.value){let h=A(`.image-picker-thumbnail[data-filename="${o.value}"]`,a.element);h&&h.classList.add("selected")}let c=A(".image-picker-confirm",a.element);c.dataset.target=o.id,c.addEventListener("click",()=>a.hide())})})}};var jo=class{constructor(o){var v,x;let a=re("option",o),s=A(".image-picker-confirm",(v=o.parentNode.parentNode)!=null?v:document),c=A("[data-command=upload]",(x=o.parentNode.parentNode)!=null?x:document);if(o.hidden=!0,a.length>0){let w=document.createElement("div");w.className="image-picker-thumbnails";for(let S of Array.from(a)){let k=document.createElement("div");k.className="image-picker-thumbnail",k.style.backgroundImage=`url(${S.value})`,k.dataset.uri=S.value,k.dataset.filename=S.text,k.addEventListener("click",h),k.addEventListener("dblclick",m),w.appendChild(k)}o.parentNode.insertBefore(w,o),A(".image-picker-empty-state").style.display="none"}s==null||s.addEventListener("click",function(){let w=A(".image-picker-thumbnail.selected"),S=this.dataset.target;if(w&&S){let k=document.getElementById(S),H=w.dataset.filename;k&&H&&(k.value=H)}}),c==null||c.addEventListener("click",function(){let w=this.dataset.uploadTarget;if(w){let S=document.getElementById(w);S&&S.click()}});function h(){let w=A(".image-picker-confirm").dataset.target;if(w){let S=document.getElementById(w);S&&(S.value=this.dataset.filename),re(".image-picker-thumbnail").forEach(k=>{k.classList.remove("selected")}),this.classList.add("selected")}}function m(){var w;this.click(),(w=A(".image-picker-confirm"))==null||w.click()}}};var Yo=class{constructor(o){if(o.addEventListener("change",a),o.addEventListener("input",a),a.call(o),"ticks"in o.dataset){let c=o.dataset.ticks;switch(c){case"0":break;case"true":case"":s((parseInt(o.max)-parseInt(o.min))/(parseInt(o.step)||1)+1);break;default:s(parseInt(c)+1);break}}function a(){this.style.setProperty("--progress",`${Math.round(parseInt(this.value)/(parseInt(this.max)-parseInt(this.min))*100)}%`);let c=A(`output[for="${this.id}"]`);c&&(c.innerHTML=this.value)}function s(c){let h=document.createElement("div");h.className="form-input-range-ticks",h.dataset.for=o.id,o.parentElement.insertBefore(h,o.nextSibling);for(let m=0;m":"","?":"","@":"","[":"","]":"","^":"","`":"","{":"","|":"","}":"","\xA1":"","\xA3":"","\xA4":"","\xA5":"","\xA6":"","\xA7":"","\xAB":"","\xB0":"","\xBB":"","\u2018":"","\u2019":"","\u201C":"","\u201D":"","\n":"-"," ":"-","-":"-","\u2013":"-","\u2014":"-","/":"-","\\":"-",_:"-","~":"-",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00C6:"Ae",\u00C7:"C",\u00D0:"D",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u0152:"Oe",\u0160:"S",\u00DE:"Th",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"ae",\u00E5:"a",\u00E6:"ae","\xA2":"c",\u00E7:"c",\u00F0:"d",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"oe",\u00F8:"o",\u0153:"oe",\u0161:"s",\u00DF:"ss",\u00FE:"th",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"ue",\u00FD:"y",\u00FF:"y",\u0178:"y"};u=u.toLowerCase();for(let a in o)u=u.split(a).join(o[a]);return u.replace(/[^a-z0-9-]/g,"").replace(/^-+|-+$/g,"").replace(/-+/g,"-")}function Ul(u){return u.toLowerCase().replace(" ","-").replace(/[^a-z0-9-]/g,"")}var Xo=class{constructor(o,a){let c=Object.assign({},{labels:{empty:"No matching options"}},a),h,m=document.createElement("input"),v=document.createElement("div");x();function x(){let N=document.createElement("div");N.className="form-input-wrap",o.hidden=!0,m.type="text",m.classList.add("form-select"),m.dataset.for=o.id;let P=A(`label[for="${o.id}"]`);P&&m.setAttribute("aria-label",P.innerText),o.hasAttribute("disabled")&&(m.disabled=!0);for(let $ in o.dataset)m.dataset[$]=o.dataset[$];let R=[];re("option",o).forEach($=>{let ee={};for(let _ in $.dataset)ee[_]=$.dataset[_];R.push({label:$.innerText,value:$.value,selected:$.selected,disabled:$.disabled,dataset:ee}),$.selected&&(m.value=$.innerText)}),o.parentNode.insertBefore(N,o.nextSibling),N.appendChild(o),N.appendChild(m),w(R,N)}function w(N,P){h=document.createElement("div"),h.className="dropdown-list",h.dataset.for=o.id,v.className="dropdown-empty",v.style.display="none",v.innerText=c.labels.empty,h.appendChild(v);for(let $ of N){let ee=document.createElement("div");ee.className="dropdown-item",ee.innerText=$.label,ee.dataset.value=$.value,$.selected&&ee.classList.add("selected"),$.disabled&&ee.classList.add("disabled");for(let _ in $.dataset)ee.dataset[_]=$.dataset[_];ee.addEventListener("mousedown",_=>{ee.classList.contains("disabled")?_.preventDefault():(I(ee),V(ee)),_.stopPropagation()}),h.appendChild(ee)}P.appendChild(h);let R=!1;m.addEventListener("focus",()=>{te(),m.setSelectionRange(0,0),R=!1}),m.addEventListener("mousedown",$=>{m.focus(),$.preventDefault()}),m.addEventListener("blur",()=>{Y(m.value)||(m.value=F()),h.style.display="none"}),m.addEventListener("keydown",$=>{let ee=A(".dropdown-item.selected",h);switch($.key){case"Backspace":S();break;case"ArrowUp":getComputedStyle(h).display!=="none"?Z():te(),$.preventDefault();break;case"ArrowDown":getComputedStyle(h).display!=="none"?oe():te(),$.preventDefault();break;case"Enter":ee&&getComputedStyle(ee).display!=="none"&&V(ee),m.blur(),$.preventDefault();break;case"Escape":case"ArrowLeft":case"ArrowRight":break;default:R||(m.value="",R=!0);break}}),m.addEventListener("keyup",$=>{let ee=m.value.trim();switch($.key){case"Escape":m.blur(),$.stopPropagation();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Enter":return!0;default:h.style.display="block",k(ee),ee.length>0&&D()}})}function S(){let N=0;re(".dropdown-item",h).forEach(P=>{getComputedStyle(P).display!=="none"&&N++,P.classList.remove("selected")}),N>0?v.style.display="none":v.style.display="block"}function k(N){let P=$=>{let ee=`${$.textContent}`;return new RegExp(Ir(Nr(N)),"i").test(ee)},R=0;re(".dropdown-item",h).forEach($=>{N===null||P($)?($.style.display="block",R++):$.style.display="none"}),R>0?v.style.display="none":v.style.display="block"}function H(N){let P=h.scrollTop,R=h.clientHeight,$=P+R,ee=getComputedStyle(h),_=parseInt(ee.paddingTop),L=parseInt(ee.paddingBottom),B=N.offsetTop,W=N.clientHeight,ie=B+W;B$&&(h.scrollTop=ie-R+L)}function I(N){let P=A(".dropdown-item.selected",h);P&&P.classList.remove("selected"),N&&(N.classList.contains("disabled")||(N.classList.add("selected"),H(N)))}function D(){let N=re(".dropdown-item",h);for(let P=0;P=0;P--)if(getComputedStyle(N[P]).display!=="none"){I(N[P]);return}}function Z(){let N=A(".dropdown-item.selected",h);if(N){let P=N.previousSibling;for(;P&&(P.style.display==="none"||P.classList.contains("disabled"));)P=P.previousSibling;if(P)return I(P);I(N.previousSibling)}U()}function oe(){let N=A(".dropdown-item.selected",h);if(N){let P=N.nextSibling;for(;P&&(P.style.display==="none"||P.classList.contains("disabled"));)P=P.nextSibling;if(P)return I(P)}D()}function V(N){o.value=N.dataset.value,m.value=N.innerText,o.dispatchEvent(new Event("change"))}function j(){return A(`[data-value="${o.value}"]`,h)}function F(){return j().innerText}function te(){getComputedStyle(h).display==="none"&&(k(""),S(),I(j()),h.style.display="block",H(j()))}function Y(N){let P=re(".dropdown-item",h);for(let R=0;R{B=B.trim(),s[W]=B,U(B)})),v.placeholder?(c=v.placeholder,I()):c="",m.addEventListener("mousedown",B=>{v.focus(),B.preventDefault()})}function S(){var _;if("options"in o.dataset){let L=JSON.parse((_=o.dataset.options)!=null?_:"{}");h=document.createElement("div"),h.className="dropdown-list";for(let B in L){let W=document.createElement("div");W.className="dropdown-item",W.innerHTML=L[B],W.dataset.value=B,W.addEventListener("click",function(){this.dataset.value&&Z(this.dataset.value)}),h.appendChild(W)}m.appendChild(h),v.addEventListener("focus",()=>{getComputedStyle(h).display==="none"&&(j(),h.scrollTop=0,h.style.display="block")}),v.addEventListener("blur",()=>{getComputedStyle(h).display!=="none"&&(j(),h.style.display="none")}),v.addEventListener("keydown",B=>{switch(B.key){case"Backspace":j();break;case"Enter":getComputedStyle(h).display!=="none"&&(Y(),B.preventDefault());break;case"ArrowUp":getComputedStyle(h).display!=="none"&&($(),B.preventDefault());break;case"ArrowDown":getComputedStyle(h).display!=="none"&&(ee(),B.preventDefault());break;default:a.addKeyCodes.includes(B.key)&&(Y(),B.preventDefault())}}),v.addEventListener("keyup",kn(B=>{let W=v.value.trim();switch(B.key){case"Escape":h.style.display="none";break;case"ArrowUp":case"ArrowDown":return!0;default:h.style.display="block",F(W),W.length>0&&P()}},100))}}function k(){v.addEventListener("focus",()=>m.classList.add("focused")),v.addEventListener("blur",()=>{let _=v.value.trim();_!==""&&Z(_),m.classList.remove("focused")}),v.addEventListener("keydown",_=>{let L=v.value.trim();switch(_.key){case"Backspace":L===""?(oe(s[s.length-1]),v.previousSibling&&v.parentNode.removeChild(v.previousSibling),_.preventDefault()):v.size=Math.max(v.value.length,v.placeholder.length,1);break;case"Enter":case"Comma":L!==""&&Z(L),_.preventDefault();break;case"Escape":V(),v.blur(),_.preventDefault();break;default:if(L!==""&&a.addKeyCodes.includes(_.key)){Z(L),_.preventDefault();break}L.length>0&&(v.size=v.value.length+2);break}})}function H(){x.value=s.join(", "),I()}function I(){c.length>0&&(s.length===0?(v.placeholder=c,v.size=c.length):(v.placeholder="",v.size=1))}function D(_){return s.includes(_)?!1:h?A(`[data-value="${_}"]`,h)!==null:!0}function U(_){let L=document.createElement("span"),B=document.createElement("i");L.className="tag",L.innerHTML=_,L.style.marginRight=".25rem",v.parentNode.insertBefore(L,v),B.className="tag-remove",B.setAttribute("role","button"),B.addEventListener("mousedown",W=>{oe(_),L.parentNode.removeChild(L),W.preventDefault()}),L.appendChild(B)}function Z(_){D(_)?(s.push(_),U(_),H()):I(),v.value="",h&&j()}function oe(_){let L=s.indexOf(_);L>-1&&(s.splice(L,1),H()),h&&j()}function V(){v.value="",I()}function j(){let _=0;re(".dropdown-item",h).forEach(L=>{getComputedStyle(L).display!=="none"&&_++,s.includes(L.dataset.value)?L.style.display="none":L.style.display="block",L.classList.remove("selected")}),_>0?h.style.display="block":h.style.display="none"}function F(_){let L=0;h.style.display="block",re(".dropdown-item",h).forEach(B=>{let W=`${B.textContent}`,ie=new RegExp(Ir(Nr(_)),"i");W.match(ie)!==null&&B.style.display!=="none"?(B.style.display="block",L++):B.style.display="none"}),L>0?h.style.display="block":h.style.display="none"}function te(_){let L=h.scrollTop,B=h.clientHeight,W=L+B,ie=getComputedStyle(h),xe=parseInt(ie.paddingTop),Ie=parseInt(ie.paddingBottom),vt=_.offsetTop,T=_.clientHeight,y=vt+T;vtW&&(h.scrollTop=y-B+Ie)}function Y(){let _=A(".dropdown-item.selected",h);_&&getComputedStyle(_).display!=="none"&&(v.value=_.dataset.value)}function N(_){let L=A(".dropdown-item.selected",h);L&&L.classList.remove("selected"),_&&(_.classList.add("selected"),te(_))}function P(){let _=re(".dropdown-item",h);for(let L=0;L<_.length;L++)if(getComputedStyle(_[L]).display!=="none"){N(_[L]);return}}function R(){let _=re(".dropdown-item",h);for(let L=_.length-1;L>=0;L--)if(getComputedStyle(_[L]).display!=="none"){N(_[L]);return}}function $(){let _=A(".dropdown-item.selected",h);if(_){let L=_.previousSibling;for(;L&&L.style.display==="none";)L=L.previousSibling;if(L)return N(L);N(_.previousSibling)}R()}function ee(){let _=A(".dropdown-item.selected",h);if(_){let L=_.nextSibling;for(;L&&L.style.display==="none";)L=L.nextSibling;if(L)return N(L)}P()}}};var Or=class{constructor(o){re(".form-input-date",o).forEach(a=>this[a.name]=new zo(a,He.config.DateInput)),re(".form-input-image",o).forEach(a=>this[a.name]=new qo(a)),re(".image-picker",o).forEach(a=>this[a.name]=new jo(a)),re(".editor-textarea",o).forEach(a=>this[a.name]=new Go(a)),re("input[type=file]",o).forEach(a=>this[a.name]=new Uo(a)),re("input[data-field=tags]",o).forEach(a=>this[a.name]=new Ko(a)),re("input[data-field=duration]",o).forEach(a=>this[a.name]=new _o(a,He.config.DurationInput)),re("input[type=range]",o).forEach(a=>this[a.name]=new Yo(a)),re(".form-input-array",o).forEach(a=>this[a.name]=new Wo(a)),re("select:not([hidden])",o).forEach(a=>this[a.name]=new Xo(a,He.config.SelectInput)),re(".form-input-reset",o).forEach(a=>{let s=a.dataset.reset;s&&a.addEventListener("click",()=>{let c=document.getElementById(s);c.value="",c.dispatchEvent(new Event("change"))})}),re("input[data-enable]",o).forEach(a=>{a.addEventListener("change",()=>{let s=a.dataset.enable;if(s){let c=s.split(",");for(let h of c){let m=A(`input[name="${h}"]`);a.checked?m.disabled=!1:m.disabled=!0}}})})}};function tc(u){let o=[];for(let a in u)o.push(`${encodeURIComponent(a)}=${encodeURIComponent(u[a])}`);return o.join("&")}function ql(u){let o=[];for(let a of Array.from(u.elements))if(a.name&&!a.disabled&&a.dataset.formIgnore!=="true"&&a.type!=="file"&&a.type!=="reset"&&a.type!=="submit"&&a.type!=="button")if(a.type==="select-multiple")for(let s of a.options)s.selected&&o.push(`${encodeURIComponent(a.name)}=${encodeURIComponent(s.value)}`);else(a.type!=="checkbox"&&a.type!=="radio"||a.checked)&&o.push(`${encodeURIComponent(a.name)}=${encodeURIComponent(a.value)}`);return o.join("&")}function $o(u,o){let a=document.createElement("form");a.action=u,a.method="post";let s=document.createElement("input");s.type="hidden",s.name="csrf-token",s.value=o,a.appendChild(s),document.body.appendChild(a),a.submit(),document.body.removeChild(a)}var Qo=class{constructor(o){Ue(this,"inputs");Ue(this,"originalData");this.inputs=new Or(o),this.originalData=ql(o),window.addEventListener("beforeunload",s),o.addEventListener("submit",c);let a=(m=!0)=>{let v=re("input[type=file]",o);if(m===!0&&v.length>0){for(let x of Array.from(v))if(x.files&&x.files.length>0)return!0}return ql(o)!==this.originalData};re('a[href]:not([href^="#"]):not([target="_blank"]):not([target^="formwork-"])').forEach(m=>{m.addEventListener("click",v=>{a()&&(v.preventDefault(),He.modals.changesModal.show(void 0,x=>{let w=A("[data-command=continue]",x.element);w&&(w.dataset.href=m.href)}))})}),re("input[type=file][data-auto-upload]",o).forEach(m=>{m.addEventListener("change",()=>{a(!1)||o.requestSubmit(A("[type=submit]",o))})}),h();function s(m){a()&&(m.preventDefault(),m.returnValue=!1)}function c(){window.removeEventListener("beforeunload",s)}function h(){let m=document.getElementById("changesModal"),v=document.getElementById("deletePageModal"),x=document.getElementById("deleteUserModal");if(m){let w=A("[data-command=continue]",m);w&&w.addEventListener("click",function(){c(),this.dataset.href&&(window.location.href=this.dataset.href)})}if(v){let w=A("[data-command=delete]",v);w&&w.addEventListener("click",c)}if(x){let w=A("[data-command=delete]",x);w&&w.addEventListener("click",c)}}}};var Zo=class{constructor(){re("[data-form]").forEach(o=>{o.dataset.form&&(this[o.dataset.form]=new Qo(o))})}};function nc(u=document.body){return u.querySelector("button, .button, input:not([type=hidden]), select, textarea")||u}var Jo=class{constructor(o){Ue(this,"element");Ue(this,"inputs");var s;this.element=o,document.addEventListener("keyup",c=>{c.key==="Escape"&&this.hide()}),window.addEventListener("focus",()=>nc(this.element).focus()),this.inputs=new Or(this.element),(s=A("[data-dismiss]",o))==null||s.addEventListener("click",()=>this.hide());let a=!1;o.addEventListener("mousedown",()=>a=!0),o.addEventListener("click",c=>{a&&c.target===o&&this.hide(),a=!1}),document.addEventListener("click",c=>{let h=c.target.closest("[data-modal]");if(h&&h.dataset.modal===o.id){let m=h.dataset.modalAction;m?this.show(m):this.show()}})}show(o,a){let s=this.element;s.setAttribute("role","dialog"),s.setAttribute("aria-modal","true"),s.classList.add("show"),o&&(A("form",s).action=o),document.activeElement.blur(),A("[autofocus]",s)?A("[autofocus]",s).focus():nc(s).focus(),typeof a=="function"&&a(this),re(".tooltip").forEach(c=>c.parentNode&&c.parentNode.removeChild(c)),this.createBackdrop()}hide(){let o=this.element;o.classList.remove("show"),o.removeAttribute("role"),o.removeAttribute("aria-modal"),this.removeBackdrop()}createBackdrop(){if(!A(".modal-backdrop")){let o=document.createElement("div");o.className="modal-backdrop",document.body.appendChild(o)}}removeBackdrop(){let o=A(".modal-backdrop");o&&o.parentNode&&o.parentNode.removeChild(o)}};var Vo=class{constructor(){re(".modal").forEach(o=>this[o.id]=new Jo(o))}};var ea=class{constructor(){var o;A(".sidebar-toggle")&&((o=A(".sidebar-toggle"))==null||o.addEventListener("click",()=>{if(A(".sidebar").classList.toggle("show")){if(!A(".sidebar-backdrop")){let a=document.createElement("div");a.className="sidebar-backdrop hide-from-md",document.body.appendChild(a)}}else{let a=A(".sidebar-backdrop");a&&a.parentNode.removeChild(a)}})),A("[data-command=save]")&&document.addEventListener("keydown",a=>{var s;!a.altKey&&(a.ctrlKey||a.metaKey)&&a.key==="s"&&((s=A("[data-command=save]"))==null||s.click(),a.preventDefault())})}};var Bt=class{constructor(o,a,s){Ue(this,"text");Ue(this,"type");Ue(this,"options");Ue(this,"containerElement");Ue(this,"notificationElement");let c={interval:5e3,icon:void 0,newestOnTop:!0,fadeOutDelay:300,mouseleaveDelay:1e3,typeClass:{info:"info",success:"success",warning:"warning",error:"danger"}};this.text=o,this.type=a,this.options=Object.assign({},c,s),this.containerElement=A(".notification-container")}show(){let o=(a,s,c)=>{this.containerElement||(this.containerElement=document.createElement("div"),this.containerElement.className="notification-container",document.body.appendChild(this.containerElement));let h=document.createElement("div");h.className=`notification notification-${this.options.typeClass[s]}`,h.innerHTML=a,this.options.newestOnTop&&this.containerElement.childNodes.length>0?this.containerElement.insertBefore(h,this.containerElement.childNodes[0]):this.containerElement.appendChild(h);let m=setTimeout(()=>this.remove(),c);return h.addEventListener("click",()=>this.remove()),h.addEventListener("mouseenter",()=>clearTimeout(m)),h.addEventListener("mouseleave",()=>(m=setTimeout(()=>this.remove()),this.options.mouseleaveDelay)),h};this.options.icon?ki(this.options.icon,a=>{this.notificationElement=o(this.text,this.type,this.options.interval),this.notificationElement.insertAdjacentHTML("afterbegin",a)}):this.notificationElement=o(this.text,this.type,this.options.interval)}remove(){this.notificationElement.classList.add("fadeout"),setTimeout(()=>{this.containerElement&&this.notificationElement&&this.notificationElement.parentNode&&this.containerElement.removeChild(this.notificationElement),this.containerElement&&this.containerElement.childNodes.length<1&&(this.containerElement.parentNode&&document.body.removeChild(this.containerElement),this.containerElement=null)},this.options.fadeOutDelay)}};var ta=class{constructor(){let o=0;re("meta[name=notification]").forEach(a=>{setTimeout(()=>{let s=JSON.parse(a.content);new Bt(s.text,s.type,{interval:s.interval,icon:s.icon}).show()},o),o+=500,a.parentNode.removeChild(a)})}};var na=class{constructor(){re(".collapsible .section-header").forEach(o=>{o.addEventListener("click",()=>{o.parentNode.classList.toggle("collapsed")})})}};var An=class{constructor(o,a={}){Ue(this,"text");Ue(this,"options");Ue(this,"delayTimer");Ue(this,"timeoutTimer");Ue(this,"tooltipElement");let s={container:document.body,referenceElement:document.body,position:"top",offset:{x:0,y:0},delay:500,timeout:null,removeOnMouseout:!0,removeOnClick:!1};this.text=o,this.options=Object.assign({},s,a)}show(){let o=this.options,a=o.container;this.delayTimer=setTimeout(()=>{let c=document.createElement("div");c.className="tooltip",c.setAttribute("role","tooltip"),c.style.display="block",c.innerHTML=this.text;let h=v=>{let x=o.referenceElement,w=o.offset,S=x.getBoundingClientRect(),k=S.top+window.scrollY,H=S.left+window.scrollX,I=(S.width-v.offsetWidth)/2,D=(S.height-v.offsetHeight)/2;switch(o.position){case"top":return{top:Math.round(k-v.offsetHeight+w.y),left:Math.round(H+I+w.x)};case"right":return{top:Math.round(k+D+w.y),left:Math.round(H+x.offsetWidth+w.x)};case"bottom":return{top:Math.round(k+x.offsetHeight+w.y),left:Math.round(H+I+w.x)};case"left":return{top:Math.round(k+D+w.y),left:Math.round(H-v.offsetWidth+w.x)};case"center":return{top:Math.round(k+D+w.y),left:Math.round(H+I+w.x)}}};a.appendChild(c);let m=h(c);c.style.top=`${m.top}px`,c.style.left=`${m.left}px`,o.timeout!==null&&(this.timeoutTimer=setTimeout(()=>this.remove(),o.timeout)),this.tooltipElement=c},o.delay);let s=o.referenceElement;(s.tagName.toLowerCase()==="button"||s.classList.contains("button"))&&(s.addEventListener("click",()=>this.remove()),s.addEventListener("blur",()=>this.remove())),o.removeOnMouseout&&s.addEventListener("mouseout",()=>this.remove()),o.removeOnClick&&s.addEventListener("click",()=>this.remove())}remove(){clearTimeout(this.delayTimer),clearTimeout(this.timeoutTimer);let o=this.tooltipElement,a=this.options.container;o!==void 0&&a.contains(o)&&a.removeChild(o)}};var ra=class{constructor(){re("[title]",document.body).forEach(o=>{o.dataset.tooltip=o.title,o.removeAttribute("title")}),re("[data-tooltip]").forEach(o=>{o.addEventListener("mouseover",()=>{new An(o.dataset.tooltip,{referenceElement:o,position:"bottom",offset:{x:0,y:4}}).show()}),(o.tagName.toLowerCase()==="button"||o.classList.contains("button"))&&o.addEventListener("focus",()=>{new An(o.dataset.tooltip,{referenceElement:o,position:"bottom",offset:{x:0,y:4},delay:0}).show()})}),document.addEventListener("mouseover",kn(o=>{let a=o.target.closest(".truncate");a&&a.offsetWidth{let h=JSON.parse(s.response),m=h.code||s.status;parseInt(m)===400?location.reload():a(h,s)};s.onload=c,s.onerror=c}return s}};var ia=class{constructor(){let o=A("[data-view=backups] [data-command=make-backup]");o&&o.addEventListener("click",function(){let a=this,c=(()=>{let h=A(".spinner");return h||(h=document.createElement("div"),a.insertAdjacentElement("afterend",h)),h.className="spinner",h.innerHTML="",h})();a.disabled=!0,new zt({method:"POST",url:`${He.config.baseUri}backup/make/`,data:{"csrf-token":A("meta[name=csrf-token]").content}},h=>{if(h.status==="success"){a.disabled=!1,c.classList.add("spinner-success"),ht("check",c);let v=A("#backups-row");if(v){let x=A("#backups-table"),w=v.content.cloneNode(!0);A(".backup-uri",w).href=h.data.uri,A(".backup-uri",w).innerHTML=h.data.filename,A(".backup-date",w).innerHTML=h.data.date,A(".backup-size",w).innerHTML=h.data.size,A(".backup-delete",w).dataset.modalAction=h.data.deleteUri,A(".backup-last-time").innerHTML=He.config.Backups.labels.now,A("tbody",x).prepend(w);let S=h.data.maxFiles;re("tr",x).forEach((k,H)=>{H+1>S&&k.remove()})}}h.status==="error"&&(c.classList.add("spinner-danger"),ht("exclamation",c),a.disabled=!1),new Bt(h.message,h.status,{icon:"check-circle"}).show(),h.status==="success"&&setTimeout(()=>{$o(h.data.uri,A("meta[name=csrf-token]").content)},1e3)})})}};var Di={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},np=8,rc={"&":"&","<":"<",">":">",'"':""","'":"'"};function ic(u,o){return typeof u=="number"?u+o:u}function Kl(u){if(typeof u=="string"){let o=/^(\d+)\s*(.*)$/g.exec(u);return{value:o?+o[1]:0,unit:(o==null?void 0:o[2])||void 0}}return{value:Number(u)}}function rp(u){return String.fromCharCode(97+u%26)}var jl=2221e-19;function ip(u){return Math.floor(Math.log(Math.abs(u))/Math.LN10)}function Ci(u,o,a){return o/a.range*u}function op(u,o){let a=Math.pow(10,o||np);return Math.round(u*a)/a}function ap(u){if(u===1)return u;function o(m,v){return m%v===0?v:o(v,m%v)}function a(m){return m*m+1}let s=2,c=2,h;if(u%2===0)return 2;do s=a(s)%u,c=a(a(c))%u,h=o(Math.abs(s-c),u);while(h===1);return h}function lp(u,o,a){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,c={high:o.high,low:o.low,valueRange:0,oom:0,step:0,min:0,max:0,range:0,numberOfSteps:0,values:[]};c.valueRange=c.high-c.low,c.oom=ip(c.valueRange),c.step=Math.pow(10,c.oom),c.min=Math.floor(c.low/c.step)*c.step,c.max=Math.ceil(c.high/c.step)*c.step,c.range=c.max-c.min,c.numberOfSteps=Math.round(c.range/c.step);let m=Ci(u,c.step,c)=a)c.step=1;else if(s&&v=a)c.step=v;else{let H=0;for(;;){if(m&&Ci(u,c.step,c)<=a)c.step*=2;else if(!m&&Ci(u,c.step/2,c)>=a){if(c.step/=2,s&&c.step%1!==0){c.step*=2;break}}else break;if(H++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}}c.step=Math.max(c.step,jl);function x(H,I){return H===(H+=I)&&(H*=1+(I>0?jl:-jl)),H}let w=c.min,S=c.max;for(;w+c.step<=c.low;)w=x(w,c.step);for(;S-c.step>=c.high;)S=x(S,-c.step);c.min=w,c.max=S,c.range=c.max-c.min;let k=[];for(let H=c.min;H<=c.max;H=x(H,c.step)){let I=op(H);I!==k[k.length-1]&&k.push(I)}return c.values=k,c}function Ai(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;su;function ac(u,o){return Array.from({length:u},o?(a,s)=>o(s):()=>{})}function Tt(u,o){return u!==null&&typeof u=="object"&&Reflect.has(u,o)}function aa(u){return u!==null&&isFinite(u)}function sp(u){return!u&&u!==0}function Fr(u){return aa(u)?Number(u):void 0}function up(u){return Array.isArray(u)?u.every(Array.isArray):!1}function fp(u,o){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=0;u[a?"reduceRight":"reduce"]((c,h,m)=>o(h,s++,m),void 0)}function cp(u,o){let a=Array.isArray(u)?u[o]:Tt(u,"data")?u.data[o]:null;return Tt(a,"meta")?a.meta:void 0}function dc(u){return u==null||typeof u=="number"&&isNaN(u)}function dp(u){return Array.isArray(u)&&u.every(o=>Array.isArray(o)||Tt(o,"data"))}function hp(u){return typeof u=="object"&&u!==null&&(Reflect.has(u,"x")||Reflect.has(u,"y"))}function rs(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";return hp(u)&&Tt(u,o)?Fr(u[o]):Fr(u)}function pp(u,o,a){o=ot(ot({},o),a?a==="x"?o.axisX:o.axisY:{});let s={high:o.high===void 0?-Number.MAX_VALUE:+o.high,low:o.low===void 0?Number.MAX_VALUE:+o.low},c=o.high===void 0,h=o.low===void 0;function m(v){if(!dc(v))if(Array.isArray(v))for(let x=0;xs.high&&(s.high=x),h&&x0||(s.high=1),s.low=0)),s}function mp(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,c,h={labels:(u.labels||[]).slice(),series:yp(u.series,a,s)},m=h.labels.length;return up(h.series)?(c=Math.max(m,...h.series.map(v=>v.length)),h.series.forEach(v=>{v.push(...ac(Math.max(0,c-v.length)))})):c=h.series.length,h.labels.push(...ac(Math.max(0,c-m),()=>"")),o&&gp(h),h}function gp(u){var o;(o=u.labels)===null||o===void 0||o.reverse(),u.series.reverse();for(let a of u.series)Tt(a,"data")?a.data.reverse():Array.isArray(a)&&a.reverse()}function vp(u,o){let a,s;if(typeof u!="object"){let c=Fr(u);o==="x"?a=c:s=c}else Tt(u,"x")&&(a=Fr(u.x)),Tt(u,"y")&&(s=Fr(u.y));if(!(a===void 0&&s===void 0))return{x:a,y:s}}function lc(u,o){if(!dc(u))return o?vp(u,o):Fr(u)}function $l(u,o){return Array.isArray(u)?u.map(a=>Tt(a,"value")?lc(a.value,o):lc(a,o)):$l(u.data,o)}function yp(u,o,a){if(dp(u))return u.map(c=>$l(c,o));let s=$l(u,o);return a?s.map(c=>[c]):s}function bp(u,o,a){let s=ot({increasingX:!1,fillHoles:!1},a),c=[],h=!0;for(let m=0;m=2&&u[m]<=u[m-2]&&(h=!0),h&&(c.push({pathCoordinates:[],valueData:[]}),h=!1),c[c.length-1].pathCoordinates.push(u[m],u[m+1]),c[c.length-1].valueData.push(o[m/2]));return c}function sc(u){let o="";return u==null?u:(typeof u=="number"?o=""+u:typeof u=="object"?o=JSON.stringify({data:u}):o=String(u),Object.keys(rc).reduce((a,s)=>a.replaceAll(s,rc[s]),o))}var Ql=class{call(o,a){return this.svgElements.forEach(s=>Reflect.apply(s[o],s,a)),this}attr(){for(var o=arguments.length,a=new Array(o),s=0;s3&&arguments[3]!==void 0?arguments[3]:!1,c=arguments.length>4?arguments[4]:void 0,H=a,{easing:h}=H,m=uf(H,["easing"]),v={},x,w;h&&(x=Array.isArray(h)?h:hc[h]),m.begin=ic(m.begin,"ms"),m.dur=ic(m.dur,"ms"),x&&(m.calcMode="spline",m.keySplines=x.join(" "),m.keyTimes="0;1"),s&&(m.fill="freeze",v[o]=m.from,u.attr(v),w=Kl(m.begin||0).value,m.begin="indefinite");let S=u.elem("animate",ot({attributeName:o},m));s&&setTimeout(()=>{try{S._node.beginElement()}catch(I){v[o]=m.to,u.attr(v),S.remove()}},w);let k=S.getNode();c&&k.addEventListener("beginEvent",()=>c.emit("animationBegin",{element:u,animate:k,params:a})),k.addEventListener("endEvent",()=>{c&&c.emit("animationEnd",{element:u,animate:k,params:a}),s&&(v[o]=m.to,u.attr(v),S.remove())})}var Hi=class u{attr(o,a){return typeof o=="string"?a?this._node.getAttributeNS(a,o):this._node.getAttribute(o):(Object.keys(o).forEach(s=>{if(o[s]!==void 0)if(s.indexOf(":")!==-1){let c=s.split(":");this._node.setAttributeNS(Di[c[0]],s,String(o[s]))}else this._node.setAttribute(s,String(o[s]))}),this)}elem(o,a,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return new u(o,a,s,this,c)}parent(){return this._node.parentNode instanceof SVGElement?new u(this._node.parentNode):null}root(){let o=this._node;for(;o.nodeName!=="svg"&&o.parentElement;)o=o.parentElement;return new u(o)}querySelector(o){let a=this._node.querySelector(o);return a?new u(a):null}querySelectorAll(o){let a=this._node.querySelectorAll(o);return new Ql(a)}getNode(){return this._node}foreignObject(o,a,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,h;if(typeof o=="string"){let v=document.createElement("div");v.innerHTML=o,h=v.firstChild}else h=o;h instanceof Element&&h.setAttribute("xmlns",Di.xmlns);let m=this.elem("foreignObject",a,s,c);return m._node.appendChild(h),m}text(o){return this._node.appendChild(document.createTextNode(o)),this}empty(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}remove(){var o;return(o=this._node.parentNode)===null||o===void 0||o.removeChild(this._node),this.parent()}replace(o){var a;return(a=this._node.parentNode)===null||a===void 0||a.replaceChild(o._node,this._node),o}append(o){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&this._node.firstChild?this._node.insertBefore(o._node,this._node.firstChild):this._node.appendChild(o._node),this}classes(){let o=this._node.getAttribute("class");return o?o.trim().split(/\s+/):[]}addClass(o){return this._node.setAttribute("class",this.classes().concat(o.trim().split(/\s+/)).filter(function(a,s,c){return c.indexOf(a)===s}).join(" ")),this}removeClass(o){let a=o.trim().split(/\s+/);return this._node.setAttribute("class",this.classes().filter(s=>a.indexOf(s)===-1).join(" ")),this}removeAllClasses(){return this._node.setAttribute("class",""),this}height(){return this._node.getBoundingClientRect().height}width(){return this._node.getBoundingClientRect().width}animate(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2?arguments[2]:void 0;return Object.keys(o).forEach(c=>{let h=o[c];Array.isArray(h)?h.forEach(m=>uc(this,c,m,!1,s)):uc(this,c,h,a,s)}),this}constructor(o,a,s,c,h=!1){o instanceof Element?this._node=o:(this._node=document.createElementNS(Di.svg,o),o==="svg"&&this.attr({"xmlns:ct":Di.ct})),a&&this.attr(a),s&&this.addClass(s),c&&(h&&c._node.firstChild?c._node.insertBefore(this._node,c._node.firstChild):c._node.appendChild(this._node))}};Hi.Easing=hc;function xp(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"100%",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"100%",s=arguments.length>3?arguments[3]:void 0;Array.from(u.querySelectorAll("svg")).filter(h=>h.getAttributeNS(Di.xmlns,"ct")).forEach(h=>u.removeChild(h));let c=new Hi("svg").attr({width:o,height:a}).attr({style:"width: ".concat(o,"; height: ").concat(a,";")});return s&&c.addClass(s),u.appendChild(c.getNode()),c}function wp(u){return typeof u=="number"?{top:u,right:u,bottom:u,left:u}:u===void 0?{top:0,right:0,bottom:0,left:0}:{top:typeof u.top=="number"?u.top:0,right:typeof u.right=="number"?u.right:0,bottom:typeof u.bottom=="number"?u.bottom:0,left:typeof u.left=="number"?u.left:0}}function Ep(u,o){var a,s,c,h;let m=!!(o.axisX||o.axisY),v=((a=o.axisY)===null||a===void 0?void 0:a.offset)||0,x=((s=o.axisX)===null||s===void 0?void 0:s.offset)||0,w=(c=o.axisY)===null||c===void 0?void 0:c.position,S=(h=o.axisX)===null||h===void 0?void 0:h.position,k=u.width()||Kl(o.width).value||0,H=u.height()||Kl(o.height).value||0,I=wp(o.chartPadding);k=Math.max(k,v+I.left+I.right),H=Math.max(H,x+I.top+I.bottom);let D={x1:0,x2:0,y1:0,y2:0,padding:I,width(){return this.x2-this.x1},height(){return this.y1-this.y2}};return m?(S==="start"?(D.y2=I.top+x,D.y1=Math.max(H-I.bottom,D.y2+1)):(D.y2=I.top,D.y1=Math.max(H-I.bottom-x,D.y2+1)),w==="start"?(D.x1=I.left+v,D.x2=Math.max(k-I.right,D.x1+1)):(D.x1=I.left,D.x2=Math.max(k-I.right-v,D.x1+1))):(D.x1=I.left,D.x2=Math.max(k-I.right,D.x1+1),D.y2=I.top,D.y1=Math.max(H-I.bottom,D.y2+1)),D}function Lp(u,o,a,s,c,h,m,v){let x={["".concat(a.units.pos,"1")]:u,["".concat(a.units.pos,"2")]:u,["".concat(a.counterUnits.pos,"1")]:s,["".concat(a.counterUnits.pos,"2")]:s+c},w=h.elem("line",x,m.join(" "));v.emit("draw",ot({type:"grid",axis:a,index:o,group:h,element:w},x))}function Sp(u,o,a,s){let c=u.elem("rect",{x:o.x1,y:o.y2,width:o.width(),height:o.height()},a,!0);s.emit("draw",{type:"gridBackground",group:u,element:c})}function Tp(u,o,a,s,c,h,m,v,x,w){let S={[c.units.pos]:u+m[c.units.pos],[c.counterUnits.pos]:m[c.counterUnits.pos],[c.units.len]:o,[c.counterUnits.len]:Math.max(0,h-10)},k=Math.round(S[c.units.len]),H=Math.round(S[c.counterUnits.len]),I=document.createElement("span");I.className=x.join(" "),I.style[c.units.len]=k+"px",I.style[c.counterUnits.len]=H+"px",I.textContent=String(s);let D=v.foreignObject(I,ot({style:"overflow: visible;"},S));w.emit("draw",ot({type:"label",axis:c,index:a,group:v,element:D,text:s},S))}function fc(u,o,a){let s,c=[];function h(v){let x=s;s=Ai({},u),o&&o.forEach(w=>{window.matchMedia(w[0]).matches&&(s=Ai(s,w[1]))}),a&&v&&a.emit("optionsChanged",{previousOptions:x,currentOptions:s})}function m(){c.forEach(v=>v.removeEventListener("change",h))}if(window.matchMedia)o&&o.forEach(v=>{let x=window.matchMedia(v[0]);x.addEventListener("change",h),c.push(x)});else throw new Error("window.matchMedia not found! Make sure you're using a polyfill.");return h(),{removeMediaQueryListeners:m,getCurrentOptions(){return s}}}var Zl={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},kp={accuracy:3};function oa(u,o,a,s,c,h){let m=ot(ot({command:c?u.toLowerCase():u.toUpperCase()},o),h?{data:h}:{});a.splice(s,0,m)}function Yl(u,o){u.forEach((a,s)=>{Zl[a.command.toLowerCase()].forEach((c,h)=>{o(a,c,s,h,u)})})}var Ni=class u{static join(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2?arguments[2]:void 0,c=new u(a,s);for(let h=0;h2&&arguments[2]!==void 0?arguments[2]:!1,c=arguments.length>3?arguments[3]:void 0;return oa("M",{x:+o,y:+a},this.pathElements,this.pos++,s,c),this}line(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,c=arguments.length>3?arguments[3]:void 0;return oa("L",{x:+o,y:+a},this.pathElements,this.pos++,s,c),this}curve(o,a,s,c,h,m){let v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,x=arguments.length>7?arguments[7]:void 0;return oa("C",{x1:+o,y1:+a,x2:+s,y2:+c,x:+h,y:+m},this.pathElements,this.pos++,v,x),this}arc(o,a,s,c,h,m,v){let x=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,w=arguments.length>8?arguments[8]:void 0;return oa("A",{rx:o,ry:a,xAr:s,lAf:c,sf:h,x:m,y:v},this.pathElements,this.pos++,x,w),this}parse(o){let a=o.replace(/([A-Za-z])(-?[0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce((c,h)=>(h.match(/[A-Za-z]/)&&c.push([]),c[c.length-1].push(h),c),[]);a[a.length-1][0].toUpperCase()==="Z"&&a.pop();let s=a.map(c=>{let h=c.shift(),m=Zl[h.toLowerCase()];return ot({command:h},m.reduce((v,x,w)=>(v[x]=+c[w],v),{}))});return this.pathElements.splice(this.pos,0,...s),this.pos+=s.length,this}stringify(){let o=Math.pow(10,this.options.accuracy);return this.pathElements.reduce((a,s)=>{let c=Zl[s.command.toLowerCase()].map(h=>{let m=s[h];return this.options.accuracy?Math.round(m*o)/o:m});return a+s.command+c.join(",")},"")+(this.close?"Z":"")}scale(o,a){return Yl(this.pathElements,(s,c)=>{s[c]*=c[0]==="x"?o:a}),this}translate(o,a){return Yl(this.pathElements,(s,c)=>{s[c]+=c[0]==="x"?o:a}),this}transform(o){return Yl(this.pathElements,(a,s,c,h,m)=>{let v=o(a,s,c,h,m);(v||v===0)&&(a[s]=v)}),this}clone(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new u(o||this.close);return a.pos=this.pos,a.pathElements=this.pathElements.slice().map(s=>ot({},s)),a.options=ot({},this.options),a}splitByCommand(o){let a=[new u];return this.pathElements.forEach(s=>{s.command===o.toUpperCase()&&a[a.length-1].pathElements.length!==0&&a.push(new u),a[a.length-1].pathElements.push(s)}),a}constructor(o=!1,a){this.close=o,this.pathElements=[],this.pos=0,this.options=ot(ot({},kp),a)}};function Jl(u){let o=ot({fillHoles:!1},u);return function(s,c){let h=new Ni,m=!0;for(let v=0;v1)return Ni.join(h.map(m=>a(m.pathCoordinates,m.valueData)));{if(s=h[0].pathCoordinates,c=h[0].valueData,s.length<=4)return Jl()(s,c);let m=[],v=[],x=s.length/2,w=[],S=[],k=[],H=[];for(let D=0;D0!=S[D]>0?w[D]=0:(w[D]=3*(H[D-1]+H[D])/((2*H[D]+H[D-1])/S[D-1]+(H[D]+2*H[D-1])/S[D]),isFinite(w[D])||(w[D]=0));let I=new Ni().move(m[0],v[0],!1,c[0]);for(let D=0;Dh(a)),s.forEach(h=>h(o,a))}constructor(){this.listeners=new Map,this.allListeners=new Set}},Xl=new WeakMap,es=class{update(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(o&&(this.data=o||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),a&&(this.options=Ai({},s?this.options:this.defaultOptions,a),!this.initializeTimeoutId)){var c;(c=this.optionsProvider)===null||c===void 0||c.removeMediaQueryListeners(),this.optionsProvider=fc(this.options,this.responsiveOptions,this.eventEmitter)}return!this.initializeTimeoutId&&this.optionsProvider&&this.createChart(this.optionsProvider.getCurrentOptions()),this}detach(){if(this.initializeTimeoutId)window.clearTimeout(this.initializeTimeoutId);else{var o;window.removeEventListener("resize",this.resizeListener),(o=this.optionsProvider)===null||o===void 0||o.removeMediaQueryListeners()}return Xl.delete(this.container),this}on(o,a){return this.eventEmitter.on(o,a),this}off(o,a){return this.eventEmitter.off(o,a),this}initialize(){window.addEventListener("resize",this.resizeListener),this.optionsProvider=fc(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.on("optionsChanged",()=>this.update()),this.options.plugins&&this.options.plugins.forEach(o=>{Array.isArray(o)?o[0](this,o[1]):o(this)}),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=null}constructor(o,a,s,c,h){this.data=a,this.defaultOptions=s,this.options=c,this.responsiveOptions=h,this.eventEmitter=new Vl,this.resizeListener=()=>this.update(),this.initializeTimeoutId=setTimeout(()=>this.initialize(),0);let m=typeof o=="string"?document.querySelector(o):o;if(!m)throw new Error("Target element is not found");this.container=m;let v=Xl.get(m);v&&v.detach(),Xl.set(m,this)}},Zn={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}},la=class{createGridAndLabels(o,a,s,c){let h=this.units.pos==="x"?s.axisX:s.axisY,m=this.ticks.map((x,w)=>this.projectValue(x,w)),v=this.ticks.map(h.labelInterpolationFnc);m.forEach((x,w)=>{let S=v[w],k={x:0,y:0},H;m[w+1]?H=m[w+1]-x:H=Math.max(this.axisLength-x,this.axisLength/this.ticks.length),!(S!==""&&sp(S))&&(this.units.pos==="x"?(x=this.chartRect.x1+x,k.x=s.axisX.labelOffset.x,s.axisX.position==="start"?k.y=this.chartRect.padding.top+s.axisX.labelOffset.y+5:k.y=this.chartRect.y1+s.axisX.labelOffset.y+5):(x=this.chartRect.y1-x,k.y=s.axisY.labelOffset.y-H,s.axisY.position==="start"?k.x=this.chartRect.padding.left+s.axisY.labelOffset.x:k.x=this.chartRect.x2+s.axisY.labelOffset.x+10),h.showGrid&&Lp(x,w,this,this.gridOffset,this.chartRect[this.counterUnits.len](),o,[s.classNames.grid,s.classNames[this.units.dir]],c),h.showLabel&&Tp(x,H,w,S,this,h.offset,k,a,[s.classNames.label,s.classNames[this.units.dir],h.position==="start"?s.classNames[h.position]:s.classNames.end],c))})}constructor(o,a,s){this.units=o,this.chartRect=a,this.ticks=s,this.counterUnits=o===Zn.x?Zn.y:Zn.x,this.axisLength=a[this.units.rectEnd]-a[this.units.rectStart],this.gridOffset=a[this.units.rectOffset]}},ts=class extends la{projectValue(o){let a=Number(rs(o,this.units.pos));return this.axisLength*(a-this.bounds.min)/this.bounds.range}constructor(o,a,s,c){let h=c.highLow||pp(a,c,o.pos),m=lp(s[o.rectEnd]-s[o.rectStart],h,c.scaleMinSpace||20,c.onlyInteger),v={min:m.min,max:m.max};super(o,s,m.values),this.bounds=m,this.range=v}};var ns=class extends la{projectValue(o,a){return this.stepLength*a}constructor(o,a,s,c){let h=c.ticks||[];super(o,s,h);let m=Math.max(1,h.length-(c.stretch?1:0));this.stepLength=this.axisLength/m,this.stretch=!!c.stretch}};function Mi(u,o,a){var s;if(Tt(u,"name")&&u.name&&(!((s=o.series)===null||s===void 0)&&s[u.name])){let h=(o==null?void 0:o.series[u.name])[a];return h===void 0?o[a]:h}else return o[a]}var cc={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:oc,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:oc,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}},sa=class extends es{createChart(o){let{data:a}=this,s=mp(a,o.reverseData,!0),c=xp(this.container,o.width,o.height,o.classNames.chart);this.svg=c;let h=c.elem("g").addClass(o.classNames.gridGroup),m=c.elem("g"),v=c.elem("g").addClass(o.classNames.labelGroup),x=Ep(c,o),w,S;o.axisX.type===void 0?w=new ns(Zn.x,s.series,x,El(ot({},o.axisX),{ticks:s.labels,stretch:o.fullWidth})):w=new o.axisX.type(Zn.x,s.series,x,o.axisX),o.axisY.type===void 0?S=new ts(Zn.y,s.series,x,El(ot({},o.axisY),{high:aa(o.high)?o.high:o.axisY.high,low:aa(o.low)?o.low:o.axisY.low})):S=new o.axisY.type(Zn.y,s.series,x,o.axisY),w.createGridAndLabels(h,v,o,this.eventEmitter),S.createGridAndLabels(h,v,o,this.eventEmitter),o.showGridBackground&&Sp(h,x,o.classNames.gridBackground,this.eventEmitter),fp(a.series,(k,H)=>{let I=m.elem("g"),D=Tt(k,"name")&&k.name,U=Tt(k,"className")&&k.className,Z=Tt(k,"meta")?k.meta:void 0;D&&I.attr({"ct:series-name":D}),Z&&I.attr({"ct:meta":sc(Z)}),I.addClass([o.classNames.series,U||"".concat(o.classNames.series,"-").concat(rp(H))].join(" "));let oe=[],V=[];s.series[H].forEach((Y,N)=>{let P={x:x.x1+w.projectValue(Y,N,s.series[H]),y:x.y1-S.projectValue(Y,N,s.series[H])};oe.push(P.x,P.y),V.push({value:Y,valueIndex:N,meta:cp(k,N)})});let j={lineSmooth:Mi(k,o,"lineSmooth"),showPoint:Mi(k,o,"showPoint"),showLine:Mi(k,o,"showLine"),showArea:Mi(k,o,"showArea"),areaBase:Mi(k,o,"areaBase")},F;typeof j.lineSmooth=="function"?F=j.lineSmooth:F=j.lineSmooth?Cp():Jl();let te=F(oe,V);if(j.showPoint&&te.pathElements.forEach(Y=>{let{data:N}=Y,P=I.elem("line",{x1:Y.x,y1:Y.y,x2:Y.x+.01,y2:Y.y},o.classNames.point);if(N){let R,$;Tt(N.value,"x")&&(R=N.value.x),Tt(N.value,"y")&&($=N.value.y),P.attr({"ct:value":[R,$].filter(aa).join(","),"ct:meta":sc(N.meta)})}this.eventEmitter.emit("draw",{type:"point",value:N==null?void 0:N.value,index:(N==null?void 0:N.valueIndex)||0,meta:N==null?void 0:N.meta,series:k,seriesIndex:H,axisX:w,axisY:S,group:I,element:P,x:Y.x,y:Y.y,chartRect:x})}),j.showLine){let Y=I.elem("path",{d:te.stringify()},o.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:s.series[H],path:te.clone(),chartRect:x,index:H,series:k,seriesIndex:H,meta:Z,axisX:w,axisY:S,group:I,element:Y})}if(j.showArea&&S.range){let Y=Math.max(Math.min(j.areaBase,S.range.max),S.range.min),N=x.y1-S.projectValue(Y);te.splitByCommand("M").filter(P=>P.pathElements.length>1).map(P=>{let R=P.pathElements[0],$=P.pathElements[P.pathElements.length-1];return P.clone(!0).position(0).remove(1).move(R.x,N).line(R.x,R.y).position(P.pathElements.length+1).line($.x,N)}).forEach(P=>{let R=I.elem("path",{d:P.stringify()},o.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:s.series[H],path:P.clone(),series:k,seriesIndex:H,axisX:w,axisY:S,chartRect:x,index:H,group:I,element:R,meta:Z})})}},o.reverseData),this.eventEmitter.emit("created",{chartRect:x,axisX:w,axisY:S,svg:c,options:o})}constructor(o,a,s,c){super(o,a,cc,Ai({},cc,s),c),this.data=a}};var Pr=class{constructor(o,a){let c={showArea:!0,fullWidth:!0,scaleMinSpace:20,divisor:5,chartPadding:20,lineSmooth:!1,low:0,axisX:{showGrid:!1,labelOffset:{x:0,y:10},labelInterpolationFnc:(m,v,x)=>v%Math.floor(x.length/(o.clientWidth/100))?null:m},axisY:{onlyInteger:!0,offset:15,labelOffset:{x:0,y:5}}};new sa(o,a,c).on("draw",m=>{m.type==="point"&&m.element.attr({"ct:index":m.index})}),o.addEventListener("mouseover",m=>{let v=m.target;if(v.getAttribute("class")==="ct-point"){let x=parseFloat(getComputedStyle(v).strokeWidth),w=v.getAttribute("ct:index");w&&ki("circle-small-fill",S=>{let k=`${a.labels[w]}
${S} ${a.series[0][w]} ${S}${a.series[1][w]}`;new An(k,{referenceElement:m.target,offset:{x:0,y:-x}}).show()})}})}};var ua=class{constructor(){let o=A("[data-view=dashboard] [data-command=clear-cache]"),a=A("[data-view=dashboard] [data-command=make-backup]"),s=A(".dashboard-chart");if(o&&o.addEventListener("click",()=>{new zt({method:"POST",url:`${He.config.baseUri}cache/clear/`,data:{"csrf-token":A("meta[name=csrf-token]").content}},c=>{new Bt(c.message,c.status,{icon:"check-circle"}).show()})}),a&&a.addEventListener("click",function(){let c=this;c.disabled=!0,new zt({method:"POST",url:`${He.config.baseUri}backup/make/`,data:{"csrf-token":A("meta[name=csrf-token]").content}},h=>{new Bt(h.message,h.status,{icon:"check-circle"}).show(),h.status==="success"&&setTimeout(()=>{c.disabled=!1,$o(h.data.uri,A("meta[name=csrf-token]").content)},1e3),h.status==="error"&&(c.disabled=!1)})}),s){let c=s.dataset.chartData;c&&new Pr(s,JSON.parse(c))}}};var fa=class{constructor(){let o=A("[data-command=expand-all-pages]"),a=A("[data-command=collapse-all-pages]"),s=A("[data-command=reorder-pages]"),c=A("[data-command=change-slug]"),h=A(".page-search"),m=document.getElementById("newPageModal"),v=document.getElementById("slugModal");if(re(".pages-tree").forEach(H=>{H.dataset.orderableChildren==="true"&&k(H)}),re(".page-details").forEach(H=>{A(".pages-tree-children-toggle",H)&&H.addEventListener("click",I=>{S(H),I.stopPropagation()})}),re(".page-details a").forEach(H=>{H.addEventListener("click",I=>{I.stopPropagation()})}),re(".pages-tree .sortable-handle").forEach(H=>{H.addEventListener("click",I=>{I.stopPropagation()})}),o&&o.addEventListener("click",()=>{x(),o.blur()}),a&&a.addEventListener("click",()=>{w(),a.blur()}),s&&s.addEventListener("click",()=>{s.classList.toggle("active"),A(".pages-tree").classList.toggle("is-reordering"),s.blur()}),h){h.addEventListener("focus",()=>{re(".pages-tree-item").forEach(I=>{I.dataset.expanded=I.classList.contains("expanded")?"true":"false"})});let H=I=>{let D=I.target.value;if(D.length===0)A(".pages-tree-root").classList.remove("is-filtered"),re(".pages-tree-item").forEach(U=>{let Z=A(".page-title a",U);Z.innerHTML=Z.textContent,A(".pages-tree-row",U).style.display="",U.classList.toggle("is-expanded",U.dataset.expanded==="true")});else{A(".pages-tree-root").classList.add("is-filtered");let U=new RegExp(Ir(Nr(D)),"gi");re(".pages-tree-item").forEach(Z=>{let oe=A(".page-title a",Z),V=oe.textContent,j=A(".pages-tree-row",Z);V.match(U)!==null?(oe.innerHTML=V.replace(U,"$&"),j.style.display=""):j.style.display="none",Z.classList.add("is-expanded")})}};h.addEventListener("keyup",kn(H,100)),h.addEventListener("search",H),document.addEventListener("keydown",I=>{(I.ctrlKey||I.metaKey)&&I.key==="f"&&document.activeElement!==h&&(h.focus(),I.preventDefault())})}if(m){A("#page-title",m).addEventListener("keyup",I=>{A("#page-slug",m).value=Gl(I.target.value)});let H=I=>{let D=I.target;D.value=Ul(D.value)};A("#page-slug",m).addEventListener("keyup",H),A("#page-slug",m).addEventListener("blur",H),A("#page-parent",m).addEventListener("change",()=>{let I=A('.dropdown-list[data-for="page-parent"] .selected');if(!I)return;let D=I.dataset.allowedTemplates.split(", "),U=A("#page-template",m);D.length>0?(U.dataset.previousValue=U.value,U.value=D[0],A('.select[data-for="page-template"').value=A(`.dropdown-list[data-for="page-template"] .dropdown-item[data-value="${U.value}"]`).innerText,re('.dropdown-list[data-for="page-template"] .dropdown-item').forEach(Z=>{D.includes(Z.dataset.value)||Z.classList.add("disabled")})):("previousValue"in U.dataset&&(U.value=U.dataset.previousValue,delete U.dataset.previousValue,A('.select[data-for="page-template"').value=A(`.dropdown-list[data-for="page-template"] .dropdown-item[data-value="${U.value}"]`).innerText),re('.dropdown-list[data-for="page-template"] .dropdown-item').forEach(Z=>{Z.classList.remove("disabled")}))})}if(v&&c){c.addEventListener("click",()=>{He.modals.slugModal.show(void 0,I=>{let D=document.getElementById("slug").value,U=A("#page-slug",I.element);U.value=D,U.placeholder=D})}),A("#page-slug",v).addEventListener("keydown",I=>{I.key==="Enter"&&A("[data-command=continue]",v).click()});let H=I=>{let D=I.target;D.value=Ul(D.value)};A("#page-slug",v).addEventListener("keyup",H),A("#page-slug",v).addEventListener("blur",H),A("[data-command=generate-slug]",v).addEventListener("click",()=>{let I=Gl(document.getElementById("title").value);A("#page-slug",v).value=I,A("#page-slug",v).focus()}),A("[data-command=continue]",v).addEventListener("click",()=>{let I=A("#page-slug",v).value.replace(/^-+|-+$/,"");if(I.length>0){let D=A(".page-route-inner").innerHTML;re("#page-slug, #slug").forEach(U=>{U.value=I}),A("#page-slug",v).value=I,document.getElementById("slug").value=I,A(".page-route-inner").innerHTML=D.replace(/\/[a-z0-9-]+\/$/,`/${I}/`)}He.modals.slugModal.hide()})}re("[data-modal=renameFileModal]").forEach(H=>{H.addEventListener("click",()=>{let I=document.getElementById("renameFileModal"),D=A("#file-name",I);D.value=H.dataset.filename,D.setSelectionRange(0,D.value.lastIndexOf("."))})});function x(){re(".pages-tree-item").forEach(H=>{H.classList.add("is-expanded")})}function w(){re(".pages-tree-item").forEach(H=>{H.classList.remove("is-expanded")})}function S(H){let I=H.closest(".pages-tree-item");I==null||I.classList.toggle("is-expanded")}function k(H){let I=[],D=Ro.create(H,{handle:".sortable-handle",filter:".is-not-orderable",forceFallback:!0,swapThreshold:.75,invertSwap:!0,animation:150,preventOnFilter:!1,onChoose(){let U=document.body.offsetHeight;document.body.style.height=`${U}px`;let Z=()=>{window.document.body.style.height="",window.removeEventListener("scroll",Z)};window.addEventListener("scroll",Z)},onStart(){H.classList.add("is-dragging")},onMove(U){if(U.related.classList.contains("is-not-orderable"))return!1},onEnd(U){if(H.classList.remove("is-dragging"),document.body.style.height="",U.newIndex===U.oldIndex)return;D.option("disabled",!0);let Z={"csrf-token":A("meta[name=csrf-token]").content,page:U.item.dataset.route,before:U.item.nextElementSibling.dataset.route,parent:H.dataset.parent};new zt({method:"POST",url:`${He.config.baseUri}pages/reorder/`,data:Z},oe=>{oe.status&&new Bt(oe.message,oe.status,{icon:"check-circle"}).show(),(!oe.status||oe.status==="error")&&D.sort(I),D.option("disabled",!1),I=D.toArray()})}});I=D.toArray()}}};var ca=class{constructor(){let o=A(".statistics-chart");if(o){let a=o.dataset.chartData;a&&new Pr(o,JSON.parse(a))}}};var da=class{constructor(){if(document.getElementById("updater-component")){let a=A(".update-status"),s=A(".spinner"),c=A(".current-version"),h=A(".current-version-name"),m=A(".new-version"),v=A(".new-version-name"),x=A("[data-command=install-updates]"),w=H=>{s.classList.add("spinner-info"),ht("info",s),v.innerHTML=H,m.style.display="block"},S=()=>{s.classList.add("spinner-success"),ht("check",s),c.style.display="block"},k=()=>{s.classList.add("spinner-success"),ht("check",s),h.innerHTML=v.innerHTML,c.style.display="block"};setTimeout(()=>{let H={"csrf-token":A("meta[name=csrf-token]").content};new zt({method:"POST",url:`${He.config.baseUri}updates/check/`,data:H},I=>{a.innerHTML=I.message,I.status==="success"?I.data.uptodate===!1?w(I.data.release.name):S():(s.classList.add("spinner-danger"),ht("exclamation",s))})},1e3),x.addEventListener("click",()=>{m.style.display="none",s.classList.remove("spinner-info"),a.innerHTML=a.dataset.installingText,new zt({method:"POST",url:`${He.config.baseUri}updates/update/`,data:{"csrf-token":A("meta[name=csrf-token]").content}},H=>{new Bt(H.message,H.status,{icon:"check-circle"}).show(),a.innerHTML=H.data.status,H.status==="success"?k():(s.classList.add("spinner-danger"),ht("exclamation",s))})})}}};var is=class{constructor(){Ue(this,"config",{baseUri:"/"});Ue(this,"modals",{});Ue(this,"forms",{})}load(o){this.loadConfig(o),this.loadComponent(Vo,{globalAlias:"modals"}),this.loadComponent(Zo,{globalAlias:"forms"}),this.loadComponent(wo),this.loadComponent(ra),this.loadComponent(ea),this.loadComponent(vo),this.loadComponent(ta),this.loadComponent(na),this.loadComponent(Eo),this.loadComponent(ua),this.loadComponent(fa),this.loadComponent(ca),this.loadComponent(ia),this.loadComponent(da)}loadConfig(o){Object.assign(this.config,o)}loadComponent(o,a={globalAlias:void 0}){let s=new o(this),{globalAlias:c}=a;c&&(this[c]=s)}},He=new is;return Dh(Mp);})(); +`}}function S(I,P,R=!1){P===void 0&&(P=I);let $=R===!0?"":s.getSelection(),ee=s.getCursor(),_=I.split(` +`).length-1;s.replaceSelection(I+$+P),s.setCursor(ee.line+_,ee.ch+I.length-_),s.focus()}function k(I){let P=[];for(let R of I)P.push(R.head.line);return P}function D(I,P){for(let R of P)I.removeLineClass(R,"wrap","CodeMirror-activeline")}function N(I,P){for(let R of P)I.addLineClass(R,"wrap","CodeMirror-activeline")}}};var Uo=class{constructor(o){var w,S;let a=H(`label[for="${o.id}"]`),s=H("span",a),c=!1;o.dataset.label=(w=H(`label[for="${o.id}"] span`))==null?void 0:w.innerHTML,o.addEventListener("change",h),o.addEventListener("input",h),(S=o.form)==null||S.addEventListener("submit",()=>{o.files&&o.files.length>0&&(s.innerHTML+=' '),c=!0}),a.addEventListener("drag",m),a.addEventListener("dragstart",m),a.addEventListener("dragend",m),a.addEventListener("dragover",v),a.addEventListener("dragenter",v),a.addEventListener("dragleave",x),a.addEventListener("drop",k=>{k.preventDefault(),!c&&k.dataTransfer&&(o.files=k.dataTransfer.files,o.dispatchEvent(new Event("change")))}),a.addEventListener("click",k=>{c&&k.preventDefault()});function h(){if(this.files&&this.files.length>0){let k=[];for(let D of Array.from(this.files))k.push(D.name);s.innerHTML=k.join(", ")}else s.innerHTML=this.dataset.label}function m(k){k.preventDefault()}function v(k){this.classList.add("drag"),k.preventDefault()}function x(k){this.classList.remove("drag"),k.preventDefault()}}};var qo=class{constructor(o){o.addEventListener("click",()=>{He.modals.imagesModal.show(void 0,a=>{let s=H(".image-picker-thumbnail.selected",a.element);if(s&&s.classList.remove("selected"),o.value){let h=H(`.image-picker-thumbnail[data-filename="${o.value}"]`,a.element);h&&h.classList.add("selected")}let c=H(".image-picker-confirm",a.element);c.dataset.target=o.id,c.addEventListener("click",()=>a.hide())})})}};var jo=class{constructor(o){var v,x;let a=ne("option",o),s=H(".image-picker-confirm",(v=o.parentNode.parentNode)!=null?v:document),c=H("[data-command=upload]",(x=o.parentNode.parentNode)!=null?x:document);if(o.hidden=!0,a.length>0){let w=document.createElement("div");w.className="image-picker-thumbnails";for(let S of Array.from(a)){let k=document.createElement("div");k.className="image-picker-thumbnail",k.style.backgroundImage=`url(${S.value})`,k.dataset.uri=S.value,k.dataset.filename=S.text,k.addEventListener("click",h),k.addEventListener("dblclick",m),w.appendChild(k)}o.parentNode.insertBefore(w,o),H(".image-picker-empty-state").style.display="none"}s==null||s.addEventListener("click",function(){let w=H(".image-picker-thumbnail.selected"),S=this.dataset.target;if(w&&S){let k=document.getElementById(S),D=w.dataset.filename;k&&D&&(k.value=D)}}),c==null||c.addEventListener("click",function(){let w=this.dataset.uploadTarget;if(w){let S=document.getElementById(w);S&&S.click()}});function h(){let w=H(".image-picker-confirm").dataset.target;if(w){let S=document.getElementById(w);S&&(S.value=this.dataset.filename),ne(".image-picker-thumbnail").forEach(k=>{k.classList.remove("selected")}),this.classList.add("selected")}}function m(){var w;this.click(),(w=H(".image-picker-confirm"))==null||w.click()}}};var Yo=class{constructor(o){if(o.addEventListener("change",a),o.addEventListener("input",a),a.call(o),"ticks"in o.dataset){let c=o.dataset.ticks;switch(c){case"0":break;case"true":case"":s((parseInt(o.max)-parseInt(o.min))/(parseInt(o.step)||1)+1);break;default:s(parseInt(c)+1);break}}function a(){this.style.setProperty("--progress",`${Math.round(parseInt(this.value)/(parseInt(this.max)-parseInt(this.min))*100)}%`);let c=H(`output[for="${this.id}"]`);c&&(c.innerHTML=this.value)}function s(c){let h=document.createElement("div");h.className="form-input-range-ticks",h.dataset.for=o.id,o.parentElement.insertBefore(h,o.nextSibling);for(let m=0;m":"","?":"","@":"","[":"","]":"","^":"","`":"","{":"","|":"","}":"","\xA1":"","\xA3":"","\xA4":"","\xA5":"","\xA6":"","\xA7":"","\xAB":"","\xB0":"","\xBB":"","\u2018":"","\u2019":"","\u201C":"","\u201D":"","\n":"-"," ":"-","-":"-","\u2013":"-","\u2014":"-","/":"-","\\":"-",_:"-","~":"-",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00C6:"Ae",\u00C7:"C",\u00D0:"D",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u0152:"Oe",\u0160:"S",\u00DE:"Th",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"ae",\u00E5:"a",\u00E6:"ae","\xA2":"c",\u00E7:"c",\u00F0:"d",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"oe",\u00F8:"o",\u0153:"oe",\u0161:"s",\u00DF:"ss",\u00FE:"th",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"ue",\u00FD:"y",\u00FF:"y",\u0178:"y"};u=u.toLowerCase();for(let a in o)u=u.split(a).join(o[a]);return u.replace(/[^a-z0-9-]/g,"").replace(/^-+|-+$/g,"").replace(/-+/g,"-")}function Ul(u){return u.toLowerCase().replace(" ","-").replace(/[^a-z0-9-]/g,"")}var Xo=class{constructor(o,a){let c=Object.assign({},{labels:{empty:"No matching options"}},a),h,m=document.createElement("input"),v=document.createElement("div");x();function x(){let I=document.createElement("div");I.className="form-input-wrap",o.hidden=!0,m.type="text",m.classList.add("form-select"),m.dataset.for=o.id;let P=H(`label[for="${o.id}"]`);P&&m.setAttribute("aria-label",P.innerText),o.hasAttribute("disabled")&&(m.disabled=!0);for(let $ in o.dataset)m.dataset[$]=o.dataset[$];let R=[];ne("option",o).forEach($=>{let ee={};for(let _ in $.dataset)ee[_]=$.dataset[_];R.push({label:$.innerText,value:$.value,selected:$.selected,disabled:$.disabled,dataset:ee}),$.selected&&(m.value=$.innerText)}),o.parentNode.insertBefore(I,o.nextSibling),I.appendChild(o),I.appendChild(m),w(R,I)}function w(I,P){h=document.createElement("div"),h.className="dropdown-list",h.dataset.for=o.id,v.className="dropdown-empty",v.style.display="none",v.innerText=c.labels.empty,h.appendChild(v);for(let $ of I){let ee=document.createElement("div");ee.className="dropdown-item",ee.innerText=$.label,ee.dataset.value=$.value,$.selected&&ee.classList.add("selected"),$.disabled&&ee.classList.add("disabled");for(let _ in $.dataset)ee.dataset[_]=$.dataset[_];ee.addEventListener("mousedown",_=>{ee.classList.contains("disabled")?_.preventDefault():(N(ee),V(ee)),_.stopPropagation()}),h.appendChild(ee)}P.appendChild(h);let R=!1;m.addEventListener("focus",()=>{te(),m.setSelectionRange(0,0),R=!1}),m.addEventListener("mousedown",$=>{m.focus(),$.preventDefault()}),m.addEventListener("blur",()=>{Y(m.value)||(m.value=F()),h.style.display="none"}),m.addEventListener("keydown",$=>{let ee=H(".dropdown-item.selected",h);switch($.key){case"Backspace":S();break;case"ArrowUp":getComputedStyle(h).display!=="none"?Z():te(),$.preventDefault();break;case"ArrowDown":getComputedStyle(h).display!=="none"?oe():te(),$.preventDefault();break;case"Enter":ee&&getComputedStyle(ee).display!=="none"&&V(ee),m.blur(),$.preventDefault();break;case"Escape":case"ArrowLeft":case"ArrowRight":break;default:R||(m.value="",R=!0);break}}),m.addEventListener("keyup",$=>{let ee=m.value.trim();switch($.key){case"Escape":m.blur(),$.stopPropagation();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Enter":return!0;default:h.style.display="block",k(ee),ee.length>0&&M()}})}function S(){let I=0;ne(".dropdown-item",h).forEach(P=>{getComputedStyle(P).display!=="none"&&I++,P.classList.remove("selected")}),I>0?v.style.display="none":v.style.display="block"}function k(I){let P=$=>{let ee=`${$.textContent}`;return new RegExp(Ir(Nr(I)),"i").test(ee)},R=0;ne(".dropdown-item",h).forEach($=>{I===null||P($)?($.style.display="block",R++):$.style.display="none"}),R>0?v.style.display="none":v.style.display="block"}function D(I){let P=h.scrollTop,R=h.clientHeight,$=P+R,ee=getComputedStyle(h),_=parseInt(ee.paddingTop),L=parseInt(ee.paddingBottom),B=I.offsetTop,W=I.clientHeight,ie=B+W;B$&&(h.scrollTop=ie-R+L)}function N(I){let P=H(".dropdown-item.selected",h);P&&P.classList.remove("selected"),I&&(I.classList.contains("disabled")||(I.classList.add("selected"),D(I)))}function M(){let I=ne(".dropdown-item",h);for(let P=0;P=0;P--)if(getComputedStyle(I[P]).display!=="none"){N(I[P]);return}}function Z(){let I=H(".dropdown-item.selected",h);if(I){let P=I.previousSibling;for(;P&&(P.style.display==="none"||P.classList.contains("disabled"));)P=P.previousSibling;if(P)return N(P);N(I.previousSibling)}G()}function oe(){let I=H(".dropdown-item.selected",h);if(I){let P=I.nextSibling;for(;P&&(P.style.display==="none"||P.classList.contains("disabled"));)P=P.nextSibling;if(P)return N(P)}M()}function V(I){o.value=I.dataset.value,m.value=I.innerText,o.dispatchEvent(new Event("change"))}function j(){return H(`[data-value="${o.value}"]`,h)}function F(){return j().innerText}function te(){getComputedStyle(h).display==="none"&&(k(""),S(),N(j()),h.style.display="block",D(j()))}function Y(I){let P=ne(".dropdown-item",h);for(let R=0;R{B=B.trim(),s[W]=B,G(B)})),v.placeholder?(c=v.placeholder,N()):c="",m.addEventListener("mousedown",B=>{v.focus(),B.preventDefault()})}function S(){var _;if("options"in o.dataset){let L=JSON.parse((_=o.dataset.options)!=null?_:"{}");h=document.createElement("div"),h.className="dropdown-list";for(let B in L){let W=document.createElement("div");W.className="dropdown-item",W.innerHTML=L[B],W.dataset.value=B,W.addEventListener("click",function(){this.dataset.value&&Z(this.dataset.value)}),h.appendChild(W)}m.appendChild(h),v.addEventListener("focus",()=>{getComputedStyle(h).display==="none"&&(j(),h.scrollTop=0,h.style.display="block")}),v.addEventListener("blur",()=>{getComputedStyle(h).display!=="none"&&(j(),h.style.display="none")}),v.addEventListener("keydown",B=>{switch(B.key){case"Backspace":j();break;case"Enter":getComputedStyle(h).display!=="none"&&(Y(),B.preventDefault());break;case"ArrowUp":getComputedStyle(h).display!=="none"&&($(),B.preventDefault());break;case"ArrowDown":getComputedStyle(h).display!=="none"&&(ee(),B.preventDefault());break;default:a.addKeyCodes.includes(B.key)&&(Y(),B.preventDefault())}}),v.addEventListener("keyup",kn(B=>{let W=v.value.trim();switch(B.key){case"Escape":h.style.display="none";break;case"ArrowUp":case"ArrowDown":return!0;default:h.style.display="block",F(W),W.length>0&&P()}},100))}}function k(){v.addEventListener("focus",()=>m.classList.add("focused")),v.addEventListener("blur",()=>{let _=v.value.trim();_!==""&&Z(_),m.classList.remove("focused")}),v.addEventListener("keydown",_=>{let L=v.value.trim();switch(_.key){case"Backspace":L===""?(oe(s[s.length-1]),v.previousSibling&&v.parentNode.removeChild(v.previousSibling),_.preventDefault()):v.size=Math.max(v.value.length,v.placeholder.length,1);break;case"Enter":case"Comma":L!==""&&Z(L),_.preventDefault();break;case"Escape":V(),v.blur(),_.preventDefault();break;default:if(L!==""&&a.addKeyCodes.includes(_.key)){Z(L),_.preventDefault();break}L.length>0&&(v.size=v.value.length+2);break}})}function D(){x.value=s.join(", "),N()}function N(){c.length>0&&(s.length===0?(v.placeholder=c,v.size=c.length):(v.placeholder="",v.size=1))}function M(_){return s.includes(_)?!1:h?H(`[data-value="${_}"]`,h)!==null:!0}function G(_){let L=document.createElement("span"),B=document.createElement("i");L.className="tag",L.innerHTML=_,L.style.marginRight=".25rem",v.parentNode.insertBefore(L,v),B.className="tag-remove",B.setAttribute("role","button"),B.addEventListener("mousedown",W=>{oe(_),L.parentNode.removeChild(L),W.preventDefault()}),L.appendChild(B)}function Z(_){M(_)?(s.push(_),G(_),D()):N(),v.value="",h&&j()}function oe(_){let L=s.indexOf(_);L>-1&&(s.splice(L,1),D()),h&&j()}function V(){v.value="",N()}function j(){let _=0;ne(".dropdown-item",h).forEach(L=>{getComputedStyle(L).display!=="none"&&_++,s.includes(L.dataset.value)?L.style.display="none":L.style.display="block",L.classList.remove("selected")}),_>0?h.style.display="block":h.style.display="none"}function F(_){let L=0;h.style.display="block",ne(".dropdown-item",h).forEach(B=>{let W=`${B.textContent}`,ie=new RegExp(Ir(Nr(_)),"i");W.match(ie)!==null&&B.style.display!=="none"?(B.style.display="block",L++):B.style.display="none"}),L>0?h.style.display="block":h.style.display="none"}function te(_){let L=h.scrollTop,B=h.clientHeight,W=L+B,ie=getComputedStyle(h),xe=parseInt(ie.paddingTop),Ie=parseInt(ie.paddingBottom),vt=_.offsetTop,T=_.clientHeight,y=vt+T;vtW&&(h.scrollTop=y-B+Ie)}function Y(){let _=H(".dropdown-item.selected",h);_&&getComputedStyle(_).display!=="none"&&(v.value=_.dataset.value)}function I(_){let L=H(".dropdown-item.selected",h);L&&L.classList.remove("selected"),_&&(_.classList.add("selected"),te(_))}function P(){let _=ne(".dropdown-item",h);for(let L=0;L<_.length;L++)if(getComputedStyle(_[L]).display!=="none"){I(_[L]);return}}function R(){let _=ne(".dropdown-item",h);for(let L=_.length-1;L>=0;L--)if(getComputedStyle(_[L]).display!=="none"){I(_[L]);return}}function $(){let _=H(".dropdown-item.selected",h);if(_){let L=_.previousSibling;for(;L&&L.style.display==="none";)L=L.previousSibling;if(L)return I(L);I(_.previousSibling)}R()}function ee(){let _=H(".dropdown-item.selected",h);if(_){let L=_.nextSibling;for(;L&&L.style.display==="none";)L=L.nextSibling;if(L)return I(L)}P()}}};var Or=class{constructor(o){ne(".form-input-date",o).forEach(a=>this[a.name]=new zo(a,He.config.DateInput)),ne(".form-input-image",o).forEach(a=>this[a.name]=new qo(a)),ne(".image-picker",o).forEach(a=>this[a.name]=new jo(a)),ne(".editor-textarea",o).forEach(a=>this[a.name]=new Go(a)),ne("input[type=file]",o).forEach(a=>this[a.name]=new Uo(a)),ne("input[data-field=tags]",o).forEach(a=>this[a.name]=new Ko(a)),ne("input[data-field=duration]",o).forEach(a=>this[a.name]=new _o(a,He.config.DurationInput)),ne("input[type=range]",o).forEach(a=>this[a.name]=new Yo(a)),ne(".form-input-array",o).forEach(a=>this[a.name]=new Wo(a)),ne("select:not([hidden])",o).forEach(a=>this[a.name]=new Xo(a,He.config.SelectInput)),ne(".form-input-reset",o).forEach(a=>{let s=a.dataset.reset;s&&a.addEventListener("click",()=>{let c=document.getElementById(s);c.value="",c.dispatchEvent(new Event("change"))})}),ne("input[data-enable]",o).forEach(a=>{a.addEventListener("change",()=>{let s=a.dataset.enable;if(s){let c=s.split(",");for(let h of c){let m=H(`input[name="${h}"]`);a.checked?m.disabled=!1:m.disabled=!0}}})})}};function tc(u){let o=[];for(let a in u)o.push(`${encodeURIComponent(a)}=${encodeURIComponent(u[a])}`);return o.join("&")}function ql(u){let o=[];for(let a of Array.from(u.elements))if(a.name&&!a.disabled&&a.dataset.formIgnore!=="true"&&a.type!=="file"&&a.type!=="reset"&&a.type!=="submit"&&a.type!=="button")if(a.type==="select-multiple")for(let s of a.options)s.selected&&o.push(`${encodeURIComponent(a.name)}=${encodeURIComponent(s.value)}`);else(a.type!=="checkbox"&&a.type!=="radio"||a.checked)&&o.push(`${encodeURIComponent(a.name)}=${encodeURIComponent(a.value)}`);return o.join("&")}function $o(u,o){let a=document.createElement("form");a.action=u,a.method="post";let s=document.createElement("input");s.type="hidden",s.name="csrf-token",s.value=o,a.appendChild(s),document.body.appendChild(a),a.submit(),document.body.removeChild(a)}var Qo=class{constructor(o){Ue(this,"inputs");Ue(this,"originalData");this.inputs=new Or(o),this.originalData=ql(o),window.addEventListener("beforeunload",s),o.addEventListener("submit",c);let a=(m=!0)=>{let v=ne("input[type=file]",o);if(m===!0&&v.length>0){for(let x of Array.from(v))if(x.files&&x.files.length>0)return!0}return ql(o)!==this.originalData};ne('a[href]:not([href^="#"]):not([target="_blank"]):not([target^="formwork-"])').forEach(m=>{m.addEventListener("click",v=>{a()&&(v.preventDefault(),He.modals.changesModal.show(void 0,x=>{let w=H("[data-command=continue]",x.element);w&&(w.dataset.href=m.href)}))})}),ne("input[type=file][data-auto-upload]",o).forEach(m=>{m.addEventListener("change",()=>{a(!1)||o.requestSubmit(H("[type=submit]",o))})}),h();function s(m){a()&&(m.preventDefault(),m.returnValue=!1)}function c(){window.removeEventListener("beforeunload",s)}function h(){let m=document.getElementById("changesModal"),v=document.getElementById("deletePageModal"),x=document.getElementById("deleteUserModal");if(m){let w=H("[data-command=continue]",m);w&&w.addEventListener("click",function(){c(),this.dataset.href&&(window.location.href=this.dataset.href)})}if(v){let w=H("[data-command=delete]",v);w&&w.addEventListener("click",c)}if(x){let w=H("[data-command=delete]",x);w&&w.addEventListener("click",c)}}}};var Zo=class{constructor(){ne("[data-form]").forEach(o=>{o.dataset.form&&(this[o.dataset.form]=new Qo(o))})}};function nc(u=document.body){return u.querySelector("button, .button, input:not([type=hidden]), select, textarea")||u}var Jo=class{constructor(o){Ue(this,"element");Ue(this,"inputs");var s;this.element=o,document.addEventListener("keyup",c=>{c.key==="Escape"&&this.hide()}),window.addEventListener("focus",()=>nc(this.element).focus()),this.inputs=new Or(this.element),(s=H("[data-dismiss]",o))==null||s.addEventListener("click",()=>this.hide());let a=!1;o.addEventListener("mousedown",()=>a=!0),o.addEventListener("click",c=>{a&&c.target===o&&this.hide(),a=!1}),document.addEventListener("click",c=>{let h=c.target.closest("[data-modal]");if(h&&h.dataset.modal===o.id){let m=h.dataset.modalAction;m?this.show(m):this.show()}})}show(o,a){let s=this.element;s.setAttribute("role","dialog"),s.setAttribute("aria-modal","true"),s.classList.add("show"),o&&(H("form",s).action=o),document.activeElement.blur(),H("[autofocus]",s)?H("[autofocus]",s).focus():nc(s).focus(),typeof a=="function"&&a(this),ne(".tooltip").forEach(c=>c.parentNode&&c.parentNode.removeChild(c)),this.createBackdrop()}hide(){let o=this.element;o.classList.remove("show"),o.removeAttribute("role"),o.removeAttribute("aria-modal"),this.removeBackdrop()}createBackdrop(){if(!H(".modal-backdrop")){let o=document.createElement("div");o.className="modal-backdrop",document.body.appendChild(o)}}removeBackdrop(){let o=H(".modal-backdrop");o&&o.parentNode&&o.parentNode.removeChild(o)}};var Vo=class{constructor(){ne(".modal").forEach(o=>this[o.id]=new Jo(o))}};var ea=class{constructor(){var o;H(".sidebar-toggle")&&((o=H(".sidebar-toggle"))==null||o.addEventListener("click",()=>{if(H(".sidebar").classList.toggle("show")){if(!H(".sidebar-backdrop")){let a=document.createElement("div");a.className="sidebar-backdrop hide-from-md",document.body.appendChild(a)}}else{let a=H(".sidebar-backdrop");a&&a.parentNode.removeChild(a)}})),H("[data-command=save]")&&document.addEventListener("keydown",a=>{var s;!a.altKey&&(a.ctrlKey||a.metaKey)&&a.key==="s"&&((s=H("[data-command=save]"))==null||s.click(),a.preventDefault())})}};var Bt=class{constructor(o,a,s){Ue(this,"text");Ue(this,"type");Ue(this,"options");Ue(this,"containerElement");Ue(this,"notificationElement");let c={interval:5e3,icon:void 0,newestOnTop:!0,fadeOutDelay:300,mouseleaveDelay:1e3,typeClass:{info:"info",success:"success",warning:"warning",error:"danger"}};this.text=o,this.type=a,this.options=Object.assign({},c,s),this.containerElement=H(".notification-container")}show(){let o=(a,s,c)=>{this.containerElement||(this.containerElement=document.createElement("div"),this.containerElement.className="notification-container",document.body.appendChild(this.containerElement));let h=document.createElement("div");h.className=`notification notification-${this.options.typeClass[s]}`,h.innerHTML=a,this.options.newestOnTop&&this.containerElement.childNodes.length>0?this.containerElement.insertBefore(h,this.containerElement.childNodes[0]):this.containerElement.appendChild(h);let m=setTimeout(()=>this.remove(),c);return h.addEventListener("click",()=>this.remove()),h.addEventListener("mouseenter",()=>clearTimeout(m)),h.addEventListener("mouseleave",()=>(m=setTimeout(()=>this.remove()),this.options.mouseleaveDelay)),h};this.options.icon?ki(this.options.icon,a=>{this.notificationElement=o(this.text,this.type,this.options.interval),this.notificationElement.insertAdjacentHTML("afterbegin",a)}):this.notificationElement=o(this.text,this.type,this.options.interval)}remove(){this.notificationElement.classList.add("fadeout"),setTimeout(()=>{this.containerElement&&this.notificationElement&&this.notificationElement.parentNode&&this.containerElement.removeChild(this.notificationElement),this.containerElement&&this.containerElement.childNodes.length<1&&(this.containerElement.parentNode&&document.body.removeChild(this.containerElement),this.containerElement=null)},this.options.fadeOutDelay)}};var ta=class{constructor(){let o=0;ne("meta[name=notification]").forEach(a=>{setTimeout(()=>{let s=JSON.parse(a.content);new Bt(s.text,s.type,{interval:s.interval,icon:s.icon}).show()},o),o+=500,a.parentNode.removeChild(a)})}};var na=class{constructor(){ne(".collapsible .section-header").forEach(o=>{o.addEventListener("click",()=>{o.parentNode.classList.toggle("collapsed")})})}};var An=class{constructor(o,a={}){Ue(this,"text");Ue(this,"options");Ue(this,"delayTimer");Ue(this,"timeoutTimer");Ue(this,"tooltipElement");let s={container:document.body,referenceElement:document.body,position:"top",offset:{x:0,y:0},delay:500,timeout:null,removeOnMouseout:!0,removeOnClick:!1};this.text=o,this.options=Object.assign({},s,a)}show(){let o=this.options,a=o.container;this.delayTimer=setTimeout(()=>{let c=document.createElement("div");c.className="tooltip",c.setAttribute("role","tooltip"),c.style.display="block",c.innerHTML=this.text;let h=v=>{let x=o.referenceElement,w=o.offset,S=x.getBoundingClientRect(),k=S.top+window.scrollY,D=S.left+window.scrollX,N=(S.width-v.offsetWidth)/2,M=(S.height-v.offsetHeight)/2;switch(o.position){case"top":return{top:Math.round(k-v.offsetHeight+w.y),left:Math.round(D+N+w.x)};case"right":return{top:Math.round(k+M+w.y),left:Math.round(D+x.offsetWidth+w.x)};case"bottom":return{top:Math.round(k+x.offsetHeight+w.y),left:Math.round(D+N+w.x)};case"left":return{top:Math.round(k+M+w.y),left:Math.round(D-v.offsetWidth+w.x)};case"center":return{top:Math.round(k+M+w.y),left:Math.round(D+N+w.x)}}};a.appendChild(c);let m=h(c);c.style.top=`${m.top}px`,c.style.left=`${m.left}px`,o.timeout!==null&&(this.timeoutTimer=setTimeout(()=>this.remove(),o.timeout)),this.tooltipElement=c},o.delay);let s=o.referenceElement;(s.tagName.toLowerCase()==="button"||s.classList.contains("button"))&&(s.addEventListener("click",()=>this.remove()),s.addEventListener("blur",()=>this.remove())),o.removeOnMouseout&&s.addEventListener("mouseout",()=>this.remove()),o.removeOnClick&&s.addEventListener("click",()=>this.remove())}remove(){clearTimeout(this.delayTimer),clearTimeout(this.timeoutTimer);let o=this.tooltipElement,a=this.options.container;o!==void 0&&a.contains(o)&&a.removeChild(o)}};var ra=class{constructor(){ne("[title]",document.body).forEach(o=>{o.dataset.tooltip=o.title,o.removeAttribute("title")}),ne("[data-tooltip]").forEach(o=>{o.addEventListener("mouseover",()=>{new An(o.dataset.tooltip,{referenceElement:o,position:"bottom",offset:{x:0,y:4}}).show()}),(o.tagName.toLowerCase()==="button"||o.classList.contains("button"))&&o.addEventListener("focus",()=>{new An(o.dataset.tooltip,{referenceElement:o,position:"bottom",offset:{x:0,y:4},delay:0}).show()})}),document.addEventListener("mouseover",kn(o=>{let a=o.target.closest(".truncate");a&&a.offsetWidth{let h=JSON.parse(s.response),m=h.code||s.status;parseInt(m)===400?location.reload():a(h,s)};s.onload=c,s.onerror=c}return s}};var ia=class{constructor(){let o=H("[data-view=backups] [data-command=make-backup]");o&&o.addEventListener("click",function(){let a=this,c=(()=>{let h=H(".spinner");return h||(h=document.createElement("div"),a.insertAdjacentElement("afterend",h)),h.className="spinner",h.innerHTML="",h})();a.disabled=!0,new zt({method:"POST",url:`${He.config.baseUri}backup/make/`,data:{"csrf-token":H("meta[name=csrf-token]").content}},h=>{if(h.status==="success"){a.disabled=!1,c.classList.add("spinner-success"),ht("check",c);let v=H("#backups-row");if(v){let x=H("#backups-table"),w=v.content.cloneNode(!0);H(".backup-uri",w).href=h.data.uri,H(".backup-uri",w).innerHTML=h.data.filename,H(".backup-date",w).innerHTML=h.data.date,H(".backup-size",w).innerHTML=h.data.size,H(".backup-delete",w).dataset.modalAction=h.data.deleteUri,H(".backup-last-time").innerHTML=He.config.Backups.labels.now,H("tbody",x).prepend(w);let S=h.data.maxFiles;ne("tr",x).forEach((k,D)=>{D+1>S&&k.remove()})}}h.status==="error"&&(c.classList.add("spinner-danger"),ht("exclamation",c),a.disabled=!1),new Bt(h.message,h.status,{icon:"check-circle"}).show(),h.status==="success"&&setTimeout(()=>{$o(h.data.uri,H("meta[name=csrf-token]").content)},1e3)})})}};var Di={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},np=8,rc={"&":"&","<":"<",">":">",'"':""","'":"'"};function ic(u,o){return typeof u=="number"?u+o:u}function Kl(u){if(typeof u=="string"){let o=/^(\d+)\s*(.*)$/g.exec(u);return{value:o?+o[1]:0,unit:(o==null?void 0:o[2])||void 0}}return{value:Number(u)}}function rp(u){return String.fromCharCode(97+u%26)}var jl=2221e-19;function ip(u){return Math.floor(Math.log(Math.abs(u))/Math.LN10)}function Ci(u,o,a){return o/a.range*u}function op(u,o){let a=Math.pow(10,o||np);return Math.round(u*a)/a}function ap(u){if(u===1)return u;function o(m,v){return m%v===0?v:o(v,m%v)}function a(m){return m*m+1}let s=2,c=2,h;if(u%2===0)return 2;do s=a(s)%u,c=a(a(c))%u,h=o(Math.abs(s-c),u);while(h===1);return h}function lp(u,o,a){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,c={high:o.high,low:o.low,valueRange:0,oom:0,step:0,min:0,max:0,range:0,numberOfSteps:0,values:[]};c.valueRange=c.high-c.low,c.oom=ip(c.valueRange),c.step=Math.pow(10,c.oom),c.min=Math.floor(c.low/c.step)*c.step,c.max=Math.ceil(c.high/c.step)*c.step,c.range=c.max-c.min,c.numberOfSteps=Math.round(c.range/c.step);let m=Ci(u,c.step,c)=a)c.step=1;else if(s&&v=a)c.step=v;else{let D=0;for(;;){if(m&&Ci(u,c.step,c)<=a)c.step*=2;else if(!m&&Ci(u,c.step/2,c)>=a){if(c.step/=2,s&&c.step%1!==0){c.step*=2;break}}else break;if(D++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}}c.step=Math.max(c.step,jl);function x(D,N){return D===(D+=N)&&(D*=1+(N>0?jl:-jl)),D}let w=c.min,S=c.max;for(;w+c.step<=c.low;)w=x(w,c.step);for(;S-c.step>=c.high;)S=x(S,-c.step);c.min=w,c.max=S,c.range=c.max-c.min;let k=[];for(let D=c.min;D<=c.max;D=x(D,c.step)){let N=op(D);N!==k[k.length-1]&&k.push(N)}return c.values=k,c}function Ai(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;su;function ac(u,o){return Array.from({length:u},o?(a,s)=>o(s):()=>{})}function Tt(u,o){return u!==null&&typeof u=="object"&&Reflect.has(u,o)}function aa(u){return u!==null&&isFinite(u)}function sp(u){return!u&&u!==0}function Fr(u){return aa(u)?Number(u):void 0}function up(u){return Array.isArray(u)?u.every(Array.isArray):!1}function fp(u,o){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=0;u[a?"reduceRight":"reduce"]((c,h,m)=>o(h,s++,m),void 0)}function cp(u,o){let a=Array.isArray(u)?u[o]:Tt(u,"data")?u.data[o]:null;return Tt(a,"meta")?a.meta:void 0}function dc(u){return u==null||typeof u=="number"&&isNaN(u)}function dp(u){return Array.isArray(u)&&u.every(o=>Array.isArray(o)||Tt(o,"data"))}function hp(u){return typeof u=="object"&&u!==null&&(Reflect.has(u,"x")||Reflect.has(u,"y"))}function rs(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";return hp(u)&&Tt(u,o)?Fr(u[o]):Fr(u)}function pp(u,o,a){o=ot(ot({},o),a?a==="x"?o.axisX:o.axisY:{});let s={high:o.high===void 0?-Number.MAX_VALUE:+o.high,low:o.low===void 0?Number.MAX_VALUE:+o.low},c=o.high===void 0,h=o.low===void 0;function m(v){if(!dc(v))if(Array.isArray(v))for(let x=0;xs.high&&(s.high=x),h&&x0||(s.high=1),s.low=0)),s}function mp(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,c,h={labels:(u.labels||[]).slice(),series:yp(u.series,a,s)},m=h.labels.length;return up(h.series)?(c=Math.max(m,...h.series.map(v=>v.length)),h.series.forEach(v=>{v.push(...ac(Math.max(0,c-v.length)))})):c=h.series.length,h.labels.push(...ac(Math.max(0,c-m),()=>"")),o&&gp(h),h}function gp(u){var o;(o=u.labels)===null||o===void 0||o.reverse(),u.series.reverse();for(let a of u.series)Tt(a,"data")?a.data.reverse():Array.isArray(a)&&a.reverse()}function vp(u,o){let a,s;if(typeof u!="object"){let c=Fr(u);o==="x"?a=c:s=c}else Tt(u,"x")&&(a=Fr(u.x)),Tt(u,"y")&&(s=Fr(u.y));if(!(a===void 0&&s===void 0))return{x:a,y:s}}function lc(u,o){if(!dc(u))return o?vp(u,o):Fr(u)}function $l(u,o){return Array.isArray(u)?u.map(a=>Tt(a,"value")?lc(a.value,o):lc(a,o)):$l(u.data,o)}function yp(u,o,a){if(dp(u))return u.map(c=>$l(c,o));let s=$l(u,o);return a?s.map(c=>[c]):s}function bp(u,o,a){let s=ot({increasingX:!1,fillHoles:!1},a),c=[],h=!0;for(let m=0;m=2&&u[m]<=u[m-2]&&(h=!0),h&&(c.push({pathCoordinates:[],valueData:[]}),h=!1),c[c.length-1].pathCoordinates.push(u[m],u[m+1]),c[c.length-1].valueData.push(o[m/2]));return c}function sc(u){let o="";return u==null?u:(typeof u=="number"?o=""+u:typeof u=="object"?o=JSON.stringify({data:u}):o=String(u),Object.keys(rc).reduce((a,s)=>a.replaceAll(s,rc[s]),o))}var Ql=class{call(o,a){return this.svgElements.forEach(s=>Reflect.apply(s[o],s,a)),this}attr(){for(var o=arguments.length,a=new Array(o),s=0;s3&&arguments[3]!==void 0?arguments[3]:!1,c=arguments.length>4?arguments[4]:void 0,D=a,{easing:h}=D,m=uf(D,["easing"]),v={},x,w;h&&(x=Array.isArray(h)?h:hc[h]),m.begin=ic(m.begin,"ms"),m.dur=ic(m.dur,"ms"),x&&(m.calcMode="spline",m.keySplines=x.join(" "),m.keyTimes="0;1"),s&&(m.fill="freeze",v[o]=m.from,u.attr(v),w=Kl(m.begin||0).value,m.begin="indefinite");let S=u.elem("animate",ot({attributeName:o},m));s&&setTimeout(()=>{try{S._node.beginElement()}catch(N){v[o]=m.to,u.attr(v),S.remove()}},w);let k=S.getNode();c&&k.addEventListener("beginEvent",()=>c.emit("animationBegin",{element:u,animate:k,params:a})),k.addEventListener("endEvent",()=>{c&&c.emit("animationEnd",{element:u,animate:k,params:a}),s&&(v[o]=m.to,u.attr(v),S.remove())})}var Hi=class u{attr(o,a){return typeof o=="string"?a?this._node.getAttributeNS(a,o):this._node.getAttribute(o):(Object.keys(o).forEach(s=>{if(o[s]!==void 0)if(s.indexOf(":")!==-1){let c=s.split(":");this._node.setAttributeNS(Di[c[0]],s,String(o[s]))}else this._node.setAttribute(s,String(o[s]))}),this)}elem(o,a,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return new u(o,a,s,this,c)}parent(){return this._node.parentNode instanceof SVGElement?new u(this._node.parentNode):null}root(){let o=this._node;for(;o.nodeName!=="svg"&&o.parentElement;)o=o.parentElement;return new u(o)}querySelector(o){let a=this._node.querySelector(o);return a?new u(a):null}querySelectorAll(o){let a=this._node.querySelectorAll(o);return new Ql(a)}getNode(){return this._node}foreignObject(o,a,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,h;if(typeof o=="string"){let v=document.createElement("div");v.innerHTML=o,h=v.firstChild}else h=o;h instanceof Element&&h.setAttribute("xmlns",Di.xmlns);let m=this.elem("foreignObject",a,s,c);return m._node.appendChild(h),m}text(o){return this._node.appendChild(document.createTextNode(o)),this}empty(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}remove(){var o;return(o=this._node.parentNode)===null||o===void 0||o.removeChild(this._node),this.parent()}replace(o){var a;return(a=this._node.parentNode)===null||a===void 0||a.replaceChild(o._node,this._node),o}append(o){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&this._node.firstChild?this._node.insertBefore(o._node,this._node.firstChild):this._node.appendChild(o._node),this}classes(){let o=this._node.getAttribute("class");return o?o.trim().split(/\s+/):[]}addClass(o){return this._node.setAttribute("class",this.classes().concat(o.trim().split(/\s+/)).filter(function(a,s,c){return c.indexOf(a)===s}).join(" ")),this}removeClass(o){let a=o.trim().split(/\s+/);return this._node.setAttribute("class",this.classes().filter(s=>a.indexOf(s)===-1).join(" ")),this}removeAllClasses(){return this._node.setAttribute("class",""),this}height(){return this._node.getBoundingClientRect().height}width(){return this._node.getBoundingClientRect().width}animate(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2?arguments[2]:void 0;return Object.keys(o).forEach(c=>{let h=o[c];Array.isArray(h)?h.forEach(m=>uc(this,c,m,!1,s)):uc(this,c,h,a,s)}),this}constructor(o,a,s,c,h=!1){o instanceof Element?this._node=o:(this._node=document.createElementNS(Di.svg,o),o==="svg"&&this.attr({"xmlns:ct":Di.ct})),a&&this.attr(a),s&&this.addClass(s),c&&(h&&c._node.firstChild?c._node.insertBefore(this._node,c._node.firstChild):c._node.appendChild(this._node))}};Hi.Easing=hc;function xp(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"100%",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"100%",s=arguments.length>3?arguments[3]:void 0;Array.from(u.querySelectorAll("svg")).filter(h=>h.getAttributeNS(Di.xmlns,"ct")).forEach(h=>u.removeChild(h));let c=new Hi("svg").attr({width:o,height:a}).attr({style:"width: ".concat(o,"; height: ").concat(a,";")});return s&&c.addClass(s),u.appendChild(c.getNode()),c}function wp(u){return typeof u=="number"?{top:u,right:u,bottom:u,left:u}:u===void 0?{top:0,right:0,bottom:0,left:0}:{top:typeof u.top=="number"?u.top:0,right:typeof u.right=="number"?u.right:0,bottom:typeof u.bottom=="number"?u.bottom:0,left:typeof u.left=="number"?u.left:0}}function Ep(u,o){var a,s,c,h;let m=!!(o.axisX||o.axisY),v=((a=o.axisY)===null||a===void 0?void 0:a.offset)||0,x=((s=o.axisX)===null||s===void 0?void 0:s.offset)||0,w=(c=o.axisY)===null||c===void 0?void 0:c.position,S=(h=o.axisX)===null||h===void 0?void 0:h.position,k=u.width()||Kl(o.width).value||0,D=u.height()||Kl(o.height).value||0,N=wp(o.chartPadding);k=Math.max(k,v+N.left+N.right),D=Math.max(D,x+N.top+N.bottom);let M={x1:0,x2:0,y1:0,y2:0,padding:N,width(){return this.x2-this.x1},height(){return this.y1-this.y2}};return m?(S==="start"?(M.y2=N.top+x,M.y1=Math.max(D-N.bottom,M.y2+1)):(M.y2=N.top,M.y1=Math.max(D-N.bottom-x,M.y2+1)),w==="start"?(M.x1=N.left+v,M.x2=Math.max(k-N.right,M.x1+1)):(M.x1=N.left,M.x2=Math.max(k-N.right-v,M.x1+1))):(M.x1=N.left,M.x2=Math.max(k-N.right,M.x1+1),M.y2=N.top,M.y1=Math.max(D-N.bottom,M.y2+1)),M}function Lp(u,o,a,s,c,h,m,v){let x={["".concat(a.units.pos,"1")]:u,["".concat(a.units.pos,"2")]:u,["".concat(a.counterUnits.pos,"1")]:s,["".concat(a.counterUnits.pos,"2")]:s+c},w=h.elem("line",x,m.join(" "));v.emit("draw",ot({type:"grid",axis:a,index:o,group:h,element:w},x))}function Sp(u,o,a,s){let c=u.elem("rect",{x:o.x1,y:o.y2,width:o.width(),height:o.height()},a,!0);s.emit("draw",{type:"gridBackground",group:u,element:c})}function Tp(u,o,a,s,c,h,m,v,x,w){let S={[c.units.pos]:u+m[c.units.pos],[c.counterUnits.pos]:m[c.counterUnits.pos],[c.units.len]:o,[c.counterUnits.len]:Math.max(0,h-10)},k=Math.round(S[c.units.len]),D=Math.round(S[c.counterUnits.len]),N=document.createElement("span");N.className=x.join(" "),N.style[c.units.len]=k+"px",N.style[c.counterUnits.len]=D+"px",N.textContent=String(s);let M=v.foreignObject(N,ot({style:"overflow: visible;"},S));w.emit("draw",ot({type:"label",axis:c,index:a,group:v,element:M,text:s},S))}function fc(u,o,a){let s,c=[];function h(v){let x=s;s=Ai({},u),o&&o.forEach(w=>{window.matchMedia(w[0]).matches&&(s=Ai(s,w[1]))}),a&&v&&a.emit("optionsChanged",{previousOptions:x,currentOptions:s})}function m(){c.forEach(v=>v.removeEventListener("change",h))}if(window.matchMedia)o&&o.forEach(v=>{let x=window.matchMedia(v[0]);x.addEventListener("change",h),c.push(x)});else throw new Error("window.matchMedia not found! Make sure you're using a polyfill.");return h(),{removeMediaQueryListeners:m,getCurrentOptions(){return s}}}var Zl={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},kp={accuracy:3};function oa(u,o,a,s,c,h){let m=ot(ot({command:c?u.toLowerCase():u.toUpperCase()},o),h?{data:h}:{});a.splice(s,0,m)}function Yl(u,o){u.forEach((a,s)=>{Zl[a.command.toLowerCase()].forEach((c,h)=>{o(a,c,s,h,u)})})}var Ni=class u{static join(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2?arguments[2]:void 0,c=new u(a,s);for(let h=0;h2&&arguments[2]!==void 0?arguments[2]:!1,c=arguments.length>3?arguments[3]:void 0;return oa("M",{x:+o,y:+a},this.pathElements,this.pos++,s,c),this}line(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,c=arguments.length>3?arguments[3]:void 0;return oa("L",{x:+o,y:+a},this.pathElements,this.pos++,s,c),this}curve(o,a,s,c,h,m){let v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,x=arguments.length>7?arguments[7]:void 0;return oa("C",{x1:+o,y1:+a,x2:+s,y2:+c,x:+h,y:+m},this.pathElements,this.pos++,v,x),this}arc(o,a,s,c,h,m,v){let x=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,w=arguments.length>8?arguments[8]:void 0;return oa("A",{rx:o,ry:a,xAr:s,lAf:c,sf:h,x:m,y:v},this.pathElements,this.pos++,x,w),this}parse(o){let a=o.replace(/([A-Za-z])(-?[0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce((c,h)=>(h.match(/[A-Za-z]/)&&c.push([]),c[c.length-1].push(h),c),[]);a[a.length-1][0].toUpperCase()==="Z"&&a.pop();let s=a.map(c=>{let h=c.shift(),m=Zl[h.toLowerCase()];return ot({command:h},m.reduce((v,x,w)=>(v[x]=+c[w],v),{}))});return this.pathElements.splice(this.pos,0,...s),this.pos+=s.length,this}stringify(){let o=Math.pow(10,this.options.accuracy);return this.pathElements.reduce((a,s)=>{let c=Zl[s.command.toLowerCase()].map(h=>{let m=s[h];return this.options.accuracy?Math.round(m*o)/o:m});return a+s.command+c.join(",")},"")+(this.close?"Z":"")}scale(o,a){return Yl(this.pathElements,(s,c)=>{s[c]*=c[0]==="x"?o:a}),this}translate(o,a){return Yl(this.pathElements,(s,c)=>{s[c]+=c[0]==="x"?o:a}),this}transform(o){return Yl(this.pathElements,(a,s,c,h,m)=>{let v=o(a,s,c,h,m);(v||v===0)&&(a[s]=v)}),this}clone(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new u(o||this.close);return a.pos=this.pos,a.pathElements=this.pathElements.slice().map(s=>ot({},s)),a.options=ot({},this.options),a}splitByCommand(o){let a=[new u];return this.pathElements.forEach(s=>{s.command===o.toUpperCase()&&a[a.length-1].pathElements.length!==0&&a.push(new u),a[a.length-1].pathElements.push(s)}),a}constructor(o=!1,a){this.close=o,this.pathElements=[],this.pos=0,this.options=ot(ot({},kp),a)}};function Jl(u){let o=ot({fillHoles:!1},u);return function(s,c){let h=new Ni,m=!0;for(let v=0;v1)return Ni.join(h.map(m=>a(m.pathCoordinates,m.valueData)));{if(s=h[0].pathCoordinates,c=h[0].valueData,s.length<=4)return Jl()(s,c);let m=[],v=[],x=s.length/2,w=[],S=[],k=[],D=[];for(let M=0;M0!=S[M]>0?w[M]=0:(w[M]=3*(D[M-1]+D[M])/((2*D[M]+D[M-1])/S[M-1]+(D[M]+2*D[M-1])/S[M]),isFinite(w[M])||(w[M]=0));let N=new Ni().move(m[0],v[0],!1,c[0]);for(let M=0;Mh(a)),s.forEach(h=>h(o,a))}constructor(){this.listeners=new Map,this.allListeners=new Set}},Xl=new WeakMap,es=class{update(o,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(o&&(this.data=o||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),a&&(this.options=Ai({},s?this.options:this.defaultOptions,a),!this.initializeTimeoutId)){var c;(c=this.optionsProvider)===null||c===void 0||c.removeMediaQueryListeners(),this.optionsProvider=fc(this.options,this.responsiveOptions,this.eventEmitter)}return!this.initializeTimeoutId&&this.optionsProvider&&this.createChart(this.optionsProvider.getCurrentOptions()),this}detach(){if(this.initializeTimeoutId)window.clearTimeout(this.initializeTimeoutId);else{var o;window.removeEventListener("resize",this.resizeListener),(o=this.optionsProvider)===null||o===void 0||o.removeMediaQueryListeners()}return Xl.delete(this.container),this}on(o,a){return this.eventEmitter.on(o,a),this}off(o,a){return this.eventEmitter.off(o,a),this}initialize(){window.addEventListener("resize",this.resizeListener),this.optionsProvider=fc(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.on("optionsChanged",()=>this.update()),this.options.plugins&&this.options.plugins.forEach(o=>{Array.isArray(o)?o[0](this,o[1]):o(this)}),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=null}constructor(o,a,s,c,h){this.data=a,this.defaultOptions=s,this.options=c,this.responsiveOptions=h,this.eventEmitter=new Vl,this.resizeListener=()=>this.update(),this.initializeTimeoutId=setTimeout(()=>this.initialize(),0);let m=typeof o=="string"?document.querySelector(o):o;if(!m)throw new Error("Target element is not found");this.container=m;let v=Xl.get(m);v&&v.detach(),Xl.set(m,this)}},Zn={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}},la=class{createGridAndLabels(o,a,s,c){let h=this.units.pos==="x"?s.axisX:s.axisY,m=this.ticks.map((x,w)=>this.projectValue(x,w)),v=this.ticks.map(h.labelInterpolationFnc);m.forEach((x,w)=>{let S=v[w],k={x:0,y:0},D;m[w+1]?D=m[w+1]-x:D=Math.max(this.axisLength-x,this.axisLength/this.ticks.length),!(S!==""&&sp(S))&&(this.units.pos==="x"?(x=this.chartRect.x1+x,k.x=s.axisX.labelOffset.x,s.axisX.position==="start"?k.y=this.chartRect.padding.top+s.axisX.labelOffset.y+5:k.y=this.chartRect.y1+s.axisX.labelOffset.y+5):(x=this.chartRect.y1-x,k.y=s.axisY.labelOffset.y-D,s.axisY.position==="start"?k.x=this.chartRect.padding.left+s.axisY.labelOffset.x:k.x=this.chartRect.x2+s.axisY.labelOffset.x+10),h.showGrid&&Lp(x,w,this,this.gridOffset,this.chartRect[this.counterUnits.len](),o,[s.classNames.grid,s.classNames[this.units.dir]],c),h.showLabel&&Tp(x,D,w,S,this,h.offset,k,a,[s.classNames.label,s.classNames[this.units.dir],h.position==="start"?s.classNames[h.position]:s.classNames.end],c))})}constructor(o,a,s){this.units=o,this.chartRect=a,this.ticks=s,this.counterUnits=o===Zn.x?Zn.y:Zn.x,this.axisLength=a[this.units.rectEnd]-a[this.units.rectStart],this.gridOffset=a[this.units.rectOffset]}},ts=class extends la{projectValue(o){let a=Number(rs(o,this.units.pos));return this.axisLength*(a-this.bounds.min)/this.bounds.range}constructor(o,a,s,c){let h=c.highLow||pp(a,c,o.pos),m=lp(s[o.rectEnd]-s[o.rectStart],h,c.scaleMinSpace||20,c.onlyInteger),v={min:m.min,max:m.max};super(o,s,m.values),this.bounds=m,this.range=v}};var ns=class extends la{projectValue(o,a){return this.stepLength*a}constructor(o,a,s,c){let h=c.ticks||[];super(o,s,h);let m=Math.max(1,h.length-(c.stretch?1:0));this.stepLength=this.axisLength/m,this.stretch=!!c.stretch}};function Mi(u,o,a){var s;if(Tt(u,"name")&&u.name&&(!((s=o.series)===null||s===void 0)&&s[u.name])){let h=(o==null?void 0:o.series[u.name])[a];return h===void 0?o[a]:h}else return o[a]}var cc={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:oc,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:oc,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}},sa=class extends es{createChart(o){let{data:a}=this,s=mp(a,o.reverseData,!0),c=xp(this.container,o.width,o.height,o.classNames.chart);this.svg=c;let h=c.elem("g").addClass(o.classNames.gridGroup),m=c.elem("g"),v=c.elem("g").addClass(o.classNames.labelGroup),x=Ep(c,o),w,S;o.axisX.type===void 0?w=new ns(Zn.x,s.series,x,El(ot({},o.axisX),{ticks:s.labels,stretch:o.fullWidth})):w=new o.axisX.type(Zn.x,s.series,x,o.axisX),o.axisY.type===void 0?S=new ts(Zn.y,s.series,x,El(ot({},o.axisY),{high:aa(o.high)?o.high:o.axisY.high,low:aa(o.low)?o.low:o.axisY.low})):S=new o.axisY.type(Zn.y,s.series,x,o.axisY),w.createGridAndLabels(h,v,o,this.eventEmitter),S.createGridAndLabels(h,v,o,this.eventEmitter),o.showGridBackground&&Sp(h,x,o.classNames.gridBackground,this.eventEmitter),fp(a.series,(k,D)=>{let N=m.elem("g"),M=Tt(k,"name")&&k.name,G=Tt(k,"className")&&k.className,Z=Tt(k,"meta")?k.meta:void 0;M&&N.attr({"ct:series-name":M}),Z&&N.attr({"ct:meta":sc(Z)}),N.addClass([o.classNames.series,G||"".concat(o.classNames.series,"-").concat(rp(D))].join(" "));let oe=[],V=[];s.series[D].forEach((Y,I)=>{let P={x:x.x1+w.projectValue(Y,I,s.series[D]),y:x.y1-S.projectValue(Y,I,s.series[D])};oe.push(P.x,P.y),V.push({value:Y,valueIndex:I,meta:cp(k,I)})});let j={lineSmooth:Mi(k,o,"lineSmooth"),showPoint:Mi(k,o,"showPoint"),showLine:Mi(k,o,"showLine"),showArea:Mi(k,o,"showArea"),areaBase:Mi(k,o,"areaBase")},F;typeof j.lineSmooth=="function"?F=j.lineSmooth:F=j.lineSmooth?Cp():Jl();let te=F(oe,V);if(j.showPoint&&te.pathElements.forEach(Y=>{let{data:I}=Y,P=N.elem("line",{x1:Y.x,y1:Y.y,x2:Y.x+.01,y2:Y.y},o.classNames.point);if(I){let R,$;Tt(I.value,"x")&&(R=I.value.x),Tt(I.value,"y")&&($=I.value.y),P.attr({"ct:value":[R,$].filter(aa).join(","),"ct:meta":sc(I.meta)})}this.eventEmitter.emit("draw",{type:"point",value:I==null?void 0:I.value,index:(I==null?void 0:I.valueIndex)||0,meta:I==null?void 0:I.meta,series:k,seriesIndex:D,axisX:w,axisY:S,group:N,element:P,x:Y.x,y:Y.y,chartRect:x})}),j.showLine){let Y=N.elem("path",{d:te.stringify()},o.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:s.series[D],path:te.clone(),chartRect:x,index:D,series:k,seriesIndex:D,meta:Z,axisX:w,axisY:S,group:N,element:Y})}if(j.showArea&&S.range){let Y=Math.max(Math.min(j.areaBase,S.range.max),S.range.min),I=x.y1-S.projectValue(Y);te.splitByCommand("M").filter(P=>P.pathElements.length>1).map(P=>{let R=P.pathElements[0],$=P.pathElements[P.pathElements.length-1];return P.clone(!0).position(0).remove(1).move(R.x,I).line(R.x,R.y).position(P.pathElements.length+1).line($.x,I)}).forEach(P=>{let R=N.elem("path",{d:P.stringify()},o.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:s.series[D],path:P.clone(),series:k,seriesIndex:D,axisX:w,axisY:S,chartRect:x,index:D,group:N,element:R,meta:Z})})}},o.reverseData),this.eventEmitter.emit("created",{chartRect:x,axisX:w,axisY:S,svg:c,options:o})}constructor(o,a,s,c){super(o,a,cc,Ai({},cc,s),c),this.data=a}};var Pr=class{constructor(o,a){let c={showArea:!0,fullWidth:!0,scaleMinSpace:20,divisor:5,chartPadding:20,lineSmooth:!1,low:0,axisX:{showGrid:!1,labelOffset:{x:0,y:10},labelInterpolationFnc:(m,v,x)=>v%Math.floor(x.length/(o.clientWidth/100))?null:m},axisY:{onlyInteger:!0,offset:15,labelOffset:{x:0,y:5}}};new sa(o,a,c).on("draw",m=>{m.type==="point"&&m.element.attr({"ct:index":m.index})}),o.addEventListener("mouseover",m=>{let v=m.target;if(v.getAttribute("class")==="ct-point"){let x=parseFloat(getComputedStyle(v).strokeWidth),w=v.getAttribute("ct:index");w&&ki("circle-small-fill",S=>{let k=`${a.labels[w]}
${S} ${a.series[0][w]} ${S}${a.series[1][w]}`;new An(k,{referenceElement:m.target,offset:{x:0,y:-x}}).show()})}})}};var ua=class{constructor(){let o=H("[data-view=dashboard] [data-command=clear-cache]"),a=H("[data-view=dashboard] [data-command=make-backup]"),s=H(".dashboard-chart");if(o&&o.addEventListener("click",()=>{new zt({method:"POST",url:`${He.config.baseUri}cache/clear/`,data:{"csrf-token":H("meta[name=csrf-token]").content}},c=>{new Bt(c.message,c.status,{icon:"check-circle"}).show()})}),a&&a.addEventListener("click",function(){let c=this;c.disabled=!0,new zt({method:"POST",url:`${He.config.baseUri}backup/make/`,data:{"csrf-token":H("meta[name=csrf-token]").content}},h=>{new Bt(h.message,h.status,{icon:"check-circle"}).show(),h.status==="success"&&setTimeout(()=>{c.disabled=!1,$o(h.data.uri,H("meta[name=csrf-token]").content)},1e3),h.status==="error"&&(c.disabled=!1)})}),s){let c=s.dataset.chartData;c&&new Pr(s,JSON.parse(c))}}};var fa=class{constructor(){let o=H("[data-command=expand-all-pages]"),a=H("[data-command=collapse-all-pages]"),s=H("[data-command=reorder-pages]"),c=H("[data-command=change-slug]"),h=H(".page-search"),m=document.getElementById("newPageModal"),v=document.getElementById("slugModal");if(ne(".pages-tree").forEach(D=>{D.dataset.orderableChildren==="true"&&k(D)}),ne(".page-details").forEach(D=>{H(".pages-tree-children-toggle",D)&&D.addEventListener("click",N=>{S(D),N.stopPropagation()})}),ne(".page-details a").forEach(D=>{D.addEventListener("click",N=>{N.stopPropagation()})}),ne(".pages-tree .sortable-handle").forEach(D=>{D.addEventListener("click",N=>{N.stopPropagation()})}),o&&o.addEventListener("click",()=>{x(),o.blur()}),a&&a.addEventListener("click",()=>{w(),a.blur()}),s&&s.addEventListener("click",()=>{s.classList.toggle("active"),H(".pages-tree").classList.toggle("is-reordering"),s.blur()}),h){h.addEventListener("focus",()=>{ne(".pages-tree-item").forEach(N=>{N.dataset.expanded=N.classList.contains("expanded")?"true":"false"})});let D=N=>{let M=N.target.value;if(M.length===0)H(".pages-tree-root").classList.remove("is-filtered"),ne(".pages-tree-item").forEach(G=>{let Z=H(".page-title a",G);Z.innerHTML=Z.textContent,H(".pages-tree-row",G).style.display="",G.classList.toggle("is-expanded",G.dataset.expanded==="true")});else{H(".pages-tree-root").classList.add("is-filtered");let G=new RegExp(Ir(Nr(M)),"gi");ne(".pages-tree-item").forEach(Z=>{let oe=H(".page-title a",Z),V=oe.textContent,j=H(".pages-tree-row",Z);V.match(G)!==null?(oe.innerHTML=V.replace(G,"$&"),j.style.display=""):j.style.display="none",Z.classList.add("is-expanded")})}};h.addEventListener("keyup",kn(D,100)),h.addEventListener("search",D),document.addEventListener("keydown",N=>{(N.ctrlKey||N.metaKey)&&N.key==="f"&&document.activeElement!==h&&(h.focus(),N.preventDefault())})}if(m){H("#page-title",m).addEventListener("keyup",N=>{H("#page-slug",m).value=Gl(N.target.value)});let D=N=>{let M=N.target;M.value=Ul(M.value)};H("#page-slug",m).addEventListener("keyup",D),H("#page-slug",m).addEventListener("blur",D),H("#page-parent",m).addEventListener("change",()=>{let N=H('.dropdown-list[data-for="page-parent"] .selected');if(!N)return;let M=N.dataset.allowedTemplates.split(", "),G=H("#page-template",m);M.length>0?(G.dataset.previousValue=G.value,G.value=M[0],H('.select[data-for="page-template"').value=H(`.dropdown-list[data-for="page-template"] .dropdown-item[data-value="${G.value}"]`).innerText,ne('.dropdown-list[data-for="page-template"] .dropdown-item').forEach(Z=>{M.includes(Z.dataset.value)||Z.classList.add("disabled")})):("previousValue"in G.dataset&&(G.value=G.dataset.previousValue,delete G.dataset.previousValue,H('.select[data-for="page-template"').value=H(`.dropdown-list[data-for="page-template"] .dropdown-item[data-value="${G.value}"]`).innerText),ne('.dropdown-list[data-for="page-template"] .dropdown-item').forEach(Z=>{Z.classList.remove("disabled")}))})}if(v&&c){c.addEventListener("click",()=>{He.modals.slugModal.show(void 0,N=>{let M=document.getElementById("slug").value,G=H("#page-slug",N.element);G.value=M,G.placeholder=M})}),H("#page-slug",v).addEventListener("keydown",N=>{N.key==="Enter"&&H("[data-command=continue]",v).click()});let D=N=>{let M=N.target;M.value=Ul(M.value)};H("#page-slug",v).addEventListener("keyup",D),H("#page-slug",v).addEventListener("blur",D),H("[data-command=generate-slug]",v).addEventListener("click",()=>{let N=Gl(document.getElementById("title").value);H("#page-slug",v).value=N,H("#page-slug",v).focus()}),H("[data-command=continue]",v).addEventListener("click",()=>{let N=H("#page-slug",v).value.replace(/^-+|-+$/,"");if(N.length>0){let M=H(".page-route-inner").innerHTML;ne("#page-slug, #slug").forEach(G=>{G.value=N}),H("#page-slug",v).value=N,document.getElementById("slug").value=N,H(".page-route-inner").innerHTML=M.replace(/\/[a-z0-9-]+\/$/,`/${N}/`)}He.modals.slugModal.hide()})}ne("[data-modal=renameFileModal]").forEach(D=>{D.addEventListener("click",()=>{let N=document.getElementById("renameFileModal"),M=H("#file-name",N);M.value=D.dataset.filename,M.setSelectionRange(0,M.value.lastIndexOf("."))})}),ne("[data-command=replaceFile]").forEach(D=>{D.addEventListener("click",()=>{let N=document.createElement("form");N.hidden=!0,N.action=D.dataset.action,N.method="post",N.enctype="multipart/form-data";let M=document.createElement("input");M.name="file",M.type="file",M.accept=D.dataset.extension,N.appendChild(M);let G=document.createElement("input");G.name="csrf-token",G.value=H("meta[name=csrf-token]").content,N.appendChild(G),M.click(),M.addEventListener("change",()=>{document.body.appendChild(N),N.submit()})})});function x(){ne(".pages-tree-item").forEach(D=>{D.classList.add("is-expanded")})}function w(){ne(".pages-tree-item").forEach(D=>{D.classList.remove("is-expanded")})}function S(D){let N=D.closest(".pages-tree-item");N==null||N.classList.toggle("is-expanded")}function k(D){let N=[],M=Ro.create(D,{handle:".sortable-handle",filter:".is-not-orderable",forceFallback:!0,swapThreshold:.75,invertSwap:!0,animation:150,preventOnFilter:!1,onChoose(){let G=document.body.offsetHeight;document.body.style.height=`${G}px`;let Z=()=>{window.document.body.style.height="",window.removeEventListener("scroll",Z)};window.addEventListener("scroll",Z)},onStart(){D.classList.add("is-dragging")},onMove(G){if(G.related.classList.contains("is-not-orderable"))return!1},onEnd(G){if(D.classList.remove("is-dragging"),document.body.style.height="",G.newIndex===G.oldIndex)return;M.option("disabled",!0);let Z={"csrf-token":H("meta[name=csrf-token]").content,page:G.item.dataset.route,before:G.item.nextElementSibling.dataset.route,parent:D.dataset.parent};new zt({method:"POST",url:`${He.config.baseUri}pages/reorder/`,data:Z},oe=>{oe.status&&new Bt(oe.message,oe.status,{icon:"check-circle"}).show(),(!oe.status||oe.status==="error")&&M.sort(N),M.option("disabled",!1),N=M.toArray()})}});N=M.toArray()}}};var ca=class{constructor(){let o=H(".statistics-chart");if(o){let a=o.dataset.chartData;a&&new Pr(o,JSON.parse(a))}}};var da=class{constructor(){if(document.getElementById("updater-component")){let a=H(".update-status"),s=H(".spinner"),c=H(".current-version"),h=H(".current-version-name"),m=H(".new-version"),v=H(".new-version-name"),x=H("[data-command=install-updates]"),w=D=>{s.classList.add("spinner-info"),ht("info",s),v.innerHTML=D,m.style.display="block"},S=()=>{s.classList.add("spinner-success"),ht("check",s),c.style.display="block"},k=()=>{s.classList.add("spinner-success"),ht("check",s),h.innerHTML=v.innerHTML,c.style.display="block"};setTimeout(()=>{let D={"csrf-token":H("meta[name=csrf-token]").content};new zt({method:"POST",url:`${He.config.baseUri}updates/check/`,data:D},N=>{a.innerHTML=N.message,N.status==="success"?N.data.uptodate===!1?w(N.data.release.name):S():(s.classList.add("spinner-danger"),ht("exclamation",s))})},1e3),x.addEventListener("click",()=>{m.style.display="none",s.classList.remove("spinner-info"),a.innerHTML=a.dataset.installingText,new zt({method:"POST",url:`${He.config.baseUri}updates/update/`,data:{"csrf-token":H("meta[name=csrf-token]").content}},D=>{new Bt(D.message,D.status,{icon:"check-circle"}).show(),a.innerHTML=D.data.status,D.status==="success"?k():(s.classList.add("spinner-danger"),ht("exclamation",s))})})}}};var is=class{constructor(){Ue(this,"config",{baseUri:"/"});Ue(this,"modals",{});Ue(this,"forms",{})}load(o){this.loadConfig(o),this.loadComponent(Vo,{globalAlias:"modals"}),this.loadComponent(Zo,{globalAlias:"forms"}),this.loadComponent(wo),this.loadComponent(ra),this.loadComponent(ea),this.loadComponent(vo),this.loadComponent(ta),this.loadComponent(na),this.loadComponent(Eo),this.loadComponent(ua),this.loadComponent(fa),this.loadComponent(ca),this.loadComponent(ia),this.loadComponent(da)}loadConfig(o){Object.assign(this.config,o)}loadComponent(o,a={globalAlias:void 0}){let s=new o(this),{globalAlias:c}=a;c&&(this[c]=s)}},He=new is;return Dh(Mp);})(); /*! Bundled license information: sortablejs/modular/sortable.esm.js: diff --git a/panel/routes.php b/panel/routes.php index 38c31665..49768a66 100644 --- a/panel/routes.php +++ b/panel/routes.php @@ -144,6 +144,18 @@ return [ 'methods' => ['POST'], ], + 'panel.pages.replaceFile' => [ + 'path' => '/pages/{page}/file/{filename}/replace/', + 'action' => 'Formwork\Panel\Controllers\PagesController@replaceFile', + 'methods' => ['POST'], + ], + + 'panel.pages.file' => [ + 'path' => '/pages/{page}/file/{filename}/', + 'action' => 'Formwork\Panel\Controllers\PagesController@file', + 'methods' => ['GET'], + ], + 'panel.pages.delete' => [ 'path' => '/pages/{page}/delete/', 'action' => 'Formwork\Panel\Controllers\PagesController@delete', diff --git a/panel/src/scss/components/_base.scss b/panel/src/scss/components/_base.scss index 3f46b783..c0f57b91 100644 --- a/panel/src/scss/components/_base.scss +++ b/panel/src/scss/components/_base.scss @@ -78,3 +78,11 @@ pre { ::placeholder { color: $color-base-300; } + +.link-secondary { + color: $color-base-300; + + &:hover { + color: $color-base-200; + } +} diff --git a/panel/src/scss/components/_mixins.scss b/panel/src/scss/components/_mixins.scss index 190cf829..863a18a1 100644 --- a/panel/src/scss/components/_mixins.scss +++ b/panel/src/scss/components/_mixins.scss @@ -116,3 +116,15 @@ } } } + +@mixin checkbox-background($size, $color) { + $half: $size * 0.5; + + background-image: linear-gradient(45deg, $color 25%, transparent 25%), linear-gradient(-45deg, $color 25%, transparent 25%), linear-gradient(45deg, transparent 75%, $color 75%), linear-gradient(-45deg, transparent 75%, $color 75%); + background-position: + 0 0, + 0 $half, + $half (-$half), + (-$half) 0; + background-size: $size $size; +} diff --git a/panel/src/scss/components/_pages.scss b/panel/src/scss/components/_pages.scss index caadb2e0..f93a8162 100644 --- a/panel/src/scss/components/_pages.scss +++ b/panel/src/scss/components/_pages.scss @@ -106,3 +106,28 @@ .pages-tree.is-filtered .pages-tree-item .page-details { padding-left: 0; } + +.page-file-preview-container { + display: flex; + justify-content: center; + background-color: $color-base-600; +} + +.page-file-preview-link { + cursor: zoom-in; + line-height: 0; +} + +.page-file-preview-image { + max-height: 40.5rem; + object-fit: contain; + @include checkbox-background(1.5rem, rgba($color-black, 0.125)); +} + +.page-file-info-entry-title { + font-weight: 600; +} + +.page-file-info-entry-uri { + word-break: break-word; +} diff --git a/panel/src/ts/components/files.ts b/panel/src/ts/components/files.ts index 7b18b055..8f1e78ea 100644 --- a/panel/src/ts/components/files.ts +++ b/panel/src/ts/components/files.ts @@ -22,10 +22,10 @@ export class Files { }); } - $$("video.file-thumbnail", filesList).forEach((video: HTMLVideoElement) => { - video.addEventListener("click", () => { - if (!video.controls) { - video.controls = true; + $$(".files-item", filesList).forEach((item: HTMLElement) => { + item.addEventListener("click", (event) => { + if (!(event.target as HTMLElement).closest(".dropdown") && typeof item.dataset.href === "string") { + location.href = item.dataset.href; } }); }); diff --git a/panel/src/ts/components/views/pages.ts b/panel/src/ts/components/views/pages.ts index 05e007ed..d06c3da8 100644 --- a/panel/src/ts/components/views/pages.ts +++ b/panel/src/ts/components/views/pages.ts @@ -224,6 +224,34 @@ export class Pages { }); }); + $$("[data-command=replaceFile]").forEach((element) => { + element.addEventListener("click", () => { + const form = document.createElement("form"); + form.hidden = true; + form.action = element.dataset.action as string; + form.method = "post"; + form.enctype = "multipart/form-data"; + + const fileInput = document.createElement("input"); + fileInput.name = "file"; + fileInput.type = "file"; + fileInput.accept = element.dataset.extension as string; + form.appendChild(fileInput); + + const csrfInput = document.createElement("input"); + csrfInput.name = "csrf-token"; + csrfInput.value = ($("meta[name=csrf-token]") as HTMLMetaElement).content; + form.appendChild(csrfInput); + + fileInput.click(); + + fileInput.addEventListener("change", () => { + document.body.appendChild(form); + form.submit(); + }); + }); + }); + function expandAllPages() { $$(".pages-tree-item").forEach((element) => { element.classList.add("is-expanded"); diff --git a/panel/translations/de.yaml b/panel/translations/de.yaml index d2bb3011..91cc00d9 100644 --- a/panel/translations/de.yaml +++ b/panel/translations/de.yaml @@ -135,6 +135,38 @@ panel.pages.editor.redo: Wiederholen panel.pages.editor.summary: Zusammenfassung panel.pages.editor.undo: Rückgängig panel.pages.editPage: Seite bearbeiten %s +panel.pages.file.backToPage: Zurück zur Seite +panel.pages.file.exif: EXIF +panel.pages.file.info: Info +panel.pages.file.info.image.colorDepth: Farbtiefe +panel.pages.file.info.image.colorNumber: Anzahl der Farben +panel.pages.file.info.image.colorProfile: Farbprofil +panel.pages.file.info.image.colorSpace: Farbraum +panel.pages.file.info.image.dimensions: Abmessungen +panel.pages.file.info.image.dimensions.widthByHeightPixels: '%d × %d Pixel' +panel.pages.file.info.image.exif.aperture: Blende +panel.pages.file.info.image.exif.camera: Kamera +panel.pages.file.info.image.exif.creationDateAndTime: Erstellungsdatum und -zeit +panel.pages.file.info.image.exif.exposureCompensation: Belichtungskorrektur +panel.pages.file.info.image.exif.exposureProgram: Belichtungsprogramm +panel.pages.file.info.image.exif.exposureTime: Belichtungszeit +panel.pages.file.info.image.exif.flash: Blitz +panel.pages.file.info.image.exif.focalLength: Brennweite +panel.pages.file.info.image.exif.lensModel: Objektivmodell +panel.pages.file.info.image.exif.meteringMode: Belichtungsmessmethode +panel.pages.file.info.image.exif.sensitivity: Empfindlichkeit +panel.pages.file.info.image.exif.whiteBalance: Weißabgleich +panel.pages.file.info.image.frames: '%d Frames' +panel.pages.file.info.image.framesCount: Anzahl der Frames +panel.pages.file.info.image.repeats: '%d Wiederholungen' +panel.pages.file.info.image.repeatsCount: Anzahl der Wiederholungen +panel.pages.file.info.image.resolution: Auflösung +panel.pages.file.info.lastModifiedTime: Letzte Änderungszeit +panel.pages.file.info.mimeType: MIME-Typ +panel.pages.file.info.size: Größe +panel.pages.file.info.uri: URI +panel.pages.file.position: Position +panel.pages.file.preview: Vorschau panel.pages.files: Dateien panel.pages.languages: Sprachen panel.pages.languages.addLanguage: "%s hinzufügen" @@ -146,6 +178,8 @@ panel.pages.newPage.slug: Seiten-Slug panel.pages.newPage.slugSuggestion: Nur Buchstaben, Zahlen und Bindestriche panel.pages.newPage.template: Vorlage panel.pages.newPage.title: Titel +panel.pages.next: Nächste Seite +panel.pages.nextFile: Nächste Datei panel.pages.options: Optionen panel.pages.page: Seite panel.pages.page.actions: Aktionen @@ -174,6 +208,9 @@ panel.pages.page.cannotMove: Seite kann nicht verschoben werden panel.pages.page.cannotRenameFile.fileAlreadyExists: Datei kann nicht umbenannt werden, eine Datei mit demselben Namen existiert bereits panel.pages.page.cannotRenameFile.fileNotFound: Datei kann nicht umbenannt werden, Datei nicht gefunden panel.pages.page.cannotRenameFile.pageNotFound: Datei kann nicht umbenannt werden, Seite nicht gefunden +panel.pages.page.cannotReplaceFile.fileNotFound: Datei kann nicht ersetzt werden, Datei nicht gefunden +panel.pages.page.cannotReplaceFile.multipleFiles: Datei kann nicht ersetzt werden, mehrere Dateien angegeben +panel.pages.page.cannotReplaceFile.pageNotFound: Datei kann nicht ersetzt werden, Seite nicht gefunden panel.pages.page.cannotUploadFile.pageNotFound: Datei kann nicht hochgeladen werden, Seite nicht gefunden panel.pages.page.created: Seite erstellt! panel.pages.page.deleted: Seite gelöscht @@ -202,8 +239,11 @@ panel.pages.pages.search: Seiten durchsuchen... panel.pages.parent: Übergeordnete Seite panel.pages.preview: Vorschau panel.pages.previewFile: Vorschau +panel.pages.previous: Vorherige Seite +panel.pages.previousFile: Vorherige Datei panel.pages.renameFile: Datei umbenennen panel.pages.renameFile.name: Name +panel.pages.replaceFile: Datei ersetzen panel.pages.save: Speichern panel.pages.status.notPublished: Nicht veröffentlicht panel.pages.status.notRoutable: Nicht routbar diff --git a/panel/translations/en.yaml b/panel/translations/en.yaml index 50128ae4..f48448c9 100644 --- a/panel/translations/en.yaml +++ b/panel/translations/en.yaml @@ -135,6 +135,38 @@ panel.pages.editor.redo: Redo panel.pages.editor.summary: Summary panel.pages.editor.undo: Undo panel.pages.editPage: Edit Page %s +panel.pages.file.backToPage: Back to Page +panel.pages.file.exif: EXIF +panel.pages.file.info: Info +panel.pages.file.info.image.colorDepth: Color Depth +panel.pages.file.info.image.colorNumber: Color Number +panel.pages.file.info.image.colorProfile: Color Profile +panel.pages.file.info.image.colorSpace: Color Space +panel.pages.file.info.image.dimensions: Dimensions +panel.pages.file.info.image.dimensions.widthByHeightPixels: '%d × %d pixels' +panel.pages.file.info.image.exif.aperture: Aperture +panel.pages.file.info.image.exif.camera: Camera +panel.pages.file.info.image.exif.creationDateAndTime: Creation Date and Time +panel.pages.file.info.image.exif.exposureCompensation: Exposure Compensation +panel.pages.file.info.image.exif.exposureProgram: Exposure Program +panel.pages.file.info.image.exif.exposureTime: Exposure Time +panel.pages.file.info.image.exif.flash: Flash +panel.pages.file.info.image.exif.focalLength: Focal Length +panel.pages.file.info.image.exif.lensModel: Lens Model +panel.pages.file.info.image.exif.meteringMode: Metering Mode +panel.pages.file.info.image.exif.sensitivity: Sensitivity +panel.pages.file.info.image.exif.whiteBalance: White Balance +panel.pages.file.info.image.frames: '%d frames' +panel.pages.file.info.image.framesCount: Frames Count +panel.pages.file.info.image.repeats: '%d repeats' +panel.pages.file.info.image.repeatsCount: Repeats Count +panel.pages.file.info.image.resolution: Resolution +panel.pages.file.info.lastModifiedTime: Last Modified Time +panel.pages.file.info.mimeType: MIME Type +panel.pages.file.info.size: Size +panel.pages.file.info.uri: URI +panel.pages.file.position: Position +panel.pages.file.preview: Preview panel.pages.files: Files panel.pages.languages: Languages panel.pages.languages.addLanguage: Add %s @@ -146,6 +178,8 @@ panel.pages.newPage.slug: Page Slug panel.pages.newPage.slugSuggestion: letters, numbers and dashes only panel.pages.newPage.template: Template panel.pages.newPage.title: Title +panel.pages.next: Next Page +panel.pages.nextFile: Next File panel.pages.options: Options panel.pages.page: Page panel.pages.page.actions: Actions @@ -174,6 +208,9 @@ panel.pages.page.cannotMove: Cannot move page panel.pages.page.cannotRenameFile.fileAlreadyExists: Cannot rename file, a file with the same name already exists panel.pages.page.cannotRenameFile.fileNotFound: Cannot rename file, file not found panel.pages.page.cannotRenameFile.pageNotFound: Cannot rename file, page not found +panel.pages.page.cannotReplaceFile.fileNotFound: Cannot replace file, file not found +panel.pages.page.cannotReplaceFile.multipleFiles: Cannot replace file, multiple file given +panel.pages.page.cannotReplaceFile.pageNotFound: Cannot replace file, page not found panel.pages.page.cannotUploadFile.pageNotFound: Cannot upload file, page not found panel.pages.page.created: Page created! panel.pages.page.deleted: Page deleted @@ -202,8 +239,11 @@ panel.pages.pages.search: Search Pages... panel.pages.parent: Parent Page panel.pages.preview: Preview panel.pages.previewFile: Preview +panel.pages.previous: Previous Page +panel.pages.previousFile: Previous File panel.pages.renameFile: Rename File panel.pages.renameFile.name: Name +panel.pages.replaceFile: Replace File panel.pages.save: Save panel.pages.status.notPublished: Not Published panel.pages.status.notRoutable: Not Routable diff --git a/panel/translations/es.yaml b/panel/translations/es.yaml index e563f719..7d6c556a 100644 --- a/panel/translations/es.yaml +++ b/panel/translations/es.yaml @@ -135,6 +135,38 @@ panel.pages.editor.redo: Rehacer panel.pages.editor.summary: Resumen panel.pages.editor.undo: Deshacer panel.pages.editPage: Editar página %s +panel.pages.file.backToPage: Volver a la página +panel.pages.file.exif: EXIF +panel.pages.file.info: Información +panel.pages.file.info.image.colorDepth: Profundidad de color +panel.pages.file.info.image.colorNumber: Número de colores +panel.pages.file.info.image.colorProfile: Perfil de color +panel.pages.file.info.image.colorSpace: Espacio de color +panel.pages.file.info.image.dimensions: Dimensiones +panel.pages.file.info.image.dimensions.widthByHeightPixels: '%d × %d píxeles' +panel.pages.file.info.image.exif.aperture: Apertura +panel.pages.file.info.image.exif.camera: Cámara +panel.pages.file.info.image.exif.creationDateAndTime: Fecha y hora de creación +panel.pages.file.info.image.exif.exposureCompensation: Compensación de exposición +panel.pages.file.info.image.exif.exposureProgram: Programa de exposición +panel.pages.file.info.image.exif.exposureTime: Tiempo de exposición +panel.pages.file.info.image.exif.flash: Flash +panel.pages.file.info.image.exif.focalLength: Longitud focal +panel.pages.file.info.image.exif.lensModel: Modelo de lente +panel.pages.file.info.image.exif.meteringMode: Modo de medición +panel.pages.file.info.image.exif.sensitivity: Sensibilidad +panel.pages.file.info.image.exif.whiteBalance: Balance de blancos +panel.pages.file.info.image.frames: '%d frames' +panel.pages.file.info.image.framesCount: Cantidad de frames +panel.pages.file.info.image.repeats: '%d repeticiones' +panel.pages.file.info.image.repeatsCount: Cantidad de repeticiones +panel.pages.file.info.image.resolution: Resolución +panel.pages.file.info.lastModifiedTime: Última modificación +panel.pages.file.info.mimeType: Tipo MIME +panel.pages.file.info.size: Tamaño +panel.pages.file.info.uri: URI +panel.pages.file.position: Posición +panel.pages.file.preview: Vista previa panel.pages.files: Archivos panel.pages.languages: Idiomas panel.pages.languages.addLanguage: Añadir %s @@ -146,6 +178,8 @@ panel.pages.newPage.slug: Slug de la página panel.pages.newPage.slugSuggestion: solo letras, números y guiones panel.pages.newPage.template: Plantilla panel.pages.newPage.title: Título +panel.pages.next: Página siguiente +panel.pages.nextFile: Archivo siguiente panel.pages.options: Opciones panel.pages.page: Página panel.pages.page.actions: Acciones @@ -174,6 +208,9 @@ panel.pages.page.cannotMove: No se puede mover la página panel.pages.page.cannotRenameFile.fileAlreadyExists: No se puede renombrar el archivo, ya existe un archivo con el mismo nombre panel.pages.page.cannotRenameFile.fileNotFound: No se puede renombrar el archivo, archivo no encontrado panel.pages.page.cannotRenameFile.pageNotFound: No se puede renombrar el archivo, página no encontrada +panel.pages.page.cannotReplaceFile.fileNotFound: No se puede reemplazar el archivo, archivo no encontrado +panel.pages.page.cannotReplaceFile.multipleFiles: No se puede reemplazar el archivo, se proporcionaron varios archivos +panel.pages.page.cannotReplaceFile.pageNotFound: No se puede reemplazar el archivo, página no encontrada panel.pages.page.cannotUploadFile.pageNotFound: No se puede subir el archivo, página no encontrada panel.pages.page.created: ¡Página creada! panel.pages.page.deleted: Página eliminada @@ -202,8 +239,11 @@ panel.pages.pages.search: Buscar páginas... panel.pages.parent: Página principal panel.pages.preview: Vista previa panel.pages.previewFile: Vista previa +panel.pages.previous: Página anterior +panel.pages.previousFile: Archivo anterior panel.pages.renameFile: Renombrar archivo panel.pages.renameFile.name: Nombre +panel.pages.replaceFile: Reemplazar archivo panel.pages.save: Guardar panel.pages.status.notPublished: No publicado panel.pages.status.notRoutable: No enrutable diff --git a/panel/translations/fr.yaml b/panel/translations/fr.yaml index 6bbc4c47..585abc82 100644 --- a/panel/translations/fr.yaml +++ b/panel/translations/fr.yaml @@ -135,6 +135,38 @@ panel.pages.editor.redo: Refaire panel.pages.editor.summary: Résumé panel.pages.editor.undo: Annuler panel.pages.editPage: Modifier la page %s +panel.pages.file.backToPage: Retour à la page +panel.pages.file.exif: EXIF +panel.pages.file.info: Info +panel.pages.file.info.image.colorDepth: Profondeur de couleur +panel.pages.file.info.image.colorNumber: Nombre de couleurs +panel.pages.file.info.image.colorProfile: Profil de couleur +panel.pages.file.info.image.colorSpace: Espace de couleur +panel.pages.file.info.image.dimensions: Dimensions +panel.pages.file.info.image.dimensions.widthByHeightPixels: '%d × %d pixels' +panel.pages.file.info.image.exif.aperture: Ouverture +panel.pages.file.info.image.exif.camera: Appareil photo +panel.pages.file.info.image.exif.creationDateAndTime: Date et heure de création +panel.pages.file.info.image.exif.exposureCompensation: Compensation d'exposition +panel.pages.file.info.image.exif.exposureProgram: Programme d'exposition +panel.pages.file.info.image.exif.exposureTime: Temps d'exposition +panel.pages.file.info.image.exif.flash: Flash +panel.pages.file.info.image.exif.focalLength: Longueur focale +panel.pages.file.info.image.exif.lensModel: Modèle d'objectif +panel.pages.file.info.image.exif.meteringMode: Mode de mesure +panel.pages.file.info.image.exif.sensitivity: Sensibilité +panel.pages.file.info.image.exif.whiteBalance: Balance des blancs +panel.pages.file.info.image.frames: '%d trames' +panel.pages.file.info.image.framesCount: Nombre de trames +panel.pages.file.info.image.repeats: '%d répétitions' +panel.pages.file.info.image.repeatsCount: Nombre de répétitions +panel.pages.file.info.image.resolution: Résolution +panel.pages.file.info.lastModifiedTime: Dernière modification +panel.pages.file.info.mimeType: Type MIME +panel.pages.file.info.size: Taille +panel.pages.file.info.uri: URI +panel.pages.file.position: Position +panel.pages.file.preview: Aperçu panel.pages.files: Fichiers panel.pages.languages: Langues panel.pages.languages.addLanguage: Ajouter %s @@ -146,6 +178,8 @@ panel.pages.newPage.slug: Permalien panel.pages.newPage.slugSuggestion: lettres, chiffres et tirets seulement panel.pages.newPage.template: Modèle (Template) panel.pages.newPage.title: Titre +panel.pages.next: Page suivante +panel.pages.nextFile: Fichier suivant panel.pages.options: Options panel.pages.page: Page panel.pages.page.actions: Actions @@ -174,6 +208,9 @@ panel.pages.page.cannotMove: Impossible de déplacer la page panel.pages.page.cannotRenameFile.fileAlreadyExists: Impossible de renommer le fichier, un fichier portant le même nom existe déjà panel.pages.page.cannotRenameFile.fileNotFound: Impossible de renommer le fichier, fichier introuvable panel.pages.page.cannotRenameFile.pageNotFound: Impossible de renommer le fichier, page introuvable +panel.pages.page.cannotReplaceFile.fileNotFound: Impossible de remplacer le fichier, fichier non trouvé +panel.pages.page.cannotReplaceFile.multipleFiles: Impossible de remplacer le fichier, plusieurs fichiers spécifiés +panel.pages.page.cannotReplaceFile.pageNotFound: Impossible de remplacer le fichier, page non trouvée panel.pages.page.cannotUploadFile.pageNotFound: Impossible de téléverser le fichier, page introuvable panel.pages.page.created: Page créée ! panel.pages.page.deleted: Page supprimée @@ -202,8 +239,11 @@ panel.pages.pages.search: Rechercher dans les Pages… panel.pages.parent: Parent panel.pages.preview: Aperçu panel.pages.previewFile: Aperçu +panel.pages.previous: Page précédente +panel.pages.previousFile: Fichier précédent panel.pages.renameFile: Renommer le fichier panel.pages.renameFile.name: Nom +panel.pages.replaceFile: Remplacer le fichier panel.pages.save: Enregistrer panel.pages.status.notPublished: Brouillon panel.pages.status.notRoutable: Inaccessible diff --git a/panel/translations/it.yaml b/panel/translations/it.yaml index 34e22ae2..6298946c 100644 --- a/panel/translations/it.yaml +++ b/panel/translations/it.yaml @@ -135,6 +135,38 @@ panel.pages.editor.redo: Ripeti panel.pages.editor.summary: Sommario panel.pages.editor.undo: Annulla panel.pages.editPage: Modifica pagina %s +panel.pages.file.backToPage: Torna alla pagina +panel.pages.file.exif: EXIF +panel.pages.file.info: Informazioni +panel.pages.file.info.image.colorDepth: Profondità colore +panel.pages.file.info.image.colorNumber: Numero di colori +panel.pages.file.info.image.colorProfile: Profilo colore +panel.pages.file.info.image.colorSpace: Spazio colore +panel.pages.file.info.image.dimensions: Misure +panel.pages.file.info.image.dimensions.widthByHeightPixels: '%d × %d pixel' +panel.pages.file.info.image.exif.aperture: Apertura +panel.pages.file.info.image.exif.camera: Fotocamera +panel.pages.file.info.image.exif.creationDateAndTime: Data e ora di creazione +panel.pages.file.info.image.exif.exposureCompensation: Compensazione esposizione +panel.pages.file.info.image.exif.exposureProgram: Programma di esposizione +panel.pages.file.info.image.exif.exposureTime: Tempo di esposizione +panel.pages.file.info.image.exif.flash: Flash +panel.pages.file.info.image.exif.focalLength: Lunghezza focale +panel.pages.file.info.image.exif.lensModel: Obiettivo +panel.pages.file.info.image.exif.meteringMode: Modalità di misurazione +panel.pages.file.info.image.exif.sensitivity: Sensibilità +panel.pages.file.info.image.exif.whiteBalance: Bilanciamento del bianco +panel.pages.file.info.image.frames: '%d fotogrammi' +panel.pages.file.info.image.framesCount: Numero di fotogrammi +panel.pages.file.info.image.repeats: '%d ripetizioni' +panel.pages.file.info.image.repeatsCount: Numero di ripetizioni +panel.pages.file.info.image.resolution: Risoluzione +panel.pages.file.info.lastModifiedTime: Ultime modifiche +panel.pages.file.info.mimeType: Tipo MIME +panel.pages.file.info.size: Dimensioni file +panel.pages.file.info.uri: URI +panel.pages.file.position: Posizione +panel.pages.file.preview: Anteprima panel.pages.files: File panel.pages.languages: Lingue panel.pages.languages.addLanguage: Aggiungi %s @@ -146,6 +178,8 @@ panel.pages.newPage.slug: Indirizzo pagina panel.pages.newPage.slugSuggestion: solo lettere, numeri e trattini panel.pages.newPage.template: Template panel.pages.newPage.title: Titolo +panel.pages.next: Pagina successiva +panel.pages.nextFile: File successivo panel.pages.options: Opzioni panel.pages.page: Pagina panel.pages.page.actions: Azioni @@ -174,6 +208,9 @@ panel.pages.page.cannotMove: Impossibile spostare la pagina panel.pages.page.cannotRenameFile.fileAlreadyExists: Impossibile rinominare il file, un file con lo stesso nome esiste già panel.pages.page.cannotRenameFile.fileNotFound: Impossibile rinominare il file, file non trovato panel.pages.page.cannotRenameFile.pageNotFound: Impossibile rinominare il file, pagina non trovata +panel.pages.page.cannotReplaceFile.fileNotFound: Impossibile sostituire il file, file non trovato +panel.pages.page.cannotReplaceFile.multipleFiles: Impossibile sostituire il file, forniti più file +panel.pages.page.cannotReplaceFile.pageNotFound: Impossibile sostituire il file, pagina non trovata panel.pages.page.cannotUploadFile.pageNotFound: Impossibile caricare il file, pagina non trovata panel.pages.page.created: Pagina creata! panel.pages.page.deleted: Pagina eliminata @@ -202,8 +239,11 @@ panel.pages.pages.search: Cerca pagine... panel.pages.parent: Pagina superiore panel.pages.preview: Anteprima panel.pages.previewFile: Anteprima +panel.pages.previous: Pagina precedente +panel.pages.previousFile: File precedente panel.pages.renameFile: Rinomina file panel.pages.renameFile.name: Nome +panel.pages.replaceFile: Sostituisci file panel.pages.save: Salva panel.pages.status.notPublished: Non pubblicato panel.pages.status.notRoutable: Non raggiungibile diff --git a/panel/translations/pt.yaml b/panel/translations/pt.yaml index 5545f4eb..67fbe1ee 100644 --- a/panel/translations/pt.yaml +++ b/panel/translations/pt.yaml @@ -135,6 +135,38 @@ panel.pages.editor.redo: Refazer panel.pages.editor.summary: Sumário panel.pages.editor.undo: Desfazer panel.pages.editPage: Editar Página %s +panel.pages.file.backToPage: Voltar à Página +panel.pages.file.exif: EXIF +panel.pages.file.info: Informações +panel.pages.file.info.image.colorDepth: Profundidade de Cor +panel.pages.file.info.image.colorNumber: Número de Cores +panel.pages.file.info.image.colorProfile: Perfil de Cor +panel.pages.file.info.image.colorSpace: Espaço de Cor +panel.pages.file.info.image.dimensions: Dimensões +panel.pages.file.info.image.dimensions.widthByHeightPixels: '%d × %d píxeis' +panel.pages.file.info.image.exif.aperture: Abertura +panel.pages.file.info.image.exif.camera: Câmara +panel.pages.file.info.image.exif.creationDateAndTime: Data e Hora de Criação +panel.pages.file.info.image.exif.exposureCompensation: Compensação de Exposição +panel.pages.file.info.image.exif.exposureProgram: Programa de Exposição +panel.pages.file.info.image.exif.exposureTime: Tempo de Exposição +panel.pages.file.info.image.exif.flash: Flash +panel.pages.file.info.image.exif.focalLength: Distância Focal +panel.pages.file.info.image.exif.lensModel: Modelo da Lente +panel.pages.file.info.image.exif.meteringMode: Modo de Medição +panel.pages.file.info.image.exif.sensitivity: Sensibilidade +panel.pages.file.info.image.exif.whiteBalance: Balanço de Branco +panel.pages.file.info.image.frames: '%d frames' +panel.pages.file.info.image.framesCount: Contagem de Frames +panel.pages.file.info.image.repeats: '%d repetições' +panel.pages.file.info.image.repeatsCount: Contagem de Repetições +panel.pages.file.info.image.resolution: Resolução +panel.pages.file.info.lastModifiedTime: Última Modificação +panel.pages.file.info.mimeType: Tipo MIME +panel.pages.file.info.size: Tamanho +panel.pages.file.info.uri: URI +panel.pages.file.position: Posição +panel.pages.file.preview: Pré-visualização panel.pages.files: Ficheiros panel.pages.languages: Idiomas panel.pages.languages.addLanguage: Criar %s @@ -146,6 +178,8 @@ panel.pages.newPage.slug: Slug da Página panel.pages.newPage.slugSuggestion: letras, números e hifens apenas panel.pages.newPage.template: Template panel.pages.newPage.title: Título +panel.pages.next: Próxima Página +panel.pages.nextFile: Próximo Ficheiro panel.pages.options: Opções panel.pages.page: Página panel.pages.page.actions: Acções @@ -174,6 +208,9 @@ panel.pages.page.cannotMove: Não é possível mover a página panel.pages.page.cannotRenameFile.fileAlreadyExists: Não é possível renomear o arquivo, um arquivo com o mesmo nome já existe panel.pages.page.cannotRenameFile.fileNotFound: Não é possível renomear o arquivo, arquivo não encontrado panel.pages.page.cannotRenameFile.pageNotFound: Não é possível renomear o arquivo, página não encontrada +panel.pages.page.cannotReplaceFile.fileNotFound: Não é possível substituir o ficheiro, ficheiro não encontrado +panel.pages.page.cannotReplaceFile.multipleFiles: Não é possível substituir o ficheiro, vários ficheiros fornecidos +panel.pages.page.cannotReplaceFile.pageNotFound: Não é possível substituir o ficheiro, página não encontrada panel.pages.page.cannotUploadFile.pageNotFound: Não é possível efectuar envio do ficheiro, página não encontrada panel.pages.page.created: Página criada! panel.pages.page.deleted: Página removida @@ -202,8 +239,11 @@ panel.pages.pages.search: Procurar Páginas... panel.pages.parent: Página Parente panel.pages.preview: Preview panel.pages.previewFile: Preview +panel.pages.previous: Página Anterior +panel.pages.previousFile: Ficheiro Anterior panel.pages.renameFile: Renomear Arquivo panel.pages.renameFile.name: Nome +panel.pages.replaceFile: Substituir Ficheiro panel.pages.save: Guardar panel.pages.status.notPublished: Não Publicado panel.pages.status.notRoutable: Não Roteável diff --git a/panel/translations/ru.yaml b/panel/translations/ru.yaml index 288f2bc4..9b5a8d83 100644 --- a/panel/translations/ru.yaml +++ b/panel/translations/ru.yaml @@ -135,6 +135,38 @@ panel.pages.editor.redo: Выбор panel.pages.editor.summary: Краткий panel.pages.editor.undo: Открыть panel.pages.editPage: Отредактировать страницу %s +panel.pages.file.backToPage: Назад к странице +panel.pages.file.exif: EXIF +panel.pages.file.info: Информация +panel.pages.file.info.image.colorDepth: Глубина цвета +panel.pages.file.info.image.colorNumber: Количество цветов +panel.pages.file.info.image.colorProfile: Профиль цвета +panel.pages.file.info.image.colorSpace: Цветовое пространство +panel.pages.file.info.image.dimensions: Размеры +panel.pages.file.info.image.dimensions.widthByHeightPixels: '%d × %d пикселей' +panel.pages.file.info.image.exif.aperture: Диафрагма +panel.pages.file.info.image.exif.camera: Камера +panel.pages.file.info.image.exif.creationDateAndTime: Дата и время создания +panel.pages.file.info.image.exif.exposureCompensation: Компенсация экспозиции +panel.pages.file.info.image.exif.exposureProgram: Программа экспозиции +panel.pages.file.info.image.exif.exposureTime: Время экспозиции +panel.pages.file.info.image.exif.flash: Вспышка +panel.pages.file.info.image.exif.focalLength: Фокусное расстояние +panel.pages.file.info.image.exif.lensModel: Модель объектива +panel.pages.file.info.image.exif.meteringMode: Режим измерения +panel.pages.file.info.image.exif.sensitivity: Чувствительность +panel.pages.file.info.image.exif.whiteBalance: Баланс белого +panel.pages.file.info.image.frames: '%d кадров' +panel.pages.file.info.image.framesCount: Количество кадров +panel.pages.file.info.image.repeats: '%d повторов' +panel.pages.file.info.image.repeatsCount: Количество повторений +panel.pages.file.info.image.resolution: Разрешение +panel.pages.file.info.lastModifiedTime: Последнее изменение +panel.pages.file.info.mimeType: Тип MIME +panel.pages.file.info.size: Размер +panel.pages.file.info.uri: URI +panel.pages.file.position: Позиция +panel.pages.file.preview: Просмотр panel.pages.files: Файлы panel.pages.languages: Языки panel.pages.languages.addLanguage: Добавлять %s @@ -146,6 +178,8 @@ panel.pages.newPage.slug: Страница Slug panel.pages.newPage.slugSuggestion: буквы, цифры и дефис только panel.pages.newPage.template: Шаблон panel.pages.newPage.title: Заглавие +panel.pages.next: Следующая страница +panel.pages.nextFile: Следующий файл panel.pages.options: Параметры panel.pages.page: Страница panel.pages.page.actions: Действия @@ -174,6 +208,9 @@ panel.pages.page.cannotMove: Невозможно переместить стр panel.pages.page.cannotRenameFile.fileAlreadyExists: Невозможно переименовать файл, файл с таким именем уже существует panel.pages.page.cannotRenameFile.fileNotFound: Невозможно переименовать файл, файл не найден panel.pages.page.cannotRenameFile.pageNotFound: Невозможно переименовать файл, страница не найдена +panel.pages.page.cannotReplaceFile.fileNotFound: Невозможно заменить файл, файл не найден +panel.pages.page.cannotReplaceFile.multipleFiles: Невозможно заменить файл, указаны несколько файлов +panel.pages.page.cannotReplaceFile.pageNotFound: Невозможно заменить файл, страница не найдена panel.pages.page.cannotUploadFile.pageNotFound: Невозможно загрузить файл, страница не найдена panel.pages.page.created: Страница сгенерирована! panel.pages.page.deleted: Страница удалена @@ -202,8 +239,11 @@ panel.pages.pages.search: Поиск Страницы ... panel.pages.parent: Родитель страницы panel.pages.preview: Предварительный просмотр panel.pages.previewFile: Предварительный просмотр +panel.pages.previous: Предыдущая страница +panel.pages.previousFile: Предыдущий файл panel.pages.renameFile: Переименовать файл panel.pages.renameFile.name: Имя +panel.pages.replaceFile: Заменить файл panel.pages.save: Сохранить panel.pages.status.notPublished: Не Опубликовано panel.pages.status.notRoutable: Не маршрутизируемый diff --git a/panel/views/fields/page/files.php b/panel/views/fields/page/files.php index 71cf20f9..0d66e235 100644 --- a/panel/views/fields/page/files.php +++ b/panel/views/fields/page/files.php @@ -7,8 +7,8 @@
- files()->sort() as $file) : ?> -
+ files() as $file) : ?> +
type() === 'image') : ?>
@@ -22,10 +22,14 @@ \ No newline at end of file diff --git a/panel/views/pages/editor.php b/panel/views/pages/editor.php index 16812828..b843a5ed 100644 --- a/panel/views/pages/editor.php +++ b/panel/views/pages/editor.php @@ -19,6 +19,8 @@
+ previousSibling()) : ?>href="uri('/pages/' . trim($page->previousSibling()->route(), '/') . '/edit/') ?>" title="translate('panel.pages.previous') ?>" aria-label="translate('panel.pages.previous') ?>">icon('chevron-left') ?> + nextSibling()) : ?>href="uri('/pages/' . trim($page->nextSibling()->route(), '/') . '/edit/') ?>" title="translate('panel.pages.next') ?>" aria-label="translate('panel.pages.next') ?>">icon('chevron-right') ?> published() && $page->routable()) : ?>href="uri(includeLanguage: $currentLanguage ?: true) ?>" target="formwork-preview-uid() ?>" title="translate('panel.pages.preview') ?>" aria-label="translate('panel.pages.preview') ?>">icon('eye') ?> user()->permissions()->has('pages.delete')) : ?> diff --git a/panel/views/pages/file.php b/panel/views/pages/file.php new file mode 100644 index 00000000..9c92cda0 --- /dev/null +++ b/panel/views/pages/file.php @@ -0,0 +1,94 @@ +layout('panel') ?> + +type() === 'image') : ?> +
+
+
+ translate('panel.pages.file.preview') ?> +
+
+ +
+
+
+ +type() === 'video') : ?> +
+
+ translate('panel.pages.file.preview') ?> +
+
+ +
+
+ +
+
+ translate('panel.pages.file.info') ?> +
+
+
+
+
translate('panel.pages.file.info.mimeType') ?>:
+ mimeType() ?> +
+
+
translate('panel.pages.file.info.size') ?>:
+ size() ?> +
+
+
translate('panel.pages.file.info.lastModifiedTime') ?>:
+ datetime($file->lastModifiedTime()) ?> +
+
+
translate('panel.pages.file.info.uri') ?>:
+ uri() ?> +
+ type() === 'image') : ?> + insert('_files/images/info/info', ['file' => $file]) ?> + +
+
+
+type() === 'image') : ?> + hasExifData() && $file->getExifData()->hasPositionData()) : ?> +
+
+ + translate('panel.pages.file.position') ?> +
+
+ insert('_files/images/position/map', ['exif' => $file->getExifData()]) ?> +
+
+ + hasExifData()) : ?> + + + \ No newline at end of file diff --git a/panel/views/partials/files/images/exif/data.php b/panel/views/partials/files/images/exif/data.php new file mode 100644 index 00000000..ad47fce4 --- /dev/null +++ b/panel/views/partials/files/images/exif/data.php @@ -0,0 +1,8 @@ + + parsedTags() as $key => $value) : ?> + + + + + +
escape(is_array($value) ? implode(', ', $value) : (string) $value) ?>
\ No newline at end of file diff --git a/panel/views/partials/files/images/info/exif.php b/panel/views/partials/files/images/info/exif.php new file mode 100644 index 00000000..62317816 --- /dev/null +++ b/panel/views/partials/files/images/info/exif.php @@ -0,0 +1,48 @@ +
+
translate('panel.pages.file.info.image.exif.creationDateAndTime') ?>:
+ dateTimeOriginal() ?? '-' ?> +
+
+
translate('panel.pages.file.info.image.exif.camera') ?>:
+ makeAndModel() ?? '–' ?> +
+
+
translate('panel.pages.file.info.image.exif.lensModel') ?>:
+ lensModel() ?? '–' ?> +
+
+
translate('panel.pages.file.info.image.exif.focalLength') ?>:
+ focalLength() ?? '–' ?> +
+
+
translate('panel.pages.file.info.image.exif.exposureTime') ?>:
+ exposureTime() ?? '–' ?> +
+
+
translate('panel.pages.file.info.image.exif.aperture') ?>:
+ aperture() ?? '–' ?> +
+
+
translate('panel.pages.file.info.image.exif.sensitivity') ?>:
+ photographicSensitivity() ?? '–' ?> +
+
+
translate('panel.pages.file.info.image.exif.exposureCompensation') ?>:
+ exposureCompensation() ?? '–' ?> +
+
+
translate('panel.pages.file.info.image.exif.exposureProgram') ?>:
+ exposureProgram() ?? '–' ?> +
+
+
translate('panel.pages.file.info.image.exif.whiteBalance') ?>:
+ hasAutoWhiteBalance() === true) : ?>AWB +
+
+
translate('panel.pages.file.info.image.exif.flash') ?>:
+ hasFlashFired() !== null) : ?> hasFlashFired() ? $this->icon('camera-flash') : $this->icon('camera-no-flash') ?> +
+
+
translate('panel.pages.file.info.image.exif.meteringMode') ?>:
+ meteringMode() !== null) : ?>icon('camera-metering-' . $exif->meteringMode()) ?> +
\ No newline at end of file diff --git a/panel/views/partials/files/images/info/info.php b/panel/views/partials/files/images/info/info.php new file mode 100644 index 00000000..31d56c3a --- /dev/null +++ b/panel/views/partials/files/images/info/info.php @@ -0,0 +1,45 @@ +
+
translate('panel.pages.file.info.image.dimensions') ?>:
+ translate('panel.pages.file.info.image.dimensions.widthByHeightPixels', $file->info()->width(), $file->info()->height()) ?> +
+
+
translate('panel.pages.file.info.image.resolution') ?>:
+ info()->width() * $file->info()->height() / 1e6, 0.1), 1) ?> MP +
+
+
translate('panel.pages.file.info.image.colorSpace') ?>:
+ info()->colorSpace()->value ?> +
+
+
translate('panel.pages.file.info.image.colorDepth') ?>:
+ info()->colorDepth() ?> bit +
+info()->colorSpace()->value === 'PALETTE') : ?> +
+
translate('panel.pages.file.info.image.colorNumber') ?>:
+ info()->colorNumber() ?> +
+ +
+
translate('panel.pages.file.info.image.colorProfile') ?>:
+ hasColorProfile() && $file->getColorProfile()->name()) : ?> + getColorProfile()->name() ?> + hasExifData() && $file->getExifData()->colorSpace()) : ?> + getExifData()->colorSpace() ?> (EXIF) + + – + +
+info()->isAnimation()) : ?> +
+
translate('panel.pages.file.info.image.framesCount') ?>:
+ translate('panel.pages.file.info.image.frames', $file->info()->animationFrames()) ?> +
+
+
translate('panel.pages.file.info.image.repeatsCount') ?>:
+ info()->animationRepeatCount() > 0) : ?>translate('panel.pages.file.info.image.repeats', $file->info()->animationRepeatCount()) ?> +
+ +hasExifData()) : ?> + insert('_files/images/info/exif', ['exif' => $file->getExifData()]) ?> + \ No newline at end of file diff --git a/panel/views/partials/files/images/position/map.php b/panel/views/partials/files/images/position/map.php new file mode 100644 index 00000000..bf7e46e9 --- /dev/null +++ b/panel/views/partials/files/images/position/map.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/site/config/system.yaml b/site/config/system.yaml index e69de29b..d2f817ad 100644 --- a/site/config/system.yaml +++ b/site/config/system.yaml @@ -0,0 +1,10 @@ +files: + allowedExtensions: + - .jpg + - .jpeg + - .png + - .gif + - .svg + - .webp + - .mp4 + - .webm