text
stringlengths 3
1.05M
|
|---|
def opt():
img = 'pictures/20210515-093946.png'
f = open(img, 'r')
print(f.read())
f.close()
if __name__ == '__main__':
opt()
|
'use strict';
const express = require('express');
const app = express();
require('dotenv').config();
// const PORT = 8080;
app.use(express.static('./public'));
app.listen(process.env.PORT, () => {
console.log('Web Server up on port', process.env.PORT);
});
|
from django.db import models
# Create your models here.
class Location(models.Model):
'''
locations model
'''
location = models.CharField(max_length=30)
def __str__(self):
return self.location
def save_location(self):
self.save()
def delete_location(self):
self.delete()
class Category(models.Model):
'''
Photo category model
'''
image_category = models.CharField(max_length=120)
def __str__(self):
return self.image_category
def save_category(self):
self.save()
def delete_category(self):
self.delete()
class Image(models.Model):
'''
Images model
'''
image_path = models.ImageField(upload_to='images/')
image_name = models.CharField(max_length=30, blank=False)
description = models.TextField(max_length=200, blank=True)
category = models.ForeignKey(Category)
location = models.ForeignKey(Location, blank=True)
def __str__(self):
return self.image_name
def save_image(self):
self.save()
def delete_image(self):
self.delete()
@classmethod
def get_all(cls):
images = cls.objects.all()
return images
@classmethod
def search_image(cls, search_category):
images = cls.objects.filter(category__image_category__icontains = search_category)
return images
@classmethod
def filter_by_location(cls):
images = cls.objects.order_by('location')
return images
|
define(['exports', 'handlebars/dist/amd/handlebars/decorators/inline'], function (exports, _decoratorsInline) {
'use strict';
exports.__esModule = true;
exports.registerDefaultDecorators = registerDefaultDecorators;
// istanbul ignore next
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _registerInline = _interopRequireDefault(_decoratorsInline);
function registerDefaultDecorators(instance) {
_registerInline['default'](instance);
}
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFFTyxXQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCwrQkFBZSxRQUFRLENBQUMsQ0FBQztHQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG5cbiJdfQ==
|
import random
import numpy as np
from snakeai.agent import AgentBase
from snakeai.gameplay.entities import ALL_SNAKE_ACTIONS
def direction(head, body):
x_head = head[1][0]
y_head = head[0][0]
x_body = body[1][0]
y_body = body[1][0]
if (x_head == x_body and y_head > y_body): return 0 # Mirando verticalmente para abajo
if (x_head == x_body and y_head < y_body): return 1 # Mirando vericalmente para arriba
if (y_head == y_body and x_head > x_body): return 2 # Mirando horizontalmente para la derecha
if (y_head == y_body and x_head < x_body): return 3 # Mirando horizontalmente para la izquierda
return -1
class RandomActionAgent(AgentBase):
""" Represents a Snake agent that takes a random action at every step. """
def __init__(self):
self.actual_moves = 0
self.cnt_moves = 0
self.prev_moves = 0
self.choice = 0
pass
def begin_episode(self):
pass
def act(self, observation, reward):
self.food_coord = np.where(observation == 1)
self.head_coord = np.where(observation == 2)
self.body_coord = np.where(observation == 3)
diff_x = self.head_coord[1][0] - self.food_coord[1][0]
diff_y = self.head_coord[0][0] - self.food_coord[0][0]
diff_x_body = self.body_coord[1][0] - self.food_coord[1][0]
diff_y_body = self.body_coord[0][0] - self.food_coord[0][0]
if (diff_y == 0 and diff_x != 0):
# la comida esta a la izquierda o derecha y la serpiente esta mirando en esa direccion
if ((diff_x > 0 and diff_y_body == 0 and diff_x_body > diff_x) or (diff_x < 0 and diff_y_body == 0 and diff_x_body < diff_x)):
return ALL_SNAKE_ACTIONS[0]
# mirando para abajo
if (diff_x > 0 and diff_y_body < 0) or (diff_x < 0 and diff_y_body > 0):
return ALL_SNAKE_ACTIONS[2]
# mirando para arriba
if (diff_x > 0 and diff_y_body > 0) or (diff_x < 0 and diff_y_body < 0):
return ALL_SNAKE_ACTIONS[1]
if (diff_x == 0 and diff_y != 0):
# la comida esta arriba o abajo y la serpiente esta mirando en esa direccion
if ((diff_y > 0 and diff_x_body == 0 and diff_y_body > diff_y) or (diff_y < 0 and diff_x_body == 0 and diff_y_body < diff_y)):
return ALL_SNAKE_ACTIONS[0] # mantiene su direccion
# mirando para la derecha
if (diff_y > 0 and diff_x_body < 0) or (diff_y < 0 and diff_x_body > 0):
return ALL_SNAKE_ACTIONS[1]
# mirando para la izquierda
if (diff_y > 0 and diff_x_body > 0) or (diff_y < 0 and diff_x_body < 0):
return ALL_SNAKE_ACTIONS[2]
# if (diff_x < 0 and diff_y < 0 and (direction(self.head_coord,self.body_coord) == 0 or direction(self.head_coord,self.body_coord) == 2)):
# return ALL_SNAKE_ACTIONS[0]
# if (diff_x < 0 and diff_y < 0 and direction(self.head_coord,self.body_coord) == 1):
# return ALL_SNAKE_ACTIONS[2]
# if (diff_x < 0 and diff_y < 0 and direction(self.head_coord,self.body_coord) == 3):
# return ALL_SNAKE_ACTIONS[1]
# if (diff_x > 0 and diff_y > 0 and direction(self.head_coord,self.body_coord) == 0):
# return ALL_SNAKE_ACTIONS[1]
# if (diff_x > 0 and diff_y > 0 and direction(self.head_coord,self.body_coord) == 1):
# return ALL_SNAKE_ACTIONS[0]
return np.random.choice(ALL_SNAKE_ACTIONS)
def end_episode(self):
print(self.cnt_moves)
pass
|
import service from 'feathers-mongoose';
import message from './message-model';
const rest = require('feathers-rest');
import hooks from './hooks';
import {
hooks as auth
} from 'feathers-authentication';
const errors = require('feathers-errors');
export default function() {
const app = this;
let options = {
Model: message,
id: 'id',
paginate: {
default: 5,
max: 25
}
};
//swagger docs
let docs = {
find: {
description: "create Message",
tags: ["message"],
parameters: [{
"name": "$skip",
"in": "query",
"description": "Number of skipped results",
"type": "number",
}, {
"name": "$limit",
"in": "query",
"description": "Number of returned results.",
"type": "number",
}]
},
update: {
description: "update Message",
tags: ["message"],
parameters: [{
"name": "resourceId",
"in": "path",
"description": "Update Message by id.",
"type": "number",
}, {
"name": "body",
"in": "body",
"description": "Message",
"type": "json",
"example": "213"
}]
},
get: {
description: "get Message by id",
tags: ["message"],
parameters: [{
"name": "resourceId",
"in": "path",
"description": "Update Message by id.",
"type": "number"
}]
},
create: {
description: "update Message",
tags: ["message"],
parameters: [{
"name": "message",
"in": "body",
"description": "Message",
"type": "json",
}]
},
remove: {
description: "delete Message",
tags: ["message"],
parameters: [{
"name": "resourceId",
"in": "path",
"description": "Update Message by id.",
"type": "number",
}]
},
}
// Initialize our service with any options it requires
var thisService = service(options);
thisService.docs = docs
app.use('/messages', thisService);
function uuid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random() * 16 | 0,
v = c == 'x' ? r : r & 0x3 | 0x8;
return v.toString(16);
});
}
let myHook = function(options) {
return function(hook) {
console.log('hook!', hook.data);
hook.data = {
"message": hook.data,
id: uuid()
}
}
}
let updateHook = function(options) {
return function(hook) {
console.log('hook!', hook.data);
hook.data = {
"message": hook.data
}
}
}
let login = function(options) {
return function(hook) {
console.log(hook.params);
if (!hook.params.user) {
throw new errors.NotAuthenticated('You are not authorized. Set the ?user=username parameter.');
}
}
}
// Get our initialize service to that we can bind hooks
const messageService = app.service('/messages');
messageService.before({
all: [
auth.verifyToken(),
auth.populateUser(),
],
find: [
login()
],
update: [updateHook()],
get: [auth.hashPassword()],
create: [myHook()],
remove: [auth.hashPassword()],
});
// Set up our before hooks
messageService.before(hooks.before);
// Set up our after hooks
messageService.after(hooks.after);
}
|
import json
import os
from collections import Counter
from io import open
from texttable import Texttable
from nlp_utils import Configuration
class Experiment(object):
def __init__(self, conf, scores):
self.conf = conf
self.scores = scores
def get_parameters(experiments):
params = Counter()
for exp in experiments:
for k, v in exp.conf.items():
params[(str(k), str(v))] += 1
def _filter_params(name, value, count):
if count == len(experiments) and len(experiments) > 1:
return False
elif "experiment_name" in name:
return False
elif "dataset" in name:
return False
elif "path" in name:
return False
elif "timestamp" in name:
return False
elif "seed" in name:
return False
return True
params = [k for ((k, v), c) in params.items() if _filter_params(k, v, c)]
params = list(set(params))
return params
def read_results(base_dirpath):
experiments_dirnames = os.listdir(base_dirpath)
experiments_dirnames = [d for d in experiments_dirnames]
experiments = []
for exp_dirname in experiments_dirnames:
try:
conf_filepath = os.path.join(base_dirpath, exp_dirname, "configuration.json")
conf = Configuration.load(conf_filepath)
scores_filepath = os.path.join(base_dirpath, exp_dirname, "prediction_summary.txt")
if not os.path.isfile(scores_filepath):
scores_filepath = os.path.join(base_dirpath, exp_dirname, "predicate_prediction_summary.txt")
with open(scores_filepath) as f:
scores = json.loads(f.readline())
experiments.append(Experiment(conf, scores))
except IOError as e:
print(exp_dirname, "missing some files")
return experiments
def list_results(experiments, parameter_names):
experiments = sorted(experiments, key=lambda e: e.scores["recall"]["1"], reverse=True)
table = Texttable(max_width=0)
table.header(["recall@1", "recall@3", "recall@5"] + parameter_names)
for exp in experiments:
row = [exp.scores["recall"]["1"], exp.scores["recall"]["3"], exp.scores["recall"]["5"]] + [exp.conf.get(p, "--")
for p in
parameter_names]
table.add_row(row)
print("+++ RESULTS: +++")
print(table.draw())
def run():
base_dirpath = "../results"
# parameters = ["dataset", "global_knowledge_mode", "use_character_embeddings", "sequence_embedding_size",
# "n_iterations", "word_dropout", "tokenization_style", "n_ensemble"]
experiments = read_results(base_dirpath)
parameters = get_parameters(experiments) + ["model_dirpath"]
list_results(experiments, parameters)
if __name__ == "__main__":
run()
|
/*
* This file is subject to the terms of the GFX License. If a copy of
* the license was not distributed with this file, you can obtain one at:
*
* http://ugfx.io/license.html
*/
#ifndef _GDISP_LLD_BOARD_H
#define _GDISP_LLD_BOARD_H
/*
* @brief Optional parameters that can be put in this file.
* @note The values listed below are the defaults.
*
* @note #define GDISP_SCREEN_HEIGHT 600
* @note #define GDISP_SCREEN_WIDTH 800
*
* @note Number of pixels per byte<br>
* #define EINK_PPB 4
*
* @note Delay for generating clock pulses.
* Unit is approximate clock cycles of the CPU (0 to 15).
* This should be atleast 50 ns.<br>
* #define EINK_CLOCKDELAY 0
*
* @note Width of one framebuffer block.
* Must be divisible by EINK_PPB and evenly divide GDISP_SCREEN_WIDTH.<br>
* #define EINK_BLOCKWIDTH 20
*
* @note
* @note Height of one framebuffer block.
* Must evenly divide GDISP_SCREEN_WIDTH.<br>
* #define EINK_BLOCKHEIGHT 20
*
* @note Number of block buffers to use for framebuffer emulation.<br>
* #define EINK_NUMBUFFERS 40
*
* @note Do a "blinking" clear, i.e. clear to opposite polarity first.
* This reduces the image persistence.<br>
* #define EINK_BLINKCLEAR GFXON
*
* @note Number of passes to use when clearing the display<br>
* #define EINK_CLEARCOUNT 10
*
* @note Number of passes to use when writing to the display<br>
* #define EINK_WRITECOUNT 4
*/
static GFXINLINE void init_board(GDisplay *g) {
(void) g;
}
static void eink_delay(int us) {
(void) us;
}
static GFXINLINE void setpower_vdd(GDisplay *g, gBool on) {
(void) g;
(void) on;
}
static GFXINLINE void setpower_vneg(GDisplay *g, gBool on) {
(void) g;
(void) on;
}
static GFXINLINE void setpower_vpos(GDisplay *g, gBool on) {
(void) g;
(void) on;
}
static GFXINLINE void setpin_le(GDisplay *g, gBool on) {
(void) g;
(void) on;
}
static GFXINLINE void setpin_oe(GDisplay *g, gBool on) {
(void) g;
(void) on;
}
static GFXINLINE void setpin_cl(GDisplay *g, gBool on) {
(void) g;
(void) on;
}
static GFXINLINE void setpin_sph(GDisplay *g, gBool on) {
(void) g;
(void) on;
}
static GFXINLINE void setpins_data(GDisplay *g, gU8 value) {
(void) g;
(void) value;
}
static GFXINLINE void setpin_ckv(GDisplay *g, gBool on) {
(void) g;
(void) on;
}
static GFXINLINE void setpin_gmode(GDisplay *g, gBool on) {
(void) g;
(void) on;
}
static GFXINLINE void setpin_spv(GDisplay *g, gBool on) {
(void) g;
(void) on;
}
#endif /* _GDISP_LLD_BOARD_H */
|
import { ObjectId } from 'mongodb'
import { createWriteStream, mkdir } from 'fs'
import { join, basename, sep } from 'path'
import fetch from 'node-fetch'
import { DATA_DIRECTORY as _D } from '../../../../../../../config/index.js'
import raster2pgsql from '../raster2pgsql/index.js'
import { nanoid } from 'nanoid'
import normalizeDownloadUrl from '../../../../../../../lib/normalize-data-download-uri.js'
const DATA_DIRECTORY = `${_D}${sep}`
const createUniqueDirectory = async () => {
const p = join(DATA_DIRECTORY, nanoid())
return await new Promise((resolve, reject) =>
mkdir(p, { mode: '777' }, error => (error ? reject(error) : resolve(p)))
)
}
export default async (ctx, databook, tableName, { immutableResource, id }) => {
const { Databooks } = await ctx.mongo.collections
console.log(databook._id, 'Creating table', tableName)
const dir = await createUniqueDirectory()
try {
// Stream the download to the unique directory
const downloadURL = await normalizeDownloadUrl(immutableResource?.resourceDownload.downloadURL)
const rasterFilePath = join(dir, basename(downloadURL))
const res = await fetch(downloadURL)
await new Promise((resolve, reject) => {
const writeStream = createWriteStream(rasterFilePath)
res.body.pipe(writeStream)
res.body.on('end', resolve)
res.body.on('error', error => reject(error))
})
// Process the NetCDF into PostGIS
console.info('Writing raster file to', rasterFilePath)
await raster2pgsql(ctx, databook, tableName, rasterFilePath)
/**
* Register the ODP ID in the PostGIS odp_map table
* This is so that if a user renames the table, the
* association between the ODP and the data is kept
*/
const { _id: databookId, _id: schema } = databook
const { query } = ctx.postgis
await query({
text: `
insert into "${schema}".odp_map (odp_record_id, table_name, file_location)
select
'${id}' odp_id,
'${tableName}' table_name,
'${rasterFilePath}' file_location;
`,
})
/**
* Update the databook (Mongo doc) to
* indicate that this table is ready
*/
await Databooks.findOneAndUpdate(
{ _id: ObjectId(databookId) },
{
$set: {
[`tables.${tableName}.ready`]: true,
},
}
)
} catch (error) {
console.error(
tableName,
'Error creating table for',
databook._id,
'Resource download failed',
error.message
)
await Databooks.findOneAndUpdate(
{ _id: ObjectId(databook._id) },
{
$set: {
[`tables.${tableName}.error`]: error.message,
},
}
)
} finally {
/**
* Update the databook to indicate
* that no more work is to be done on it
*/
await Databooks.findOneAndUpdate(
{ _id: ObjectId(databook._id) },
{
$set: {
complete: true,
},
}
)
}
}
|
var NAVTREEINDEX2 =
{
"struct_epid_ca_certificate.html#ac03cf7257c52ad14e3dd3201b930dd50":[21,0,0,2,2,2],
"struct_epid_file_header.html":[21,0,0,2,1],
"struct_epid_file_header.html#a35d43c51c1739940381e4898ca87b824":[21,0,0,2,1,0],
"struct_epid_file_header.html#af5d48c739cc6c00c6e1ce35abf4f1473":[21,0,0,2,1,1],
"struct_epid_non_split_signature.html":[21,0,0,4,25],
"struct_epid_non_split_signature.html#a3b6159c91861f586476cb07ac5eb7e86":[21,0,0,4,25,3],
"struct_epid_non_split_signature.html#a4e25006ca2f2b772f6bdb233e11df399":[21,0,0,4,25,2],
"struct_epid_non_split_signature.html#aeb2e765c1c106a12d1c40651e044c981":[21,0,0,4,25,0],
"struct_epid_non_split_signature.html#aff5218e973dce83e2a1b9560a0046867":[21,0,0,4,25,1],
"struct_epid_split_signature.html":[21,0,0,4,26],
"struct_epid_split_signature.html#a34293364723ebfaa4db406024cf578eb":[21,0,0,4,26,1],
"struct_epid_split_signature.html#a802c899a0752205fa33c3272422b3cbf":[21,0,0,4,26,4],
"struct_epid_split_signature.html#a8fdaf817dae2ad4625ec8fc63544b78c":[21,0,0,4,26,0],
"struct_epid_split_signature.html#aa7a0499b3ca330717510d6147b295d78":[21,0,0,4,26,2],
"struct_epid_split_signature.html#afe20efc32021d444a35328a9b004181f":[21,0,0,4,26,3],
"struct_fp_elem_str.html":[21,0,0,4,9],
"struct_fp_elem_str.html#a5ddb96a5567750f2834335851c906c45":[21,0,0,4,9,0],
"struct_fq12_elem_str.html":[21,0,0,4,35],
"struct_fq12_elem_str.html#a0520947335aaf52de90af1dec5bdd112":[21,0,0,4,35,0],
"struct_fq2_elem_str.html":[21,0,0,4,33],
"struct_fq2_elem_str.html#ab1d253eb24ba30eaf516ac429daab915":[21,0,0,4,33,0],
"struct_fq3_elem_str.html":[21,0,0,4,0,3],
"struct_fq3_elem_str.html#af1be0a4d5c9c674d75bec34f95e3c731":[21,0,0,4,0,3,0],
"struct_fq6_elem_str.html":[21,0,0,4,34],
"struct_fq6_elem_str.html#a89d656e5c815b4a2382d11ef6932a7d2":[21,0,0,4,34,0],
"struct_fq_elem_str.html":[21,0,0,4,10],
"struct_fq_elem_str.html#aac1a876b51a8d2c6d1510e4df2fd3f14":[21,0,0,4,10,0],
"struct_g1_elem_str.html":[21,0,0,4,11],
"struct_g1_elem_str.html#a3b0e658d6e5697763ad9c633c11d4ec4":[21,0,0,4,11,0],
"struct_g1_elem_str.html#a8f2455ca314e885ea180dadf84bf27c3":[21,0,0,4,11,1],
"struct_g2_elem_str.html":[21,0,0,4,12],
"struct_g2_elem_str.html#a145ec5b20a6f4f00b080e11c8680afc3":[21,0,0,4,12,0],
"struct_g2_elem_str.html#a43141b2458aecceed8ee2748270f7908":[21,0,0,4,12,1],
"struct_group_pub_key.html":[21,0,0,4,15],
"struct_group_pub_key.html#a2a4320ec99fd1a15df412fbf2a8d49f1":[21,0,0,4,15,2],
"struct_group_pub_key.html#a86be439104fb60b324784baf24a943f9":[21,0,0,4,15,3],
"struct_group_pub_key.html#a8c22c758ea186f95e3bf4b2ef8451da5":[21,0,0,4,15,1],
"struct_group_pub_key.html#ae8e77ab4d5eb3c8e566c24a64cce56ee":[21,0,0,4,15,0],
"struct_group_rl.html":[21,0,0,4,30],
"struct_group_rl.html#a51022e172ab8b945efc69f1e63170107":[21,0,0,4,30,0],
"struct_group_rl.html#a69c41d99cdfc5b6ece7442f466f7ec3f":[21,0,0,4,30,2],
"struct_group_rl.html#a9067f01c63cdefbc8e23c3cf67a10172":[21,0,0,4,30,1],
"struct_gt_elem_str.html":[21,0,0,4,13],
"struct_gt_elem_str.html#aeaeb0e9e1c6efd378a475eb9a6c42132":[21,0,0,4,13,0],
"struct_i_priv_key.html":[21,0,0,4,16],
"struct_i_priv_key.html#a6d484175317aef09fb959c3ca55fc70a":[21,0,0,4,16,0],
"struct_i_priv_key.html#ad400a4237b6d50855538fd40580eb1bb":[21,0,0,4,16,1],
"struct_join_request.html":[21,0,0,4,20],
"struct_join_request.html#a005651506fd4511e8a3537f6c3634532":[21,0,0,4,20,1],
"struct_join_request.html#a55e30a274e83b808db6fbab5ae6c6cb8":[21,0,0,4,20,0],
"struct_join_request.html#a73bf8989df5f90eb3d06e7a42ad74d1d":[21,0,0,4,20,2],
"struct_member_join_request.html":[21,0,1,2],
"struct_member_join_request.html#a7e7f8c457ebf064bf67b7438a7faff95":[21,0,1,2,1],
"struct_member_join_request.html#aa244ce046e3ab4368f44fc884dd7c830":[21,0,1,2,0],
"struct_member_params.html":[21,0,1,1],
"struct_member_params.html#a2a70925178dde0be7ab6f9c194cbea83":[21,0,1,1,1],
"struct_member_params.html#a6e801b7f5a174718e62a63dbdbc9cba5":[21,0,1,1,5],
"struct_member_params.html#a866b01e417a627766e0dd79a0bb2e5db":[21,0,1,1,2],
"struct_member_params.html#aaa44d097f5c6d379e6abc71888733cdb":[21,0,1,1,3],
"struct_member_params.html#aae535c467bee60483e206f5476e6f48b":[21,0,1,1,0],
"struct_member_params.html#ad844c7a2be20bac70b118e7c08530c0b":[21,0,1,1,4],
"struct_member_precomp.html":[21,0,0,4,32],
"struct_member_precomp.html#a4e7412969bed3964f813b093b948e7b4":[21,0,0,4,32,1],
"struct_member_precomp.html#a55e5c4b25c8f0f426969a8d745260fe5":[21,0,0,4,32,0],
"struct_member_precomp.html#a573551f6494e372f44fd3bdf5b02aeda":[21,0,0,4,32,3],
"struct_member_precomp.html#a879d5a7b0c30088b23f6e5c5fc62f834":[21,0,0,4,32,2],
"struct_membership_credential.html":[21,0,0,4,19],
"struct_membership_credential.html#a2c5c0d22999d6917fea5ad6618883bcf":[21,0,0,4,19,2],
"struct_membership_credential.html#a6d38ac3a9c5417833b8adb9b22bc9dc8":[21,0,0,4,19,0],
"struct_membership_credential.html#afbff64ec55888c7e2a658eabb5e16671":[21,0,0,4,19,1],
"struct_nr_proof.html":[21,0,0,4,23],
"struct_nr_proof.html#a0de1aa69acf3d93da34cf4a613b359a1":[21,0,0,4,23,0],
"struct_nr_proof.html#a717ec36a6c91acd01d9b642bb20fc178":[21,0,0,4,23,1],
"struct_nr_proof.html#ace535065bbf96502b893ac677dc8dcd3":[21,0,0,4,23,3],
"struct_nr_proof.html#ae2e9f22089793a4d44a0f7f5cdb78a0c":[21,0,0,4,23,2],
"struct_oct_str128.html":[21,0,0,4,5],
"struct_oct_str128.html#a7482aa9b0b580fdd50bd65419d52d4b9":[21,0,0,4,5,0],
"struct_oct_str16.html":[21,0,0,4,2],
"struct_oct_str16.html#a86ed6671693a3f60ec4ff7de2c1206c3":[21,0,0,4,2,0],
"struct_oct_str256.html":[21,0,0,4,6],
"struct_oct_str256.html#a359781bb84f5717a16094583a00ef14e":[21,0,0,4,6,0],
"struct_oct_str32.html":[21,0,0,4,3],
"struct_oct_str32.html#a5588a7e70f3d73f6ce58b567a9f5c5c8":[21,0,0,4,3,0],
"struct_oct_str512.html":[21,0,0,4,7],
"struct_oct_str512.html#abd4d1b97fe49321571da86de1aeac653":[21,0,0,4,7,0],
"struct_oct_str600.html":[21,0,0,4,0,1],
"struct_oct_str600.html#a06d53af92a06e1decc6062fd16c43a59":[21,0,0,4,0,1,0],
"struct_oct_str64.html":[21,0,0,4,4],
"struct_oct_str64.html#a0e107d78192a5ae0b48ed9e5c4eab0fc":[21,0,0,4,4,0],
"struct_oct_str768.html":[21,0,0,4,0,2],
"struct_oct_str768.html#ae45eea89259bd22e60a8d960063921cc":[21,0,0,4,0,2,0],
"struct_oct_str8.html":[21,0,0,4,1],
"struct_oct_str8.html#a5e6c56fda48c88b419e621b464b03bef":[21,0,0,4,1,0],
"struct_oct_str80.html":[21,0,0,4,0,0],
"struct_oct_str80.html#af80e2b81554109d9a41c5e771aceb8c9":[21,0,0,4,0,0,0],
"struct_priv_key.html":[21,0,0,4,17],
"struct_priv_key.html#a266c7e369b8b868ef5755e9cd3c0c849":[21,0,0,4,17,0],
"struct_priv_key.html#aa805f9e124f05bdb733c85cb93614cbd":[21,0,0,4,17,3],
"struct_priv_key.html#ab416dcb4366427c24b44c2a02e4ae7c8":[21,0,0,4,17,2],
"struct_priv_key.html#ad7ee0392a583edd2e287cf8c1f9066ba":[21,0,0,4,17,1],
"struct_priv_rl.html":[21,0,0,4,27],
"struct_priv_rl.html#a4c6b51cec760f7e81ca8635422ac6a50":[21,0,0,4,27,3],
"struct_priv_rl.html#a60d73f9ef5fc81f117b3abadf8c18466":[21,0,0,4,27,0],
"struct_priv_rl.html#a6da9639ec4061689d1c30a58e0befd14":[21,0,0,4,27,2],
"struct_priv_rl.html#af7317529b8e55476bd06b66ed8131d64":[21,0,0,4,27,1],
"struct_sha256_digest.html":[21,0,0,0,4,0],
"struct_sha256_digest.html#a4b6462ddd3f89e4c40220ceb6b1c7f28":[21,0,0,0,4,0,0],
"struct_sig_rl.html":[21,0,0,4,29],
"struct_sig_rl.html#a12757d30fcccd310716433948e0b603e":[21,0,0,4,29,1],
"struct_sig_rl.html#a9dfb6b508db9051f4dc480a51d702af2":[21,0,0,4,29,2],
"struct_sig_rl.html#ac23a919993d99d24a5150302f1778102":[21,0,0,4,29,0],
"struct_sig_rl.html#ac9d4c343c539dba799e1f42eb38b351f":[21,0,0,4,29,3],
"struct_sig_rl_entry.html":[21,0,0,4,28],
"struct_sig_rl_entry.html#a0dfeb058614e81878bfbf86ae3edac3c":[21,0,0,4,28,1],
"struct_sig_rl_entry.html#ac6a47ff0d1b8ea1512e0ff14983ac5ce":[21,0,0,4,28,0],
"struct_split_join_request.html":[21,0,0,4,21],
"struct_split_join_request.html#a4cc4fa132b08b6dd4cdc0701135dffa3":[21,0,0,4,21,1],
"struct_split_join_request.html#a7c7bd55893d9e42f70b20580181b1f0c":[21,0,0,4,21,0],
"struct_split_join_request.html#a9ed71c5b02dbf2172076906ca6cede9a":[21,0,0,4,21,5],
"struct_split_join_request.html#aa9c715654ed9822fb40bc89aac643291":[21,0,0,4,21,2],
"struct_split_join_request.html#ab73799a5e0416a80e00c5477014a0cdc":[21,0,0,4,21,3],
"struct_split_join_request.html#aeb51561edfd5e8afb1a16cb2cb45e241":[21,0,0,4,21,4],
"struct_split_nr_proof.html":[21,0,0,4,24],
"struct_split_nr_proof.html#a1dab9fd1ccea5040d1e52a3185a0f1b7":[21,0,0,4,24,2],
"struct_split_nr_proof.html#a6c66462496462004fd8773e067dbdf05":[21,0,0,4,24,0],
"struct_split_nr_proof.html#a908f7a2c9d1b7b0749ba1d707ba78af6":[21,0,0,4,24,1],
"struct_split_nr_proof.html#a9ca85ae6cbec025aa47a8424828258fc":[21,0,0,4,24,4],
"struct_split_nr_proof.html#ae63384bd5e9cf10bc8003fe9a17c0cf2":[21,0,0,4,24,3],
"struct_verifier_precomp.html":[21,0,2,1],
"struct_verifier_precomp.html#a8caf79578e3c0baf91921460391103ca":[21,0,2,1,2],
"struct_verifier_precomp.html#ab061d6cc07d1467eeb5bf25f3ea7e306":[21,0,2,1,3],
"struct_verifier_precomp.html#ad1106376f12772942af0331eb74de6e5":[21,0,2,1,0],
"struct_verifier_precomp.html#af8fd90f3a5a2be932a97dcd86099d5b2":[21,0,2,1,1],
"struct_verifier_precomp.html#afc3e29a325c95c62bb192d5f8cdd5c1c":[21,0,2,1,4],
"struct_verifier_rl.html":[21,0,0,4,31],
"struct_verifier_rl.html#a1e3f84b873bccc0c882aa6432c42d2f7":[21,0,0,4,31,3],
"struct_verifier_rl.html#a5d9a9265fffa96fd5f9260543eb08c68":[21,0,0,4,31,0],
"struct_verifier_rl.html#ab85c4666d16145ff16443e84468d2d7d":[21,0,0,4,31,1],
"struct_verifier_rl.html#ac7d3dceab4772096bbbeb3fa735d18a9":[21,0,0,4,31,2],
"struct_verifier_rl.html#afa44ab69ffff5a3508366aeb2131fdaa":[21,0,0,4,31,4],
"user":[0]
};
|
# Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import numpy as np
from akg.utils import kernel_exec as utils
from tests.common.test_op import insn_vec_binary_elemwise
from tests.common.tensorio import compare_tensor
from tests.common.gen_random import random_gaussian
def insn_vec_binary_elemwise_run(shape, dtype, attrs):
if 'tuning' in attrs.keys():
t = attrs.get("tuning", False)
kernel_name = attrs.get("kernel_name", False)
mod = utils.op_build_test(insn_vec_binary_elemwise.insn_vec_binary_elemwise, [shape, shape], [dtype, dtype],
kernel_name=kernel_name, attrs=attrs, tuning=t)
if t:
args, exp_output, inputs = gen_data(dtype, shape)
return mod, exp_output, args
else:
return mod
else:
mod = utils.op_build_test(insn_vec_binary_elemwise.insn_vec_binary_elemwise, [shape, shape], [dtype, dtype],
kernel_name='insn_vec_binary_elemwise', attrs=attrs)
args, exp_output, inputs = gen_data(dtype, shape)
acu_output = utils.mod_launch(mod, args, expect=exp_output)
# compare result
TestCase_Result = compare_tensor(acu_output, exp_output, rtol=5e-03, equal_nan=True)
return inputs, acu_output, exp_output, TestCase_Result
def gen_data(dtype, shape):
# Result_Numpy
support_list = {"float16": np.float16, "float32": np.float32}
input1 = random_gaussian(shape, miu=1, sigma=0.1).astype(support_list[dtype])
input2 = random_gaussian(shape, miu=0.5, sigma=0.01).astype(support_list[dtype])
""" Generate the exp_output for validating the op """
exp_output = input1 + input2
# inputs and output to hold the data
output = np.full(exp_output.shape, np.nan, dtype)
inputs = [input1, input2]
args = [input1, input2, output]
return args, exp_output, inputs
|
require('garnet');
var
kind = require('enyo/kind'),
Collection = require('enyo/Collection.js'),
EmptyBinding = require('enyo/EmptyBinding.js'),
Item = require('garnet/Item'),
DataList = require('garnet/DataList'),
Panel = require('garnet/Panel'),
Title = require('garnet/Title'),
SelectionOverlaySupport = require('garnet/SelectionOverlaySupport'),
MarqueeSupport = require('garnet/MarqueeSupport');
var RadioButtonItemBase = kind({
name: 'g.sample.RadioButtonItemBase',
kind: Item,
border: true,
classes: 'g-sample-datalist-radiobuttons-item',
published: {
title: '',
selected: false
},
components: [
{name: 'title', classes: 'radiobutton-item-title', mixins: [MarqueeSupport]}
],
bindings: [
{from: '.title', to: '.$.title.content'},
{from: '.title', to: '.$.title.showing', kind: EmptyBinding}
],
create: kind.inherit(function(sup) {
return function() {
sup.apply(this, arguments);
this.selectedChanged();
};
}),
selectedChanged: function() {
this.addRemoveClass('selected', this.selected);
},
disabledChanged: function() {
this.addRemoveClass('disabled', this.disabled);
},
// Accessibility
/**
* @private
*/
tabIndex: -1,
/**
* @private
*/
accessibilityRole: 'radio',
/**
* @private
*/
ariaObservers: [
{from: 'selected', to: 'aria-checked'}
]
});
var RadioButtonItem = kind({
name: 'g.sample.RadioButtonItem',
kind: RadioButtonItemBase,
mixins: [SelectionOverlaySupport],
selectionScrimIcon: {
'w320': 'garnet/images/320/btn_radio.svg',
'w360': 'garnet/images/360/btn_radio.svg'
},
selectionOverlayVerticalOffset: 53,
selectionOverlayHorizontalOffset: 69.3,
bindings: [
{from: '.model.albumTitle', to: '.title'}
]
});
var RadioDataListPanel = kind({
name: 'g.sample.RadioDataListPanel',
kind: Panel,
noDefer: true,
events: {
onResult: ''
},
components: [
{
name: 'list',
kind: DataList,
controlsPerPage: 4,
selection: true,
selectionType: 'group',
headerComponents: [{kind: Title, content: 'DataList with Radio Buttons'}],
components: [
{kind: RadioButtonItem, ontap: 'tapItem'}
]
}
],
commandBarComponents: [
{name: 'cancel', classes: 'g-common-cancel', ontap: 'tapCancel'},
{name: 'ok', classes: 'g-common-ok', ontap: 'tapOK', disabled: true}
],
bindings: [
{from: '.collection', to: '.$.list.collection'},
{from: '.title', to: '.$.listTitle.content'}
],
getSelectedItem: function() {
if (this.$.list.get('selected')) {
return this.$.list.get('selected').attributes.albumTitle;
} else {
return '';
}
},
tapItem: function(inSender, inEvent) {
if (inEvent.originator.owner.selected) {
this.doResult({msg: 'The ' + inEvent.originator.owner.getTitle() + ' in the list is selected.'});
}
this.$.ok.setDisabled(false);
},
tapCancel: function() {
this.doResult({msg: 'Cancel button is pressed.'});
},
tapOK: function() {
this.doResult({msg: 'OK button is pressed: ' + this.getSelectedItem()});
}
});
module.exports = kind({
name: 'g.sample.DataListwithRadioButtonsSample',
classes: 'enyo-unselectable enyo-fit garnet g-sample g-sample-datalist-radiobuttons',
components: [
{content: '< DataList with Radio Buttons Sample', classes: 'g-sample-header', ontap: 'goBack'},
{content: 'DataList with Radio Buttons', classes: 'g-sample-subheader'},
{name: 'radioDataListPanel', kind: RadioDataListPanel, classes: 'g-sample-panel', onResult: 'result'},
{src: '@../assets/btn_command_next.svg', classes: 'g-sample-result', components: [
{content: 'Result', classes: 'g-sample-subheader'},
{name: 'result', allowHtml: true, content: 'No item selected yet.', classes: 'g-sample-description'}
]}
],
bindings: [
{from: '.collection', to: '.$.radioDataListPanel.collection'}
],
create: kind.inherit(function(sup) {
return function() {
sup.apply(this, arguments);
this.collection = new Collection(this.data);
};
}),
result: function(inSender, inEvent) {
this.$.result.setContent(inEvent.msg);
},
goBack: function(inSender, inEvent) {
global.history.go(-1);
return false;
},
data: [
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Looooooooooong Title', albumGenre: 'Rock'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Marquez', albumGenre: 'Pop'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Barr', albumGenre: 'Hiphop'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Everett', albumGenre: 'Rock'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Crane', albumGenre: 'Ballad'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Raymond', albumGenre: 'Rock'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Petersen', albumGenre: 'Pop'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Kristina', albumGenre: 'Ballad'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Barbra', albumGenre: 'Rock'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Tracey', albumGenre: 'Hiphop'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Looooooooooong Title', albumGenre: 'Rock'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Marquez', albumGenre: 'Pop'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Barr', albumGenre: 'Hiphop'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Everett', albumGenre: 'Rock'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Crane', albumGenre: 'Ballad'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Raymond', albumGenre: 'Rock'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Petersen', albumGenre: 'Pop'},
{iconUrl: '@../assets/ic_dialog_alert.svg', albumTitle: 'Kristina', albumGenre: 'Ballad'}
]
});
|
# coding: utf-8
"""Tests for the elpy.yapf module"""
import unittest
from elpy import yapfutil
from elpy.rpc import Fault
from elpy.tests.support import BackendTestCase
@unittest.skipIf(yapfutil.YAPF_NOT_SUPPORTED,
'yapf not supported for current python version')
class YAPFTestCase(BackendTestCase):
def setUp(self):
if yapfutil.YAPF_NOT_SUPPORTED:
raise unittest.SkipTest
def test_fix_code_should_throw_error_for_invalid_code(self):
src = 'x = '
self.assertRaises(Fault, yapfutil.fix_code, src)
def test_fix_code(self):
testdata = [
('x= 123\n', 'x = 123\n'),
('x=1; \ny=2 \n', 'x = 1\ny = 2\n'),
]
for src, expected in testdata:
self._assert_format(src, expected)
def _assert_format(self, src, expected):
new_block = yapfutil.fix_code(src)
self.assertEqual(new_block, expected)
|
# Copyright (c) 2015-2020 Cloudify Platform Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
import unittest
import cloudify_terminal_sdk.netconf_connection as netconf_connection
from cloudify_common_sdk import exceptions
class NetConfConnectionTest(unittest.TestCase):
def generate_all_mocks(self):
"""will generate netconf obj with all need mocks"""
netconf = netconf_connection.NetConfConnection()
netconf.ssh = mock.Mock()
netconf.ssh.close = mock.MagicMock()
netconf.conn = mock.Mock()
netconf.conn.close = mock.MagicMock()
# 256 - send by 256 bytes
netconf.conn.send = mock.MagicMock(return_value=256)
netconf.conn.recv = mock.MagicMock(
return_value=netconf_connection.NETCONF_1_0_END
)
netconf.conn.closed = True
return netconf
def test_send_1_0(self):
"""check send"""
netconf = self.generate_all_mocks()
netconf.conn.recv = mock.MagicMock(
return_value=(
"pong" + netconf_connection.NETCONF_1_0_END
)
)
self.assertEqual(
"pong",
netconf.send("ping")
)
netconf.conn.send.assert_called_with(
"ping" + netconf_connection.NETCONF_1_0_END
)
def test_send_1_0_close_without_final_part(self):
"""check send with fast close"""
netconf = self.generate_all_mocks()
netconf.conn.recv = mock.MagicMock(
return_value=(
"pong"
)
)
self.assertEqual(
"pong",
netconf.send("ping")
)
netconf.conn.send.assert_called_with(
"ping" + netconf_connection.NETCONF_1_0_END
)
def test_send_1_1(self):
"""check send with 1.1 version"""
netconf = self.generate_all_mocks()
netconf.current_level = netconf_connection.NETCONF_1_1_CAPABILITY
netconf.conn.recv = mock.MagicMock(
return_value=(
"\n#5\n<rpc>\n#6\n</rpc>\n##\n"
)
)
self.assertEqual(
"<rpc></rpc>",
netconf.send("ping")
)
netconf.conn.send.assert_called_with(
"\n#4\nping\n##\n"
)
# check with preloaded
netconf.buff = "\n#25\n12345678901234567890"
netconf.conn.recv = mock.MagicMock(
return_value=(
"12345\n#5\n<rpc>\n#6\n</rpc>\n##\n"
)
)
self.assertEqual(
"1234567890123456789012345<rpc></rpc>",
netconf.send("ping")
)
netconf.conn.send.assert_called_with(
"\n#4\nping\n##\n"
)
self.assertEqual(
"", netconf.buff
)
# check with preloaded
netconf.buff = "\n#5"
netconf.conn.recv = mock.MagicMock(
return_value=(
"\n12345\n#5\n<rpc>\n#6\n</rpc>\n##\n"
)
)
self.assertEqual(
"12345<rpc></rpc>",
netconf.send("ping")
)
netconf.conn.send.assert_called_with(
"\n#4\nping\n##\n"
)
self.assertEqual(
"", netconf.buff
)
# broken package
netconf.conn.recv = mock.MagicMock(
return_value=(
"\n1"
)
)
with self.assertRaises(exceptions.NonRecoverableError):
netconf.send("ping")
# empty package with closed connection
netconf.buff = ""
netconf.conn.recv = mock.MagicMock(return_value=(""))
self.assertEqual(netconf.send("ping"), "")
def test_close(self):
netconf = self.generate_all_mocks()
# save mocks
_conn_mock = netconf.conn
_ssh_mock = netconf.ssh
# run commands
netconf.conn.recv = mock.MagicMock(
return_value=(
"ok" + netconf_connection.NETCONF_1_0_END
)
)
self.assertEqual(
"ok",
netconf.close("close")
)
_conn_mock.send.assert_called_with(
"close" + netconf_connection.NETCONF_1_0_END
)
_conn_mock.close.assert_called_with()
_ssh_mock.close.assert_called_with()
def test_connect_with_password(self):
"""connect call with password"""
# ssh mock
will_be_ssh = mock.Mock()
will_be_ssh.connect = mock.MagicMock()
# channel mock
channel_mock = mock.Mock()
channel_mock.recv = mock.MagicMock(
return_value=(
"ok" + netconf_connection.NETCONF_1_0_END
)
)
channel_mock.send = mock.MagicMock(return_value=1024)
channel_mock.invoke_subsystem = mock.MagicMock()
# transport mock
transport_mock = mock.MagicMock()
transport_mock.open_session = mock.MagicMock(
return_value=channel_mock
)
will_be_ssh.get_transport = mock.MagicMock(
return_value=transport_mock
)
mock_ssh_client = mock.MagicMock(return_value=will_be_ssh)
with mock.patch("paramiko.SSHClient", mock_ssh_client):
netconf = netconf_connection.NetConfConnection()
message = netconf.connect(
"127.0.0.100", "me", hello_string="hi",
password="unknow"
)
# check calls
self.assertEqual(message, "ok")
mock_ssh_client.assert_called_with()
will_be_ssh.connect.assert_called_with(
'127.0.0.100', username='me', password='unknow', port=830,
allow_agent=False, look_for_keys=False, timeout=5
)
will_be_ssh.get_transport.assert_called_with()
transport_mock.open_session.assert_called_with()
channel_mock.invoke_subsystemassert_called_with('netconf')
channel_mock.send.assert_called_with(
"hi" + netconf_connection.NETCONF_1_0_END
)
def test_connect_with_key(self):
"""connect call with key"""
# ssh mock
will_be_ssh = mock.Mock()
will_be_ssh.connect = mock.MagicMock()
# channel mock
channel_mock = mock.Mock()
channel_mock.recv = mock.MagicMock(
return_value=(
"ok" + netconf_connection.NETCONF_1_0_END
)
)
channel_mock.send = mock.MagicMock(return_value=1024)
channel_mock.invoke_subsystem = mock.MagicMock()
# transport mock
transport_mock = mock.MagicMock()
transport_mock.open_session = mock.MagicMock(
return_value=channel_mock
)
will_be_ssh.get_transport = mock.MagicMock(
return_value=transport_mock
)
mock_ssh_client = mock.MagicMock(return_value=will_be_ssh)
with mock.patch("paramiko.SSHClient", mock_ssh_client):
with mock.patch(
"paramiko.RSAKey.from_private_key",
mock.MagicMock(return_value="secret")
):
netconf = netconf_connection.NetConfConnection()
message = netconf.connect(
"127.0.0.100", "me", hello_string="hi",
key_content="unknow"
)
# check calls
self.assertEqual(message, "ok")
mock_ssh_client.assert_called_with()
will_be_ssh.connect.assert_called_with(
'127.0.0.100', username='me', pkey='secret', port=830,
allow_agent=False, timeout=5
)
will_be_ssh.get_transport.assert_called_with()
transport_mock.open_session.assert_called_with()
channel_mock.invoke_subsystemassert_called_with('netconf')
channel_mock.send.assert_called_with(
"hi" + netconf_connection.NETCONF_1_0_END
)
if __name__ == '__main__':
unittest.main()
|
from PySide2.QtCore import QTimer
from NIENV import *
# GENERAL
# self.input(index) <- access to input data
# self.outputs[index].set_val(val) <- set output data port value
# self.main_widget <- access to main widget
# self.exec_output(index) <- executes an execution output
# EDITING
# self.create_new_input(type_, label, widget_name=None, widget_pos='under', pos=-1)
# self.delete_input(input or index)
# self.create_new_output(type_, label, pos=-1)
# self.delete_output(output or index)
# LOGGING
# mylog = self.new_log('Example Log')
# mylog.log('I\'m alive!!')
# self.log_message('hello global!', 'global')
# self.log_message('that\'s not good', 'error')
class %CLASS%(NodeInstance):
def __init__(self, params):
super(%CLASS%, self).__init__(params)
self.special_actions['start'] = {'method': M(self.action_start)}
self.special_actions['stop'] = {'method': M(self.action_stop)}
self.timer = QTimer()
self.timer.timeout.connect(M(self.timeouted))
def update_event(self, input_called=-1):
pass
def action_start(self):
self.update_timer_interval(self.input(0))
self.timer.start()
def action_stop(self):
self.timer.stop()
def update_timer_interval(self, new_val):
self.timer.setInterval(new_val*1000)
def timeouted(self):
self.exec_output(0)
def get_data(self):
data = {}
# ...
return data
def set_data(self, data):
pass
def remove_event(self):
self.timer.stop()
|
def get_robot(robot_config, bullet_client):
robot_name = robot_config.pop("name")
if robot_name == 'panda':
from .Panda.panda import Panda
robot = Panda(bullet_client, **robot_config)
elif robot_name == 'ur5':
from .UR5.ur5 import UR5
robot = UR5(bullet_client, **robot_config)
else:
raise ValueError(f"Unknown robot: {robot_name}")
return robot
import logging
import os
import time
from collections import namedtuple
import numpy as np
import pybullet as p
from gym import spaces
from numpy.random import RandomState
Joint = namedtuple("Joint", ["id", "initial_position", "limits",
"max_velocity", "max_torque"])
Link = namedtuple("Link", ["mass", "linearDamping"])
class RobotArm:
def __init__(self, bullet_client, urdf_file,
joints_arm, joints_hand, links=None,
offset=(0, 0, 0), sim_time=0.,
scale=1., parameter_distributions=None):
self.logger = logging.Logger(f"robot:panda:{bullet_client}")
if parameter_distributions is None:
parameter_distributions = {}
self.parameter_distributions = parameter_distributions
self.time_step = bullet_client.getPhysicsEngineParameters()[
"fixedTimeStep"]
if not sim_time:
sim_time = self.time_step
if sim_time < self.time_step:
self.logger.warning(
"time step of robot is smaller than time step of simulation. This might lead to unintended behavior.")
self.scale = scale
self.max_steps = int(sim_time / self.time_step)
self.offset = offset
self.bullet_client = bullet_client
self.random = RandomState(
int.from_bytes(os.urandom(4), byteorder='little'))
self.model_id = bullet_client.loadURDF(urdf_file, self.offset,
useFixedBase=True,
flags=p.URDF_USE_SELF_COLLISION | p.URDF_MAINTAIN_LINK_ORDER)
self.joint_name2id = {}
for jj in range(self.bullet_client.getNumJoints(self.model_id)):
jointInfo = self.bullet_client.getJointInfo(self.model_id, jj)
self.joint_name2id[jointInfo[1].decode("utf-8")] = jointInfo[0]
# print(jointInfo[1].decode("utf-8"))
self.joints_arm = {}
self.joints_hand = {}
for joint_name, joint_args in joints_arm.items():
self.joints_arm[joint_name] = Joint(self.joint_name2id[joint_name],
*joint_args)
for joint_name, joint_args in joints_hand.items():
self.joints_hand[joint_name] = Joint(
self.joint_name2id[joint_name], *joint_args)
if links is None:
self.links = {}
else:
self.links = links
print(self.joints_arm)
self.bullet_client.stepSimulation()
# define spaces
self.action_space = spaces.Box(-1., 1.,
shape=(len(self.joints_arm) + 1,))
self.observation_space = spaces.Dict({
"joint_positions": spaces.Box(-1., 1.,
shape=(len(self.joints_arm) +
len(self.joints_hand),)),
"joint_velocities": spaces.Box(-1., 1.,
shape=(len(self.joints_arm) +
len(self.joints_hand),)),
"tcp_position": spaces.Box(-1., 1., shape=(3,)),
})
# reset to initial position
self.reset()
def step(self, action: np.ndarray):
assert self.action_space.contains(action), f"{action}"
action_arm = action[:6]
action_hand = action[-1]
action_arm = list(action_arm * self.scale) # / self.max_steps)
joint_ids = []
target_positions = []
maxVelocities = []
torques = []
for (_, joint), action_joint in zip(self.joints_arm.items(),
action_arm):
position, _, _, _ = self.bullet_client.getJointState(self.model_id,
joint.id)
normalized_joint_position = np.interp(position, joint.limits,
[-1, 1])
normalized_target_joint_position = np.clip(
normalized_joint_position + action_joint, -1, 1)
target_joint_position = np.interp(normalized_target_joint_position,
[-1, 1], joint.limits)
joint_ids.append(joint.id)
target_positions.append(target_joint_position)
torques.append(joint.max_torque)
maxVelocities.append(joint.max_velocity)
self.bullet_client.setJointMotorControlArray(self.model_id,
joint_ids,
p.POSITION_CONTROL,
targetPositions=target_positions,
# maxVelocities=maxVelocities,
forces=torques
)
joint_ids = []
target_positions = []
maxVelocities = []
torques = []
for _, joint in self.joints_hand.items():
position, _, _, _ = self.bullet_client.getJointState(self.model_id,
joint.id)
target_joint_position = np.interp(action_hand, [-1, 1], joint.limits)
joint_ids.append(joint.id)
target_positions.append(target_joint_position)
torques.append(joint.max_torque)
maxVelocities.append(joint.max_velocity)
self.bullet_client.setJointMotorControlArray(self.model_id,
joint_ids,
p.POSITION_CONTROL,
targetPositions=target_positions,
forces=torques
)
for step in range(self.max_steps):
self.bullet_client.stepSimulation()
if self.bullet_client.getConnectionInfo()[
"connectionMethod"] == p.GUI:
time.sleep(self.time_step)
observation = self.get_observation()
return observation
def reset(self, desired_state=None):
"""Reset robot to initial pose and return new state."""
# domain randomization
for parameter, distribution in self.parameter_distributions.items():
std = distribution.get("std", 0)
for link_id, link in self.links.items():
mean = distribution.get("mean", getattr(link, parameter))
parameter_value = np.random.normal(mean, std)
self.bullet_client.changeDynamics(self.model_id, link_id,
**{
parameter: parameter_value})
contact_points = True
if desired_state is not None:
desired_state_arm = desired_state[:6]
desired_state_hand = desired_state[-1]
for (_, joint), desired_state in zip(self.joints_arm.items(),
desired_state_arm):
joint_position = np.interp(desired_state, [-1, 1],
joint.limits)
self.bullet_client.resetJointState(self.model_id, joint.id,
joint_position)
for _, joint in self.joints_hand.items():
joint_position = np.interp(desired_state_hand, [-1, 1],
joint.limits)
self.bullet_client.resetJointState(self.model_id, joint.id,
joint_position)
self.bullet_client.stepSimulation()
contact_points = self.bullet_client.getContactPoints(self.model_id,
self.model_id)
# reset until state is valid
while contact_points:
for _, joint in self.joints_arm.items():
joint_position = self.random.uniform(*joint.limits)
self.bullet_client.resetJointState(self.model_id, joint.id,
joint_position)
for _, joint in self.joints_hand.items():
joint_position = self.random.uniform(*joint.limits)
self.bullet_client.resetJointState(self.model_id, joint.id,
joint_position)
self.bullet_client.stepSimulation()
contact_points = self.bullet_client.getContactPoints(self.model_id,
self.model_id)
observation = self.get_observation()
return observation
def get_observation(self):
joint_positions, joint_velocities = [], []
for _, joint in self.joints_arm.items():
joint_position, joint_velocity, _, _ = self.bullet_client.getJointState(
self.model_id, joint.id)
joint_positions.append(
np.interp(joint_position, joint.limits, [-1, 1]))
joint_velocities.append(np.interp(joint_velocity,
[-joint.max_velocity,
joint.max_velocity],
[-1, 1]))
for _, joint in self.joints_hand.items():
joint_position, joint_velocity, _, _ = self.bullet_client.getJointState(
self.model_id, joint.id)
joint_positions.append(
np.interp(joint_position, joint.limits, [-1, 1]))
joint_velocities.append(np.interp(joint_velocity,
[-joint.max_velocity,
joint.max_velocity],
[-1, 1]))
tcp_position, _, _, _, _, _, tcp_velocity, _ = \
self.bullet_client.getLinkState(self.model_id,
self.joint_name2id["tcp"],
computeLinkVelocity=True)
joint_positions = np.array(joint_positions)
joint_velocities = np.array(joint_velocities)
tcp_position = np.array(tcp_position)
# tcp_velocity = np.array(tcp_velocity)
observation = {
"joint_positions": joint_positions,
"joint_velocities": joint_velocities,
"tcp_position": tcp_position,
# "tcp_velocity": tcp_velocity
}
for key in observation:
observation[key] = observation[key].clip(
self.observation_space[key].low,
self.observation_space[key].high)
return observation
def get_key_points(self, useLinkWorld=True):
joint_ids_arm = [joint.id for _, joint in self.joints_arm.items()]
joint_ids_hand = [joint.id for _, joint in self.joints_hand.items()]
linkStates_arm = self.bullet_client.getLinkStates(self.model_id, joint_ids_arm, False, True)
linkStates_hand = self.bullet_client.getLinkStates(self.model_id, joint_ids_hand, False, True)
if useLinkWorld:
kp_arm = [link[:2] for link in linkStates_arm]
kp_hand = [link[:2] for link in linkStates_hand]
else:
kp_arm = [link[4:6] for link in linkStates_arm]
kp_hand = [link[4:6] for link in linkStates_hand]
return kp_arm, kp_hand
|
class Hello {
say () {
return 'hi child window'
}
}
module.exports = Hello
|
/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2005-2010, Nitobi Software Inc.
* Copyright (c) 2010, IBM Corporation
*/
#import <Foundation/Foundation.h>
#import <AddressBook/ABAddressBook.h>
#import <AddressBookUI/AddressBookUI.h>
#import "PGPlugin.h"
#import "Contact.h"
@interface PGContacts : PGPlugin <ABNewPersonViewControllerDelegate,
ABPersonViewControllerDelegate,
ABPeoplePickerNavigationControllerDelegate
>
{
ABAddressBookRef addressBook;
}
/*
* newContact - create a new contact via the GUI
*
* arguments:
* 1: successCallback: this is the javascript function that will be called with the newly created contactId
*/
- (void) newContact:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/*
* displayContact - IN PROGRESS
*
* arguments:
* 1: recordID of the contact to display in the iPhone contact display
* 2: successCallback - currently not used
* 3: error callback
* options:
* allowsEditing: set to true to allow the user to edit the contact - currently not supported
*/
- (void) displayContact:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/*
* chooseContact
*
* arguments:
* 1: this is the javascript function that will be called with the contact data as a JSON object (as the first param)
* options:
* allowsEditing: set to true to not choose the contact, but to edit it in the iPhone contact editor
*/
- (void) chooseContact:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) newPersonViewController:(ABNewPersonViewController *)newPersonViewController didCompleteWithNewPerson:(ABRecordRef)person;
- (BOOL) personViewController:(ABPersonViewController *)personViewController shouldPerformDefaultActionForPerson:(ABRecordRef)person
property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifierForValue;
/*
* search - searchs for contacts. Only person records are currently supported.
*
* arguments:
* 1: successcallback - this is the javascript function that will be called with the array of found contacts
* 2: errorCallback - optional javascript functiont to be called in the event of an error with an error code.
* options: dictionary containing ContactFields and ContactFindOptions
* fields - ContactFields array
* findOptions - ContactFindOptions object as dictionary
*
*/
- (void) search:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/*
* save - saves a new contact or updates and existing contact
*
* arguments:
* 1: success callback - this is the javascript function that will be called with the JSON representation of the saved contact
* search calls a fixed navigator.service.contacts._findCallback which then calls the succes callback stored before making the call into obj. c
*
*/
- (void) save:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/*
* remove - removes a contact from the address book
*
* arguments:
* 1: 1: successcallback - this is the javascript function that will be called with a (now) empty contact object
*
* options: dictionary containing Contact object to remove
* contact - Contact object as dictionary
*/
- (void) remove: (NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) dealloc;
@end
@interface ContactsPicker : ABPeoplePickerNavigationController
{
BOOL allowsEditing;
NSString* callbackId;
ABRecordID selectedId;
}
@property BOOL allowsEditing;
@property (copy) NSString* callbackId;
@property ABRecordID selectedId;
@end
@interface NewContactsController : ABNewPersonViewController
{
NSString* callbackId;
}
@property (copy) NSString* callbackId;
@end
@interface DisplayContactsController : ABPersonViewController
{
NSString* successCallback;
NSString* errorCallback;
}
@property (copy) NSString* successCallback;
@property (copy) NSString* errorCallback;
//- (void)setEditing:(BOOL)flag animated:(BOOL)animated;
@end
|
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import ConvModule, Scale, bias_init_with_prob, normal_init, DepthwiseSeparableConvModule
from mmcv.cnn import constant_init, kaiming_init
from mmcv.runner import force_fp32
from mmdet.core import (anchor_inside_flags, bbox2distance, bbox_overlaps,
build_assigner, build_sampler, distance2bbox, distance2kps, kps2distance,
images_to_levels, multi_apply, multiclass_nms,
reduce_mean, unmap)
from ..builder import HEADS, build_loss
from .anchor_head import AnchorHead
from .base_dense_head import BaseDenseHead
from .dense_test_mixins import BBoxTestMixin
def last_zero_init(m):
if isinstance(m, nn.Sequential):
constant_init(m[-1], val=0)
else:
constant_init(m, val=0)
class Integral(nn.Module):
"""A fixed layer for calculating integral result from distribution.
This layer calculates the target location by :math: `sum{P(y_i) * y_i}`,
P(y_i) denotes the softmax vector that represents the discrete distribution
y_i denotes the discrete set, usually {0, 1, 2, ..., reg_max}
Args:
reg_max (int): The maximal value of the discrete set. Default: 16. You
may want to reset it according to your new dataset or related
settings.
"""
def __init__(self, reg_max=16):
super(Integral, self).__init__()
self.reg_max = reg_max
self.register_buffer('project',
torch.linspace(0, self.reg_max, self.reg_max + 1))
def forward(self, x):
"""Forward feature from the regression head to get integral result of
bounding box location.
Args:
x (Tensor): Features of the regression head, shape (N, 4*(n+1)),
n is self.reg_max.
Returns:
x (Tensor): Integral result of box locations, i.e., distance
offsets from the box center in four directions, shape (N, 4).
"""
x = F.softmax(x.reshape(-1, self.reg_max + 1), dim=1)
x = F.linear(x, self.project.type_as(x)).reshape(-1, 4)
return x
@HEADS.register_module()
class SCRFDHead(AnchorHead):
"""Generalized Focal Loss: Learning Qualified and Distributed Bounding
Boxes for Dense Object Detection.
GFL head structure is similar with ATSS, however GFL uses
1) joint representation for classification and localization quality, and
2) flexible General distribution for bounding box locations,
which are supervised by
Quality Focal Loss (QFL) and Distribution Focal Loss (DFL), respectively
https://arxiv.org/abs/2006.04388
Args:
num_classes (int): Number of categories excluding the background
category.
in_channels (int): Number of channels in the input feature map.
stacked_convs (int): Number of conv layers in cls and reg tower.
Default: 4.
conv_cfg (dict): dictionary to construct and config conv layer.
Default: None.
norm_cfg (dict): dictionary to construct and config norm layer.
Default: dict(type='GN', num_groups=32, requires_grad=True).
loss_qfl (dict): Config of Quality Focal Loss (QFL).
reg_max (int): Max value of integral set :math: `{0, ..., reg_max}`
in QFL setting. Default: 16.
Example:
>>> self = GFLHead(11, 7)
>>> feats = [torch.rand(1, 7, s, s) for s in [4, 8, 16, 32, 64]]
>>> cls_quality_score, bbox_pred = self.forward(feats)
>>> assert len(cls_quality_score) == len(self.scales)
"""
def __init__(self,
num_classes,
in_channels,
stacked_convs=4,
feat_mults=None,
conv_cfg=None,
norm_cfg=dict(type='GN', num_groups=32, requires_grad=True),
loss_dfl=None,
reg_max=8,
cls_reg_share=False,
strides_share=True,
scale_mode = 1,
dw_conv = False,
use_kps = False,
loss_kps=dict(type='SmoothL1Loss', beta=1.0 / 9.0, loss_weight=0.1),
#loss_kps=dict(type='SmoothL1Loss', beta=1.0, loss_weight=0.3),
**kwargs):
self.stacked_convs = stacked_convs
self.feat_mults = feat_mults
self.conv_cfg = conv_cfg
self.norm_cfg = norm_cfg
self.reg_max = reg_max
self.cls_reg_share = cls_reg_share
self.strides_share = strides_share
self.scale_mode = scale_mode
self.use_dfl = True
self.dw_conv = dw_conv
self.NK = 5
self.extra_flops = 0.0
if loss_dfl is None or not loss_dfl:
self.use_dfl = False
self.use_scale = False
self.use_kps = use_kps
if self.scale_mode>0 and (self.strides_share or self.scale_mode==2):
self.use_scale = True
#print('USE-SCALE:', self.use_scale)
super(SCRFDHead, self).__init__(num_classes, in_channels, **kwargs)
self.sampling = False
if self.train_cfg:
self.assigner = build_assigner(self.train_cfg.assigner)
# SSD sampling=False so use PseudoSampler
sampler_cfg = dict(type='PseudoSampler')
self.sampler = build_sampler(sampler_cfg, context=self)
self.integral = Integral(self.reg_max)
if self.use_dfl:
self.loss_dfl = build_loss(loss_dfl)
#print('USE_DFL:', self.use_dfl)
self.loss_kps = build_loss(loss_kps)
self.loss_kps_std = 1.0
#print(self.bbox_coder.__class__)
self.train_step = 0
self.pos_count = {}
self.gtgroup_count = {}
for stride in self.anchor_generator.strides:
self.pos_count[stride[0]] = 0
def _get_conv_module(self, in_channel, out_channel):
if not self.dw_conv:
conv = ConvModule(
in_channel,
out_channel,
3,
stride=1,
padding=1,
conv_cfg=self.conv_cfg,
norm_cfg=self.norm_cfg)
else:
conv = DepthwiseSeparableConvModule(
in_channel,
out_channel,
3,
stride=1,
padding=1,
pw_norm_cfg=self.norm_cfg,
dw_norm_cfg=self.norm_cfg)
return conv
def _init_layers(self):
"""Initialize layers of the head."""
self.relu = nn.ReLU(inplace=True)
conv_strides = [0] if self.strides_share else self.anchor_generator.strides
self.cls_stride_convs = nn.ModuleDict()
self.reg_stride_convs = nn.ModuleDict()
self.stride_cls = nn.ModuleDict()
self.stride_reg = nn.ModuleDict()
if self.use_kps:
self.stride_kps = nn.ModuleDict()
for stride_idx, conv_stride in enumerate(conv_strides):
#print('create convs for stride:', conv_stride)
key = str(conv_stride)
cls_convs = nn.ModuleList()
reg_convs = nn.ModuleList()
stacked_convs = self.stacked_convs[stride_idx] if isinstance(self.stacked_convs, (list, tuple)) else self.stacked_convs
feat_mult = self.feat_mults[stride_idx] if self.feat_mults is not None else 1
feat_ch = int(self.feat_channels*feat_mult)
for i in range(stacked_convs):
chn = self.in_channels if i == 0 else last_feat_ch
cls_convs.append( self._get_conv_module(chn, feat_ch) )
if not self.cls_reg_share:
reg_convs.append( self._get_conv_module(chn, feat_ch) )
last_feat_ch = feat_ch
self.cls_stride_convs[key] = cls_convs
self.reg_stride_convs[key] = reg_convs
self.stride_cls[key] = nn.Conv2d(
feat_ch, self.cls_out_channels * self.num_anchors, 3, padding=1)
if not self.use_dfl:
self.stride_reg[key] = nn.Conv2d(
feat_ch, 4 * self.num_anchors, 3, padding=1)
else:
self.stride_reg[key] = nn.Conv2d(
feat_ch, 4 * (self.reg_max + 1) * self.num_anchors, 3, padding=1)
if self.use_kps:
self.stride_kps[key] = nn.Conv2d(
feat_ch, self.NK*2*self.num_anchors, 3, padding=1)
#assert self.num_anchors == 1, 'anchor free version'
#extra_gflops /= 1e9
#print('extra_gflops: %.6fG'%extra_gflops)
if self.use_scale:
self.scales = nn.ModuleList(
[Scale(1.0) for _ in self.anchor_generator.strides])
else:
self.scales = [None for _ in self.anchor_generator.strides]
def init_weights(self):
"""Initialize weights of the head."""
for stride, cls_convs in self.cls_stride_convs.items():
#print('init cls for stride:', stride)
for m in cls_convs:
if not self.dw_conv:
try:
normal_init(m.conv, std=0.01)
except:
pass
else:
normal_init(m.depthwise_conv.conv, std=0.01)
normal_init(m.pointwise_conv.conv, std=0.01)
for stride, reg_convs in self.reg_stride_convs.items():
for m in reg_convs:
if not self.dw_conv:
normal_init(m.conv, std=0.01)
else:
normal_init(m.depthwise_conv.conv, std=0.01)
normal_init(m.pointwise_conv.conv, std=0.01)
#bias_cls = bias_init_with_prob(0.01)
bias_cls = -4.595
#bias_cls = -1.595
for stride, conv in self.stride_cls.items():
normal_init(conv, std=0.01, bias=bias_cls)
for stride, conv in self.stride_reg.items():
normal_init(conv, std=0.01)
if self.use_kps:
for stride, conv in self.stride_kps.items():
normal_init(conv, std=0.01)
def forward(self, feats):
"""Forward features from the upstream network.
Args:
feats (tuple[Tensor]): Features from the upstream network, each is
a 4D-tensor.
Returns:
tuple: Usually a tuple of classification scores and bbox prediction
cls_scores (list[Tensor]): Classification and quality (IoU)
joint scores for all scale levels, each is a 4D-tensor,
the channel number is num_classes.
bbox_preds (list[Tensor]): Box distribution logits for all
scale levels, each is a 4D-tensor, the channel number is
4*(n+1), n is max value of integral set.
"""
return multi_apply(self.forward_single, feats, self.scales, self.anchor_generator.strides)
def forward_single(self, x, scale, stride):
"""Forward feature of a single scale level.
Args:
x (Tensor): Features of a single scale level.
scale (:obj: `mmcv.cnn.Scale`): Learnable scale module to resize
the bbox prediction.
Returns:
tuple:
cls_score (Tensor): Cls and quality joint scores for a single
scale level the channel number is num_classes.
bbox_pred (Tensor): Box distribution logits for a single scale
level, the channel number is 4*(n+1), n is max value of
integral set.
"""
cls_feat = x
reg_feat = x
#print('forward_single in stride:', stride)
cls_convs = self.cls_stride_convs['0'] if self.strides_share else self.cls_stride_convs[str(stride)]
for cls_conv in cls_convs:
cls_feat = cls_conv(cls_feat)
if not self.cls_reg_share:
reg_convs = self.reg_stride_convs['0'] if self.strides_share else self.reg_stride_convs[str(stride)]
for reg_conv in reg_convs:
reg_feat = reg_conv(reg_feat)
else:
reg_feat = cls_feat
cls_pred_module = self.stride_cls['0'] if self.strides_share else self.stride_cls[str(stride)]
cls_score = cls_pred_module(cls_feat)
reg_pred_module = self.stride_reg['0'] if self.strides_share else self.stride_reg[str(stride)]
_bbox_pred = reg_pred_module(reg_feat)
if self.use_scale:
bbox_pred = scale(_bbox_pred)
else:
bbox_pred = _bbox_pred
if self.use_kps:
kps_pred_module = self.stride_kps['0'] if self.strides_share else self.stride_kps[str(stride)]
kps_pred = kps_pred_module(reg_feat)
else:
kps_pred = bbox_pred.new_zeros( (bbox_pred.shape[0], self.NK*2, bbox_pred.shape[2], bbox_pred.shape[3]) )
if torch.onnx.is_in_onnx_export():
assert not self.use_dfl
print('in-onnx-export', cls_score.shape, bbox_pred.shape)
#print(scale.parameters())
#for p in scale.parameters():
#print(p.name, p.data)
#scale_val = p.data.item()
#print(scale_val)
#print('EEE1', cls_score.shape)
#cls_score = torch.sigmoid(cls_score).reshape(1, self.cls_out_channels, -1).permute(0, 2, 1)
#print('EEE2', cls_score.shape)
#if self.use_dfl:
# bbox_pred = self.integral(bbox_pred) * stride[0]
#else:
# bbox_pred = bbox_pred.reshape( (-1,4) ) * stride[0]
#if self.use_dfl:
# bbox_pred = bbox_pred.reshape(1, (self.reg_max+1)*4, -1).permute(0, 2, 1)
# bbox_pred = bbox_pred.reshape( (1, -1, 4, self.reg_max+1) )
# bbox_pred = F.softmax(bbox_pred, dim=3)
#else:
# bbox_pred = bbox_pred.reshape(1, 4, -1).permute(0, 2, 1)
#kps_pred = kps_pred.reshape(1, 10, -1).permute(0, 2, 1)
cls_score = cls_score.permute(0, 2, 3, 1).reshape(x.size(0), -1, self.cls_out_channels).sigmoid()
bbox_pred = bbox_pred.permute(0, 2, 3, 1).reshape(x.size(0), -1, 4)
kps_pred = kps_pred.permute(0, 2, 3, 1).reshape(x.size(0), -1, 10)
return cls_score, bbox_pred, kps_pred
def forward_train(self,
x,
img_metas,
gt_bboxes,
gt_labels=None,
gt_keypointss=None,
gt_bboxes_ignore=None,
proposal_cfg=None,
**kwargs):
"""
Args:
x (list[Tensor]): Features from FPN.
img_metas (list[dict]): Meta information of each image, e.g.,
image size, scaling factor, etc.
gt_bboxes (Tensor): Ground truth bboxes of the image,
shape (num_gts, 4).
gt_labels (Tensor): Ground truth labels of each box,
shape (num_gts,).
gt_bboxes_ignore (Tensor): Ground truth bboxes to be
ignored, shape (num_ignored_gts, 4).
proposal_cfg (mmcv.Config): Test / postprocessing configuration,
if None, test_cfg would be used
Returns:
tuple:
losses: (dict[str, Tensor]): A dictionary of loss components.
proposal_list (list[Tensor]): Proposals of each image.
"""
outs = self(x)
if gt_labels is None:
loss_inputs = outs + (gt_bboxes, img_metas)
else:
loss_inputs = outs + (gt_bboxes, gt_labels, gt_keypointss, img_metas)
#print('AAA', gt_bboxes[0].shape, gt_keypointss[0].shape)
losses = self.loss(*loss_inputs, gt_bboxes_ignore=gt_bboxes_ignore)
if proposal_cfg is None:
return losses
else:
proposal_list = self.get_bboxes(*outs, img_metas, cfg=proposal_cfg)
return losses, proposal_list
def get_anchors(self, featmap_sizes, img_metas, device='cuda'):
"""Get anchors according to feature map sizes.
Args:
featmap_sizes (list[tuple]): Multi-level feature map sizes.
img_metas (list[dict]): Image meta info.
device (torch.device | str): Device for returned tensors
Returns:
tuple:
anchor_list (list[Tensor]): Anchors of each image.
valid_flag_list (list[Tensor]): Valid flags of each image.
"""
num_imgs = len(img_metas)
# since feature map sizes of all images are the same, we only compute
# anchors for one time
multi_level_anchors = self.anchor_generator.grid_anchors(
featmap_sizes, device)
anchor_list = [multi_level_anchors for _ in range(num_imgs)]
# for each image, we compute valid flags of multi level anchors
valid_flag_list = []
for img_id, img_meta in enumerate(img_metas):
multi_level_flags = self.anchor_generator.valid_flags(
featmap_sizes, img_meta['pad_shape'], device)
valid_flag_list.append(multi_level_flags)
return anchor_list, valid_flag_list
def anchor_center(self, anchors):
"""Get anchor centers from anchors.
Args:
anchors (Tensor): Anchor list with shape (N, 4), "xyxy" format.
Returns:
Tensor: Anchor centers with shape (N, 2), "xy" format.
"""
anchors_cx = (anchors[:, 2] + anchors[:, 0]) / 2
anchors_cy = (anchors[:, 3] + anchors[:, 1]) / 2
return torch.stack([anchors_cx, anchors_cy], dim=-1)
def loss_single(self, anchors, cls_score, bbox_pred, kps_pred, labels, label_weights,
bbox_targets, kps_targets, kps_weights, stride, num_total_samples):
"""Compute loss of a single scale level.
Args:
anchors (Tensor): Box reference for each scale level with shape
(N, num_total_anchors, 4).
cls_score (Tensor): Cls and quality joint scores for each scale
level has shape (N, num_classes, H, W).
bbox_pred (Tensor): Box distribution logits for each scale
level with shape (N, 4*(n+1), H, W), n is max value of integral
set.
labels (Tensor): Labels of each anchors with shape
(N, num_total_anchors).
label_weights (Tensor): Label weights of each anchor with shape
(N, num_total_anchors)
bbox_targets (Tensor): BBox regression targets of each anchor wight
shape (N, num_total_anchors, 4).
stride (tuple): Stride in this scale level.
num_total_samples (int): Number of positive samples that is
reduced over all GPUs.
Returns:
dict[str, Tensor]: A dictionary of loss components.
"""
assert stride[0] == stride[1], 'h stride is not equal to w stride!'
use_qscore = True
anchors = anchors.reshape(-1, 4)
cls_score = cls_score.permute(0, 2, 3,
1).reshape(-1, self.cls_out_channels)
if not self.use_dfl:
bbox_pred = bbox_pred.permute(0, 2, 3,
1).reshape(-1, 4)
else:
bbox_pred = bbox_pred.permute(0, 2, 3,
1).reshape(-1, 4 * (self.reg_max + 1))
bbox_targets = bbox_targets.reshape(-1, 4)
labels = labels.reshape(-1)
label_weights = label_weights.reshape(-1)
if self.use_kps:
kps_pred = kps_pred.permute(0, 2, 3,
1).reshape(-1, self.NK*2)
kps_targets = kps_targets.reshape( (-1, self.NK*2) )
kps_weights = kps_weights.reshape( (-1, self.NK*2) )
#print('AAA000', kps_targets.shape, kps_weights.shape)
# FG cat_id: [0, num_classes -1], BG cat_id: num_classes
bg_class_ind = self.num_classes
pos_inds = ((labels >= 0)
& (labels < bg_class_ind)).nonzero().squeeze(1)
score = label_weights.new_zeros(labels.shape)
if len(pos_inds) > 0:
pos_bbox_targets = bbox_targets[pos_inds]
pos_bbox_pred = bbox_pred[pos_inds]
pos_anchors = anchors[pos_inds]
pos_anchor_centers = self.anchor_center(pos_anchors) / stride[0]
weight_targets = cls_score.detach().sigmoid()
weight_targets = weight_targets.max(dim=1)[0][pos_inds]
pos_decode_bbox_targets = pos_bbox_targets / stride[0]
if self.use_dfl:
pos_bbox_pred_corners = self.integral(pos_bbox_pred)
pos_decode_bbox_pred = distance2bbox(pos_anchor_centers,
pos_bbox_pred_corners)
else:
pos_decode_bbox_pred = distance2bbox(pos_anchor_centers,
pos_bbox_pred)
if self.use_kps:
pos_kps_targets = kps_targets[pos_inds]
pos_kps_pred = kps_pred[pos_inds]
#print('CCC000', kps_weights.shape)
pos_kps_weights = kps_weights.max(dim=1)[0][pos_inds] * weight_targets
#pos_kps_weights = kps_weights.max(dim=1)[0][pos_inds]
pos_kps_weights = pos_kps_weights.reshape( (-1, 1) )
#pos_kps_weights = kps_weights.max(dim=1, keepdims=True)[0][pos_inds]
#print('SSS', pos_kps_weights.sum())
#pos_decode_kps_targets = pos_kps_targets / stride[0]
#pos_decode_kps_pred = distance2kps(pos_anchor_centers, pos_kps_pred)
pos_decode_kps_targets = kps2distance(pos_anchor_centers, pos_kps_targets / stride[0])
pos_decode_kps_pred = pos_kps_pred
#print('ZZZ', pos_decode_kps_targets.shape, pos_decode_kps_pred.shape)
#print(pos_kps_weights[0,:].detach().cpu().numpy())
#print(pos_decode_kps_targets[0,:].detach().cpu().numpy())
#print(pos_decode_kps_pred[0,:].detach().cpu().numpy())
#print('CCC111', weight_targets.shape, pos_bbox_pred.shape, pos_decode_bbox_pred.shape, pos_kps_pred.shape, pos_decode_kps_pred.shape, pos_kps_weights.shape)
if use_qscore:
score[pos_inds] = bbox_overlaps(
pos_decode_bbox_pred.detach(),
pos_decode_bbox_targets,
is_aligned=True)
else:
score[pos_inds] = 1.0
# regression loss
loss_bbox = self.loss_bbox(
pos_decode_bbox_pred,
pos_decode_bbox_targets,
weight=weight_targets,
avg_factor=1.0)
if self.use_kps:
loss_kps = self.loss_kps(
pos_decode_kps_pred * self.loss_kps_std,
pos_decode_kps_targets * self.loss_kps_std,
weight=pos_kps_weights,
avg_factor=1.0)
else:
loss_kps = kps_pred.sum() * 0
# dfl loss
if self.use_dfl:
pred_corners = pos_bbox_pred.reshape(-1, self.reg_max + 1)
target_corners = bbox2distance(pos_anchor_centers,
pos_decode_bbox_targets,
self.reg_max).reshape(-1)
loss_dfl = self.loss_dfl(
pred_corners,
target_corners,
weight=weight_targets[:, None].expand(-1, 4).reshape(-1),
avg_factor=4.0)
else:
loss_dfl = bbox_pred.sum() * 0
else:
loss_bbox = bbox_pred.sum() * 0
loss_dfl = bbox_pred.sum() * 0
loss_kps = kps_pred.sum() * 0
weight_targets = torch.tensor(0).cuda()
loss_cls = self.loss_cls(
cls_score, (labels, score),
weight=label_weights,
avg_factor=num_total_samples)
return loss_cls, loss_bbox, loss_dfl, loss_kps, weight_targets.sum()
@force_fp32(apply_to=('cls_scores', 'bbox_preds'))
def loss(self,
cls_scores,
bbox_preds,
kps_preds,
gt_bboxes,
gt_labels,
gt_keypointss,
img_metas,
gt_bboxes_ignore=None):
"""Compute losses of the head.
Args:
cls_scores (list[Tensor]): Cls and quality scores for each scale
level has shape (N, num_classes, H, W).
bbox_preds (list[Tensor]): Box distribution logits for each scale
level with shape (N, 4*(n+1), H, W), n is max value of integral
set.
gt_bboxes (list[Tensor]): Ground truth bboxes for each image with
shape (num_gts, 4) in [tl_x, tl_y, br_x, br_y] format.
gt_labels (list[Tensor]): class indices corresponding to each box
img_metas (list[dict]): Meta information of each image, e.g.,
image size, scaling factor, etc.
gt_bboxes_ignore (list[Tensor] | None): specify which bounding
boxes can be ignored when computing the loss.
Returns:
dict[str, Tensor]: A dictionary of loss components.
"""
featmap_sizes = [featmap.size()[-2:] for featmap in cls_scores]
assert len(featmap_sizes) == self.anchor_generator.num_levels
device = cls_scores[0].device
anchor_list, valid_flag_list = self.get_anchors(
featmap_sizes, img_metas, device=device)
label_channels = self.cls_out_channels if self.use_sigmoid_cls else 1
cls_reg_targets = self.get_targets(
anchor_list,
valid_flag_list,
gt_bboxes,
gt_keypointss,
img_metas,
gt_bboxes_ignore_list=gt_bboxes_ignore,
gt_labels_list=gt_labels,
label_channels=label_channels)
if cls_reg_targets is None:
return None
(anchor_list, labels_list, label_weights_list, bbox_targets_list,
bbox_weights_list, keypoints_targets_list, keypoints_weights_list, num_total_pos, num_total_neg) = cls_reg_targets
num_total_samples = reduce_mean(
torch.tensor(num_total_pos, dtype=torch.float,
device=device)).item()
num_total_samples = max(num_total_samples, 1.0)
losses_cls, losses_bbox, losses_dfl, losses_kps,\
avg_factor = multi_apply(
self.loss_single,
anchor_list,
cls_scores,
bbox_preds,
kps_preds,
labels_list,
label_weights_list,
bbox_targets_list,
keypoints_targets_list,
keypoints_weights_list,
self.anchor_generator.strides,
num_total_samples=num_total_samples)
#if self.train_step%100==0:
# print('loss_cls:', losses_cls)
# print('avg_factor:', avg_factor)
avg_factor = sum(avg_factor)
avg_factor = reduce_mean(avg_factor).item()
losses_bbox = list(map(lambda x: x / avg_factor, losses_bbox))
losses = dict(loss_cls=losses_cls, loss_bbox=losses_bbox)
if self.use_kps:
losses_kps = list(map(lambda x: x / avg_factor, losses_kps))
losses['loss_kps'] = losses_kps
if self.use_dfl:
losses_dfl = list(map(lambda x: x / avg_factor, losses_dfl))
losses['loss_dfl'] = losses_dfl
return losses
@force_fp32(apply_to=('cls_scores', 'bbox_preds', 'kps_preds'))
def get_bboxes(self,
cls_scores,
bbox_preds,
kps_preds,
img_metas,
cfg=None,
rescale=False,
with_nms=True):
"""Transform network output for a batch into bbox predictions.
Args:
cls_scores (list[Tensor]): Box scores for each scale level
Has shape (N, num_anchors * num_classes, H, W)
bbox_preds (list[Tensor]): Box energies / deltas for each scale
level with shape (N, num_anchors * 4, H, W)
img_metas (list[dict]): Meta information of each image, e.g.,
image size, scaling factor, etc.
cfg (mmcv.Config | None): Test / postprocessing configuration,
if None, test_cfg would be used
rescale (bool): If True, return boxes in original image space.
Default: False.
with_nms (bool): If True, do nms before return boxes.
Default: True.
Returns:
list[tuple[Tensor, Tensor]]: Each item in result_list is 2-tuple.
The first item is an (n, 5) tensor, where the first 4 columns
are bounding box positions (tl_x, tl_y, br_x, br_y) and the
5-th column is a score between 0 and 1. The second item is a
(n,) tensor where each item is the predicted class labelof the
corresponding box.
Example:
>>> import mmcv
>>> self = AnchorHead(
>>> num_classes=9,
>>> in_channels=1,
>>> anchor_generator=dict(
>>> type='AnchorGenerator',
>>> scales=[8],
>>> ratios=[0.5, 1.0, 2.0],
>>> strides=[4,]))
>>> img_metas = [{'img_shape': (32, 32, 3), 'scale_factor': 1}]
>>> cfg = mmcv.Config(dict(
>>> score_thr=0.00,
>>> nms=dict(type='nms', iou_thr=1.0),
>>> max_per_img=10))
>>> feat = torch.rand(1, 1, 3, 3)
>>> cls_score, bbox_pred = self.forward_single(feat)
>>> # note the input lists are over different levels, not images
>>> cls_scores, bbox_preds = [cls_score], [bbox_pred]
>>> result_list = self.get_bboxes(cls_scores, bbox_preds,
>>> img_metas, cfg)
>>> det_bboxes, det_labels = result_list[0]
>>> assert len(result_list) == 1
>>> assert det_bboxes.shape[1] == 5
>>> assert len(det_bboxes) == len(det_labels) == cfg.max_per_img
"""
assert len(cls_scores) == len(bbox_preds)
num_levels = len(cls_scores)
device = cls_scores[0].device
featmap_sizes = [cls_scores[i].shape[-2:] for i in range(num_levels)]
mlvl_anchors = self.anchor_generator.grid_anchors(
featmap_sizes, device=device)
result_list = []
for img_id in range(len(img_metas)):
cls_score_list = [
cls_scores[i][img_id].detach() for i in range(num_levels)
]
bbox_pred_list = [
bbox_preds[i][img_id].detach() for i in range(num_levels)
]
img_shape = img_metas[img_id]['img_shape']
scale_factor = img_metas[img_id]['scale_factor']
if with_nms:
# some heads don't support with_nms argument
proposals = self._get_bboxes_single(cls_score_list,
bbox_pred_list,
mlvl_anchors, img_shape,
scale_factor, cfg, rescale)
else:
proposals = self._get_bboxes_single(cls_score_list,
bbox_pred_list,
mlvl_anchors, img_shape,
scale_factor, cfg, rescale,
with_nms)
result_list.append(proposals)
return result_list
def _get_bboxes_single(self,
cls_scores,
bbox_preds,
mlvl_anchors,
img_shape,
scale_factor,
cfg,
rescale=False,
with_nms=True):
"""Transform outputs for a single batch item into labeled boxes.
Args:
cls_scores (list[Tensor]): Box scores for a single scale level
has shape (num_classes, H, W).
bbox_preds (list[Tensor]): Box distribution logits for a single
scale level with shape (4*(n+1), H, W), n is max value of
integral set.
mlvl_anchors (list[Tensor]): Box reference for a single scale level
with shape (num_total_anchors, 4).
img_shape (tuple[int]): Shape of the input image,
(height, width, 3).
scale_factor (ndarray): Scale factor of the image arange as
(w_scale, h_scale, w_scale, h_scale).
cfg (mmcv.Config | None): Test / postprocessing configuration,
if None, test_cfg would be used.
rescale (bool): If True, return boxes in original image space.
Default: False.
with_nms (bool): If True, do nms before return boxes.
Default: True.
Returns:
tuple(Tensor):
det_bboxes (Tensor): Bbox predictions in shape (N, 5), where
the first 4 columns are bounding box positions
(tl_x, tl_y, br_x, br_y) and the 5-th column is a score
between 0 and 1.
det_labels (Tensor): A (N,) tensor where each item is the
predicted class label of the corresponding box.
"""
cfg = self.test_cfg if cfg is None else cfg
assert len(cls_scores) == len(bbox_preds) == len(mlvl_anchors)
mlvl_bboxes = []
mlvl_scores = []
for cls_score, bbox_pred, stride, anchors in zip(
cls_scores, bbox_preds, self.anchor_generator.strides,
mlvl_anchors):
assert cls_score.size()[-2:] == bbox_pred.size()[-2:]
assert stride[0] == stride[1]
scores = cls_score.permute(1, 2, 0).reshape(
-1, self.cls_out_channels).sigmoid()
bbox_pred = bbox_pred.permute(1, 2, 0)
if self.use_dfl:
bbox_pred = self.integral(bbox_pred) * stride[0]
else:
bbox_pred = bbox_pred.reshape( (-1,4) ) * stride[0]
nms_pre = cfg.get('nms_pre', -1)
if nms_pre > 0 and scores.shape[0] > nms_pre:
max_scores, _ = scores.max(dim=1)
_, topk_inds = max_scores.topk(nms_pre)
anchors = anchors[topk_inds, :]
bbox_pred = bbox_pred[topk_inds, :]
scores = scores[topk_inds, :]
bboxes = distance2bbox(
self.anchor_center(anchors), bbox_pred, max_shape=img_shape)
mlvl_bboxes.append(bboxes)
mlvl_scores.append(scores)
mlvl_bboxes = torch.cat(mlvl_bboxes)
if rescale:
mlvl_bboxes /= mlvl_bboxes.new_tensor(scale_factor)
mlvl_scores = torch.cat(mlvl_scores)
# Add a dummy background class to the backend when using sigmoid
# remind that we set FG labels to [0, num_class-1] since mmdet v2.0
# BG cat_id: num_class
padding = mlvl_scores.new_zeros(mlvl_scores.shape[0], 1)
mlvl_scores = torch.cat([mlvl_scores, padding], dim=1)
if with_nms:
det_bboxes, det_labels = multiclass_nms(mlvl_bboxes, mlvl_scores,
cfg.score_thr, cfg.nms,
cfg.max_per_img)
return det_bboxes, det_labels
else:
return mlvl_bboxes, mlvl_scores
def get_targets(self,
anchor_list,
valid_flag_list,
gt_bboxes_list,
gt_keypointss_list,
img_metas,
gt_bboxes_ignore_list=None,
gt_labels_list=None,
label_channels=1,
unmap_outputs=True):
"""Get targets for GFL head.
This method is almost the same as `AnchorHead.get_targets()`. Besides
returning the targets as the parent method does, it also returns the
anchors as the first element of the returned tuple.
"""
num_imgs = len(img_metas)
assert len(anchor_list) == len(valid_flag_list) == num_imgs
# anchor number of multi levels
num_level_anchors = [anchors.size(0) for anchors in anchor_list[0]]
num_level_anchors_list = [num_level_anchors] * num_imgs
# concat all level anchors and flags to a single tensor
for i in range(num_imgs):
assert len(anchor_list[i]) == len(valid_flag_list[i])
anchor_list[i] = torch.cat(anchor_list[i])
valid_flag_list[i] = torch.cat(valid_flag_list[i])
# compute targets for each image
if gt_bboxes_ignore_list is None:
gt_bboxes_ignore_list = [None for _ in range(num_imgs)]
if gt_labels_list is None:
gt_labels_list = [None for _ in range(num_imgs)]
if gt_keypointss_list is None:
gt_keypointss_list = [None for _ in range(num_imgs)]
#print('QQQ:', num_imgs, gt_bboxes_list[0].shape)
(all_anchors, all_labels, all_label_weights, all_bbox_targets,
all_bbox_weights, all_keypoints_targets, all_keypoints_weights,
pos_inds_list, neg_inds_list) = multi_apply(
self._get_target_single,
anchor_list,
valid_flag_list,
num_level_anchors_list,
gt_bboxes_list,
gt_bboxes_ignore_list,
gt_labels_list,
gt_keypointss_list,
img_metas,
label_channels=label_channels,
unmap_outputs=unmap_outputs)
# no valid anchors
if any([labels is None for labels in all_labels]):
return None
# sampled anchors of all images
num_total_pos = sum([max(inds.numel(), 1) for inds in pos_inds_list])
num_total_neg = sum([max(inds.numel(), 1) for inds in neg_inds_list])
# split targets to a list w.r.t. multiple levels
anchors_list = images_to_levels(all_anchors, num_level_anchors)
labels_list = images_to_levels(all_labels, num_level_anchors)
label_weights_list = images_to_levels(all_label_weights,
num_level_anchors)
bbox_targets_list = images_to_levels(all_bbox_targets,
num_level_anchors)
bbox_weights_list = images_to_levels(all_bbox_weights,
num_level_anchors)
keypoints_targets_list = images_to_levels(all_keypoints_targets,
num_level_anchors)
keypoints_weights_list = images_to_levels(all_keypoints_weights,
num_level_anchors)
return (anchors_list, labels_list, label_weights_list,
bbox_targets_list, bbox_weights_list, keypoints_targets_list, keypoints_weights_list,
num_total_pos,
num_total_neg)
def _get_target_single(self,
flat_anchors,
valid_flags,
num_level_anchors,
gt_bboxes,
gt_bboxes_ignore,
gt_labels,
gt_keypointss,
img_meta,
label_channels=1,
unmap_outputs=True):
"""Compute regression, classification targets for anchors in a single
image.
Args:
flat_anchors (Tensor): Multi-level anchors of the image, which are
concatenated into a single tensor of shape (num_anchors, 4)
valid_flags (Tensor): Multi level valid flags of the image,
which are concatenated into a single tensor of
shape (num_anchors,).
num_level_anchors Tensor): Number of anchors of each scale level.
gt_bboxes (Tensor): Ground truth bboxes of the image,
shape (num_gts, 4).
gt_bboxes_ignore (Tensor): Ground truth bboxes to be
ignored, shape (num_ignored_gts, 4).
gt_labels (Tensor): Ground truth labels of each box,
shape (num_gts,).
img_meta (dict): Meta info of the image.
label_channels (int): Channel of label.
unmap_outputs (bool): Whether to map outputs back to the original
set of anchors.
Returns:
tuple: N is the number of total anchors in the image.
anchors (Tensor): All anchors in the image with shape (N, 4).
labels (Tensor): Labels of all anchors in the image with shape
(N,).
label_weights (Tensor): Label weights of all anchor in the
image with shape (N,).
bbox_targets (Tensor): BBox targets of all anchors in the
image with shape (N, 4).
bbox_weights (Tensor): BBox weights of all anchors in the
image with shape (N, 4).
pos_inds (Tensor): Indices of postive anchor with shape
(num_pos,).
neg_inds (Tensor): Indices of negative anchor with shape
(num_neg,).
"""
inside_flags = anchor_inside_flags(flat_anchors, valid_flags,
img_meta['img_shape'][:2],
self.train_cfg.allowed_border)
if not inside_flags.any():
return (None, ) * 7
# assign gt and sample anchors
anchors = flat_anchors[inside_flags, :]
num_level_anchors_inside = self.get_num_level_anchors_inside(
num_level_anchors, inside_flags)
if self.assigner.__class__.__name__=='ATSSAssigner':
assign_result = self.assigner.assign(anchors, num_level_anchors_inside,
gt_bboxes, gt_bboxes_ignore,
gt_labels)
else:
assign_result = self.assigner.assign(anchors,
gt_bboxes, gt_bboxes_ignore,
gt_labels)
sampling_result = self.sampler.sample(assign_result, anchors,
gt_bboxes)
num_valid_anchors = anchors.shape[0]
bbox_targets = torch.zeros_like(anchors)
bbox_weights = torch.zeros_like(anchors)
kps_targets = anchors.new_zeros(size=(anchors.shape[0], self.NK*2))
kps_weights = anchors.new_zeros(size=(anchors.shape[0], self.NK*2))
labels = anchors.new_full((num_valid_anchors, ),
self.num_classes,
dtype=torch.long)
label_weights = anchors.new_zeros(num_valid_anchors, dtype=torch.float)
pos_inds = sampling_result.pos_inds
neg_inds = sampling_result.neg_inds
if len(pos_inds) > 0:
pos_bbox_targets = sampling_result.pos_gt_bboxes
bbox_targets[pos_inds, :] = pos_bbox_targets
bbox_weights[pos_inds, :] = 1.0
if self.use_kps:
pos_assigned_gt_inds = sampling_result.pos_assigned_gt_inds
#print('BBB', anchors.shape, gt_bboxes.shape, gt_keypointss.shape, pos_inds.shape, bbox_targets.shape, pos_bbox_targets.shape)
kps_targets[pos_inds, :] = gt_keypointss[pos_assigned_gt_inds,:,:2].reshape( (-1, self.NK*2) )
kps_weights[pos_inds, :] = torch.mean(gt_keypointss[pos_assigned_gt_inds,:,2], dim=1, keepdims=True)
#kps_weights[pos_inds, :] = 1.0
if gt_labels is None:
# Only rpn gives gt_labels as None
# Foreground is the first class
labels[pos_inds] = 0
else:
labels[pos_inds] = gt_labels[
sampling_result.pos_assigned_gt_inds]
if self.train_cfg.pos_weight <= 0:
label_weights[pos_inds] = 1.0
else:
label_weights[pos_inds] = self.train_cfg.pos_weight
if len(neg_inds) > 0:
label_weights[neg_inds] = 1.0
# map up to original set of anchors
if unmap_outputs:
num_total_anchors = flat_anchors.size(0)
anchors = unmap(anchors, num_total_anchors, inside_flags)
labels = unmap(
labels, num_total_anchors, inside_flags, fill=self.num_classes)
label_weights = unmap(label_weights, num_total_anchors,
inside_flags)
bbox_targets = unmap(bbox_targets, num_total_anchors, inside_flags)
bbox_weights = unmap(bbox_weights, num_total_anchors, inside_flags)
if self.use_kps:
kps_targets = unmap(kps_targets, num_total_anchors, inside_flags)
kps_weights = unmap(kps_weights, num_total_anchors, inside_flags)
return (anchors, labels, label_weights, bbox_targets, bbox_weights,
kps_targets, kps_weights,
pos_inds, neg_inds)
def get_num_level_anchors_inside(self, num_level_anchors, inside_flags):
split_inside_flags = torch.split(inside_flags, num_level_anchors)
num_level_anchors_inside = [
int(flags.sum()) for flags in split_inside_flags
]
return num_level_anchors_inside
def aug_test(self, feats, img_metas, rescale=False):
"""Test function with test time augmentation.
Args:
feats (list[Tensor]): the outer list indicates test-time
augmentations and inner Tensor should have a shape NxCxHxW,
which contains features for all images in the batch.
img_metas (list[list[dict]]): the outer list indicates test-time
augs (multiscale, flip, etc.) and the inner list indicates
images in a batch. each dict has image information.
rescale (bool, optional): Whether to rescale the results.
Defaults to False.
Returns:
list[ndarray]: bbox results of each class
"""
return self.aug_test_bboxes(feats, img_metas, rescale=rescale)
|
# Lint as: python2, python3
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""TFX Pusher component definition."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from typing import Any, Dict, Optional, Text, Union
from tfx import types
from tfx.components.pusher import executor
from tfx.dsl.components.base import base_component
from tfx.dsl.components.base import executor_spec
from tfx.proto import pusher_pb2
from tfx.types import standard_artifacts
from tfx.types.standard_component_specs import PusherSpec
from tfx.utils import json_utils
# TODO(b/133845381): Investigate other ways to keep push destination converged.
class Pusher(base_component.BaseComponent):
"""A TFX component to push validated TensorFlow models to a model serving platform.
The `Pusher` component can be used to push an validated SavedModel from output
of the [Trainer component](https://www.tensorflow.org/tfx/guide/trainer) to
[TensorFlow Serving](https://www.tensorflow.org/tfx/serving). The Pusher
will check the validation results from the [Evaluator
component](https://www.tensorflow.org/tfx/guide/evaluator) and [InfraValidator
component](https://www.tensorflow.org/tfx/guide/infra_validator)
before deploying the model. If the model has not been blessed, then the model
will not be pushed.
*Note:* The executor for this component can be overriden to enable the model
to be pushed to other serving platforms than tf.serving. The [Cloud AI
Platform custom
executor](https://github.com/tensorflow/tfx/tree/master/tfx/extensions/google_cloud_ai_platform/pusher)
provides an example how to implement this.
## Example
```
# Checks whether the model passed the validation steps and pushes the model
# to a file destination if check passed.
pusher = Pusher(
model=trainer.outputs['model'],
model_blessing=evaluator.outputs['blessing'],
push_destination=pusher_pb2.PushDestination(
filesystem=pusher_pb2.PushDestination.Filesystem(
base_directory=serving_model_dir)))
```
"""
SPEC_CLASS = PusherSpec
EXECUTOR_SPEC = executor_spec.ExecutorClassSpec(executor.Executor)
def __init__(
self,
model: Optional[types.Channel] = None,
model_blessing: Optional[types.Channel] = None,
infra_blessing: Optional[types.Channel] = None,
push_destination: Optional[Union[pusher_pb2.PushDestination,
Dict[Text, Any]]] = None,
custom_config: Optional[Dict[Text, Any]] = None,
custom_executor_spec: Optional[executor_spec.ExecutorSpec] = None,
pushed_model: Optional[types.Channel] = None,
instance_name: Optional[Text] = None):
"""Construct a Pusher component.
Args:
model: An optional Channel of type `standard_artifacts.Model`, usually
produced by a Trainer component.
model_blessing: An optional Channel of type
`standard_artifacts.ModelBlessing`, usually produced from an Evaluator
component.
infra_blessing: An optional Channel of type
`standard_artifacts.InfraBlessing`, usually produced from an
InfraValidator component.
push_destination: A pusher_pb2.PushDestination instance, providing info
for tensorflow serving to load models. Optional if executor_class
doesn't require push_destination. If any field is provided as a
RuntimeParameter, push_destination should be constructed as a dict with
the same field names as PushDestination proto message.
custom_config: A dict which contains the deployment job parameters to be
passed to cloud-based training platforms. The [Kubeflow example](
https://github.com/tensorflow/tfx/blob/6ff57e36a7b65818d4598d41e584a42584d361e6/tfx/examples/chicago_taxi_pipeline/taxi_pipeline_kubeflow_gcp.py#L278-L285)
contains an example how this can be used by custom executors.
custom_executor_spec: Optional custom executor spec.
pushed_model: Optional output `standard_artifacts.PushedModel` channel
with result of push.
instance_name: Optional unique instance name. Necessary if multiple Pusher
components are declared in the same pipeline.
"""
pushed_model = pushed_model or types.Channel(
type=standard_artifacts.PushedModel)
if push_destination is None and not custom_executor_spec:
raise ValueError('push_destination is required unless a '
'custom_executor_spec is supplied that does not require '
'it.')
if model is None and infra_blessing is None:
raise ValueError(
'Either one of model or infra_blessing channel should be given. '
'If infra_blessing is used in place of model, it must have been '
'created with InfraValidator with RequestSpec.make_warmup = True. '
'This cannot be checked during pipeline construction time but will '
'raise runtime error if infra_blessing does not contain a model.')
spec = PusherSpec(
model=model,
model_blessing=model_blessing,
infra_blessing=infra_blessing,
push_destination=push_destination,
custom_config=json_utils.dumps(custom_config),
pushed_model=pushed_model)
super(Pusher, self).__init__(
spec=spec,
custom_executor_spec=custom_executor_spec,
instance_name=instance_name)
|
# Generated by Django 3.2.4 on 2021-06-26 03:50
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Products',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('price', models.FloatField()),
('discount_price', models.FloatField()),
('category', models.CharField(max_length=200)),
('description', models.TextField()),
('image', models.CharField(max_length=300)),
],
),
]
|
import { Trie } from '../lib/trie';
import { expect } from 'chai';
describe('Trie', () => {
let trie;
beforeEach(() => {
trie = new Trie();
});
describe('when initialized', () => {
it('exists', () => {
expect(trie).to.be.ok;
});
it('does not contain any words', () => {
expect(trie.find('apple')).to.be.false;
expect(trie.find('test')).to.be.false;
});
});
describe('when the word "apple" is added', () => {
beforeEach(() => {
trie.insert('apple');
});
it('contains the word "apple"', () => {
expect(trie.find('apple')).to.be.true;
});
it('does not contain the word "APPLE" (case-sensitive)', () => {
expect(trie.find('APPLE')).to.be.false;
});
it('does not contain the word "test"', () => {
expect(trie.find('test')).to.be.false;
});
it('does not contain the word "app"', () => {
expect(trie.find('app')).to.be.false;
});
it('does not contain the word "applet"', () => {
expect(trie.find('applet')).to.be.false;
});
describe('and then the word "app" is added', () => {
beforeEach(() => {
trie.insert('app');
});
it('contains the word "app"', () => {
expect(trie.find('app')).to.be.true;
});
});
});
describe('when .insert is called with invalid arguments', () => {
beforeEach(() => {
trie.insert('');
trie.insert(undefined);
});
it('does not contain any words', () => {
expect(trie.find('')).to.be.false;
expect(trie.find(undefined)).to.be.false;
});
});
describe('#toJsonString method', () => {
it('is an empty object by default', () => {
expect(trie.toJsonString()).to.equal('{}');
});
describe('when words are added', () => {
beforeEach(() => {
trie.insert('apple');
trie.insert('hello');
});
it('lists the words in the trie correctly', () => {
expect(trie.toJsonString()).to.equal('{"a":{"p":{"p":{"l":{"e":{"$":1}}}}},"h":{"e":{"l":{"l":{"o":{"$":1}}}}}}');
});
});
});
describe('#toJsString method', () => {
it('is an empty exported object by default', () => {
expect(trie.toJsString()).to.equal('module.exports={};');
});
describe('when words are added', () => {
beforeEach(() => {
trie.insert('apple');
trie.insert('hello');
});
it('lists the words as an exported module correctly', () => {
expect(trie.toJsString()).to.equal('module.exports={a:{p:{p:{l:{e:{$:1}}}}},h:{e:{l:{l:{o:{$:1}}}}}};');
});
});
});
describe('#fromJsonString method', () => {
let jsonTrie, newTrie;
beforeEach(() => {
trie.insert('apple');
trie.insert('hello');
trie.insert('test');
jsonTrie = trie.toJsonString();
newTrie = Trie.fromJsonString(jsonTrie);
});
it('recreates a trie correctly', () => {
expect(newTrie.find('apple')).to.be.true;
expect(newTrie.find('hello')).to.be.true;
expect(newTrie.find('test')).to.be.true;
expect(newTrie.find('nonexistent')).to.be.false;
});
});
});
|
# adapted from Jey Han Lau [https://github.com/jhlau/topic_interpretability]
# simplified by using the fixed window size (all words in an chat/article) and restructured as object-oriented
# supports counting the multi-word phrases in topics (e.g. search_box, faculti_member, ...). The default maxPattern is set as 3. To handle ngrams where n > 3, please change the value of maxPattern.
import math
import numpy as np
from itertools import combinations_with_replacement as CwR
from collections import defaultdict
class topicCoherence(object):
topicUnigrams = set()
topicID2Unigram = {}
topicUnigram2ID = {}
topicalWordPairs = {}
wordCount = defaultdict(int)
topicCoherence = defaultdict(int)
def __init__(self, topics, refCorpus, concatColSep = '_', maxPattern = 3):
"""
The initialization function where important parameters are assigned.
:param topics: the list of topical words/phrases as the output of a given model in list of lists
For example:
[['interlibrari_loan', 'lose_chat', 'chat_servic', 'lower_level', 'chat_open', 'writer_workshop', 'spring_break', 'studi_room', 'call_ugl', 'add_chat'],
['good_night', 'great_day', 'good_day', 'good_luck', 'drop_menu', 'sound_good', 'nice_day', 'ye_great', 'remov_thank_welcom', 'make_sens'], ...]
:param refCorpus: preprocessed corpus used to calculate the word count, list of texts
:param concatColSep: separation symbol used for topic phrases, or concatenated collocations
:param maxPattern: the maximum number of words in a phrase, if available. In case the model takes phrases with more than 3 words, please specify
"""
self.topics = topics
self.refCorpus = refCorpus
self.concatColSep = concatColSep
self.maxPattern = maxPattern
def __words2IDs(self, words):
indices = []
for word in words.split():
if word in self.topicUnigram2ID:
indices.append(self.topicUnigram2ID[word])
else:
indices.append(0)
return indices
def __getNGrams(self, wordIDs):
uniGrams = []
allNGrams = []
# get all 1-gram words first
for i in range(len(wordIDs)):
if wordIDs[i] != 0:
uniGrams.append(self.topicID2Unigram[wordIDs[i]])
allNGrams += uniGrams
# find all possible k-gram words and check if they are in the topical words
for k in range(2, self.maxPattern + 1):
possibleKGrams = [self.concatColSep.join(item) for item in list(CwR(uniGrams, k))]
# screen out those appear in the topical words
validKGrams = [kgram for kgram in possibleKGrams if kgram in self.topicalWordPairs]
allNGrams += validKGrams
allNGrams = list(set(allNGrams))
return allNGrams
def __getWordCount(self):
for line in self.refCorpus:
refChatWordIDs = self.__words2IDs(line)
nGrams = self.__getNGrams(refChatWordIDs)
for nGram in nGrams:
if nGram in self.topicalWordPairs:
self.wordCount[nGram] += 1
# create word combinations
for i1 in range(len(nGrams) - 1):
for i2 in range(i1 + 1, len(nGrams)):
if (nGrams[i1] in self.topicalWordPairs and nGrams[i2] in self.topicalWordPairs[nGrams[i1]])\
or (nGrams[i2] in self.topicalWordPairs and nGrams[i1] in self.topicalWordPairs[nGrams[i2]]):
# save ordered paris to avoid duplication
if nGrams[i1] < nGrams[i2]:
combined = nGrams[i2] + '|' + nGrams[i1]
else:
combined = nGrams[i1] + '|' + nGrams[i2]
self.wordCount[combined] += 1
return self.wordCount
def __getWordAssoc(self, word1, word2):
# two types of combinations
combined1 = word1 + '|' + word2
combined2 = word2 + '|' + word1
n_combined = 0
# get the number from word counts
if combined1 in self.wordCount:
n_combined = self.wordCount[combined1]
elif combined2 in self.wordCount:
n_combined = self.wordCount[combined2]
# ignore the irrelevant words
n_word1 = self.wordCount[word1] if word1 in self.wordCount else 0
n_word2 = self.wordCount[word2] if word2 in self.wordCount else 0
n_total = len(self.refCorpus)
# simplified, if each of the count is zero, the result will be zero
if n_word1 == 0 or n_word2 == 0 or n_combined == 0:
result = 0.0
else:
result = math.log((float(n_combined) * float(n_total)) / \
float(n_word1 * n_word2), 10)
try:
result = result / (-1.0 * math.log(float(n_combined) / n_total, 10))
except ZeroDivisionError:
result = 0
return result
def __getTopicCoherence(self, topic):
topicAssoc = []
# go through all the word pairs
for wordID1 in range(0, len(topic) - 1):
word1 = topic[wordID1]
for wordID2 in range(wordID1 + 1, len(topic)):
word2 = topic[wordID2]
if word2 != word1:
topicAssoc.append(self.__getWordAssoc(word1, word2))
# calculate the mean as the score of a topic
return np.mean(topicAssoc)
def getNPMI(self):
for topic in self.topics:
for word1 in topic:
# separate the multi-word phrases by the symbol given
for unigram in word1.split(self.concatColSep):
# check if the word really exists
if len(unigram) > 0:
self.topicUnigrams.add(unigram) # add the uni-gram word into a set to avoid duplication
# search all the relevant words appear in the same topic. The both words are called 'word pairs'
# for example: {'request_item': {'check_book', 'physic_copi', 'place_request', ...}
for word2 in topic:
if word2 != word1:
wordPairs = set()
if word1 in self.topicalWordPairs:
wordPairs = self.topicalWordPairs[word1]
if word2 != word1:
wordPairs.add(word2)
self.topicalWordPairs[word1] = wordPairs
# number uni-gram words: {0: 'request_item', ...}
self.topicID2Unigram = dict(enumerate(sorted(list(self.topicUnigrams))))
# reverse the dictionary {'request_item': 0, ...}
self.topicUnigram2ID = {unigram: id for id, unigram in self.topicID2Unigram.items()}
self.wordCount = self.__getWordCount()
topicList = [','.join(topic) for topic in self.topics]
for i in range(len(topicList)):
self.topicCoherence[i] = self.__getTopicCoherence(topicList[i].split(','))
# calculate the mean score for all topics
NPMI = np.mean(list(self.topicCoherence.values()))
return NPMI
|
banet = dict(
lr_start = 5e-2,
weight_decay= 5e-4,
warmup_iters = 0,
start_epoch = 0,
epoch = 360,
im_root= PATH_TO_DATASET,
train_im_anns='../banet/datasets/cityscapes/train.txt',
val_im_anns='../banet/datasets/cityscapes/val.txt',
scales=[0.25, 2.],
cropsize=[1024, 1024],
ims_per_gpu=8,
use_fp16=True,
use_sync_bn=False,
respth='./res',
)
|
#
# Copyright 2018 Analytics Zoo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import sys
from optparse import OptionParser
from pyspark.streaming import StreamingContext
from zoo.common.nncontext import init_nncontext
from zoo.feature.text import DistributedTextSet
from zoo.models.textclassification import TextClassifier
if __name__ == "__main__":
parser = OptionParser()
parser.add_option("--host", dest="host",
default="localhost")
parser.add_option("--port", dest="port",
default="9999")
parser.add_option("--index_path", dest="index_path")
parser.add_option("--partition_num", dest="partition_num",
default="4")
parser.add_option("--sequence_length", dest="sequence_length",
default="500")
parser.add_option("-b", "--batch_size", dest="batch_size",
default="128")
parser.add_option("-m", "--model", dest="model")
(options, args) = parser.parse_args(sys.argv)
sc = init_nncontext("Text Classification Example")
ssc = StreamingContext(sc, 3)
lines = ssc.socketTextStream(options.host, int(options.port))
model = TextClassifier.load_model(options.model)
def predict(record):
if record.getNumPartitions() == 0:
return
text_set = DistributedTextSet(record)
text_set.load_word_index(options.index_path)
print("Processing text...")
transformed = text_set.tokenize().normalize()\
.word2idx()\
.shape_sequence(len=int(options.sequence_length)).generate_sample()
predict_set = model.predict(transformed, int(options.partition_num))
# Get the first five prediction probability distributions
predicts = predict_set.get_predicts().take(5)
print("Probability distributions of top-5 texts:")
for p in predicts:
print(p)
lines.foreachRDD(predict)
# Start the computation
ssc.start()
# Wait for the computation to terminate
ssc.awaitTermination()
|
import config from '../config'
export const calculateByteLength = (str) => {
if (!str) return 0
// Remove whitespaces and line breaks
let metadata = str
.replace(/^\s+|\s+$/gm, '') // Trim beginning and ending whitespaces
.replace(/(\r\n|\n|\r)/gm, '') // Remove line breaks
.replace(/\s+/g, ' ') // Remove double whitespaces
// Check size
return Buffer.byteLength(metadata, 'utf8')
}
export const formatByteLength = (byteLength) => {
return byteLength >= 1000
? `(${(byteLength / 1000).toFixed(2)} KB)`
: `(${byteLength} B)`
}
export const getApiUrlBase = () => {
let urlBase = `${config.PUT_METADATA_API}`
if (config.PUT_METADATA_API.charAt(config.PUT_METADATA_API.length - 1) !== '/') {
urlBase += '/'
}
return urlBase
}
|
"""
Django settings for superlists project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'av2)cg9055@c-t4sn(q8fyju3ang71gp7a44v@wc*4@4$@ej)q'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'superlists.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'superlists.wsgi.application'
# Database
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# Password validation
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/3.0/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.0/howto/static-files/
STATIC_URL = '/static/'
|
import sys
from setuptools import setup
setup_requires = ['setuptools_scm']
if sys.argv[-1] in ('sdist', 'bdist_wheel'):
setup_requires.append('setuptools-markdown')
setup(
name='tldr',
author='Felix Yan',
author_email='felixonmars@gmail.com',
url='https://github.com/tldr-pages/tldr-python-client',
description='command line client for tldr',
long_description_markdown_filename='README.md',
license='MIT',
py_modules=['tldr'],
scripts=['tldr', 'tldr.py'],
install_requires=['six', 'termcolor', 'colorama'],
tests_require=[
'pytest-runner',
],
setup_requires=setup_requires,
use_scm_version=True,
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: SunOS/Solaris",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Utilities",
"Topic :: System"
]
)
|
#!/usr/bin/env python
from __future__ import absolute_import
import locale
import logging
import os
import sys
import warnings
# We ignore certain warnings from urllib3, since they are not relevant to pip's
# usecases.
from pip._vendor.urllib3.exceptions import (
DependencyWarning,
InsecureRequestWarning,
)
import pip._internal.utils.inject_securetransport # noqa
from pip._internal.cli.autocompletion import autocomplete
from pip._internal.cli.main_parser import parse_command
from pip._internal.commands import create_command
from pip._internal.exceptions import PipError
from pip._internal.utils import deprecation
# Raised when using --trusted-host.
warnings.filterwarnings("ignore", category=InsecureRequestWarning)
# Raised since socks support depends on PySocks, which may not be installed.
# Barry Warsaw noted (on 2016-06-17) that this should be done before
# importing pip.vcs, which has since moved to pip._internal.vcs.
warnings.filterwarnings("ignore", category=DependencyWarning)
logger = logging.getLogger(__name__)
def main(args=None):
if args is None:
args = sys.argv[1:]
# Configure our deprecation warnings to be sent through loggers
deprecation.install_warning_logger()
autocomplete()
try:
cmd_name, cmd_args = parse_command(args)
except PipError as exc:
sys.stderr.write("ERROR: %s" % exc)
sys.stderr.write(os.linesep)
sys.exit(1)
# Needed for locale.getpreferredencoding(False) to work
# in pip._internal.utils.encoding.auto_decode
try:
locale.setlocale(locale.LC_ALL, '')
except locale.Error as e:
# setlocale can apparently crash if locale are uninitialized
logger.debug("Ignoring error %s when setting locale", e)
command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
return command.main(cmd_args)
|
import React, { useEffect, useRef } from 'react';
import { StaticImage } from 'gatsby-plugin-image';
import styled from 'styled-components';
import { srConfig } from '@config';
import sr from '@utils/sr';
import { usePrefersReducedMotion } from '@hooks';
const StyledAboutSection = styled.section`
max-width: 900px;
.inner {
display: grid;
grid-template-columns: 3fr 2fr;
grid-gap: 50px;
@media (max-width: 768px) {
display: block;
}
}
`;
const StyledText = styled.div`
ul.skills-list {
display: grid;
grid-template-columns: repeat(2, minmax(140px, 200px));
grid-gap: 0 10px;
padding: 0;
margin: 20px 0 0 0;
overflow: hidden;
list-style: none;
li {
position: relative;
margin-bottom: 10px;
padding-left: 20px;
font-family: var(--font-mono);
font-size: var(--fz-xs);
&:before {
content: '▹';
position: absolute;
left: 0;
color: var(--green);
font-size: var(--fz-sm);
line-height: 12px;
}
}
}
`;
const StyledPic = styled.div`
position: relative;
max-width: 300px;
@media (max-width: 768px) {
margin: 50px auto 0;
width: 70%;
}
.wrapper {
${({ theme }) => theme.mixins.boxShadow};
display: block;
position: relative;
width: 100%;
border-radius: var(--border-radius);
background-color: var(--green);
&:hover,
&:focus {
background: transparent;
outline: 0;
&:after {
top: 15px;
left: 15px;
}
.img {
filter: none;
mix-blend-mode: normal;
}
}
.img {
position: relative;
border-radius: var(--border-radius);
mix-blend-mode: multiply;
filter: grayscale(100%) contrast(1);
transition: var(--transition);
}
&:before,
&:after {
content: '';
display: block;
position: absolute;
width: 100%;
height: 100%;
border-radius: var(--border-radius);
transition: var(--transition);
}
&:before {
top: 0;
left: 0;
background-color: var(--navy);
mix-blend-mode: screen;
}
&:after {
border: 2px solid var(--green);
top: 20px;
left: 20px;
z-index: -1;
}
}
`;
const About = () => {
const revealContainer = useRef(null);
const prefersReducedMotion = usePrefersReducedMotion();
useEffect(() => {
if (prefersReducedMotion) {
return;
}
sr.reveal(revealContainer.current, srConfig());
}, []);
const skills = ['C/C++', 'Python', 'Robotics', 'Arduino', '3D Printing', 'Model Rocketry'];
return (
<StyledAboutSection id="about" ref={revealContainer}>
<h2 className="numbered-heading">About Me</h2>
<div className="inner">
<StyledText>
<div>
<p>
Hello! My name is Jonic and I enjoy solving technical engineering problems involving software, electrical, and
mechanical systems. I've been inspired by companies, like SpaceX and NASA, that are pushing the limits of
engineering and also humanity. I've previously worked at HP Inc as a software engineering
intern helping produce 3D printed foot orthotics.
</p>
<p>
Fast forward to today at CSULB, I am currently contributing to software/hardware teams in {' '}
<a href="https://beachlunabotics.org/" target="_blank" rel="noreferrer">
Beach Launch Team
</a>
and {' '}
<a href="https://beachlunabotics.org/" target="_blank" rel="noreferrer">
Long Beach Lunabotics
</a>.
After completion of my MS, I plan to work in industry as an engineer in software
system integration roles.
</p>
<p>
On my free time I enjoy running, lifting, jiu jitsu, mixing music, and gaming.
</p>
<p>Here are a few technologies I’ve been working with recently:</p>
</div>
<ul className="skills-list">
{skills && skills.map((skill, i) => <li key={i}>{skill}</li>)}
</ul>
</StyledText>
<StyledPic>
<div className="wrapper">
<StaticImage
className="img"
src="../../images/me.jpg"
width={500}
quality={95}
formats={['AUTO', 'WEBP', 'AVIF']}
alt="Headshot"
/>
</div>
</StyledPic>
</div>
</StyledAboutSection>
);
};
export default About;
|
const Encog = require('../index');
const _ = require('lodash');
const dataEncoder = new Encog.Preprocessing.DataEncoder();
let irisDataset = Encog.Utils.Datasets.getIrisDataSet();
irisDataset = _.shuffle(irisDataset);
irisDataset = Encog.Preprocessing.DataToolbox.trainTestSplit(irisDataset);
/******************/
//data normalization
/******************/
//apply a specific mapping to each column
const mappings = {
'Sepal.Length': new Encog.Preprocessing.DataMappers.MinMaxScaller(),
'Sepal.Width': new Encog.Preprocessing.DataMappers.MinMaxScaller(),
'Petal.Length': new Encog.Preprocessing.DataMappers.MinMaxScaller(),
'Petal.Width': new Encog.Preprocessing.DataMappers.MinMaxScaller(),
'Species': new Encog.Preprocessing.DataMappers.OneHot(),
};
//Fit to data, then transform it.
let trainData = dataEncoder.fit_transform(irisDataset.train, mappings);
//transform the test data based on the train data
let testData = dataEncoder.transform(irisDataset.test, mappings);
//slice the data in input and output
trainData = Encog.Preprocessing.DataToolbox.sliceOutput(trainData.values, 3);
testData = Encog.Preprocessing.DataToolbox.sliceOutput(testData.values, 3);
// create a neural network
const network = new Encog.Networks.Basic();
network.addLayer(new Encog.Layers.Basic(null, true, 4));
network.addLayer(new Encog.Layers.Basic(new Encog.ActivationFunctions.Sigmoid(), true, 10));
network.addLayer(new Encog.Layers.Basic(new Encog.ActivationFunctions.Sigmoid(), true, 5));
network.addLayer(new Encog.Layers.Basic(new Encog.ActivationFunctions.Sigmoid(), false, 3));
network.randomize();
// train the neural network
const train = new Encog.Training.Propagation.Resilient(network, trainData.input, trainData.output);
Encog.Utils.Network.trainNetwork(train, {minError: 0.01, minIterations: 5});
//validate the neural network
let accuracy = Encog.Utils.Network.validateNetwork(network, testData.input, testData.output);
console.log('Accuracy:', accuracy);
//save the trained network
Encog.Utils.File.saveNetwork(network, 'iris.dat');
//load a pretrained network
const newNetwork = Encog.Utils.File.loadNetwork('iris.dat');
//validate the neural network
accuracy = Encog.Utils.Network.validateNetwork(newNetwork, testData.input, testData.output);
console.log('accuracy: ', accuracy);
|
"""Class for holding an image and its associated data.
Authors: Ayush Baid
"""
from typing import Any, Dict, NamedTuple, Optional
import numpy as np
from gtsam import Cal3Bundler
from gtsfm.utils.sensor_width_database import SensorWidthDatabase
class Image(NamedTuple):
"""Holds the image, associated exif data, and original image file name."""
value_array: np.ndarray
exif_data: Optional[Dict[str, Any]] = None
sensor_width_db = SensorWidthDatabase()
file_name: Optional[str] = None
@property
def height(self) -> int:
"""
The height of the image (i.e. number of pixels in the vertical direction).
"""
return self.value_array.shape[0]
@property
def width(self) -> int:
"""
The width of the image (i.e. number of pixels in the horizontal direction).
"""
return self.value_array.shape[1]
def get_intrinsics_from_exif(self) -> Optional[Cal3Bundler]:
"""Constructs the camera intrinsics from exif tag.
Equation: focal_px=max(w_px,h_px)∗focal_mm / ccdw_mm
Ref:
- https://github.com/colmap/colmap/blob/e3948b2098b73ae080b97901c3a1f9065b976a45/src/util/bitmap.cc#L282
- https://openmvg.readthedocs.io/en/latest/software/SfM/SfMInit_ImageListing/
- https://photo.stackexchange.com/questions/40865/how-can-i-get-the-image-sensor-dimensions-in-mm-to-get-circle-of-confusion-from # noqa: E501
Returns:
intrinsics matrix (3x3).
"""
if self.exif_data is None or len(self.exif_data) == 0:
return None
focal_length_mm = self.exif_data.get("FocalLength")
sensor_width_mm = Image.sensor_width_db.lookup(
self.exif_data.get("Make"),
self.exif_data.get("Model"),
)
img_w_px = self.width
img_h_px = self.height
focal_length_px = max(img_h_px, img_w_px) * focal_length_mm / sensor_width_mm
center_x = img_w_px / 2
center_y = img_h_px / 2
return Cal3Bundler(
fx=float(focal_length_px),
k1=0.0,
k2=0.0,
u0=float(center_x),
v0=float(center_y),
)
def extract_patch(self, center_x: float, center_y: float, patch_size: int) -> "Image":
"""Extracts a square patch from the image.
Note: appropriate padding is done if patch is out of bounds.
Args:
center_x: horizontal coordinate of the patch center.
center_y: vertical coordinate of the patch center.
patch_size: edge length of the patch.
Returns:
Image: extracted patch.
"""
center_x = int(round(center_x))
center_y = int(round(center_y))
if center_x < 0 or center_x >= self.width:
raise ValueError("patch center should be in the image")
if center_y < 0 or center_y >= self.height:
raise ValueError("patch center should be in the image")
# pad the whole image to take care of boundary conditions
len_left = patch_size // 2 # 20 -> 10, 21 -> 10
len_right = (patch_size - 1) // 2 # 20 -> 9, 21 -> 10
# apply computed padding on the spatial dimensions and zero padding on channel dimensions
padded_value_array = np.pad(
array=self.value_array,
pad_width=((len_left, len_right), (len_left, len_right), (0, 0)),
)
# extract the values in the patch
# Note: the padding amount and pad_size//2 cancel each other out, so
# center index becomes the far left edge of patch in padded image
patch_values = padded_value_array[center_y : center_y + patch_size, center_x : center_x + patch_size]
return Image(value_array=patch_values, exif_data=None)
|
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:43:14 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/HealthUI.framework/HealthUI
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/
#import <HealthUI/HealthUI-Structs.h>
#import <HealthUI/HKGraphSeriesDataSource.h>
#import <libobjc.A.dylib/HKDateRangeDataUpdateDelegate.h>
@protocol HKDateRangeDataSourceDelegate;
@class NSMutableDictionary;
@interface HKDateRangeDataSource : HKGraphSeriesDataSource <HKDateRangeDataUpdateDelegate> {
id<HKDateRangeDataSourceDelegate> _sourceDelegate;
NSMutableDictionary* _pathToDataBlock;
}
@property (nonatomic,readonly) id<HKDateRangeDataSourceDelegate> sourceDelegate; //@synthesize sourceDelegate=_sourceDelegate - In the implementation block
@property (nonatomic,retain) NSMutableDictionary * pathToDataBlock; //@synthesize pathToDataBlock=_pathToDataBlock - In the implementation block
-(void)invalidateCache;
-(id)cachedBlockForPath:(SCD_Struct_HK12)arg1 context:(id)arg2 ;
-(void)blocksRequestedFromPath:(SCD_Struct_HK12)arg1 toPath:(SCD_Struct_HK12)arg2 priorityDelegate:(id)arg3 ;
-(id)initWithSourceDelegate:(id)arg1 ;
-(void)dateRangeDataUpdated;
-(id)_fetchAndCacheDataForPath:(SCD_Struct_HK12)arg1 ;
-(id<HKDateRangeDataSourceDelegate>)sourceDelegate;
-(NSMutableDictionary *)pathToDataBlock;
-(void)setPathToDataBlock:(NSMutableDictionary *)arg1 ;
@end
|
module.exports = {
testTimeout: 8000,
setupFilesAfterEnv: [
'./api-test-setup.jest.config.js',
],
};
|
# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-12 17:08
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gallery', '0004_auto_20170910_2120'),
]
operations = [
migrations.AlterField(
model_name='gallerypicture',
name='taggees',
field=models.ManyToManyField(blank=True, to=settings.AUTH_USER_MODEL),
),
]
|
#
# This file is part of pyasn1 software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pyasn1/license.html
#
import sys
try:
import unittest2 as unittest
except ImportError:
import unittest
from tests.base import BaseTestCase
from pyasn1.type import tag
from pyasn1.type import namedtype
from pyasn1.type import opentype
from pyasn1.type import univ
from pyasn1.codec.cer import decoder
from pyasn1.compat.octets import ints2octs, str2octs, null
from pyasn1.error import PyAsn1Error
class BooleanDecoderTestCase(BaseTestCase):
def testTrue(self):
assert decoder.decode(ints2octs((1, 1, 255))) == (1, null)
def testFalse(self):
assert decoder.decode(ints2octs((1, 1, 0))) == (0, null)
def testEmpty(self):
try:
decoder.decode(ints2octs((1, 0)))
except PyAsn1Error:
pass
def testOverflow(self):
try:
decoder.decode(ints2octs((1, 2, 0, 0)))
except PyAsn1Error:
pass
class BitStringDecoderTestCase(BaseTestCase):
def testShortMode(self):
assert decoder.decode(
ints2octs((3, 3, 6, 170, 128))
) == (((1, 0) * 5), null)
def testLongMode(self):
assert decoder.decode(
ints2octs((3, 127, 6) + (170,) * 125 + (128,))
) == (((1, 0) * 501), null)
# TODO: test failures on short chunked and long unchunked substrate samples
class OctetStringDecoderTestCase(BaseTestCase):
def testShortMode(self):
assert decoder.decode(
ints2octs((4, 15, 81, 117, 105, 99, 107, 32, 98, 114, 111, 119, 110, 32, 102, 111, 120)),
) == (str2octs('Quick brown fox'), null)
def testLongMode(self):
assert decoder.decode(
ints2octs((36, 128, 4, 130, 3, 232) + (81,) * 1000 + (4, 1, 81, 0, 0))
) == (str2octs('Q' * 1001), null)
# TODO: test failures on short chunked and long unchunked substrate samples
class SequenceDecoderWithUntaggedOpenTypesTestCase(BaseTestCase):
def setUp(self):
openType = opentype.OpenType(
'id',
{1: univ.Integer(),
2: univ.OctetString()}
)
self.s = univ.Sequence(
componentType=namedtype.NamedTypes(
namedtype.NamedType('id', univ.Integer()),
namedtype.NamedType('blob', univ.Any(), openType=openType)
)
)
def testDecodeOpenTypesChoiceOne(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 1, 2, 1, 12, 0, 0)),
asn1Spec=self.s,
decodeOpenTypes=True
)
assert not r
assert s[0] == 1
assert s[1] == 12
def testDecodeOpenTypesChoiceTwo(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 2, 4, 11, 113, 117, 105, 99, 107, 32, 98,
114, 111, 119, 110, 0, 0)), asn1Spec=self.s,
decodeOpenTypes=True
)
assert not r
assert s[0] == 2
assert s[1] == univ.OctetString('quick brown')
def testDecodeOpenTypesUnknownType(self):
try:
s, r = decoder.decode(
ints2octs((48, 128, 6, 1, 1, 2, 1, 12, 0, 0)), asn1Spec=self.s,
decodeOpenTypes=True
)
except PyAsn1Error:
pass
else:
assert False, 'unknown open type tolerated'
def testDecodeOpenTypesUnknownId(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 3, 6, 1, 12, 0, 0)), asn1Spec=self.s,
decodeOpenTypes=True
)
assert not r
assert s[0] == 3
assert s[1] == univ.OctetString(hexValue='06010c')
def testDontDecodeOpenTypesChoiceOne(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 1, 2, 1, 12, 0, 0)), asn1Spec=self.s
)
assert not r
assert s[0] == 1
assert s[1] == ints2octs((2, 1, 12))
def testDontDecodeOpenTypesChoiceTwo(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 2, 4, 11, 113, 117, 105, 99, 107, 32, 98,
114, 111, 119, 110, 0, 0)), asn1Spec=self.s
)
assert not r
assert s[0] == 2
assert s[1] == ints2octs((4, 11, 113, 117, 105, 99, 107, 32, 98, 114, 111, 119, 110))
class SequenceDecoderWithImplicitlyTaggedOpenTypesTestCase(BaseTestCase):
def setUp(self):
openType = opentype.OpenType(
'id',
{1: univ.Integer(),
2: univ.OctetString()}
)
self.s = univ.Sequence(
componentType=namedtype.NamedTypes(
namedtype.NamedType('id', univ.Integer()),
namedtype.NamedType(
'blob', univ.Any().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 3)), openType=openType
)
)
)
def testDecodeOpenTypesChoiceOne(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 1, 163, 128, 2, 1, 12, 0, 0, 0, 0)),
asn1Spec=self.s, decodeOpenTypes=True
)
assert not r
assert s[0] == 1
assert s[1] == 12
def testDecodeOpenTypesUnknownId(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 3, 163, 128, 2, 1, 12, 0, 0, 0, 0)),
asn1Spec=self.s, decodeOpenTypes=True
)
assert not r
assert s[0] == 3
assert s[1] == univ.OctetString(hexValue='02010C')
class SequenceDecoderWithExplicitlyTaggedOpenTypesTestCase(BaseTestCase):
def setUp(self):
openType = opentype.OpenType(
'id',
{1: univ.Integer(),
2: univ.OctetString()}
)
self.s = univ.Sequence(
componentType=namedtype.NamedTypes(
namedtype.NamedType('id', univ.Integer()),
namedtype.NamedType(
'blob', univ.Any().subtype(explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 3)), openType=openType
)
)
)
def testDecodeOpenTypesChoiceOne(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 1, 163, 128, 2, 1, 12, 0, 0, 0, 0)),
asn1Spec=self.s, decodeOpenTypes=True
)
assert not r
assert s[0] == 1
assert s[1] == 12
def testDecodeOpenTypesUnknownId(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 3, 163, 128, 2, 1, 12, 0, 0, 0, 0)),
asn1Spec=self.s, decodeOpenTypes=True
)
assert not r
assert s[0] == 3
assert s[1] == univ.OctetString(hexValue='02010C')
class SequenceDecoderWithUntaggedSetOfOpenTypesTestCase(BaseTestCase):
def setUp(self):
openType = opentype.OpenType(
'id',
{1: univ.Integer(),
2: univ.OctetString()}
)
self.s = univ.Sequence(
componentType=namedtype.NamedTypes(
namedtype.NamedType('id', univ.Integer()),
namedtype.NamedType('blob', univ.SetOf(componentType=univ.Any()),
openType=openType)
)
)
def testDecodeOpenTypesChoiceOne(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 1, 49, 128, 2, 1, 12, 0, 0, 0, 0)),
asn1Spec=self.s, decodeOpenTypes=True
)
assert not r
assert s[0] == 1
assert s[1][0] == 12
def testDecodeOpenTypesChoiceTwo(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 2, 49, 128, 4, 11, 113, 117, 105, 99,
107, 32, 98, 114, 111, 119, 110, 0, 0, 0, 0)),
asn1Spec=self.s, decodeOpenTypes=True
)
assert not r
assert s[0] == 2
assert s[1][0] == univ.OctetString('quick brown')
def testDecodeOpenTypesUnknownType(self):
try:
s, r = decoder.decode(
ints2octs((48, 128, 6, 1, 1, 49, 128, 2, 1, 12, 0, 0, 0, 0)),
asn1Spec=self.s, decodeOpenTypes=True
)
except PyAsn1Error:
pass
else:
assert False, 'unknown open type tolerated'
def testDecodeOpenTypesUnknownId(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 3, 49, 128, 2, 1, 12, 0, 0, 0, 0)),
asn1Spec=self.s, decodeOpenTypes=True
)
assert not r
assert s[0] == 3
assert s[1][0] == univ.OctetString(hexValue='02010c')
def testDontDecodeOpenTypesChoiceOne(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 1, 49, 128, 2, 1, 12, 0, 0, 0, 0)),
asn1Spec=self.s
)
assert not r
assert s[0] == 1
assert s[1][0] == ints2octs((2, 1, 12))
def testDontDecodeOpenTypesChoiceTwo(self):
s, r = decoder.decode(
ints2octs((48, 128, 2, 1, 2, 49, 128, 4, 11, 113, 117, 105, 99, 107, 32,
98, 114, 111, 119, 110, 0, 0, 0, 0)), asn1Spec=self.s
)
assert not r
assert s[0] == 2
assert s[1][0] == ints2octs((4, 11, 113, 117, 105, 99, 107, 32, 98, 114,
111, 119, 110))
class SequenceDecoderWithImplicitlyTaggedSetOfOpenTypesTestCase(BaseTestCase):
def setUp(self):
openType = opentype.OpenType(
'id',
{1: univ.Integer(),
2: univ.OctetString()}
)
self.s = univ.Sequence(
componentType=namedtype.NamedTypes(
namedtype.NamedType('id', univ.Integer()),
namedtype.NamedType(
'blob', univ.SetOf(
componentType=univ.Any().subtype(
implicitTag=tag.Tag(
tag.tagClassContext, tag.tagFormatSimple, 3))),
openType=openType
)
)
)
def testDecodeOpenTypesChoiceOne(self):
s, r = decoder.decode(
ints2octs((48, 10, 2, 1, 1, 49, 5, 131, 3, 2, 1, 12)),
asn1Spec=self.s, decodeOpenTypes=True
)
assert not r
assert s[0] == 1
assert s[1][0] == 12
def testDecodeOpenTypesUnknownId(self):
s, r = decoder.decode(
ints2octs((48, 10, 2, 1, 3, 49, 5, 131, 3, 2, 1, 12)),
asn1Spec=self.s, decodeOpenTypes=True
)
assert not r
assert s[0] == 3
assert s[1][0] == univ.OctetString(hexValue='02010C')
class SequenceDecoderWithExplicitlyTaggedSetOfOpenTypesTestCase(BaseTestCase):
def setUp(self):
openType = opentype.OpenType(
'id',
{1: univ.Integer(),
2: univ.OctetString()}
)
self.s = univ.Sequence(
componentType=namedtype.NamedTypes(
namedtype.NamedType('id', univ.Integer()),
namedtype.NamedType(
'blob', univ.SetOf(
componentType=univ.Any().subtype(
explicitTag=tag.Tag(
tag.tagClassContext, tag.tagFormatSimple, 3))),
openType=openType
)
)
)
def testDecodeOpenTypesChoiceOne(self):
s, r = decoder.decode(
ints2octs((48, 10, 2, 1, 1, 49, 5, 131, 3, 2, 1, 12)),
asn1Spec=self.s, decodeOpenTypes=True
)
assert not r
assert s[0] == 1
assert s[1][0] == 12
def testDecodeOpenTypesUnknownId(self):
s, r = decoder.decode(
ints2octs( (48, 10, 2, 1, 3, 49, 5, 131, 3, 2, 1, 12)),
asn1Spec=self.s, decodeOpenTypes=True
)
assert not r
assert s[0] == 3
assert s[1][0] == univ.OctetString(hexValue='02010C')
suite = unittest.TestLoader().loadTestsFromModule(sys.modules[__name__])
if __name__ == '__main__':
unittest.TextTestRunner(verbosity=2).run(suite)
|
###############################################################################
# Name: style_editor.py #
# Purpose: Syntax Highlighting configuration dialog #
# Author: Cody Precord <cprecord@editra.org> #
# Copyright: (c) 2008-2011 Cody Precord <staff@editra.org> #
# License: wxWindows License #
###############################################################################
"""
Provides an editor dialog for graphically editing how the text is presented in
the editor when syntax highlighting is turned on. It does this by taking the
data from the controls and formating it into an Editra Style Sheet that the
editor can load to configure the styles of the text.
@summary: Gui for creating custom Editra Style Sheets
"""
__author__ = "Cody Precord <cprecord@editra.org>"
__svnid__ = "$Id: style_editor.py 70228 2011-12-31 20:39:16Z CJP $"
__revision__ = "$Revision: 70228 $"
#--------------------------------------------------------------------------#
# Imports
import os
import glob
import wx
# Editra Imports
import ed_glob
from profiler import Profile_Get, Profile_Set
import ed_basestc
from ed_style import StyleItem
import util
import syntax.syntax as syntax
import eclib
import ebmlib
import ed_basewin
# Function Aliases
_ = wx.GetTranslation
# Global Values
ID_FORE_COLOR = wx.NewId()
ID_BACK_COLOR = wx.NewId()
ID_BOLD = wx.NewId()
ID_ITALIC = wx.NewId()
ID_EOL = wx.NewId()
ID_ULINE = wx.NewId()
ID_FONT = wx.NewId()
ID_FONT_SIZE = wx.NewId()
SETTINGS_IDS = [ ID_FORE_COLOR, ID_BACK_COLOR, ID_BOLD, ID_ITALIC,
ID_EOL, ID_ULINE, ID_FONT, ID_FONT_SIZE ]
# Modification Flags
MOD_NONE = 0
MOD_DOESNT_EXIST = 1
MOD_CHANGE_PRESENT = 2
#--------------------------------------------------------------------------#
class StyleEditor(ed_basewin.EdBaseDialog):
"""This class creates the window that contains the controls
for editing/configuring the syntax highlighting styles it acts
as a graphical way to interact with the L{ed_style.StyleMgr}.
@see: ed_style.StyleMgr
"""
def __init__(self, parent, id_=wx.ID_ANY, title=_("Style Editor"),
style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER):
super(StyleEditor, self).__init__(parent, id_, title, style=style)
# Attributes
self.LOG = wx.GetApp().GetLog()
self._panel = StyleEditorBox(self) #TODO
# Layout
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(self._panel, 1, wx.EXPAND)
# Create Buttons
b_sizer = wx.BoxSizer(wx.HORIZONTAL)
ok_b = wx.Button(self, wx.ID_OK, _("Ok"))
ok_b.SetDefault()
b_sizer.AddMany([(wx.Button(self, wx.ID_CANCEL, _("Cancel")), 0),
((5, 5), 0),
(wx.Button(self, wx.ID_SAVE, _("Save")), 0),
((5, 5), 0), (ok_b, 0)])
sizer.Add(b_sizer, 0, wx.ALIGN_RIGHT |
wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)
# Finish the Layout
self.SetSizer(sizer)
self.SetInitialSize()
# Event Handlers
self.Bind(wx.EVT_BUTTON, self.OnCancel, id=wx.ID_CANCEL)
self.Bind(wx.EVT_BUTTON, self.OnOk, id=wx.ID_OK)
self.Bind(wx.EVT_BUTTON, self.OnSave, id=wx.ID_SAVE)
self.Bind(wx.EVT_CLOSE, self.OnClose)
#--- End Init ---#
def ExportStyleSheet(self):
"""Writes the style sheet data out to a style sheet
@return: bool
"""
saved = self._panel.SaveStyleSheet()
return saved
def OnCancel(self, evt):
"""Catches the cancel button clicks and checks if anything
needs to be done before closing the window.
@param evt: event that called this handler
"""
self.LOG('[style_editor][evt] Cancel Clicked Closing Window')
evt.Skip()
def OnClose(self, evt):
"""Handles the window closer event
@param evt: event that called this handler
"""
self.LOG("[style_editor][evt] Dialog closing...")
self.OnOk(evt)
def OnOk(self, evt):
"""Catches the OK button click and checks if any changes need to be
saved before the window closes.
@param evt: event that called this handler
"""
self.LOG('[style_editor][evt] Ok Clicked Closing Window')
modtype = self._panel.CheckForModifications()
result = wx.ID_NO
msg = None
if modtype == MOD_CHANGE_PRESENT:
msg = _("Some styles have been changed would "
"you like to save before exiting?")
elif modtype == MOD_DOESNT_EXIST:
msg = _("The new style sheet '%s' has not been saved "
"would you like to save before exiting?") % self._panel.StyleTheme
if msg is not None:
dlg = wx.MessageDialog(self, msg, _("Save Styles"),
style=wx.YES_NO | wx.YES_DEFAULT | \
wx.CANCEL | wx.ICON_INFORMATION)
dlg.CenterOnParent()
result = dlg.ShowModal()
dlg.Destroy()
if result == wx.ID_NO:
# Get Current Selection to update buffers
sheet = self._panel.StyleTheme
path = self._panel.GetStyleSheetPath(sheet)
if os.path.exists(path):
UpdateBufferStyles(sheet)
evt.Skip()
elif result == wx.ID_CANCEL:
self.LOG('[style_editor][info] canceled closing')
else:
result = self.ExportStyleSheet()
if result != wx.ID_CANCEL:
evt.Skip()
def OnSave(self, evt):
"""Catches save button event
@param evt: event that called this handler
"""
self.LOG('[style_editor][evt] Export Clicked')
self.ExportStyleSheet()
#-----------------------------------------------------------------------------#
class StyleEditorBox(ed_basewin.EdBaseCtrlBox):
"""StyleEditor main Panel"""
def __init__(self, parent):
super(StyleEditorBox, self).__init__(parent)
# Attributes
self._prevTheme = None
ctrlbar = self.CreateControlBar(wx.TOP)
ss_lst = util.GetResourceFiles(u'styles', get_all=True, title=False)
ss_lst = [sheet for sheet in ss_lst if not sheet.startswith('.')]
self._style_ch = wx.Choice(ctrlbar, ed_glob.ID_PREF_SYNTHEME,
choices=sorted(ss_lst))
bmp = wx.ArtProvider.GetBitmap(str(ed_glob.ID_ADD), wx.ART_MENU)
if not bmp.IsOk():
bmp = None
self._addbtn = eclib.PlateButton(ctrlbar, label=_("New"),
bmp=bmp, style=eclib.PB_STYLE_NOBG)
bmp = wx.ArtProvider.GetBitmap(str(ed_glob.ID_REMOVE), wx.ART_MENU)
if not bmp.IsOk():
bmp = None
self._delbtn = eclib.PlateButton(ctrlbar, label=_("Remove"),
bmp=bmp, style=eclib.PB_STYLE_NOBG)
# Setup
ss_lbl = wx.StaticText(ctrlbar, label=_("Style Theme") + u": ")
ctrlbar.AddControl(ss_lbl, wx.ALIGN_LEFT)
self.StyleTheme = Profile_Get('SYNTHEME', 'str')
ctrlbar.AddControl(self._style_ch, wx.ALIGN_LEFT)
ctrlbar.AddControl(self._addbtn, wx.ALIGN_LEFT)
self._addbtn.SetToolTipString(_("Create a new style theme"))
ctrlbar.AddControl(self._delbtn, wx.ALIGN_LEFT)
self._delbtn.SetToolTipString(_("Remove Style"))
self.SetWindow(StyleEditorPanel(self))
# Events
self.Bind(wx.EVT_CHOICE, self.OnThemeChoice, self._style_ch)
self.Bind(wx.EVT_BUTTON, self.OnButton)
self.Bind(wx.EVT_UPDATE_UI,
lambda evt: evt.Enable(not self.IsSystemStyleSheet()),
self._delbtn)
#--- Properties ----#
def __setStyleTheme(self, theme):
self._prevTheme = theme # Tracking for choice change
self._style_ch.SetStringSelection(theme)
StyleTheme = property(lambda self: self._style_ch.GetStringSelection(),
lambda self, val: self.__setStyleTheme(val))
SyntaxSheets = property(lambda self: self._style_ch.GetItems(),
lambda self, val: self._style_ch.SetItems(sorted(val)))
#---- Public Api ----#
def CheckForModifications(self, sheet_name=None):
"""Check for any unsaved modifications to the styling information
@return: modification type
"""
if sheet_name is None:
sheet_name = self.StyleTheme # currently selected
modtype = MOD_NONE
if self.Window.DiffStyles():
modtype = MOD_CHANGE_PRESENT
elif not self.SheetExistOnDisk(sheet_name):
modtype = MOD_DOESNT_EXIST
return modtype
def DoChangeStyleSheet(self, sheet_name):
"""Change the StyleEditor for the given style sheet"""
if not self.SheetExistOnDisk(sheet_name):
# Changing to a fully transient style sheet that has
# not yet been written to disk.
self.SetDisplayForTransientSheet(sheet_name)
else:
self.Window.ChangeStyleSheet(sheet_name)
self.StyleTheme = sheet_name
def GetStyleSheetPath(self, sheet, syspath=False):
"""Get the on disk path to where the style sheet should
be written to.
@param sheet: sheet name
@keyword syspath: look on the system install path
@return: path to the style sheet
"""
if syspath:
cfgdir = ed_glob.CONFIG['SYS_STYLES_DIR'] # System Directory
else:
cfgdir = ed_glob.CONFIG['STYLES_DIR'] # User Directory
sheet_path = os.path.join(cfgdir, sheet)
sheet_path = ebmlib.AddFileExtension(sheet_path, '.ess')
return sheet_path
def IsSystemStyleSheet(self):
"""Is the given style sheet a system provided one
@return: bool
"""
# If it exists in user space it is not a system one
path = self.GetStyleSheetPath(self.StyleTheme)
return not os.path.exists(path)
def RefreshStyleSheets(self):
"""Update the list of style sheets"""
ss_lst = util.GetResourceFiles(u'styles', get_all=True, title=False)
ss_lst = [sname for sname in ss_lst if not sname.startswith('.')]
self.SyntaxSheets = ss_lst
def SaveStyleSheet(self, sheetname=None):
"""Save the changes to the currently selected StyleSheet
@return: bool
"""
# Ensure user styles directory exists to save style sheet to
if ed_glob.CONFIG['STYLES_DIR'] == ed_glob.CONFIG['SYS_STYLES_DIR']:
path = util.GetUserConfigBase()
user_config = os.path.join(path, 'styles')
if not os.path.exists(user_config):
try:
os.mkdir(user_config)
except (OSError, IOError), msg:
util.Log("[style_editor][err] %s" % msg)
else:
ed_glob.CONFIG['STYLES_DIR'] = user_config
rval = False
if sheetname is None:
sheetname = self.StyleTheme
sheet_path = self.GetStyleSheetPath(sheetname)
if self.WriteStyleSheet(sheet_path):
# Update Style Sheet Control
self.RefreshStyleSheets()
sheet = u".".join(os.path.basename(sheet_path).split(u'.')[:-1])
self.StyleTheme = sheet
self.Window.ResetTransientStyleData()
util.Log("[style_editor][info] Successfully exported: %s" % sheet)
if sheet_path.startswith(ed_glob.CONFIG['STYLES_DIR']) or \
sheet_path.startswith(ed_glob.CONFIG['SYS_STYLES_DIR']):
# Update editor windows/buffer to use new style sheet
UpdateBufferStyles(sheet)
rval = True
return rval
def SetDisplayForTransientSheet(self, sheet_name):
"""Setup the display and editor data for a transient style sheet"""
self.Window.SetBlankStyle()
themes = self.SyntaxSheets
if sheet_name not in themes:
themes.append(sheet_name)
self.SyntaxSheets = themes
self.StyleTheme = sheet_name
def SheetExistOnDisk(self, sheet_name):
"""Check if the given style sheet exists on disk
@param sheet_name: style sheet name
@return: bool
"""
path = self.GetStyleSheetPath(sheet_name) # User path
syspath = self.GetStyleSheetPath(sheet_name, True) # System path
exists = os.path.exists(path) or os.path.exists(syspath)
return exists
def WriteStyleSheet(self, path):
"""Write the current style data to the given path
@param path: string
@return: bool
"""
bOk = True
try:
writer = util.GetFileWriter(path)
writer.write(self.Window.GenerateStyleSheet())
writer.close()
except (AttributeError, IOError), msg:
util.Log('[style_editor][err] Failed to export style sheet')
util.Log('[style_editor][err] %s' % msg)
bOk = False
return bOk
#---- Event Handlers ----#
def OnButton(self, evt):
"""Handle the Add/Remove Buttons"""
e_obj = evt.GetEventObject()
if e_obj is self._addbtn:
# TODO: warn about unsaved changes
fname = wx.GetTextFromUser(_("Enter style sheet name"),
_("New Style Sheet"),
parent=self)
if fname:
# Case insensitive check
if fname.lower() in [name.lower() for name in self.SyntaxSheets]:
# Already exists
wx.MessageBox(_("The style %s already exists. Please choose a different name.") % fname,
style=wx.OK|wx.CENTER|wx.ICON_INFORMATION)
else:
# Create it
self.SetDisplayForTransientSheet(fname)
elif e_obj is self._delbtn:
path = self.GetStyleSheetPath(self.StyleTheme)
try:
os.remove(path)
except OSError, msg:
wx.MessageBox(_("Failed to delete style sheet:\nError:\n%s") % msg,
style=wx.OK|wx.CENTER|wx.ICON_ERROR)
else:
self.RefreshStyleSheets()
self.StyleTheme = u"Default" # select the default style
self.DoChangeStyleSheet(self.StyleTheme)
else:
evt.Skip()
def OnThemeChoice(self, evt):
"""Check if current style sheet has been saved when switching sheets"""
oldTheme = self._prevTheme
newTheme = self.StyleTheme # newly selected theme
msg = None
modtype = self.CheckForModifications(self._prevTheme)
if modtype == MOD_CHANGE_PRESENT:
# prompt to save before changing
msg = _("Would you like to save the changes to '%s' before changing themes?\n\n"
"Selecting No will result in all changes being lost.")
msg = msg % oldTheme
elif modtype == MOD_DOESNT_EXIST:
# prompt to save unsaved sheet
msg = _("The new style theme '%s' has not been saved.\n\n"
"Would you like to save it before changing themes?")
msg = msg % oldTheme
if msg is not None:
dlg = wx.MessageDialog(self, msg, _("Save Styles"),
style=wx.YES_NO | wx.YES_DEFAULT | \
wx.ICON_INFORMATION)
dlg.CenterOnParent()
result = dlg.ShowModal()
dlg.Destroy()
if result == wx.YES:
# Save the style sheet
self.SaveStyleSheet(oldTheme)
# Change the style sheet to the newly selected one
self.DoChangeStyleSheet(newTheme)
#-----------------------------------------------------------------------------#
class StyleEditorPanel(wx.Panel):
"""Main panel for the editor portion of the StyleEditor"""
def __init__(self, parent):
super(StyleEditorPanel, self).__init__(parent)
# Attributes
self._settings = SettingsPanel(self)
self.preview = PreviewPanel(self)
self.prebuff = self.preview.GetPreviewBuffer() # TEMP HACK
self.styles_orig = DuplicateStyleDict(self.prebuff.GetStyleSet())
self.styles_new = DuplicateStyleDict(self.styles_orig)
self.prebuff.SetStyles('preview', self.styles_new, True)
self.preview.OpenPreviewFile('cpp')
# Setup
self.StyleTags = self.styles_orig.keys()
self.__DoLayout()
self.EnableSettings(False)
# Event Handlers
self.Bind(wx.EVT_LISTBOX, self.OnListBox)
self.Bind(wx.EVT_CHOICE, self.OnChoice)
self.Bind(wx.EVT_CHECKBOX, self.OnCheck)
self.Bind(eclib.EVT_COLORSETTER, self.OnColor)
self.prebuff.Bind(wx.EVT_LEFT_UP, self.OnTextRegion)
self.prebuff.Bind(wx.EVT_KEY_UP, self.OnTextRegion)
def __DoLayout(self):
"""Layout the window"""
vsizer = wx.BoxSizer(wx.VERTICAL)
vsizer.Add(self._settings, 0, wx.EXPAND|wx.ALL, 5)
vsizer.Add(self.preview, 1, wx.EXPAND)
self.SetSizer(vsizer)
#---- Properties ----#
StyleTags = property(lambda self: self._settings.TagList.GetItems(),
lambda self, val: self._settings.TagList.SetItems(sorted(val)))
SettingsPanel = property(lambda self: self._settings)
#---- Public API ----#
def ChangeStyleSheet(self, sheet_name):
"""Change the style sheet that is being edited
@param sheet_name: style sheet name (without extension)
"""
self.prebuff.UpdateAllStyles(sheet_name)
self.ResetTransientStyleData()
tag = self._settings.TagList.GetStringSelection()
if tag != wx.EmptyString:
self.UpdateSettingsPane(self.styles_new[tag])
def DiffStyles(self):
"""Checks if the current style set is different from the
original set. Used internally to check if a save prompt needs
to be brought up. Returns True if the style sets are different.
@return: whether style set has been modified or not
@return: bool
"""
diff = False
for key in self.styles_orig:
if self.styles_orig[key] != self.styles_new[key]:
diff = True
break
return diff
def EnableSettings(self, enable=True):
"""Enables/Disables all settings controls
@keyword enable: whether to enable/disable settings controls
"""
for child in self.SettingsPanel.GetChildren():
if not isinstance(child, wx.ListBox):
child.Enable(enable)
def GenerateStyleSheet(self):
"""Generates a style sheet from the dialogs style data
@return: The dictionary of L{StyleItem} in self.styles_new transformed
into a string that is in Editra Style Sheet format.
"""
sty_sheet = list()
ditem = self.styles_new.get('default_style', StyleItem())
dvals = ';\n\t\t'.join([item.replace(',', ' ')
for item in ditem.GetAsList() ]) + ';'
sty_sheet.append(''.join(['default_style {\n\t\t', dvals, '\n\n}\n\n']))
tags = sorted(self.styles_new.keys())
for tag in tags:
item = self.styles_new[tag]
if item.IsNull() or tag == 'default_style':
continue
stage1 = wx.EmptyString
for attr in ('fore', 'back', 'face', 'size'):
ival = item.GetNamedAttr(attr)
if attr in ('fore', 'back'):
ival = ival.upper()
if ival is None or ival == ditem.GetNamedAttr(attr):
continue
stage1 = ''.join((stage1, attr, u':',
ival.replace(',', ' '), u';'))
# Add any modifiers to the modifier tag
modifiers = item.GetModifiers()
if len(modifiers):
stage1 += (u"modifiers:" + modifiers + u";").replace(',', ' ')
# If the StyleItem had any set attributes add it to the stylesheet
if len(stage1):
sty_sheet.append(tag + u" {\n")
stage2 = u"\t\t" + stage1[0:-1].replace(u";", u";\n\t\t") + u";"
sty_sheet.append(stage2)
sty_sheet.append(u"\n}\n\n")
return u"".join(sty_sheet)
def ResetTransientStyleData(self):
"""Reset the transient style data to mark the changes as not dirty"""
self.styles_new = DuplicateStyleDict(self.prebuff.GetStyleSet())
self.styles_orig = DuplicateStyleDict(self.styles_new)
def SetBlankStyle(self):
"""Clear all the transient style data to a blank style set"""
self.styles_orig = self.prebuff.BlankStyleDictionary()
self.styles_new = DuplicateStyleDict(self.styles_orig)
self.prebuff.SetStyles('preview', self.styles_new, nomerge=True)
self.prebuff.UpdateAllStyles('preview')
# For some reason this causes the text display to refresh
# properly when nothing else would work.
self.OnTextRegion()
def UpdateSettingsPane(self, syntax_data):
"""Updates all the settings controls to hold the
values of the selected tag.
@param syntax_data: syntax data set to configure panel from
"""
val_str = unicode(syntax_data)
val_map = { ID_FORE_COLOR : syntax_data.GetFore(),
ID_BACK_COLOR : syntax_data.GetBack(),
ID_BOLD : "bold" in val_str,
ID_ITALIC : "italic" in val_str,
ID_EOL : "eol" in val_str,
ID_ULINE : "underline" in val_str,
ID_FONT : syntax_data.GetFace(),
ID_FONT_SIZE : syntax_data.GetSize()
}
# Fall back to defaults for color values
# that we may not be able to understand
if u"#" not in val_map[ID_FORE_COLOR]:
val_map[ID_FORE_COLOR] = self.prebuff.GetDefaultForeColour(as_hex=True)
if u"#" not in val_map[ID_BACK_COLOR]:
val_map[ID_BACK_COLOR] = self.prebuff.GetDefaultBackColour(as_hex=True)
for sid in SETTINGS_IDS:
ctrl = self.FindWindowById(sid)
if isinstance(ctrl, wx.CheckBox):
ctrl.SetValue(val_map[sid])
elif isinstance(ctrl, wx.Choice):
ctrl.SetStringSelection(val_map[sid])
elif isinstance(ctrl, eclib.ColorSetter):
ctrl.SetLabel(val_map[sid][:7])
return True
def UpdateStyleSet(self, id_):
"""Updates the value of the style tag to reflect any changes
made in the settings controls.
@param id_: identifier of the style tag in the list
"""
# Get the tag that has been modified
tag = self._settings.TagList.GetStringSelection()
if not tag:
return False
# Get the modified value
ctrl = self.FindWindowById(id_)
if isinstance(ctrl, wx.CheckBox):
val = ctrl.GetValue()
elif isinstance(ctrl, wx.Choice):
val = ctrl.GetStringSelection()
elif isinstance(ctrl, eclib.ColorSetter):
val = ctrl.GetLabel()
else:
return False
# Update the value of the modified tag
val_map = { ID_FONT : u"face",
ID_FONT_SIZE : u"size",
ID_BOLD : u"bold",
ID_EOL : u"eol",
ID_ITALIC : u"italic",
ID_ULINE : u"underline",
ID_FORE_COLOR : u"fore",
ID_BACK_COLOR : u"back"
}
if id_ in [ ID_FONT, ID_FONT_SIZE, ID_FORE_COLOR, ID_BACK_COLOR ]:
self.styles_new[tag].SetNamedAttr(val_map[id_], val)
elif id_ in [ ID_BOLD, ID_ITALIC, ID_ULINE, ID_EOL ]:
self.styles_new[tag].SetExAttr(val_map[id_], val)
else:
return False
# Update the Preview Area
self.prebuff.SetStyleTag(tag, self.styles_new[tag])
self.prebuff.RefreshStyles()
#---- Event Handlers ----#
def OnCheck(self, evt):
"""Update Model for changes to styling settings"""
e_id = evt.GetId()
if e_id in [ID_BOLD, ID_EOL, ID_ULINE, ID_ITALIC]:
self.UpdateStyleSet(e_id)
else:
evt.Skip()
def OnChoice(self, evt):
"""Update Model for changes to styling settings"""
e_id = evt.GetId()
if e_id in [ID_FONT, ID_FONT_SIZE]:
self.UpdateStyleSet(e_id)
else:
evt.Skip()
def OnColor(self, evt):
"""Handles color selection events
@param evt: event that called this handler
"""
# Update The Style data for current tag
self.UpdateStyleSet(evt.GetId())
def OnListBox(self, evt):
"""Catches the selection of a style tag in the listbox
and updates the style window appropriately.
@param evt: event that called this handler
"""
tag = evt.GetEventObject().GetStringSelection()
if tag != u"" and tag in self.styles_new:
self.UpdateSettingsPane(self.styles_new[tag])
self.EnableSettings()
else:
self.EnableSettings(False)
def OnTextRegion(self, evt=None):
"""Processes clicks in the preview control and sets the style
selection in the style tags list to the style tag of the area
the cursor has moved into.
@param evt: event that called this handler
"""
if evt is not None:
evt.Skip()
style_id = self.prebuff.GetStyleAt(self.prebuff.GetCurrentPos())
data = self.prebuff.FindTagById(style_id)
if data != wx.EmptyString and data in self.styles_new:
self._settings.TagList.SetStringSelection(data)
if wx.Platform == '__WXGTK__':
self._settings.TagList.SetFirstItemStr(data)
self.UpdateSettingsPane(self.styles_new[data])
self.EnableSettings()
#-----------------------------------------------------------------------------#
class SettingsPanel(wx.Panel):
"""Panel holding all settings controls for changing the font,
colors, styles, ect.. in the style set.
"""
def __init__(self, parent):
"""Create the settings panel"""
super(SettingsPanel, self).__init__(parent)
# Attributes
self._tag_list = wx.ListBox(self,
size=(-1, 150),
style=wx.LB_SINGLE)
# Layout
self.__DoLayout()
TagList = property(lambda self: self._tag_list)
def __DoLayout(self):
"""Layout the controls in the panel"""
hsizer = wx.BoxSizer(wx.HORIZONTAL)
# Setup Left hand side with Style Tag List
ss_v = wx.BoxSizer(wx.VERTICAL)
style_lbl = wx.StaticText(self, label=_("Style Tags") + u": ")
ss_v.AddMany([(style_lbl, 0, wx.ALIGN_LEFT),
(self._tag_list, 1, wx.EXPAND)])
hsizer.Add(ss_v, 0, wx.EXPAND|wx.ALL, 5)
# Add divider line
hsizer.Add(wx.StaticLine(self, size=(-1, 2), style=wx.LI_VERTICAL),
0, wx.ALIGN_CENTER_HORIZONTAL|wx.EXPAND|wx.TOP|wx.BOTTOM, 5)
# Setup the Right side
setting_sizer = wx.BoxSizer(wx.VERTICAL)
setting_top = wx.BoxSizer(wx.HORIZONTAL)
# Settings top
sbox = wx.StaticBox(self, label=_("Color"))
cbox_sizer = wx.StaticBoxSizer(sbox, wx.VERTICAL)
# Foreground
fground_sizer = wx.BoxSizer(wx.HORIZONTAL)
fground_lbl = wx.StaticText(self, label=_("Foreground") + u": ")
fground_sel = eclib.ColorSetter(self, ID_FORE_COLOR, wx.BLACK)
fground_sizer.AddMany([((5, 5)),
(fground_lbl, 0, wx.ALIGN_CENTER_VERTICAL),
((2, 2), 0),
(fground_sel, 0, wx.ALIGN_CENTER_VERTICAL),
((5, 5))])
cbox_sizer.AddMany([(fground_sizer, 0, wx.ALIGN_LEFT | wx.EXPAND),
((10, 10))])
# Background
bground_sizer = wx.BoxSizer(wx.HORIZONTAL)
bground_lbl = wx.StaticText(self, label=_("Background") + u": ")
bground_sel = eclib.ColorSetter(self, ID_BACK_COLOR, wx.WHITE)
bground_sizer.AddMany([((5, 5)),
(bground_lbl, 0, wx.ALIGN_CENTER_VERTICAL),
((2, 2), 0),
(bground_sel, 0, wx.ALIGN_CENTER_VERTICAL),
((5, 5))])
cbox_sizer.Add(bground_sizer, 0, wx.EXPAND)
setting_top.AddMany([(cbox_sizer, 0, wx.ALIGN_TOP), ((10, 10), 0)])
# Attrib Box
attrib_box = wx.StaticBox(self, label=_("Attributes"))
abox_sizer = wx.StaticBoxSizer(attrib_box, wx.VERTICAL)
# Attributes
bold_cb = wx.CheckBox(self, ID_BOLD, _("bold"))
eol_cb = wx.CheckBox(self, ID_EOL, _("eol"))
ital_cb = wx.CheckBox(self, ID_ITALIC, _("italic"))
uline_cb = wx.CheckBox(self, ID_ULINE, _("underline"))
abox_sizer.AddMany([(bold_cb, 0),
(eol_cb, 0),
(ital_cb, 0),
(uline_cb, 0)])
setting_top.Add(abox_sizer, 0, wx.ALIGN_TOP)
# Font
fh_sizer = wx.BoxSizer(wx.HORIZONTAL)
font_box = wx.StaticBox(self, label=_("Font Settings"))
fbox_sizer = wx.StaticBoxSizer(font_box, wx.VERTICAL)
# Font Face Name
fsizer = wx.BoxSizer(wx.HORIZONTAL)
flbl = wx.StaticText(self, label=_("Font") + u": ")
fontenum = wx.FontEnumerator()
if wx.Platform == '__WXMAC__':
# FixedWidthOnly Asserts on wxMac
fontenum.EnumerateFacenames(fixedWidthOnly=False)
else:
fontenum.EnumerateFacenames(fixedWidthOnly=True)
font_lst = [u"%(primary)s", u"%(secondary)s"]
font_lst.extend(sorted(fontenum.GetFacenames()))
fchoice = wx.Choice(self, ID_FONT, choices=font_lst)
fsizer.AddMany([((5, 5), 0), (flbl, 0, wx.ALIGN_CENTER_VERTICAL),
(fchoice, 0, wx.ALIGN_CENTER_VERTICAL), ((5, 5),0)])
fbox_sizer.Add(fsizer, 0)
# Font Size
fsize_sizer = wx.BoxSizer(wx.HORIZONTAL)
fsize_lbl = wx.StaticText(self, label=_("Size") + u": ")
fsizes = [u"%(size)d", u"%(size2)d"]
fsizes.extend([ unicode(x) for x in range(4, 21) ])
fs_choice = wx.Choice(self, ID_FONT_SIZE, choices=fsizes)
fsize_sizer.AddMany([((5, 5), 0),
(fsize_lbl, 0, wx.ALIGN_CENTER_VERTICAL),
(fs_choice, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL),
((5, 5), 0)])
fbox_sizer.AddMany([((5, 5), 0), (fsize_sizer, 0, wx.EXPAND)])
fh_sizer.AddMany([(fbox_sizer, 0, wx.ALIGN_CENTER_HORIZONTAL), ((10, 10), 0)])
# Build Section
setting_sizer.AddMany([(setting_top, 0, wx.ALIGN_CENTER_HORIZONTAL),
((10, 10), 0),
(fh_sizer, 0, wx.ALIGN_CENTER_HORIZONTAL)])
# Setup Right hand side with the settings controls
hsizer.AddStretchSpacer()
hsizer.Add(setting_sizer, 0, wx.EXPAND|wx.ALL, 5)
hsizer.AddStretchSpacer()
self.SetSizer(hsizer)
#-----------------------------------------------------------------------------#
class PreviewPanel(ed_basewin.EdBaseCtrlBox):
"""Panel to hold the preview window and selector"""
def __init__(self, parent):
super(PreviewPanel, self).__init__(parent)
# Attributes
self.LOG = wx.GetApp().GetLog()
self.preview = ed_basestc.EditraBaseStc(self, size=(-1, 200),
style=wx.SUNKEN_BORDER)
# Setup
self.preview.SetEdgeColumn(80)
self.preview.SetEdgeMode(wx.stc.STC_EDGE_LINE)
self.preview.SetCaretLineVisible(True)
self.__DoLayout()
# Event Handlers
self.Bind(wx.EVT_CHOICE, self.OnChoice)
def __DoLayout(self):
"""Layout the Panel"""
# Create the ControlBar
cbar = self.CreateControlBar(wx.TOP)
# Setup the ControlBar's controls
lexer_lbl = wx.StaticText(cbar, label=_("Preview File") + u": ")
lexer_lst = wx.Choice(cbar, ed_glob.ID_LEXER,
choices=syntax.GetLexerList())
lexer_lst.SetToolTip(wx.ToolTip(_("Set the preview file type")))
lexer_lst.SetStringSelection(u"CPP")
cbar.AddControl(lexer_lbl)
cbar.AddControl(lexer_lst)
self.SetWindow(self.preview)
def GetPreviewBuffer(self):
"""Get the STC instance"""
return self.preview
def OnChoice(self, evt):
"""Update the preview file"""
if evt.GetId() == ed_glob.ID_LEXER:
e_obj = evt.GetEventObject()
val = e_obj.GetStringSelection()
self.OpenPreviewFile(val)
else:
evt.Skip()
def OpenPreviewFile(self, file_lbl):
"""Opens a file using the names in the Syntax Files choice
control as a search query.
@param file_lbl: name of file to open in test data directory
"""
fname = file_lbl.replace(u" ", u"_").replace(u"/", u"_").lower()
fname = fname.replace('#', 'sharp')
try:
fname = glob.glob(ed_glob.CONFIG['TEST_DIR'] + fname + ".*")[0]
except IndexError:
self.LOG('[style_editor][err] File %s Does not exist' % fname)
return False
self.preview.SetFileName(fname)
self.preview.ClearAll()
self.preview.LoadFile(fname)
self.preview.FindLexer()
self.preview.EmptyUndoBuffer()
return True
#-----------------------------------------------------------------------------#
# Utility functions
def DuplicateStyleDict(style_dict):
"""Duplicates the style dictionary to make a true copy of
it, as simply assigning the dictionary to two different variables
only copies a reference leaving both variables pointing to the
same object.
@param style_dict: dictionary of tags->StyleItems
@return: a copy of the given styleitem dictionary
"""
new_dict = dict()
for tag in style_dict:
new_dict[tag] = style_dict[tag].Clone()
return new_dict
def UpdateBufferStyles(sheet):
"""Update the style used in all buffers
@param sheet: Style sheet to use
"""
# Only update if the sheet has changed
if sheet is not None:
Profile_Set('SYNTHEME', sheet)
|
##############################################################################
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"). #
# You may not use this file except in compliance #
# with the License. A copy of the License is located at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# or in the "license" file accompanying this file. This file is #
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY #
# KIND, express or implied. See the License for the specific language #
# governing permissions and limitations under the License. #
##############################################################################
# !/bin/python
import boto3
class Boto3Session:
"""This class initialize boto3 client for a given AWS service name.
Example:
class EC2(Boto3Session):
def __init__(self, logger, region, **kwargs):
self.logger = logger
__service_name = 'ec2'
kwargs.update({'region': region}) # optional
super().__init__(logger, __service_name, **kwargs)
self.ec2_client = super().get_client()
"""
def __init__(self, logger, service_name, **kwargs):
"""
Parameters
----------
logger : object
The logger object
region : str
AWS region name. Example: 'us-east-1'
service_name : str
AWS service name. Example: 'ec2'
credentials = dict, optional
set of temporary AWS security credentials
endpoint_url : str
The complete URL to use for the constructed client.
"""
self.logger = logger
self.service_name = service_name
self.credentials = kwargs.get('credentials', None)
self.region = kwargs.get('region', None)
self.endpoint_url = kwargs.get('endpoint_url', None)
def get_client(self):
"""Creates a boto3 low-level service client by name.
Returns: service client, type: Object
"""
if self.credentials is None:
if self.endpoint_url is None:
return boto3.client(self.service_name, region_name=self.region)
else:
return boto3.client(self.service_name, region_name=self.region,
endpoint_url=self.endpoint_url)
else:
if self.region is None:
return boto3.client(self.service_name,
aws_access_key_id=self.credentials
.get('AccessKeyId'),
aws_secret_access_key=self.credentials
.get('SecretAccessKey'),
aws_session_token=self.credentials
.get('SessionToken')
)
else:
return boto3.client(self.service_name,
region_name=self.region,
aws_access_key_id=self.credentials
.get('AccessKeyId'),
aws_secret_access_key=self.credentials
.get('SecretAccessKey'),
aws_session_token=self.credentials
.get('SessionToken')
)
def get_resource(self):
"""Creates a boto3 resource service client object by name
Returns: resource service client, type: Object
"""
if self.credentials is None:
if self.endpoint_url is None:
return boto3.resource(self.service_name,
region_name=self.region)
else:
return boto3.resource(self.service_name,
region_name=self.region,
endpoint_url=self.endpoint_url)
else:
if self.region is None:
return boto3.resource(self.service_name,
aws_access_key_id=self.credentials
.get('AccessKeyId'),
aws_secret_access_key=self.credentials
.get('SecretAccessKey'),
aws_session_token=self.credentials
.get('SessionToken')
)
else:
return boto3.resource(self.service_name,
region_name=self.region,
aws_access_key_id=self.credentials
.get('AccessKeyId'),
aws_secret_access_key=self.credentials
.get('SecretAccessKey'),
aws_session_token=self.credentials
.get('SessionToken')
)
|
#!/usr/bin/env python3
# Copyright 2019 Apex.AI, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
import time
# This process pretends to do some simple setup, then pretends to do some simple work,
# then shuts itself down automatically
if __name__ == '__main__':
print('Starting Up')
time.sleep(1.0)
print('Ready')
if sys.argv[1:]:
print('Called with arguments {}'.format(sys.argv[1:]))
if '--exception' in sys.argv[1:]:
raise Exception('Process had a pretend error')
try:
print('Emulating Work')
time.sleep(1.0)
print('Done')
except KeyboardInterrupt:
pass
print('Shutting Down')
sys.exit(0)
|
import styled from 'styled-components';
const Grid = styled.div`
display: grid;
`;
export default Grid;
|
# Forked from https://github.com/JoshData/convert-outlook-msg-file
# This module converts a Microsoft Outlook .msg file into
# a MIME message that can be loaded by most email programs
# or inspected in a text editor.
#
# This script relies on the Python package compoundfiles
# for reading the .msg container format.
#
# Referencecs:
#
# https://msdn.microsoft.com/en-us/library/cc463912.aspx
# https://msdn.microsoft.com/en-us/library/cc463900(v=exchg.80).aspx
# https://msdn.microsoft.com/en-us/library/ee157583(v=exchg.80).aspx
# https://blogs.msdn.microsoft.com/openspecification/2009/11/06/msg-file-format-part-1/
import email.message
import email.parser
import email.policy
import os
import re
import sys
from email.message import EmailMessage
from email.utils import formataddr, formatdate
from functools import reduce
from typing import BinaryIO, Union
import compressed_rtf
from compoundfiles import CompoundFileEntity, CompoundFileReader
from loguru import logger
class Message:
def __init__(self, filename_or_stream: Union[str, BinaryIO]):
self.filename_or_stream = filename_or_stream
def to_email(self) -> EmailMessage:
with CompoundFileReader(self.filename_or_stream) as doc:
doc.rtf_attachments = 0
return load_message_stream(doc.root, True, doc)
def load_message_stream(
entry: CompoundFileEntity, is_top_level: bool, doc: CompoundFileReader
):
# Load stream data.
props = parse_properties(entry["__properties_version1.0"], is_top_level, entry, doc)
# Construct the MIME message....
msg = email.message.EmailMessage()
# Add the raw headers, if known.
if "TRANSPORT_MESSAGE_HEADERS" in props:
# Get the string holding all of the headers.
headers = props["TRANSPORT_MESSAGE_HEADERS"]
if isinstance(headers, bytes):
headers = headers.decode("utf-8")
# Remove content-type header because the body we can get this
# way is just the plain-text portion of the email and whatever
# Content-Type header was in the original is not valid for
# reconstructing it this way.
headers = re.sub("Content-Type: .*(\n\\s.*)*\n", "", headers, re.I)
# Parse them.
headers = email.parser.HeaderParser(policy=email.policy.default).parsestr(
headers
)
# Copy them into the message object.
for header, value in headers.items():
msg[header] = value
else:
# Construct common headers from metadata.
if "MESSAGE_DELIVERY_TIME" in props:
msg["Date"] = formatdate(props["MESSAGE_DELIVERY_TIME"].timestamp())
del props["MESSAGE_DELIVERY_TIME"]
if "SENDER_NAME" in props:
if "SENT_REPRESENTING_NAME" in props:
if props["SENT_REPRESENTING_NAME"]:
if props["SENDER_NAME"] != props["SENT_REPRESENTING_NAME"]:
props["SENDER_NAME"] += (
" (" + props["SENT_REPRESENTING_NAME"] + ")"
)
del props["SENT_REPRESENTING_NAME"]
if props["SENDER_NAME"]:
msg["From"] = formataddr((props["SENDER_NAME"], ""))
del props["SENDER_NAME"]
if "DISPLAY_TO" in props:
if props["DISPLAY_TO"]:
msg["To"] = props["DISPLAY_TO"]
del props["DISPLAY_TO"]
if "DISPLAY_CC" in props:
if props["DISPLAY_CC"]:
msg["CC"] = props["DISPLAY_CC"]
del props["DISPLAY_CC"]
if "DISPLAY_BCC" in props:
if props["DISPLAY_BCC"]:
msg["BCC"] = props["DISPLAY_BCC"]
del props["DISPLAY_BCC"]
if "SUBJECT" in props:
if props["SUBJECT"]:
msg["Subject"] = props["SUBJECT"]
del props["SUBJECT"]
# Add the plain-text body from the BODY field.
if "BODY" in props:
body = props["BODY"]
if isinstance(body, str):
msg.set_content(body, cte="quoted-printable")
else:
msg.set_content(body, maintype="text", subtype="plain", cte="8bit")
# Plain-text is not availabe. Use the rich text version.
else:
doc.rtf_attachments += 1
fn = f"messagebody_{doc.rtf_attachments}.rtf"
msg.set_content(
f"<no plain text message body --- see attachment {fn}>",
cte="quoted-printable",
)
# Decompress the value to Rich Text Format.
rtf = props["RTF_COMPRESSED"]
rtf = compressed_rtf.decompress(rtf)
# Add RTF file as an attachment.
msg.add_attachment(rtf, maintype="text", subtype="rtf", filename=fn)
# # Copy over string values of remaining properties as headers
# # so we don't lose any information.
# for k, v in props.items():
# if k == 'RTF_COMPRESSED': continue # not interested, save output
# msg[k] = str(v)
# Add attachments.
for stream in entry:
if stream.name.startswith("__attach_version1.0_#"):
process_attachment(msg, stream, doc)
return msg
def process_attachment(
msg: EmailMessage, entry: CompoundFileEntity, doc: CompoundFileReader
):
# Load attachment stream.
props = parse_properties(entry["__properties_version1.0"], False, entry, doc)
# The attachment content...
blob = props["ATTACH_DATA_BIN"]
# Get the filename and MIME type of the attachment.
filename = (
props.get("ATTACH_LONG_FILENAME")
or props.get("ATTACH_FILENAME")
or props.get("DISPLAY_NAME")
)
if isinstance(filename, bytes):
filename = filename.decode("utf8")
mime_type = props.get("ATTACH_MIME_TAG", "application/octet-stream")
if isinstance(mime_type, bytes):
mime_type = mime_type.decode("utf8")
filename = os.path.basename(filename)
# Python 3.6.
if isinstance(blob, str):
msg.add_attachment(blob, filename=filename)
elif isinstance(blob, bytes):
msg.add_attachment(
blob,
maintype=mime_type.split("/", 1)[0],
subtype=mime_type.split("/", 1)[-1],
filename=filename,
)
else: # a Message instance
msg.add_attachment(blob, filename=filename)
def parse_properties(
properties: CompoundFileEntity,
is_top_level: bool,
container: CompoundFileEntity,
doc: CompoundFileReader,
):
# Read a properties stream and return a Python dictionary
# of the fields and values, using human-readable field names
# in the mapping at the top of this module.
# Load stream content.
with doc.open(properties) as stream:
stream = stream.read()
# Skip header.
i = 32 if is_top_level else 24
# Read 16-byte entries.
ret = {}
while i < len(stream):
# Read the entry.
property_type = stream[i + 0 : i + 2]
property_tag = stream[i + 2 : i + 4]
# flags = stream[i + 4 : i + 8]
value = stream[i + 8 : i + 16]
i += 16
# Turn the byte strings into numbers and look up the property type.
property_type = property_type[0] + (property_type[1] << 8)
property_tag = property_tag[0] + (property_tag[1] << 8)
if property_tag not in property_tags:
continue # should not happen
tag_name, _ = property_tags[property_tag]
tag_type = property_types.get(property_type)
# Fixed Length Properties.
if isinstance(tag_type, FixedLengthValueLoader):
value = tag_type.load(value)
# Variable Length Properties.
elif isinstance(tag_type, VariableLengthValueLoader):
# Look up the stream in the document that holds the value.
streamname = "__substg1.0_{0:0{1}X}{2:0{3}X}".format(
property_tag, 4, property_type, 4
)
try:
with doc.open(container[streamname]) as innerstream:
value = innerstream.read()
except Exception:
# Stream isn't present!
logger.info("stream missing", streamname, file=sys.stderr)
continue
value = tag_type.load(value)
elif isinstance(tag_type, EMBEDDED_MESSAGE):
# Look up the stream in the document that holds the attachment.
streamname = "__substg1.0_{0:0{1}X}{2:0{3}X}".format(
property_tag, 4, property_type, 4
)
try:
value = container[streamname]
except Exception:
# Stream isn't present!
logger.info("stream missing", streamname, file=sys.stderr)
continue
value = tag_type.load(value, doc)
else:
# unrecognized type
logger.info("unhandled property type", hex(property_type), file=sys.stderr)
continue
ret[tag_name] = value
return ret
class FixedLengthValueLoader:
@staticmethod
def load(value):
raise NotImplementedError()
class NULL(FixedLengthValueLoader):
@staticmethod
def load(value):
# value is an eight-byte long bytestring with unused content.
return None
class BOOLEAN(FixedLengthValueLoader):
@staticmethod
def load(value):
# value is an eight-byte long bytestring holding a two-byte integer.
return value[0] == 1
class INTEGER16(FixedLengthValueLoader):
@staticmethod
def load(value):
# value is an eight-byte long bytestring holding a two-byte integer.
return reduce(lambda a, b: (a << 8) + b, reversed(value[0:2]))
class INTEGER32(FixedLengthValueLoader):
@staticmethod
def load(value):
# value is an eight-byte long bytestring holding a four-byte integer.
return reduce(lambda a, b: (a << 8) + b, reversed(value[0:4]))
class INTEGER64(FixedLengthValueLoader):
@staticmethod
def load(value):
# value is an eight-byte long bytestring holding an eight-byte integer.
return reduce(lambda a, b: (a << 8) + b, reversed(value))
class INTTIME(FixedLengthValueLoader):
@staticmethod
def load(value):
# value is an eight-byte long bytestring encoding the integer number of
# 100-nanosecond intervals since January 1, 1601.
from datetime import datetime, timedelta
value = reduce(
lambda a, b: (a << 8) + b, reversed(value)
) # bytestring to integer
value = datetime(1601, 1, 1) + timedelta(seconds=value / 10000000)
return value
# TODO: The other fixed-length data types:
# "FLOAT", "DOUBLE", "CURRENCY", "APPTIME", "ERROR"
class VariableLengthValueLoader:
@staticmethod
def load(value):
raise NotImplementedError()
class BINARY(VariableLengthValueLoader):
@staticmethod
def load(value):
# value is a bytestring. Just return it.
return value
class STRING8(VariableLengthValueLoader):
@staticmethod
def load(value: bytes):
# value is a bytestring. I haven't seen specified what character encoding
# is used when the Unicode storage type is not used, so we'll assume it's
# ASCII or Latin-1 like but we'll use UTF-8 to cover the bases.
return value.decode("utf8").rstrip("\x00")
class UNICODE(VariableLengthValueLoader):
@staticmethod
def load(value: bytes):
# value is a bytestring. I haven't seen specified what character encoding
# is used when the Unicode storage type is not used, so we'll assume it's
# ASCII or Latin-1 like but we'll use UTF-8 to cover the bases.
return value.decode("utf16").rstrip("\x00")
# TODO: The other variable-length tag types are "CLSID", "OBJECT".
class EMBEDDED_MESSAGE:
@staticmethod
def load(entry, doc):
return load_message_stream(entry, False, doc)
# CONSTANTS
# These constants are defined by the Microsoft Outlook file format
# and identify the data types and data fields in the .msg file.
# from mapidefs.h via https://github.com/inverse-inc/openchange.old/blob/master/libmapi/mapidefs.h
property_types = {
0x1: NULL(),
0x2: INTEGER16(),
0x3: INTEGER32(),
0x4: "FLOAT",
0x5: "DOUBLE",
0x6: "CURRENCY",
0x7: "APPTIME",
0xA: "ERROR",
0xB: BOOLEAN(),
0xD: EMBEDDED_MESSAGE(),
0x14: INTEGER64(),
0x1E: STRING8(),
0x1F: UNICODE(),
0x40: INTTIME(),
0x48: "CLSID",
0xFB: "SVREID",
0xFD: "SRESTRICT",
0xFE: "ACTIONS",
0x102: BINARY(),
}
# from mapitags.h via https://github.com/mvz/email-outlook-message-perl/blob/master/mapitags.h
property_tags = {
0x01: ("ACKNOWLEDGEMENT_MODE", "I4"),
0x02: ("ALTERNATE_RECIPIENT_ALLOWED", "BOOLEAN"),
0x03: ("AUTHORIZING_USERS", "BINARY"),
# Comment on an automatically forwarded message
0x04: ("AUTO_FORWARD_COMMENT", "STRING"),
# Whether a message has been automatically forwarded
0x05: ("AUTO_FORWARDED", "BOOLEAN"),
0x06: ("CONTENT_CONFIDENTIALITY_ALGORITHM_ID", "BINARY"),
0x07: ("CONTENT_CORRELATOR", "BINARY"),
0x08: ("CONTENT_IDENTIFIER", "STRING"),
# MIME content length
0x09: ("CONTENT_LENGTH", "I4"),
0x0A: ("CONTENT_RETURN_REQUESTED", "BOOLEAN"),
0x0B: ("CONVERSATION_KEY", "BINARY"),
0x0C: ("CONVERSION_EITS", "BINARY"),
0x0D: ("CONVERSION_WITH_LOSS_PROHIBITED", "BOOLEAN"),
0x0E: ("CONVERTED_EITS", "BINARY"),
# Time to deliver for delayed delivery messages
0x0F: ("DEFERRED_DELIVERY_TIME", "SYSTIME"),
0x10: ("DELIVER_TIME", "SYSTIME"),
# Reason a message was discarded
0x11: ("DISCARD_REASON", "I4"),
0x12: ("DISCLOSURE_OF_RECIPIENTS", "BOOLEAN"),
0x13: ("DL_EXPANSION_HISTORY", "BINARY"),
0x14: ("DL_EXPANSION_PROHIBITED", "BOOLEAN"),
0x15: ("EXPIRY_TIME", "SYSTIME"),
0x16: ("IMPLICIT_CONVERSION_PROHIBITED", "BOOLEAN"),
# Message importance
0x17: ("IMPORTANCE", "I4"),
0x18: ("IPM_ID", "BINARY"),
0x19: ("LATEST_DELIVERY_TIME", "SYSTIME"),
0x1A: ("MESSAGE_CLASS", "STRING"),
0x1B: ("MESSAGE_DELIVERY_ID", "BINARY"),
0x1E: ("MESSAGE_SECURITY_LABEL", "BINARY"),
0x1F: ("OBSOLETED_IPMS", "BINARY"),
# Person a message was originally for
0x20: ("ORIGINALLY_INTENDED_RECIPIENT_NAME", "BINARY"),
0x21: ("ORIGINAL_EITS", "BINARY"),
0x22: ("ORIGINATOR_CERTIFICATE", "BINARY"),
0x23: ("ORIGINATOR_DELIVERY_REPORT_REQUESTED", "BOOLEAN"),
# Address of the message sender
0x24: ("ORIGINATOR_RETURN_ADDRESS", "BINARY"),
0x25: ("PARENT_KEY", "BINARY"),
0x26: ("PRIORITY", "I4"),
0x27: ("ORIGIN_CHECK", "BINARY"),
0x28: ("PROOF_OF_SUBMISSION_REQUESTED", "BOOLEAN"),
# Whether a read receipt is desired
0x29: ("READ_RECEIPT_REQUESTED", "BOOLEAN"),
# Time a message was received
0x2A: ("RECEIPT_TIME", "SYSTIME"),
0x2B: ("RECIPIENT_REASSIGNMENT_PROHIBITED", "BOOLEAN"),
0x2C: ("REDIRECTION_HISTORY", "BINARY"),
0x2D: ("RELATED_IPMS", "BINARY"),
# Sensitivity of the original message
0x2E: ("ORIGINAL_SENSITIVITY", "I4"),
0x2F: ("LANGUAGES", "STRING"),
0x30: ("REPLY_TIME", "SYSTIME"),
0x31: ("REPORT_TAG", "BINARY"),
0x32: ("REPORT_TIME", "SYSTIME"),
0x33: ("RETURNED_IPM", "BOOLEAN"),
0x34: ("SECURITY", "I4"),
0x35: ("INCOMPLETE_COPY", "BOOLEAN"),
0x36: ("SENSITIVITY", "I4"),
# The message subject
0x37: ("SUBJECT", "STRING"),
0x38: ("SUBJECT_IPM", "BINARY"),
0x39: ("CLIENT_SUBMIT_TIME", "SYSTIME"),
0x3A: ("REPORT_NAME", "STRING"),
0x3B: ("SENT_REPRESENTING_SEARCH_KEY", "BINARY"),
0x3C: ("X400_CONTENT_TYPE", "BINARY"),
0x3D: ("SUBJECT_PREFIX", "STRING"),
0x3E: ("NON_RECEIPT_REASON", "I4"),
0x3F: ("RECEIVED_BY_ENTRYID", "BINARY"),
# Received by: entry
0x40: ("RECEIVED_BY_NAME", "STRING"),
0x41: ("SENT_REPRESENTING_ENTRYID", "BINARY"),
0x42: ("SENT_REPRESENTING_NAME", "STRING"),
0x43: ("RCVD_REPRESENTING_ENTRYID", "BINARY"),
0x44: ("RCVD_REPRESENTING_NAME", "STRING"),
0x45: ("REPORT_ENTRYID", "BINARY"),
0x46: ("READ_RECEIPT_ENTRYID", "BINARY"),
0x47: ("MESSAGE_SUBMISSION_ID", "BINARY"),
0x48: ("PROVIDER_SUBMIT_TIME", "SYSTIME"),
# Subject of the original message
0x49: ("ORIGINAL_SUBJECT", "STRING"),
0x4A: ("DISC_VAL", "BOOLEAN"),
0x4B: ("ORIG_MESSAGE_CLASS", "STRING"),
0x4C: ("ORIGINAL_AUTHOR_ENTRYID", "BINARY"),
# Author of the original message
0x4D: ("ORIGINAL_AUTHOR_NAME", "STRING"),
# Time the original message was submitted
0x4E: ("ORIGINAL_SUBMIT_TIME", "SYSTIME"),
0x4F: ("REPLY_RECIPIENT_ENTRIES", "BINARY"),
0x50: ("REPLY_RECIPIENT_NAMES", "STRING"),
0x51: ("RECEIVED_BY_SEARCH_KEY", "BINARY"),
0x52: ("RCVD_REPRESENTING_SEARCH_KEY", "BINARY"),
0x53: ("READ_RECEIPT_SEARCH_KEY", "BINARY"),
0x54: ("REPORT_SEARCH_KEY", "BINARY"),
0x55: ("ORIGINAL_DELIVERY_TIME", "SYSTIME"),
0x56: ("ORIGINAL_AUTHOR_SEARCH_KEY", "BINARY"),
0x57: ("MESSAGE_TO_ME", "BOOLEAN"),
0x58: ("MESSAGE_CC_ME", "BOOLEAN"),
0x59: ("MESSAGE_RECIP_ME", "BOOLEAN"),
# Sender of the original message
0x5A: ("ORIGINAL_SENDER_NAME", "STRING"),
0x5B: ("ORIGINAL_SENDER_ENTRYID", "BINARY"),
0x5C: ("ORIGINAL_SENDER_SEARCH_KEY", "BINARY"),
0x5D: ("ORIGINAL_SENT_REPRESENTING_NAME", "STRING"),
0x5E: ("ORIGINAL_SENT_REPRESENTING_ENTRYID", "BINARY"),
0x5F: ("ORIGINAL_SENT_REPRESENTING_SEARCH_KEY", "BINARY"),
0x60: ("START_DATE", "SYSTIME"),
0x61: ("END_DATE", "SYSTIME"),
0x62: ("OWNER_APPT_ID", "I4"),
# Whether a response to the message is desired
0x63: ("RESPONSE_REQUESTED", "BOOLEAN"),
0x64: ("SENT_REPRESENTING_ADDRTYPE", "STRING"),
0x65: ("SENT_REPRESENTING_EMAIL_ADDRESS", "STRING"),
0x66: ("ORIGINAL_SENDER_ADDRTYPE", "STRING"),
# Email of the original message sender
0x67: ("ORIGINAL_SENDER_EMAIL_ADDRESS", "STRING"),
0x68: ("ORIGINAL_SENT_REPRESENTING_ADDRTYPE", "STRING"),
0x69: ("ORIGINAL_SENT_REPRESENTING_EMAIL_ADDRESS", "STRING"),
0x70: ("CONVERSATION_TOPIC", "STRING"),
0x71: ("CONVERSATION_INDEX", "BINARY"),
0x72: ("ORIGINAL_DISPLAY_BCC", "STRING"),
0x73: ("ORIGINAL_DISPLAY_CC", "STRING"),
0x74: ("ORIGINAL_DISPLAY_TO", "STRING"),
0x75: ("RECEIVED_BY_ADDRTYPE", "STRING"),
0x76: ("RECEIVED_BY_EMAIL_ADDRESS", "STRING"),
0x77: ("RCVD_REPRESENTING_ADDRTYPE", "STRING"),
0x78: ("RCVD_REPRESENTING_EMAIL_ADDRESS", "STRING"),
0x79: ("ORIGINAL_AUTHOR_ADDRTYPE", "STRING"),
0x7A: ("ORIGINAL_AUTHOR_EMAIL_ADDRESS", "STRING"),
0x7B: ("ORIGINALLY_INTENDED_RECIP_ADDRTYPE", "STRING"),
0x7C: ("ORIGINALLY_INTENDED_RECIP_EMAIL_ADDRESS", "STRING"),
0x7D: ("TRANSPORT_MESSAGE_HEADERS", "STRING"),
0x7E: ("DELEGATION", "BINARY"),
0x7F: ("TNEF_CORRELATION_KEY", "BINARY"),
0x1000: ("BODY", "STRING"),
0x1001: ("REPORT_TEXT", "STRING"),
0x1002: ("ORIGINATOR_AND_DL_EXPANSION_HISTORY", "BINARY"),
0x1003: ("REPORTING_DL_NAME", "BINARY"),
0x1004: ("REPORTING_MTA_CERTIFICATE", "BINARY"),
0x1006: ("RTF_SYNC_BODY_CRC", "I4"),
0x1007: ("RTF_SYNC_BODY_COUNT", "I4"),
0x1008: ("RTF_SYNC_BODY_TAG", "STRING"),
0x1009: ("RTF_COMPRESSED", "BINARY"),
0x1010: ("RTF_SYNC_PREFIX_COUNT", "I4"),
0x1011: ("RTF_SYNC_TRAILING_COUNT", "I4"),
0x1012: ("ORIGINALLY_INTENDED_RECIP_ENTRYID", "BINARY"),
0x0C00: ("CONTENT_INTEGRITY_CHECK", "BINARY"),
0x0C01: ("EXPLICIT_CONVERSION", "I4"),
0x0C02: ("IPM_RETURN_REQUESTED", "BOOLEAN"),
0x0C03: ("MESSAGE_TOKEN", "BINARY"),
0x0C04: ("NDR_REASON_CODE", "I4"),
0x0C05: ("NDR_DIAG_CODE", "I4"),
0x0C06: ("NON_RECEIPT_NOTIFICATION_REQUESTED", "BOOLEAN"),
0x0C07: ("DELIVERY_POINT", "I4"),
0x0C08: ("ORIGINATOR_NON_DELIVERY_REPORT_REQUESTED", "BOOLEAN"),
0x0C09: ("ORIGINATOR_REQUESTED_ALTERNATE_RECIPIENT", "BINARY"),
0x0C0A: ("PHYSICAL_DELIVERY_BUREAU_FAX_DELIVERY", "BOOLEAN"),
0x0C0B: ("PHYSICAL_DELIVERY_MODE", "I4"),
0x0C0C: ("PHYSICAL_DELIVERY_REPORT_REQUEST", "I4"),
0x0C0D: ("PHYSICAL_FORWARDING_ADDRESS", "BINARY"),
0x0C0E: ("PHYSICAL_FORWARDING_ADDRESS_REQUESTED", "BOOLEAN"),
0x0C0F: ("PHYSICAL_FORWARDING_PROHIBITED", "BOOLEAN"),
0x0C10: ("PHYSICAL_RENDITION_ATTRIBUTES", "BINARY"),
0x0C11: ("PROOF_OF_DELIVERY", "BINARY"),
0x0C12: ("PROOF_OF_DELIVERY_REQUESTED", "BOOLEAN"),
0x0C13: ("RECIPIENT_CERTIFICATE", "BINARY"),
0x0C14: ("RECIPIENT_NUMBER_FOR_ADVICE", "STRING"),
0x0C15: ("RECIPIENT_TYPE", "I4"),
0x0C16: ("REGISTERED_MAIL_TYPE", "I4"),
0x0C17: ("REPLY_REQUESTED", "BOOLEAN"),
0x0C18: ("REQUESTED_DELIVERY_METHOD", "I4"),
0x0C19: ("SENDER_ENTRYID", "BINARY"),
0x0C1A: ("SENDER_NAME", "STRING"),
0x0C1B: ("SUPPLEMENTARY_INFO", "STRING"),
0x0C1C: ("TYPE_OF_MTS_USER", "I4"),
0x0C1D: ("SENDER_SEARCH_KEY", "BINARY"),
0x0C1E: ("SENDER_ADDRTYPE", "STRING"),
0x0C1F: ("SENDER_EMAIL_ADDRESS", "STRING"),
0x0E00: ("CURRENT_VERSION", "I8"),
0x0E01: ("DELETE_AFTER_SUBMIT", "BOOLEAN"),
0x0E02: ("DISPLAY_BCC", "STRING"),
0x0E03: ("DISPLAY_CC", "STRING"),
0x0E04: ("DISPLAY_TO", "STRING"),
0x0E05: ("PARENT_DISPLAY", "STRING"),
0x0E06: ("MESSAGE_DELIVERY_TIME", "SYSTIME"),
0x0E07: ("MESSAGE_FLAGS", "I4"),
0x0E08: ("MESSAGE_SIZE", "I4"),
0x0E09: ("PARENT_ENTRYID", "BINARY"),
0x0E0A: ("SENTMAIL_ENTRYID", "BINARY"),
0x0E0C: ("CORRELATE", "BOOLEAN"),
0x0E0D: ("CORRELATE_MTSID", "BINARY"),
0x0E0E: ("DISCRETE_VALUES", "BOOLEAN"),
0x0E0F: ("RESPONSIBILITY", "BOOLEAN"),
0x0E10: ("SPOOLER_STATUS", "I4"),
0x0E11: ("TRANSPORT_STATUS", "I4"),
0x0E12: ("MESSAGE_RECIPIENTS", "OBJECT"),
0x0E13: ("MESSAGE_ATTACHMENTS", "OBJECT"),
0x0E14: ("SUBMIT_FLAGS", "I4"),
0x0E15: ("RECIPIENT_STATUS", "I4"),
0x0E16: ("TRANSPORT_KEY", "I4"),
0x0E17: ("MSG_STATUS", "I4"),
0x0E18: ("MESSAGE_DOWNLOAD_TIME", "I4"),
0x0E19: ("CREATION_VERSION", "I8"),
0x0E1A: ("MODIFY_VERSION", "I8"),
0x0E1B: ("HASATTACH", "BOOLEAN"),
0x0E1D: ("NORMALIZED_SUBJECT", "STRING"),
0x0E1F: ("RTF_IN_SYNC", "BOOLEAN"),
0x0E20: ("ATTACH_SIZE", "I4"),
0x0E21: ("ATTACH_NUM", "I4"),
0x0E22: ("PREPROCESS", "BOOLEAN"),
0x0E25: ("ORIGINATING_MTA_CERTIFICATE", "BINARY"),
0x0E26: ("PROOF_OF_SUBMISSION", "BINARY"),
# A unique identifier for editing the properties of a MAPI object
0x0FFF: ("ENTRYID", "BINARY"),
# The type of an object
0x0FFE: ("OBJECT_TYPE", "I4"),
0x0FFD: ("ICON", "BINARY"),
0x0FFC: ("MINI_ICON", "BINARY"),
0x0FFB: ("STORE_ENTRYID", "BINARY"),
0x0FFA: ("STORE_RECORD_KEY", "BINARY"),
# Binary identifer for an individual object
0x0FF9: ("RECORD_KEY", "BINARY"),
0x0FF8: ("MAPPING_SIGNATURE", "BINARY"),
0x0FF7: ("ACCESS_LEVEL", "I4"),
# The primary key of a column in a table
0x0FF6: ("INSTANCE_KEY", "BINARY"),
0x0FF5: ("ROW_TYPE", "I4"),
0x0FF4: ("ACCESS", "I4"),
0x3000: ("ROWID", "I4"),
# The name to display for a given MAPI object
0x3001: ("DISPLAY_NAME", "STRING"),
0x3002: ("ADDRTYPE", "STRING"),
# An email address
0x3003: ("EMAIL_ADDRESS", "STRING"),
# A comment field
0x3004: ("COMMENT", "STRING"),
0x3005: ("DEPTH", "I4"),
# Provider-defined display name for a service provider
0x3006: ("PROVIDER_DISPLAY", "STRING"),
# The time an object was created
0x3007: ("CREATION_TIME", "SYSTIME"),
# The time an object was last modified
0x3008: ("LAST_MODIFICATION_TIME", "SYSTIME"),
# Flags describing a service provider, message service, or status object
0x3009: ("RESOURCE_FLAGS", "I4"),
# The name of a provider dll, minus any "32" suffix and ".dll"
0x300A: ("PROVIDER_DLL_NAME", "STRING"),
0x300B: ("SEARCH_KEY", "BINARY"),
0x300C: ("PROVIDER_UID", "BINARY"),
0x300D: ("PROVIDER_ORDINAL", "I4"),
0x3301: ("FORM_VERSION", "STRING"),
0x3302: ("FORM_CLSID", "CLSID"),
0x3303: ("FORM_CONTACT_NAME", "STRING"),
0x3304: ("FORM_CATEGORY", "STRING"),
0x3305: ("FORM_CATEGORY_SUB", "STRING"),
0x3306: ("FORM_HOST_MAP", "MV_LONG"),
0x3307: ("FORM_HIDDEN", "BOOLEAN"),
0x3308: ("FORM_DESIGNER_NAME", "STRING"),
0x3309: ("FORM_DESIGNER_GUID", "CLSID"),
0x330A: ("FORM_MESSAGE_BEHAVIOR", "I4"),
# Is this row the default message store?
0x3400: ("DEFAULT_STORE", "BOOLEAN"),
0x340D: ("STORE_SUPPORT_MASK", "I4"),
0x340E: ("STORE_STATE", "I4"),
0x3410: ("IPM_SUBTREE_SEARCH_KEY", "BINARY"),
0x3411: ("IPM_OUTBOX_SEARCH_KEY", "BINARY"),
0x3412: ("IPM_WASTEBASKET_SEARCH_KEY", "BINARY"),
0x3413: ("IPM_SENTMAIL_SEARCH_KEY", "BINARY"),
# Provder-defined message store type
0x3414: ("MDB_PROVIDER", "BINARY"),
0x3415: ("RECEIVE_FOLDER_SETTINGS", "OBJECT"),
0x35DF: ("VALID_FOLDER_MASK", "I4"),
0x35E0: ("IPM_SUBTREE_ENTRYID", "BINARY"),
0x35E2: ("IPM_OUTBOX_ENTRYID", "BINARY"),
0x35E3: ("IPM_WASTEBASKET_ENTRYID", "BINARY"),
0x35E4: ("IPM_SENTMAIL_ENTRYID", "BINARY"),
0x35E5: ("VIEWS_ENTRYID", "BINARY"),
0x35E6: ("COMMON_VIEWS_ENTRYID", "BINARY"),
0x35E7: ("FINDER_ENTRYID", "BINARY"),
0x3600: ("CONTAINER_FLAGS", "I4"),
0x3601: ("FOLDER_TYPE", "I4"),
0x3602: ("CONTENT_COUNT", "I4"),
0x3603: ("CONTENT_UNREAD", "I4"),
0x3604: ("CREATE_TEMPLATES", "OBJECT"),
0x3605: ("DETAILS_TABLE", "OBJECT"),
0x3607: ("SEARCH", "OBJECT"),
0x3609: ("SELECTABLE", "BOOLEAN"),
0x360A: ("SUBFOLDERS", "BOOLEAN"),
0x360B: ("STATUS", "I4"),
0x360C: ("ANR", "STRING"),
0x360D: ("CONTENTS_SORT_ORDER", "MV_LONG"),
0x360E: ("CONTAINER_HIERARCHY", "OBJECT"),
0x360F: ("CONTAINER_CONTENTS", "OBJECT"),
0x3610: ("FOLDER_ASSOCIATED_CONTENTS", "OBJECT"),
0x3611: ("DEF_CREATE_DL", "BINARY"),
0x3612: ("DEF_CREATE_MAILUSER", "BINARY"),
0x3613: ("CONTAINER_CLASS", "STRING"),
0x3614: ("CONTAINER_MODIFY_VERSION", "I8"),
0x3615: ("AB_PROVIDER_ID", "BINARY"),
0x3616: ("DEFAULT_VIEW_ENTRYID", "BINARY"),
0x3617: ("ASSOC_CONTENT_COUNT", "I4"),
0x3700: ("ATTACHMENT_X400_PARAMETERS", "BINARY"),
# 0x3701: ("ATTACH_DATA_OBJ", "OBJECT"),
0x3701: ("ATTACH_DATA_BIN", "BINARY"),
0x3702: ("ATTACH_ENCODING", "BINARY"),
0x3703: ("ATTACH_EXTENSION", "STRING"),
0x3704: ("ATTACH_FILENAME", "STRING"),
0x3705: ("ATTACH_METHOD", "I4"),
0x3707: ("ATTACH_LONG_FILENAME", "STRING"),
0x3708: ("ATTACH_PATHNAME", "STRING"),
0x370A: ("ATTACH_TAG", "BINARY"),
0x370B: ("RENDERING_POSITION", "I4"),
0x370C: ("ATTACH_TRANSPORT_NAME", "STRING"),
0x370D: ("ATTACH_LONG_PATHNAME", "STRING"),
0x370E: ("ATTACH_MIME_TAG", "STRING"),
0x370F: ("ATTACH_ADDITIONAL_INFO", "BINARY"),
0x3900: ("DISPLAY_TYPE", "I4"),
0x3902: ("TEMPLATEID", "BINARY"),
0x3904: ("PRIMARY_CAPABILITY", "BINARY"),
0x39FF: ("7BIT_DISPLAY_NAME", "STRING"),
0x3A00: ("ACCOUNT", "STRING"),
0x3A01: ("ALTERNATE_RECIPIENT", "BINARY"),
0x3A02: ("CALLBACK_TELEPHONE_NUMBER", "STRING"),
0x3A03: ("CONVERSION_PROHIBITED", "BOOLEAN"),
0x3A04: ("DISCLOSE_RECIPIENTS", "BOOLEAN"),
0x3A05: ("GENERATION", "STRING"),
0x3A06: ("GIVEN_NAME", "STRING"),
0x3A07: ("GOVERNMENT_ID_NUMBER", "STRING"),
0x3A08: ("BUSINESS_TELEPHONE_NUMBER", "STRING"),
0x3A09: ("HOME_TELEPHONE_NUMBER", "STRING"),
0x3A0A: ("INITIALS", "STRING"),
0x3A0B: ("KEYWORD", "STRING"),
0x3A0C: ("LANGUAGE", "STRING"),
0x3A0D: ("LOCATION", "STRING"),
0x3A0E: ("MAIL_PERMISSION", "BOOLEAN"),
0x3A0F: ("MHS_COMMON_NAME", "STRING"),
0x3A10: ("ORGANIZATIONAL_ID_NUMBER", "STRING"),
0x3A11: ("SURNAME", "STRING"),
0x3A12: ("ORIGINAL_ENTRYID", "BINARY"),
0x3A13: ("ORIGINAL_DISPLAY_NAME", "STRING"),
0x3A14: ("ORIGINAL_SEARCH_KEY", "BINARY"),
0x3A15: ("POSTAL_ADDRESS", "STRING"),
0x3A16: ("COMPANY_NAME", "STRING"),
0x3A17: ("TITLE", "STRING"),
0x3A18: ("DEPARTMENT_NAME", "STRING"),
0x3A19: ("OFFICE_LOCATION", "STRING"),
0x3A1A: ("PRIMARY_TELEPHONE_NUMBER", "STRING"),
0x3A1B: ("BUSINESS2_TELEPHONE_NUMBER", "STRING"),
0x3A1C: ("MOBILE_TELEPHONE_NUMBER", "STRING"),
0x3A1D: ("RADIO_TELEPHONE_NUMBER", "STRING"),
0x3A1E: ("CAR_TELEPHONE_NUMBER", "STRING"),
0x3A1F: ("OTHER_TELEPHONE_NUMBER", "STRING"),
0x3A20: ("TRANSMITABLE_DISPLAY_NAME", "STRING"),
0x3A21: ("PAGER_TELEPHONE_NUMBER", "STRING"),
0x3A22: ("USER_CERTIFICATE", "BINARY"),
0x3A23: ("PRIMARY_FAX_NUMBER", "STRING"),
0x3A24: ("BUSINESS_FAX_NUMBER", "STRING"),
0x3A25: ("HOME_FAX_NUMBER", "STRING"),
0x3A26: ("COUNTRY", "STRING"),
0x3A27: ("LOCALITY", "STRING"),
0x3A28: ("STATE_OR_PROVINCE", "STRING"),
0x3A29: ("STREET_ADDRESS", "STRING"),
0x3A2A: ("POSTAL_CODE", "STRING"),
0x3A2B: ("POST_OFFICE_BOX", "STRING"),
0x3A2C: ("TELEX_NUMBER", "STRING"),
0x3A2D: ("ISDN_NUMBER", "STRING"),
0x3A2E: ("ASSISTANT_TELEPHONE_NUMBER", "STRING"),
0x3A2F: ("HOME2_TELEPHONE_NUMBER", "STRING"),
0x3A30: ("ASSISTANT", "STRING"),
0x3A40: ("SEND_RICH_INFO", "BOOLEAN"),
0x3A41: ("WEDDING_ANNIVERSARY", "SYSTIME"),
0x3A42: ("BIRTHDAY", "SYSTIME"),
0x3A43: ("HOBBIES", "STRING"),
0x3A44: ("MIDDLE_NAME", "STRING"),
0x3A45: ("DISPLAY_NAME_PREFIX", "STRING"),
0x3A46: ("PROFESSION", "STRING"),
0x3A47: ("PREFERRED_BY_NAME", "STRING"),
0x3A48: ("SPOUSE_NAME", "STRING"),
0x3A49: ("COMPUTER_NETWORK_NAME", "STRING"),
0x3A4A: ("CUSTOMER_ID", "STRING"),
0x3A4B: ("TTYTDD_PHONE_NUMBER", "STRING"),
0x3A4C: ("FTP_SITE", "STRING"),
0x3A4D: ("GENDER", "I2"),
0x3A4E: ("MANAGER_NAME", "STRING"),
0x3A4F: ("NICKNAME", "STRING"),
0x3A50: ("PERSONAL_HOME_PAGE", "STRING"),
0x3A51: ("BUSINESS_HOME_PAGE", "STRING"),
0x3A52: ("CONTACT_VERSION", "CLSID"),
0x3A53: ("CONTACT_ENTRYIDS", "MV_BINARY"),
0x3A54: ("CONTACT_ADDRTYPES", "MV_STRING"),
0x3A55: ("CONTACT_DEFAULT_ADDRESS_INDEX", "I4"),
0x3A56: ("CONTACT_EMAIL_ADDRESSES", "MV_STRING"),
0x3A57: ("COMPANY_MAIN_PHONE_NUMBER", "STRING"),
0x3A58: ("CHILDRENS_NAMES", "MV_STRING"),
0x3A59: ("HOME_ADDRESS_CITY", "STRING"),
0x3A5A: ("HOME_ADDRESS_COUNTRY", "STRING"),
0x3A5B: ("HOME_ADDRESS_POSTAL_CODE", "STRING"),
0x3A5C: ("HOME_ADDRESS_STATE_OR_PROVINCE", "STRING"),
0x3A5D: ("HOME_ADDRESS_STREET", "STRING"),
0x3A5E: ("HOME_ADDRESS_POST_OFFICE_BOX", "STRING"),
0x3A5F: ("OTHER_ADDRESS_CITY", "STRING"),
0x3A60: ("OTHER_ADDRESS_COUNTRY", "STRING"),
0x3A61: ("OTHER_ADDRESS_POSTAL_CODE", "STRING"),
0x3A62: ("OTHER_ADDRESS_STATE_OR_PROVINCE", "STRING"),
0x3A63: ("OTHER_ADDRESS_STREET", "STRING"),
0x3A64: ("OTHER_ADDRESS_POST_OFFICE_BOX", "STRING"),
0x3D00: ("STORE_PROVIDERS", "BINARY"),
0x3D01: ("AB_PROVIDERS", "BINARY"),
0x3D02: ("TRANSPORT_PROVIDERS", "BINARY"),
0x3D04: ("DEFAULT_PROFILE", "BOOLEAN"),
0x3D05: ("AB_SEARCH_PATH", "MV_BINARY"),
0x3D06: ("AB_DEFAULT_DIR", "BINARY"),
0x3D07: ("AB_DEFAULT_PAB", "BINARY"),
0x3D09: ("SERVICE_NAME", "STRING"),
0x3D0A: ("SERVICE_DLL_NAME", "STRING"),
0x3D0B: ("SERVICE_ENTRY_NAME", "STRING"),
0x3D0C: ("SERVICE_UID", "BINARY"),
0x3D0D: ("SERVICE_EXTRA_UIDS", "BINARY"),
0x3D0E: ("SERVICES", "BINARY"),
0x3D0F: ("SERVICE_SUPPORT_FILES", "MV_STRING"),
0x3D10: ("SERVICE_DELETE_FILES", "MV_STRING"),
0x3D11: ("AB_SEARCH_PATH_UPDATE", "BINARY"),
0x3D12: ("PROFILE_NAME", "STRING"),
0x3E00: ("IDENTITY_DISPLAY", "STRING"),
0x3E01: ("IDENTITY_ENTRYID", "BINARY"),
0x3E02: ("RESOURCE_METHODS", "I4"),
# Service provider type
0x3E03: ("RESOURCE_TYPE", "I4"),
0x3E04: ("STATUS_CODE", "I4"),
0x3E05: ("IDENTITY_SEARCH_KEY", "BINARY"),
0x3E06: ("OWN_STORE_ENTRYID", "BINARY"),
0x3E07: ("RESOURCE_PATH", "STRING"),
0x3E08: ("STATUS_STRING", "STRING"),
0x3E09: ("X400_DEFERRED_DELIVERY_CANCEL", "BOOLEAN"),
0x3E0A: ("HEADER_FOLDER_ENTRYID", "BINARY"),
0x3E0B: ("REMOTE_PROGRESS", "I4"),
0x3E0C: ("REMOTE_PROGRESS_TEXT", "STRING"),
0x3E0D: ("REMOTE_VALIDATE_OK", "BOOLEAN"),
0x3F00: ("CONTROL_FLAGS", "I4"),
0x3F01: ("CONTROL_STRUCTURE", "BINARY"),
0x3F02: ("CONTROL_TYPE", "I4"),
0x3F03: ("DELTAX", "I4"),
0x3F04: ("DELTAY", "I4"),
0x3F05: ("XPOS", "I4"),
0x3F06: ("YPOS", "I4"),
0x3F07: ("CONTROL_ID", "BINARY"),
0x3F08: ("INITIAL_DETAILS_PANE", "I4"),
}
|
var spec = function () {
return jasmine.getEnv().currentSpec;
};
var hot = function() {
return spec().$container.data('handsontable');
};
var handsontable = function (options) {
var currentSpec = spec();
currentSpec.$container.handsontable(options);
currentSpec.$container[0].focus(); //otherwise TextEditor tests do not pass in IE8
return currentSpec.$container.data('handsontable');
};
beforeEach(function () {
var matchers = {
toBeInArray: function (arr) {
return ($.inArray(this.actual, arr) > -1);
},
toBeFunction: function () {
return typeof this.actual === 'function';
},
toBeAroundValue: function (val) {
this.message = function (val) {
return [
"Expected " + this.actual + " to be around " + val + " (between " + (val - 1) + " and " + (val + 1) + ")",
"Expected " + this.actual + " NOT to be around " + val + " (between " + (val - 1) + " and " + (val + 1) + ")"
];
};
return (this.actual >= val - 1 && this.actual <= val + 1);
}
};
this.addMatchers(matchers);
if (document.activeElement && document.activeElement != document.body) {
document.activeElement.blur();
} else if (!document.activeElement) { // IE
document.body.focus();
}
});
/**
* As for v. 0.11 the only scrolling method is native scroll, which creates copies of main htCore table inside of the container.
* Therefore, simple $(".htCore") will return more than one object. Most of the time, you're interested in the original
* htCore, not the copies made by native scroll.
*
* This method returns the original htCore object
*
* @returns {jqObject} reference to the original htCore
*/
var getHtCore = function () {
return spec().$container.find('.htCore').first();
};
var getTopClone = function () {
return spec().$container.find('.ht_clone_top');
};
var getTopLeftClone = function () {
return spec().$container.find('.ht_clone_top_left_corner');
};
// for compatybility
var getCornerClone = getTopLeftClone;
var getLeftClone = function () {
return spec().$container.find('.ht_clone_left');
};
var getBottomClone = function () {
return spec().$container.find('.ht_clone_bottom');
};
var getBottomLeftClone = function () {
return spec().$container.find('.ht_clone_bottom_left_corner');
};
//Rename me to countTD
var countCells = function () {
return getHtCore().find('tbody td').length;
};
var isEditorVisible = function () {
return !!(keyProxy().is(':visible') && keyProxy().parent().is(':visible') && !keyProxy().parent().is('.htHidden'));
};
var isFillHandleVisible = function () {
return !!spec().$container.find('.wtBorder.corner:visible').length;
};
var getCorrespondingOverlay = function (cell, container) {
var overlay = $(cell).parents(".handsontable");
if(overlay[0] == container[0]) {
return $(".ht_master");
} else {
return $(overlay[0]);
}
};
/**
* Shows context menu
*/
var contextMenu = function (cell) {
var hot = spec().$container.data('handsontable');
var selected = hot.getSelected();
if (!selected) {
hot.selectCell(0, 0);
selected = hot.getSelected();
}
if (!cell) {
cell = getCell(selected[0], selected[1]);
}
var cellOffset = $(cell).offset();
$(cell).simulate('contextmenu',{
clientX: cellOffset.left - Handsontable.dom.getWindowScrollLeft(),
clientY: cellOffset.top - Handsontable.dom.getWindowScrollTop(),
});
};
var closeContextMenu = function () {
$(document).simulate('mousedown');
// $(document).trigger('mousedown');
};
/**
* Shows dropdown menu
*/
var dropdownMenu = function (columnIndex) {
var hot = spec().$container.data('handsontable');
var th = hot.view.wt.wtTable.getColumnHeader(columnIndex || 0);
var button = th.querySelector('.changeType');
if (button) {
$(button).simulate('mousedown');
$(button).simulate('click');
}
};
var closeDropdownMenu = function () {
$(document).simulate('mousedown');
};
var dropdownMenuRootElement = function () {
var plugin = hot().getPlugin('dropdownMenu');
var root;
if (plugin && plugin.menu) {
root = plugin.menu.container;
}
return root;
};
/**
* Returns a function that triggers a mouse event
* @param {String} type Event type
* @return {Function}
*/
var handsontableMouseTriggerFactory = function (type, button) {
return function (element) {
if (!(element instanceof jQuery)) {
element = $(element);
}
var ev = $.Event(type);
ev.which = button || 1; // left click by default
element.simulate(type, ev);
}
};
var mouseDown = handsontableMouseTriggerFactory('mousedown');
var mouseMove = handsontableMouseTriggerFactory('mousemove');
var mouseOver = handsontableMouseTriggerFactory('mouseover');
var mouseUp = handsontableMouseTriggerFactory('mouseup');
var mouseDoubleClick = function (element) {
mouseDown(element);
mouseUp(element);
mouseDown(element);
mouseUp(element);
};
var mouseRightDown = handsontableMouseTriggerFactory('mousedown', 3);
var mouseRightUp = handsontableMouseTriggerFactory('mouseup', 3);
/**
* Returns a function that triggers a key event
* @param {String} type Event type
* @return {Function}
*/
var handsontableKeyTriggerFactory = function (type) {
return function (key, extend) {
var ev = {};// $.Event(type);
if (typeof key === 'string') {
if (key.indexOf('shift+') > -1) {
key = key.substring(6);
ev.shiftKey = true;
}
if (key.indexOf('ctrl+') > -1) {
key = key.substring(5);
ev.ctrlKey = true;
ev.metaKey = true;
}
switch (key) {
case 'tab':
ev.keyCode = 9;
break;
case 'enter':
ev.keyCode = 13;
break;
case 'esc':
ev.keyCode = 27;
break;
case 'f2':
ev.keyCode = 113;
break;
case 'arrow_left':
ev.keyCode = 37;
break;
case 'arrow_up':
ev.keyCode = 38;
break;
case 'arrow_right':
ev.keyCode = 39;
break;
case 'arrow_down':
ev.keyCode = 40;
break;
case 'ctrl':
ev.keyCode = 17;
break;
case 'shift':
ev.keyCode = 16;
break;
case 'backspace':
ev.keyCode = 8;
break;
case 'delete':
ev.keyCode = 46;
break;
case 'space':
ev.keyCode = 32;
break;
case 'x':
ev.keyCode = 88;
break;
case 'c':
ev.keyCode = 67;
break;
case 'v':
ev.keyCode = 86;
break;
default:
throw new Error('Unrecognised key name: ' + key);
}
}
else if (typeof key === 'number') {
ev.keyCode = key;
}
// ev.originalEvent = {}; //needed as long Handsontable searches for event.originalEvent
$.extend(ev, extend);
$(document.activeElement).simulate(type, ev);
}
};
var keyDown = handsontableKeyTriggerFactory('keydown');
var keyUp = handsontableKeyTriggerFactory('keyup');
/**
* Presses keyDown, then keyUp
*/
var keyDownUp = function (key, extend) {
if (typeof key === 'string' && key.indexOf('shift+') > -1) {
keyDown('shift');
}
keyDown(key, extend);
keyUp(key, extend);
if (typeof key === 'string' && key.indexOf('shift+') > -1) {
keyUp('shift');
}
};
/**
* Returns current value of the keyboard proxy textarea
* @return {String}
*/
var keyProxy = function () {
return spec().$container.find('textarea.handsontableInput');
};
var serveImmediatePropagation = function (event) {
if (event != null && event.isImmediatePropagationEnabled == null) {
event.stopImmediatePropagation = function () {
this.isImmediatePropagationEnabled = false;
this.cancelBubble = true;
};
event.isImmediatePropagationEnabled = true;
event.isImmediatePropagationStopped = function () {
return !this.isImmediatePropagationEnabled;
};
}
return event;
};
var triggerTouchEvent = function (type, target, pageX, pageY) {
var e = document.createEvent('TouchEvent');
var targetCoords = target.getBoundingClientRect();
var touches
, targetTouches
, changedTouches;
if(!pageX && !pageY) {
pageX = parseInt(targetCoords.left + 3,10);
pageY = parseInt(targetCoords.top + 3,10);
}
var touch = document.createTouch(window, target, 0, pageX, pageY, pageX, pageY);
if (type == 'touchend') {
touches = document.createTouchList();
targetTouches = document.createTouchList();
changedTouches = document.createTouchList(touch);
} else {
touches = document.createTouchList(touch);
targetTouches = document.createTouchList(touch);
changedTouches = document.createTouchList(touch);
}
e.initTouchEvent(type, true, true, window, null, 0, 0, 0, 0, false, false, false, false, touches, targetTouches, changedTouches, 1, 0);
target.dispatchEvent(e);
};
var autocompleteEditor = function () {
return spec().$container.find('.handsontableInput');
};
/**
* Sets text cursor inside keyboard proxy
*/
var setCaretPosition = function (pos) {
var el = keyProxy()[0];
if (el.setSelectionRange) {
el.focus();
el.setSelectionRange(pos, pos);
}
else if (el.createTextRange) {
var range = el.createTextRange();
range.collapse(true);
range.moveEnd('character', pos);
range.moveStart('character', pos);
range.select();
}
};
/**
* Returns autocomplete instance
*/
var autocomplete = function () {
return spec().$container.find('.autocompleteEditor');
};
/**
* Triggers paste string on current selection
*/
var triggerPaste = function (str) {
spec().$container.data('handsontable').copyPaste.triggerPaste(null, str);
};
/**
* Calls a method in current Handsontable instance, returns its output
* @param method
* @return {Function}
*/
var handsontableMethodFactory = function (method) {
return function () {
var instance;
try{
instance = spec().$container.handsontable('getInstance');
} catch (err) {
console.error(err);
}
if (!instance) {
if (method === 'destroy') {
return; //we can forgive this... maybe it was destroyed in the test
}
throw new Error('Something wrong with the test spec: Handsontable instance not found');
} else {
if (method === 'destroy') {
spec().$container.removeData();
}
}
return instance[method].apply(instance, arguments);
}
};
var getInstance = handsontableMethodFactory('getInstance');
var countRows = handsontableMethodFactory('countRows');
var countCols = handsontableMethodFactory('countCols');
var selectCell = handsontableMethodFactory('selectCell');
var deselectCell = handsontableMethodFactory('deselectCell');
var getSelected = handsontableMethodFactory('getSelected');
var setDataAtCell = handsontableMethodFactory('setDataAtCell');
var setDataAtRowProp = handsontableMethodFactory('setDataAtRowProp');
var getCell = handsontableMethodFactory('getCell');
var getCellsMeta = handsontableMethodFactory('getCellsMeta');
var getCellMeta = handsontableMethodFactory('getCellMeta');
var setCellMeta = handsontableMethodFactory('setCellMeta');
var removeCellMeta = handsontableMethodFactory('removeCellMeta');
var getCellRenderer = handsontableMethodFactory('getCellRenderer');
var getCellEditor = handsontableMethodFactory('getCellEditor');
var getCellValidator = handsontableMethodFactory('getCellValidator');
var getData = handsontableMethodFactory('getData');
var getCopyableData = handsontableMethodFactory('getCopyableData');
var getCopyableText = handsontableMethodFactory('getCopyableText');
var getDataAtCell = handsontableMethodFactory('getDataAtCell');
var getDataAtRowProp = handsontableMethodFactory('getDataAtRowProp');
var getDataAtRow = handsontableMethodFactory('getDataAtRow');
var getDataAtCol = handsontableMethodFactory('getDataAtCol');
var getDataType = handsontableMethodFactory('getDataType');
var getSourceData = handsontableMethodFactory('getSourceData');
var getSourceDataAtCol = handsontableMethodFactory('getSourceDataAtCol');
var getSourceDataAtRow = handsontableMethodFactory('getSourceDataAtRow');
var getValue = handsontableMethodFactory('getValue');
var getRowHeader = handsontableMethodFactory('getRowHeader');
var getColHeader = handsontableMethodFactory('getColHeader');
var alter = handsontableMethodFactory('alter');
var spliceCol = handsontableMethodFactory('spliceCol');
var spliceRow = handsontableMethodFactory('spliceRow');
var populateFromArray = handsontableMethodFactory('populateFromArray');
var loadData = handsontableMethodFactory('loadData');
var destroyEditor = handsontableMethodFactory('destroyEditor');
var render = handsontableMethodFactory('render');
var updateSettings = handsontableMethodFactory('updateSettings');
var destroy = handsontableMethodFactory('destroy');
var addHook = handsontableMethodFactory('addHook');
var getActiveEditor = handsontableMethodFactory('getActiveEditor');
/**
* Returns column width for HOT container
* @param $elem
* @param col
* @returns {Number}
*/
function colWidth($elem, col) {
var TR = $elem[0].querySelector('TBODY TR');
var cell;
if (TR) {
cell = TR.querySelectorAll('TD')[col];
} else {
cell = $elem[0].querySelector('THEAD TR').querySelectorAll('TH')[col];
}
if (!cell) {
throw new Error("Cannot find table column of index '" + col + "'");
}
return cell.offsetWidth;
}
/**
* Returns row height for HOT container
* @param $elem
* @param row
* @returns {Number}
*/
function rowHeight($elem, row) {
var TD = $elem[0].querySelector('tbody tr:nth-child(' + (row + 1) +') td');
if (!TD) {
throw new Error("Cannot find table row of index '" + row + "'");
}
return Handsontable.Dom.outerHeight(TD);
}
/**
* Returns value that has been rendered in table cell
* @param {Number} trIndex
* @param {Number} tdIndex
* @returns {String}
*/
function getRenderedValue(trIndex, tdIndex) {
return spec().$container.find('tbody tr').eq(trIndex).find('td').eq(tdIndex).html();
}
/**
* Returns nodes that have been rendered in table cell
* @param {Number} trIndex
* @param {Number} tdIndex
* @returns {String}
*/
function getRenderedContent(trIndex, tdIndex) {
return spec().$container.find('tbody tr').eq(trIndex).find('td').eq(tdIndex).children()
}
/**
* Create numerical data values for the table
* @param rowCount
* @param colCount
* @returns {Array}
*/
function createNumericData(rowCount, colCount) {
rowCount = typeof rowCount === 'number' ? rowCount : 100;
colCount = typeof colCount === 'number' ? colCount : 4;
var rows = []
, i
, j;
for (i = 0; i < rowCount; i++) {
var row = [];
for (j = 0; j < colCount; j++) {
row.push((i + 1));
}
rows.push(row);
}
return rows;
}
/**
* Model factory, which creates object with private properties, accessible by setters and getters.
* Created for the purpose of testing HOT with Backbone-like Models
* @param opts
* @returns {{}}
* @constructor
*/
function Model(opts) {
var obj = {};
var _data = $.extend({
id: undefined,
name: undefined,
address: undefined
}, opts);
obj.attr = function (name, value) {
if (typeof value == 'undefined') {
return this.get(name);
} else {
return this.set(name, value);
}
};
obj.get = function (name) {
return _data[name];
};
obj.set = function (name, value) {
_data[name] = value;
return this;
}
return obj;
}
/**
* Factory which produces an accessor for objects of type "Model" (see above).
* This function should be used to create accessor for a given property name and pass it as `data` option in column
* configuration.
*
* @param name - name of the property for which an accessor function will be created
* @returns {Function}
*/
function createAccessorForProperty(name) {
return function (obj, value) {
return obj.attr(name, value);
};
}
function resizeColumn(displayedColumnIndex, width) {
var $container = spec().$container;
var $th = $container.find('thead tr:eq(0) th:eq(' + displayedColumnIndex +')');
$th.simulate('mouseover');
var $resizer = $container.find('.manualColumnResizer');
var resizerPosition = $resizer.position();
$resizer.simulate('mousedown',{
clientX: resizerPosition.left
});
var delta = width - $th.width() - 2;
var newPosition = resizerPosition.left + delta;
$resizer.simulate('mousemove',
{clientX: newPosition}
);
$resizer.simulate('mouseup');
}
function resizeRow(displayedRowIndex, height) {
var $container = spec().$container;
var $th = $container.find('tbody tr:eq(' + displayedRowIndex + ') th:eq(0)');
$th.simulate('mouseover');
var $resizer = $container.find('.manualRowResizer');
var resizerPosition = $resizer.position();
$resizer.simulate('mousedown',{
clientY: resizerPosition.top
});
var delta = height - $th.height() - 2;
if (delta < 0) {
delta = 0;
}
$resizer.simulate('mousemove',{
clientY: resizerPosition.top + delta
});
$resizer.simulate('mouseup');
}
function moveSecondDisplayedRowBeforeFirstRow(container, secondDisplayedRowIndex) {
var $mainContainer = container.parents(".handsontable").not("[class*=clone]").not("[class*=master]").first(),
$rowHeaders = container.find('tbody tr th'),
$firstRowHeader = $rowHeaders.eq(secondDisplayedRowIndex - 1),
$secondRowHeader = $rowHeaders.eq(secondDisplayedRowIndex);
$secondRowHeader.simulate('mouseover');
var $manualRowMover = $mainContainer.find('.manualRowMover');
if ($manualRowMover.length) {
$manualRowMover.simulate('mousedown',{
clientY: $manualRowMover[0].getBoundingClientRect().top
});
$manualRowMover.simulate('mousemove',{
clientY:$manualRowMover[0].getBoundingClientRect().top - 20
});
$firstRowHeader.simulate('mouseover');
$secondRowHeader.simulate('mouseup');
}
}
function moveFirstDisplayedRowAfterSecondRow(container, firstDisplayedRowIndex) {
var $mainContainer = container.parents(".handsontable").not("[class*=clone]").not("[class*=master]").first(),
$rowHeaders = container.find('tbody tr th'),
$firstRowHeader = $rowHeaders.eq(firstDisplayedRowIndex),
$secondRowHeader = $rowHeaders.eq(firstDisplayedRowIndex + 1);
$secondRowHeader.simulate('mouseover');
var $manualRowMover = $mainContainer.find('.manualRowMover');
if($manualRowMover.length) {
$manualRowMover.simulate('mousedown',{
clientY: $manualRowMover[0].getBoundingClientRect().top
});
$manualRowMover.simulate('mousemove',{
clientY:$manualRowMover[0].getBoundingClientRect().top + 20
});
$firstRowHeader.simulate('mouseover');
$secondRowHeader.simulate('mouseup');
}
}
function swapDisplayedColumns(container, from, to) {
var $mainContainer = container.parents(".handsontable").not("[class*=clone]").not("[class*=master]").first();
var $colHeaders = container.find('thead tr:eq(0) th');
var $to = $colHeaders.eq(to);
var $from = $colHeaders.eq(from);
//Enter the second column header
$from.simulate('mouseover');
var $manualColumnMover = $mainContainer.find('.manualColumnMover');
//Grab the second column
$manualColumnMover.simulate('mousedown',{
pageX : $manualColumnMover[0].getBoundingClientRect().left
});
//Drag the second column over the first column
$manualColumnMover.simulate('mousemove',{
pageX : $manualColumnMover[0].getBoundingClientRect().left - 20
});
$to.simulate('mouseover');
//Drop the second column
$from.simulate('mouseup');
}
|
from pyrogram import filters
from pyrogram.types import Message
from pyrogram.enums import ChatMemberStatus, ChatMembersFilter
from megumin import megux
from megumin.utils import get_collection
admin_status = [ChatMemberStatus.ADMINISTRATOR or ChatMemberStatus.OWNER]
@megux.on_message(
(filters.command("report", prefixes=["/", "!"]) | filters.regex("^@admin"))
& filters.group
& filters.reply
)
async def report_admins(c: megux, m: Message):
chat_id = m.chat.id
messages_id = m.reply_to_message.id
DISABLED = get_collection(f"DISABLED {m.chat.id}")
query = "report"
off = await DISABLED.find_one({"_cmd": query})
if off:
return
if m.reply_to_message.from_user:
check_admin = await m.chat.get_member(m.reply_to_message.from_user.id)
user = m.from_user.mention()
chat = m.chat.title
if check_admin.status not in admin_status:
mention = ""
admins_ = ""
async for i in m.chat.get_members(filter=ChatMembersFilter.ADMINISTRATORS):
if not (i.user.is_deleted or i.privileges.is_anonymous or i.user.is_bot):
mention += f"<a href='tg://user?id={i.user.id}'>\u2063</a>"
admins_ = f"{i.user.id}"
await m.reply_to_message.reply_text(
"{admins_list}{reported_user} reportado para os administradores.".format(
admins_list=mention,
reported_user=m.reply_to_message.from_user.mention(),
),
)
await c.send_message(admins_, f"{user} está chamando os administradores no {chat}")
await c.forward_messages(admins_, chat_id, messages_id)
|
//
// JRSDKTicket+Utils.h
//
// Copyright 2020 Go Travel Un Limited
// This code is distributed under the terms and conditions of the MIT license.
//
#import <AviasalesSDK/JRSDKModelUtils.h>
@class JRSDKProposal;
@class JRSDKTicket;
@interface JRSDKModelUtils (JRSDKTicket)
/**
* Compares two tickets
*
* @param firstTicket First ticket
* @param secondTicket Second ticket
*
* @return Comparison result
*/
+ (NSComparisonResult)compareFirstTicket:(nonnull JRSDKTicket *)firstTicket withSecondOne:(nonnull JRSDKTicket *)secondTicket;
/**
* Finds the lowest price in ticket
*
* @param ticket Ticket to search price in
*
* @return The lowest price
*/
+ (nullable JRSDKProposal *)ticketMinimalPriceProposal:(nullable JRSDKTicket *)ticket;
/**
* Checks whether all segments in ticket are direct flights or not
*
* @param ticket Ticket to check
*
* @return `YES` if all segments in ticket are direct flights, `NO` otherwise
*/
+ (BOOL)allSegmentsAreDirectFlights:(nullable JRSDKTicket *)ticket;
/**
* Checks whether at least one flight in performed by airplane
*
* @param ticket Ticket to check
*
* @return `YES` if at least one flight is performed by airplane, `NO` otherwise
*/
+ (BOOL)atLeastOneFlightIsPerformedByAirplane:(nullable JRSDKTicket *)ticket;
/**
* Checks whether all flights in ticket are performed by train
*
* @param ticket Ticket to check
*
* @return `YES` if all flights in ticket are performed by train, `NO` otherwise
*/
+ (BOOL)allFlightsArePerformedByTrain:(nullable JRSDKTicket *)ticket;
/**
* Checks whether all flights in ticket are performed by bus
*
* @param ticket Ticket to check
*
* @return `YES` if all flights in ticket are performed by bus, `NO` otherwise
*/
+ (BOOL)allFlightsArePerformedByBus:(nullable JRSDKTicket *)ticket;
/**
* Checks whether all flights in ticket have RU country code for origin airport and destination airport
*
* @param ticket Ticket to check
*
* @return `YES` if all flights in ticket have RU country code for origin airport and destination airport, `NO` otherwise
*/
+ (BOOL)allFlightsAreRussian:(nullable JRSDKTicket *)ticket;
/**
* Returns ticket with minimal price from tickets set
*
* @param ticketSet A set of tickets
*
* @return A ticket with minimal price
*/
+ (nullable JRSDKTicket *)ticketWithMinPriceFrom:(nullable NSSet<JRSDKTicket *> *)ticketSet;
/**
* Returns ticket with minimal price from tickets set
*
* @param ticketsOrderedSet A ordered by price set of tickets
*
* @return A ticket with minimal price
*/
+ (nullable JRSDKTicket *)ticketWithMinPriceFromOrderedSet:(nullable NSOrderedSet<JRSDKTicket *> *)ticketsOrderedSet;
@end
|
const { BannerPlugin } = require("webpack");
const version = require("../package.json").version;
const banner = `Socket.IO v${version}
(c) 2014-${new Date().getFullYear()} Guillermo Rauch
Released under the MIT License.`;
module.exports = {
entry: "./build/index.js",
output: {
filename: "socket.io.js",
library: "io",
libraryTarget: "umd",
},
mode: "development",
devtool: "source-map",
node: false,
module: {
rules: [
{
test: /\.m?js$/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"],
plugins: ["@babel/plugin-transform-object-assign"],
},
},
},
],
},
plugins: [new BannerPlugin(banner)],
};
|
export default {
methods: {
confirmDestroy (subject) {
const config = {
title: 'Please Confirm',
size: 'sm',
buttonSize: 'sm',
okVariant: 'danger',
okTitle: 'YES',
cancelTitle: 'NO',
footerClass: 'p-2',
hideHeaderClose: false,
centered: true
}
const message = `Please confirm that you want to delete ${subject}.`
return this.$bvModal.msgBoxConfirm(message, config)
},
confirmAnything (message) {
const config = {
title: 'Tolong Konfirmasi',
size: 'lg',
buttonSize: 'sm',
okVariant: 'warning',
okTitle: 'YES',
cancelTitle: 'NO',
footerClass: 'p-2',
hideHeaderClose: false,
centered: true
}
return this.$bvModal.msgBoxConfirm(message, config)
},
toastWarning (message) {
if (!message) {
message = `You cannot take this action because there are some rules regarding the policy regarding it!`
}
this.$bvToast.toast(message, {
title: `Warning!`,
toaster: 'b-toaster-top-right',
solid: true,
variant: 'warning',
appendToast: true
})
},
toastPublish (message) {
if (!message) {
message = `You have successfully published.`
}
this.$bvToast.toast(message, {
title: `Success!`,
toaster: 'b-toaster-top-right',
solid: true,
variant: 'success',
appendToast: true,
autoHideDelay: 10
})
},
toastUpdate (message) {
if (!message) {
message = `Updating Data...`
}
this.$bvToast.toast(message, {
toaster: 'b-toaster-top-left',
solid: true,
variant: 'light',
noCloseButton: true,
noFade: true,
appendToast: true,
autoHideDelay: 10
})
}
}
}
|
DEPS = [
'depot_tools',
'gclient',
'gerrit',
'recipe_engine/context',
'recipe_engine/json',
'recipe_engine/path',
'recipe_engine/platform',
'recipe_engine/properties',
'recipe_engine/python',
'recipe_engine/raw_io',
'recipe_engine/runtime',
'recipe_engine/source_manifest',
'recipe_engine/step',
'rietveld',
'tryserver',
]
from recipe_engine.recipe_api import Property
PROPERTIES = {
# Gerrit patches will have all properties about them prefixed with patch_.
'patch_issue': Property(default=None), # TODO(tandrii): add kind=int.
'patch_set': Property(default=None), # TODO(tandrii): add kind=int.
'patch_gerrit_url': Property(default=None),
'patch_repository_url': Property(default=None),
'patch_ref': Property(default=None),
# TODO(tAndrii): remove legacy Gerrit fields.
# Legacy Gerrit fields.
'event.patchSet.ref': Property(default=None, param_name='gerrit_ref'),
# Rietveld-only fields.
'rietveld': Property(default=None), # Stores Url of Rietveld server.
'issue': Property(default=None),
'patchset': Property(default=None),
'repository': Property(default=None),
# Common fields for both systems.
'deps_revision_overrides': Property(default={}),
'fail_patch': Property(default=None, kind=str),
'parent_got_revision': Property(default=None),
'revision': Property(default=None),
}
|
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
#pragma once
#include <aws/cloudhsmv2/CloudHSMV2_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace CloudHSMV2
{
class AWS_CLOUDHSMV2_API CloudHSMV2Request : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~CloudHSMV2Request () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2017-04-28"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace CloudHSMV2
} // namespace Aws
|
#!/bin/python3
import math
import os
from functools import lru_cache
@lru_cache(maxsize=None)
def prime_factors(n):
count = 0
if n % 2 == 0:
count += 1
while n % 2 == 0:
n = n / 2
for i in range(3, int(math.sqrt(n)) + 1, 2):
while n % i == 0:
count += 1
n = n / i
if n > 2:
count += 1
return count
#
# Complete the towerBreakers function below.
#
def towerBreakers(arr):
#
# Write your code here.
#
d = 0
for x in arr:
d ^= prime_factors(x)
return 2 - (d != 0)
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
t = int(input())
for t_itr in range(t):
arr_count = int(input())
arr = list(map(int, input().rstrip().split()))
result = towerBreakers(arr)
fptr.write(str(result) + '\n')
fptr.close()
|
/*
* This source code is provided under the Apache 2.0 license and is provided
* AS IS with no warranty or guarantee of fit for purpose. See the project's
* LICENSE.md for details.
* Copyright Thomson Reuters 2015. All rights reserved.
*/
#ifndef WL_POST_ID_TABLE_H
#define WL_POST_ID_TABLE_H
#include "rtr/rsslReactorUtils.h"
#ifdef __cplusplus
extern "C" {
#endif
struct WlBase;
/* Maintains records of outstanding posts, in order to route it to the appropriate request
* stream. Also prevents the sending of posts with duplicate information. */
/* A post is duplicate if either:
* - There exists a completed post with the same Post ID on the same stream.
* - There exists an incomplete post message with the same Post ID and sequence number of
* the same stream. */
typedef struct
{
RsslQueueLink qlUser; /* Link for either the pool or the stream's list of
* open records. */
RsslQueueLink qlTimeout;
void *pUserSpec; /* General pointer (intended to point to a WlItemRequest) */
RsslHashLink hlTable;
RsslInt32 streamId; /* Provider-facing stream ID of the post. */
RsslUInt16 flags; /* RsslPostFlags, mainly whether it is complete and whether it
* has a seqNum. */
RsslUInt32 postId; /* Post ID. */
RsslUInt32 seqNum; /* Sequence number. */
RsslBool fromAckMsg; /* Indicates whether the record is being used to match
* an AckMsg, rather than checking PostMsg duplicate. */
RsslInt64 expireTime; /* Time at which this post is assumed to have been lost. */
RsslUInt8 domainType; /* Domain type of the post message. */
} WlPostRecord;
typedef struct
{
RsslQueue pool; /* Pool of WlPostRecord structures. */
RsslHashTable records; /* Table of active post records. */
RsslUInt32 postAckTimeout; /* Timeout for acknowledgement of posts. */
RsslQueue timeoutQueue; /* Queue of outstanding posts, by their expire time. */
} WlPostTable;
/* Initializes a Post ID table. */
RsslRet wlPostTableInit(WlPostTable *pTable, RsslUInt32 maxPoolSize,
RsslUInt32 postAckTimeout, RsslErrorInfo *pErrorInfo);
/* Cleans up a Post ID table. */
void wlPostTableCleanup(WlPostTable *pTable);
/* Adds a record to the Post ID table. Fails if duplicate information is present. */
WlPostRecord *wlPostTableAddRecord(struct WlBase *pBase, WlPostTable *pTable,
RsslPostMsg *pPostMsg, RsslErrorInfo *pErrorInfo);
/* Removes a record from the Post ID table. */
void wlPostTableRemoveRecord(WlPostTable *pTable, WlPostRecord *pRecord);
/* Matches an RsslAckMsg to a post in the table. */
WlPostRecord *wlPostTableFindRecord(WlPostTable *pTable, RsslAckMsg *pAckMsg);
#ifdef __cplusplus
}
#endif
#endif
|
import re
from codecs import open
from os import path
from setuptools import find_packages, setup
import setup_utils
# customize library name here
NAME = setup_utils.get_project_name()
META_PATH = path.join('src', NAME, 'metadata.py')
def find_meta(meta):
"""
Extract __*meta*__ from META_FILE.
"""
meta_match = re.search(
r"^__{meta}__ = ['\"]([^'\"]*)['\"]".format(meta=meta),
META_FILE, re.M
)
if meta_match:
return meta_match.group(1)
raise RuntimeError("Unable to find __{meta}__ string.".format(meta=meta))
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
# get the dependencies and installs
all_reqs = setup_utils.read_requirements(path.join(here, 'requirements.txt'))
with open(META_PATH, encoding='utf-8') as f:
META_FILE = f.read()
install_requires = [x.strip() for x in all_reqs if 'git+' not in x]
dependency_links = [x.strip().replace('git+', '') for x in all_reqs if x.startswith('git+')]
setup(
name=find_meta('name'),
version=find_meta('version'),
description=find_meta('description'),
long_description=long_description,
url=find_meta('url'),
download_url=find_meta('url') + '/tarball/' + find_meta('version'),
license=find_meta('license'),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
],
keywords='',
packages=find_packages(where='src'),
package_dir={'': 'src'},
include_package_data=True,
author=find_meta('author'),
install_requires=install_requires,
dependency_links=dependency_links,
author_email=find_meta('email')
)
|
/**
* Created by yangke on 2018/5/22.
*/
import { Component } from 'react';
import { Banner, TabBar, BetFooter, Group, Outlet, Eliminate } from '../../components';
import './bet.less';
import { Modal, Button } from 'antd-mobile';
//import qs from 'qs';
import { connect } from 'dva';
import appFun from '../../utils/appFun';
import classnames from 'classnames';
import count from '../../utils/count';
//let ticking = false; // rAF 触发锁
//let setTabScroll=false;//是否是由切换tab触发的滚动
@connect(({ urlInfo }) => ({ urlInfo }))
export default class Bet extends Component {
// 构造
constructor(props) {
super(props);
const arr = window.location.pathname.split('/');
let routerName = arr[arr.length - 1];
if (routerName === 'bet') {
routerName = 'group';
}
// 初始状态
this.state = {
modal: false,
scroll: false, //是否滚动
betTabs: {
group: 0, //小组赛投注量
outlet: 0, //小组一二名投注量
eliminate: 0, //淘汰赛投注量
betDisabled: true, // 小组一二名 底部投注按钮是否可点击 默认true
},
tabs: {
defaultPath: routerName,
className: 'betTabs',
tabArr: [
{
name: '小组单场',
thisClass: 'betTab',
label: '未开始',
toPath: 'group',
disabled: false,
clickFunc: () => {
this.setTab('group');
count('zzw_sjb_jc_xzdc');
},
},
{
name: '小组一二名',
thisClass: 'betTab',
label: '未开始',
toPath: 'outlet',
disabled: false,
clickFunc: () => {
this.setTab('outlet');
count('zzw_sjb_jc_xzyem');
},
},
{
name: '淘汰赛',
thisClass: 'betTab',
label: '未开始',
toPath: 'eliminate',
disabled: false,
clickFunc: () => {
this.setTab('eliminate');
count('zzw_sjb_jc_tts');
},
},
],
},
};
}
setTab = tabName => {
//const { scroll } = this.state;
const tabs = Object.assign({}, this.state.tabs, { defaultPath: tabName });
//setTabScroll=true;
this.setState({
tabs: tabs,
//scroll: scroll,
});
};
//设置tab标签页状态
setTabStatus = guessStatus => {
let { tabs } = this.state;
let { tabArr } = tabs;
guessStatus.map((item, index) => {
switch (item) {
case '1': //未开始
tabArr[index].label = '未开始';
tabArr[index].disabled = false; //可点击
tabArr[index].thisClass = 'betTab notBeginning';
if (index === 2) {
tabArr[index].disabled = true; //如果是淘汰赛未开始不可点击
}
break;
case '2': //进行中
tabArr[index].label = '竞猜中';
tabArr[index].disabled = false; //可点击
tabArr[index].thisClass = 'betTab processing';
break;
case '3': //已结束
tabArr[index].label = '已结束';
tabArr[index].disabled = false; //可点击
tabArr[index].thisClass = 'betTab end';
break;
default:
break;
}
return null;
});
tabs.tabArr = tabArr;
this.setState({
tabs: tabs,
});
};
getTab = () => {
const {
tabs: { defaultPath },
} = this.state;
switch (defaultPath) {
case 'group':
return (
<Group
modal={this.showModal.bind(this, 'modal')}
bet={this.setBet.bind(this)}
tabStatus={this.setTabStatus.bind(this)}
/>
);
case 'outlet':
return (
<Outlet
modal={this.showModal.bind(this, 'modal')}
bet={this.setBet.bind(this)}
tabStatus={this.setTabStatus.bind(this)}
/>
);
case 'eliminate':
return (
<Eliminate
modal={this.showModal.bind(this, 'modal')}
bet={this.setBet.bind(this)}
tabStatus={this.setTabStatus.bind(this)}
/>
);
default:
return (
<Group
modal={this.showModal.bind(this, 'modal')}
bet={this.setBet.bind(this)}
tabStatus={this.setTabStatus.bind(this)}
/>
);
}
};
//显示积分不足弹出层
showModal = (key = 'modal') => {
//积分不足 百度统计事件埋点
const {
tabs: { defaultPath },
} = this.state;
let id = null;
switch (defaultPath) {
case 'group':
id = 'zzw_sjb_jc_xzdc_xz_jfbz';
break;
case 'outlet':
id = 'zzw_sjb_xzyem_xz_jfbz';
break;
case 'eliminate':
id = 'zzw_sjb_tts_xz_jfbz';
break;
default:
id = 'zzw_sjb_jc_xzdc_xz_jfbz';
}
count(id);
//显示弹出层
this.setState({
[key]: true,
});
};
//关闭积分不足弹出层
onClose = (key = 'modal') => {
this.setState({
[key]: false,
});
};
setBet = (value, betDisabled = true) => {
let {
betTabs,
tabs: { defaultPath },
} = this.state;
betTabs[defaultPath] = value;
betTabs.betDisabled = betDisabled;
this.setState({
betTabs: betTabs,
});
};
componentDidMount() {
window.addEventListener('scroll', this.scroll, false);
}
componentWillUnmount() {
window.removeEventListener('scroll', this.scroll);
}
//滚动防抖动 触发频率1000/60ms
// onScroll = ()=>{
// if(setTabScroll){
// this.scroll();
// }else if(!ticking) {
// window.requestAnimationFrame(this.scroll);
// ticking = true;
// }
// }
scroll = () => {
let tabs = null,
scroll = false;
if (window.scrollY > 136) {
tabs = Object.assign({}, this.state.tabs, { className: 'betTabs scroll' });
scroll = true;
} else {
tabs = Object.assign({}, this.state.tabs, { className: 'betTabs' });
}
//ticking = false;
//setTabScroll=false;
this.setState({
tabs: tabs,
scroll: scroll,
});
};
// 积分不足相关 百度统计事件埋点
amountCount = name => {
const {
tabs: { defaultPath },
} = this.state;
let id = null;
switch (defaultPath) {
case 'group':
id = '_jc_xzdc_xz_';
break;
case 'outlet':
id = '_xzyem_xz_';
break;
case 'eliminate':
id = '_tts_xz_';
break;
default:
id = '_jc_xzdc_xz_';
}
count(`zzw_sjb${id}jfbz_${name}`);
};
render() {
const { tabs, betTabs, modal, scroll } = this.state;
return (
<div>
<Banner />
<main className={classnames('betMain', { betMainScroll: scroll })}>
<TabBar {...tabs} />
{this.getTab()}
</main>
<Modal
visible={modal}
transparent
maskClosable={false}
className="amountModal"
onClose={this.onClose.bind(this, 'modal')}
>
<section className="amountLimit">
<header>
<i
className="iconfont icon-cross"
onClick={() => {
this.amountCount('gb');
this.onClose('modal');
}}
/>
积分不足
</header>
<section className="amountBody">
<p className="amountWord">您可通过以下方式赚取积分再来竞猜</p>
<Button
type="primary"
onClick={() => {
this.amountCount('sqjk');
appFun('jumpToLoan');
}}
>
贷贷有积分,助力拿 iPhone
</Button>
<Button
type="primary"
onClick={() => {
this.amountCount('yqhy');
this.props.history.push('/myInvite');
}}
>
壕友联盟 友奖一起赚
</Button>
</section>
</section>
</Modal>
<BetFooter {...betTabs} modal={this.showModal.bind(this, 'modal')} />
</div>
);
}
}
|
from collections import defaultdict
import numpy as np
from yt.frontends.gadget_fof.io import IOHandlerGadgetFOFHaloHDF5
from yt.funcs import parse_h5_attr
from yt.units.yt_array import uvstack
from yt.utilities.io_handler import BaseIOHandler
from yt.utilities.on_demand_imports import _h5py as h5py
class IOHandlerYTHaloCatalog(BaseIOHandler):
_dataset_type = "ythalocatalog"
def _read_fluid_selection(self, chunks, selector, fields, size):
raise NotImplementedError
def _read_particle_coords(self, chunks, ptf):
# This will read chunks and yield the results.
chunks = list(chunks)
data_files = set([])
# Only support halo reading for now.
assert len(ptf) == 1
assert list(ptf.keys())[0] == "halos"
ptype = "halos"
for chunk in chunks:
for obj in chunk.objs:
data_files.update(obj.data_files)
pn = "particle_position_%s"
for data_file in sorted(data_files, key=lambda x: (x.filename, x.start)):
with h5py.File(data_file.filename, mode="r") as f:
units = parse_h5_attr(f[pn % "x"], "units")
pos = data_file._get_particle_positions(ptype, f=f)
x, y, z = (self.ds.arr(pos[:, i], units) for i in range(3))
yield "halos", (x, y, z)
def _yield_coordinates(self, data_file):
pn = "particle_position_%s"
with h5py.File(data_file.filename, mode="r") as f:
units = parse_h5_attr(f[pn % "x"], "units")
x, y, z = (
self.ds.arr(f[pn % ax][()].astype("float64"), units) for ax in "xyz"
)
pos = uvstack([x, y, z]).T
pos.convert_to_units("code_length")
yield "halos", pos
def _read_particle_fields(self, chunks, ptf, selector):
# Now we have all the sizes, and we can allocate
chunks = list(chunks)
data_files = set([])
# Only support halo reading for now.
assert len(ptf) == 1
assert list(ptf.keys())[0] == "halos"
for chunk in chunks:
for obj in chunk.objs:
data_files.update(obj.data_files)
pn = "particle_position_%s"
for data_file in sorted(data_files, key=lambda x: (x.filename, x.start)):
si, ei = data_file.start, data_file.end
with h5py.File(data_file.filename, mode="r") as f:
for ptype, field_list in sorted(ptf.items()):
units = parse_h5_attr(f[pn % "x"], "units")
pos = data_file._get_particle_positions(ptype, f=f)
x, y, z = (self.ds.arr(pos[:, i], units) for i in range(3))
mask = selector.select_points(x, y, z, 0.0)
del x, y, z
if mask is None:
continue
for field in field_list:
data = f[field][si:ei][mask].astype("float64")
yield (ptype, field), data
def _count_particles(self, data_file):
si, ei = data_file.start, data_file.end
nhalos = data_file.header["num_halos"]
if None not in (si, ei):
nhalos = np.clip(nhalos - si, 0, ei - si)
return {"halos": nhalos}
def _identify_fields(self, data_file):
with h5py.File(data_file.filename, mode="r") as f:
fields = [
("halos", field) for field in f if not isinstance(f[field], h5py.Group)
]
units = dict(
[(("halos", field), parse_h5_attr(f[field], "units")) for field in f]
)
return fields, units
class HaloDatasetIOHandler:
"""
Base class for io handlers to load halo member particles.
"""
def _read_particle_coords(self, chunks, ptf):
pass
def _read_particle_fields(self, dobj, ptf):
# separate member particle fields from scalar fields
scalar_fields = defaultdict(list)
member_fields = defaultdict(list)
for ptype, field_list in sorted(ptf.items()):
for field in field_list:
if (ptype, field) in self.ds.scalar_field_list:
scalar_fields[ptype].append(field)
else:
member_fields[ptype].append(field)
all_data = self._read_scalar_fields(dobj, scalar_fields)
all_data.update(self._read_member_fields(dobj, member_fields))
for field, field_data in all_data.items():
yield field, field_data
# This will be refactored.
_read_particle_selection = IOHandlerGadgetFOFHaloHDF5._read_particle_selection
class IOHandlerYTHalo(HaloDatasetIOHandler, IOHandlerYTHaloCatalog):
_dataset_type = "ythalo"
def _identify_fields(self, data_file):
with h5py.File(data_file.filename, mode="r") as f:
scalar_fields = [
("halos", field) for field in f if not isinstance(f[field], h5py.Group)
]
units = dict(
[(("halos", field), parse_h5_attr(f[field], "units")) for field in f]
)
if "particles" in f:
id_fields = [("halos", field) for field in f["particles"]]
else:
id_fields = []
return scalar_fields + id_fields, scalar_fields, id_fields, units
def _read_member_fields(self, dobj, member_fields):
all_data = defaultdict(lambda: np.empty(dobj.particle_number, dtype=np.float64))
if not member_fields:
return all_data
field_start = 0
for i, data_file in enumerate(dobj.field_data_files):
start_index = dobj.field_data_start[i]
end_index = dobj.field_data_end[i]
pcount = end_index - start_index
if pcount == 0:
continue
field_end = field_start + end_index - start_index
with h5py.File(data_file.filename, mode="r") as f:
for ptype, field_list in sorted(member_fields.items()):
for field in field_list:
field_data = all_data[(ptype, field)]
my_data = f["particles"][field][start_index:end_index].astype(
"float64"
)
field_data[field_start:field_end] = my_data
field_start = field_end
return all_data
def _read_scalar_fields(self, dobj, scalar_fields):
all_data = {}
if not scalar_fields:
return all_data
with h5py.File(dobj.scalar_data_file.filename, mode="r") as f:
for ptype, field_list in sorted(scalar_fields.items()):
for field in field_list:
data = np.array([f[field][dobj.scalar_index]]).astype("float64")
all_data[(ptype, field)] = data
return all_data
|
# Generated by Django 2.0.8 on 2018-09-29 16:49
from django.db import migrations
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('taggit', '0002_auto_20150616_2121'),
('images', '0005_auto_20180929_0603'),
]
operations = [
migrations.AddField(
model_name='image',
name='tags',
field=taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags'),
),
]
|
from dataclasses import dataclass, field
__NAMESPACE__ = "NISTSchema-SV-IV-atomic-NMTOKEN-length-4-NS"
@dataclass
class NistschemaSvIvAtomicNmtokenLength4:
class Meta:
name = "NISTSchema-SV-IV-atomic-NMTOKEN-length-4"
namespace = "NISTSchema-SV-IV-atomic-NMTOKEN-length-4-NS"
value: str = field(
default="",
metadata={
"required": True,
"length": 60,
}
)
|
#!/usr/bin/env node
const program = require('commander')
const pkg = require('../package.json')
program
.version(pkg.version)
.command('version', 'set the version in the config.xml file')
.parse(process.argv)
|
class Url {
/**
* Parse URL to assign placeholder data
*/
parse (req, res, endpoint) {
this.parseParams(req, endpoint)
this.parseQuery(req, endpoint)
}
/**
* Put placeholders from url into req.params
* E.g. /users/:id/tasks -> req.params.id holds the data in place of :id
*/
parseParams (req, endpoint) {
let eUrl = endpoint.route.split('/')
let reqUrl = req.url.split('/')
let difference = eUrl.length - reqUrl.length
let i = 0
for (const fragment of eUrl) {
if (fragment.includes(':') && fragment.includes('?') && difference > 0) difference--
else {
if (fragment.includes(':')) req.params[fragment.replace(':', '').replace('?', '')] = decodeURIComponent(reqUrl[i])
i++
}
}
}
/**
* Put query params into req.query
* E.g. /someroute?test=Kappa123 -> req.query.test = Kappa123
*/
parseQuery (req, endpoint) {
/* eslint no-useless-escape: "off" */
let regex = /(\?)([^=]+)\=([^&]+)/
let url = req.url
let matching = regex.exec(url)
while (matching) {
let key = matching[2]
for (let i = 0; i < endpoint.query.length; i++) {
if (key === endpoint.query[i].name) {
req.query[key] = decodeURIComponent(matching[3])
}
}
url = url.replace(matching[0], '').replace('&', '?')
matching = regex.exec(url)
}
this.parseQueryTypes(req, endpoint)
}
/**
* Convert string params from URL to target type
*/
parseQueryTypes (req, endpoint) {
endpoint.query.forEach(query => {
let def = typeof query.default === 'function' ? query.default() : query.default
let key = query.name
// Convert value to target type
if (req.query[key]) {
if (typeof def === 'number') {
req.query[key] = parseFloat(req.query[key])
}
if (typeof def === 'boolean') {
/* eslint eqeqeq: "off" */
req.query[key] = req.query[key] == 'true' || req.query[key] == '1'
}
if (typeof def === 'object') {
req.query[key] = JSON.stringify(req.query[key])
}
}
// No value given, use default
else {
req.query[key] = def
}
})
}
}
module.exports = new Url()
|
from mypy_extensions import TypedDict
from typing import Any, Dict, Iterable, List, Optional, Union
VerbosenessPreferences = TypedDict('VerbosenessPreferences', {
'request': bool,
'response': bool,
'print_binaries': bool,
})
QueryParams = Dict[str, Union[str, List[str]]]
OAuth2Preferences = TypedDict('OAuth2Preferences', {
'client_id': str,
'client_secret': str,
'scopes': Iterable[str],
'redirect_uri': str,
'access_token': str,
'state': Optional[str],
'token_path': str,
'authorize_path': str,
'authorize_params': QueryParams,
})
RawPreferences = Dict[str, Any]
Preferences = TypedDict('Preferences', {
'api_url': str,
'auth_type': Optional[str],
'oauth2': OAuth2Preferences,
'auth_test_status': int,
'api_version': Optional[str],
'verify_ssl': bool,
'timeout': int,
'headers': Dict[str, str],
'verboseness': VerbosenessPreferences,
'indent': Optional[int],
'theme': Optional[str],
'variables': Dict[str, str],
})
Options = TypedDict('Options', {
'--help': bool,
'--version': bool,
'<method>': str,
'<endpoint>': str,
'<params>': QueryParams,
'<data>': Any,
})
RawOptions = Dict[str, Optional[Union[str, bool]]]
# TypedDict currently requires string literal key indexing
# RawOptions = TypedDict('RawOptions', {
# '--help': bool,
# '--version': bool,
# 'help': bool,
# 'get': bool,
# 'post': bool,
# 'patch': bool,
# 'put': bool,
# 'delete': bool,
# '<endpoint>': str,
# '<params>': List[str],
# '<data>': Optional[str],
# })
|
(self["webpackChunkwizzi_editor"] = self["webpackChunkwizzi_editor"] || []).push([["vendors-node_modules_monaco-editor_esm_vs_basic-languages_cpp_cpp_js"],{
/***/ "./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.js":
/*!**********************************************************************!*\
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.js ***!
\**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "conf": () => (/* binding */ conf),
/* harmony export */ "language": () => (/* binding */ language)
/* harmony export */ });
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
var conf = {
comments: {
lineComment: '//',
blockComment: ['/*', '*/']
},
brackets: [
['{', '}'],
['[', ']'],
['(', ')']
],
autoClosingPairs: [
{ open: '[', close: ']' },
{ open: '{', close: '}' },
{ open: '(', close: ')' },
{ open: "'", close: "'", notIn: ['string', 'comment'] },
{ open: '"', close: '"', notIn: ['string'] }
],
surroundingPairs: [
{ open: '{', close: '}' },
{ open: '[', close: ']' },
{ open: '(', close: ')' },
{ open: '"', close: '"' },
{ open: "'", close: "'" }
],
folding: {
markers: {
start: new RegExp('^\\s*#pragma\\s+region\\b'),
end: new RegExp('^\\s*#pragma\\s+endregion\\b')
}
}
};
var language = {
defaultToken: '',
tokenPostfix: '.cpp',
brackets: [
{ token: 'delimiter.curly', open: '{', close: '}' },
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
{ token: 'delimiter.square', open: '[', close: ']' },
{ token: 'delimiter.angle', open: '<', close: '>' }
],
keywords: [
'abstract',
'amp',
'array',
'auto',
'bool',
'break',
'case',
'catch',
'char',
'class',
'const',
'constexpr',
'const_cast',
'continue',
'cpu',
'decltype',
'default',
'delegate',
'delete',
'do',
'double',
'dynamic_cast',
'each',
'else',
'enum',
'event',
'explicit',
'export',
'extern',
'false',
'final',
'finally',
'float',
'for',
'friend',
'gcnew',
'generic',
'goto',
'if',
'in',
'initonly',
'inline',
'int',
'interface',
'interior_ptr',
'internal',
'literal',
'long',
'mutable',
'namespace',
'new',
'noexcept',
'nullptr',
'__nullptr',
'operator',
'override',
'partial',
'pascal',
'pin_ptr',
'private',
'property',
'protected',
'public',
'ref',
'register',
'reinterpret_cast',
'restrict',
'return',
'safe_cast',
'sealed',
'short',
'signed',
'sizeof',
'static',
'static_assert',
'static_cast',
'struct',
'switch',
'template',
'this',
'thread_local',
'throw',
'tile_static',
'true',
'try',
'typedef',
'typeid',
'typename',
'union',
'unsigned',
'using',
'virtual',
'void',
'volatile',
'wchar_t',
'where',
'while',
'_asm',
'_based',
'_cdecl',
'_declspec',
'_fastcall',
'_if_exists',
'_if_not_exists',
'_inline',
'_multiple_inheritance',
'_pascal',
'_single_inheritance',
'_stdcall',
'_virtual_inheritance',
'_w64',
'__abstract',
'__alignof',
'__asm',
'__assume',
'__based',
'__box',
'__builtin_alignof',
'__cdecl',
'__clrcall',
'__declspec',
'__delegate',
'__event',
'__except',
'__fastcall',
'__finally',
'__forceinline',
'__gc',
'__hook',
'__identifier',
'__if_exists',
'__if_not_exists',
'__inline',
'__int128',
'__int16',
'__int32',
'__int64',
'__int8',
'__interface',
'__leave',
'__m128',
'__m128d',
'__m128i',
'__m256',
'__m256d',
'__m256i',
'__m64',
'__multiple_inheritance',
'__newslot',
'__nogc',
'__noop',
'__nounwind',
'__novtordisp',
'__pascal',
'__pin',
'__pragma',
'__property',
'__ptr32',
'__ptr64',
'__raise',
'__restrict',
'__resume',
'__sealed',
'__single_inheritance',
'__stdcall',
'__super',
'__thiscall',
'__try',
'__try_cast',
'__typeof',
'__unaligned',
'__unhook',
'__uuidof',
'__value',
'__virtual_inheritance',
'__w64',
'__wchar_t'
],
operators: [
'=',
'>',
'<',
'!',
'~',
'?',
':',
'==',
'<=',
'>=',
'!=',
'&&',
'||',
'++',
'--',
'+',
'-',
'*',
'/',
'&',
'|',
'^',
'%',
'<<',
'>>',
'>>>',
'+=',
'-=',
'*=',
'/=',
'&=',
'|=',
'^=',
'%=',
'<<=',
'>>=',
'>>>='
],
// we include these common regular expressions
symbols: /[=><!~?:&|+\-*\/\^%]+/,
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
floatsuffix: /[fFlL]?/,
encoding: /u|u8|U|L/,
// The main tokenizer for our languages
tokenizer: {
root: [
// C++ 11 Raw String
[/@encoding?R\"(?:([^ ()\\\t]*))\(/, { token: 'string.raw.begin', next: '@raw.$1' }],
// identifiers and keywords
[
/[a-zA-Z_]\w*/,
{
cases: {
'@keywords': { token: 'keyword.$0' },
'@default': 'identifier'
}
}
],
// whitespace
{ include: '@whitespace' },
// [[ attributes ]].
[/\[\s*\[/, { token: 'annotation', next: '@annotation' }],
[/^\s*#include/, { token: 'keyword.directive.include', next: '@include' }],
// Preprocessor directive
[/^\s*#\s*\w+/, 'keyword'],
// delimiters and operators
[/[{}()\[\]]/, '@brackets'],
[/[<>](?!@symbols)/, '@brackets'],
[
/@symbols/,
{
cases: {
'@operators': 'delimiter',
'@default': ''
}
}
],
// numbers
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, 'number.float'],
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, 'number.float'],
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, 'number.hex'],
[/0[0-7']*[0-7](@integersuffix)/, 'number.octal'],
[/0[bB][0-1']*[0-1](@integersuffix)/, 'number.binary'],
[/\d[\d']*\d(@integersuffix)/, 'number'],
[/\d(@integersuffix)/, 'number'],
// delimiter: after number because of .\d floats
[/[;,.]/, 'delimiter'],
// strings
[/"([^"\\]|\\.)*$/, 'string.invalid'],
[/"/, 'string', '@string'],
// characters
[/'[^\\']'/, 'string'],
[/(')(@escapes)(')/, ['string', 'string.escape', 'string']],
[/'/, 'string.invalid']
],
whitespace: [
[/[ \t\r\n]+/, ''],
[/\/\*\*(?!\/)/, 'comment.doc', '@doccomment'],
[/\/\*/, 'comment', '@comment'],
[/\/\/.*$/, 'comment']
],
comment: [
[/[^\/*]+/, 'comment'],
[/\*\//, 'comment', '@pop'],
[/[\/*]/, 'comment']
],
//Identical copy of comment above, except for the addition of .doc
doccomment: [
[/[^\/*]+/, 'comment.doc'],
[/\*\//, 'comment.doc', '@pop'],
[/[\/*]/, 'comment.doc']
],
string: [
[/[^\\"]+/, 'string'],
[/@escapes/, 'string.escape'],
[/\\./, 'string.escape.invalid'],
[/"/, 'string', '@pop']
],
raw: [
[
/(.*)(\))(?:([^ ()\\\t"]*))(\")/,
{
cases: {
'$3==$S2': [
'string.raw',
'string.raw.end',
'string.raw.end',
{ token: 'string.raw.end', next: '@pop' }
],
'@default': ['string.raw', 'string.raw', 'string.raw', 'string.raw']
}
}
],
[/.*/, 'string.raw']
],
annotation: [
{ include: '@whitespace' },
[/using|alignas/, 'keyword'],
[/[a-zA-Z0-9_]+/, 'annotation'],
[/[,:]/, 'delimiter'],
[/[()]/, '@brackets'],
[/\]\s*\]/, { token: 'annotation', next: '@pop' }]
],
include: [
[
/(\s*)(<)([^<>]*)(>)/,
[
'',
'keyword.directive.include.begin',
'string.include.identifier',
{ token: 'keyword.directive.include.end', next: '@pop' }
]
],
[
/(\s*)(")([^"]*)(")/,
[
'',
'keyword.directive.include.begin',
'string.include.identifier',
{ token: 'keyword.directive.include.end', next: '@pop' }
]
]
]
}
};
/***/ })
}]);
//# sourceMappingURL=vendors-node_modules_monaco-editor_esm_vs_basic-languages_cpp_cpp_js.e5aaf60e7d931a9f3fcf.chunk.js.map
|
/*++
Copyright (c) 1997-2000 Microsoft Corporation
Module Name:
rconvert.c
Abstract:
Domain Name System (DNS) Server -- Admin Client Library
RPC record conversion routines.
Convert records in RPC buffer to DNS_RECORD type.
Author:
Jim Gilroy (jamesg) April, 1997
Revision History:
--*/
#include "dnsclip.h"
#define IS_COMPLETE_NODE( pRpcNode ) \
(!!((pRpcNode)->dwFlags & DNS_RPC_NODE_FLAG_COMPLETE))
//
// Copy-convert string from RPC format (UTF8) into DNS_RECORD buffer
// - assume previously allocated required buffer
//
// Note: no difference between string and name conversion as we're
// going FROM UTF8
//
#define COPY_UTF8_STR_TO_BUFFER( buf, psz, len, charSet ) \
Dns_StringCopy( \
(buf), \
NULL, \
(psz), \
(len), \
DnsCharSetUtf8, \
(charSet) )
//
// RPC record to DNS_RECORD conversion routines
//
PDNS_RECORD
ARpcRecordConvert(
IN PDNS_RPC_RECORD pRpcRR,
IN DNS_CHARSET CharSet
)
/*++
Routine Description:
Read A record data from packet.
Arguments:
pRpcRR - message being read
Return Value:
Ptr to new record if successful.
NULL on failure.
--*/
{
PDNS_RECORD precord;
DNS_ASSERT( pRpcRR->wDataLength == sizeof( IP_ADDRESS ) );
precord = Dns_AllocateRecord( sizeof( IP_ADDRESS ) );
if ( !precord )
{
return NULL;
}
precord->Data.A.IpAddress = pRpcRR->Data.A.ipAddress;
return precord;
}
PDNS_RECORD
PtrRpcRecordConvert(
IN PDNS_RPC_RECORD pRpcRR,
IN DNS_CHARSET CharSet
)
/*++
Routine Description:
Process PTR compatible record from wire.
Includes: NS, PTR, CNAME, MB, MR, MG, MD, MF
Arguments:
pRpcRR - message being read
CharSet - character set for resulting record
Return Value:
Ptr to new record if successful.
NULL on failure.
--*/
{
PDNS_RECORD precord;
PDNS_RPC_NAME pname = &pRpcRR->Data.PTR.nameNode;
WORD bufLength;
//
// PTR data is another domain name
//
if ( ! DNS_IS_NAME_IN_RECORD(pRpcRR, pname) )
{
DNS_ASSERT( FALSE );
return NULL;
}
//
// determine required buffer length and allocate
//
bufLength = sizeof( DNS_PTR_DATA )
+ STR_BUF_SIZE_GIVEN_UTF8_LEN( pname->cchNameLength, CharSet );
precord = Dns_AllocateRecord( bufLength );
if ( !precord )
{
return NULL;
}
//
// write hostname into buffer, immediately following PTR data struct
//
precord->Data.PTR.pNameHost = (PCHAR)&precord->Data + sizeof(DNS_PTR_DATA);
COPY_UTF8_STR_TO_BUFFER(
precord->Data.PTR.pNameHost,
pname->achName,
pname->cchNameLength,
CharSet );
return precord;
}
PDNS_RECORD
SoaRpcRecordConvert(
IN PDNS_RPC_RECORD pRpcRR,
IN DNS_CHARSET CharSet
)
/*++
Routine Description:
Read SOA record from wire.
Arguments:
pRR - ptr to record with RR set context
pRpcRR - message being read
pchData - ptr to RR data field
pchEnd - ptr to byte after data field
Return Value:
Ptr to new record if successful.
NULL on failure.
--*/
{
PDNS_RECORD precord;
WORD bufLength;
DWORD dwLength;
PDNS_RPC_NAME pnamePrimary = &pRpcRR->Data.SOA.namePrimaryServer;
PDNS_RPC_NAME pnameAdmin;
//
// verify names in SOA record
//
if ( ! DNS_IS_NAME_IN_RECORD(pRpcRR, pnamePrimary) )
{
DNS_ASSERT( FALSE );
return NULL;
}
pnameAdmin = DNS_GET_NEXT_NAME(pnamePrimary);
if ( ! DNS_IS_NAME_IN_RECORD(pRpcRR, pnameAdmin) )
{
DNS_ASSERT( FALSE );
return NULL;
}
//
// determine required buffer length and allocate
//
bufLength = sizeof( DNS_SOA_DATA )
+ STR_BUF_SIZE_GIVEN_UTF8_LEN( pnamePrimary->cchNameLength, CharSet )
+ STR_BUF_SIZE_GIVEN_UTF8_LEN( pnameAdmin->cchNameLength, CharSet );
precord = Dns_AllocateRecord( bufLength );
if ( !precord )
{
return NULL;
}
//
// copy fixed fields
//
RtlCopyMemory(
(PCHAR) & precord->Data.SOA.dwSerialNo,
(PCHAR) & pRpcRR->Data.SOA.dwSerialNo,
SIZEOF_SOA_FIXED_DATA );
//
// copy names into RR buffer
// - primary server immediately follows SOA data struct
// - responsible party follows primary server
//
precord->Data.SOA.pNamePrimaryServer = (PCHAR)&precord->Data
+ sizeof(DNS_SOA_DATA);
dwLength =
COPY_UTF8_STR_TO_BUFFER(
precord->Data.SOA.pNamePrimaryServer,
pnamePrimary->achName,
(DWORD)pnamePrimary->cchNameLength,
CharSet );
precord->Data.SOA.pNameAdministrator = precord->Data.SOA.pNamePrimaryServer + dwLength;
COPY_UTF8_STR_TO_BUFFER(
precord->Data.SOA.pNameAdministrator,
pnameAdmin->achName,
(DWORD)pnameAdmin->cchNameLength,
CharSet );
return precord;
}
PDNS_RECORD
TxtRpcRecordConvert(
IN PDNS_RPC_RECORD pRpcRR,
IN DNS_CHARSET CharSet
)
/*++
Routine Description:
Read TXT compatible record from wire.
Includes: TXT, X25, HINFO, ISDN
Arguments:
pRpcRR - message being read
Return Value:
Ptr to new record if successful.
NULL on failure.
--*/
{
PDNS_RECORD precord;
DWORD bufLength = 0;
DWORD length = 0;
INT count = 0;
PCHAR pch;
PCHAR pchend;
PCHAR pchbuffer;
PCHAR * ppstring;
PDNS_RPC_NAME pname = &pRpcRR->Data.TXT.stringData;
//
// determine required buffer length and allocate
// - allocate space for each string
// - and ptr for each string
//
pch = (PCHAR)&pRpcRR->Data.TXT;
pchend = pch + pRpcRR->wDataLength;
while ( pch < pchend )
{
length = (UCHAR) *pch++;
pch += length;
count++;
bufLength += STR_BUF_SIZE_GIVEN_UTF8_LEN( length, CharSet );
}
if ( pch != pchend )
{
DNS_PRINT((
"ERROR: Invalid RPCstring data\n"
" pch = %p\n"
" pchEnd = %p\n"
" count = %d\n"
" length = %d\n",
pch, pchend, count, length ));
SetLastError( ERROR_INVALID_DATA );
return NULL;
}
// allocate
bufLength += (WORD) DNS_TEXT_RECORD_LENGTH(count);
precord = Dns_AllocateRecord( (WORD)bufLength );
if ( !precord )
{
return NULL;
}
precord->Data.TXT.dwStringCount = count;
//
// go back through list copying strings to buffer
// - ptrs to strings are saved to argv like data section
// ppstring walks through this section
// - first string written immediately following data section
// - each subsequent string immediately follows predecessor
// pchbuffer keeps ptr to position to write strings
//
pch = (PCHAR)&pRpcRR->Data.TXT;
ppstring = precord->Data.TXT.pStringArray;
pchbuffer = (PCHAR)ppstring + (count * sizeof(PCHAR));
while ( pch < pchend )
{
length = (DWORD)((UCHAR) *pch++);
*ppstring++ = pchbuffer;
pchbuffer += COPY_UTF8_STR_TO_BUFFER(
pchbuffer,
pch,
length,
CharSet );
pch += length;
#if DBG
DNS_PRINT((
"Read text string %s\n",
* (ppstring - 1)
));
count--;
#endif
}
DNS_ASSERT( pch == pchend && count == 0 );
return precord;
}
PDNS_RECORD
MinfoRpcRecordConvert(
IN PDNS_RPC_RECORD pRpcRR,
IN DNS_CHARSET CharSet
)
/*++
Routine Description:
Read MINFO record from wire.
Arguments:
pRpcRR - message being read
Return Value:
Ptr to new record if successful.
NULL on failure.
--*/
{
PDNS_RECORD precord;
WORD bufLength;
DWORD dwLength;
PDNS_RPC_NAME pname1 = &pRpcRR->Data.MINFO.nameMailBox;
PDNS_RPC_NAME pname2;
//
// verify names in MINFO record
//
if ( ! DNS_IS_NAME_IN_RECORD(pRpcRR, pname1) )
{
DNS_ASSERT( FALSE );
return NULL;
}
pname2 = DNS_GET_NEXT_NAME(pname1);
if ( ! DNS_IS_NAME_IN_RECORD(pRpcRR, pname2) )
{
DNS_ASSERT( FALSE );
return NULL;
}
//
// determine required buffer length and allocate
//
bufLength = (WORD)
( sizeof( DNS_MINFO_DATA )
+ STR_BUF_SIZE_GIVEN_UTF8_LEN( pname1->cchNameLength, CharSet )
+ STR_BUF_SIZE_GIVEN_UTF8_LEN( pname2->cchNameLength, CharSet ) );
precord = Dns_AllocateRecord( bufLength );
if ( !precord )
{
return NULL;
}
//
// copy names into RR buffer
// - mailbox immediately follows MINFO data struct
// - errors mailbox immediately follows primary server
//
precord->Data.MINFO.pNameMailbox
= (PCHAR)&precord->Data + sizeof( DNS_MINFO_DATA );
dwLength =
COPY_UTF8_STR_TO_BUFFER(
precord->Data.MINFO.pNameMailbox,
pname1->achName,
(DWORD)pname1->cchNameLength,
CharSet );
precord->Data.MINFO.pNameErrorsMailbox = precord->Data.MINFO.pNameMailbox + dwLength;
COPY_UTF8_STR_TO_BUFFER(
precord->Data.MINFO.pNameErrorsMailbox,
pname2->achName,
(DWORD)pname2->cchNameLength,
CharSet );
return precord;
}
PDNS_RECORD
MxRpcRecordConvert(
IN PDNS_RPC_RECORD pRpcRR,
IN DNS_CHARSET CharSet
)
/*++
Routine Description:
Read MX compatible record from wire.
Includes: MX, RT, AFSDB
Arguments:
pRpcRR - message being read
Return Value:
Ptr to new record if successful.
NULL on failure.
--*/
{
PDNS_RECORD precord;
PDNS_RPC_NAME pname = &pRpcRR->Data.MX.nameExchange;
WORD bufLength;
//
// MX exchange is another DNS name
//
if ( ! DNS_IS_NAME_IN_RECORD(pRpcRR, pname) )
{
DNS_ASSERT( FALSE );
return NULL;
}
//
// determine required buffer length and allocate
//
bufLength = sizeof( DNS_MX_DATA )
+ STR_BUF_SIZE_GIVEN_UTF8_LEN( pname->cchNameLength, CharSet );
precord = Dns_AllocateRecord( bufLength );
if ( !precord )
{
return NULL;
}
//
// copy preference
//
precord->Data.MX.wPreference = pRpcRR->Data.MX.wPreference;
//
// write hostname into buffer, immediately following MX struct
//
precord->Data.MX.pNameExchange = (PCHAR)&precord->Data + sizeof( DNS_MX_DATA );
COPY_UTF8_STR_TO_BUFFER(
precord->Data.MX.pNameExchange,
pname->achName,
pname->cchNameLength,
CharSet );
return precord;
}
PDNS_RECORD
FlatRpcRecordConvert(
IN PDNS_RPC_RECORD pRpcRR,
IN DNS_CHARSET CharSet
)
/*++
Routine Description:
Read memory copy compatible record from wire.
Includes AAAA and WINS types.
Arguments:
pRpcRR - message being read
Return Value:
Ptr to new record if successful.
NULL on failure.
--*/
{
PDNS_RECORD precord;
WORD bufLength;
//
// determine required buffer length and allocate
//
bufLength = pRpcRR->wDataLength;
precord = Dns_AllocateRecord( bufLength );
if ( !precord )
{
return NULL;
}
//
// copy packet data to record
//
RtlCopyMemory(
& precord->Data,
(PCHAR) &pRpcRR->Data.A,
bufLength );
return precord;
}
PDNS_RECORD
SrvRpcRecordConvert(
IN PDNS_RPC_RECORD pRpcRR,
IN DNS_CHARSET CharSet
)
/*++
Routine Description:
Read SRV record from wire.
Arguments:
pRpcRR - message being read
Return Value:
Ptr to new record if successful.
NULL on failure.
--*/
{
PDNS_RECORD precord;
PDNS_RPC_NAME pname = &pRpcRR->Data.SRV.nameTarget;
WORD bufLength;
//
// SRV target host is another DNS name
//
if ( ! DNS_IS_NAME_IN_RECORD(pRpcRR, pname) )
{
DNS_ASSERT( FALSE );
return NULL;
}
//
// determine required buffer length and allocate
//
bufLength = sizeof( DNS_SRV_DATA )
+ STR_BUF_SIZE_GIVEN_UTF8_LEN( pname->cchNameLength, CharSet );
precord = Dns_AllocateRecord( bufLength );
if ( !precord )
{
return NULL;
}
//
// copy SRV fixed fields
//
precord->Data.SRV.wPriority = pRpcRR->Data.SRV.wPriority;
precord->Data.SRV.wWeight = pRpcRR->Data.SRV.wWeight;
precord->Data.SRV.wPort = pRpcRR->Data.SRV.wPort;
//
// write hostname into buffer, immediately following SRV struct
//
precord->Data.SRV.pNameTarget = (PCHAR)&precord->Data + sizeof( DNS_SRV_DATA );
COPY_UTF8_STR_TO_BUFFER(
precord->Data.SRV.pNameTarget,
pname->achName,
pname->cchNameLength,
CharSet );
return precord;
}
PDNS_RECORD
NbstatRpcRecordConvert(
IN PDNS_RPC_RECORD pRpcRR,
IN DNS_CHARSET CharSet
)
/*++
Routine Description:
Read WINSR record from wire.
Arguments:
pRpcRR - message being read
Return Value:
Ptr to new record if successful.
NULL on failure.
--*/
{
PDNS_RECORD precord;
PDNS_RPC_NAME pname = &pRpcRR->Data.WINSR.nameResultDomain;
WORD bufLength;
//
// WINSR target host is another DNS name
//
if ( ! DNS_IS_NAME_IN_RECORD(pRpcRR, pname) )
{
DNS_ASSERT( FALSE );
return NULL;
}
//
// determine required buffer length and allocate
//
bufLength = sizeof( DNS_WINSR_DATA )
+ STR_BUF_SIZE_GIVEN_UTF8_LEN( pname->cchNameLength, CharSet );
precord = Dns_AllocateRecord( bufLength );
if ( !precord )
{
return NULL;
}
//
// copy WINSR fixed fields
//
precord->Data.WINSR.dwMappingFlag = pRpcRR->Data.WINSR.dwMappingFlag;
precord->Data.WINSR.dwLookupTimeout = pRpcRR->Data.WINSR.dwLookupTimeout;
precord->Data.WINSR.dwCacheTimeout = pRpcRR->Data.WINSR.dwCacheTimeout;
//
// write hostname into buffer, immediately following WINSR struct
//
precord->Data.WINSR.pNameResultDomain
= (PCHAR)&precord->Data + sizeof( DNS_WINSR_DATA );
COPY_UTF8_STR_TO_BUFFER(
precord->Data.WINSR.pNameResultDomain,
pname->achName,
pname->cchNameLength,
CharSet );
return precord;
}
//
// RR conversion from RPC buffer to DNS_RECORD
//
typedef PDNS_RECORD (* RR_CONVERT_FUNCTION)( PDNS_RPC_RECORD, DNS_CHARSET );
RR_CONVERT_FUNCTION RRRpcConvertTable[] =
{
NULL, // ZERO
ARpcRecordConvert, // A
PtrRpcRecordConvert, // NS
PtrRpcRecordConvert, // MD
PtrRpcRecordConvert, // MF
PtrRpcRecordConvert, // CNAME
SoaRpcRecordConvert, // SOA
PtrRpcRecordConvert, // MB
PtrRpcRecordConvert, // MG
PtrRpcRecordConvert, // MR
NULL, // NULL
FlatRpcRecordConvert, // WKS
PtrRpcRecordConvert, // PTR
TxtRpcRecordConvert, // HINFO
MinfoRpcRecordConvert, // MINFO
MxRpcRecordConvert, // MX
TxtRpcRecordConvert, // TXT
MinfoRpcRecordConvert, // RP
MxRpcRecordConvert, // AFSDB
TxtRpcRecordConvert, // X25
TxtRpcRecordConvert, // ISDN
MxRpcRecordConvert, // RT
NULL, // NSAP
NULL, // NSAPPTR
NULL, // SIG
NULL, // KEY
NULL, // PX
NULL, // GPOS
FlatRpcRecordConvert, // AAAA
NULL, // 29
NULL, // 30
NULL, // 31
NULL, // 32
SrvRpcRecordConvert, // SRV
NULL, // ATMA
NULL, // 35
NULL, // 36
NULL, // 37
NULL, // 38
NULL, // 39
NULL, // 40
NULL, // OPT
NULL, // 42
NULL, // 43
NULL, // 44
NULL, // 45
NULL, // 46
NULL, // 47
NULL, // 48
//
// NOTE: last type indexed by type ID MUST be set
// as MAX_SELF_INDEXED_TYPE #define in record.h
// (see note above in record info table)
// note these follow, but require OFFSET_TO_WINS_RR subtraction
// from actual type value
NULL, // TKEY
NULL, // TSIG
FlatRpcRecordConvert, // WINS
NbstatRpcRecordConvert // WINS-R
};
//
// API for doing conversion
//
PDNS_RECORD
DnsConvertRpcBufferToRecords(
IN PBYTE * ppByte,
IN PBYTE pStopByte,
IN DWORD cRecords,
IN PDNS_NAME pszNodeName,
IN BOOLEAN fUnicode
)
/*++
Routine Description:
Convert RPC buffer records to standard DNS records.
Arguments:
ppByte -- addr of ptr into buffer where records start
pStopByte -- stop byte of buffer
cRecords -- number of records to convert
pszNodeName -- node name (in desired format, not converted)
fUnicode -- flag, write records into unicode
Return Value:
Ptr to new record(s) if successful.
NULL on failure.
--*/
{
PDNS_RPC_RECORD prpcRecord = (PDNS_RPC_RECORD)*ppByte;
PDNS_RECORD precord;
DNS_RRSET rrset;
WORD index;
WORD type;
DNS_CHARSET charSet;
RR_CONVERT_FUNCTION pFunc;
DNS_ASSERT( DNS_IS_DWORD_ALIGNED(prpcRecord) );
IF_DNSDBG( RPC2 )
{
DNS_PRINT((
"Enter DnsConvertRpcBufferToRecords()\n"
" pRpcRecord = %p\n"
" Count = %d\n"
" Nodename = %s%S\n",
prpcRecord,
cRecords,
DNSSTRING_UTF8( fUnicode, pszNodeName ),
DNSSTRING_WIDE( fUnicode, pszNodeName ) ));
}
DNS_RRSET_INIT( rrset );
//
// loop until out of nodes
//
while( cRecords-- )
{
if ( (PBYTE)prpcRecord >= pStopByte ||
(PBYTE)&prpcRecord->Data + prpcRecord->wDataLength > pStopByte )
{
DNS_PRINT((
"ERROR: Bogus buffer at %p\n"
" Record leads past buffer end at %p\n"
" with %d records remaining\n",
prpcRecord,
pStopByte,
cRecords+1 ));
DNS_ASSERT( FALSE );
return NULL;
}
//
// convert record
// set unicode flag if converting
//
charSet = DnsCharSetUtf8;
if ( fUnicode )
{
charSet = DnsCharSetUnicode;
}
type = prpcRecord->wType;
index = INDEX_FOR_TYPE( type );
DNS_ASSERT( index <= MAX_RECORD_TYPE_INDEX );
if ( !index || !(pFunc = RRRpcConvertTable[ index ]) )
{
// if unknown type try flat record copy -- best we can
// do to protect if server added new types since admin built
DNS_PRINT((
"ERROR: no RPC to DNS_RECORD conversion routine for type %d\n"
" using flat conversion routine\n",
type ));
pFunc = FlatRpcRecordConvert;
}
precord = (*pFunc)( prpcRecord, charSet );
if ( ! precord )
{
DNS_PRINT((
"ERROR: Record build routine failure for record type %d\n"
" status = %p\n\n",
type,
GetLastError() ));
prpcRecord = DNS_GET_NEXT_RPC_RECORD(prpcRecord);
continue;
}
//
// fill out record structure
//
precord->pName = pszNodeName;
precord->wType = type;
RECORD_CHARSET( precord ) = charSet;
//
// DEVNOTE: data types (root hint, glue set)
//
if ( prpcRecord->dwFlags & DNS_RPC_RECORD_FLAG_CACHE_DATA )
{
precord->Flags.S.Section = DNSREC_CACHE_DATA;
}
else
{
precord->Flags.S.Section = DNSREC_ZONE_DATA;
}
IF_DNSDBG( INIT )
{
DnsDbg_Record(
"New record built\n",
precord );
}
//
// link into RR set
//
DNS_RRSET_ADD( rrset, precord );
prpcRecord = DNS_GET_NEXT_RPC_RECORD(prpcRecord);
}
IF_DNSDBG( RPC2 )
{
DnsDbg_RecordSet(
"Finished DnsConvertRpcBufferToRecords() ",
rrset.pFirstRR );
}
// reset ptr in buffer
*ppByte = (PBYTE) prpcRecord;
return rrset.pFirstRR;
}
PDNS_NODE
DnsConvertRpcBufferNode(
IN PDNS_RPC_NODE pRpcNode,
IN PBYTE pStopByte,
IN BOOLEAN fUnicode
)
/*++
Routine Description:
Convert RPC buffer records to standard DNS records.
Arguments:
pRpcNode -- ptr to RPC node in buffer
pStopByte -- stop byte of buffer
fUnicode -- flag, write records into unicode
Return Value:
Ptr to new node if successful.
NULL on failure.
--*/
{
PDNS_NODE pnode;
PDNS_RPC_NAME pname;
PBYTE pendNode;
IF_DNSDBG( RPC2 )
{
DnsDbg_RpcNode(
"Enter DnsConvertRpcBufferNode() ",
pRpcNode );
}
//
// validate node
//
DNS_ASSERT( DNS_IS_DWORD_ALIGNED(pRpcNode) );
pendNode = (PBYTE)pRpcNode + pRpcNode->wLength;
if ( pendNode > pStopByte )
{
DNS_ASSERT( FALSE );
return NULL;
}
pname = &pRpcNode->dnsNodeName;
if ( (PBYTE)DNS_GET_NEXT_NAME(pname) > pendNode )
{
DNS_ASSERT( FALSE );
return NULL;
}
//
// create node
//
pnode = (PDNS_NODE) ALLOCATE_HEAP( sizeof(DNS_NODE)
+ STR_BUF_SIZE_GIVEN_UTF8_LEN( pname->cchNameLength, fUnicode ) );
if ( !pnode )
{
return NULL;
}
pnode->pNext = NULL;
pnode->pRecord = NULL;
pnode->Flags.W = 0;
//
// copy owner name, starts directly after node structure
//
pnode->pName = (PWCHAR) ((PBYTE)pnode + sizeof(DNS_NODE));
if ( ! Dns_StringCopy(
(PCHAR) pnode->pName,
NULL,
pname->achName,
pname->cchNameLength,
DnsCharSetUtf8, // UTF8 in
fUnicode ? DnsCharSetUnicode : DnsCharSetUtf8 ) )
{
// name conversion error
DNS_ASSERT( FALSE );
FREE_HEAP( pnode );
return NULL;
}
IF_DNSDBG( RPC2 )
{
DnsDbg_RpcName(
"Node name in RPC buffer: ",
pname,
"\n" );
DnsDbg_String(
"Converted name ",
(PCHAR) pnode->pName,
fUnicode,
"\n" );
}
//
// set flags
// - name always internal
// - catch domain roots
//
pnode->Flags.S.Unicode = fUnicode;
if ( pRpcNode->dwChildCount ||
(pRpcNode->dwFlags & DNS_RPC_NODE_FLAG_STICKY) )
{
pnode->Flags.S.Domain = TRUE;
}
IF_DNSDBG( RPC2 )
{
DnsDbg_Node(
"Finished DnsConvertRpcBufferNode() ",
pnode,
TRUE ); // view the records
}
return pnode;
}
PDNS_NODE
DnsConvertRpcBuffer(
OUT PDNS_NODE * ppNodeLast,
IN DWORD dwBufferLength,
IN BYTE abBuffer[],
IN BOOLEAN fUnicode
)
{
PBYTE pbyte;
PBYTE pstopByte;
INT countRecords;
PDNS_NODE pnode;
PDNS_NODE pnodeFirst = NULL;
PDNS_NODE pnodeLast = NULL;
PDNS_RECORD precord;
IF_DNSDBG( RPC2 )
{
DNS_PRINT((
"DnsConvertRpcBuffer( %p ), len = %d\n",
abBuffer,
dwBufferLength ));
}
//
// find stop byte
//
DNS_ASSERT( DNS_IS_DWORD_ALIGNED(abBuffer) );
pstopByte = abBuffer + dwBufferLength;
pbyte = abBuffer;
//
// loop until out of nodes
//
while( pbyte < pstopByte )
{
//
// build owner node
// - only build complete nodes
// - add to list
//
if ( !IS_COMPLETE_NODE( (PDNS_RPC_NODE)pbyte ) )
{
break;
}
pnode = DnsConvertRpcBufferNode(
(PDNS_RPC_NODE)pbyte,
pstopByte,
fUnicode );
if ( !pnode )
{
DNS_ASSERT( FALSE );
// DEVNOTE: cleanup
return NULL;
}
if ( !pnodeFirst )
{
pnodeFirst = pnode;
pnodeLast = pnode;
}
else
{
pnodeLast->pNext = pnode;
pnodeLast = pnode;
}
countRecords = ((PDNS_RPC_NODE)pbyte)->wRecordCount;
pbyte += ((PDNS_RPC_NODE)pbyte)->wLength;
pbyte = DNS_NEXT_DWORD_PTR(pbyte);
//
// for each node, build all records
//
if ( countRecords )
{
precord = DnsConvertRpcBufferToRecords(
& pbyte,
pstopByte,
countRecords,
(PCHAR) pnode->pName,
fUnicode );
if ( !precord )
{
DNS_ASSERT( FALSE );
}
pnode->pRecord = precord;
}
}
// set last node and return first node
*ppNodeLast = pnodeLast;
return pnodeFirst;
}
//
// End rconvert.c
//
|
//we first include the header file we need for standard input/output functions
#include<stdio.h>
//this is the main method
void main()
{
//we take input for the no. of elements the user intends to input in the array
int n;
printf("Enter the no. of elements you would like to input:");
scanf("%d",&n);
printf("\n");
//array to take the input
int a[n];
//variable to store the sum
long sum=0;
for(int i=0; i<n; i++)
{
printf("Enter element %d:",(i+1));
scanf("%d",&a[i]);
//we parallely calculate the sum as we would require it later
sum+=a[i];
}//for ends
printf("\n");
//we output (sum/n)+1 as its the solution to the problem we are solving
printf("The minimum value to be assigned to the elements so that sum becomes greater than initial sum is: %d",((sum/n)+1));
}//main ends
|
# generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "fwb_gazebo"
PROJECT_SPACE_DIR = "/home/stark/ROS_workspaces/ros_ws/devel"
PROJECT_VERSION = "0.0.0"
|
import numpy as np
from gym_collision_avoidance.experiments.src.master_config import Master_Config
# from gym_collision_avoidance.experiments.src.master_config_deploy import Master_Config
master_config = Master_Config()
class Config(object):
def __init__(self):
#########################################################################
# GENERAL PARAMETERS
self.COLLISION_AVOIDANCE = True
self.continuous, self.discrete = range(2) # Initialize game types as enum
self.ACTION_SPACE_TYPE = self.continuous
### DISPLAY
self.ANIMATE_EPISODES = True
self.SHOW_EPISODE_PLOTS = True
self.SAVE_EPISODE_PLOTS = True
if not hasattr(self, "PLOT_CIRCLES_ALONG_TRAJ"):
self.PLOT_CIRCLES_ALONG_TRAJ = True
self.ANIMATION_PERIOD_STEPS = 2 # plot every n-th DT step (if animate mode on)
self.PLT_LIMITS = None
self.PLT_FIG_SIZE = (10, 8)
if not hasattr(self, "USE_STATIC_MAP"):
self.USE_STATIC_MAP = False
### TRAIN / PLAY / EVALUATE
self.TRAIN_MODE = True # Enable to see the trained agent in action (for testing)
self.PLAY_MODE = False # Enable to see the trained agent in action (for testing)
self.EVALUATE_MODE = False # Enable to see the trained agent in action (for testing)
### REWARDS
self.REWARD_AT_GOAL = 1.0 # reward given when agent reaches goal position
self.REWARD_COLLISION_WITH_AGENT = -0.25 # reward given when agent collides with another agent
self.REWARD_COLLISION_WITH_WALL = -0.25 # reward given when agent collides with wall
self.REWARD_GETTING_CLOSE = -0.1 # reward when agent gets close to another agent (unused?)
self.REWARD_ENTERED_NORM_ZONE = -0.05 # reward when agent enters another agent's social zone
self.REWARD_TIME_STEP = 0.0 # default reward given if none of the others apply (encourage speed)
self.REWARD_WIGGLY_BEHAVIOR = 0.0
self.WIGGLY_BEHAVIOR_THRESHOLD = np.inf
self.COLLISION_DIST = 0.0 # meters between agents' boundaries for collision
self.GETTING_CLOSE_RANGE = 0.2 # meters between agents' boundaries for collision
# self.SOCIAL_NORMS = "right"
# self.SOCIAL_NORMS = "left"
self.SOCIAL_NORMS = "none"
### SIMULATION
self.DT = 0.25 # seconds between simulation time steps
self.NEAR_GOAL_THRESHOLD = 0.3
self.MAX_TIME_RATIO = 2. # agent has this number times the straight-line-time to reach its goal before "timing out"
### TEST CASE SETTINGS
self.TEST_CASE_FN = "get_testcase_random"
self.TEST_CASE_ARGS = {
'policy_to_ensure': 'learning_ga3c',
'policies': ['noncoop', 'learning_ga3c', 'static'],
'policy_distr': [0.05, 0.9, 0.05],
'speed_bnds': [0.5, 2.0],
'radius_bnds': [0.2, 0.8],
'side_length': [
{'num_agents': [0,5], 'side_length': [4,5]},
{'num_agents': [5,np.inf], 'side_length': [6,8]},
],
# 'agents_sensors': ['other_agents_states_encoded'],
}
if not hasattr(self, "MAX_NUM_AGENTS_IN_ENVIRONMENT"):
self.MAX_NUM_AGENTS_IN_ENVIRONMENT = 4
if not hasattr(self, "MAX_NUM_AGENTS_TO_SIM"):
self.MAX_NUM_AGENTS_TO_SIM = 4
self.MAX_NUM_OTHER_AGENTS_IN_ENVIRONMENT = self.MAX_NUM_AGENTS_IN_ENVIRONMENT - 1
if not hasattr(self, "MAX_NUM_OTHER_AGENTS_OBSERVED"):
self.MAX_NUM_OTHER_AGENTS_OBSERVED = self.MAX_NUM_AGENTS_IN_ENVIRONMENT - 1
### EXPERIMENTS
self.PLOT_EVERY_N_EPISODES = 100 # for tensorboard visualization
### SENSORS
self.SENSING_HORIZON = np.inf
# self.SENSING_HORIZON = 3.0
self.LASERSCAN_LENGTH = 512 # num range readings in one scan
self.LASERSCAN_NUM_PAST = 3 # num range readings in one scan
self.NUM_STEPS_IN_OBS_HISTORY = 1 # number of time steps to store in observation vector
self.NUM_PAST_ACTIONS_IN_STATE = 0
### RVO AGENTS
self.RVO_TIME_HORIZON = 20.0 #5.0
self.RVO_COLLAB_COEFF = 0.5
self.RVO_ANTI_COLLAB_T = 1.0
### OBSERVATION VECTOR
self.TRAIN_SINGLE_AGENT = False
self.STATE_INFO_DICT = {
'dist_to_goal': {
'dtype': np.float32,
'size': 1,
'bounds': [-np.inf, np.inf],
'attr': 'get_agent_data("dist_to_goal")',
'std': np.array([5.], dtype=np.float32),
'mean': np.array([0.], dtype=np.float32)
},
'radius': {
'dtype': np.float32,
'size': 1,
'bounds': [0, np.inf],
'attr': 'get_agent_data("radius")',
'std': np.array([1.0], dtype=np.float32),
'mean': np.array([0.5], dtype=np.float32)
},
'heading_ego_frame': {
'dtype': np.float32,
'size': 1,
'bounds': [-np.pi, np.pi],
'attr': 'get_agent_data("heading_ego_frame")',
'std': np.array([3.14], dtype=np.float32),
'mean': np.array([0.], dtype=np.float32)
},
'pref_speed': {
'dtype': np.float32,
'size': 1,
'bounds': [0, np.inf],
'attr': 'get_agent_data("pref_speed")',
'std': np.array([1.0], dtype=np.float32),
'mean': np.array([1.0], dtype=np.float32)
},
'num_other_agents': {
'dtype': np.float32,
'size': 1,
'bounds': [0, np.inf],
'attr': 'get_agent_data("num_other_agents_observed")',
'std': np.array([1.0], dtype=np.float32),
'mean': np.array([1.0], dtype=np.float32)
},
'other_agent_states': {
'dtype': np.float32,
'size': 7,
'bounds': [-np.inf, np.inf],
'attr': 'get_agent_data("other_agent_states")',
'std': np.array([5.0, 5.0, 1.0, 1.0, 1.0, 5.0, 1.0], dtype=np.float32),
'mean': np.array([0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 1.0], dtype=np.float32)
},
'other_agents_states': {
'dtype': np.float32,
'size': (self.MAX_NUM_OTHER_AGENTS_OBSERVED,7),
'bounds': [-np.inf, np.inf],
'attr': 'get_sensor_data("other_agents_states")',
'std': np.tile(np.array([5.0, 5.0, 1.0, 1.0, 1.0, 5.0, 1.0], dtype=np.float32), (self.MAX_NUM_OTHER_AGENTS_OBSERVED, 1)),
'mean': np.tile(np.array([0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 1.0], dtype=np.float32), (self.MAX_NUM_OTHER_AGENTS_OBSERVED, 1)),
},
'laserscan': {
'dtype': np.float32,
'size': (self.LASERSCAN_NUM_PAST, self.LASERSCAN_LENGTH),
'bounds': [0., 6.],
'attr': 'get_sensor_data("laserscan")',
'std': 5.*np.ones((self.LASERSCAN_NUM_PAST, self.LASERSCAN_LENGTH), dtype=np.float32),
'mean': 5.*np.ones((self.LASERSCAN_NUM_PAST, self.LASERSCAN_LENGTH), dtype=np.float32)
},
'is_learning': {
'dtype': np.float32,
'size': 1,
'bounds': [0., 1.],
'attr': 'get_agent_data_equiv("policy.str", "learning")'
},
'other_agents_states_encoded': {
'dtype': np.float32,
'size': 100.,
'bounds': [0., 1.],
'attr': 'get_sensor_data("other_agents_states_encoded")'
}
}
self.setup_obs()
# self.AGENT_SORTING_METHOD = "closest_last"
self.AGENT_SORTING_METHOD = "closest_first"
# self.AGENT_SORTING_METHOD = "time_to_impact"
def setup_obs(self):
if not hasattr(self, "STATES_IN_OBS"):
self.STATES_IN_OBS = ['is_learning', 'num_other_agents', 'dist_to_goal', 'heading_ego_frame', 'pref_speed', 'radius', 'other_agents_states']
# STATES_IN_OBS = ['dist_to_goal', 'radius', 'heading_ego_frame', 'pref_speed', 'other_agent_states', 'use_ppo', 'laserscan']
# STATES_IN_OBS = ['dist_to_goal', 'radius', 'heading_ego_frame', 'pref_speed', 'other_agent_states', 'use_ppo'] # 2-agent net
# STATES_IN_OBS = ['dist_to_goal', 'radius', 'heading_ego_frame', 'pref_speed', 'other_agents_states', 'use_ppo', 'num_other_agents', 'laserscan'] # LSTM
if not hasattr(self, "STATES_NOT_USED_IN_POLICY"):
self.STATES_NOT_USED_IN_POLICY = ['is_learning']
self.MEAN_OBS = {}; self.STD_OBS = {}
for state in self.STATES_IN_OBS:
if 'mean' in self.STATE_INFO_DICT[state]:
self.MEAN_OBS[state] = self.STATE_INFO_DICT[state]['mean']
if 'std' in self.STATE_INFO_DICT[state]:
self.STD_OBS[state] = self.STATE_INFO_DICT[state]['std']
class Train_5(Config):
def __init__(self):
Config.__init__(self)
print("::::::::::::Loading TRAIN CONFIG:::::::::::")
self.STATES_IN_OBS = ['dist_to_goal','heading_ego_frame','pref_speed','radius','other_agents_states']
self.TRAIN_SINGLE_AGENT = True # train only one agent (multi-agent possible)
self.MAX_NUM_AGENTS_IN_ENVIRONMENT = 6
self.MAX_NUM_AGENTS_TO_SIM = 6
self.TEST_CASE_ARGS['num_agents'] = 6
self.TEST_CASE_ARGS['policy_to_ensure'] = 'learning_cadrl'
self.TEST_CASE_ARGS['policies'] = ['learning_cadrl', 'learning']
self.agent_time_out = master_config.agent_time_out
self.DT = master_config.DT
self.MAX_TIME_RATIO = master_config.MAX_TIME_RATIO
self.SAVE_EPISODE_PLOTS = master_config.SAVE_EPISODE_PLOTS
self.SHOW_EPISODE_PLOTS = master_config.SHOW_EPISODE_PLOTS
self.ANIMATE_EPISODES = master_config.ANIMATE_EPISODES
self.NEAR_GOAL_THRESHOLD = master_config.NEAR_GOAL_THRESHOLD
self.PLT_LIMITS = [[-10, 10], [-10, 10]]
self.NUM_AGENTS_TO_TEST = [6]
#self.POLICIES_TO_TEST = ['GA3C-CADRL-10']
self.POLICIES_TO_TEST = ['learning_cadrl', 'learning']
self.MAX_NUM_OTHER_AGENTS_OBSERVED = self.MAX_NUM_AGENTS_IN_ENVIRONMENT - 1
self.PLT_FIG_SIZE = master_config.PLT_FIG_SIZE
self.PLOT_CIRCLES_ALONG_TRAJ = master_config.PLOT_CIRCLES_ALONG_TRAJ
self.NUM_AGENTS_TO_TEST = master_config.NUM_AGENTS_TO_TEST
self.POLICIES_TO_TEST = master_config.POLICIES_TO_TEST
self.NUM_TEST_CASES = master_config.NUM_TEST_CASES
class Train_1(Config):
def __init__(self):
Config.__init__(self)
print("::::::::::::Loading TRAIN CONFIG:::::::::::")
self.STATES_IN_OBS = ['dist_to_goal','heading_ego_frame','pref_speed','radius','other_agent_states']
self.TRAIN_SINGLE_AGENT = True # train only one agent (multi-agent possible)
self.MAX_NUM_AGENTS_IN_ENVIRONMENT = 2
self.MAX_NUM_AGENTS_TO_SIM = 2
self.TEST_CASE_ARGS['num_agents'] = 2
self.TEST_CASE_ARGS['policy_to_ensure'] = 'learning_cadrl'
self.TEST_CASE_ARGS['policies'] = ['learning_cadrl', 'learning']
self.agent_time_out = master_config.agent_time_out
self.DT = master_config.DT
self.MAX_TIME_RATIO = master_config.MAX_TIME_RATIO
self.SAVE_EPISODE_PLOTS = master_config.SAVE_EPISODE_PLOTS
self.SHOW_EPISODE_PLOTS = master_config.SHOW_EPISODE_PLOTS
self.ANIMATE_EPISODES = master_config.ANIMATE_EPISODES
self.NEAR_GOAL_THRESHOLD = master_config.NEAR_GOAL_THRESHOLD
self.PLT_LIMITS = [[-10, 10], [-10, 10]]
self.NUM_AGENTS_TO_TEST = [2]
#self.POLICIES_TO_TEST = ['GA3C-CADRL-10']
self.POLICIES_TO_TEST = ['learning_cadrl', 'learning']
self.MAX_NUM_OTHER_AGENTS_OBSERVED = self.MAX_NUM_AGENTS_IN_ENVIRONMENT - 1
self.PLT_FIG_SIZE = master_config.PLT_FIG_SIZE
self.PLOT_CIRCLES_ALONG_TRAJ = master_config.PLOT_CIRCLES_ALONG_TRAJ
self.NUM_AGENTS_TO_TEST = master_config.NUM_AGENTS_TO_TEST
self.POLICIES_TO_TEST = master_config.POLICIES_TO_TEST
self.NUM_TEST_CASES = master_config.NUM_TEST_CASES
class EvaluateConfig(Config):
def __init__(self):
self.MAX_NUM_AGENTS_IN_ENVIRONMENT = master_config.MAX_NUM_AGENTS_IN_ENVIRONMENT
Config.__init__(self)
self.EVALUATE_MODE = master_config.EVALUATE_MODE
self.TRAIN_MODE = master_config.TRAIN_MODE
self.DT = master_config.DT
self.MAX_TIME_RATIO = master_config.MAX_TIME_RATIO
class Example(EvaluateConfig):
def __init__(self):
EvaluateConfig.__init__(self)
self.SAVE_EPISODE_PLOTS = master_config.SAVE_EPISODE_PLOTS
self.SHOW_EPISODE_PLOTS = master_config.SHOW_EPISODE_PLOTS
self.ANIMATE_EPISODES = master_config.ANIMATE_EPISODES
self.NEAR_GOAL_THRESHOLD = master_config.NEAR_GOAL_THRESHOLD
self.PLT_LIMITS = [[-10, 10], [-10, 10]]
self.PLT_FIG_SIZE = master_config.PLT_FIG_SIZE
self.PLOT_CIRCLES_ALONG_TRAJ = master_config.PLOT_CIRCLES_ALONG_TRAJ
self.NUM_AGENTS_TO_TEST = master_config.NUM_AGENTS_TO_TEST
self.POLICIES_TO_TEST = master_config.POLICIES_TO_TEST
self.NUM_TEST_CASES = master_config.NUM_TEST_CASES
self.MAX_NUM_AGENTS_IN_ENVIRONMENT = master_config.MAX_NUM_AGENTS_IN_ENVIRONMENT
self.MAX_NUM_OTHER_AGENTS_OBSERVED = master_config.MAX_NUM_OTHER_AGENTS_OBSERVED
self.agent_time_out = master_config.agent_time_out
class Formations(EvaluateConfig): #CADRL
def __init__(self):
EvaluateConfig.__init__(self)
self.SAVE_EPISODE_PLOTS = True
self.SHOW_EPISODE_PLOTS = False
self.ANIMATE_EPISODES = True
self.NEAR_GOAL_THRESHOLD = 0.2
self.PLT_LIMITS = [[-5, 6], [-2, 7]]
self.PLT_FIG_SIZE = (10,10)
self.PLOT_CIRCLES_ALONG_TRAJ = False
self.NUM_AGENTS_TO_TEST = [6]
self.POLICIES_TO_TEST = ['GA3C-CADRL-10']
self.NUM_TEST_CASES = 2
self.LETTERS = ['C', 'A', 'D', 'R', 'L']
############################
class Custom(EvaluateConfig):
def __init__(self):
EvaluateConfig.__init__(self)
self.SAVE_EPISODE_PLOTS = master_config.SAVE_EPISODE_PLOTS
self.SHOW_EPISODE_PLOTS = master_config.SHOW_EPISODE_PLOTS
self.ANIMATE_EPISODES = master_config.ANIMATE_EPISODES
self.NEAR_GOAL_THRESHOLD = master_config.NEAR_GOAL_THRESHOLD
self.PLT_LIMITS = master_config.PLT_LIMITS
self.PLT_FIG_SIZE = master_config.PLT_FIG_SIZE
self.PLOT_CIRCLES_ALONG_TRAJ = master_config.PLOT_CIRCLES_ALONG_TRAJ
self.NUM_AGENTS_TO_TEST = master_config.NUM_AGENTS_TO_TEST
self.POLICIES_TO_TEST = master_config.POLICIES_TO_TEST
self.NUM_TEST_CASES = master_config.NUM_TEST_CASES
self.MAX_NUM_AGENTS_IN_ENVIRONMENT = master_config.MAX_NUM_AGENTS_IN_ENVIRONMENT
self.MAX_NUM_OTHER_AGENTS_OBSERVED = master_config.MAX_NUM_OTHER_AGENTS_OBSERVED
self.agent_time_out = master_config.agent_time_out
#######################################
class SmallTestSuite(EvaluateConfig):
def __init__(self):
EvaluateConfig.__init__(self)
self.SAVE_EPISODE_PLOTS = True
self.SHOW_EPISODE_PLOTS = False
self.ANIMATE_EPISODES = False
self.PLOT_CIRCLES_ALONG_TRAJ = True
self.NUM_TEST_CASES = 4
class FullTestSuite(EvaluateConfig): #FULL_TEST
def __init__(self):
self.MAX_NUM_OTHER_AGENTS_OBSERVED = 19
EvaluateConfig.__init__(self)
self.SAVE_EPISODE_PLOTS = True
self.SHOW_EPISODE_PLOTS = False
self.ANIMATE_EPISODES = False
self.PLOT_CIRCLES_ALONG_TRAJ = True
self.NUM_TEST_CASES = 4
self.NUM_AGENTS_TO_TEST = [2,3,4]
self.RECORD_PICKLE_FILES = False
# # DRLMACA
# self.FIXED_RADIUS_AND_VPREF = True
# self.NEAR_GOAL_THRESHOLD = 0.8
# Normal
self.POLICIES_TO_TEST = [
'CADRL', 'RVO', 'GA3C-CADRL-10'
# 'GA3C-CADRL-4-WS-4-1', 'GA3C-CADRL-4-WS-4-2', 'GA3C-CADRL-4-WS-4-3', 'GA3C-CADRL-4-WS-4-4', 'GA3C-CADRL-4-WS-4-5',
# 'GA3C-CADRL-4-WS-6-1', 'GA3C-CADRL-4-WS-6-2', 'GA3C-CADRL-4-WS-6-3', 'GA3C-CADRL-4-WS-6-4',
# 'GA3C-CADRL-4-WS-8-1', 'GA3C-CADRL-4-WS-8-2', 'GA3C-CADRL-4-WS-8-3', 'GA3C-CADRL-4-WS-8-4',
# 'GA3C-CADRL-4-LSTM-1', 'GA3C-CADRL-4-LSTM-2', 'GA3C-CADRL-4-LSTM-3', 'GA3C-CADRL-4-LSTM-4', 'GA3C-CADRL-4-LSTM-5',
# 'GA3C-CADRL-10-WS-4-1', 'GA3C-CADRL-10-WS-4-2', 'GA3C-CADRL-10-WS-4-3', 'GA3C-CADRL-10-WS-4-4', 'GA3C-CADRL-10-WS-4-5',
# 'GA3C-CADRL-10-WS-6-1', 'GA3C-CADRL-10-WS-6-2', 'GA3C-CADRL-10-WS-6-3', 'GA3C-CADRL-10-WS-6-4',
# 'GA3C-CADRL-10-WS-8-1', 'GA3C-CADRL-10-WS-8-2', 'GA3C-CADRL-10-WS-8-3', 'GA3C-CADRL-10-WS-8-4',
# 'GA3C-CADRL-10-LSTM-1', 'GA3C-CADRL-10-LSTM-2', 'GA3C-CADRL-10-LSTM-3', 'GA3C-CADRL-10-LSTM-4', 'GA3C-CADRL-10-LSTM-5',
# 'CADRL', 'RVO'
]
self.FIXED_RADIUS_AND_VPREF = False
self.NEAR_GOAL_THRESHOLD = 0.2
class CollectRegressionDataset(EvaluateConfig):
def __init__(self):
self.MAX_NUM_AGENTS_IN_ENVIRONMENT = 4
self.MAX_NUM_AGENTS_TO_SIM = 4
self.DATASET_NAME = ""
# # Laserscan mode
# self.USE_STATIC_MAP = True
# self.STATES_IN_OBS = ['is_learning', 'num_other_agents', 'dist_to_goal', 'heading_ego_frame', 'pref_speed', 'radius', 'laserscan']
# self.DATASET_NAME = "laserscan_"
EvaluateConfig.__init__(self)
self.TEST_CASE_ARGS['policies'] = 'CADRL'
self.AGENT_SORTING_METHOD = "closest_first"
# # Laserscan mode
# self.TEST_CASE_ARGS['agents_sensors'] = ['laserscan', 'other_agents_states']
|
import graphene
from dagster import AssetKey, check
from dagster.core.events.log import EventLogEntry
from dagster.core.host_representation import ExternalRepository
from dagster.core.host_representation.external_data import (
ExternalAssetNode,
ExternalStaticPartitionsDefinitionData,
ExternalTimeWindowPartitionsDefinitionData,
)
from .asset_key import GrapheneAssetKey
from .errors import GrapheneAssetNotFoundError
from .pipelines.pipeline import GrapheneAssetMaterialization, GraphenePipeline
from .util import non_null_list
class GrapheneAssetDependency(graphene.ObjectType):
class Meta:
name = "AssetDependency"
inputName = graphene.NonNull(graphene.String)
asset = graphene.NonNull("dagster_graphql.schema.asset_graph.GrapheneAssetNode")
def __init__(self, external_repository, input_name, asset_key):
self._external_repository = check.inst_param(
external_repository, "external_repository", ExternalRepository
)
self._asset_key = check.inst_param(asset_key, "asset_key", AssetKey)
super().__init__(inputName=input_name)
def resolve_asset(self, _graphene_info):
return GrapheneAssetNode(
self._external_repository,
self._external_repository.get_external_asset_node(self._asset_key),
)
class GrapheneAssetNode(graphene.ObjectType):
id = graphene.NonNull(graphene.ID)
assetKey = graphene.NonNull(GrapheneAssetKey)
description = graphene.String()
opName = graphene.String()
jobName = graphene.String()
jobs = non_null_list(GraphenePipeline)
dependencies = non_null_list(GrapheneAssetDependency)
dependedBy = non_null_list(GrapheneAssetDependency)
dependencyKeys = non_null_list(GrapheneAssetKey)
dependedByKeys = non_null_list(GrapheneAssetKey)
assetMaterializations = graphene.Field(
non_null_list(GrapheneAssetMaterialization),
partitions=graphene.List(graphene.String),
beforeTimestampMillis=graphene.String(),
limit=graphene.Int(),
)
partitionKeys = non_null_list(graphene.String)
class Meta:
name = "AssetNode"
def __init__(
self,
external_repository,
external_asset_node,
latest_materialization=None,
fetched_materialization=False,
):
self._external_repository = check.inst_param(
external_repository, "external_repository", ExternalRepository
)
self._external_asset_node = check.inst_param(
external_asset_node, "external_asset_node", ExternalAssetNode
)
self._latest_materialization = check.opt_inst_param(
latest_materialization, "latest_materialization", EventLogEntry
)
# we need a separate flag, because the asset might not have been materialized, so the None
# value has significance
self._fetched_materialization = check.bool_param(
fetched_materialization, "fetched_materialization"
)
super().__init__(
id=external_asset_node.asset_key.to_string(),
assetKey=external_asset_node.asset_key,
opName=external_asset_node.op_name,
description=external_asset_node.op_description,
jobName=external_asset_node.job_names[0] if external_asset_node.job_names else None,
)
def resolve_dependencies(self, _graphene_info):
return [
GrapheneAssetDependency(
external_repository=self._external_repository,
input_name=dep.input_name,
asset_key=dep.upstream_asset_key,
)
for dep in self._external_asset_node.dependencies
]
def resolve_dependedBy(self, _graphene_info):
return [
GrapheneAssetDependency(
external_repository=self._external_repository,
input_name=dep.input_name,
asset_key=dep.downstream_asset_key,
)
for dep in self._external_asset_node.depended_by
]
def resolve_dependencyKeys(self, _graphene_info):
return [
GrapheneAssetKey(path=dep.upstream_asset_key.path)
for dep in self._external_asset_node.dependencies
]
def resolve_dependencyByKeys(self, _graphene_info):
return [
GrapheneAssetKey(path=dep.downstream_asset_key.path)
for dep in self._external_asset_node.depended_by
]
def resolve_assetMaterializations(self, graphene_info, **kwargs):
from ..implementation.fetch_assets import get_asset_events
try:
before_timestamp = (
int(kwargs.get("beforeTimestampMillis")) / 1000.0
if kwargs.get("beforeTimestampMillis")
else None
)
except ValueError:
before_timestamp = None
limit = kwargs.get("limit")
partitions = kwargs.get("partitions")
if self._fetched_materialization and limit == 1 and not partitions and not before_timestamp:
return (
[GrapheneAssetMaterialization(event=self._latest_materialization)]
if self._latest_materialization
else []
)
return [
GrapheneAssetMaterialization(event=event)
for event in get_asset_events(
graphene_info,
self._external_asset_node.asset_key,
partitions,
before_timestamp=before_timestamp,
limit=limit,
)
]
def resolve_jobs(self, _graphene_info):
job_names = self._external_asset_node.job_names or []
return [
GraphenePipeline(self._external_repository.get_full_external_pipeline(job_name))
for job_name in job_names
if self._external_repository.has_external_pipeline(job_name)
]
def resolve_partitionKeys(self, _graphene_info):
# TODO: Add functionality for dynamic partitions definition
partitions_def_data = self._external_asset_node.partitions_def_data
if partitions_def_data:
if isinstance(
partitions_def_data, ExternalStaticPartitionsDefinitionData
) or isinstance(partitions_def_data, ExternalTimeWindowPartitionsDefinitionData):
return [
partition.name
for partition in partitions_def_data.get_partitions_definition().get_partitions()
]
return []
class GrapheneAssetNodeOrError(graphene.Union):
class Meta:
types = (GrapheneAssetNode, GrapheneAssetNotFoundError)
name = "AssetNodeOrError"
|
import pytest
from pathlib import Path
from spikeinterface import download_dataset
from spikeinterface.extractors import read_mearec
from spikeinterface.sorters import run_sorter, run_sorter_container
def test_run_sorter_local():
local_path = download_dataset(remote_path='mearec/mearec_test_10s.h5')
recording, sorting_true = read_mearec(local_path)
sorter_params = {'detect_threshold': 4.9}
sorting = run_sorter('tridesclous', recording, output_folder='sorting_tdc_local',
remove_existing_folder=True, delete_output_folder=False,
verbose=True, raise_error=True, docker_image=None,
**sorter_params)
print(sorting)
@pytest.mark.skip("Docker tests don't run with pytest : test it manually")
def test_run_sorter_docker():
mearec_filename = download_dataset(remote_path='mearec/mearec_test_10s.h5')
base_folder = Path('/data_local/DataSpikeSorting/mearec')
mearec_filename = base_folder / 'recordings_collision_10cells_Neuronexus-32_180s.h5'
recording, sorting_true = read_mearec(mearec_filename)
sorter_params = {'detect_threshold': 4.9}
docker_image = 'spikeinterface/tridesclous-base:1.6.4'
sorting = run_sorter('tridesclous', recording, output_folder=base_folder/'sorting_tdc_docker',
remove_existing_folder=True, delete_output_folder=False,
verbose=True, raise_error=True, docker_image=docker_image,
**sorter_params)
print(sorting)
@pytest.mark.skip("Singularity tests don't run with pytest : test it manually")
def test_run_sorter_singularity():
#mearec_filename = download_dataset(remote_path='mearec/mearec_test_10s.h5')
base_folder = Path('/mnt/data/sam/DataSpikeSorting/mearec')
mearec_filename = base_folder / 'recordings_collision_10cells_Neuronexus-32_180s.h5'
recording, sorting_true = read_mearec(mearec_filename)
sorter_params = {'detect_threshold': 4.9}
singularity_image = 'spikeinterface/tridesclous-base:1.6.4'
sorting = run_sorter('tridesclous', recording, output_folder=base_folder/'sorting_tdc_singularity',
remove_existing_folder=True, delete_output_folder=False,
verbose=True, raise_error=True, singularity_image=singularity_image,
**sorter_params)
print(sorting)
if __name__ == '__main__':
# test_run_sorter_local()
# test_run_sorter_docker()
test_run_sorter_singularity()
|
# Copyright 2016 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Module containing base class for logging transport."""
class Transport(object):
"""Base class for Google Cloud Logging handler transports.
Subclasses of :class:`Transport` must have constructors that accept a
client and name object, and must override :meth:`send`.
"""
def send(self, record, message, **kwargs):
"""Transport send to be implemented by subclasses.
Args:
record (logging.LogRecord): Python log record that the handler was called with.
message (str or dict): The message from the ``LogRecord`` after being
formatted by the associated log formatters.
kwargs: Additional optional arguments for the logger
"""
raise NotImplementedError
def flush(self):
"""Submit any pending log records.
For blocking/sync transports, this is a no-op.
"""
|
# -*- coding: utf-8 -*-
# Copyright (c) 2015, Helio de Jesus and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _, msgprint, throw
from frappe.model.document import Document
from frappe.model.naming import make_autoname
from datetime import datetime, timedelta
from frappe.utils import cstr, get_datetime, getdate, cint, get_datetime_str
class FichadeProcesso(Document):
def autoname(self):
print(self.process_number)
print(len(self.serie_tipo))
#print(make_autoname(self.serie_tipo))
#print('Serie ', make_autoname(self.serie_tipo)[0:len(self.serie_tipo)-1])
if len(self.serie_tipo) == 10:
self.process_number = make_autoname(self.serie_tipo)[0:len(self.serie_tipo)-2] + self.process_number
else:
if (self.serie_tipo == "ASTXXXX-"):
#replace xxx by YEAR
print 'AQUIIIII'
print self.serie_tipo[0:3]
print self.serie_tipo[0:3] + self.process_number + "-" + format(datetime.now(),"%Y")
self.process_number = self.serie_tipo[0:3] + self.process_number + "-" + format(datetime.now(),"%Y")
else:
self.process_number = make_autoname(self.serie_tipo)[0:len(self.serie_tipo)-1] + self.process_number
print ('numero ', self.process_number)
self.name = self.process_number #make_autoname(self.numero_de_processo + '/' + '.YYYY./.#####')
#self.name = make_autoname(self.process_number + '-' + '.###')
#self.usuario= frappe.session.user
def validate(self):
#Check numero processo is Number and 4 digits.
if len(self.process_number) < 4:
if len(self.process_number) == 1:
self.process_number = '000' + self.process_number
elif len(self.process_number) == 2:
self.process_number ='00' + self.process_number
elif len(self.process_number) == 3:
self.process_number ='0' + self.process_number
elif len(self.process_number) > 4:
if len(self.serie_tipo) == 10:
if len(self.process_number) != ((len(self.serie_tipo)-2)+4):
msgprint('Numero de Processo tem que ter somente 4 digitos')
self.process_number =None
frappe.validated = False
else:
if (self.serie_tipo == "ASTXXXX-"):
print 'passou'
elif len(self.process_number) != ((len(self.serie_tipo)-1)+4):
msgprint('Numero de Processo tem que ter somente 4 digitos')
self.process_number =None
frappe.validated = False
elif len(self.process_number) == '0000':
frappe.show('Numero de Processo nao pode ser 0000')
self.process_number = None
frappe.validated = False
print "tamanho ", len(self.servicos_processo)
if len(self.servicos_processo) == 0:
validation = False
frappe.msgprint("Inserir pelo menos um Servico", raise_exception = 1)
#if self.docstatus == 2:
# self.status_process = "Cancelado"
#elif self.servicos_processo[0].servico_ficha_processo == None:
# validation = False
# frappe.msgprint("Inserir pelo menos um Servico", raise_exception = 1)
if self.docstatus == 1 and self.status_process == 'Aberto' or self.status_process == 'Em Curso' :
print " criarProjeto ", self.status_process
self.status_process = 'Em Curso'
self.criar_projecto()
self.criar_salesorder()
# if self.docstatus == 0 and self.status_process =='Em Curso':
# print " criarProjeto "
# self.criar_projecto()
def criar_projecto(self):
print "Verifica o Project ...."
criarprojeto = False
if frappe.db.sql("""select name from `tabProject` WHERE name =%s """,(self.name), as_dict=False) ==():
criarprojeto = True
if criarprojeto == True:
print "Criar Projeto ...."
projecto = frappe.get_doc({
"doctype": "Project",
"project_name": self.name,
"priority": "Medium",
"status": "Open",
"percent_complete_method": "Task Completion",
"expected_start_date": get_datetime(frappe.utils.now()) + timedelta(days=1) ,
"expected_end_date": get_datetime(frappe.utils.now()) + timedelta(days=5), #self.et_delivery_process ,
"is_active": "Yes",
"project_type": "Internal",
"estimated_costing": self.broker_funds,
"customer": self.customer_reference
})
projecto.insert()
frappe.msgprint('{0}{1}'.format("Ficha de Processo criado como Projeto ", self.name))
self.project = self.name
#create the Tasks
for num_servicos in frappe.get_all("Servicos_Ficha_Processo",filters={'Parent':self.name},fields=['Parent','servico_ficha_processo','descricao_ficha_processo']):
#frappe.get_all("Servicos_Ficha_Processo",filters=[["Parent","like",self.process_number + "%"]],fields=["Parent","servico_ficha_processo","descricao_ficha_processo"]):
print "Criar Tarefas...."
if num_servicos.servico_ficha_processo:
# for num_avarias in fo_avarias:
tarefas = frappe.get_doc({
"doctype": "Task",
"project": self.name,
"subject": cstr(num_servicos.servico_ficha_processo) + ':' + cstr(num_servicos.descricao_ficha_processo),
"status": "Open",
"description": "Tarefa adicionada pelo Sistema",
"exp_start_date": get_datetime(frappe.utils.now()) + timedelta(days=1),
"exp_end_date": get_datetime(frappe.utils.now()) + timedelta(days=4), #self.et_delivery_process
#"task_weight": 1
})
tarefas.insert()
frappe.msgprint('{0}{1}'.format(num_servicos.servico_ficha_processo, " Criado como tarefa no Projecto ", self.name))
def criar_salesorder(self):
print "Verifica a Sale ...."
criarprojeto = False
if frappe.db.sql("""select name from `tabSales Order` WHERE name =%s """,(self.name), as_dict=False) ==():
criarprojeto = True
if criarprojeto == True:
print "Criar Sales Order ...."
projecto = frappe.get_doc({
"doctype": "Sales Order",
"delivery_date": get_datetime(frappe.utils.now()) + timedelta(days=2) ,
"customer": self.customer_reference,
"project":self.name
})
for num_servicos in frappe.get_all("Servicos_Ficha_Processo",filters={'Parent':self.name},fields=['Parent','servico_ficha_processo','descricao_ficha_processo','preco_ficha_processo']):
projecto.append('items',{
"item_code": num_servicos.servico_ficha_processo,
"item_name": num_servicos.descricao_ficha_processo,
"description": num_servicos.descricao_ficha_processo,
"rate":num_servicos.preco_ficha_processo,
"qty": 1
})
projecto.insert()
frappe.msgprint('{0}{1}'.format("Ficha de Processo criado como Ordem de Venda ", projecto.name))
#create the Tasks
self.sales_order = projecto.name
@frappe.whitelist()
def get_projecto_status(prj):
print frappe.db.sql("""select name, status from `tabProject` WHERE status = 'Completed' and name =%s """,(prj), as_dict=False)
return frappe.db.sql("""select name,status from `tabProject` WHERE name =%s """,(prj), as_dict=False)
@frappe.whitelist()
def get_projecto_status_completed():
print frappe.db.sql("""select name, status from `tabProject` WHERE status = 'Completed' """, as_dict=False)
return frappe.db.sql("""select name from `tabProject` WHERE status = 'Completed' """, as_dict=False)
@frappe.whitelist()
def set_ficha_closed(ficha):
print 'Fechar a Ficha de Processo'
fecharficha = frappe.get_doc("Ficha de Processo", ficha)
frappe.db.sql("""update `tabFicha de Processo` set status_process = 'Fechado' where name = %s """,ficha, as_dict=False)
|
mycallback( {"CONTRIBUTOR OCCUPATION": "", "CONTRIBUTION AMOUNT (F3L Bundled)": "2000", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "50 Beale Street", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME": "", "CONTRIBUTOR STATE": "CA", "DONOR CANDIDATE FIRST NAME": "", "CONTRIBUTOR FIRST NAME": "", "BACK REFERENCE SCHED NAME": "", "DONOR CANDIDATE DISTRICT": "", "CONTRIBUTION DATE": "20101025", "DONOR COMMITTEE NAME": "BLUE SHIELD OF CALIFORNIA POLITICAL ACTION COMMITTEE", "MEMO TEXT/DESCRIPTION": "", "Reference to SI or SL system code that identifies the Account": "", "FILER COMMITTEE ID NUMBER": "C00344671", "DONOR CANDIDATE LAST NAME": "", "CONTRIBUTOR LAST NAME": "", "_record_type": "fec.version.v7_0.SA", "CONDUIT STREET2": "", "CONDUIT STREET1": "", "DONOR COMMITTEE FEC ID": "C00340364", "CONTRIBUTION PURPOSE DESCRIP": "", "CONTRIBUTOR ZIP": "941051813", "CONTRIBUTOR STREET 2": "# 17-C356", "CONDUIT CITY": "", "ENTITY TYPE": "PAC", "CONTRIBUTOR CITY": "San Francisco", "CONTRIBUTOR SUFFIX": "", "TRANSACTION ID": "A-C67065", "DONOR CANDIDATE SUFFIX": "", "DONOR CANDIDATE OFFICE": "", "CONTRIBUTION PURPOSE CODE": "", "ELECTION OTHER DESCRIPTION": "", "_src_file": "2011/20110504/727421.fec_1.yml", "CONDUIT STATE": "", "CONTRIBUTOR ORGANIZATION NAME": "BLUE SHIELD OF CALIFORNIA POLITICAL ACTION COMMITTEE", "BACK REFERENCE TRAN ID NUMBER": "", "DONOR CANDIDATE PREFIX": "", "CONTRIBUTOR PREFIX": "", "CONDUIT ZIP": "", "CONDUIT NAME": "", "CONTRIBUTION AGGREGATE F3L Semi-annual Bundled": "2000", "FORM TYPE": "SA11c"});
mycallback( {"CONTRIBUTOR OCCUPATION": "", "CONTRIBUTION AMOUNT (F3L Bundled)": "2000", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "50 Beale Street", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME": "", "CONTRIBUTOR STATE": "CA", "DONOR CANDIDATE FIRST NAME": "", "CONTRIBUTOR FIRST NAME": "", "BACK REFERENCE SCHED NAME": "", "DONOR CANDIDATE DISTRICT": "", "CONTRIBUTION DATE": "20101025", "DONOR COMMITTEE NAME": "BLUE SHIELD OF CALIFORNIA POLITICAL ACTION COMMITTEE", "MEMO TEXT/DESCRIPTION": "", "Reference to SI or SL system code that identifies the Account": "", "FILER COMMITTEE ID NUMBER": "C00344671", "DONOR CANDIDATE LAST NAME": "", "CONTRIBUTOR LAST NAME": "", "_record_type": "fec.version.v7_0.SA", "CONDUIT STREET2": "", "CONDUIT STREET1": "", "DONOR COMMITTEE FEC ID": "C00340364", "CONTRIBUTION PURPOSE DESCRIP": "", "CONTRIBUTOR ZIP": "941051813", "CONTRIBUTOR STREET 2": "# 17-C356", "CONDUIT CITY": "", "ENTITY TYPE": "PAC", "CONTRIBUTOR CITY": "San Francisco", "CONTRIBUTOR SUFFIX": "", "TRANSACTION ID": "A-C67065", "DONOR CANDIDATE SUFFIX": "", "DONOR CANDIDATE OFFICE": "", "CONTRIBUTION PURPOSE CODE": "", "ELECTION OTHER DESCRIPTION": "", "_src_file": "2011/20110504/727421.fec_1.yml", "CONDUIT STATE": "", "CONTRIBUTOR ORGANIZATION NAME": "BLUE SHIELD OF CALIFORNIA POLITICAL ACTION COMMITTEE", "BACK REFERENCE TRAN ID NUMBER": "", "DONOR CANDIDATE PREFIX": "", "CONTRIBUTOR PREFIX": "", "CONDUIT ZIP": "", "CONDUIT NAME": "", "CONTRIBUTION AGGREGATE F3L Semi-annual Bundled": "2000", "FORM TYPE": "SA11c"});
|
describe("JsonService", function() {
beforeEach(module('demo'));
var JsonService, $log;
beforeEach(inject(function(_JsonService_, _$log_) {
JsonService = _JsonService_;
$log = _$log_;
}));
var sampleRef = {
"id": "sample",
"type": "ref",
};
var sampleOne = {
"data": {
"id": "sample",
"type": "game",
"attributes": {
"events": [{
"set-initial-position": {
"id": "player",
"type": "actors",
"meta": {
"location": {
"id": "lab",
"type": "rooms"
}
}
}
}, {
"say": {
"id": "_display_",
"type": "_sys_",
"attributes": {
"lines": ["text", "text"]
}
}
}]
}
},
"meta": {
"frame": 2112
},
"included": [{
"id": "player",
"type": "actors",
"meta": {
"name": "player",
"states": ["unhandled", "scenery"]
}
}, {
"id": "lab",
"type": "rooms",
"meta": {
"name": "lab",
"states": ["visited"]
}
}]
};
var sampleMany = {
"data": [{
"id": "table",
"type": "supporters"
}, {
"id": "player",
"type": "actors"
}],
"meta": {
"frame": 1
},
"included": [{
"id": "table",
"type": "supporters",
"meta": {
"name": "table",
"states": ["not-scenery", "fixed-in-place", "unhandled"]
}
}]
};
it('should parse refs', function() {
var ref = JsonService.parseRef(sampleRef);
expect(ref.id).toEqual("sample");
expect(ref.type).toEqual("ref");
});
it('should parse singles', function() {
var doc;
expect(function() {
doc = JsonService.parseObjectDoc(sampleOne);
}).not.toThrow();
expect(doc).toBeDefined();
expect(doc.id).toEqual("sample");
expect(doc.data).toBeDefined();
expect(doc.meta['frame']).toEqual(2112);
var obj = JsonService.parseObject(doc.data);
expect(angular.isObject(obj.attr)).toBe(true);
});
it('should parse multiples', function() {
var doc;
expect(function() {
doc = JsonService.parseMultiDoc(sampleMany);
}).not.toThrow();
expect(doc).toBeDefined();
expect(doc.id).not.toBeDefined();
expect(doc.meta['frame']).toEqual(1);
expect(angular.isArray(doc.includes)).toBe(true);
});
});
|
"use strict";
// Copyright (c) 2021 Pestras
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
Object.defineProperty(exports, "__esModule", { value: true });
const __1 = require("../../..");
describe("Testing $props operator", () => {
let schema = new __1.Validall({
$props: {
name: { $type: 'string' }
}
});
it("should return true", () => {
expect(schema.validate({ name: 'Hafoos' })).toBe(true);
});
it("should return false with proper message error", () => {
expect(schema.validate({ name: 5 })).toBe(false);
expect(schema.error.message)
.toBe("'name' must be of type 'string', got: (number, 5)");
});
});
//# sourceMappingURL=props.spec.js.map
|
import {ItemView} from 'marionette';
import * as JST from 'templates';
export default ItemView.extend({
tagName: 'li',
template: JST['app/scripts/apps/navigation/navigation<%= delimiter %>template.hbs'],
triggers: {
'click a': 'language:click'
}
});
|
from netaddr import IPAddress
import pytest
def test_interfaces(duthost):
"""compare the interfaces between observed states and target state"""
host_facts = duthost.setup()['ansible_facts']
mg_facts = duthost.minigraph_facts(host=duthost.hostname)['ansible_facts']
verify_port(host_facts, mg_facts['minigraph_portchannels'].keys())
for k, v in mg_facts['minigraph_portchannels'].items():
verify_port(host_facts, v['members'])
# verify no ipv4 address for each port channel member
for member in v['members']:
ans_ifname = "ansible_%s" % member
assert not host_facts[ans_ifname].has_key("ipv4")
verify_port(host_facts, mg_facts['minigraph_vlans'].keys())
for k, v in mg_facts['minigraph_vlans'].items():
verify_port(host_facts, v['members'])
# verify no ipv4 address for each vlan member
for member in v['members']:
ans_ifname = "ansible_%s" % member
assert not host_facts[ans_ifname].has_key("ipv4")
verify_ip_address(host_facts, mg_facts['minigraph_portchannel_interfaces'])
verify_ip_address(host_facts, mg_facts['minigraph_vlan_interfaces'])
verify_ip_address(host_facts, mg_facts['minigraph_lo_interfaces'])
def verify_port(host_facts, ports):
for port in ports:
ans_ifname = "ansible_%s" % port
assert host_facts[ans_ifname]['active']
def verify_ip_address(host_facts, intfs):
for intf in intfs:
if intf.has_key('attachto'):
ans_ifname = "ansible_%s" % intf['attachto']
else:
ans_ifname = "ansible_%s" % intf['name']
ip = IPAddress(intf['addr'])
if ip.version == 4:
addrs = []
addrs.append(host_facts[ans_ifname]['ipv4'])
if host_facts[ans_ifname].has_key('ipv4_secondaries'):
for addr in host_facts[ans_ifname]['ipv4_secondaries']:
addrs.append(addr)
else:
addrs = host_facts[ans_ifname]['ipv6']
found = False
ips_found = []
for addr in addrs:
ips_found.append(addr['address'])
print addr
if IPAddress(addr['address']) == ip:
found = True
break
if not found:
pytest.fail("%s not found in the list %s" % (ip, ips_found))
|
#!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test logic for setting nMinimumChainWork on command line.
Nodes don't consider themselves out of "initial block download" until
their active chain has more work than nMinimumChainWork.
Nodes don't download blocks from a peer unless the peer's best known block
has more work than nMinimumChainWork.
While in initial block download, nodes won't relay blocks to their peers, so
test that this parameter functions as intended by verifying that block relay
only succeeds past a given node once its nMinimumChainWork has been exceeded.
"""
import time
from test_framework.test_framework import rebelcoinTestFramework
from test_framework.util import connect_nodes, assert_equal
# 2 hashes required per regtest block (with no difficulty adjustment)
REGTEST_WORK_PER_BLOCK = 2
class MinimumChainWorkTest(rebelcoinTestFramework):
def set_test_params(self):
self.setup_clean_chain = True
self.num_nodes = 3
self.extra_args = [[], ["-minimumchainwork=0x65"], ["-minimumchainwork=0x65"]]
self.node_min_work = [0, 101, 101]
def setup_network(self):
# This test relies on the chain setup being:
# node0 <- node1 <- node2
# Before leaving IBD, nodes prefer to download blocks from outbound
# peers, so ensure that we're mining on an outbound peer and testing
# block relay to inbound peers.
self.setup_nodes()
for i in range(self.num_nodes-1):
connect_nodes(self.nodes[i+1], i)
def run_test(self):
# Start building a chain on node0. node2 shouldn't be able to sync until node1's
# minchainwork is exceeded
starting_chain_work = REGTEST_WORK_PER_BLOCK # Genesis block's work
self.log.info("Testing relay across node %d (minChainWork = %d)", 1, self.node_min_work[1])
starting_blockcount = self.nodes[2].getblockcount()
num_blocks_to_generate = int((self.node_min_work[1] - starting_chain_work) / REGTEST_WORK_PER_BLOCK)
self.log.info("Generating %d blocks on node0", num_blocks_to_generate)
hashes = self.nodes[0].generate(num_blocks_to_generate)
self.log.info("Node0 current chain work: %s", self.nodes[0].getblockheader(hashes[-1])['chainwork'])
# Sleep a few seconds and verify that node2 didn't get any new blocks
# or headers. We sleep, rather than sync_blocks(node0, node1) because
# it's reasonable either way for node1 to get the blocks, or not get
# them (since they're below node1's minchainwork).
time.sleep(3)
self.log.info("Verifying node 2 has no more blocks than before")
self.log.info("Blockcounts: %s", [n.getblockcount() for n in self.nodes])
# Node2 shouldn't have any new headers yet, because node1 should not
# have relayed anything.
assert_equal(len(self.nodes[2].getchaintips()), 1)
assert_equal(self.nodes[2].getchaintips()[0]['height'], 0)
assert self.nodes[1].getbestblockhash() != self.nodes[0].getbestblockhash()
assert_equal(self.nodes[2].getblockcount(), starting_blockcount)
self.log.info("Generating one more block")
self.nodes[0].generate(1)
self.log.info("Verifying nodes are all synced")
# Because nodes in regtest are all manual connections (eg using
# addnode), node1 should not have disconnected node0. If not for that,
# we'd expect node1 to have disconnected node0 for serving an
# insufficient work chain, in which case we'd need to reconnect them to
# continue the test.
self.sync_all()
self.log.info("Blockcounts: %s", [n.getblockcount() for n in self.nodes])
if __name__ == '__main__':
MinimumChainWorkTest().main()
|
"""
y_cable_helper.py
helper utlities configuring y_cable for xcvrd daemon
"""
import threading
import time
from sonic_py_common import daemon_base, logger
from sonic_py_common import multi_asic
from sonic_y_cable import y_cable
from swsscommon import swsscommon
SELECT_TIMEOUT = 1000
y_cable_platform_sfputil = None
y_cable_platform_chassis = None
SYSLOG_IDENTIFIER = "y_cable_helper"
helper_logger = logger.Logger(SYSLOG_IDENTIFIER)
# SFP status definition, shall be aligned with the definition in get_change_event() of ChassisBase
SFP_STATUS_REMOVED = '0'
SFP_STATUS_INSERTED = '1'
# SFP error codes, stored as strings. Can add more as needed.
SFP_STATUS_ERR_I2C_STUCK = '2'
SFP_STATUS_ERR_BAD_EEPROM = '3'
SFP_STATUS_ERR_UNSUPPORTED_CABLE = '4'
SFP_STATUS_ERR_HIGH_TEMP = '5'
SFP_STATUS_ERR_BAD_CABLE = '6'
# Store the error codes in a set for convenience
errors_block_eeprom_reading = {
SFP_STATUS_ERR_I2C_STUCK,
SFP_STATUS_ERR_BAD_EEPROM,
SFP_STATUS_ERR_UNSUPPORTED_CABLE,
SFP_STATUS_ERR_HIGH_TEMP,
SFP_STATUS_ERR_BAD_CABLE
}
Y_CABLE_STATUS_NO_TOR_ACTIVE = 0
Y_CABLE_STATUS_TORA_ACTIVE = 1
Y_CABLE_STATUS_TORB_ACTIVE = 2
y_cable_switch_state_values = {
Y_CABLE_STATUS_NO_TOR_ACTIVE,
Y_CABLE_STATUS_TORA_ACTIVE,
Y_CABLE_STATUS_TORB_ACTIVE
}
MUX_CABLE_STATIC_INFO_TABLE = "MUX_CABLE_STATIC_INFO"
MUX_CABLE_INFO_TABLE = "MUX_CABLE_INFO"
# Find out the underneath physical port list by logical name
def logical_port_name_to_physical_port_list(port_name):
if port_name.startswith("Ethernet"):
if y_cable_platform_sfputil.is_logical_port(port_name):
return y_cable_platform_sfputil.get_logical_to_physical(port_name)
else:
helper_logger.log_error("Invalid port '%s'" % port_name)
return None
else:
return [int(port_name)]
def _wrapper_get_presence(physical_port):
if y_cable_platform_chassis is not None:
try:
return y_cable_platform_chassis.get_sfp(physical_port).get_presence()
except NotImplementedError:
pass
return y_cable_platform_sfputil.get_presence(physical_port)
# Delete port from Y cable status table
def delete_port_from_y_cable_table(logical_port_name, y_cable_tbl):
if y_cable_tbl is not None:
y_cable_tbl._del(logical_port_name)
def update_table_mux_status_for_response_tbl(table_name, status, logical_port_name):
fvs = swsscommon.FieldValuePairs([('response', status)])
table_name.set(logical_port_name, fvs)
def update_table_mux_status_for_statedb_port_tbl(table_name, status, read_side, active_side, logical_port_name):
fvs = swsscommon.FieldValuePairs([('state', status),
('read_side', str(read_side)),
('active_side', str(active_side))])
table_name.set(logical_port_name, fvs)
def y_cable_toggle_mux_torA(physical_port):
update_status = y_cable.toggle_mux_to_torA(physical_port)
if update_status is True:
return 1
else:
helper_logger.log_warning(
"Error: Could not toggle the mux for port {} to torA write eeprom failed".format(physical_port))
return -1
def y_cable_toggle_mux_torB(physical_port):
update_status = y_cable.toggle_mux_to_torB(physical_port)
if update_status is True:
return 2
else:
helper_logger.log_warning(
"Error: Could not toggle the mux for port {} to torB write eeprom failed".format(physical_port))
return -1
def update_tor_active_side(read_side, state, logical_port_name):
physical_port_list = logical_port_name_to_physical_port_list(
logical_port_name)
if len(physical_port_list) == 1:
physical_port = physical_port_list[0]
if _wrapper_get_presence(physical_port):
if int(read_side) == 1:
if state == "active":
return y_cable_toggle_mux_torA(physical_port)
elif state == "standby":
return y_cable_toggle_mux_torB(physical_port)
elif int(read_side) == 2:
if state == "active":
return y_cable_toggle_mux_torB(physical_port)
elif state == "standby":
return y_cable_toggle_mux_torA(physical_port)
# TODO: Should we confirm that the mux was indeed toggled?
else:
helper_logger.log_warning(
"Error: Could not establish presence for Y cable port {} while trying to toggle the mux".format(logical_port_name))
return -1
else:
# Y cable ports should always have
# one to one mapping of physical-to-logical
# This should not happen
helper_logger.log_warning(
"Error: Retreived multiple ports for a Y cable table port {} while trying to toggle the mux".format(logical_port_name))
return -1
def update_appdb_port_mux_cable_response_table(logical_port_name, asic_index, appl_db, read_side):
status = None
y_cable_response_tbl = {}
y_cable_response_tbl[asic_index] = swsscommon.Table(
appl_db[asic_index], "MUX_CABLE_RESPONSE_TABLE")
physical_port_list = logical_port_name_to_physical_port_list(
logical_port_name)
if len(physical_port_list) == 1:
physical_port = physical_port_list[0]
if _wrapper_get_presence(physical_port):
if read_side is None:
status = 'unknown'
update_table_mux_status_for_response_tbl(y_cable_response_tbl[asic_index], status, logical_port_name)
helper_logger.log_warning(
"Error: Could not get read side for mux cable port probe command logical port {} and physical port {}".format(logical_port_name, physical_port))
return
active_side = y_cable.check_mux_direction(physical_port)
if active_side is None:
status = 'unknown'
update_table_mux_status_for_response_tbl(y_cable_response_tbl[asic_index], status, logical_port_name)
helper_logger.log_warning(
"Error: Could not get active side for mux cable port probe command logical port {} and physical port {}".format(logical_port_name, physical_port))
return
if read_side == active_side and (active_side == 1 or active_side == 2):
status = 'active'
elif read_side != active_side and (active_side == 1 or active_side == 2):
status = 'standby'
else:
status = 'unknown'
helper_logger.log_warning(
"Error: Could not get state for mux cable port probe command logical port {} and physical port {}".format(logical_port_name, physical_port))
update_table_mux_status_for_response_tbl(y_cable_response_tbl[asic_index], status, logical_port_name)
else:
status = 'unknown'
update_table_mux_status_for_response_tbl(y_cable_response_tbl[asic_index], status, logical_port_name)
helper_logger.log_warning(
"Error: Could not establish presence for Y cable port {} while responding to command probe".format(logical_port_name))
else:
# Y cable ports should always have
# one to one mapping of physical-to-logical
# This should not happen
status = 'unknown'
update_table_mux_status_for_response_tbl(y_cable_response_tbl[asic_index], status, logical_port_name)
helper_logger.log_warning(
"Error: Retreived multiple ports for a Y cable port {} while responding to command probe".format(logical_port_name))
def read_y_cable_and_update_statedb_port_tbl(logical_port_name, mux_config_tbl):
physical_port_list = logical_port_name_to_physical_port_list(
logical_port_name)
read_side = None
active_side = None
status = None
if len(physical_port_list) == 1:
physical_port = physical_port_list[0]
if _wrapper_get_presence(physical_port):
read_side = y_cable.check_read_side(physical_port)
if read_side is None:
read_side = active_side = -1
update_table_mux_status_for_statedb_port_tbl(
mux_config_tbl, "unknown", read_side, active_side, logical_port_name)
helper_logger.log_error(
"Error: Could not establish the read side for Y cable port {}".format(logical_port_name))
return
active_side = y_cable.check_mux_direction(physical_port)
if active_side is None or active_side not in y_cable_switch_state_values:
read_side = active_side = -1
update_table_mux_status_for_statedb_port_tbl(
mux_config_tbl, "unknown", read_side, active_side, logical_port_name)
helper_logger.log_error(
"Error: Could not establish the active side for Y cable port {}".format(logical_port_name))
return
if read_side == active_side and (active_side == 1 or active_side == 2):
status = 'active'
elif read_side != active_side and (active_side == 1 or active_side == 2):
status = 'standby'
else:
status = 'unknown'
helper_logger.log_warning(
"Error: Could not establish the active status for Y cable port {}".format(logical_port_name))
update_table_mux_status_for_statedb_port_tbl(
mux_config_tbl, status, read_side, active_side, logical_port_name)
return
else:
read_side = active_side = -1
update_table_mux_status_for_statedb_port_tbl(
mux_config_tbl, "unknown", read_side, active_side, logical_port_name)
helper_logger.log_warning(
"Error: Could not establish presence for Y cable port {}".format(logical_port_name))
else:
# Y cable ports should always have
# one to one mapping of physical-to-logical
# This should not happen
read_side = active_side = -1
update_table_mux_status_for_statedb_port_tbl(
mux_config_tbl, "unknown", read_side, active_side, logical_port_name)
helper_logger.log_warning(
"Error: Retreived multiple ports for a Y cable port {}".format(logical_port_name))
def check_identifier_presence_and_update_mux_table_entry(state_db, port_tbl, y_cable_tbl, static_tbl, mux_tbl, asic_index, logical_port_name, y_cable_presence):
(status, fvs) = port_tbl[asic_index].get(logical_port_name)
if status is False:
helper_logger.log_warning(
"Could not retreive fieldvalue pairs for {}, inside config_db".format(logical_port_name))
return
else:
# Convert list of tuples to a dictionary
mux_table_dict = dict(fvs)
if "mux_cable" in mux_table_dict:
val = mux_table_dict.get("mux_cable", None)
if val == "true":
y_cable_asic_table = y_cable_tbl.get(asic_index, None)
mux_asic_table = mux_tbl.get(asic_index, None)
static_mux_asic_table = static_tbl.get(asic_index, None)
if y_cable_presence[0] is True and y_cable_asic_table is not None and mux_asic_table is not None and static_mux_asic_table is not None:
# fill in the newly found entry
read_y_cable_and_update_statedb_port_tbl(
logical_port_name, y_cable_tbl[asic_index])
post_port_mux_info_to_db(logical_port_name, mux_tbl[asic_index])
post_port_mux_static_info_to_db(logical_port_name, static_tbl[asic_index])
else:
# first create the state db y cable table and then fill in the entry
y_cable_presence[:] = [True]
namespaces = multi_asic.get_front_end_namespaces()
for namespace in namespaces:
asic_id = multi_asic.get_asic_index_from_namespace(
namespace)
state_db[asic_id] = daemon_base.db_connect(
"STATE_DB", namespace)
y_cable_tbl[asic_id] = swsscommon.Table(
state_db[asic_id], swsscommon.STATE_HW_MUX_CABLE_TABLE_NAME)
static_tbl[asic_id] = swsscommon.Table(state_db[asic_id], MUX_CABLE_STATIC_INFO_TABLE)
mux_tbl[asic_id] = swsscommon.Table(state_db[asic_id], MUX_CABLE_INFO_TABLE)
# fill the newly found entry
read_y_cable_and_update_statedb_port_tbl(
logical_port_name, y_cable_tbl[asic_index])
post_port_mux_info_to_db(logical_port_name, mux_tbl[asic_index])
post_port_mux_static_info_to_db(logical_port_name, static_tbl[asic_index])
def check_identifier_presence_and_delete_mux_table_entry(state_db, port_tbl, asic_index, logical_port_name, y_cable_presence, delete_change_event):
y_cable_tbl = {}
static_tbl, mux_tbl = {}, {}
# if there is No Y cable do not do anything here
if y_cable_presence[0] is False:
return
(status, fvs) = port_tbl[asic_index].get(logical_port_name)
if status is False:
helper_logger.log_warning(
"Could not retreive fieldvalue pairs for {}, inside config_db".format(logical_port_name))
return
else:
# Convert list of tuples to a dictionary
mux_table_dict = dict(fvs)
if "mux_cable" in mux_table_dict:
if y_cable_presence[0] is True:
# delete this entry in the y cable table found and update the delete event
namespaces = multi_asic.get_front_end_namespaces()
for namespace in namespaces:
asic_id = multi_asic.get_asic_index_from_namespace(
namespace)
state_db[asic_id] = daemon_base.db_connect(
"STATE_DB", namespace)
y_cable_tbl[asic_id] = swsscommon.Table(
state_db[asic_id], swsscommon.STATE_HW_MUX_CABLE_TABLE_NAME)
static_tbl[asic_id] = swsscommon.Table(state_db[asic_id], MUX_CABLE_STATIC_INFO_TABLE)
mux_tbl[asic_id] = swsscommon.Table(state_db[asic_id], MUX_CABLE_INFO_TABLE)
# fill the newly found entry
delete_port_from_y_cable_table(
logical_port_name, y_cable_tbl[asic_index])
delete_port_from_y_cable_table(
logical_port_name, static_tbl[asic_index])
delete_port_from_y_cable_table(
logical_port_name, mux_tbl[asic_index])
delete_change_event[:] = [True]
def init_ports_status_for_y_cable(platform_sfp, platform_chassis, y_cable_presence, stop_event=threading.Event()):
global y_cable_platform_sfputil
global y_cable_platform_chassis
# Connect to CONFIG_DB and create port status table inside state_db
config_db, state_db, port_tbl, y_cable_tbl = {}, {}, {}, {}
static_tbl, mux_tbl = {}, {}
port_table_keys = {}
y_cable_platform_sfputil = platform_sfp
y_cable_platform_chassis = platform_chassis
# Get the namespaces in the platform
namespaces = multi_asic.get_front_end_namespaces()
for namespace in namespaces:
asic_id = multi_asic.get_asic_index_from_namespace(namespace)
config_db[asic_id] = daemon_base.db_connect("CONFIG_DB", namespace)
port_tbl[asic_id] = swsscommon.Table(config_db[asic_id], "PORT")
port_table_keys[asic_id] = port_tbl[asic_id].getKeys()
# Init PORT_STATUS table if ports are on Y cable
logical_port_list = y_cable_platform_sfputil.logical
for logical_port_name in logical_port_list:
if stop_event.is_set():
break
# Get the asic to which this port belongs
asic_index = y_cable_platform_sfputil.get_asic_id_for_logical_port(
logical_port_name)
if asic_index is None:
helper_logger.log_warning(
"Got invalid asic index for {}, ignored".format(logical_port_name))
continue
if logical_port_name in port_table_keys[asic_index]:
check_identifier_presence_and_update_mux_table_entry(
state_db, port_tbl, y_cable_tbl, static_tbl, mux_tbl, asic_index, logical_port_name, y_cable_presence)
else:
# This port does not exist in Port table of config but is present inside
# logical_ports after loading the port_mappings from port_config_file
# This should not happen
helper_logger.log_warning(
"Could not retreive port inside config_db PORT table ".format(logical_port_name))
def change_ports_status_for_y_cable_change_event(port_dict, y_cable_presence, stop_event=threading.Event()):
# Connect to CONFIG_DB and create port status table inside state_db
config_db, state_db, port_tbl, y_cable_tbl = {}, {}, {}, {}
static_tbl, mux_tbl = {}, {}
port_table_keys = {}
delete_change_event = [False]
# Get the namespaces in the platform
namespaces = multi_asic.get_front_end_namespaces()
# Get the keys from PORT table inside config db to prepare check for mux_cable identifier
for namespace in namespaces:
asic_id = multi_asic.get_asic_index_from_namespace(namespace)
config_db[asic_id] = daemon_base.db_connect("CONFIG_DB", namespace)
port_tbl[asic_id] = swsscommon.Table(config_db[asic_id], "PORT")
port_table_keys[asic_id] = port_tbl[asic_id].getKeys()
# Init PORT_STATUS table if ports are on Y cable and an event is received
for key, value in port_dict.items():
if stop_event.is_set():
break
logical_port_list = y_cable_platform_sfputil.get_physical_to_logical(int(key))
if logical_port_list is None:
helper_logger.log_warning("Got unknown FP port index {}, ignored".format(key))
continue
for logical_port_name in logical_port_list:
# Get the asic to which this port belongs
asic_index = y_cable_platform_sfputil.get_asic_id_for_logical_port(logical_port_name)
if asic_index is None:
helper_logger.log_warning(
"Got invalid asic index for {}, ignored".format(logical_port_name))
continue
if logical_port_name in port_table_keys[asic_index]:
if value == SFP_STATUS_INSERTED:
helper_logger.log_info("Got SFP inserted event")
check_identifier_presence_and_update_mux_table_entry(
state_db, port_tbl, y_cable_tbl, static_tbl, mux_tbl, asic_index, logical_port_name, y_cable_presence)
elif value == SFP_STATUS_REMOVED or value in errors_block_eeprom_reading:
check_identifier_presence_and_delete_mux_table_entry(
state_db, port_tbl, asic_index, logical_port_name, y_cable_presence, delete_change_event)
else:
# SFP return unkown event, just ignore for now.
helper_logger.log_warning("Got unknown event {}, ignored".format(value))
continue
# If there was a delete event and y_cable_presence was true, reaccess the y_cable presence
if y_cable_presence[0] is True and delete_change_event[0] is True:
y_cable_presence[:] = [False]
for namespace in namespaces:
asic_id = multi_asic.get_asic_index_from_namespace(
namespace)
y_cable_tbl[asic_id] = swsscommon.Table(
state_db[asic_id], swsscommon.STATE_HW_MUX_CABLE_TABLE_NAME)
y_cable_table_size = len(y_cable_tbl[asic_id].getKeys())
if y_cable_table_size > 0:
y_cable_presence[:] = [True]
break
def delete_ports_status_for_y_cable():
state_db, port_tbl, y_cable_tbl = {}, {}, {}
y_cable_tbl_keys = {}
static_tbl, mux_tbl = {}, {}
namespaces = multi_asic.get_front_end_namespaces()
for namespace in namespaces:
asic_id = multi_asic.get_asic_index_from_namespace(namespace)
state_db[asic_id] = daemon_base.db_connect("STATE_DB", namespace)
y_cable_tbl[asic_id] = swsscommon.Table(
state_db[asic_id], swsscommon.STATE_HW_MUX_CABLE_TABLE_NAME)
y_cable_tbl_keys[asic_id] = y_cable_tbl[asic_id].getKeys()
static_tbl[asic_id] = swsscommon.Table(state_db[asic_id], MUX_CABLE_STATIC_INFO_TABLE)
mux_tbl[asic_id] = swsscommon.Table(state_db[asic_id], MUX_CABLE_INFO_TABLE)
# delete PORTS on Y cable table if ports on Y cable
logical_port_list = y_cable_platform_sfputil.logical
for logical_port_name in logical_port_list:
# Get the asic to which this port belongs
asic_index = y_cable_platform_sfputil.get_asic_id_for_logical_port(
logical_port_name)
if asic_index is None:
logger.log_warning(
"Got invalid asic index for {}, ignored".format(logical_port_name))
if logical_port_name in y_cable_tbl_keys[asic_index]:
delete_port_from_y_cable_table(
logical_port_name, y_cable_tbl[asic_index])
delete_port_from_y_cable_table(
logical_port_name, static_tbl[asic_index])
delete_port_from_y_cable_table(
logical_port_name, mux_tbl[asic_index])
def check_identifier_presence_and_update_mux_info_entry(state_db, mux_tbl, asic_index, logical_port_name):
# Get the namespaces in the platform
config_db, port_tbl = {}, {}
namespaces = multi_asic.get_front_end_namespaces()
for namespace in namespaces:
asic_id = multi_asic.get_asic_index_from_namespace(namespace)
config_db[asic_id] = daemon_base.db_connect("CONFIG_DB", namespace)
port_tbl[asic_id] = swsscommon.Table(config_db[asic_id], "PORT")
(status, fvs) = port_tbl[asic_index].get(logical_port_name)
if status is False:
helper_logger.log_warning(
"Could not retreive fieldvalue pairs for {}, inside config_db".format(logical_port_name))
return
else:
# Convert list of tuples to a dictionary
mux_table_dict = dict(fvs)
if "mux_cable" in mux_table_dict:
val = mux_table_dict.get("mux_cable", None)
if val == "true":
if mux_tbl.get(asic_index, None) is not None:
# fill in the newly found entry
post_port_mux_info_to_db(logical_port_name, mux_tbl[asic_index])
else:
# first create the state db y cable table and then fill in the entry
namespaces = multi_asic.get_front_end_namespaces()
for namespace in namespaces:
asic_id = multi_asic.get_asic_index_from_namespace(
namespace)
mux_tbl[asic_id] = swsscommon.Table(state_db[asic_id], MUX_CABLE_INFO_TABLE)
# fill the newly found entry
post_port_mux_info_to_db(logical_port_name, mux_tbl[asic_index])
def get_firmware_dict(physical_port, target, side, mux_info_dict):
result = y_cable.get_firmware_version(physical_port, target)
if result is not None and isinstance(result, dict):
mux_info_dict[("build_slot1_{}".format(side))] = result.get("build_slot1", None)
mux_info_dict[("version_slot1_{}".format(side))] = result.get("version_slot1", None)
mux_info_dict[("build_slot2_{}".format(side))] = result.get("build_slot2", None)
mux_info_dict[("version_slot2_{}".format(side))] = result.get("version_slot2", None)
mux_info_dict[("run_slot1_{}".format(side))] = result.get("run_slot1", None)
mux_info_dict[("run_slot2_{}".format(side))] = result.get("run_slot2", None)
mux_info_dict[("commit_slot1_{}".format(side))] = result.get("commit_slot1", None)
mux_info_dict[("commit_slot2_{}".format(side))] = result.get("commit_slot2", None)
mux_info_dict[("empty_slot1_{}".format(side))] = result.get("empty_slot1", None)
mux_info_dict[("empty_slot2_{}".format(side))] = result.get("empty_slot2", None)
else:
mux_info_dict[("build_slot1_{}".format(side))] = "N/A"
mux_info_dict[("version_slot1_{}".format(side))] = "N/A"
mux_info_dict[("build_slot2_{}".format(side))] = "N/A"
mux_info_dict[("version_slot2_{}".format(side))] = "N/A"
mux_info_dict[("run_slot1_{}".format(side))] = "N/A"
mux_info_dict[("run_slot2_{}".format(side))] = "N/A"
mux_info_dict[("commit_slot1_{}".format(side))] = "N/A"
mux_info_dict[("commit_slot2_{}".format(side))] = "N/A"
mux_info_dict[("empty_slot1_{}".format(side))] = "N/A"
mux_info_dict[("empty_slot2_{}".format(side))] = "N/A"
def get_muxcable_info(physical_port, logical_port_name):
mux_info_dict = {}
y_cable_tbl, state_db = {}, {}
namespaces = multi_asic.get_front_end_namespaces()
for namespace in namespaces:
asic_id = multi_asic.get_asic_index_from_namespace(namespace)
state_db[asic_id] = daemon_base.db_connect("STATE_DB", namespace)
y_cable_tbl[asic_id] = swsscommon.Table(
state_db[asic_id], swsscommon.STATE_HW_MUX_CABLE_TABLE_NAME)
asic_index = y_cable_platform_sfputil.get_asic_id_for_logical_port(
logical_port_name)
if asic_index is None:
helper_logger.log_warning(
"Got invalid asic index for {}, ignored".format(logical_port_name))
return -1
(status, fvs) = y_cable_tbl[asic_index].get(logical_port_name)
if status is False:
helper_logger.log_warning("Could not retreive fieldvalue pairs for {}, inside state_db table {}".format(
logical_port_name, y_cable_tbl[asic_index]))
return -1
mux_port_dict = dict(fvs)
read_side = int(mux_port_dict.get("read_side"))
active_side = y_cable.check_active_linked_tor_side(physical_port)
if active_side is None or active_side == y_cable.EEPROM_ERROR:
tor_active = 'unknown'
elif read_side == active_side and (active_side == 1 or active_side == 2):
tor_active = 'active'
elif read_side != active_side and (active_side == 1 or active_side == 2):
tor_active = 'standby'
else:
tor_active = 'unknown'
mux_info_dict["tor_active"] = tor_active
mux_dir_val = y_cable.check_mux_direction(physical_port)
if mux_dir_val is None or mux_dir_val == y_cable.EEPROM_ERROR:
mux_direction = 'unknown'
elif read_side == mux_dir_val and (active_side == 1 or active_side == 2):
mux_direction = 'self'
elif read_side != mux_dir_val and (active_side == 1 or active_side == 2):
mux_direction = 'peer'
else:
mux_direction = 'unknown'
mux_info_dict["mux_direction"] = mux_direction
manual_switch_cnt = y_cable.get_switch_count(physical_port, y_cable.SWITCH_COUNT_MANUAL)
auto_switch_cnt = y_cable.get_switch_count(physical_port, y_cable.SWITCH_COUNT_AUTO)
if manual_switch_cnt is not y_cable.EEPROM_ERROR:
mux_info_dict["manual_switch_count"] = manual_switch_cnt
else:
mux_info_dict["manual_switch_count"] = "N/A"
if auto_switch_cnt is not y_cable.EEPROM_ERROR:
mux_info_dict["auto_switch_count"] = auto_switch_cnt
else:
mux_info_dict["auto_switch_count"] = "N/A"
lane_active = y_cable.check_if_nic_lanes_active(physical_port)
if lane_active is not y_cable.EEPROM_ERROR:
if (lane_active & 0x1):
mux_info_dict["nic_lane1_active"] = "True"
else:
mux_info_dict["nic_lane1_active"] = "False"
if ((lane_active >> 1) & 0x1):
mux_info_dict["nic_lane2_active"] = "True"
else:
mux_info_dict["nic_lane2_active"] = "False"
if ((lane_active >> 2) & 0x1):
mux_info_dict["nic_lane3_active"] = "True"
else:
mux_info_dict["nic_lane3_active"] = "False"
if ((lane_active >> 3) & 0x1):
mux_info_dict["nic_lane4_active"] = "True"
else:
mux_info_dict["nic_lane4_active"] = "False"
else:
mux_info_dict["nic_lane1_active"] = "N/A"
mux_info_dict["nic_lane2_active"] = "N/A"
mux_info_dict["nic_lane3_active"] = "N/A"
mux_info_dict["nic_lane4_active"] = "N/A"
if read_side == 1:
eye_result_self = y_cable.get_eye_info(physical_port, 1)
eye_result_peer = y_cable.get_eye_info(physical_port, 2)
else:
eye_result_self = y_cable.get_eye_info(physical_port, 2)
eye_result_peer = y_cable.get_eye_info(physical_port, 1)
eye_result_nic = y_cable.get_eye_info(physical_port, 3)
if eye_result_self is not None and eye_result_self is not y_cable.EEPROM_ERROR and isinstance(eye_result_self, list):
mux_info_dict["self_eye_height_lane1"] = eye_result_self[0]
mux_info_dict["self_eye_height_lane2"] = eye_result_self[1]
else:
mux_info_dict["self_eye_height_lane1"] = "N/A"
mux_info_dict["self_eye_height_lane2"] = "N/A"
if eye_result_peer is not None and eye_result_peer is not y_cable.EEPROM_ERROR and isinstance(eye_result_peer, list):
mux_info_dict["peer_eye_height_lane1"] = eye_result_peer[0]
mux_info_dict["peer_eye_height_lane2"] = eye_result_peer[1]
else:
mux_info_dict["peer_eye_height_lane1"] = "N/A"
mux_info_dict["peer_eye_height_lane2"] = "N/A"
if eye_result_nic is not None and eye_result_nic is not y_cable.EEPROM_ERROR and isinstance(eye_result_nic, list):
mux_info_dict["nic_eye_height_lane1"] = eye_result_nic[0]
mux_info_dict["nic_eye_height_lane2"] = eye_result_nic[1]
else:
mux_info_dict["nic_eye_height_lane1"] = "N/A"
mux_info_dict["nic_eye_height_lane2"] = "N/A"
if read_side == 1:
if y_cable.check_if_link_is_active_for_torA(physical_port):
mux_info_dict["link_status_self"] = "up"
else:
mux_info_dict["link_status_self"] = "down"
if y_cable.check_if_link_is_active_for_torB(physical_port):
mux_info_dict["link_status_peer"] = "up"
else:
mux_info_dict["link_status_peer"] = "down"
else:
if y_cable.check_if_link_is_active_for_torB(physical_port):
mux_info_dict["link_status_self"] = "up"
else:
mux_info_dict["link_status_self"] = "down"
if y_cable.check_if_link_is_active_for_torA(physical_port):
mux_info_dict["link_status_peer"] = "up"
else:
mux_info_dict["link_status_peer"] = "down"
if y_cable.check_if_link_is_active_for_NIC(physical_port):
mux_info_dict["link_status_nic"] = "up"
else:
mux_info_dict["link_status_nic"] = "down"
get_firmware_dict(physical_port, 0, "nic", mux_info_dict)
if read_side == 1:
get_firmware_dict(physical_port, 1, "tor_self", mux_info_dict)
get_firmware_dict(physical_port, 2, "tor_peer", mux_info_dict)
else:
get_firmware_dict(physical_port, 1, "tor_peer", mux_info_dict)
get_firmware_dict(physical_port, 2, "tor_self", mux_info_dict)
res = y_cable.get_internal_voltage_temp(physical_port)
if res is not y_cable.EEPROM_ERROR and isinstance(res, tuple):
mux_info_dict["internal_temperature"] = res[0]
mux_info_dict["internal_voltage"] = res[1]
else:
mux_info_dict["internal_temperature"] = "N/A"
mux_info_dict["internal_voltage"] = "N/A"
res = y_cable.get_nic_voltage_temp(physical_port)
if res is not y_cable.EEPROM_ERROR and isinstance(res, tuple):
mux_info_dict["nic_temperature"] = res[0]
mux_info_dict["nic_voltage"] = res[1]
else:
mux_info_dict["nic_temperature"] = "N/A"
mux_info_dict["nic_voltage"] = "N/A"
return mux_info_dict
def get_muxcable_static_info(physical_port, logical_port_name):
mux_static_info_dict = {}
y_cable_tbl, state_db = {}, {}
namespaces = multi_asic.get_front_end_namespaces()
for namespace in namespaces:
asic_id = multi_asic.get_asic_index_from_namespace(namespace)
state_db[asic_id] = daemon_base.db_connect("STATE_DB", namespace)
y_cable_tbl[asic_id] = swsscommon.Table(
state_db[asic_id], swsscommon.STATE_HW_MUX_CABLE_TABLE_NAME)
asic_index = y_cable_platform_sfputil.get_asic_id_for_logical_port(
logical_port_name)
if asic_index is None:
helper_logger.log_warning(
"Got invalid asic index for {}, ignored".format(logical_port_name))
return -1
(status, fvs) = y_cable_tbl[asic_index].get(logical_port_name)
if status is False:
helper_logger.log_warning("Could not retreive fieldvalue pairs for {}, inside state_db table {}".format(
logical_port_name, y_cable_tbl[asic_index]))
return -1
mux_port_dict = dict(fvs)
read_side = int(mux_port_dict.get("read_side"))
if read_side == 1:
mux_static_info_dict["read_side"] = "tor1"
else:
mux_static_info_dict["read_side"] = "tor2"
dummy_list = ["N/A", "N/A", "N/A", "N/A", "N/A"]
cursor_nic_values = []
cursor_tor1_values = []
cursor_tor2_values = []
for i in range(1, 3):
cursor_values_nic = y_cable.get_target_cursor_values(physical_port, i, y_cable.TARGET_NIC)
if cursor_values_nic is not None and cursor_values_nic is not y_cable.EEPROM_ERROR and isinstance(cursor_values_nic, list):
cursor_nic_values.append(cursor_values_nic)
else:
cursor_nic_values.append(dummy_list)
cursor_values_tor1 = y_cable.get_target_cursor_values(physical_port, i, y_cable.TARGET_TOR1)
if cursor_values_tor1 is not None and cursor_values_tor1 is not y_cable.EEPROM_ERROR and isinstance(cursor_values_tor1, list):
cursor_tor1_values.append(cursor_values_tor1)
else:
cursor_tor1_values.append(dummy_list)
cursor_values_tor2 = y_cable.get_target_cursor_values(physical_port, i, y_cable.TARGET_TOR2)
if cursor_values_tor2 is not None and cursor_values_tor2 is not y_cable.EEPROM_ERROR and isinstance(cursor_values_tor2, list):
cursor_tor2_values.append(cursor_values_tor2)
else:
cursor_tor2_values.append(dummy_list)
for i in range(1, 3):
mux_static_info_dict[("nic_lane{}_precursor1".format(i))] = cursor_nic_values[i-1][0]
mux_static_info_dict[("nic_lane{}_precursor2".format(i))] = cursor_nic_values[i-1][1]
mux_static_info_dict[("nic_lane{}_maincursor".format(i))] = cursor_nic_values[i-1][2]
mux_static_info_dict[("nic_lane{}_postcursor1".format(i))] = cursor_nic_values[i-1][3]
mux_static_info_dict[("nic_lane{}_postcursor2".format(i))] = cursor_nic_values[i-1][4]
if read_side == 1:
for i in range(1, 3):
mux_static_info_dict[("tor_self_lane{}_precursor1".format(i))] = cursor_tor1_values[i-1][0]
mux_static_info_dict[("tor_self_lane{}_precursor2".format(i))] = cursor_tor1_values[i-1][1]
mux_static_info_dict[("tor_self_lane{}_maincursor".format(i))] = cursor_tor1_values[i-1][2]
mux_static_info_dict[("tor_self_lane{}_postcursor1".format(i))] = cursor_tor1_values[i-1][3]
mux_static_info_dict[("tor_self_lane{}_postcursor2".format(i))] = cursor_tor1_values[i-1][4]
for i in range(1, 3):
mux_static_info_dict[("tor_peer_lane{}_precursor1".format(i))] = cursor_tor2_values[i-1][0]
mux_static_info_dict[("tor_peer_lane{}_precursor2".format(i))] = cursor_tor2_values[i-1][1]
mux_static_info_dict[("tor_peer_lane{}_maincursor".format(i))] = cursor_tor2_values[i-1][2]
mux_static_info_dict[("tor_peer_lane{}_postcursor1".format(i))] = cursor_tor2_values[i-1][3]
mux_static_info_dict[("tor_peer_lane{}_postcursor2".format(i))] = cursor_tor2_values[i-1][4]
else:
for i in range(1, 3):
mux_static_info_dict[("tor_self_lane{}_precursor1".format(i))] = cursor_tor2_values[i-1][0]
mux_static_info_dict[("tor_self_lane{}_precursor2".format(i))] = cursor_tor2_values[i-1][1]
mux_static_info_dict[("tor_self_lane{}_maincursor".format(i))] = cursor_tor2_values[i-1][2]
mux_static_info_dict[("tor_self_lane{}_postcursor1".format(i))] = cursor_tor2_values[i-1][3]
mux_static_info_dict[("tor_self_lane{}_postcursor2".format(i))] = cursor_tor2_values[i-1][4]
for i in range(1, 3):
mux_static_info_dict[("tor_peer_lane{}_precursor1".format(i))] = cursor_tor1_values[i-1][0]
mux_static_info_dict[("tor_peer_lane{}_precursor2".format(i))] = cursor_tor1_values[i-1][1]
mux_static_info_dict[("tor_peer_lane{}_maincursor".format(i))] = cursor_tor1_values[i-1][2]
mux_static_info_dict[("tor_peer_lane{}_postcursor1".format(i))] = cursor_tor1_values[i-1][3]
mux_static_info_dict[("tor_peer_lane{}_postcursor2".format(i))] = cursor_tor1_values[i-1][4]
return mux_static_info_dict
def post_port_mux_info_to_db(logical_port_name, table):
physical_port_list = logical_port_name_to_physical_port_list(logical_port_name)
if physical_port_list is None:
helper_logger.log_error("No physical ports found for logical port '{}'".format(logical_port_name))
return -1
if len(physical_port_list) > 1:
helper_logger.log_warning(
"Error: Retreived multiple ports for a Y cable port {}".format(logical_port_name))
return -1
for physical_port in physical_port_list:
if not _wrapper_get_presence(physical_port):
helper_logger.log_warning(
"Error: trying to post mux info without presence of port {}".format(logical_port_name))
continue
mux_info_dict = get_muxcable_info(physical_port, logical_port_name)
if mux_info_dict is not None and mux_info_dict is not -1:
#transceiver_dict[physical_port] = port_info_dict
fvs = swsscommon.FieldValuePairs(
[('tor_active', mux_info_dict["tor_active"]),
('mux_direction', str(mux_info_dict["mux_direction"])),
('manual_switch_count', str(mux_info_dict["manual_switch_count"])),
('auto_switch_count', str(mux_info_dict["auto_switch_count"])),
('link_status_self', mux_info_dict["link_status_self"]),
('link_status_peer', mux_info_dict["link_status_peer"]),
('link_status_nic', mux_info_dict["link_status_nic"]),
('nic_lane1_active', mux_info_dict["nic_lane1_active"]),
('nic_lane2_active', mux_info_dict["nic_lane2_active"]),
('nic_lane3_active', mux_info_dict["nic_lane3_active"]),
('nic_lane4_active', mux_info_dict["nic_lane4_active"]),
('self_eye_height_lane1', str(mux_info_dict["self_eye_height_lane1"])),
('self_eye_height_lane2', str(mux_info_dict["self_eye_height_lane2"])),
('peer_eye_height_lane1', str(mux_info_dict["peer_eye_height_lane1"])),
('peer_eye_height_lane2', str(mux_info_dict["peer_eye_height_lane1"])),
('nic_eye_height_lane1', str(mux_info_dict["nic_eye_height_lane1"])),
('nic_eye_height_lane2', str(mux_info_dict["nic_eye_height_lane2"])),
('internal_temperature', str(mux_info_dict["internal_temperature"])),
('internal_voltage', str(mux_info_dict["internal_voltage"])),
('nic_temperature', str(mux_info_dict["nic_temperature"])),
('nic_voltage', str(mux_info_dict["nic_voltage"])),
('build_slot1_nic', str(mux_info_dict["build_slot1_nic"])),
('build_slot2_nic', str(mux_info_dict["build_slot2_nic"])),
('version_slot1_nic', str(mux_info_dict["version_slot1_nic"])),
('version_slot2_nic', str(mux_info_dict["version_slot2_nic"])),
('run_slot1_nic', str(mux_info_dict["run_slot1_nic"])),
('run_slot2_nic', str(mux_info_dict["run_slot2_nic"])),
('commit_slot1_nic', str(mux_info_dict["commit_slot1_nic"])),
('commit_slot2_nic', str(mux_info_dict["commit_slot2_nic"])),
('empty_slot1_nic', str(mux_info_dict["empty_slot1_nic"])),
('empty_slot2_nic', str(mux_info_dict["empty_slot2_nic"])),
('build_slot1_tor_self', str(mux_info_dict["build_slot1_tor_self"])),
('build_slot2_tor_self', str(mux_info_dict["build_slot2_tor_self"])),
('version_slot1_tor_self', str(mux_info_dict["version_slot1_tor_self"])),
('version_slot2_tor_self', str(mux_info_dict["version_slot2_tor_self"])),
('run_slot1_tor_self', str(mux_info_dict["run_slot1_tor_self"])),
('run_slot2_tor_self', str(mux_info_dict["run_slot2_tor_self"])),
('commit_slot1_tor_self', str(mux_info_dict["commit_slot1_tor_self"])),
('commit_slot2_tor_self', str(mux_info_dict["commit_slot2_tor_self"])),
('empty_slot1_tor_self', str(mux_info_dict["empty_slot1_tor_self"])),
('empty_slot2_tor_self', str(mux_info_dict["empty_slot2_tor_self"])),
('build_slot1_tor_peer', str(mux_info_dict["build_slot1_tor_peer"])),
('build_slot2_tor_peer', str(mux_info_dict["build_slot2_tor_peer"])),
('version_slot1_tor_peer', str(mux_info_dict["version_slot1_tor_peer"])),
('version_slot2_tor_peer', str(mux_info_dict["version_slot2_tor_peer"])),
('run_slot1_tor_peer', str(mux_info_dict["run_slot1_tor_peer"])),
('run_slot2_tori_peer', str(mux_info_dict["run_slot2_tor_peer"])),
('commit_slot1_tor_peer', str(mux_info_dict["commit_slot1_tor_peer"])),
('commit_slot2_tor_peer', str(mux_info_dict["commit_slot2_tor_peer"])),
('empty_slot1_tor_peer', str(mux_info_dict["empty_slot1_tor_peer"])),
('empty_slot2_tor_peer', str(mux_info_dict["empty_slot2_tor_peer"]))
])
table.set(logical_port_name, fvs)
else:
return -1
def post_port_mux_static_info_to_db(logical_port_name, static_table):
physical_port_list = logical_port_name_to_physical_port_list(logical_port_name)
if physical_port_list is None:
helper_logger.log_error("No physical ports found for logical port '{}'".format(logical_port_name))
return -1
if len(physical_port_list) > 1:
helper_logger.log_warning(
"Error: Retreived multiple ports for a Y cable port {}".format(logical_port_name))
return -1
for physical_port in physical_port_list:
if not _wrapper_get_presence(physical_port):
continue
mux_static_info_dict = get_muxcable_static_info(physical_port, logical_port_name)
if mux_static_info_dict is not None and mux_static_info_dict is not -1:
#transceiver_dict[physical_port] = port_info_dict
fvs = swsscommon.FieldValuePairs(
[('read_side', mux_static_info_dict["read_side"]),
('nic_lane1_precursor1', str(mux_static_info_dict["nic_lane1_precursor1"])),
('nic_lane1_precursor2', str(mux_static_info_dict["nic_lane1_precursor2"])),
('nic_lane1_maincursor', str(mux_static_info_dict["nic_lane1_maincursor"])),
('nic_lane1_postcursor1', str(mux_static_info_dict["nic_lane1_postcursor1"])),
('nic_lane1_postcursor2', str(mux_static_info_dict["nic_lane1_postcursor2"])),
('nic_lane2_precursor1', str(mux_static_info_dict["nic_lane2_precursor1"])),
('nic_lane2_precursor2', str(mux_static_info_dict["nic_lane2_precursor2"])),
('nic_lane2_maincursor', str(mux_static_info_dict["nic_lane2_maincursor"])),
('nic_lane2_postcursor1', str(mux_static_info_dict["nic_lane2_postcursor1"])),
('nic_lane2_postcursor2', str(mux_static_info_dict["nic_lane2_postcursor2"])),
('tor_self_lane1_precursor1', str(mux_static_info_dict["tor_self_lane1_precursor1"])),
('tor_self_lane1_precursor2', str(mux_static_info_dict["tor_self_lane1_precursor2"])),
('tor_self_lane1_maincursor', str(mux_static_info_dict["tor_self_lane1_maincursor"])),
('tor_self_lane1_postcursor1', str(mux_static_info_dict["tor_self_lane1_postcursor1"])),
('tor_self_lane1_postcursor2', str(mux_static_info_dict["tor_self_lane1_postcursor2"])),
('tor_self_lane2_precursor1', str(mux_static_info_dict["tor_self_lane2_precursor1"])),
('tor_self_lane2_precursor2', str(mux_static_info_dict["tor_self_lane2_precursor2"])),
('tor_self_lane2_maincursor', str(mux_static_info_dict["tor_self_lane2_maincursor"])),
('tor_self_lane2_postcursor1', str(mux_static_info_dict["tor_self_lane2_postcursor1"])),
('tor_self_lane2_postcursor2', str(mux_static_info_dict["tor_self_lane2_postcursor2"])),
('tor_peer_lane1_precursor1', str(mux_static_info_dict["tor_peer_lane1_precursor1"])),
('tor_peer_lane1_precursor2', str(mux_static_info_dict["tor_peer_lane1_precursor2"])),
('tor_peer_lane1_maincursor', str(mux_static_info_dict["tor_peer_lane1_maincursor"])),
('tor_peer_lane1_postcursor1', str(mux_static_info_dict["tor_peer_lane1_postcursor1"])),
('tor_peer_lane1_postcursor2', str(mux_static_info_dict["tor_peer_lane1_postcursor2"])),
('tor_peer_lane2_precursor1', str(mux_static_info_dict["tor_peer_lane2_precursor1"])),
('tor_peer_lane2_precursor2', str(mux_static_info_dict["tor_peer_lane2_precursor2"])),
('tor_peer_lane2_maincursor', str(mux_static_info_dict["tor_peer_lane2_maincursor"])),
('tor_peer_lane2_postcursor1', str(mux_static_info_dict["tor_peer_lane2_postcursor1"])),
('tor_peer_lane2_postcursor2', str(mux_static_info_dict["tor_peer_lane2_postcursor2"]))
])
static_table.set(logical_port_name, fvs)
else:
return -1
def post_mux_static_info_to_db(is_warm_start, stop_event=threading.Event()):
# Connect to STATE_DB and create transceiver mux/static info tables
state_db, static_tbl = {}, {}
# Get the namespaces in the platform
namespaces = multi_asic.get_front_end_namespaces()
for namespace in namespaces:
asic_id = multi_asic.get_asic_index_from_namespace(namespace)
state_db[asic_id] = daemon_base.db_connect("STATE_DB", namespace)
static_tbl[asic_id] = swsscommon.Table(state_db[asic_id], MUX_CABLE_STATIC_INFO_TABLE)
# Post all the current interface dom/sfp info to STATE_DB
logical_port_list = y_cable_platform_sfputil.logical
for logical_port_name in logical_port_list:
if stop_event.is_set():
break
# Get the asic to which this port belongs
asic_index = y_cable_platform_sfputil.get_asic_id_for_logical_port(logical_port_name)
if asic_index is None:
logger.log_warning("Got invalid asic index for {}, ignored".format(logical_port_name))
continue
post_port_mux_static_info_to_db(logical_port_name, mux_tbl[asic_index])
def post_mux_info_to_db(is_warm_start, stop_event=threading.Event()):
# Connect to STATE_DB and create transceiver mux/static info tables
state_db, mux_tbl, static_tbl = {}, {}, {}
# Get the namespaces in the platform
namespaces = multi_asic.get_front_end_namespaces()
for namespace in namespaces:
asic_id = multi_asic.get_asic_index_from_namespace(namespace)
state_db[asic_id] = daemon_base.db_connect("STATE_DB", namespace)
mux_tbl[asic_id] = swsscommon.Table(state_db[asic_id], MUX_CABLE_INFO_TABLE)
# Post all the current interface dom/sfp info to STATE_DB
logical_port_list = y_cable_platform_sfputil.logical
for logical_port_name in logical_port_list:
if stop_event.is_set():
break
# Get the asic to which this port belongs
asic_index = y_cable_platform_sfputil.get_asic_id_for_logical_port(logical_port_name)
if asic_index is None:
logger.log_warning("Got invalid asic index for {}, ignored".format(logical_port_name))
continue
post_port_mux_info_to_db(logical_port_name, mux_tbl[asic_index])
# Thread wrapper class to update y_cable status periodically
class YCableTableUpdateTask(object):
def __init__(self):
self.task_thread = None
if multi_asic.is_multi_asic():
# Load the namespace details first from the database_global.json file.
swsscommon.SonicDBConfig.initializeGlobalConfig()
def task_worker(self):
# Connect to STATE_DB and APPL_DB and get both the HW_MUX_STATUS_TABLE info
appl_db, state_db, status_tbl, y_cable_tbl = {}, {}, {}, {}
y_cable_tbl_keys = {}
mux_cable_command_tbl, y_cable_command_tbl = {}, {}
sel = swsscommon.Select()
# Get the namespaces in the platform
namespaces = multi_asic.get_front_end_namespaces()
for namespace in namespaces:
# Open a handle to the Application database, in all namespaces
asic_id = multi_asic.get_asic_index_from_namespace(namespace)
appl_db[asic_id] = daemon_base.db_connect("APPL_DB", namespace)
status_tbl[asic_id] = swsscommon.SubscriberStateTable(
appl_db[asic_id], swsscommon.APP_HW_MUX_CABLE_TABLE_NAME)
mux_cable_command_tbl[asic_id] = swsscommon.SubscriberStateTable(
appl_db[asic_id], swsscommon.APP_MUX_CABLE_COMMAND_TABLE_NAME)
y_cable_command_tbl[asic_id] = swsscommon.Table(
appl_db[asic_id], swsscommon.APP_MUX_CABLE_COMMAND_TABLE_NAME)
state_db[asic_id] = daemon_base.db_connect("STATE_DB", namespace)
y_cable_tbl[asic_id] = swsscommon.Table(
state_db[asic_id], swsscommon.STATE_HW_MUX_CABLE_TABLE_NAME)
y_cable_tbl_keys[asic_id] = y_cable_tbl[asic_id].getKeys()
sel.addSelectable(status_tbl[asic_id])
sel.addSelectable(mux_cable_command_tbl[asic_id])
# Listen indefinitely for changes to the HW_MUX_CABLE_TABLE in the Application DB's
while True:
# Use timeout to prevent ignoring the signals we want to handle
# in signal_handler() (e.g. SIGTERM for graceful shutdown)
# A brief sleep appears necessary in this loop or any spawned
# update threads will get stuck. Appears to be due to the sel.select() call.
# TODO: Eliminate the need for this sleep.
time.sleep(0.1)
(state, selectableObj) = sel.select(SELECT_TIMEOUT)
if state == swsscommon.Select.TIMEOUT:
# Do not flood log when select times out
continue
if state != swsscommon.Select.OBJECT:
helper_logger.log_warning(
"sel.select() did not return swsscommon.Select.OBJECT for sonic_y_cable updates")
continue
# Get the redisselect object from selectable object
redisSelectObj = swsscommon.CastSelectableToRedisSelectObj(
selectableObj)
# Get the corresponding namespace from redisselect db connector object
namespace = redisSelectObj.getDbConnector().getNamespace()
asic_index = multi_asic.get_asic_index_from_namespace(namespace)
(port, op, fvp) = status_tbl[asic_index].pop()
if fvp:
# This check might be redundant, to check, the presence of this Port in keys
# in logical_port_list but keep for now for coherency
# also skip checking in logical_port_list inside sfp_util
if port not in y_cable_tbl_keys[asic_index]:
continue
fvp_dict = dict(fvp)
if "state" in fvp_dict:
# got a state change
new_status = fvp_dict["state"]
(status, fvs) = y_cable_tbl[asic_index].get(port)
if status is False:
helper_logger.log_warning("Could not retreive fieldvalue pairs for {}, inside state_db table {}".format(
port, y_cable_tbl[asic_index]))
continue
mux_port_dict = dict(fvs)
old_status = mux_port_dict.get("state")
read_side = mux_port_dict.get("read_side")
# Now whatever is the state requested, toggle the mux appropriately
active_side = update_tor_active_side(read_side, new_status, port)
if active_side == -1:
helper_logger.log_warning("ERR: Got a change event for toggle but could not toggle the mux-direction for port {} state from {} to {}, writing unknown".format(
port, old_status, new_status))
new_status = 'unknown'
fvs_updated = swsscommon.FieldValuePairs([('state', new_status),
('read_side',
read_side),
('active_side', str(active_side))])
y_cable_tbl[asic_index].set(port, fvs_updated)
helper_logger.log_info("Got a change event for toggle the mux-direction active side for port {} state from {} to {}".format(
port, old_status, new_status))
else:
helper_logger.log_info("Got a change event on port {} of table {} that does not contain state".format(
port, swsscommon.APP_HW_MUX_CABLE_TABLE_NAME))
(port_m, op_m, fvp_m) = mux_cable_command_tbl[asic_index].pop()
if fvp_m:
if port_m not in y_cable_tbl_keys[asic_index]:
continue
fvp_dict = dict(fvp_m)
if "command" in fvp_dict:
# check if xcvrd got a probe command
probe_identifier = fvp_dict["command"]
if probe_identifier == "probe":
(status, fv) = y_cable_tbl[asic_index].get(port_m)
if status is False:
helper_logger.log_warning("Could not retreive fieldvalue pairs for {}, inside state_db table {}".format(
port_m, y_cable_tbl[asic_index]))
continue
mux_port_dict = dict(fv)
read_side = mux_port_dict.get("read_side")
update_appdb_port_mux_cable_response_table(port_m, asic_index, appl_db, int(read_side))
def task_run(self):
self.task_thread = threading.Thread(target=self.task_worker)
self.task_thread.start()
def task_stop(self):
self.task_thread.join()
|
#!/usr/bin/env python3
import json
import os
import subprocess
import sys
# Parse the query.
query = json.load(sys.stdin)
build_command = query['build_command']
filename_old = query['filename_old']
filename_new = query['filename_new']
# If the old filename (from the Terraform state) matches the new filename
# (from hash.py) then the source code has not changed and thus the zip file
# should not have changed.
if filename_old == filename_new:
if os.path.exists(filename_new):
# Update the file time so it doesn't get cleaned up,
# which would result in an unnecessary rebuild.
os.utime(filename_new, None)
else:
# If the file is missing, then it was probably generated on another
# machine, or it was created a long time ago and cleaned up. This is
# expected behaviour. However if Terraform needs to upload the file
# (e.g. someone manually deleted the Lambda function via the AWS
# console) then it is possible that Terraform will try to upload
# the missing file. I don't know how to tell if Terraform is going
# to try to upload the file or not, so always ensure the file exists.
subprocess.check_output(build_command, shell=True)
# Output the filename to Terraform.
json.dump({
'filename': filename_new,
}, sys.stdout, indent=2)
sys.stdout.write('\n')
|
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import atexit
import numpy as np
import queue
import torch
import torch.multiprocessing as mp
import slowfast.utils.logging as logging
from slowfast.datasets import cv2_transform
from slowfast.visualization.predictor import Predictor
logger = logging.get_logger(__name__)
class AsycnActionPredictor:
class _Predictor(mp.Process):
def __init__(self, cfg, task_queue, result_queue, gpu_id=None):
"""
Predict Worker for Detectron2.
Args:
cfg (CfgNode): configs. Details can be found in
slowfast/config/defaults.py
task_queue (mp.Queue): a shared queue for incoming task.
result_queue (mp.Queue): a shared queue for predicted results.
gpu_id (int): index of the GPU device for the current child process.
"""
super().__init__()
self.cfg = cfg
self.task_queue = task_queue
self.result_queue = result_queue
self.gpu_id = gpu_id
self.device = (
torch.device("cuda:{}".format(self.gpu_id))
if self.cfg.NUM_GPUS
else "cpu"
)
def run(self):
"""
Run prediction asynchronously.
"""
# Build the video model and print model statistics.
model = Predictor(self.cfg, gpu_id=self.gpu_id)
while True:
task = self.task_queue.get()
if isinstance(task, _StopToken):
break
task = model(task)
self.result_queue.put(task)
def __init__(self, cfg, result_queue=None):
num_workers = cfg.NUM_GPUS
self.task_queue = mp.Queue()
self.result_queue = mp.Queue() if result_queue is None else result_queue
self.get_idx = -1
self.put_idx = -1
self.procs = []
cfg = cfg.clone()
cfg.defrost()
cfg.NUM_GPUS = 1
for gpu_id in range(num_workers):
self.procs.append(
AsycnActionPredictor._Predictor(
cfg, self.task_queue, self.result_queue, gpu_id
)
)
self.result_data = {}
for p in self.procs:
p.start()
atexit.register(self.shutdown)
def put(self, task):
"""
Add the new task to task queue.
Args:
task (TaskInfo object): task object that contain
the necessary information for action prediction. (e.g. frames)
"""
self.put_idx += 1
self.task_queue.put(task)
def get(self):
"""
Return a task object in the correct order based on task id if
result(s) is available. Otherwise, raise queue.Empty exception.
"""
if self.result_data.get(self.get_idx + 1) is not None:
self.get_idx += 1
res = self.result_data[self.get_idx]
del self.result_data[self.get_idx]
return res
while True:
res = self.result_queue.get(block=False)
idx = res.id
if idx == self.get_idx + 1:
self.get_idx += 1
return res
self.result_data[idx] = res
def __call__(self, task):
self.put(task)
return self.get()
def shutdown(self):
for _ in self.procs:
self.task_queue.put(_StopToken())
@property
def result_available(self):
"""
How many results are ready to be returned.
"""
return self.result_queue.qsize() + len(self.result_data)
@property
def default_buffer_size(self):
return len(self.procs) * 5
class AsyncVis:
class _VisWorker(mp.Process):
def __init__(self, video_vis, task_queue, result_queue):
"""
Visualization Worker for AsyncVis.
Args:
video_vis (VideoVisualizer object): object with tools for visualization.
task_queue (mp.Queue): a shared queue for incoming task for visualization.
result_queue (mp.Queue): a shared queue for visualized results.
"""
self.video_vis = video_vis
self.task_queue = task_queue
self.result_queue = result_queue
super().__init__()
def run(self):
"""
Run visualization asynchronously.
"""
while True:
task = self.task_queue.get()
if isinstance(task, _StopToken):
break
# frames = draw_predictions(task, self.video_vis)
# task.frames = np.array(frames)
self.result_queue.put(task)
def __init__(self, video_vis, n_workers=None):
"""
Args:
cfg (CfgNode): configs. Details can be found in
slowfast/config/defaults.py
n_workers (Optional[int]): number of CPUs for running video visualizer.
If not given, use all CPUs.
"""
num_workers = mp.cpu_count() if n_workers is None else n_workers
self.task_queue = mp.Queue()
self.result_queue = mp.Queue()
self.get_indices_ls = []
self.procs = []
self.result_data = {}
self.put_id = -1
for _ in range(max(num_workers, 1)):
self.procs.append(
AsyncVis._VisWorker(
video_vis, self.task_queue, self.result_queue
)
)
for p in self.procs:
p.start()
atexit.register(self.shutdown)
def put(self, task):
"""
Add the new task to task queue.
Args:
task (TaskInfo object): task object that contain
the necessary information for action prediction. (e.g. frames, boxes, predictions)
"""
self.put_id += 1
self.task_queue.put(task)
def get(self):
"""
Return visualized frames/clips in the correct order based on task id if
result(s) is available. Otherwise, raise queue.Empty exception.
"""
get_idx = self.get_indices_ls[0]
if self.result_data.get(get_idx) is not None:
res = self.result_data[get_idx]
del self.result_data[get_idx]
del self.get_indices_ls[0]
return res
while True:
res = self.result_queue.get(block=False)
idx = res.id
if idx == get_idx:
del self.get_indices_ls[0]
return res
self.result_data[idx] = res
def __call__(self, task):
"""
How many results are ready to be returned.
"""
self.put(task)
return self.get()
def shutdown(self):
for _ in self.procs:
self.task_queue.put(_StopToken())
@property
def result_available(self):
return self.result_queue.qsize() + len(self.result_data)
@property
def default_buffer_size(self):
return len(self.procs) * 5
class _StopToken:
pass
class AsyncDemo:
"""
Asynchronous Action Prediction and Visualization pipeline with AsyncVis.
"""
def __init__(self, cfg, async_vis):
"""
Args:
cfg (CfgNode): configs. Details can be found in
slowfast/config/defaults.py
async_vis (AsyncVis object): asynchronous visualizer.
"""
self.model = AsycnActionPredictor(
cfg=cfg, result_queue=async_vis.task_queue
)
self.async_vis = async_vis
def put(self, task):
"""
Put task into task queue for prediction and visualization.
Args:
task (TaskInfo object): task object that contain
the necessary information for action prediction. (e.g. frames)
"""
self.async_vis.get_indices_ls.append(task.id)
self.model.put(task)
def get(self):
"""
Get the visualized clips if any.
"""
try:
task = self.async_vis.get()
except (queue.Empty, IndexError):
raise IndexError("Results are not available yet.")
return task
def draw_predictions(task, video_vis):
"""
Draw prediction for the given task.
Args:
task (TaskInfo object): task object that contain
the necessary information for visualization. (e.g. frames, preds)
All attributes must lie on CPU devices.
video_vis (VideoVisualizer object): the video visualizer object.
"""
boxes = task.bboxes
frames = task.frames
preds = task.action_preds
if boxes is not None:
img_width = task.img_width
img_height = task.img_height
if boxes.device != torch.device("cpu"):
boxes = boxes.cpu()
boxes = cv2_transform.revert_scaled_boxes(
task.crop_size, boxes, img_height, img_width
)
keyframe_idx = len(frames) // 2 - task.num_buffer_frames
draw_range = [
keyframe_idx - task.clip_vis_size,
keyframe_idx + task.clip_vis_size,
]
buffer = frames[: task.num_buffer_frames]
frames = frames[task.num_buffer_frames :]
if boxes is not None:
if len(boxes) != 0:
frames = video_vis.draw_clip_range(
frames,
preds,
boxes,
keyframe_idx=keyframe_idx,
draw_range=draw_range,
)
else:
frames = video_vis.draw_clip_range(
frames, preds, keyframe_idx=keyframe_idx, draw_range=draw_range
)
del task
return buffer + frames
|
/****************************************************************************
* libnx/nx/nx_fillcircle.c
*
* Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
****************************************************************************/
/****************************************************************************
* Included Files
****************************************************************************/
#include <tinyara/config.h>
#include <sys/types.h>
#include <debug.h>
#include <errno.h>
#include <tinyara/nx/nxglib.h>
#include <tinyara/nx/nx.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#define NCIRCLE_TRAPS 8
/****************************************************************************
* Private Types
****************************************************************************/
/****************************************************************************
* Private Data
****************************************************************************/
/****************************************************************************
* Public Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
/****************************************************************************
* Public Functions
****************************************************************************/
/****************************************************************************
* Name: nx_fillcircle
*
* Description:
* Fill a circular region using the specified color.
*
* Input Parameters:
* hwnd - The window handle
* center - A pointer to the point that is the center of the circle
* radius - The radius of the circle in pixels.
* color - The color to use to fill the circle.
*
* Return:
* OK on success; ERROR on failure with errno set appropriately
*
****************************************************************************/
int nx_fillcircle(NXWINDOW hwnd, FAR const struct nxgl_point_s *center,
nxgl_coord_t radius, nxgl_mxpixel_t color[CONFIG_NX_NPLANES])
{
FAR struct nxgl_trapezoid_s traps[NCIRCLE_TRAPS];
int i;
int ret;
/* Describe the circular region as a sequence of 8 trapezoids */
nxgl_circletraps(center, radius, traps);
/* Then rend those trapezoids */
for (i = 0; i < NCIRCLE_TRAPS; i++)
{
ret = nx_filltrapezoid(hwnd, NULL, &traps[i], color);
if (ret != OK)
{
return ret;
}
}
return OK;
}
|
import { formatFileSize, isDefinedGlobally } from './utils'
const messages = {
after: (field, [target]) => `${field} უნდა იყოს ${target}(ი)ს შემდეგ.`,
alpha: (field) => `${field} უნდა შეიცავდეს მხოლოდ ასოებს.`,
alpha_dash: (field) => `${field} უნდა შესაძლებელია შეიცავდეს ციფრებს, ასოებს და პუნქტუაციის ნიშნებს.`,
alpha_num: (field) => `${field} უნდა შეიცავდეს მხოლოდ ციფრებს.`,
alpha_spaces: (field) => `${field} უნდა შეიცავდეს მხოლოდ ასოებსა და ცარიელ სივრცეებს.`,
before: (field, [target]) => `${field} უნდა იყოს ${target}მდე.`,
between: (field, [min, max]) => `${field} უნდა იყოს ${min} და ${max}ს შორის.`,
confirmed: (field, [confirmedField]) => `${field} არ ემთხვევა ${confirmedField}(ი)ს.`,
date_between: (field, [min, max]) => `${field} უნდა უნდა იყოს ${min} და ${max}-ს შორის.`,
date_format: (field, [format]) => `${field} უნდა იყოს ${format} ფორმატში.`,
decimal: (field, [decimals = '*'] = []) => `${field} უნდა შეიცავდეს ციფრებსა და${decimals === '*' ? '' : ' ' + decimals} მთელ რიცხვებს.`,
digits: (field, [length]) => `${field} უნდა შეიცავდეს ციფრებს და უნდა იყოს ზუსტად ${length}-ნიშნა.`,
dimensions: (field, [width, height]) => `${field} უნდა იყოს ${width}x${height} ზომის (pixel).`,
email: (field) => `${field}-ს უნდა ჰქონდეს ელ-ფოსტის სწორი ფორმატი.`,
excluded: (field) => `${field} უნდა იყოს სწორი მნიშვნელობა.`,
ext: (field) => `${field} უნდა იყოს ფაილი.`,
image: (field) => `${field} უნდა იყოს სურათი.`,
included: (field) => `${field} უნდა იყოს სწორი მნიშვნელობა.`,
ip: (field) => `${field} უნდა იყოს სწორი ip მისამართი.`,
max: (field, [length]) => `${field} არ უნდა იყოს ${length} სიმბოლოზე მეტი.`,
max_value: (field, [max]) => `${field} უნდა შეიცავდეს ${max} სიმბოლოს ან ნაკლებს.`,
mimes: (field) => `${field}ს უნდა ჰქონდეს სწორი ფაილის ფორმატი.`,
min: (field, [length]) => `${field} უნდა შეიცავდეს მინიმუმ ${length} სიმბოლოს.`,
min_value: (field, [min]) => `${field} უნდა შეიცავდეს ${min} ან მეტ სიმბოლოს.`,
numeric: (field) => `${field} უნდა შეიცავდეს ციფრებს.`,
regex: (field) => `${field}-(ი)ს ფორმატი არასწორია.`,
required: (field) => `${field} აუცილებელია.`,
size: (field, [size]) => `${field} უნდა იყოს ${formatFileSize(size)}-ზე ნაკლები.`,
url: (field) => `${field}-(ი)ს არ აქვს სწორი მისამართის ფორმატი`,
}
const locale = {
name: 'ka',
messages,
attributes: {},
}
if (isDefinedGlobally()) {
ReeValidate.Validator.localize({ [locale.name]: locale })
}
export default locale
|
from django.contrib import admin
from django.urls import path, include
from django.contrib.auth import views as auth_views
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('user.urls')),
path('', include('main.urls')),
path('login/', auth_views.LoginView.as_view(template_name="user/register.html"), name="login"),
path('logout/', auth_views.LogoutView.as_view(template_name="user/logout.html"), name="logout"),
]
|
/*! jQuery UI - v1.11.0 - 2016-07-19
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, autocomplete.js, datepicker.js, menu.js, slider.js, effect.js
* Copyright 2016 jQuery Foundation and other contributors; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define([ "jquery" ], factory );
} else {
// Browser globals
factory( jQuery );
}
}(function( $ ) {
/*!
* jQuery UI Core 1.11.0
* http://jqueryui.com
*
* Copyright 2016 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/ui-core/
*/
// $.ui might exist from components with no dependencies, e.g., $.ui.position
$.ui = $.ui || {};
$.extend( $.ui, {
version: "1.11.0",
keyCode: {
BACKSPACE: 8,
COMMA: 188,
DELETE: 46,
DOWN: 40,
END: 35,
ENTER: 13,
ESCAPE: 27,
HOME: 36,
LEFT: 37,
PAGE_DOWN: 34,
PAGE_UP: 33,
PERIOD: 190,
RIGHT: 39,
SPACE: 32,
TAB: 9,
UP: 38
}
});
// plugins
$.fn.extend({
scrollParent: function() {
var position = this.css( "position" ),
excludeStaticParent = position === "absolute",
scrollParent = this.parents().filter( function() {
var parent = $( this );
if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
return false;
}
return (/(auto|scroll)/).test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + parent.css( "overflow-x" ) );
}).eq( 0 );
return position === "fixed" || !scrollParent.length ? $( this[ 0 ].ownerDocument || document ) : scrollParent;
},
uniqueId: (function() {
var uuid = 0;
return function() {
return this.each(function() {
if ( !this.id ) {
this.id = "ui-id-" + ( ++uuid );
}
});
};
})(),
removeUniqueId: function() {
return this.each(function() {
if ( /^ui-id-\d+$/.test( this.id ) ) {
$( this ).removeAttr( "id" );
}
});
}
});
// selectors
function focusable( element, isTabIndexNotNaN ) {
var map, mapName, img,
nodeName = element.nodeName.toLowerCase();
if ( "area" === nodeName ) {
map = element.parentNode;
mapName = map.name;
if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
return false;
}
img = $( "img[usemap=#" + mapName + "]" )[0];
return !!img && visible( img );
}
return ( /input|select|textarea|button|object/.test( nodeName ) ?
!element.disabled :
"a" === nodeName ?
element.href || isTabIndexNotNaN :
isTabIndexNotNaN) &&
// the element and all of its ancestors must be visible
visible( element );
}
function visible( element ) {
return $.expr.filters.visible( element ) &&
!$( element ).parents().addBack().filter(function() {
return $.css( this, "visibility" ) === "hidden";
}).length;
}
$.extend( $.expr[ ":" ], {
data: $.expr.createPseudo ?
$.expr.createPseudo(function( dataName ) {
return function( elem ) {
return !!$.data( elem, dataName );
};
}) :
// support: jQuery <1.8
function( elem, i, match ) {
return !!$.data( elem, match[ 3 ] );
},
focusable: function( element ) {
return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );
},
tabbable: function( element ) {
var tabIndex = $.attr( element, "tabindex" ),
isTabIndexNaN = isNaN( tabIndex );
return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );
}
});
// support: jQuery <1.8
if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
$.each( [ "Width", "Height" ], function( i, name ) {
var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
type = name.toLowerCase(),
orig = {
innerWidth: $.fn.innerWidth,
innerHeight: $.fn.innerHeight,
outerWidth: $.fn.outerWidth,
outerHeight: $.fn.outerHeight
};
function reduce( elem, size, border, margin ) {
$.each( side, function() {
size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
if ( border ) {
size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
}
if ( margin ) {
size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
}
});
return size;
}
$.fn[ "inner" + name ] = function( size ) {
if ( size === undefined ) {
return orig[ "inner" + name ].call( this );
}
return this.each(function() {
$( this ).css( type, reduce( this, size ) + "px" );
});
};
$.fn[ "outer" + name] = function( size, margin ) {
if ( typeof size !== "number" ) {
return orig[ "outer" + name ].call( this, size );
}
return this.each(function() {
$( this).css( type, reduce( this, size, true, margin ) + "px" );
});
};
});
}
// support: jQuery <1.8
if ( !$.fn.addBack ) {
$.fn.addBack = function( selector ) {
return this.add( selector == null ?
this.prevObject : this.prevObject.filter( selector )
);
};
}
// support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)
if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
$.fn.removeData = (function( removeData ) {
return function( key ) {
if ( arguments.length ) {
return removeData.call( this, $.camelCase( key ) );
} else {
return removeData.call( this );
}
};
})( $.fn.removeData );
}
// deprecated
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
$.fn.extend({
focus: (function( orig ) {
return function( delay, fn ) {
return typeof delay === "number" ?
this.each(function() {
var elem = this;
setTimeout(function() {
$( elem ).focus();
if ( fn ) {
fn.call( elem );
}
}, delay );
}) :
orig.apply( this, arguments );
};
})( $.fn.focus ),
disableSelection: (function() {
var eventType = "onselectstart" in document.createElement( "div" ) ?
"selectstart" :
"mousedown";
return function() {
return this.bind( eventType + ".ui-disableSelection", function( event ) {
event.preventDefault();
});
};
})(),
enableSelection: function() {
return this.unbind( ".ui-disableSelection" );
},
zIndex: function( zIndex ) {
if ( zIndex !== undefined ) {
return this.css( "zIndex", zIndex );
}
if ( this.length ) {
var elem = $( this[ 0 ] ), position, value;
while ( elem.length && elem[ 0 ] !== document ) {
// Ignore z-index if position is set to a value where z-index is ignored by the browser
// This makes behavior of this function consistent across browsers
// WebKit always returns auto if the element is positioned
position = elem.css( "position" );
if ( position === "absolute" || position === "relative" || position === "fixed" ) {
// IE returns 0 when zIndex is not specified
// other browsers return a string
// we ignore the case of nested elements with an explicit value of 0
// <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
value = parseInt( elem.css( "zIndex" ), 10 );
if ( !isNaN( value ) && value !== 0 ) {
return value;
}
}
elem = elem.parent();
}
}
return 0;
}
});
// $.ui.plugin is deprecated. Use $.widget() extensions instead.
$.ui.plugin = {
add: function( module, option, set ) {
var i,
proto = $.ui[ module ].prototype;
for ( i in set ) {
proto.plugins[ i ] = proto.plugins[ i ] || [];
proto.plugins[ i ].push( [ option, set[ i ] ] );
}
},
call: function( instance, name, args, allowDisconnected ) {
var i,
set = instance.plugins[ name ];
if ( !set ) {
return;
}
if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
return;
}
for ( i = 0; i < set.length; i++ ) {
if ( instance.options[ set[ i ][ 0 ] ] ) {
set[ i ][ 1 ].apply( instance.element, args );
}
}
}
};
/*!
* jQuery UI Widget 1.11.0
* http://jqueryui.com
*
* Copyright 2016 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/jQuery.widget/
*/
var widget_uuid = 0,
widget_slice = Array.prototype.slice;
$.cleanData = (function( orig ) {
return function( elems ) {
for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
try {
$( elem ).triggerHandler( "remove" );
// http://bugs.jquery.com/ticket/8235
} catch( e ) {}
}
orig( elems );
};
})( $.cleanData );
$.widget = function( name, base, prototype ) {
var fullName, existingConstructor, constructor, basePrototype,
// proxiedPrototype allows the provided prototype to remain unmodified
// so that it can be used as a mixin for multiple widgets (#8876)
proxiedPrototype = {},
namespace = name.split( "." )[ 0 ];
name = name.split( "." )[ 1 ];
fullName = namespace + "-" + name;
if ( !prototype ) {
prototype = base;
base = $.Widget;
}
// create selector for plugin
$.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
return !!$.data( elem, fullName );
};
$[ namespace ] = $[ namespace ] || {};
existingConstructor = $[ namespace ][ name ];
constructor = $[ namespace ][ name ] = function( options, element ) {
// allow instantiation without "new" keyword
if ( !this._createWidget ) {
return new constructor( options, element );
}
// allow instantiation without initializing for simple inheritance
// must use "new" keyword (the code above always passes args)
if ( arguments.length ) {
this._createWidget( options, element );
}
};
// extend with the existing constructor to carry over any static properties
$.extend( constructor, existingConstructor, {
version: prototype.version,
// copy the object used to create the prototype in case we need to
// redefine the widget later
_proto: $.extend( {}, prototype ),
// track widgets that inherit from this widget in case this widget is
// redefined after a widget inherits from it
_childConstructors: []
});
basePrototype = new base();
// we need to make the options hash a property directly on the new instance
// otherwise we'll modify the options hash on the prototype that we're
// inheriting from
basePrototype.options = $.widget.extend( {}, basePrototype.options );
$.each( prototype, function( prop, value ) {
if ( !$.isFunction( value ) ) {
proxiedPrototype[ prop ] = value;
return;
}
proxiedPrototype[ prop ] = (function() {
var _super = function() {
return base.prototype[ prop ].apply( this, arguments );
},
_superApply = function( args ) {
return base.prototype[ prop ].apply( this, args );
};
return function() {
var __super = this._super,
__superApply = this._superApply,
returnValue;
this._super = _super;
this._superApply = _superApply;
returnValue = value.apply( this, arguments );
this._super = __super;
this._superApply = __superApply;
return returnValue;
};
})();
});
constructor.prototype = $.widget.extend( basePrototype, {
// TODO: remove support for widgetEventPrefix
// always use the name + a colon as the prefix, e.g., draggable:start
// don't prefix for widgets that aren't DOM-based
widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name
}, proxiedPrototype, {
constructor: constructor,
namespace: namespace,
widgetName: name,
widgetFullName: fullName
});
// If this widget is being redefined then we need to find all widgets that
// are inheriting from it and redefine all of them so that they inherit from
// the new version of this widget. We're essentially trying to replace one
// level in the prototype chain.
if ( existingConstructor ) {
$.each( existingConstructor._childConstructors, function( i, child ) {
var childPrototype = child.prototype;
// redefine the child widget using the same prototype that was
// originally used, but inherit from the new version of the base
$.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto );
});
// remove the list of existing child constructors from the old constructor
// so the old child constructors can be garbage collected
delete existingConstructor._childConstructors;
} else {
base._childConstructors.push( constructor );
}
$.widget.bridge( name, constructor );
return constructor;
};
$.widget.extend = function( target ) {
var input = widget_slice.call( arguments, 1 ),
inputIndex = 0,
inputLength = input.length,
key,
value;
for ( ; inputIndex < inputLength; inputIndex++ ) {
for ( key in input[ inputIndex ] ) {
value = input[ inputIndex ][ key ];
if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
// Clone objects
if ( $.isPlainObject( value ) ) {
target[ key ] = $.isPlainObject( target[ key ] ) ?
$.widget.extend( {}, target[ key ], value ) :
// Don't extend strings, arrays, etc. with objects
$.widget.extend( {}, value );
// Copy everything else by reference
} else {
target[ key ] = value;
}
}
}
}
return target;
};
$.widget.bridge = function( name, object ) {
var fullName = object.prototype.widgetFullName || name;
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string",
args = widget_slice.call( arguments, 1 ),
returnValue = this;
// allow multiple hashes to be passed on init
options = !isMethodCall && args.length ?
$.widget.extend.apply( null, [ options ].concat(args) ) :
options;
if ( isMethodCall ) {
this.each(function() {
var methodValue,
instance = $.data( this, fullName );
if ( options === "instance" ) {
returnValue = instance;
return false;
}
if ( !instance ) {
return $.error( "cannot call methods on " + name + " prior to initialization; " +
"attempted to call method '" + options + "'" );
}
if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) {
return $.error( "no such method '" + options + "' for " + name + " widget instance" );
}
methodValue = instance[ options ].apply( instance, args );
if ( methodValue !== instance && methodValue !== undefined ) {
returnValue = methodValue && methodValue.jquery ?
returnValue.pushStack( methodValue.get() ) :
methodValue;
return false;
}
});
} else {
this.each(function() {
var instance = $.data( this, fullName );
if ( instance ) {
instance.option( options || {} );
if ( instance._init ) {
instance._init();
}
} else {
$.data( this, fullName, new object( options, this ) );
}
});
}
return returnValue;
};
};
$.Widget = function( /* options, element */ ) {};
$.Widget._childConstructors = [];
$.Widget.prototype = {
widgetName: "widget",
widgetEventPrefix: "",
defaultElement: "<div>",
options: {
disabled: false,
// callbacks
create: null
},
_createWidget: function( options, element ) {
element = $( element || this.defaultElement || this )[ 0 ];
this.element = $( element );
this.uuid = widget_uuid++;
this.eventNamespace = "." + this.widgetName + this.uuid;
this.options = $.widget.extend( {},
this.options,
this._getCreateOptions(),
options );
this.bindings = $();
this.hoverable = $();
this.focusable = $();
if ( element !== this ) {
$.data( element, this.widgetFullName, this );
this._on( true, this.element, {
remove: function( event ) {
if ( event.target === element ) {
this.destroy();
}
}
});
this.document = $( element.style ?
// element within the document
element.ownerDocument :
// element is window or document
element.document || element );
this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
}
this._create();
this._trigger( "create", null, this._getCreateEventData() );
this._init();
},
_getCreateOptions: $.noop,
_getCreateEventData: $.noop,
_create: $.noop,
_init: $.noop,
destroy: function() {
this._destroy();
// we can probably remove the unbind calls in 2.0
// all event bindings should go through this._on()
this.element
.unbind( this.eventNamespace )
.removeData( this.widgetFullName )
// support: jquery <1.6.3
// http://bugs.jquery.com/ticket/9413
.removeData( $.camelCase( this.widgetFullName ) );
this.widget()
.unbind( this.eventNamespace )
.removeAttr( "aria-disabled" )
.removeClass(
this.widgetFullName + "-disabled " +
"ui-state-disabled" );
// clean up events and states
this.bindings.unbind( this.eventNamespace );
this.hoverable.removeClass( "ui-state-hover" );
this.focusable.removeClass( "ui-state-focus" );
},
_destroy: $.noop,
widget: function() {
return this.element;
},
option: function( key, value ) {
var options = key,
parts,
curOption,
i;
if ( arguments.length === 0 ) {
// don't return a reference to the internal hash
return $.widget.extend( {}, this.options );
}
if ( typeof key === "string" ) {
// handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
options = {};
parts = key.split( "." );
key = parts.shift();
if ( parts.length ) {
curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
for ( i = 0; i < parts.length - 1; i++ ) {
curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
curOption = curOption[ parts[ i ] ];
}
key = parts.pop();
if ( arguments.length === 1 ) {
return curOption[ key ] === undefined ? null : curOption[ key ];
}
curOption[ key ] = value;
} else {
if ( arguments.length === 1 ) {
return this.options[ key ] === undefined ? null : this.options[ key ];
}
options[ key ] = value;
}
}
this._setOptions( options );
return this;
},
_setOptions: function( options ) {
var key;
for ( key in options ) {
this._setOption( key, options[ key ] );
}
return this;
},
_setOption: function( key, value ) {
this.options[ key ] = value;
if ( key === "disabled" ) {
this.widget()
.toggleClass( this.widgetFullName + "-disabled", !!value );
// If the widget is becoming disabled, then nothing is interactive
if ( value ) {
this.hoverable.removeClass( "ui-state-hover" );
this.focusable.removeClass( "ui-state-focus" );
}
}
return this;
},
enable: function() {
return this._setOptions({ disabled: false });
},
disable: function() {
return this._setOptions({ disabled: true });
},
_on: function( suppressDisabledCheck, element, handlers ) {
var delegateElement,
instance = this;
// no suppressDisabledCheck flag, shuffle arguments
if ( typeof suppressDisabledCheck !== "boolean" ) {
handlers = element;
element = suppressDisabledCheck;
suppressDisabledCheck = false;
}
// no element argument, shuffle and use this.element
if ( !handlers ) {
handlers = element;
element = this.element;
delegateElement = this.widget();
} else {
element = delegateElement = $( element );
this.bindings = this.bindings.add( element );
}
$.each( handlers, function( event, handler ) {
function handlerProxy() {
// allow widgets to customize the disabled handling
// - disabled as an array instead of boolean
// - disabled class as method for disabling individual parts
if ( !suppressDisabledCheck &&
( instance.options.disabled === true ||
$( this ).hasClass( "ui-state-disabled" ) ) ) {
return;
}
return ( typeof handler === "string" ? instance[ handler ] : handler )
.apply( instance, arguments );
}
// copy the guid so direct unbinding works
if ( typeof handler !== "string" ) {
handlerProxy.guid = handler.guid =
handler.guid || handlerProxy.guid || $.guid++;
}
var match = event.match( /^([\w:-]*)\s*(.*)$/ ),
eventName = match[1] + instance.eventNamespace,
selector = match[2];
if ( selector ) {
delegateElement.delegate( selector, eventName, handlerProxy );
} else {
element.bind( eventName, handlerProxy );
}
});
},
_off: function( element, eventName ) {
eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) + this.eventNamespace;
element.unbind( eventName ).undelegate( eventName );
},
_delay: function( handler, delay ) {
function handlerProxy() {
return ( typeof handler === "string" ? instance[ handler ] : handler )
.apply( instance, arguments );
}
var instance = this;
return setTimeout( handlerProxy, delay || 0 );
},
_hoverable: function( element ) {
this.hoverable = this.hoverable.add( element );
this._on( element, {
mouseenter: function( event ) {
$( event.currentTarget ).addClass( "ui-state-hover" );
},
mouseleave: function( event ) {
$( event.currentTarget ).removeClass( "ui-state-hover" );
}
});
},
_focusable: function( element ) {
this.focusable = this.focusable.add( element );
this._on( element, {
focusin: function( event ) {
$( event.currentTarget ).addClass( "ui-state-focus" );
},
focusout: function( event ) {
$( event.currentTarget ).removeClass( "ui-state-focus" );
}
});
},
_trigger: function( type, event, data ) {
var prop, orig,
callback = this.options[ type ];
data = data || {};
event = $.Event( event );
event.type = ( type === this.widgetEventPrefix ?
type :
this.widgetEventPrefix + type ).toLowerCase();
// the original event may come from any element
// so we need to reset the target on the new event
event.target = this.element[ 0 ];
// copy original event properties over to the new event
orig = event.originalEvent;
if ( orig ) {
for ( prop in orig ) {
if ( !( prop in event ) ) {
event[ prop ] = orig[ prop ];
}
}
}
this.element.trigger( event, data );
return !( $.isFunction( callback ) &&
callback.apply( this.element[0], [ event ].concat( data ) ) === false ||
event.isDefaultPrevented() );
}
};
$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
$.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
if ( typeof options === "string" ) {
options = { effect: options };
}
var hasOptions,
effectName = !options ?
method :
options === true || typeof options === "number" ?
defaultEffect :
options.effect || defaultEffect;
options = options || {};
if ( typeof options === "number" ) {
options = { duration: options };
}
hasOptions = !$.isEmptyObject( options );
options.complete = callback;
if ( options.delay ) {
element.delay( options.delay );
}
if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
element[ method ]( options );
} else if ( effectName !== method && element[ effectName ] ) {
element[ effectName ]( options.duration, options.easing, callback );
} else {
element.queue(function( next ) {
$( this )[ method ]();
if ( callback ) {
callback.call( element[ 0 ] );
}
next();
});
}
};
});
var widget = $.widget;
/*!
* jQuery UI Mouse 1.11.0
* http://jqueryui.com
*
* Copyright 2016 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/mouse/
*/
var mouseHandled = false;
$( document ).mouseup( function() {
mouseHandled = false;
});
var mouse = $.widget("ui.mouse", {
version: "1.11.0",
options: {
cancel: "input,textarea,button,select,option",
distance: 1,
delay: 0
},
_mouseInit: function() {
var that = this;
this.element
.bind("mousedown." + this.widgetName, function(event) {
return that._mouseDown(event);
})
.bind("click." + this.widgetName, function(event) {
if (true === $.data(event.target, that.widgetName + ".preventClickEvent")) {
$.removeData(event.target, that.widgetName + ".preventClickEvent");
event.stopImmediatePropagation();
return false;
}
});
this.started = false;
},
// TODO: make sure destroying one instance of mouse doesn't mess with
// other instances of mouse
_mouseDestroy: function() {
this.element.unbind("." + this.widgetName);
if ( this._mouseMoveDelegate ) {
this.document
.unbind("mousemove." + this.widgetName, this._mouseMoveDelegate)
.unbind("mouseup." + this.widgetName, this._mouseUpDelegate);
}
},
_mouseDown: function(event) {
// don't let more than one widget handle mouseStart
if ( mouseHandled ) {
return;
}
// we may have missed mouseup (out of window)
(this._mouseStarted && this._mouseUp(event));
this._mouseDownEvent = event;
var that = this,
btnIsLeft = (event.which === 1),
// event.target.nodeName works around a bug in IE 8 with
// disabled inputs (#7620)
elIsCancel = (typeof this.options.cancel === "string" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false);
if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {
return true;
}
this.mouseDelayMet = !this.options.delay;
if (!this.mouseDelayMet) {
this._mouseDelayTimer = setTimeout(function() {
that.mouseDelayMet = true;
}, this.options.delay);
}
if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
this._mouseStarted = (this._mouseStart(event) !== false);
if (!this._mouseStarted) {
event.preventDefault();
return true;
}
}
// Click event may never have fired (Gecko & Opera)
if (true === $.data(event.target, this.widgetName + ".preventClickEvent")) {
$.removeData(event.target, this.widgetName + ".preventClickEvent");
}
// these delegates are required to keep context
this._mouseMoveDelegate = function(event) {
return that._mouseMove(event);
};
this._mouseUpDelegate = function(event) {
return that._mouseUp(event);
};
this.document
.bind( "mousemove." + this.widgetName, this._mouseMoveDelegate )
.bind( "mouseup." + this.widgetName, this._mouseUpDelegate );
event.preventDefault();
mouseHandled = true;
return true;
},
_mouseMove: function(event) {
// IE mouseup check - mouseup happened when mouse was out of window
if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) {
return this._mouseUp(event);
// Iframe mouseup check - mouseup occurred in another document
} else if ( !event.which ) {
return this._mouseUp( event );
}
if (this._mouseStarted) {
this._mouseDrag(event);
return event.preventDefault();
}
if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
this._mouseStarted =
(this._mouseStart(this._mouseDownEvent, event) !== false);
(this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event));
}
return !this._mouseStarted;
},
_mouseUp: function(event) {
this.document
.unbind( "mousemove." + this.widgetName, this._mouseMoveDelegate )
.unbind( "mouseup." + this.widgetName, this._mouseUpDelegate );
if (this._mouseStarted) {
this._mouseStarted = false;
if (event.target === this._mouseDownEvent.target) {
$.data(event.target, this.widgetName + ".preventClickEvent", true);
}
this._mouseStop(event);
}
mouseHandled = false;
return false;
},
_mouseDistanceMet: function(event) {
return (Math.max(
Math.abs(this._mouseDownEvent.pageX - event.pageX),
Math.abs(this._mouseDownEvent.pageY - event.pageY)
) >= this.options.distance
);
},
_mouseDelayMet: function(/* event */) {
return this.mouseDelayMet;
},
// These are placeholder methods, to be overriden by extending plugin
_mouseStart: function(/* event */) {},
_mouseDrag: function(/* event */) {},
_mouseStop: function(/* event */) {},
_mouseCapture: function(/* event */) { return true; }
});
/*!
* jQuery UI Position 1.11.0
* http://jqueryui.com
*
* Copyright 2016 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/position/
*/
(function() {
$.ui = $.ui || {};
var cachedScrollbarWidth, supportsOffsetFractions,
max = Math.max,
abs = Math.abs,
round = Math.round,
rhorizontal = /left|center|right/,
rvertical = /top|center|bottom/,
roffset = /[\+\-]\d+(\.[\d]+)?%?/,
rposition = /^\w+/,
rpercent = /%$/,
_position = $.fn.position;
function getOffsets( offsets, width, height ) {
return [
parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
];
}
function parseCss( element, property ) {
return parseInt( $.css( element, property ), 10 ) || 0;
}
function getDimensions( elem ) {
var raw = elem[0];
if ( raw.nodeType === 9 ) {
return {
width: elem.width(),
height: elem.height(),
offset: { top: 0, left: 0 }
};
}
if ( $.isWindow( raw ) ) {
return {
width: elem.width(),
height: elem.height(),
offset: { top: elem.scrollTop(), left: elem.scrollLeft() }
};
}
if ( raw.preventDefault ) {
return {
width: 0,
height: 0,
offset: { top: raw.pageY, left: raw.pageX }
};
}
return {
width: elem.outerWidth(),
height: elem.outerHeight(),
offset: elem.offset()
};
}
$.position = {
scrollbarWidth: function() {
if ( cachedScrollbarWidth !== undefined ) {
return cachedScrollbarWidth;
}
var w1, w2,
div = $( "<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ),
innerDiv = div.children()[0];
$( "body" ).append( div );
w1 = innerDiv.offsetWidth;
div.css( "overflow", "scroll" );
w2 = innerDiv.offsetWidth;
if ( w1 === w2 ) {
w2 = div[0].clientWidth;
}
div.remove();
return (cachedScrollbarWidth = w1 - w2);
},
getScrollInfo: function( within ) {
var overflowX = within.isWindow || within.isDocument ? "" :
within.element.css( "overflow-x" ),
overflowY = within.isWindow || within.isDocument ? "" :
within.element.css( "overflow-y" ),
hasOverflowX = overflowX === "scroll" ||
( overflowX === "auto" && within.width < within.element[0].scrollWidth ),
hasOverflowY = overflowY === "scroll" ||
( overflowY === "auto" && within.height < within.element[0].scrollHeight );
return {
width: hasOverflowY ? $.position.scrollbarWidth() : 0,
height: hasOverflowX ? $.position.scrollbarWidth() : 0
};
},
getWithinInfo: function( element ) {
var withinElement = $( element || window ),
isWindow = $.isWindow( withinElement[0] ),
isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9;
return {
element: withinElement,
isWindow: isWindow,
isDocument: isDocument,
offset: withinElement.offset() || { left: 0, top: 0 },
scrollLeft: withinElement.scrollLeft(),
scrollTop: withinElement.scrollTop(),
width: isWindow ? withinElement.width() : withinElement.outerWidth(),
height: isWindow ? withinElement.height() : withinElement.outerHeight()
};
}
};
$.fn.position = function( options ) {
if ( !options || !options.of ) {
return _position.apply( this, arguments );
}
// make a copy, we don't want to modify arguments
options = $.extend( {}, options );
var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
target = $( options.of ),
within = $.position.getWithinInfo( options.within ),
scrollInfo = $.position.getScrollInfo( within ),
collision = ( options.collision || "flip" ).split( " " ),
offsets = {};
dimensions = getDimensions( target );
if ( target[0].preventDefault ) {
// force left top to allow flipping
options.at = "left top";
}
targetWidth = dimensions.width;
targetHeight = dimensions.height;
targetOffset = dimensions.offset;
// clone to reuse original targetOffset later
basePosition = $.extend( {}, targetOffset );
// force my and at to have valid horizontal and vertical positions
// if a value is missing or invalid, it will be converted to center
$.each( [ "my", "at" ], function() {
var pos = ( options[ this ] || "" ).split( " " ),
horizontalOffset,
verticalOffset;
if ( pos.length === 1) {
pos = rhorizontal.test( pos[ 0 ] ) ?
pos.concat( [ "center" ] ) :
rvertical.test( pos[ 0 ] ) ?
[ "center" ].concat( pos ) :
[ "center", "center" ];
}
pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center";
pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center";
// calculate offsets
horizontalOffset = roffset.exec( pos[ 0 ] );
verticalOffset = roffset.exec( pos[ 1 ] );
offsets[ this ] = [
horizontalOffset ? horizontalOffset[ 0 ] : 0,
verticalOffset ? verticalOffset[ 0 ] : 0
];
// reduce to just the positions without the offsets
options[ this ] = [
rposition.exec( pos[ 0 ] )[ 0 ],
rposition.exec( pos[ 1 ] )[ 0 ]
];
});
// normalize collision option
if ( collision.length === 1 ) {
collision[ 1 ] = collision[ 0 ];
}
if ( options.at[ 0 ] === "right" ) {
basePosition.left += targetWidth;
} else if ( options.at[ 0 ] === "center" ) {
basePosition.left += targetWidth / 2;
}
if ( options.at[ 1 ] === "bottom" ) {
basePosition.top += targetHeight;
} else if ( options.at[ 1 ] === "center" ) {
basePosition.top += targetHeight / 2;
}
atOffset = getOffsets( offsets.at, targetWidth, targetHeight );
basePosition.left += atOffset[ 0 ];
basePosition.top += atOffset[ 1 ];
return this.each(function() {
var collisionPosition, using,
elem = $( this ),
elemWidth = elem.outerWidth(),
elemHeight = elem.outerHeight(),
marginLeft = parseCss( this, "marginLeft" ),
marginTop = parseCss( this, "marginTop" ),
collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) + scrollInfo.width,
collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) + scrollInfo.height,
position = $.extend( {}, basePosition ),
myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() );
if ( options.my[ 0 ] === "right" ) {
position.left -= elemWidth;
} else if ( options.my[ 0 ] === "center" ) {
position.left -= elemWidth / 2;
}
if ( options.my[ 1 ] === "bottom" ) {
position.top -= elemHeight;
} else if ( options.my[ 1 ] === "center" ) {
position.top -= elemHeight / 2;
}
position.left += myOffset[ 0 ];
position.top += myOffset[ 1 ];
// if the browser doesn't support fractions, then round for consistent results
if ( !supportsOffsetFractions ) {
position.left = round( position.left );
position.top = round( position.top );
}
collisionPosition = {
marginLeft: marginLeft,
marginTop: marginTop
};
$.each( [ "left", "top" ], function( i, dir ) {
if ( $.ui.position[ collision[ i ] ] ) {
$.ui.position[ collision[ i ] ][ dir ]( position, {
targetWidth: targetWidth,
targetHeight: targetHeight,
elemWidth: elemWidth,
elemHeight: elemHeight,
collisionPosition: collisionPosition,
collisionWidth: collisionWidth,
collisionHeight: collisionHeight,
offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ],
my: options.my,
at: options.at,
within: within,
elem: elem
});
}
});
if ( options.using ) {
// adds feedback as second argument to using callback, if present
using = function( props ) {
var left = targetOffset.left - position.left,
right = left + targetWidth - elemWidth,
top = targetOffset.top - position.top,
bottom = top + targetHeight - elemHeight,
feedback = {
target: {
element: target,
left: targetOffset.left,
top: targetOffset.top,
width: targetWidth,
height: targetHeight
},
element: {
element: elem,
left: position.left,
top: position.top,
width: elemWidth,
height: elemHeight
},
horizontal: right < 0 ? "left" : left > 0 ? "right" : "center",
vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle"
};
if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) {
feedback.horizontal = "center";
}
if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) {
feedback.vertical = "middle";
}
if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) {
feedback.important = "horizontal";
} else {
feedback.important = "vertical";
}
options.using.call( this, props, feedback );
};
}
elem.offset( $.extend( position, { using: using } ) );
});
};
$.ui.position = {
fit: {
left: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
outerWidth = within.width,
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
overLeft = withinOffset - collisionPosLeft,
overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,
newOverRight;
// element is wider than within
if ( data.collisionWidth > outerWidth ) {
// element is initially over the left side of within
if ( overLeft > 0 && overRight <= 0 ) {
newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset;
position.left += overLeft - newOverRight;
// element is initially over right side of within
} else if ( overRight > 0 && overLeft <= 0 ) {
position.left = withinOffset;
// element is initially over both left and right sides of within
} else {
if ( overLeft > overRight ) {
position.left = withinOffset + outerWidth - data.collisionWidth;
} else {
position.left = withinOffset;
}
}
// too far left -> align with left edge
} else if ( overLeft > 0 ) {
position.left += overLeft;
// too far right -> align with right edge
} else if ( overRight > 0 ) {
position.left -= overRight;
// adjust based on position and margin
} else {
position.left = max( position.left - collisionPosLeft, position.left );
}
},
top: function( position, data ) {
var within = data.within,
withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
outerHeight = data.within.height,
collisionPosTop = position.top - data.collisionPosition.marginTop,
overTop = withinOffset - collisionPosTop,
overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,
newOverBottom;
// element is taller than within
if ( data.collisionHeight > outerHeight ) {
// element is initially over the top of within
if ( overTop > 0 && overBottom <= 0 ) {
newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset;
position.top += overTop - newOverBottom;
// element is initially over bottom of within
} else if ( overBottom > 0 && overTop <= 0 ) {
position.top = withinOffset;
// element is initially over both top and bottom of within
} else {
if ( overTop > overBottom ) {
position.top = withinOffset + outerHeight - data.collisionHeight;
} else {
position.top = withinOffset;
}
}
// too far up -> align with top
} else if ( overTop > 0 ) {
position.top += overTop;
// too far down -> align with bottom edge
} else if ( overBottom > 0 ) {
position.top -= overBottom;
// adjust based on position and margin
} else {
position.top = max( position.top - collisionPosTop, position.top );
}
}
},
flip: {
left: function( position, data ) {
var within = data.within,
withinOffset = within.offset.left + within.scrollLeft,
outerWidth = within.width,
offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
overLeft = collisionPosLeft - offsetLeft,
overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft,
myOffset = data.my[ 0 ] === "left" ?
-data.elemWidth :
data.my[ 0 ] === "right" ?
data.elemWidth :
0,
atOffset = data.at[ 0 ] === "left" ?
data.targetWidth :
data.at[ 0 ] === "right" ?
-data.targetWidth :
0,
offset = -2 * data.offset[ 0 ],
newOverRight,
newOverLeft;
if ( overLeft < 0 ) {
newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth - outerWidth - withinOffset;
if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {
position.left += myOffset + atOffset + offset;
}
} else if ( overRight > 0 ) {
newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset + atOffset + offset - offsetLeft;
if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) {
position.left += myOffset + atOffset + offset;
}
}
},
top: function( position, data ) {
var within = data.within,
withinOffset = within.offset.top + within.scrollTop,
outerHeight = within.height,
offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
collisionPosTop = position.top - data.collisionPosition.marginTop,
overTop = collisionPosTop - offsetTop,
overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop,
top = data.my[ 1 ] === "top",
myOffset = top ?
-data.elemHeight :
data.my[ 1 ] === "bottom" ?
data.elemHeight :
0,
atOffset = data.at[ 1 ] === "top" ?
data.targetHeight :
data.at[ 1 ] === "bottom" ?
-data.targetHeight :
0,
offset = -2 * data.offset[ 1 ],
newOverTop,
newOverBottom;
if ( overTop < 0 ) {
newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset;
if ( ( position.top + myOffset + atOffset + offset) > overTop && ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) ) {
position.top += myOffset + atOffset + offset;
}
} else if ( overBottom > 0 ) {
newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
if ( ( position.top + myOffset + atOffset + offset) > overBottom && ( newOverTop > 0 || abs( newOverTop ) < overBottom ) ) {
position.top += myOffset + atOffset + offset;
}
}
}
},
flipfit: {
left: function() {
$.ui.position.flip.left.apply( this, arguments );
$.ui.position.fit.left.apply( this, arguments );
},
top: function() {
$.ui.position.flip.top.apply( this, arguments );
$.ui.position.fit.top.apply( this, arguments );
}
}
};
// fraction support test
(function() {
var testElement, testElementParent, testElementStyle, offsetLeft, i,
body = document.getElementsByTagName( "body" )[ 0 ],
div = document.createElement( "div" );
//Create a "fake body" for testing based on method used in jQuery.support
testElement = document.createElement( body ? "div" : "body" );
testElementStyle = {
visibility: "hidden",
width: 0,
height: 0,
border: 0,
margin: 0,
background: "none"
};
if ( body ) {
$.extend( testElementStyle, {
position: "absolute",
left: "-1000px",
top: "-1000px"
});
}
for ( i in testElementStyle ) {
testElement.style[ i ] = testElementStyle[ i ];
}
testElement.appendChild( div );
testElementParent = body || document.documentElement;
testElementParent.insertBefore( testElement, testElementParent.firstChild );
div.style.cssText = "position: absolute; left: 10.7432222px;";
offsetLeft = $( div ).offset().left;
supportsOffsetFractions = offsetLeft > 10 && offsetLeft < 11;
testElement.innerHTML = "";
testElementParent.removeChild( testElement );
})();
})();
var position = $.ui.position;
/*!
* jQuery UI Menu 1.11.0
* http://jqueryui.com
*
* Copyright 2016 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/menu/
*/
var menu = $.widget( "ui.menu", {
version: "1.11.0",
defaultElement: "<ul>",
delay: 300,
options: {
icons: {
submenu: "ui-icon-carat-1-e"
},
items: "> *",
menus: "ul",
position: {
my: "left-1 top",
at: "right top"
},
role: "menu",
// callbacks
blur: null,
focus: null,
select: null
},
_create: function() {
this.activeMenu = this.element;
// Flag used to prevent firing of the click handler
// as the event bubbles up through nested menus
this.mouseHandled = false;
this.element
.uniqueId()
.addClass( "ui-menu ui-widget ui-widget-content" )
.toggleClass( "ui-menu-icons", !!this.element.find( ".ui-icon" ).length )
.attr({
role: this.options.role,
tabIndex: 0
});
if ( this.options.disabled ) {
this.element
.addClass( "ui-state-disabled" )
.attr( "aria-disabled", "true" );
}
this._on({
// Prevent focus from sticking to links inside menu after clicking
// them (focus should always stay on UL during navigation).
"mousedown .ui-menu-item": function( event ) {
event.preventDefault();
},
"click .ui-menu-item": function( event ) {
var target = $( event.target );
if ( !this.mouseHandled && target.not( ".ui-state-disabled" ).length ) {
this.select( event );
// Only set the mouseHandled flag if the event will bubble, see #9469.
if ( !event.isPropagationStopped() ) {
this.mouseHandled = true;
}
// Open submenu on click
if ( target.has( ".ui-menu" ).length ) {
this.expand( event );
} else if ( !this.element.is( ":focus" ) && $( this.document[ 0 ].activeElement ).closest( ".ui-menu" ).length ) {
// Redirect focus to the menu
this.element.trigger( "focus", [ true ] );
// If the active item is on the top level, let it stay active.
// Otherwise, blur the active item since it is no longer visible.
if ( this.active && this.active.parents( ".ui-menu" ).length === 1 ) {
clearTimeout( this.timer );
}
}
}
},
"mouseenter .ui-menu-item": function( event ) {
var target = $( event.currentTarget );
// Remove ui-state-active class from siblings of the newly focused menu item
// to avoid a jump caused by adjacent elements both having a class with a border
target.siblings( ".ui-state-active" ).removeClass( "ui-state-active" );
this.focus( event, target );
},
mouseleave: "collapseAll",
"mouseleave .ui-menu": "collapseAll",
focus: function( event, keepActiveItem ) {
// If there's already an active item, keep it active
// If not, activate the first item
var item = this.active || this.element.find( this.options.items ).eq( 0 );
if ( !keepActiveItem ) {
this.focus( event, item );
}
},
blur: function( event ) {
this._delay(function() {
if ( !$.contains( this.element[0], this.document[0].activeElement ) ) {
this.collapseAll( event );
}
});
},
keydown: "_keydown"
});
this.refresh();
// Clicks outside of a menu collapse any open menus
this._on( this.document, {
click: function( event ) {
if ( this._closeOnDocumentClick( event ) ) {
this.collapseAll( event );
}
// Reset the mouseHandled flag
this.mouseHandled = false;
}
});
},
_destroy: function() {
// Destroy (sub)menus
this.element
.removeAttr( "aria-activedescendant" )
.find( ".ui-menu" ).addBack()
.removeClass( "ui-menu ui-widget ui-widget-content ui-menu-icons ui-front" )
.removeAttr( "role" )
.removeAttr( "tabIndex" )
.removeAttr( "aria-labelledby" )
.removeAttr( "aria-expanded" )
.removeAttr( "aria-hidden" )
.removeAttr( "aria-disabled" )
.removeUniqueId()
.show();
// Destroy menu items
this.element.find( ".ui-menu-item" )
.removeClass( "ui-menu-item" )
.removeAttr( "role" )
.removeAttr( "aria-disabled" )
.removeUniqueId()
.removeClass( "ui-state-hover" )
.removeAttr( "tabIndex" )
.removeAttr( "role" )
.removeAttr( "aria-haspopup" )
.children().each( function() {
var elem = $( this );
if ( elem.data( "ui-menu-submenu-carat" ) ) {
elem.remove();
}
});
// Destroy menu dividers
this.element.find( ".ui-menu-divider" ).removeClass( "ui-menu-divider ui-widget-content" );
},
_keydown: function( event ) {
var match, prev, character, skip, regex,
preventDefault = true;
function escape( value ) {
return value.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" );
}
switch ( event.keyCode ) {
case $.ui.keyCode.PAGE_UP:
this.previousPage( event );
break;
case $.ui.keyCode.PAGE_DOWN:
this.nextPage( event );
break;
case $.ui.keyCode.HOME:
this._move( "first", "first", event );
break;
case $.ui.keyCode.END:
this._move( "last", "last", event );
break;
case $.ui.keyCode.UP:
this.previous( event );
break;
case $.ui.keyCode.DOWN:
this.next( event );
break;
case $.ui.keyCode.LEFT:
this.collapse( event );
break;
case $.ui.keyCode.RIGHT:
if ( this.active && !this.active.is( ".ui-state-disabled" ) ) {
this.expand( event );
}
break;
case $.ui.keyCode.ENTER:
case $.ui.keyCode.SPACE:
this._activate( event );
break;
case $.ui.keyCode.ESCAPE:
this.collapse( event );
break;
default:
preventDefault = false;
prev = this.previousFilter || "";
character = String.fromCharCode( event.keyCode );
skip = false;
clearTimeout( this.filterTimer );
if ( character === prev ) {
skip = true;
} else {
character = prev + character;
}
regex = new RegExp( "^" + escape( character ), "i" );
match = this.activeMenu.find( this.options.items ).filter(function() {
return regex.test( $( this ).text() );
});
match = skip && match.index( this.active.next() ) !== -1 ?
this.active.nextAll( ".ui-menu-item" ) :
match;
// If no matches on the current filter, reset to the last character pressed
// to move down the menu to the first item that starts with that character
if ( !match.length ) {
character = String.fromCharCode( event.keyCode );
regex = new RegExp( "^" + escape( character ), "i" );
match = this.activeMenu.find( this.options.items ).filter(function() {
return regex.test( $( this ).text() );
});
}
if ( match.length ) {
this.focus( event, match );
if ( match.length > 1 ) {
this.previousFilter = character;
this.filterTimer = this._delay(function() {
delete this.previousFilter;
}, 1000 );
} else {
delete this.previousFilter;
}
} else {
delete this.previousFilter;
}
}
if ( preventDefault ) {
event.preventDefault();
}
},
_activate: function( event ) {
if ( !this.active.is( ".ui-state-disabled" ) ) {
if ( this.active.is( "[aria-haspopup='true']" ) ) {
this.expand( event );
} else {
this.select( event );
}
}
},
refresh: function() {
var menus, items,
that = this,
icon = this.options.icons.submenu,
submenus = this.element.find( this.options.menus );
this.element.toggleClass( "ui-menu-icons", !!this.element.find( ".ui-icon" ).length );
// Initialize nested menus
submenus.filter( ":not(.ui-menu)" )
.addClass( "ui-menu ui-widget ui-widget-content ui-front" )
.hide()
.attr({
role: this.options.role,
"aria-hidden": "true",
"aria-expanded": "false"
})
.each(function() {
var menu = $( this ),
item = menu.parent(),
submenuCarat = $( "<span>" )
.addClass( "ui-menu-icon ui-icon " + icon )
.data( "ui-menu-submenu-carat", true );
item
.attr( "aria-haspopup", "true" )
.prepend( submenuCarat );
menu.attr( "aria-labelledby", item.attr( "id" ) );
});
menus = submenus.add( this.element );
items = menus.find( this.options.items );
// Initialize menu-items containing spaces and/or dashes only as dividers
items.not( ".ui-menu-item" ).each(function() {
var item = $( this );
if ( that._isDivider( item ) ) {
item.addClass( "ui-widget-content ui-menu-divider" );
}
});
// Don't refresh list items that are already adapted
items.not( ".ui-menu-item, .ui-menu-divider" )
.addClass( "ui-menu-item" )
.uniqueId()
.attr({
tabIndex: -1,
role: this._itemRole()
});
// Add aria-disabled attribute to any disabled menu item
items.filter( ".ui-state-disabled" ).attr( "aria-disabled", "true" );
// If the active item has been removed, blur the menu
if ( this.active && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
this.blur();
}
},
_itemRole: function() {
return {
menu: "menuitem",
listbox: "option"
}[ this.options.role ];
},
_setOption: function( key, value ) {
if ( key === "icons" ) {
this.element.find( ".ui-menu-icon" )
.removeClass( this.options.icons.submenu )
.addClass( value.submenu );
}
if ( key === "disabled" ) {
this.element
.toggleClass( "ui-state-disabled", !!value )
.attr( "aria-disabled", value );
}
this._super( key, value );
},
focus: function( event, item ) {
var nested, focused;
this.blur( event, event && event.type === "focus" );
this._scrollIntoView( item );
this.active = item.first();
focused = this.active.addClass( "ui-state-focus" ).removeClass( "ui-state-active" );
// Only update aria-activedescendant if there's a role
// otherwise we assume focus is managed elsewhere
if ( this.options.role ) {
this.element.attr( "aria-activedescendant", focused.attr( "id" ) );
}
// Highlight active parent menu item, if any
this.active
.parent()
.closest( ".ui-menu-item" )
.addClass( "ui-state-active" );
if ( event && event.type === "keydown" ) {
this._close();
} else {
this.timer = this._delay(function() {
this._close();
}, this.delay );
}
nested = item.children( ".ui-menu" );
if ( nested.length && event && ( /^mouse/.test( event.type ) ) ) {
this._startOpening(nested);
}
this.activeMenu = item.parent();
this._trigger( "focus", event, { item: item } );
},
_scrollIntoView: function( item ) {
var borderTop, paddingTop, offset, scroll, elementHeight, itemHeight;
if ( this._hasScroll() ) {
borderTop = parseFloat( $.css( this.activeMenu[0], "borderTopWidth" ) ) || 0;
paddingTop = parseFloat( $.css( this.activeMenu[0], "paddingTop" ) ) || 0;
offset = item.offset().top - this.activeMenu.offset().top - borderTop - paddingTop;
scroll = this.activeMenu.scrollTop();
elementHeight = this.activeMenu.height();
itemHeight = item.outerHeight();
if ( offset < 0 ) {
this.activeMenu.scrollTop( scroll + offset );
} else if ( offset + itemHeight > elementHeight ) {
this.activeMenu.scrollTop( scroll + offset - elementHeight + itemHeight );
}
}
},
blur: function( event, fromFocus ) {
if ( !fromFocus ) {
clearTimeout( this.timer );
}
if ( !this.active ) {
return;
}
this.active.removeClass( "ui-state-focus" );
this.active = null;
this._trigger( "blur", event, { item: this.active } );
},
_startOpening: function( submenu ) {
clearTimeout( this.timer );
// Don't open if already open fixes a Firefox bug that caused a .5 pixel
// shift in the submenu position when mousing over the carat icon
if ( submenu.attr( "aria-hidden" ) !== "true" ) {
return;
}
this.timer = this._delay(function() {
this._close();
this._open( submenu );
}, this.delay );
},
_open: function( submenu ) {
var position = $.extend({
of: this.active
}, this.options.position );
clearTimeout( this.timer );
this.element.find( ".ui-menu" ).not( submenu.parents( ".ui-menu" ) )
.hide()
.attr( "aria-hidden", "true" );
submenu
.show()
.removeAttr( "aria-hidden" )
.attr( "aria-expanded", "true" )
.position( position );
},
collapseAll: function( event, all ) {
clearTimeout( this.timer );
this.timer = this._delay(function() {
// If we were passed an event, look for the submenu that contains the event
var currentMenu = all ? this.element :
$( event && event.target ).closest( this.element.find( ".ui-menu" ) );
// If we found no valid submenu ancestor, use the main menu to close all sub menus anyway
if ( !currentMenu.length ) {
currentMenu = this.element;
}
this._close( currentMenu );
this.blur( event );
this.activeMenu = currentMenu;
}, this.delay );
},
// With no arguments, closes the currently active menu - if nothing is active
// it closes all menus. If passed an argument, it will search for menus BELOW
_close: function( startMenu ) {
if ( !startMenu ) {
startMenu = this.active ? this.active.parent() : this.element;
}
startMenu
.find( ".ui-menu" )
.hide()
.attr( "aria-hidden", "true" )
.attr( "aria-expanded", "false" )
.end()
.find( ".ui-state-active" ).not( ".ui-state-focus" )
.removeClass( "ui-state-active" );
},
_closeOnDocumentClick: function( event ) {
return !$( event.target ).closest( ".ui-menu" ).length;
},
_isDivider: function( item ) {
// Match hyphen, em dash, en dash
return !/[^\-\u2016\u2013\s]/.test( item.text() );
},
collapse: function( event ) {
var newItem = this.active &&
this.active.parent().closest( ".ui-menu-item", this.element );
if ( newItem && newItem.length ) {
this._close();
this.focus( event, newItem );
}
},
expand: function( event ) {
var newItem = this.active &&
this.active
.children( ".ui-menu " )
.find( this.options.items )
.first();
if ( newItem && newItem.length ) {
this._open( newItem.parent() );
// Delay so Firefox will not hide activedescendant change in expanding submenu from AT
this._delay(function() {
this.focus( event, newItem );
});
}
},
next: function( event ) {
this._move( "next", "first", event );
},
previous: function( event ) {
this._move( "prev", "last", event );
},
isFirstItem: function() {
return this.active && !this.active.prevAll( ".ui-menu-item" ).length;
},
isLastItem: function() {
return this.active && !this.active.nextAll( ".ui-menu-item" ).length;
},
_move: function( direction, filter, event ) {
var next;
if ( this.active ) {
if ( direction === "first" || direction === "last" ) {
next = this.active
[ direction === "first" ? "prevAll" : "nextAll" ]( ".ui-menu-item" )
.eq( -1 );
} else {
next = this.active
[ direction + "All" ]( ".ui-menu-item" )
.eq( 0 );
}
}
if ( !next || !next.length || !this.active ) {
next = this.activeMenu.find( this.options.items )[ filter ]();
}
this.focus( event, next );
},
nextPage: function( event ) {
var item, base, height;
if ( !this.active ) {
this.next( event );
return;
}
if ( this.isLastItem() ) {
return;
}
if ( this._hasScroll() ) {
base = this.active.offset().top;
height = this.element.height();
this.active.nextAll( ".ui-menu-item" ).each(function() {
item = $( this );
return item.offset().top - base - height < 0;
});
this.focus( event, item );
} else {
this.focus( event, this.activeMenu.find( this.options.items )
[ !this.active ? "first" : "last" ]() );
}
},
previousPage: function( event ) {
var item, base, height;
if ( !this.active ) {
this.next( event );
return;
}
if ( this.isFirstItem() ) {
return;
}
if ( this._hasScroll() ) {
base = this.active.offset().top;
height = this.element.height();
this.active.prevAll( ".ui-menu-item" ).each(function() {
item = $( this );
return item.offset().top - base + height > 0;
});
this.focus( event, item );
} else {
this.focus( event, this.activeMenu.find( this.options.items ).first() );
}
},
_hasScroll: function() {
return this.element.outerHeight() < this.element.prop( "scrollHeight" );
},
select: function( event ) {
// TODO: It should never be possible to not have an active item at this
// point, but the tests don't trigger mouseenter before click.
this.active = this.active || $( event.target ).closest( ".ui-menu-item" );
var ui = { item: this.active };
if ( !this.active.has( ".ui-menu" ).length ) {
this.collapseAll( event, true );
}
this._trigger( "select", event, ui );
}
});
/*!
* jQuery UI Autocomplete 1.11.0
* http://jqueryui.com
*
* Copyright 2016 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/autocomplete/
*/
$.widget( "ui.autocomplete", {
version: "1.11.0",
defaultElement: "<input>",
options: {
appendTo: null,
autoFocus: false,
delay: 300,
minLength: 1,
position: {
my: "left top",
at: "left bottom",
collision: "none"
},
source: null,
// callbacks
change: null,
close: null,
focus: null,
open: null,
response: null,
search: null,
select: null
},
requestIndex: 0,
pending: 0,
_create: function() {
// Some browsers only repeat keydown events, not keypress events,
// so we use the suppressKeyPress flag to determine if we've already
// handled the keydown event. #7269
// Unfortunately the code for & in keypress is the same as the up arrow,
// so we use the suppressKeyPressRepeat flag to avoid handling keypress
// events when we know the keydown event was used to modify the
// search term. #7799
var suppressKeyPress, suppressKeyPressRepeat, suppressInput,
nodeName = this.element[ 0 ].nodeName.toLowerCase(),
isTextarea = nodeName === "textarea",
isInput = nodeName === "input";
this.isMultiLine =
// Textareas are always multi-line
isTextarea ? true :
// Inputs are always single-line, even if inside a contentEditable element
// IE also treats inputs as contentEditable
isInput ? false :
// All other element types are determined by whether or not they're contentEditable
this.element.prop( "isContentEditable" );
this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ];
this.isNewMenu = true;
this.element
.addClass( "ui-autocomplete-input" )
.attr( "autocomplete", "off" );
this._on( this.element, {
keydown: function( event ) {
if ( this.element.prop( "readOnly" ) ) {
suppressKeyPress = true;
suppressInput = true;
suppressKeyPressRepeat = true;
return;
}
suppressKeyPress = false;
suppressInput = false;
suppressKeyPressRepeat = false;
var keyCode = $.ui.keyCode;
switch ( event.keyCode ) {
case keyCode.PAGE_UP:
suppressKeyPress = true;
this._move( "previousPage", event );
break;
case keyCode.PAGE_DOWN:
suppressKeyPress = true;
this._move( "nextPage", event );
break;
case keyCode.UP:
suppressKeyPress = true;
this._keyEvent( "previous", event );
break;
case keyCode.DOWN:
suppressKeyPress = true;
this._keyEvent( "next", event );
break;
case keyCode.ENTER:
// when menu is open and has focus
if ( this.menu.active ) {
// #6055 - Opera still allows the keypress to occur
// which causes forms to submit
suppressKeyPress = true;
event.preventDefault();
this.menu.select( event );
}
break;
case keyCode.TAB:
if ( this.menu.active ) {
this.menu.select( event );
}
break;
case keyCode.ESCAPE:
if ( this.menu.element.is( ":visible" ) ) {
this._value( this.term );
this.close( event );
// Different browsers have different default behavior for escape
// Single press can mean undo or clear
// Double press in IE means clear the whole form
event.preventDefault();
}
break;
default:
suppressKeyPressRepeat = true;
// search timeout should be triggered before the input value is changed
this._searchTimeout( event );
break;
}
},
keypress: function( event ) {
if ( suppressKeyPress ) {
suppressKeyPress = false;
if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) {
event.preventDefault();
}
return;
}
if ( suppressKeyPressRepeat ) {
return;
}
// replicate some key handlers to allow them to repeat in Firefox and Opera
var keyCode = $.ui.keyCode;
switch ( event.keyCode ) {
case keyCode.PAGE_UP:
this._move( "previousPage", event );
break;
case keyCode.PAGE_DOWN:
this._move( "nextPage", event );
break;
case keyCode.UP:
this._keyEvent( "previous", event );
break;
case keyCode.DOWN:
this._keyEvent( "next", event );
break;
}
},
input: function( event ) {
if ( suppressInput ) {
suppressInput = false;
event.preventDefault();
return;
}
this._searchTimeout( event );
},
focus: function() {
this.selectedItem = null;
this.previous = this._value();
},
blur: function( event ) {
if ( this.cancelBlur ) {
delete this.cancelBlur;
return;
}
clearTimeout( this.searching );
this.close( event );
this._change( event );
}
});
this._initSource();
this.menu = $( "<ul>" )
.addClass( "ui-autocomplete ui-front" )
.appendTo( this._appendTo() )
.menu({
// disable ARIA support, the live region takes care of that
role: null
})
.hide()
.menu( "instance" );
this._on( this.menu.element, {
mousedown: function( event ) {
// prevent moving focus out of the text field
event.preventDefault();
// IE doesn't prevent moving focus even with event.preventDefault()
// so we set a flag to know when we should ignore the blur event
this.cancelBlur = true;
this._delay(function() {
delete this.cancelBlur;
});
// clicking on the scrollbar causes focus to shift to the body
// but we can't detect a mouseup or a click immediately afterward
// so we have to track the next mousedown and close the menu if
// the user clicks somewhere outside of the autocomplete
var menuElement = this.menu.element[ 0 ];
if ( !$( event.target ).closest( ".ui-menu-item" ).length ) {
this._delay(function() {
var that = this;
this.document.one( "mousedown", function( event ) {
if ( event.target !== that.element[ 0 ] &&
event.target !== menuElement &&
!$.contains( menuElement, event.target ) ) {
that.close();
}
});
});
}
},
menufocus: function( event, ui ) {
var label, item;
// support: Firefox
// Prevent accidental activation of menu items in Firefox (#7024 #9118)
if ( this.isNewMenu ) {
this.isNewMenu = false;
if ( event.originalEvent && /^mouse/.test( event.originalEvent.type ) ) {
this.menu.blur();
this.document.one( "mousemove", function() {
$( event.target ).trigger( event.originalEvent );
});
return;
}
}
item = ui.item.data( "ui-autocomplete-item" );
if ( false !== this._trigger( "focus", event, { item: item } ) ) {
// use value to match what will end up in the input, if it was a key event
if ( event.originalEvent && /^key/.test( event.originalEvent.type ) ) {
this._value( item.value );
}
}
// Announce the value in the liveRegion
label = ui.item.attr( "aria-label" ) || item.value;
if ( label && jQuery.trim( label ).length ) {
this.liveRegion.children().hide();
$( "<div>" ).text( label ).appendTo( this.liveRegion );
}
},
menuselect: function( event, ui ) {
var item = ui.item.data( "ui-autocomplete-item" ),
previous = this.previous;
// only trigger when focus was lost (click on menu)
if ( this.element[ 0 ] !== this.document[ 0 ].activeElement ) {
this.element.focus();
this.previous = previous;
// #6109 - IE triggers two focus events and the second
// is asynchronous, so we need to reset the previous
// term synchronously and asynchronously :-(
this._delay(function() {
this.previous = previous;
this.selectedItem = item;
});
}
if ( false !== this._trigger( "select", event, { item: item } ) ) {
this._value( item.value );
}
// reset the term after the select event
// this allows custom select handling to work properly
this.term = this._value();
this.close( event );
this.selectedItem = item;
}
});
this.liveRegion = $( "<span>", {
role: "status",
"aria-live": "assertive",
"aria-relevant": "additions"
})
.addClass( "ui-helper-hidden-accessible" )
.appendTo( this.document[ 0 ].body );
// turning off autocomplete prevents the browser from remembering the
// value when navigating through history, so we re-enable autocomplete
// if the page is unloaded before the widget is destroyed. #7790
this._on( this.window, {
beforeunload: function() {
this.element.removeAttr( "autocomplete" );
}
});
},
_destroy: function() {
clearTimeout( this.searching );
this.element
.removeClass( "ui-autocomplete-input" )
.removeAttr( "autocomplete" );
this.menu.element.remove();
this.liveRegion.remove();
},
_setOption: function( key, value ) {
this._super( key, value );
if ( key === "source" ) {
this._initSource();
}
if ( key === "appendTo" ) {
this.menu.element.appendTo( this._appendTo() );
}
if ( key === "disabled" && value && this.xhr ) {
this.xhr.abort();
}
},
_appendTo: function() {
var element = this.options.appendTo;
if ( element ) {
element = element.jquery || element.nodeType ?
$( element ) :
this.document.find( element ).eq( 0 );
}
if ( !element || !element[ 0 ] ) {
element = this.element.closest( ".ui-front" );
}
if ( !element.length ) {
element = this.document[ 0 ].body;
}
return element;
},
_initSource: function() {
var array, url,
that = this;
if ( $.isArray( this.options.source ) ) {
array = this.options.source;
this.source = function( request, response ) {
response( $.ui.autocomplete.filter( array, request.term ) );
};
} else if ( typeof this.options.source === "string" ) {
url = this.options.source;
this.source = function( request, response ) {
if ( that.xhr ) {
that.xhr.abort();
}
that.xhr = $.ajax({
url: url,
data: request,
dataType: "json",
success: function( data ) {
response( data );
},
error: function() {
response([]);
}
});
};
} else {
this.source = this.options.source;
}
},
_searchTimeout: function( event ) {
clearTimeout( this.searching );
this.searching = this._delay(function() {
// Search if the value has changed, or if the user retypes the same value (see #7434)
var equalValues = this.term === this._value(),
menuVisible = this.menu.element.is( ":visible" ),
modifierKey = event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
if ( !equalValues || ( equalValues && !menuVisible && !modifierKey ) ) {
this.selectedItem = null;
this.search( null, event );
}
}, this.options.delay );
},
search: function( value, event ) {
value = value != null ? value : this._value();
// always save the actual value, not the one passed as an argument
this.term = this._value();
if ( value.length < this.options.minLength ) {
return this.close( event );
}
if ( this._trigger( "search", event ) === false ) {
return;
}
return this._search( value );
},
_search: function( value ) {
this.pending++;
this.element.addClass( "ui-autocomplete-loading" );
this.cancelSearch = false;
this.source( { term: value }, this._response() );
},
_response: function() {
var index = ++this.requestIndex;
return $.proxy(function( content ) {
if ( index === this.requestIndex ) {
this.__response( content );
}
this.pending--;
if ( !this.pending ) {
this.element.removeClass( "ui-autocomplete-loading" );
}
}, this );
},
__response: function( content ) {
if ( content ) {
content = this._normalize( content );
}
this._trigger( "response", null, { content: content } );
if ( !this.options.disabled && content && content.length && !this.cancelSearch ) {
this._suggest( content );
this._trigger( "open" );
} else {
// use ._close() instead of .close() so we don't cancel future searches
this._close();
}
},
close: function( event ) {
this.cancelSearch = true;
this._close( event );
},
_close: function( event ) {
if ( this.menu.element.is( ":visible" ) ) {
this.menu.element.hide();
this.menu.blur();
this.isNewMenu = true;
this._trigger( "close", event );
}
},
_change: function( event ) {
if ( this.previous !== this._value() ) {
this._trigger( "change", event, { item: this.selectedItem } );
}
},
_normalize: function( items ) {
// assume all items have the right format when the first item is complete
if ( items.length && items[ 0 ].label && items[ 0 ].value ) {
return items;
}
return $.map( items, function( item ) {
if ( typeof item === "string" ) {
return {
label: item,
value: item
};
}
return $.extend( {}, item, {
label: item.label || item.value,
value: item.value || item.label
});
});
},
_suggest: function( items ) {
var ul = this.menu.element.empty();
this._renderMenu( ul, items );
this.isNewMenu = true;
this.menu.refresh();
// size and position menu
ul.show();
this._resizeMenu();
ul.position( $.extend({
of: this.element
}, this.options.position ) );
if ( this.options.autoFocus ) {
this.menu.next();
}
},
_resizeMenu: function() {
var ul = this.menu.element;
ul.outerWidth( Math.max(
// Firefox wraps long text (possibly a rounding bug)
// so we add 1px to avoid the wrapping (#7513)
ul.width( "" ).outerWidth() + 1,
this.element.outerWidth()
) );
},
_renderMenu: function( ul, items ) {
var that = this;
$.each( items, function( index, item ) {
that._renderItemData( ul, item );
});
},
_renderItemData: function( ul, item ) {
return this._renderItem( ul, item ).data( "ui-autocomplete-item", item );
},
_renderItem: function( ul, item ) {
return $( "<li>" ).text( item.label ).appendTo( ul );
},
_move: function( direction, event ) {
if ( !this.menu.element.is( ":visible" ) ) {
this.search( null, event );
return;
}
if ( this.menu.isFirstItem() && /^previous/.test( direction ) ||
this.menu.isLastItem() && /^next/.test( direction ) ) {
if ( !this.isMultiLine ) {
this._value( this.term );
}
this.menu.blur();
return;
}
this.menu[ direction ]( event );
},
widget: function() {
return this.menu.element;
},
_value: function() {
return this.valueMethod.apply( this.element, arguments );
},
_keyEvent: function( keyEvent, event ) {
if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) {
this._move( keyEvent, event );
// prevents moving cursor to beginning/end of the text field in some browsers
event.preventDefault();
}
}
});
$.extend( $.ui.autocomplete, {
escapeRegex: function( value ) {
return value.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" );
},
filter: function( array, term ) {
var matcher = new RegExp( $.ui.autocomplete.escapeRegex( term ), "i" );
return $.grep( array, function( value ) {
return matcher.test( value.label || value.value || value );
});
}
});
// live region extension, adding a `messages` option
// NOTE: This is an experimental API. We are still investigating
// a full solution for string manipulation and internationalization.
$.widget( "ui.autocomplete", $.ui.autocomplete, {
options: {
messages: {
noResults: "No search results.",
results: function( amount ) {
return amount + ( amount > 1 ? " results are" : " result is" ) +
" available, use up and down arrow keys to navigate.";
}
}
},
__response: function( content ) {
var message;
this._superApply( arguments );
if ( this.options.disabled || this.cancelSearch ) {
return;
}
if ( content && content.length ) {
message = this.options.messages.results( content.length );
} else {
message = this.options.messages.noResults;
}
this.liveRegion.children().hide();
$( "<div>" ).text( message ).appendTo( this.liveRegion );
}
});
var autocomplete = $.ui.autocomplete;
/*!
* jQuery UI Datepicker 1.11.0
* http://jqueryui.com
*
* Copyright 2016 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/datepicker/
*/
$.extend($.ui, { datepicker: { version: "1.11.0" } });
var datepicker_instActive;
function datepicker_getZindex( elem ) {
var position, value;
while ( elem.length && elem[ 0 ] !== document ) {
// Ignore z-index if position is set to a value where z-index is ignored by the browser
// This makes behavior of this function consistent across browsers
// WebKit always returns auto if the element is positioned
position = elem.css( "position" );
if ( position === "absolute" || position === "relative" || position === "fixed" ) {
// IE returns 0 when zIndex is not specified
// other browsers return a string
// we ignore the case of nested elements with an explicit value of 0
// <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
value = parseInt( elem.css( "zIndex" ), 10 );
if ( !isNaN( value ) && value !== 0 ) {
return value;
}
}
elem = elem.parent();
}
return 0;
}
/* Date picker manager.
Use the singleton instance of this class, $.datepicker, to interact with the date picker.
Settings for (groups of) date pickers are maintained in an instance object,
allowing multiple different settings on the same page. */
function Datepicker() {
this._curInst = null; // The current instance in use
this._keyEvent = false; // If the last event was a key event
this._disabledInputs = []; // List of date picker inputs that have been disabled
this._datepickerShowing = false; // True if the popup picker is showing , false if not
this._inDialog = false; // True if showing within a "dialog", false if not
this._mainDivId = "ui-datepicker-div"; // The ID of the main datepicker division
this._inlineClass = "ui-datepicker-inline"; // The name of the inline marker class
this._appendClass = "ui-datepicker-append"; // The name of the append marker class
this._triggerClass = "ui-datepicker-trigger"; // The name of the trigger marker class
this._dialogClass = "ui-datepicker-dialog"; // The name of the dialog marker class
this._disableClass = "ui-datepicker-disabled"; // The name of the disabled covering marker class
this._unselectableClass = "ui-datepicker-unselectable"; // The name of the unselectable cell marker class
this._currentClass = "ui-datepicker-current-day"; // The name of the current day marker class
this._dayOverClass = "ui-datepicker-days-cell-over"; // The name of the day hover marker class
this.regional = []; // Available regional settings, indexed by language code
this.regional[""] = { // Default regional settings
closeText: "Done", // Display text for close link
prevText: "Prev", // Display text for previous month link
nextText: "Next", // Display text for next month link
currentText: "Today", // Display text for current month link
monthNames: ["January","February","March","April","May","June",
"July","August","September","October","November","December"], // Names of months for drop-down and formatting
monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], // For formatting
dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], // For formatting
dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], // For formatting
dayNamesMin: ["Su","Mo","Tu","We","Th","Fr","Sa"], // Column headings for days starting at Sunday
weekHeader: "Wk", // Column header for week of the year
dateFormat: "mm/dd/yy", // See format options on parseDate
firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
isRTL: false, // True if right-to-left language, false if left-to-right
showMonthAfterYear: false, // True if the year select precedes month, false for month then year
yearSuffix: "" // Additional text to append to the year in the month headers
};
this._defaults = { // Global defaults for all the date picker instances
showOn: "focus", // "focus" for popup on focus,
// "button" for trigger button, or "both" for either
showAnim: "fadeIn", // Name of jQuery animation for popup
showOptions: {}, // Options for enhanced animations
defaultDate: null, // Used when field is blank: actual date,
// +/-number for offset from today, null for today
appendText: "", // Display text following the input box, e.g. showing the format
buttonText: "...", // Text for trigger button
buttonImage: "", // URL for trigger button image
buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
hideIfNoPrevNext: false, // True to hide next/previous month links
// if not applicable, false to just disable them
navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
gotoCurrent: false, // True if today link goes back to current selection instead
changeMonth: false, // True if month can be selected directly, false if only prev/next
changeYear: false, // True if year can be selected directly, false if only prev/next
yearRange: "c-10:c+10", // Range of years to display in drop-down,
// either relative to today's year (-nn:+nn), relative to currently displayed year
// (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)
showOtherMonths: false, // True to show dates in other months, false to leave blank
selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable
showWeek: false, // True to show week of the year, false to not show it
calculateWeek: this.iso8601Week, // How to calculate the week of the year,
// takes a Date and returns the number of the week for it
shortYearCutoff: "+10", // Short year values < this are in the current century,
// > this are in the previous century,
// string value starting with "+" for current year + value
minDate: null, // The earliest selectable date, or null for no limit
maxDate: null, // The latest selectable date, or null for no limit
duration: "fast", // Duration of display/closure
beforeShowDay: null, // Function that takes a date and returns an array with
// [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
// [2] = cell title (optional), e.g. $.datepicker.noWeekends
beforeShow: null, // Function that takes an input field and
// returns a set of custom settings for the date picker
onSelect: null, // Define a callback function when a date is selected
onChangeMonthYear: null, // Define a callback function when the month or year is changed
onClose: null, // Define a callback function when the datepicker is closed
numberOfMonths: 1, // Number of months to show at a time
showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)
stepMonths: 1, // Number of months to step back/forward
stepBigMonths: 12, // Number of months to step back/forward for the big links
altField: "", // Selector for an alternate field to store selected dates into
altFormat: "", // The date format to use for the alternate field
constrainInput: true, // The input is constrained by the current date format
showButtonPanel: false, // True to show button panel, false to not show it
autoSize: false, // True to size the input for the date format, false to leave as is
disabled: false // The initial disabled state
};
$.extend(this._defaults, this.regional[""]);
this.regional.en = $.extend( true, {}, this.regional[ "" ]);
this.regional[ "en-US" ] = $.extend( true, {}, this.regional.en );
this.dpDiv = datepicker_bindHover($("<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"));
}
$.extend(Datepicker.prototype, {
/* Class name added to elements to indicate already configured with a date picker. */
markerClassName: "hasDatepicker",
//Keep track of the maximum number of rows displayed (see #7043)
maxRows: 4,
// TODO rename to "widget" when switching to widget factory
_widgetDatepicker: function() {
return this.dpDiv;
},
/* Override the default settings for all instances of the date picker.
* @param settings object - the new settings to use as defaults (anonymous object)
* @return the manager object
*/
setDefaults: function(settings) {
datepicker_extendRemove(this._defaults, settings || {});
return this;
},
/* Attach the date picker to a jQuery selection.
* @param target element - the target input field or division or span
* @param settings object - the new settings to use for this date picker instance (anonymous)
*/
_attachDatepicker: function(target, settings) {
var nodeName, inline, inst;
nodeName = target.nodeName.toLowerCase();
inline = (nodeName === "div" || nodeName === "span");
if (!target.id) {
this.uuid += 1;
target.id = "dp" + this.uuid;
}
inst = this._newInst($(target), inline);
inst.settings = $.extend({}, settings || {});
if (nodeName === "input") {
this._connectDatepicker(target, inst);
} else if (inline) {
this._inlineDatepicker(target, inst);
}
},
/* Create a new instance object. */
_newInst: function(target, inline) {
var id = target[0].id.replace(/([^A-Za-z0-9_\-])/g, "\\\\$1"); // escape jQuery meta chars
return {id: id, input: target, // associated target
selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
drawMonth: 0, drawYear: 0, // month being drawn
inline: inline, // is datepicker inline or not
dpDiv: (!inline ? this.dpDiv : // presentation div
datepicker_bindHover($("<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")))};
},
/* Attach the date picker to an input field. */
_connectDatepicker: function(target, inst) {
var input = $(target);
inst.append = $([]);
inst.trigger = $([]);
if (input.hasClass(this.markerClassName)) {
return;
}
this._attachments(input, inst);
input.addClass(this.markerClassName).keydown(this._doKeyDown).
keypress(this._doKeyPress).keyup(this._doKeyUp);
this._autoSize(inst);
$.data(target, "datepicker", inst);
//If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665)
if( inst.settings.disabled ) {
this._disableDatepicker( target );
}
},
/* Make attachments based on settings. */
_attachments: function(input, inst) {
var showOn, buttonText, buttonImage,
appendText = this._get(inst, "appendText"),
isRTL = this._get(inst, "isRTL");
if (inst.append) {
inst.append.remove();
}
if (appendText) {
inst.append = $("<span class='" + this._appendClass + "'>" + appendText + "</span>");
input[isRTL ? "before" : "after"](inst.append);
}
input.unbind("focus", this._showDatepicker);
if (inst.trigger) {
inst.trigger.remove();
}
showOn = this._get(inst, "showOn");
if (showOn === "focus" || showOn === "both") { // pop-up date picker when in the marked field
input.focus(this._showDatepicker);
}
if (showOn === "button" || showOn === "both") { // pop-up date picker when button clicked
buttonText = this._get(inst, "buttonText");
buttonImage = this._get(inst, "buttonImage");
inst.trigger = $(this._get(inst, "buttonImageOnly") ?
$("<img/>").addClass(this._triggerClass).
attr({ src: buttonImage, alt: buttonText, title: buttonText }) :
$("<button type='button'></button>").addClass(this._triggerClass).
html(!buttonImage ? buttonText : $("<img/>").attr(
{ src:buttonImage, alt:buttonText, title:buttonText })));
input[isRTL ? "before" : "after"](inst.trigger);
inst.trigger.click(function() {
if ($.datepicker._datepickerShowing && $.datepicker._lastInput === input[0]) {
$.datepicker._hideDatepicker();
} else if ($.datepicker._datepickerShowing && $.datepicker._lastInput !== input[0]) {
$.datepicker._hideDatepicker();
$.datepicker._showDatepicker(input[0]);
} else {
$.datepicker._showDatepicker(input[0]);
}
return false;
});
}
},
/* Apply the maximum length for the date format. */
_autoSize: function(inst) {
if (this._get(inst, "autoSize") && !inst.inline) {
var findMax, max, maxI, i,
date = new Date(2009, 12 - 1, 20), // Ensure double digits
dateFormat = this._get(inst, "dateFormat");
if (dateFormat.match(/[DM]/)) {
findMax = function(names) {
max = 0;
maxI = 0;
for (i = 0; i < names.length; i++) {
if (names[i].length > max) {
max = names[i].length;
maxI = i;
}
}
return maxI;
};
date.setMonth(findMax(this._get(inst, (dateFormat.match(/MM/) ?
"monthNames" : "monthNamesShort"))));
date.setDate(findMax(this._get(inst, (dateFormat.match(/DD/) ?
"dayNames" : "dayNamesShort"))) + 20 - date.getDay());
}
inst.input.attr("size", this._formatDate(inst, date).length);
}
},
/* Attach an inline date picker to a div. */
_inlineDatepicker: function(target, inst) {
var divSpan = $(target);
if (divSpan.hasClass(this.markerClassName)) {
return;
}
divSpan.addClass(this.markerClassName).append(inst.dpDiv);
$.data(target, "datepicker", inst);
this._setDate(inst, this._getDefaultDate(inst), true);
this._updateDatepicker(inst);
this._updateAlternate(inst);
//If disabled option is true, disable the datepicker before showing it (see ticket #5665)
if( inst.settings.disabled ) {
this._disableDatepicker( target );
}
// Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements
// http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height
inst.dpDiv.css( "display", "block" );
},
/* Pop-up the date picker in a "dialog" box.
* @param input element - ignored
* @param date string or Date - the initial date to display
* @param onSelect function - the function to call when a date is selected
* @param settings object - update the dialog date picker instance's settings (anonymous object)
* @param pos int[2] - coordinates for the dialog's position within the screen or
* event - with x/y coordinates or
* leave empty for default (screen centre)
* @return the manager object
*/
_dialogDatepicker: function(input, date, onSelect, settings, pos) {
var id, browserWidth, browserHeight, scrollX, scrollY,
inst = this._dialogInst; // internal instance
if (!inst) {
this.uuid += 1;
id = "dp" + this.uuid;
this._dialogInput = $("<input type='text' id='" + id +
"' style='position: absolute; top: -100px; width: 0px;'/>");
this._dialogInput.keydown(this._doKeyDown);
$("body").append(this._dialogInput);
inst = this._dialogInst = this._newInst(this._dialogInput, false);
inst.settings = {};
$.data(this._dialogInput[0], "datepicker", inst);
}
datepicker_extendRemove(inst.settings, settings || {});
date = (date && date.constructor === Date ? this._formatDate(inst, date) : date);
this._dialogInput.val(date);
this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);
if (!this._pos) {
browserWidth = document.documentElement.clientWidth;
browserHeight = document.documentElement.clientHeight;
scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
scrollY = document.documentElement.scrollTop || document.body.scrollTop;
this._pos = // should use actual width/height below
[(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];
}
// move input on screen for focus, but hidden behind dialog
this._dialogInput.css("left", (this._pos[0] + 20) + "px").css("top", this._pos[1] + "px");
inst.settings.onSelect = onSelect;
this._inDialog = true;
this.dpDiv.addClass(this._dialogClass);
this._showDatepicker(this._dialogInput[0]);
if ($.blockUI) {
$.blockUI(this.dpDiv);
}
$.data(this._dialogInput[0], "datepicker", inst);
return this;
},
/* Detach a datepicker from its control.
* @param target element - the target input field or division or span
*/
_destroyDatepicker: function(target) {
var nodeName,
$target = $(target),
inst = $.data(target, "datepicker");
if (!$target.hasClass(this.markerClassName)) {
return;
}
nodeName = target.nodeName.toLowerCase();
$.removeData(target, "datepicker");
if (nodeName === "input") {
inst.append.remove();
inst.trigger.remove();
$target.removeClass(this.markerClassName).
unbind("focus", this._showDatepicker).
unbind("keydown", this._doKeyDown).
unbind("keypress", this._doKeyPress).
unbind("keyup", this._doKeyUp);
} else if (nodeName === "div" || nodeName === "span") {
$target.removeClass(this.markerClassName).empty();
}
},
/* Enable the date picker to a jQuery selection.
* @param target element - the target input field or division or span
*/
_enableDatepicker: function(target) {
var nodeName, inline,
$target = $(target),
inst = $.data(target, "datepicker");
if (!$target.hasClass(this.markerClassName)) {
return;
}
nodeName = target.nodeName.toLowerCase();
if (nodeName === "input") {
target.disabled = false;
inst.trigger.filter("button").
each(function() { this.disabled = false; }).end().
filter("img").css({opacity: "1.0", cursor: ""});
} else if (nodeName === "div" || nodeName === "span") {
inline = $target.children("." + this._inlineClass);
inline.children().removeClass("ui-state-disabled");
inline.find("select.ui-datepicker-month, select.ui-datepicker-year").
prop("disabled", false);
}
this._disabledInputs = $.map(this._disabledInputs,
function(value) { return (value === target ? null : value); }); // delete entry
},
/* Disable the date picker to a jQuery selection.
* @param target element - the target input field or division or span
*/
_disableDatepicker: function(target) {
var nodeName, inline,
$target = $(target),
inst = $.data(target, "datepicker");
if (!$target.hasClass(this.markerClassName)) {
return;
}
nodeName = target.nodeName.toLowerCase();
if (nodeName === "input") {
target.disabled = true;
inst.trigger.filter("button").
each(function() { this.disabled = true; }).end().
filter("img").css({opacity: "0.5", cursor: "default"});
} else if (nodeName === "div" || nodeName === "span") {
inline = $target.children("." + this._inlineClass);
inline.children().addClass("ui-state-disabled");
inline.find("select.ui-datepicker-month, select.ui-datepicker-year").
prop("disabled", true);
}
this._disabledInputs = $.map(this._disabledInputs,
function(value) { return (value === target ? null : value); }); // delete entry
this._disabledInputs[this._disabledInputs.length] = target;
},
/* Is the first field in a jQuery collection disabled as a datepicker?
* @param target element - the target input field or division or span
* @return boolean - true if disabled, false if enabled
*/
_isDisabledDatepicker: function(target) {
if (!target) {
return false;
}
for (var i = 0; i < this._disabledInputs.length; i++) {
if (this._disabledInputs[i] === target) {
return true;
}
}
return false;
},
/* Retrieve the instance data for the target control.
* @param target element - the target input field or division or span
* @return object - the associated instance data
* @throws error if a jQuery problem getting data
*/
_getInst: function(target) {
try {
return $.data(target, "datepicker");
}
catch (err) {
throw "Missing instance data for this datepicker";
}
},
/* Update or retrieve the settings for a date picker attached to an input field or division.
* @param target element - the target input field or division or span
* @param name object - the new settings to update or
* string - the name of the setting to change or retrieve,
* when retrieving also "all" for all instance settings or
* "defaults" for all global defaults
* @param value any - the new value for the setting
* (omit if above is an object or to retrieve a value)
*/
_optionDatepicker: function(target, name, value) {
var settings, date, minDate, maxDate,
inst = this._getInst(target);
if (arguments.length === 2 && typeof name === "string") {
return (name === "defaults" ? $.extend({}, $.datepicker._defaults) :
(inst ? (name === "all" ? $.extend({}, inst.settings) :
this._get(inst, name)) : null));
}
settings = name || {};
if (typeof name === "string") {
settings = {};
settings[name] = value;
}
if (inst) {
if (this._curInst === inst) {
this._hideDatepicker();
}
date = this._getDateDatepicker(target, true);
minDate = this._getMinMaxDate(inst, "min");
maxDate = this._getMinMaxDate(inst, "max");
datepicker_extendRemove(inst.settings, settings);
// reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided
if (minDate !== null && settings.dateFormat !== undefined && settings.minDate === undefined) {
inst.settings.minDate = this._formatDate(inst, minDate);
}
if (maxDate !== null && settings.dateFormat !== undefined && settings.maxDate === undefined) {
inst.settings.maxDate = this._formatDate(inst, maxDate);
}
if ( "disabled" in settings ) {
if ( settings.disabled ) {
this._disableDatepicker(target);
} else {
this._enableDatepicker(target);
}
}
this._attachments($(target), inst);
this._autoSize(inst);
this._setDate(inst, date);
this._updateAlternate(inst);
this._updateDatepicker(inst);
}
},
// change method deprecated
_changeDatepicker: function(target, name, value) {
this._optionDatepicker(target, name, value);
},
/* Redraw the date picker attached to an input field or division.
* @param target element - the target input field or division or span
*/
_refreshDatepicker: function(target) {
var inst = this._getInst(target);
if (inst) {
this._updateDatepicker(inst);
}
},
/* Set the dates for a jQuery selection.
* @param target element - the target input field or division or span
* @param date Date - the new date
*/
_setDateDatepicker: function(target, date) {
var inst = this._getInst(target);
if (inst) {
this._setDate(inst, date);
this._updateDatepicker(inst);
this._updateAlternate(inst);
}
},
/* Get the date(s) for the first entry in a jQuery selection.
* @param target element - the target input field or division or span
* @param noDefault boolean - true if no default date is to be used
* @return Date - the current date
*/
_getDateDatepicker: function(target, noDefault) {
var inst = this._getInst(target);
if (inst && !inst.inline) {
this._setDateFromField(inst, noDefault);
}
return (inst ? this._getDate(inst) : null);
},
/* Handle keystrokes. */
_doKeyDown: function(event) {
var onSelect, dateStr, sel,
inst = $.datepicker._getInst(event.target),
handled = true,
isRTL = inst.dpDiv.is(".ui-datepicker-rtl");
inst._keyEvent = true;
if ($.datepicker._datepickerShowing) {
switch (event.keyCode) {
case 9: $.datepicker._hideDatepicker();
handled = false;
break; // hide on tab out
case 13: sel = $("td." + $.datepicker._dayOverClass + ":not(." +
$.datepicker._currentClass + ")", inst.dpDiv);
if (sel[0]) {
$.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]);
}
onSelect = $.datepicker._get(inst, "onSelect");
if (onSelect) {
dateStr = $.datepicker._formatDate(inst);
// trigger custom callback
onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]);
} else {
$.datepicker._hideDatepicker();
}
return false; // don't submit the form
case 27: $.datepicker._hideDatepicker();
break; // hide on escape
case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ?
-$.datepicker._get(inst, "stepBigMonths") :
-$.datepicker._get(inst, "stepMonths")), "M");
break; // previous month/year on page up/+ ctrl
case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ?
+$.datepicker._get(inst, "stepBigMonths") :
+$.datepicker._get(inst, "stepMonths")), "M");
break; // next month/year on page down/+ ctrl
case 35: if (event.ctrlKey || event.metaKey) {
$.datepicker._clearDate(event.target);
}
handled = event.ctrlKey || event.metaKey;
break; // clear on ctrl or command +end
case 36: if (event.ctrlKey || event.metaKey) {
$.datepicker._gotoToday(event.target);
}
handled = event.ctrlKey || event.metaKey;
break; // current on ctrl or command +home
case 37: if (event.ctrlKey || event.metaKey) {
$.datepicker._adjustDate(event.target, (isRTL ? +1 : -1), "D");
}
handled = event.ctrlKey || event.metaKey;
// -1 day on ctrl or command +left
if (event.originalEvent.altKey) {
$.datepicker._adjustDate(event.target, (event.ctrlKey ?
-$.datepicker._get(inst, "stepBigMonths") :
-$.datepicker._get(inst, "stepMonths")), "M");
}
// next month/year on alt +left on Mac
break;
case 38: if (event.ctrlKey || event.metaKey) {
$.datepicker._adjustDate(event.target, -7, "D");
}
handled = event.ctrlKey || event.metaKey;
break; // -1 week on ctrl or command +up
case 39: if (event.ctrlKey || event.metaKey) {
$.datepicker._adjustDate(event.target, (isRTL ? -1 : +1), "D");
}
handled = event.ctrlKey || event.metaKey;
// +1 day on ctrl or command +right
if (event.originalEvent.altKey) {
$.datepicker._adjustDate(event.target, (event.ctrlKey ?
+$.datepicker._get(inst, "stepBigMonths") :
+$.datepicker._get(inst, "stepMonths")), "M");
}
// next month/year on alt +right
break;
case 40: if (event.ctrlKey || event.metaKey) {
$.datepicker._adjustDate(event.target, +7, "D");
}
handled = event.ctrlKey || event.metaKey;
break; // +1 week on ctrl or command +down
default: handled = false;
}
} else if (event.keyCode === 36 && event.ctrlKey) { // display the date picker on ctrl+home
$.datepicker._showDatepicker(this);
} else {
handled = false;
}
if (handled) {
event.preventDefault();
event.stopPropagation();
}
},
/* Filter entered characters - based on date format. */
_doKeyPress: function(event) {
var chars, chr,
inst = $.datepicker._getInst(event.target);
if ($.datepicker._get(inst, "constrainInput")) {
chars = $.datepicker._possibleChars($.datepicker._get(inst, "dateFormat"));
chr = String.fromCharCode(event.charCode == null ? event.keyCode : event.charCode);
return event.ctrlKey || event.metaKey || (chr < " " || !chars || chars.indexOf(chr) > -1);
}
},
/* Synchronise manual entry and field/alternate field. */
_doKeyUp: function(event) {
var date,
inst = $.datepicker._getInst(event.target);
if (inst.input.val() !== inst.lastVal) {
try {
date = $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"),
(inst.input ? inst.input.val() : null),
$.datepicker._getFormatConfig(inst));
if (date) { // only if valid
$.datepicker._setDateFromField(inst);
$.datepicker._updateAlternate(inst);
$.datepicker._updateDatepicker(inst);
}
}
catch (err) {
}
}
return true;
},
/* Pop-up the date picker for a given input field.
* If false returned from beforeShow event handler do not show.
* @param input element - the input field attached to the date picker or
* event - if triggered by focus
*/
_showDatepicker: function(input) {
input = input.target || input;
if (input.nodeName.toLowerCase() !== "input") { // find from button/image trigger
input = $("input", input.parentNode)[0];
}
if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput === input) { // already here
return;
}
var inst, beforeShow, beforeShowSettings, isFixed,
offset, showAnim, duration;
inst = $.datepicker._getInst(input);
if ($.datepicker._curInst && $.datepicker._curInst !== inst) {
$.datepicker._curInst.dpDiv.stop(true, true);
if ( inst && $.datepicker._datepickerShowing ) {
$.datepicker._hideDatepicker( $.datepicker._curInst.input[0] );
}
}
beforeShow = $.datepicker._get(inst, "beforeShow");
beforeShowSettings = beforeShow ? beforeShow.apply(input, [input, inst]) : {};
if(beforeShowSettings === false){
return;
}
datepicker_extendRemove(inst.settings, beforeShowSettings);
inst.lastVal = null;
$.datepicker._lastInput = input;
$.datepicker._setDateFromField(inst);
if ($.datepicker._inDialog) { // hide cursor
input.value = "";
}
if (!$.datepicker._pos) { // position below input
$.datepicker._pos = $.datepicker._findPos(input);
$.datepicker._pos[1] += input.offsetHeight; // add the height
}
isFixed = false;
$(input).parents().each(function() {
isFixed |= $(this).css("position") === "fixed";
return !isFixed;
});
offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]};
$.datepicker._pos = null;
//to avoid flashes on Firefox
inst.dpDiv.empty();
// determine sizing offscreen
inst.dpDiv.css({position: "absolute", display: "block", top: "-1000px"});
$.datepicker._updateDatepicker(inst);
// fix width for dynamic number of date pickers
// and adjust position before showing
offset = $.datepicker._checkOffset(inst, offset, isFixed);
inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ?
"static" : (isFixed ? "fixed" : "absolute")), display: "none",
left: offset.left + "px", top: offset.top + "px"});
if (!inst.inline) {
showAnim = $.datepicker._get(inst, "showAnim");
duration = $.datepicker._get(inst, "duration");
inst.dpDiv.css( "z-index", datepicker_getZindex( $( input ) ) + 1 );
$.datepicker._datepickerShowing = true;
if ( $.effects && $.effects.effect[ showAnim ] ) {
inst.dpDiv.show(showAnim, $.datepicker._get(inst, "showOptions"), duration);
} else {
inst.dpDiv[showAnim || "show"](showAnim ? duration : null);
}
if ( $.datepicker._shouldFocusInput( inst ) ) {
inst.input.focus();
}
$.datepicker._curInst = inst;
}
},
/* Generate the date picker content. */
_updateDatepicker: function(inst) {
this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
datepicker_instActive = inst; // for delegate hover events
inst.dpDiv.empty().append(this._generateHTML(inst));
this._attachHandlers(inst);
inst.dpDiv.find("." + this._dayOverClass + " a");
var origyearshtml,
numMonths = this._getNumberOfMonths(inst),
cols = numMonths[1],
width = 17;
inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");
if (cols > 1) {
inst.dpDiv.addClass("ui-datepicker-multi-" + cols).css("width", (width * cols) + "em");
}
inst.dpDiv[(numMonths[0] !== 1 || numMonths[1] !== 1 ? "add" : "remove") +
"Class"]("ui-datepicker-multi");
inst.dpDiv[(this._get(inst, "isRTL") ? "add" : "remove") +
"Class"]("ui-datepicker-rtl");
if (inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
inst.input.focus();
}
// deffered render of the years select (to avoid flashes on Firefox)
if( inst.yearshtml ){
origyearshtml = inst.yearshtml;
setTimeout(function(){
//assure that inst.yearshtml didn't change.
if( origyearshtml === inst.yearshtml && inst.yearshtml ){
inst.dpDiv.find("select.ui-datepicker-year:first").replaceWith(inst.yearshtml);
}
origyearshtml = inst.yearshtml = null;
}, 0);
}
},
// #6694 - don't focus the input if it's already focused
// this breaks the change event in IE
// Support: IE and jQuery <1.9
_shouldFocusInput: function( inst ) {
return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
},
/* Check positioning to remain on screen. */
_checkOffset: function(inst, offset, isFixed) {
var dpWidth = inst.dpDiv.outerWidth(),
dpHeight = inst.dpDiv.outerHeight(),
inputWidth = inst.input ? inst.input.outerWidth() : 0,
inputHeight = inst.input ? inst.input.outerHeight() : 0,
viewWidth = document.documentElement.clientWidth + (isFixed ? 0 : $(document).scrollLeft()),
viewHeight = document.documentElement.clientHeight + (isFixed ? 0 : $(document).scrollTop());
offset.left -= (this._get(inst, "isRTL") ? (dpWidth - inputWidth) : 0);
offset.left -= (isFixed && offset.left === inst.input.offset().left) ? $(document).scrollLeft() : 0;
offset.top -= (isFixed && offset.top === (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0;
// now check if datepicker is showing outside window viewport - move to a better place if so.
offset.left -= Math.min(offset.left, (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ?
Math.abs(offset.left + dpWidth - viewWidth) : 0);
offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ?
Math.abs(dpHeight + inputHeight) : 0);
return offset;
},
/* Find an object's position on the screen. */
_findPos: function(obj) {
var position,
inst = this._getInst(obj),
isRTL = this._get(inst, "isRTL");
while (obj && (obj.type === "hidden" || obj.nodeType !== 1 || $.expr.filters.hidden(obj))) {
obj = obj[isRTL ? "previousSibling" : "nextSibling"];
}
position = $(obj).offset();
return [position.left, position.top];
},
/* Hide the date picker from view.
* @param input element - the input field attached to the date picker
*/
_hideDatepicker: function(input) {
var showAnim, duration, postProcess, onClose,
inst = this._curInst;
if (!inst || (input && inst !== $.data(input, "datepicker"))) {
return;
}
if (this._datepickerShowing) {
showAnim = this._get(inst, "showAnim");
duration = this._get(inst, "duration");
postProcess = function() {
$.datepicker._tidyDialog(inst);
};
// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {
inst.dpDiv.hide(showAnim, $.datepicker._get(inst, "showOptions"), duration, postProcess);
} else {
inst.dpDiv[(showAnim === "slideDown" ? "slideUp" :
(showAnim === "fadeIn" ? "fadeOut" : "hide"))]((showAnim ? duration : null), postProcess);
}
if (!showAnim) {
postProcess();
}
this._datepickerShowing = false;
onClose = this._get(inst, "onClose");
if (onClose) {
onClose.apply((inst.input ? inst.input[0] : null), [(inst.input ? inst.input.val() : ""), inst]);
}
this._lastInput = null;
if (this._inDialog) {
this._dialogInput.css({ position: "absolute", left: "0", top: "-100px" });
if ($.blockUI) {
$.unblockUI();
$("body").append(this.dpDiv);
}
}
this._inDialog = false;
}
},
/* Tidy up after a dialog display. */
_tidyDialog: function(inst) {
inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar");
},
/* Close date picker if clicked elsewhere. */
_checkExternalClick: function(event) {
if (!$.datepicker._curInst) {
return;
}
var $target = $(event.target),
inst = $.datepicker._getInst($target[0]);
if ( ( ( $target[0].id !== $.datepicker._mainDivId &&
$target.parents("#" + $.datepicker._mainDivId).length === 0 &&
!$target.hasClass($.datepicker.markerClassName) &&
!$target.closest("." + $.datepicker._triggerClass).length &&
$.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
( $target.hasClass($.datepicker.markerClassName) && $.datepicker._curInst !== inst ) ) {
$.datepicker._hideDatepicker();
}
},
/* Adjust one of the date sub-fields. */
_adjustDate: function(id, offset, period) {
var target = $(id),
inst = this._getInst(target[0]);
if (this._isDisabledDatepicker(target[0])) {
return;
}
this._adjustInstDate(inst, offset +
(period === "M" ? this._get(inst, "showCurrentAtPos") : 0), // undo positioning
period);
this._updateDatepicker(inst);
},
/* Action for current link. */
_gotoToday: function(id) {
var date,
target = $(id),
inst = this._getInst(target[0]);
if (this._get(inst, "gotoCurrent") && inst.currentDay) {
inst.selectedDay = inst.currentDay;
inst.drawMonth = inst.selectedMonth = inst.currentMonth;
inst.drawYear = inst.selectedYear = inst.currentYear;
} else {
date = new Date();
inst.selectedDay = date.getDate();
inst.drawMonth = inst.selectedMonth = date.getMonth();
inst.drawYear = inst.selectedYear = date.getFullYear();
}
this._notifyChange(inst);
this._adjustDate(target);
},
/* Action for selecting a new month/year. */
_selectMonthYear: function(id, select, period) {
var target = $(id),
inst = this._getInst(target[0]);
inst["selected" + (period === "M" ? "Month" : "Year")] =
inst["draw" + (period === "M" ? "Month" : "Year")] =
parseInt(select.options[select.selectedIndex].value,10);
this._notifyChange(inst);
this._adjustDate(target);
},
/* Action for selecting a day. */
_selectDay: function(id, month, year, td) {
var inst,
target = $(id);
if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) {
return;
}
inst = this._getInst(target[0]);
inst.selectedDay = inst.currentDay = $("a", td).html();
inst.selectedMonth = inst.currentMonth = month;
inst.selectedYear = inst.currentYear = year;
this._selectDate(id, this._formatDate(inst,
inst.currentDay, inst.currentMonth, inst.currentYear));
},
/* Erase the input field and hide the date picker. */
_clearDate: function(id) {
var target = $(id);
this._selectDate(target, "");
},
/* Update the input field with the selected date. */
_selectDate: function(id, dateStr) {
var onSelect,
target = $(id),
inst = this._getInst(target[0]);
dateStr = (dateStr != null ? dateStr : this._formatDate(inst));
if (inst.input) {
inst.input.val(dateStr);
}
this._updateAlternate(inst);
onSelect = this._get(inst, "onSelect");
if (onSelect) {
onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); // trigger custom callback
} else if (inst.input) {
inst.input.trigger("change"); // fire the change event
}
if (inst.inline){
this._updateDatepicker(inst);
} else {
this._hideDatepicker();
this._lastInput = inst.input[0];
if (typeof(inst.input[0]) !== "object") {
inst.input.focus(); // restore focus
}
this._lastInput = null;
}
},
/* Update any alternate field to synchronise with the main field. */
_updateAlternate: function(inst) {
var altFormat, date, dateStr,
altField = this._get(inst, "altField");
if (altField) { // update alternate field too
altFormat = this._get(inst, "altFormat") || this._get(inst, "dateFormat");
date = this._getDate(inst);
dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst));
$(altField).each(function() { $(this).val(dateStr); });
}
},
/* Set as beforeShowDay function to prevent selection of weekends.
* @param date Date - the date to customise
* @return [boolean, string] - is this date selectable?, what is its CSS class?
*/
noWeekends: function(date) {
var day = date.getDay();
return [(day > 0 && day < 6), ""];
},
/* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.
* @param date Date - the date to get the week for
* @return number - the number of the week within the year that contains this date
*/
iso8601Week: function(date) {
var time,
checkDate = new Date(date.getTime());
// Find Thursday of this week starting on Monday
checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));
time = checkDate.getTime();
checkDate.setMonth(0); // Compare with Jan 1
checkDate.setDate(1);
return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1;
},
/* Parse a string value into a date object.
* See formatDate below for the possible formats.
*
* @param format string - the expected format of the date
* @param value string - the date in the above format
* @param settings Object - attributes include:
* shortYearCutoff number - the cutoff year for determining the century (optional)
* dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
* dayNames string[7] - names of the days from Sunday (optional)
* monthNamesShort string[12] - abbreviated names of the months (optional)
* monthNames string[12] - names of the months (optional)
* @return Date - the extracted date value or null if value is blank
*/
parseDate: function (format, value, settings) {
if (format == null || value == null) {
throw "Invalid arguments";
}
value = (typeof value === "object" ? value.toString() : value + "");
if (value === "") {
return null;
}
var iFormat, dim, extra,
iValue = 0,
shortYearCutoffTemp = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff,
shortYearCutoff = (typeof shortYearCutoffTemp !== "string" ? shortYearCutoffTemp :
new Date().getFullYear() % 100 + parseInt(shortYearCutoffTemp, 10)),
dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort,
dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames,
monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort,
monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames,
year = -1,
month = -1,
day = -1,
doy = -1,
literal = false,
date,
// Check whether a format character is doubled
lookAhead = function(match) {
var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
if (matches) {
iFormat++;
}
return matches;
},
// Extract a number from the string value
getNumber = function(match) {
var isDoubled = lookAhead(match),
size = (match === "@" ? 14 : (match === "!" ? 20 :
(match === "y" && isDoubled ? 4 : (match === "o" ? 3 : 2)))),
digits = new RegExp("^\\d{1," + size + "}"),
num = value.substring(iValue).match(digits);
if (!num) {
throw "Missing number at position " + iValue;
}
iValue += num[0].length;
return parseInt(num[0], 10);
},
// Extract a name from the string value and convert to an index
getName = function(match, shortNames, longNames) {
var index = -1,
names = $.map(lookAhead(match) ? longNames : shortNames, function (v, k) {
return [ [k, v] ];
}).sort(function (a, b) {
return -(a[1].length - b[1].length);
});
$.each(names, function (i, pair) {
var name = pair[1];
if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
index = pair[0];
iValue += name.length;
return false;
}
});
if (index !== -1) {
return index + 1;
} else {
throw "Unknown name at position " + iValue;
}
},
// Confirm that a literal character matches the string value
checkLiteral = function() {
if (value.charAt(iValue) !== format.charAt(iFormat)) {
throw "Unexpected literal at position " + iValue;
}
iValue++;
};
for (iFormat = 0; iFormat < format.length; iFormat++) {
if (literal) {
if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
literal = false;
} else {
checkLiteral();
}
} else {
switch (format.charAt(iFormat)) {
case "d":
day = getNumber("d");
break;
case "D":
getName("D", dayNamesShort, dayNames);
break;
case "o":
doy = getNumber("o");
break;
case "m":
month = getNumber("m");
break;
case "M":
month = getName("M", monthNamesShort, monthNames);
break;
case "y":
year = getNumber("y");
break;
case "@":
date = new Date(getNumber("@"));
year = date.getFullYear();
month = date.getMonth() + 1;
day = date.getDate();
break;
case "!":
date = new Date((getNumber("!") - this._ticksTo1970) / 10000);
year = date.getFullYear();
month = date.getMonth() + 1;
day = date.getDate();
break;
case "'":
if (lookAhead("'")){
checkLiteral();
} else {
literal = true;
}
break;
default:
checkLiteral();
}
}
}
if (iValue < value.length){
extra = value.substr(iValue);
if (!/^\s+/.test(extra)) {
throw "Extra/unparsed characters found in date: " + extra;
}
}
if (year === -1) {
year = new Date().getFullYear();
} else if (year < 100) {
year += new Date().getFullYear() - new Date().getFullYear() % 100 +
(year <= shortYearCutoff ? 0 : -100);
}
if (doy > -1) {
month = 1;
day = doy;
do {
dim = this._getDaysInMonth(year, month - 1);
if (day <= dim) {
break;
}
month++;
day -= dim;
} while (true);
}
date = this._daylightSavingAdjust(new Date(year, month - 1, day));
if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
throw "Invalid date"; // E.g. 31/02/00
}
return date;
},
/* Standard date formats. */
ATOM: "yy-mm-dd", // RFC 3339 (ISO 8601)
COOKIE: "D, dd M yy",
ISO_8601: "yy-mm-dd",
RFC_822: "D, d M y",
RFC_850: "DD, dd-M-y",
RFC_1036: "D, d M y",
RFC_1123: "D, d M yy",
RFC_2822: "D, d M yy",
RSS: "D, d M y", // RFC 822
TICKS: "!",
TIMESTAMP: "@",
W3C: "yy-mm-dd", // ISO 8601
_ticksTo1970: (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) +
Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000),
/* Format a date object into a string value.
* The format can be combinations of the following:
* d - day of month (no leading zero)
* dd - day of month (two digit)
* o - day of year (no leading zeros)
* oo - day of year (three digit)
* D - day name short
* DD - day name long
* m - month of year (no leading zero)
* mm - month of year (two digit)
* M - month name short
* MM - month name long
* y - year (two digit)
* yy - year (four digit)
* @ - Unix timestamp (ms since 01/01/1970)
* ! - Windows ticks (100ns since 01/01/0001)
* "..." - literal text
* '' - single quote
*
* @param format string - the desired format of the date
* @param date Date - the date value to format
* @param settings Object - attributes include:
* dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
* dayNames string[7] - names of the days from Sunday (optional)
* monthNamesShort string[12] - abbreviated names of the months (optional)
* monthNames string[12] - names of the months (optional)
* @return string - the date in the above format
*/
formatDate: function (format, date, settings) {
if (!date) {
return "";
}
var iFormat,
dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort,
dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames,
monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort,
monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames,
// Check whether a format character is doubled
lookAhead = function(match) {
var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
if (matches) {
iFormat++;
}
return matches;
},
// Format a number, with leading zero if necessary
formatNumber = function(match, value, len) {
var num = "" + value;
if (lookAhead(match)) {
while (num.length < len) {
num = "0" + num;
}
}
return num;
},
// Format a name, short or long as requested
formatName = function(match, value, shortNames, longNames) {
return (lookAhead(match) ? longNames[value] : shortNames[value]);
},
output = "",
literal = false;
if (date) {
for (iFormat = 0; iFormat < format.length; iFormat++) {
if (literal) {
if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
literal = false;
} else {
output += format.charAt(iFormat);
}
} else {
switch (format.charAt(iFormat)) {
case "d":
output += formatNumber("d", date.getDate(), 2);
break;
case "D":
output += formatName("D", date.getDay(), dayNamesShort, dayNames);
break;
case "o":
output += formatNumber("o",
Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
break;
case "m":
output += formatNumber("m", date.getMonth() + 1, 2);
break;
case "M":
output += formatName("M", date.getMonth(), monthNamesShort, monthNames);
break;
case "y":
output += (lookAhead("y") ? date.getFullYear() :
(date.getYear() % 100 < 10 ? "0" : "") + date.getYear() % 100);
break;
case "@":
output += date.getTime();
break;
case "!":
output += date.getTime() * 10000 + this._ticksTo1970;
break;
case "'":
if (lookAhead("'")) {
output += "'";
} else {
literal = true;
}
break;
default:
output += format.charAt(iFormat);
}
}
}
}
return output;
},
/* Extract all possible characters from the date format. */
_possibleChars: function (format) {
var iFormat,
chars = "",
literal = false,
// Check whether a format character is doubled
lookAhead = function(match) {
var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
if (matches) {
iFormat++;
}
return matches;
};
for (iFormat = 0; iFormat < format.length; iFormat++) {
if (literal) {
if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
literal = false;
} else {
chars += format.charAt(iFormat);
}
} else {
switch (format.charAt(iFormat)) {
case "d": case "m": case "y": case "@":
chars += "0123456789";
break;
case "D": case "M":
return null; // Accept anything
case "'":
if (lookAhead("'")) {
chars += "'";
} else {
literal = true;
}
break;
default:
chars += format.charAt(iFormat);
}
}
}
return chars;
},
/* Get a setting value, defaulting if necessary. */
_get: function(inst, name) {
return inst.settings[name] !== undefined ?
inst.settings[name] : this._defaults[name];
},
/* Parse existing date and initialise date picker. */
_setDateFromField: function(inst, noDefault) {
if (inst.input.val() === inst.lastVal) {
return;
}
var dateFormat = this._get(inst, "dateFormat"),
dates = inst.lastVal = inst.input ? inst.input.val() : null,
defaultDate = this._getDefaultDate(inst),
date = defaultDate,
settings = this._getFormatConfig(inst);
try {
date = this.parseDate(dateFormat, dates, settings) || defaultDate;
} catch (event) {
dates = (noDefault ? "" : dates);
}
inst.selectedDay = date.getDate();
inst.drawMonth = inst.selectedMonth = date.getMonth();
inst.drawYear = inst.selectedYear = date.getFullYear();
inst.currentDay = (dates ? date.getDate() : 0);
inst.currentMonth = (dates ? date.getMonth() : 0);
inst.currentYear = (dates ? date.getFullYear() : 0);
this._adjustInstDate(inst);
},
/* Retrieve the default date shown on opening. */
_getDefaultDate: function(inst) {
return this._restrictMinMax(inst,
this._determineDate(inst, this._get(inst, "defaultDate"), new Date()));
},
/* A date may be specified as an exact value or a relative one. */
_determineDate: function(inst, date, defaultDate) {
var offsetNumeric = function(offset) {
var date = new Date();
date.setDate(date.getDate() + offset);
return date;
},
offsetString = function(offset) {
try {
return $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"),
offset, $.datepicker._getFormatConfig(inst));
}
catch (e) {
// Ignore
}
var date = (offset.toLowerCase().match(/^c/) ?
$.datepicker._getDate(inst) : null) || new Date(),
year = date.getFullYear(),
month = date.getMonth(),
day = date.getDate(),
pattern = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,
matches = pattern.exec(offset);
while (matches) {
switch (matches[2] || "d") {
case "d" : case "D" :
day += parseInt(matches[1],10); break;
case "w" : case "W" :
day += parseInt(matches[1],10) * 7; break;
case "m" : case "M" :
month += parseInt(matches[1],10);
day = Math.min(day, $.datepicker._getDaysInMonth(year, month));
break;
case "y": case "Y" :
year += parseInt(matches[1],10);
day = Math.min(day, $.datepicker._getDaysInMonth(year, month));
break;
}
matches = pattern.exec(offset);
}
return new Date(year, month, day);
},
newDate = (date == null || date === "" ? defaultDate : (typeof date === "string" ? offsetString(date) :
(typeof date === "number" ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : new Date(date.getTime()))));
newDate = (newDate && newDate.toString() === "Invalid Date" ? defaultDate : newDate);
if (newDate) {
newDate.setHours(0);
newDate.setMinutes(0);
newDate.setSeconds(0);
newDate.setMilliseconds(0);
}
return this._daylightSavingAdjust(newDate);
},
/* Handle switch to/from daylight saving.
* Hours may be non-zero on daylight saving cut-over:
* > 12 when midnight changeover, but then cannot generate
* midnight datetime, so jump to 1AM, otherwise reset.
* @param date (Date) the date to check
* @return (Date) the corrected date
*/
_daylightSavingAdjust: function(date) {
if (!date) {
return null;
}
date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
return date;
},
/* Set the date(s) directly. */
_setDate: function(inst, date, noChange) {
var clear = !date,
origMonth = inst.selectedMonth,
origYear = inst.selectedYear,
newDate = this._restrictMinMax(inst, this._determineDate(inst, date, new Date()));
inst.selectedDay = inst.currentDay = newDate.getDate();
inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth();
inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear();
if ((origMonth !== inst.selectedMonth || origYear !== inst.selectedYear) && !noChange) {
this._notifyChange(inst);
}
this._adjustInstDate(inst);
if (inst.input) {
inst.input.val(clear ? "" : this._formatDate(inst));
}
},
/* Retrieve the date(s) directly. */
_getDate: function(inst) {
var startDate = (!inst.currentYear || (inst.input && inst.input.val() === "") ? null :
this._daylightSavingAdjust(new Date(
inst.currentYear, inst.currentMonth, inst.currentDay)));
return startDate;
},
/* Attach the onxxx handlers. These are declared statically so
* they work with static code transformers like Caja.
*/
_attachHandlers: function(inst) {
var stepMonths = this._get(inst, "stepMonths"),
id = "#" + inst.id.replace( /\\\\/g, "\\" );
inst.dpDiv.find("[data-handler]").map(function () {
var handler = {
prev: function () {
$.datepicker._adjustDate(id, -stepMonths, "M");
},
next: function () {
$.datepicker._adjustDate(id, +stepMonths, "M");
},
hide: function () {
$.datepicker._hideDatepicker();
},
today: function () {
$.datepicker._gotoToday(id);
},
selectDay: function () {
$.datepicker._selectDay(id, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this);
return false;
},
selectMonth: function () {
$.datepicker._selectMonthYear(id, this, "M");
return false;
},
selectYear: function () {
$.datepicker._selectMonthYear(id, this, "Y");
return false;
}
};
$(this).bind(this.getAttribute("data-event"), handler[this.getAttribute("data-handler")]);
});
},
/* Generate the HTML for the current state of the date picker. */
_generateHTML: function(inst) {
var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
cornerClass, calender, thead, day, daysInMonth, leadDays, curRows, numRows,
printDate, dRow, tbody, daySettings, otherMonth, unselectable,
tempDate = new Date(),
today = this._daylightSavingAdjust(
new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate())), // clear time
isRTL = this._get(inst, "isRTL"),
showButtonPanel = this._get(inst, "showButtonPanel"),
hideIfNoPrevNext = this._get(inst, "hideIfNoPrevNext"),
navigationAsDateFormat = this._get(inst, "navigationAsDateFormat"),
numMonths = this._getNumberOfMonths(inst),
showCurrentAtPos = this._get(inst, "showCurrentAtPos"),
stepMonths = this._get(inst, "stepMonths"),
isMultiMonth = (numMonths[0] !== 1 || numMonths[1] !== 1),
currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) :
new Date(inst.currentYear, inst.currentMonth, inst.currentDay))),
minDate = this._getMinMaxDate(inst, "min"),
maxDate = this._getMinMaxDate(inst, "max"),
drawMonth = inst.drawMonth - showCurrentAtPos,
drawYear = inst.drawYear;
if (drawMonth < 0) {
drawMonth += 12;
drawYear--;
}
if (maxDate) {
maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(),
maxDate.getMonth() - (numMonths[0] * numMonths[1]) + 1, maxDate.getDate()));
maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);
while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) {
drawMonth--;
if (drawMonth < 0) {
drawMonth = 11;
drawYear--;
}
}
}
inst.drawMonth = drawMonth;
inst.drawYear = drawYear;
prevText = this._get(inst, "prevText");
prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText,
this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)),
this._getFormatConfig(inst)));
prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?
"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'" +
" title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w") + "'>" + prevText + "</span></a>" :
(hideIfNoPrevNext ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+ prevText +"'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w") + "'>" + prevText + "</span></a>"));
nextText = this._get(inst, "nextText");
nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText,
this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)),
this._getFormatConfig(inst)));
next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ?
"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'" +
" title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e") + "'>" + nextText + "</span></a>" :
(hideIfNoPrevNext ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+ nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e") + "'>" + nextText + "</span></a>"));
currentText = this._get(inst, "currentText");
gotoDate = (this._get(inst, "gotoCurrent") && inst.currentDay ? currentDate : today);
currentText = (!navigationAsDateFormat ? currentText :
this.formatDate(currentText, gotoDate, this._getFormatConfig(inst)));
controls = (!inst.inline ? "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" +
this._get(inst, "closeText") + "</button>" : "");
buttonPanel = (showButtonPanel) ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + (isRTL ? controls : "") +
(this._isInRange(inst, gotoDate) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'" +
">" + currentText + "</button>" : "") + (isRTL ? "" : controls) + "</div>" : "";
firstDay = parseInt(this._get(inst, "firstDay"),10);
firstDay = (isNaN(firstDay) ? 0 : firstDay);
showWeek = this._get(inst, "showWeek");
dayNames = this._get(inst, "dayNames");
dayNamesMin = this._get(inst, "dayNamesMin");
monthNames = this._get(inst, "monthNames");
monthNamesShort = this._get(inst, "monthNamesShort");
beforeShowDay = this._get(inst, "beforeShowDay");
showOtherMonths = this._get(inst, "showOtherMonths");
selectOtherMonths = this._get(inst, "selectOtherMonths");
defaultDate = this._getDefaultDate(inst);
html = "";
dow;
for (row = 0; row < numMonths[0]; row++) {
group = "";
this.maxRows = 4;
for (col = 0; col < numMonths[1]; col++) {
selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));
cornerClass = " ui-corner-all";
calender = "";
if (isMultiMonth) {
calender += "<div class='ui-datepicker-group";
if (numMonths[1] > 1) {
switch (col) {
case 0: calender += " ui-datepicker-group-first";
cornerClass = " ui-corner-" + (isRTL ? "right" : "left"); break;
case numMonths[1]-1: calender += " ui-datepicker-group-last";
cornerClass = " ui-corner-" + (isRTL ? "left" : "right"); break;
default: calender += " ui-datepicker-group-middle"; cornerClass = ""; break;
}
}
calender += "'>";
}
calender += "<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix" + cornerClass + "'>" +
(/all|left/.test(cornerClass) && row === 0 ? (isRTL ? next : prev) : "") +
(/all|right/.test(cornerClass) && row === 0 ? (isRTL ? prev : next) : "") +
this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate,
row > 0 || col > 0, monthNames, monthNamesShort) + // draw month headers
"</div><table class='ui-datepicker-calendar'><thead>" +
"<tr>";
thead = (showWeek ? "<th class='ui-datepicker-week-col'>" + this._get(inst, "weekHeader") + "</th>" : "");
for (dow = 0; dow < 7; dow++) { // days of the week
day = (dow + firstDay) % 7;
thead += "<th scope='col'" + ((dow + firstDay + 6) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "") + ">" +
"<span title='" + dayNames[day] + "'>" + dayNamesMin[day] + "</span></th>";
}
calender += thead + "</tr></thead><tbody>";
daysInMonth = this._getDaysInMonth(drawYear, drawMonth);
if (drawYear === inst.selectedYear && drawMonth === inst.selectedMonth) {
inst.selectedDay = Math.min(inst.selectedDay, daysInMonth);
}
leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;
curRows = Math.ceil((leadDays + daysInMonth) / 7); // calculate the number of rows to generate
numRows = (isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows); //If multiple months, use the higher number of rows (see #7043)
this.maxRows = numRows;
printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays));
for (dRow = 0; dRow < numRows; dRow++) { // create date picker rows
calender += "<tr>";
tbody = (!showWeek ? "" : "<td class='ui-datepicker-week-col'>" +
this._get(inst, "calculateWeek")(printDate) + "</td>");
for (dow = 0; dow < 7; dow++) { // create date picker days
daySettings = (beforeShowDay ?
beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, ""]);
otherMonth = (printDate.getMonth() !== drawMonth);
unselectable = (otherMonth && !selectOtherMonths) || !daySettings[0] ||
(minDate && printDate < minDate) || (maxDate && printDate > maxDate);
tbody += "<td class='" +
((dow + firstDay + 6) % 7 >= 5 ? " ui-datepicker-week-end" : "") + // highlight weekends
(otherMonth ? " ui-datepicker-other-month" : "") + // highlight days from other months
((printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent) || // user pressed key
(defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime()) ?
// or defaultDate is current printedDate and defaultDate is selectedDate
" " + this._dayOverClass : "") + // highlight selected day
(unselectable ? " " + this._unselectableClass + " ui-state-disabled": "") + // highlight unselectable days
(otherMonth && !showOtherMonths ? "" : " " + daySettings[1] + // highlight custom dates
(printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "") + // highlight selected day
(printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "")) + "'" + // highlight today (if different)
((!otherMonth || showOtherMonths) && daySettings[2] ? " title='" + daySettings[2].replace(/'/g, "'") + "'" : "") + // cell title
(unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'") + ">" + // actions
(otherMonth && !showOtherMonths ? " " : // display for other months
(unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +
(printDate.getTime() === today.getTime() ? " ui-state-highlight" : "") +
(printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "") + // highlight selected day
(otherMonth ? " ui-priority-secondary" : "") + // distinguish dates from other months
"' href='#'>" + printDate.getDate() + "</a>")) + "</td>"; // display selectable date
printDate.setDate(printDate.getDate() + 1);
printDate = this._daylightSavingAdjust(printDate);
}
calender += tbody + "</tr>";
}
drawMonth++;
if (drawMonth > 11) {
drawMonth = 0;
drawYear++;
}
calender += "</tbody></table>" + (isMultiMonth ? "</div>" +
((numMonths[0] > 0 && col === numMonths[1]-1) ? "<div class='ui-datepicker-row-break'></div>" : "") : "");
group += calender;
}
html += group;
}
html += buttonPanel;
inst._keyEvent = false;
return html;
},
/* Generate the month and year header. */
_generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
secondary, monthNames, monthNamesShort) {
var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,
changeMonth = this._get(inst, "changeMonth"),
changeYear = this._get(inst, "changeYear"),
showMonthAfterYear = this._get(inst, "showMonthAfterYear"),
html = "<div class='ui-datepicker-title'>",
monthHtml = "";
// month selection
if (secondary || !changeMonth) {
monthHtml += "<span class='ui-datepicker-month'>" + monthNames[drawMonth] + "</span>";
} else {
inMinYear = (minDate && minDate.getFullYear() === drawYear);
inMaxYear = (maxDate && maxDate.getFullYear() === drawYear);
monthHtml += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";
for ( month = 0; month < 12; month++) {
if ((!inMinYear || month >= minDate.getMonth()) && (!inMaxYear || month <= maxDate.getMonth())) {
monthHtml += "<option value='" + month + "'" +
(month === drawMonth ? " selected='selected'" : "") +
">" + monthNamesShort[month] + "</option>";
}
}
monthHtml += "</select>";
}
if (!showMonthAfterYear) {
html += monthHtml + (secondary || !(changeMonth && changeYear) ? " " : "");
}
// year selection
if ( !inst.yearshtml ) {
inst.yearshtml = "";
if (secondary || !changeYear) {
html += "<span class='ui-datepicker-year'>" + drawYear + "</span>";
} else {
// determine range of years to display
years = this._get(inst, "yearRange").split(":");
thisYear = new Date().getFullYear();
determineYear = function(value) {
var year = (value.match(/c[+\-].*/) ? drawYear + parseInt(value.substring(1), 10) :
(value.match(/[+\-].*/) ? thisYear + parseInt(value, 10) :
parseInt(value, 10)));
return (isNaN(year) ? thisYear : year);
};
year = determineYear(years[0]);
endYear = Math.max(year, determineYear(years[1] || ""));
year = (minDate ? Math.max(year, minDate.getFullYear()) : year);
endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);
inst.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";
for (; year <= endYear; year++) {
inst.yearshtml += "<option value='" + year + "'" +
(year === drawYear ? " selected='selected'" : "") +
">" + year + "</option>";
}
inst.yearshtml += "</select>";
html += inst.yearshtml;
inst.yearshtml = null;
}
}
html += this._get(inst, "yearSuffix");
if (showMonthAfterYear) {
html += (secondary || !(changeMonth && changeYear) ? " " : "") + monthHtml;
}
html += "</div>"; // Close datepicker_header
return html;
},
/* Adjust one of the date sub-fields. */
_adjustInstDate: function(inst, offset, period) {
var year = inst.drawYear + (period === "Y" ? offset : 0),
month = inst.drawMonth + (period === "M" ? offset : 0),
day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) + (period === "D" ? offset : 0),
date = this._restrictMinMax(inst, this._daylightSavingAdjust(new Date(year, month, day)));
inst.selectedDay = date.getDate();
inst.drawMonth = inst.selectedMonth = date.getMonth();
inst.drawYear = inst.selectedYear = date.getFullYear();
if (period === "M" || period === "Y") {
this._notifyChange(inst);
}
},
/* Ensure a date is within any min/max bounds. */
_restrictMinMax: function(inst, date) {
var minDate = this._getMinMaxDate(inst, "min"),
maxDate = this._getMinMaxDate(inst, "max"),
newDate = (minDate && date < minDate ? minDate : date);
return (maxDate && newDate > maxDate ? maxDate : newDate);
},
/* Notify change of month/year. */
_notifyChange: function(inst) {
var onChange = this._get(inst, "onChangeMonthYear");
if (onChange) {
onChange.apply((inst.input ? inst.input[0] : null),
[inst.selectedYear, inst.selectedMonth + 1, inst]);
}
},
/* Determine the number of months to show. */
_getNumberOfMonths: function(inst) {
var numMonths = this._get(inst, "numberOfMonths");
return (numMonths == null ? [1, 1] : (typeof numMonths === "number" ? [1, numMonths] : numMonths));
},
/* Determine the current maximum date - ensure no time components are set. */
_getMinMaxDate: function(inst, minMax) {
return this._determineDate(inst, this._get(inst, minMax + "Date"), null);
},
/* Find the number of days in a given month. */
_getDaysInMonth: function(year, month) {
return 32 - this._daylightSavingAdjust(new Date(year, month, 32)).getDate();
},
/* Find the day of the week of the first of a month. */
_getFirstDayOfMonth: function(year, month) {
return new Date(year, month, 1).getDay();
},
/* Determines if we should allow a "next/prev" month display change. */
_canAdjustMonth: function(inst, offset, curYear, curMonth) {
var numMonths = this._getNumberOfMonths(inst),
date = this._daylightSavingAdjust(new Date(curYear,
curMonth + (offset < 0 ? offset : numMonths[0] * numMonths[1]), 1));
if (offset < 0) {
date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()));
}
return this._isInRange(inst, date);
},
/* Is the given date in the accepted range? */
_isInRange: function(inst, date) {
var yearSplit, currentYear,
minDate = this._getMinMaxDate(inst, "min"),
maxDate = this._getMinMaxDate(inst, "max"),
minYear = null,
maxYear = null,
years = this._get(inst, "yearRange");
if (years){
yearSplit = years.split(":");
currentYear = new Date().getFullYear();
minYear = parseInt(yearSplit[0], 10);
maxYear = parseInt(yearSplit[1], 10);
if ( yearSplit[0].match(/[+\-].*/) ) {
minYear += currentYear;
}
if ( yearSplit[1].match(/[+\-].*/) ) {
maxYear += currentYear;
}
}
return ((!minDate || date.getTime() >= minDate.getTime()) &&
(!maxDate || date.getTime() <= maxDate.getTime()) &&
(!minYear || date.getFullYear() >= minYear) &&
(!maxYear || date.getFullYear() <= maxYear));
},
/* Provide the configuration settings for formatting/parsing. */
_getFormatConfig: function(inst) {
var shortYearCutoff = this._get(inst, "shortYearCutoff");
shortYearCutoff = (typeof shortYearCutoff !== "string" ? shortYearCutoff :
new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
return {shortYearCutoff: shortYearCutoff,
dayNamesShort: this._get(inst, "dayNamesShort"), dayNames: this._get(inst, "dayNames"),
monthNamesShort: this._get(inst, "monthNamesShort"), monthNames: this._get(inst, "monthNames")};
},
/* Format the given date for display. */
_formatDate: function(inst, day, month, year) {
if (!day) {
inst.currentDay = inst.selectedDay;
inst.currentMonth = inst.selectedMonth;
inst.currentYear = inst.selectedYear;
}
var date = (day ? (typeof day === "object" ? day :
this._daylightSavingAdjust(new Date(year, month, day))) :
this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));
return this.formatDate(this._get(inst, "dateFormat"), date, this._getFormatConfig(inst));
}
});
/*
* Bind hover events for datepicker elements.
* Done via delegate so the binding only occurs once in the lifetime of the parent div.
* Global datepicker_instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker.
*/
function datepicker_bindHover(dpDiv) {
var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
return dpDiv.delegate(selector, "mouseout", function() {
$(this).removeClass("ui-state-hover");
if (this.className.indexOf("ui-datepicker-prev") !== -1) {
$(this).removeClass("ui-datepicker-prev-hover");
}
if (this.className.indexOf("ui-datepicker-next") !== -1) {
$(this).removeClass("ui-datepicker-next-hover");
}
})
.delegate(selector, "mouseover", function(){
if (!$.datepicker._isDisabledDatepicker( datepicker_instActive.inline ? dpDiv.parent()[0] : datepicker_instActive.input[0])) {
$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
$(this).addClass("ui-state-hover");
if (this.className.indexOf("ui-datepicker-prev") !== -1) {
$(this).addClass("ui-datepicker-prev-hover");
}
if (this.className.indexOf("ui-datepicker-next") !== -1) {
$(this).addClass("ui-datepicker-next-hover");
}
}
});
}
/* jQuery extend now ignores nulls! */
function datepicker_extendRemove(target, props) {
$.extend(target, props);
for (var name in props) {
if (props[name] == null) {
target[name] = props[name];
}
}
return target;
}
/* Invoke the datepicker functionality.
@param options string - a command, optionally followed by additional parameters or
Object - settings for attaching new datepicker functionality
@return jQuery object */
$.fn.datepicker = function(options){
/* Verify an empty collection wasn't passed - Fixes #6976 */
if ( !this.length ) {
return this;
}
/* Initialise the date picker. */
if (!$.datepicker.initialized) {
$(document).mousedown($.datepicker._checkExternalClick);
$.datepicker.initialized = true;
}
/* Append datepicker main container to body if not exist. */
if ($("#"+$.datepicker._mainDivId).length === 0) {
$("body").append($.datepicker.dpDiv);
}
var otherArgs = Array.prototype.slice.call(arguments, 1);
if (typeof options === "string" && (options === "isDisabled" || options === "getDate" || options === "widget")) {
return $.datepicker["_" + options + "Datepicker"].
apply($.datepicker, [this[0]].concat(otherArgs));
}
if (options === "option" && arguments.length === 2 && typeof arguments[1] === "string") {
return $.datepicker["_" + options + "Datepicker"].
apply($.datepicker, [this[0]].concat(otherArgs));
}
return this.each(function() {
typeof options === "string" ?
$.datepicker["_" + options + "Datepicker"].
apply($.datepicker, [this].concat(otherArgs)) :
$.datepicker._attachDatepicker(this, options);
});
};
$.datepicker = new Datepicker(); // singleton instance
$.datepicker.initialized = false;
$.datepicker.uuid = new Date().getTime();
$.datepicker.version = "1.11.0";
var datepicker = $.datepicker;
/*!
* jQuery UI Slider 1.11.0
* http://jqueryui.com
*
* Copyright 2016 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/slider/
*/
var slider = $.widget( "ui.slider", $.ui.mouse, {
version: "1.11.0",
widgetEventPrefix: "slide",
options: {
animate: false,
distance: 0,
max: 100,
min: 0,
orientation: "horizontal",
range: false,
step: 1,
value: 0,
values: null,
// callbacks
change: null,
slide: null,
start: null,
stop: null
},
// number of pages in a slider
// (how many times can you page up/down to go through the whole range)
numPages: 5,
_create: function() {
this._keySliding = false;
this._mouseSliding = false;
this._animateOff = true;
this._handleIndex = null;
this._detectOrientation();
this._mouseInit();
this.element
.addClass( "ui-slider" +
" ui-slider-" + this.orientation +
" ui-widget" +
" ui-widget-content" +
" ui-corner-all");
this._refresh();
this._setOption( "disabled", this.options.disabled );
this._animateOff = false;
},
_refresh: function() {
this._createRange();
this._createHandles();
this._setupEvents();
this._refreshValue();
},
_createHandles: function() {
var i, handleCount,
options = this.options,
existingHandles = this.element.find( ".ui-slider-handle" ).addClass( "ui-state-default ui-corner-all" ),
handle = "<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>",
handles = [];
handleCount = ( options.values && options.values.length ) || 1;
if ( existingHandles.length > handleCount ) {
existingHandles.slice( handleCount ).remove();
existingHandles = existingHandles.slice( 0, handleCount );
}
for ( i = existingHandles.length; i < handleCount; i++ ) {
handles.push( handle );
}
this.handles = existingHandles.add( $( handles.join( "" ) ).appendTo( this.element ) );
this.handle = this.handles.eq( 0 );
this.handles.each(function( i ) {
$( this ).data( "ui-slider-handle-index", i );
});
},
_createRange: function() {
var options = this.options,
classes = "";
if ( options.range ) {
if ( options.range === true ) {
if ( !options.values ) {
options.values = [ this._valueMin(), this._valueMin() ];
} else if ( options.values.length && options.values.length !== 2 ) {
options.values = [ options.values[0], options.values[0] ];
} else if ( $.isArray( options.values ) ) {
options.values = options.values.slice(0);
}
}
if ( !this.range || !this.range.length ) {
this.range = $( "<div></div>" )
.appendTo( this.element );
classes = "ui-slider-range" +
// note: this isn't the most fittingly semantic framework class for this element,
// but worked best visually with a variety of themes
" ui-widget-header ui-corner-all";
} else {
this.range.removeClass( "ui-slider-range-min ui-slider-range-max" )
// Handle range switching from true to min/max
.css({
"left": "",
"bottom": ""
});
}
this.range.addClass( classes +
( ( options.range === "min" || options.range === "max" ) ? " ui-slider-range-" + options.range : "" ) );
} else {
if ( this.range ) {
this.range.remove();
}
this.range = null;
}
},
_setupEvents: function() {
this._off( this.handles );
this._on( this.handles, this._handleEvents );
this._hoverable( this.handles );
this._focusable( this.handles );
},
_destroy: function() {
this.handles.remove();
if ( this.range ) {
this.range.remove();
}
this.element
.removeClass( "ui-slider" +
" ui-slider-horizontal" +
" ui-slider-vertical" +
" ui-widget" +
" ui-widget-content" +
" ui-corner-all" );
this._mouseDestroy();
},
_mouseCapture: function( event ) {
var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
that = this,
o = this.options;
if ( o.disabled ) {
return false;
}
this.elementSize = {
width: this.element.outerWidth(),
height: this.element.outerHeight()
};
this.elementOffset = this.element.offset();
position = { x: event.pageX, y: event.pageY };
normValue = this._normValueFromMouse( position );
distance = this._valueMax() - this._valueMin() + 1;
this.handles.each(function( i ) {
var thisDistance = Math.abs( normValue - that.values(i) );
if (( distance > thisDistance ) ||
( distance === thisDistance &&
(i === that._lastChangedValue || that.values(i) === o.min ))) {
distance = thisDistance;
closestHandle = $( this );
index = i;
}
});
allowed = this._start( event, index );
if ( allowed === false ) {
return false;
}
this._mouseSliding = true;
this._handleIndex = index;
closestHandle
.addClass( "ui-state-active" )
.focus();
offset = closestHandle.offset();
mouseOverHandle = !$( event.target ).parents().addBack().is( ".ui-slider-handle" );
this._clickOffset = mouseOverHandle ? { left: 0, top: 0 } : {
left: event.pageX - offset.left - ( closestHandle.width() / 2 ),
top: event.pageY - offset.top -
( closestHandle.height() / 2 ) -
( parseInt( closestHandle.css("borderTopWidth"), 10 ) || 0 ) -
( parseInt( closestHandle.css("borderBottomWidth"), 10 ) || 0) +
( parseInt( closestHandle.css("marginTop"), 10 ) || 0)
};
if ( !this.handles.hasClass( "ui-state-hover" ) ) {
this._slide( event, index, normValue );
}
this._animateOff = true;
return true;
},
_mouseStart: function() {
return true;
},
_mouseDrag: function( event ) {
var position = { x: event.pageX, y: event.pageY },
normValue = this._normValueFromMouse( position );
this._slide( event, this._handleIndex, normValue );
return false;
},
_mouseStop: function( event ) {
this.handles.removeClass( "ui-state-active" );
this._mouseSliding = false;
this._stop( event, this._handleIndex );
this._change( event, this._handleIndex );
this._handleIndex = null;
this._clickOffset = null;
this._animateOff = false;
return false;
},
_detectOrientation: function() {
this.orientation = ( this.options.orientation === "vertical" ) ? "vertical" : "horizontal";
},
_normValueFromMouse: function( position ) {
var pixelTotal,
pixelMouse,
percentMouse,
valueTotal,
valueMouse;
if ( this.orientation === "horizontal" ) {
pixelTotal = this.elementSize.width;
pixelMouse = position.x - this.elementOffset.left - ( this._clickOffset ? this._clickOffset.left : 0 );
} else {
pixelTotal = this.elementSize.height;
pixelMouse = position.y - this.elementOffset.top - ( this._clickOffset ? this._clickOffset.top : 0 );
}
percentMouse = ( pixelMouse / pixelTotal );
if ( percentMouse > 1 ) {
percentMouse = 1;
}
if ( percentMouse < 0 ) {
percentMouse = 0;
}
if ( this.orientation === "vertical" ) {
percentMouse = 1 - percentMouse;
}
valueTotal = this._valueMax() - this._valueMin();
valueMouse = this._valueMin() + percentMouse * valueTotal;
return this._trimAlignValue( valueMouse );
},
_start: function( event, index ) {
var uiHash = {
handle: this.handles[ index ],
value: this.value()
};
if ( this.options.values && this.options.values.length ) {
uiHash.value = this.values( index );
uiHash.values = this.values();
}
return this._trigger( "start", event, uiHash );
},
_slide: function( event, index, newVal ) {
var otherVal,
newValues,
allowed;
if ( this.options.values && this.options.values.length ) {
otherVal = this.values( index ? 0 : 1 );
if ( ( this.options.values.length === 2 && this.options.range === true ) &&
( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )
) {
newVal = otherVal;
}
if ( newVal !== this.values( index ) ) {
newValues = this.values();
newValues[ index ] = newVal;
// A slide can be canceled by returning false from the slide callback
allowed = this._trigger( "slide", event, {
handle: this.handles[ index ],
value: newVal,
values: newValues
} );
otherVal = this.values( index ? 0 : 1 );
if ( allowed !== false ) {
this.values( index, newVal );
}
}
} else {
if ( newVal !== this.value() ) {
// A slide can be canceled by returning false from the slide callback
allowed = this._trigger( "slide", event, {
handle: this.handles[ index ],
value: newVal
} );
if ( allowed !== false ) {
this.value( newVal );
}
}
}
},
_stop: function( event, index ) {
var uiHash = {
handle: this.handles[ index ],
value: this.value()
};
if ( this.options.values && this.options.values.length ) {
uiHash.value = this.values( index );
uiHash.values = this.values();
}
this._trigger( "stop", event, uiHash );
},
_change: function( event, index ) {
if ( !this._keySliding && !this._mouseSliding ) {
var uiHash = {
handle: this.handles[ index ],
value: this.value()
};
if ( this.options.values && this.options.values.length ) {
uiHash.value = this.values( index );
uiHash.values = this.values();
}
//store the last changed value index for reference when handles overlap
this._lastChangedValue = index;
this._trigger( "change", event, uiHash );
}
},
value: function( newValue ) {
if ( arguments.length ) {
this.options.value = this._trimAlignValue( newValue );
this._refreshValue();
this._change( null, 0 );
return;
}
return this._value();
},
values: function( index, newValue ) {
var vals,
newValues,
i;
if ( arguments.length > 1 ) {
this.options.values[ index ] = this._trimAlignValue( newValue );
this._refreshValue();
this._change( null, index );
return;
}
if ( arguments.length ) {
if ( $.isArray( arguments[ 0 ] ) ) {
vals = this.options.values;
newValues = arguments[ 0 ];
for ( i = 0; i < vals.length; i += 1 ) {
vals[ i ] = this._trimAlignValue( newValues[ i ] );
this._change( null, i );
}
this._refreshValue();
} else {
if ( this.options.values && this.options.values.length ) {
return this._values( index );
} else {
return this.value();
}
}
} else {
return this._values();
}
},
_setOption: function( key, value ) {
var i,
valsLength = 0;
if ( key === "range" && this.options.range === true ) {
if ( value === "min" ) {
this.options.value = this._values( 0 );
this.options.values = null;
} else if ( value === "max" ) {
this.options.value = this._values( this.options.values.length - 1 );
this.options.values = null;
}
}
if ( $.isArray( this.options.values ) ) {
valsLength = this.options.values.length;
}
if ( key === "disabled" ) {
this.element.toggleClass( "ui-state-disabled", !!value );
}
this._super( key, value );
switch ( key ) {
case "orientation":
this._detectOrientation();
this.element
.removeClass( "ui-slider-horizontal ui-slider-vertical" )
.addClass( "ui-slider-" + this.orientation );
this._refreshValue();
break;
case "value":
this._animateOff = true;
this._refreshValue();
this._change( null, 0 );
this._animateOff = false;
break;
case "values":
this._animateOff = true;
this._refreshValue();
for ( i = 0; i < valsLength; i += 1 ) {
this._change( null, i );
}
this._animateOff = false;
break;
case "min":
case "max":
this._animateOff = true;
this._refreshValue();
this._animateOff = false;
break;
case "range":
this._animateOff = true;
this._refresh();
this._animateOff = false;
break;
}
},
//internal value getter
// _value() returns value trimmed by min and max, aligned by step
_value: function() {
var val = this.options.value;
val = this._trimAlignValue( val );
return val;
},
//internal values getter
// _values() returns array of values trimmed by min and max, aligned by step
// _values( index ) returns single value trimmed by min and max, aligned by step
_values: function( index ) {
var val,
vals,
i;
if ( arguments.length ) {
val = this.options.values[ index ];
val = this._trimAlignValue( val );
return val;
} else if ( this.options.values && this.options.values.length ) {
// .slice() creates a copy of the array
// this copy gets trimmed by min and max and then returned
vals = this.options.values.slice();
for ( i = 0; i < vals.length; i+= 1) {
vals[ i ] = this._trimAlignValue( vals[ i ] );
}
return vals;
} else {
return [];
}
},
// returns the step-aligned value that val is closest to, between (inclusive) min and max
_trimAlignValue: function( val ) {
if ( val <= this._valueMin() ) {
return this._valueMin();
}
if ( val >= this._valueMax() ) {
return this._valueMax();
}
var step = ( this.options.step > 0 ) ? this.options.step : 1,
valModStep = (val - this._valueMin()) % step,
alignValue = val - valModStep;
if ( Math.abs(valModStep) * 2 >= step ) {
alignValue += ( valModStep > 0 ) ? step : ( -step );
}
// Since JavaScript has problems with large floats, round
// the final value to 5 digits after the decimal point (see #4124)
return parseFloat( alignValue.toFixed(5) );
},
_valueMin: function() {
return this.options.min;
},
_valueMax: function() {
return this.options.max;
},
_refreshValue: function() {
var lastValPercent, valPercent, value, valueMin, valueMax,
oRange = this.options.range,
o = this.options,
that = this,
animate = ( !this._animateOff ) ? o.animate : false,
_set = {};
if ( this.options.values && this.options.values.length ) {
this.handles.each(function( i ) {
valPercent = ( that.values(i) - that._valueMin() ) / ( that._valueMax() - that._valueMin() ) * 100;
_set[ that.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
$( this ).stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
if ( that.options.range === true ) {
if ( that.orientation === "horizontal" ) {
if ( i === 0 ) {
that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { left: valPercent + "%" }, o.animate );
}
if ( i === 1 ) {
that.range[ animate ? "animate" : "css" ]( { width: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );
}
} else {
if ( i === 0 ) {
that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { bottom: ( valPercent ) + "%" }, o.animate );
}
if ( i === 1 ) {
that.range[ animate ? "animate" : "css" ]( { height: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );
}
}
}
lastValPercent = valPercent;
});
} else {
value = this.value();
valueMin = this._valueMin();
valueMax = this._valueMax();
valPercent = ( valueMax !== valueMin ) ?
( value - valueMin ) / ( valueMax - valueMin ) * 100 :
0;
_set[ this.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
if ( oRange === "min" && this.orientation === "horizontal" ) {
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: valPercent + "%" }, o.animate );
}
if ( oRange === "max" && this.orientation === "horizontal" ) {
this.range[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
}
if ( oRange === "min" && this.orientation === "vertical" ) {
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: valPercent + "%" }, o.animate );
}
if ( oRange === "max" && this.orientation === "vertical" ) {
this.range[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
}
}
},
_handleEvents: {
keydown: function( event ) {
var allowed, curVal, newVal, step,
index = $( event.target ).data( "ui-slider-handle-index" );
switch ( event.keyCode ) {
case $.ui.keyCode.HOME:
case $.ui.keyCode.END:
case $.ui.keyCode.PAGE_UP:
case $.ui.keyCode.PAGE_DOWN:
case $.ui.keyCode.UP:
case $.ui.keyCode.RIGHT:
case $.ui.keyCode.DOWN:
case $.ui.keyCode.LEFT:
event.preventDefault();
if ( !this._keySliding ) {
this._keySliding = true;
$( event.target ).addClass( "ui-state-active" );
allowed = this._start( event, index );
if ( allowed === false ) {
return;
}
}
break;
}
step = this.options.step;
if ( this.options.values && this.options.values.length ) {
curVal = newVal = this.values( index );
} else {
curVal = newVal = this.value();
}
switch ( event.keyCode ) {
case $.ui.keyCode.HOME:
newVal = this._valueMin();
break;
case $.ui.keyCode.END:
newVal = this._valueMax();
break;
case $.ui.keyCode.PAGE_UP:
newVal = this._trimAlignValue(
curVal + ( ( this._valueMax() - this._valueMin() ) / this.numPages )
);
break;
case $.ui.keyCode.PAGE_DOWN:
newVal = this._trimAlignValue(
curVal - ( (this._valueMax() - this._valueMin()) / this.numPages ) );
break;
case $.ui.keyCode.UP:
case $.ui.keyCode.RIGHT:
if ( curVal === this._valueMax() ) {
return;
}
newVal = this._trimAlignValue( curVal + step );
break;
case $.ui.keyCode.DOWN:
case $.ui.keyCode.LEFT:
if ( curVal === this._valueMin() ) {
return;
}
newVal = this._trimAlignValue( curVal - step );
break;
}
this._slide( event, index, newVal );
},
keyup: function( event ) {
var index = $( event.target ).data( "ui-slider-handle-index" );
if ( this._keySliding ) {
this._keySliding = false;
this._stop( event, index );
this._change( event, index );
$( event.target ).removeClass( "ui-state-active" );
}
}
}
});
/*!
* jQuery UI Effects 1.11.0
* http://jqueryui.com
*
* Copyright 2016 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/effects-core/
*/
var dataSpace = "ui-effects-";
$.effects = {
effect: {}
};
/*!
* jQuery Color Animations v2.1.2
* https://github.com/jquery/jquery-color
*
* Copyright 2016 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* Date: Wed Jan 16 08:47:09 2013 -0600
*/
(function( jQuery, undefined ) {
var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
// plusequals test for += 100 -= 100
rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
// a set of RE's that can match strings and generate color tuples.
stringParsers = [ {
re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
parse: function( execResult ) {
return [
execResult[ 1 ],
execResult[ 2 ],
execResult[ 3 ],
execResult[ 4 ]
];
}
}, {
re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
parse: function( execResult ) {
return [
execResult[ 1 ] * 2.55,
execResult[ 2 ] * 2.55,
execResult[ 3 ] * 2.55,
execResult[ 4 ]
];
}
}, {
// this regex ignores A-F because it's compared against an already lowercased string
re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
parse: function( execResult ) {
return [
parseInt( execResult[ 1 ], 16 ),
parseInt( execResult[ 2 ], 16 ),
parseInt( execResult[ 3 ], 16 )
];
}
}, {
// this regex ignores A-F because it's compared against an already lowercased string
re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
parse: function( execResult ) {
return [
parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
];
}
}, {
re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
space: "hsla",
parse: function( execResult ) {
return [
execResult[ 1 ],
execResult[ 2 ] / 100,
execResult[ 3 ] / 100,
execResult[ 4 ]
];
}
} ],
// jQuery.Color( )
color = jQuery.Color = function( color, green, blue, alpha ) {
return new jQuery.Color.fn.parse( color, green, blue, alpha );
},
spaces = {
rgba: {
props: {
red: {
idx: 0,
type: "byte"
},
green: {
idx: 1,
type: "byte"
},
blue: {
idx: 2,
type: "byte"
}
}
},
hsla: {
props: {
hue: {
idx: 0,
type: "degrees"
},
saturation: {
idx: 1,
type: "percent"
},
lightness: {
idx: 2,
type: "percent"
}
}
}
},
propTypes = {
"byte": {
floor: true,
max: 255
},
"percent": {
max: 1
},
"degrees": {
mod: 360,
floor: true
}
},
support = color.support = {},
// element for support tests
supportElem = jQuery( "<p>" )[ 0 ],
// colors = jQuery.Color.names
colors,
// local aliases of functions called often
each = jQuery.each;
// determine rgba support immediately
supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
// define cache name and alpha properties
// for rgba and hsla spaces
each( spaces, function( spaceName, space ) {
space.cache = "_" + spaceName;
space.props.alpha = {
idx: 3,
type: "percent",
def: 1
};
});
function clamp( value, prop, allowEmpty ) {
var type = propTypes[ prop.type ] || {};
if ( value == null ) {
return (allowEmpty || !prop.def) ? null : prop.def;
}
// ~~ is an short way of doing floor for positive numbers
value = type.floor ? ~~value : parseFloat( value );
// IE will pass in empty strings as value for alpha,
// which will hit this case
if ( isNaN( value ) ) {
return prop.def;
}
if ( type.mod ) {
// we add mod before modding to make sure that negatives values
// get converted properly: -10 -> 350
return (value + type.mod) % type.mod;
}
// for now all property types without mod have min and max
return 0 > value ? 0 : type.max < value ? type.max : value;
}
function stringParse( string ) {
var inst = color(),
rgba = inst._rgba = [];
string = string.toLowerCase();
each( stringParsers, function( i, parser ) {
var parsed,
match = parser.re.exec( string ),
values = match && parser.parse( match ),
spaceName = parser.space || "rgba";
if ( values ) {
parsed = inst[ spaceName ]( values );
// if this was an rgba parse the assignment might happen twice
// oh well....
inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
rgba = inst._rgba = parsed._rgba;
// exit each( stringParsers ) here because we matched
return false;
}
});
// Found a stringParser that handled it
if ( rgba.length ) {
// if this came from a parsed string, force "transparent" when alpha is 0
// chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
if ( rgba.join() === "0,0,0,0" ) {
jQuery.extend( rgba, colors.transparent );
}
return inst;
}
// named colors
return colors[ string ];
}
color.fn = jQuery.extend( color.prototype, {
parse: function( red, green, blue, alpha ) {
if ( red === undefined ) {
this._rgba = [ null, null, null, null ];
return this;
}
if ( red.jquery || red.nodeType ) {
red = jQuery( red ).css( green );
green = undefined;
}
var inst = this,
type = jQuery.type( red ),
rgba = this._rgba = [];
// more than 1 argument specified - assume ( red, green, blue, alpha )
if ( green !== undefined ) {
red = [ red, green, blue, alpha ];
type = "array";
}
if ( type === "string" ) {
return this.parse( stringParse( red ) || colors._default );
}
if ( type === "array" ) {
each( spaces.rgba.props, function( key, prop ) {
rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
});
return this;
}
if ( type === "object" ) {
if ( red instanceof color ) {
each( spaces, function( spaceName, space ) {
if ( red[ space.cache ] ) {
inst[ space.cache ] = red[ space.cache ].slice();
}
});
} else {
each( spaces, function( spaceName, space ) {
var cache = space.cache;
each( space.props, function( key, prop ) {
// if the cache doesn't exist, and we know how to convert
if ( !inst[ cache ] && space.to ) {
// if the value was null, we don't need to copy it
// if the key was alpha, we don't need to copy it either
if ( key === "alpha" || red[ key ] == null ) {
return;
}
inst[ cache ] = space.to( inst._rgba );
}
// this is the only case where we allow nulls for ALL properties.
// call clamp with alwaysAllowEmpty
inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
});
// everything defined but alpha?
if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
// use the default of 1
inst[ cache ][ 3 ] = 1;
if ( space.from ) {
inst._rgba = space.from( inst[ cache ] );
}
}
});
}
return this;
}
},
is: function( compare ) {
var is = color( compare ),
same = true,
inst = this;
each( spaces, function( _, space ) {
var localCache,
isCache = is[ space.cache ];
if (isCache) {
localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || [];
each( space.props, function( _, prop ) {
if ( isCache[ prop.idx ] != null ) {
same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );
return same;
}
});
}
return same;
});
return same;
},
_space: function() {
var used = [],
inst = this;
each( spaces, function( spaceName, space ) {
if ( inst[ space.cache ] ) {
used.push( spaceName );
}
});
return used.pop();
},
transition: function( other, distance ) {
var end = color( other ),
spaceName = end._space(),
space = spaces[ spaceName ],
startColor = this.alpha() === 0 ? color( "transparent" ) : this,
start = startColor[ space.cache ] || space.to( startColor._rgba ),
result = start.slice();
end = end[ space.cache ];
each( space.props, function( key, prop ) {
var index = prop.idx,
startValue = start[ index ],
endValue = end[ index ],
type = propTypes[ prop.type ] || {};
// if null, don't override start value
if ( endValue === null ) {
return;
}
// if null - use end
if ( startValue === null ) {
result[ index ] = endValue;
} else {
if ( type.mod ) {
if ( endValue - startValue > type.mod / 2 ) {
startValue += type.mod;
} else if ( startValue - endValue > type.mod / 2 ) {
startValue -= type.mod;
}
}
result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop );
}
});
return this[ spaceName ]( result );
},
blend: function( opaque ) {
// if we are already opaque - return ourself
if ( this._rgba[ 3 ] === 1 ) {
return this;
}
var rgb = this._rgba.slice(),
a = rgb.pop(),
blend = color( opaque )._rgba;
return color( jQuery.map( rgb, function( v, i ) {
return ( 1 - a ) * blend[ i ] + a * v;
}));
},
toRgbaString: function() {
var prefix = "rgba(",
rgba = jQuery.map( this._rgba, function( v, i ) {
return v == null ? ( i > 2 ? 1 : 0 ) : v;
});
if ( rgba[ 3 ] === 1 ) {
rgba.pop();
prefix = "rgb(";
}
return prefix + rgba.join() + ")";
},
toHslaString: function() {
var prefix = "hsla(",
hsla = jQuery.map( this.hsla(), function( v, i ) {
if ( v == null ) {
v = i > 2 ? 1 : 0;
}
// catch 1 and 2
if ( i && i < 3 ) {
v = Math.round( v * 100 ) + "%";
}
return v;
});
if ( hsla[ 3 ] === 1 ) {
hsla.pop();
prefix = "hsl(";
}
return prefix + hsla.join() + ")";
},
toHexString: function( includeAlpha ) {
var rgba = this._rgba.slice(),
alpha = rgba.pop();
if ( includeAlpha ) {
rgba.push( ~~( alpha * 255 ) );
}
return "#" + jQuery.map( rgba, function( v ) {
// default to 0 when nulls exist
v = ( v || 0 ).toString( 16 );
return v.length === 1 ? "0" + v : v;
}).join("");
},
toString: function() {
return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();
}
});
color.fn.parse.prototype = color.fn;
// hsla conversions adapted from:
// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021
function hue2rgb( p, q, h ) {
h = ( h + 1 ) % 1;
if ( h * 6 < 1 ) {
return p + ( q - p ) * h * 6;
}
if ( h * 2 < 1) {
return q;
}
if ( h * 3 < 2 ) {
return p + ( q - p ) * ( ( 2 / 3 ) - h ) * 6;
}
return p;
}
spaces.hsla.to = function( rgba ) {
if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
return [ null, null, null, rgba[ 3 ] ];
}
var r = rgba[ 0 ] / 255,
g = rgba[ 1 ] / 255,
b = rgba[ 2 ] / 255,
a = rgba[ 3 ],
max = Math.max( r, g, b ),
min = Math.min( r, g, b ),
diff = max - min,
add = max + min,
l = add * 0.5,
h, s;
if ( min === max ) {
h = 0;
} else if ( r === max ) {
h = ( 60 * ( g - b ) / diff ) + 360;
} else if ( g === max ) {
h = ( 60 * ( b - r ) / diff ) + 120;
} else {
h = ( 60 * ( r - g ) / diff ) + 240;
}
// chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
// otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
if ( diff === 0 ) {
s = 0;
} else if ( l <= 0.5 ) {
s = diff / add;
} else {
s = diff / ( 2 - add );
}
return [ Math.round(h) % 360, s, l, a == null ? 1 : a ];
};
spaces.hsla.from = function( hsla ) {
if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
return [ null, null, null, hsla[ 3 ] ];
}
var h = hsla[ 0 ] / 360,
s = hsla[ 1 ],
l = hsla[ 2 ],
a = hsla[ 3 ],
q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,
p = 2 * l - q;
return [
Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),
Math.round( hue2rgb( p, q, h ) * 255 ),
Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),
a
];
};
each( spaces, function( spaceName, space ) {
var props = space.props,
cache = space.cache,
to = space.to,
from = space.from;
// makes rgba() and hsla()
color.fn[ spaceName ] = function( value ) {
// generate a cache for this space if it doesn't exist
if ( to && !this[ cache ] ) {
this[ cache ] = to( this._rgba );
}
if ( value === undefined ) {
return this[ cache ].slice();
}
var ret,
type = jQuery.type( value ),
arr = ( type === "array" || type === "object" ) ? value : arguments,
local = this[ cache ].slice();
each( props, function( key, prop ) {
var val = arr[ type === "object" ? key : prop.idx ];
if ( val == null ) {
val = local[ prop.idx ];
}
local[ prop.idx ] = clamp( val, prop );
});
if ( from ) {
ret = color( from( local ) );
ret[ cache ] = local;
return ret;
} else {
return color( local );
}
};
// makes red() green() blue() alpha() hue() saturation() lightness()
each( props, function( key, prop ) {
// alpha is included in more than one space
if ( color.fn[ key ] ) {
return;
}
color.fn[ key ] = function( value ) {
var vtype = jQuery.type( value ),
fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),
local = this[ fn ](),
cur = local[ prop.idx ],
match;
if ( vtype === "undefined" ) {
return cur;
}
if ( vtype === "function" ) {
value = value.call( this, cur );
vtype = jQuery.type( value );
}
if ( value == null && prop.empty ) {
return this;
}
if ( vtype === "string" ) {
match = rplusequals.exec( value );
if ( match ) {
value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );
}
}
local[ prop.idx ] = value;
return this[ fn ]( local );
};
});
});
// add cssHook and .fx.step function for each named hook.
// accept a space separated string of properties
color.hook = function( hook ) {
var hooks = hook.split( " " );
each( hooks, function( i, hook ) {
jQuery.cssHooks[ hook ] = {
set: function( elem, value ) {
var parsed, curElem,
backgroundColor = "";
if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
value = color( parsed || value );
if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
curElem = hook === "backgroundColor" ? elem.parentNode : elem;
while (
(backgroundColor === "" || backgroundColor === "transparent") &&
curElem && curElem.style
) {
try {
backgroundColor = jQuery.css( curElem, "backgroundColor" );
curElem = curElem.parentNode;
} catch ( e ) {
}
}
value = value.blend( backgroundColor && backgroundColor !== "transparent" ?
backgroundColor :
"_default" );
}
value = value.toRgbaString();
}
try {
elem.style[ hook ] = value;
} catch( e ) {
// wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
}
}
};
jQuery.fx.step[ hook ] = function( fx ) {
if ( !fx.colorInit ) {
fx.start = color( fx.elem, hook );
fx.end = color( fx.end );
fx.colorInit = true;
}
jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
};
});
};
color.hook( stepHooks );
jQuery.cssHooks.borderColor = {
expand: function( value ) {
var expanded = {};
each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {
expanded[ "border" + part + "Color" ] = value;
});
return expanded;
}
};
// Basic color names only.
// Usage of any of the other color names requires adding yourself or including
// jquery.color.svg-names.js.
colors = jQuery.Color.names = {
// 4.1. Basic color keywords
aqua: "#00ffff",
black: "#000000",
blue: "#0000ff",
fuchsia: "#ff00ff",
gray: "#808080",
green: "#008000",
lime: "#00ff00",
maroon: "#800000",
navy: "#000080",
olive: "#808000",
purple: "#800080",
red: "#ff0000",
silver: "#c0c0c0",
teal: "#008080",
white: "#ffffff",
yellow: "#ffff00",
// 4.2.3. "transparent" color keyword
transparent: [ null, null, null, 0 ],
_default: "#ffffff"
};
})( jQuery );
/******************************************************************************/
/****************************** CLASS ANIMATIONS ******************************/
/******************************************************************************/
(function() {
var classAnimationActions = [ "add", "remove", "toggle" ],
shorthandStyles = {
border: 1,
borderBottom: 1,
borderColor: 1,
borderLeft: 1,
borderRight: 1,
borderTop: 1,
borderWidth: 1,
margin: 1,
padding: 1
};
$.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function( _, prop ) {
$.fx.step[ prop ] = function( fx ) {
if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) {
jQuery.style( fx.elem, prop, fx.end );
fx.setAttr = true;
}
};
});
function getElementStyles( elem ) {
var key, len,
style = elem.ownerDocument.defaultView ?
elem.ownerDocument.defaultView.getComputedStyle( elem, null ) :
elem.currentStyle,
styles = {};
if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) {
len = style.length;
while ( len-- ) {
key = style[ len ];
if ( typeof style[ key ] === "string" ) {
styles[ $.camelCase( key ) ] = style[ key ];
}
}
// support: Opera, IE <9
} else {
for ( key in style ) {
if ( typeof style[ key ] === "string" ) {
styles[ key ] = style[ key ];
}
}
}
return styles;
}
function styleDifference( oldStyle, newStyle ) {
var diff = {},
name, value;
for ( name in newStyle ) {
value = newStyle[ name ];
if ( oldStyle[ name ] !== value ) {
if ( !shorthandStyles[ name ] ) {
if ( $.fx.step[ name ] || !isNaN( parseFloat( value ) ) ) {
diff[ name ] = value;
}
}
}
}
return diff;
}
// support: jQuery <1.8
if ( !$.fn.addBack ) {
$.fn.addBack = function( selector ) {
return this.add( selector == null ?
this.prevObject : this.prevObject.filter( selector )
);
};
}
$.effects.animateClass = function( value, duration, easing, callback ) {
var o = $.speed( duration, easing, callback );
return this.queue( function() {
var animated = $( this ),
baseClass = animated.attr( "class" ) || "",
applyClassChange,
allAnimations = o.children ? animated.find( "*" ).addBack() : animated;
// map the animated objects to store the original styles.
allAnimations = allAnimations.map(function() {
var el = $( this );
return {
el: el,
start: getElementStyles( this )
};
});
// apply class change
applyClassChange = function() {
$.each( classAnimationActions, function(i, action) {
if ( value[ action ] ) {
animated[ action + "Class" ]( value[ action ] );
}
});
};
applyClassChange();
// map all animated objects again - calculate new styles and diff
allAnimations = allAnimations.map(function() {
this.end = getElementStyles( this.el[ 0 ] );
this.diff = styleDifference( this.start, this.end );
return this;
});
// apply original class
animated.attr( "class", baseClass );
// map all animated objects again - this time collecting a promise
allAnimations = allAnimations.map(function() {
var styleInfo = this,
dfd = $.Deferred(),
opts = $.extend({}, o, {
queue: false,
complete: function() {
dfd.resolve( styleInfo );
}
});
this.el.animate( this.diff, opts );
return dfd.promise();
});
// once all animations have completed:
$.when.apply( $, allAnimations.get() ).done(function() {
// set the final class
applyClassChange();
// for each animated element,
// clear all css properties that were animated
$.each( arguments, function() {
var el = this.el;
$.each( this.diff, function(key) {
el.css( key, "" );
});
});
// this is guarnteed to be there if you use jQuery.speed()
// it also handles dequeuing the next anim...
o.complete.call( animated[ 0 ] );
});
});
};
$.fn.extend({
addClass: (function( orig ) {
return function( classNames, speed, easing, callback ) {
return speed ?
$.effects.animateClass.call( this,
{ add: classNames }, speed, easing, callback ) :
orig.apply( this, arguments );
};
})( $.fn.addClass ),
removeClass: (function( orig ) {
return function( classNames, speed, easing, callback ) {
return arguments.length > 1 ?
$.effects.animateClass.call( this,
{ remove: classNames }, speed, easing, callback ) :
orig.apply( this, arguments );
};
})( $.fn.removeClass ),
toggleClass: (function( orig ) {
return function( classNames, force, speed, easing, callback ) {
if ( typeof force === "boolean" || force === undefined ) {
if ( !speed ) {
// without speed parameter
return orig.apply( this, arguments );
} else {
return $.effects.animateClass.call( this,
(force ? { add: classNames } : { remove: classNames }),
speed, easing, callback );
}
} else {
// without force parameter
return $.effects.animateClass.call( this,
{ toggle: classNames }, force, speed, easing );
}
};
})( $.fn.toggleClass ),
switchClass: function( remove, add, speed, easing, callback) {
return $.effects.animateClass.call( this, {
add: add,
remove: remove
}, speed, easing, callback );
}
});
})();
/******************************************************************************/
/*********************************** EFFECTS **********************************/
/******************************************************************************/
(function() {
$.extend( $.effects, {
version: "1.11.0",
// Saves a set of properties in a data storage
save: function( element, set ) {
for ( var i = 0; i < set.length; i++ ) {
if ( set[ i ] !== null ) {
element.data( dataSpace + set[ i ], element[ 0 ].style[ set[ i ] ] );
}
}
},
// Restores a set of previously saved properties from a data storage
restore: function( element, set ) {
var val, i;
for ( i = 0; i < set.length; i++ ) {
if ( set[ i ] !== null ) {
val = element.data( dataSpace + set[ i ] );
// support: jQuery 1.6.2
// http://bugs.jquery.com/ticket/9917
// jQuery 1.6.2 incorrectly returns undefined for any falsy value.
// We can't differentiate between "" and 0 here, so we just assume
// empty string since it's likely to be a more common value...
if ( val === undefined ) {
val = "";
}
element.css( set[ i ], val );
}
}
},
setMode: function( el, mode ) {
if (mode === "toggle") {
mode = el.is( ":hidden" ) ? "show" : "hide";
}
return mode;
},
// Translates a [top,left] array into a baseline value
// this should be a little more flexible in the future to handle a string & hash
getBaseline: function( origin, original ) {
var y, x;
switch ( origin[ 0 ] ) {
case "top": y = 0; break;
case "middle": y = 0.5; break;
case "bottom": y = 1; break;
default: y = origin[ 0 ] / original.height;
}
switch ( origin[ 1 ] ) {
case "left": x = 0; break;
case "center": x = 0.5; break;
case "right": x = 1; break;
default: x = origin[ 1 ] / original.width;
}
return {
x: x,
y: y
};
},
// Wraps the element around a wrapper that copies position properties
createWrapper: function( element ) {
// if the element is already wrapped, return it
if ( element.parent().is( ".ui-effects-wrapper" )) {
return element.parent();
}
// wrap the element
var props = {
width: element.outerWidth(true),
height: element.outerHeight(true),
"float": element.css( "float" )
},
wrapper = $( "<div></div>" )
.addClass( "ui-effects-wrapper" )
.css({
fontSize: "100%",
background: "transparent",
border: "none",
margin: 0,
padding: 0
}),
// Store the size in case width/height are defined in % - Fixes #5245
size = {
width: element.width(),
height: element.height()
},
active = document.activeElement;
// support: Firefox
// Firefox incorrectly exposes anonymous content
// https://bugzilla.mozilla.org/show_bug.cgi?id=561664
try {
active.id;
} catch( e ) {
active = document.body;
}
element.wrap( wrapper );
// Fixes #7595 - Elements lose focus when wrapped.
if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
$( active ).focus();
}
wrapper = element.parent(); //Hotfix for jQuery 1.4 since some change in wrap() seems to actually lose the reference to the wrapped element
// transfer positioning properties to the wrapper
if ( element.css( "position" ) === "static" ) {
wrapper.css({ position: "relative" });
element.css({ position: "relative" });
} else {
$.extend( props, {
position: element.css( "position" ),
zIndex: element.css( "z-index" )
});
$.each([ "top", "left", "bottom", "right" ], function(i, pos) {
props[ pos ] = element.css( pos );
if ( isNaN( parseInt( props[ pos ], 10 ) ) ) {
props[ pos ] = "auto";
}
});
element.css({
position: "relative",
top: 0,
left: 0,
right: "auto",
bottom: "auto"
});
}
element.css(size);
return wrapper.css( props ).show();
},
removeWrapper: function( element ) {
var active = document.activeElement;
if ( element.parent().is( ".ui-effects-wrapper" ) ) {
element.parent().replaceWith( element );
// Fixes #7595 - Elements lose focus when wrapped.
if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
$( active ).focus();
}
}
return element;
},
setTransition: function( element, list, factor, value ) {
value = value || {};
$.each( list, function( i, x ) {
var unit = element.cssUnit( x );
if ( unit[ 0 ] > 0 ) {
value[ x ] = unit[ 0 ] * factor + unit[ 1 ];
}
});
return value;
}
});
// return an effect options object for the given parameters:
function _normalizeArguments( effect, options, speed, callback ) {
// allow passing all options as the first parameter
if ( $.isPlainObject( effect ) ) {
options = effect;
effect = effect.effect;
}
// convert to an object
effect = { effect: effect };
// catch (effect, null, ...)
if ( options == null ) {
options = {};
}
// catch (effect, callback)
if ( $.isFunction( options ) ) {
callback = options;
speed = null;
options = {};
}
// catch (effect, speed, ?)
if ( typeof options === "number" || $.fx.speeds[ options ] ) {
callback = speed;
speed = options;
options = {};
}
// catch (effect, options, callback)
if ( $.isFunction( speed ) ) {
callback = speed;
speed = null;
}
// add options to effect
if ( options ) {
$.extend( effect, options );
}
speed = speed || options.duration;
effect.duration = $.fx.off ? 0 :
typeof speed === "number" ? speed :
speed in $.fx.speeds ? $.fx.speeds[ speed ] :
$.fx.speeds._default;
effect.complete = callback || options.complete;
return effect;
}
function standardAnimationOption( option ) {
// Valid standard speeds (nothing, number, named speed)
if ( !option || typeof option === "number" || $.fx.speeds[ option ] ) {
return true;
}
// Invalid strings - treat as "normal" speed
if ( typeof option === "string" && !$.effects.effect[ option ] ) {
return true;
}
// Complete callback
if ( $.isFunction( option ) ) {
return true;
}
// Options hash (but not naming an effect)
if ( typeof option === "object" && !option.effect ) {
return true;
}
// Didn't match any standard API
return false;
}
$.fn.extend({
effect: function( /* effect, options, speed, callback */ ) {
var args = _normalizeArguments.apply( this, arguments ),
mode = args.mode,
queue = args.queue,
effectMethod = $.effects.effect[ args.effect ];
if ( $.fx.off || !effectMethod ) {
// delegate to the original method (e.g., .show()) if possible
if ( mode ) {
return this[ mode ]( args.duration, args.complete );
} else {
return this.each( function() {
if ( args.complete ) {
args.complete.call( this );
}
});
}
}
function run( next ) {
var elem = $( this ),
complete = args.complete,
mode = args.mode;
function done() {
if ( $.isFunction( complete ) ) {
complete.call( elem[0] );
}
if ( $.isFunction( next ) ) {
next();
}
}
// If the element already has the correct final state, delegate to
// the core methods so the internal tracking of "olddisplay" works.
if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {
elem[ mode ]();
done();
} else {
effectMethod.call( elem[0], args, done );
}
}
return queue === false ? this.each( run ) : this.queue( queue || "fx", run );
},
show: (function( orig ) {
return function( option ) {
if ( standardAnimationOption( option ) ) {
return orig.apply( this, arguments );
} else {
var args = _normalizeArguments.apply( this, arguments );
args.mode = "show";
return this.effect.call( this, args );
}
};
})( $.fn.show ),
hide: (function( orig ) {
return function( option ) {
if ( standardAnimationOption( option ) ) {
return orig.apply( this, arguments );
} else {
var args = _normalizeArguments.apply( this, arguments );
args.mode = "hide";
return this.effect.call( this, args );
}
};
})( $.fn.hide ),
toggle: (function( orig ) {
return function( option ) {
if ( standardAnimationOption( option ) || typeof option === "boolean" ) {
return orig.apply( this, arguments );
} else {
var args = _normalizeArguments.apply( this, arguments );
args.mode = "toggle";
return this.effect.call( this, args );
}
};
})( $.fn.toggle ),
// helper functions
cssUnit: function(key) {
var style = this.css( key ),
val = [];
$.each( [ "em", "px", "%", "pt" ], function( i, unit ) {
if ( style.indexOf( unit ) > 0 ) {
val = [ parseFloat( style ), unit ];
}
});
return val;
}
});
})();
/******************************************************************************/
/*********************************** EASING ***********************************/
/******************************************************************************/
(function() {
// based on easing equations from Robert Penner (http://www.robertpenner.com/easing)
var baseEasings = {};
$.each( [ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function( i, name ) {
baseEasings[ name ] = function( p ) {
return Math.pow( p, i + 2 );
};
});
$.extend( baseEasings, {
Sine: function( p ) {
return 1 - Math.cos( p * Math.PI / 2 );
},
Circ: function( p ) {
return 1 - Math.sqrt( 1 - p * p );
},
Elastic: function( p ) {
return p === 0 || p === 1 ? p :
-Math.pow( 2, 8 * (p - 1) ) * Math.sin( ( (p - 1) * 80 - 7.5 ) * Math.PI / 15 );
},
Back: function( p ) {
return p * p * ( 3 * p - 2 );
},
Bounce: function( p ) {
var pow2,
bounce = 4;
while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {}
return 1 / Math.pow( 4, 3 - bounce ) - 7.5625 * Math.pow( ( pow2 * 3 - 2 ) / 22 - p, 2 );
}
});
$.each( baseEasings, function( name, easeIn ) {
$.easing[ "easeIn" + name ] = easeIn;
$.easing[ "easeOut" + name ] = function( p ) {
return 1 - easeIn( 1 - p );
};
$.easing[ "easeInOut" + name ] = function( p ) {
return p < 0.5 ?
easeIn( p * 2 ) / 2 :
1 - easeIn( p * -2 + 2 ) / 2;
};
});
})();
var effect = $.effects;
}));
|
var classorg_1_1onosproject_1_1incubator_1_1net_1_1domain_1_1NetworkIntentResource =
[
[ "NetworkIntentResource", "classorg_1_1onosproject_1_1incubator_1_1net_1_1domain_1_1NetworkIntentResource.html#adc46e2fefd8d21e7c76f17dac47ad75b", null ],
[ "path", "classorg_1_1onosproject_1_1incubator_1_1net_1_1domain_1_1NetworkIntentResource.html#a340b3f1f35ae53749dad57af4c3a0229", null ],
[ "tunnelId", "classorg_1_1onosproject_1_1incubator_1_1net_1_1domain_1_1NetworkIntentResource.html#a7195ce142b7c0a4dfb016f62b099388c", null ]
];
|
import{_ as e}from"./BasicForm.8a33b99c.js";import{ag as i,h as s}from"./index.4926e6da.js";import{M as t}from"./index.2c9b3d58.js";import{P as a}from"./index.0aed0d9d.js";import{y as r,af as o,Z as n,B as d,F as m,a2 as p,v as l}from"./vendor.880b4c6c.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.115ee23a.js";/* empty css *//* empty css *//* empty css */import"./index.0795d69f.js";import"./useWindowSizeFn.564cf32e.js";/* empty css *//* empty css */import"./uuid.2b29000c.js";import"./download.c775db55.js";import"./base64Conver.bb012c73.js";import"./index.7ca90fad.js";import"./onMountedOrActivated.8f899bfb.js";/* empty css *//* empty css */import"./useContentViewHeight.dbded6ea.js";const c=[{field:"title",component:"Input",label:"title",defaultValue:"标题",rules:[{required:!0}]},{field:"markdown",component:"Input",label:"markdown",defaultValue:"defaultValue",rules:[{required:!0,trigger:"blur"}],render:({model:e,field:i})=>o(t,{value:e[i],onChange:s=>{e[i]=s}})}];var f=r({components:{BasicForm:e,CollapseContainer:i,PageWrapper:a},setup(){const{createMessage:e}=s();return{schemas:c,handleSubmit:i=>{e.success("click search,values:"+JSON.stringify(i))}}}});f.render=function(e,i,s,t,a,r){const o=n("BasicForm"),c=n("CollapseContainer"),f=n("PageWrapper");return d(),m(f,{title:"MarkDown组件嵌入Form示例"},{default:p((()=>[l(c,{title:"MarkDown表单"},{default:p((()=>[l(o,{labelWidth:100,schemas:e.schemas,actionColOptions:{span:24},onSubmit:e.handleSubmit},null,8,["schemas","onSubmit"])])),_:1})])),_:1})};export default f;
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: calpha <calpha@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/27 20:50:22 by calpha #+# #+# */
/* Updated: 2019/09/28 15:00:43 by calpha ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_strdel(char **as)
{
if (as)
{
if (*as)
{
free(*as);
*as = NULL;
}
}
}
|
import pandas as pd
import numpy as np
import re
#d= pd.read_csv(snakemake.input[0], sep= '\t', header= 0)
#d['Allele1']= d['Allele1'].str.upper()
#d['Allele2']= d['Allele2'].str.upper()
#d= d.loc[(d.TOTALSAMPLESIZE> (d['TOTALSAMPLESIZE'].max())/ 2), :]
#d[['CHR', 'POS', 'REF','EFF', 'SNP']]= d['MarkerName'].str.split(':', expand= True)
#d['CHR']= d['CHR'].astype(str).astype(int)
#d['POS']= d['POS'].astype(str).astype(int)
#d= d[['CHR', 'POS', 'Allele1', 'Allele2', 'TOTALSAMPLESIZE', 'Freq1', 'Effect', 'StdErr', 'P-value']]
#d.columns= ['CHR', 'POS', 'EFF', 'REF', 'TOTALSAMPLESIZE', 'EAF', 'BETA', 'SE', 'pvalue']
#d['BETA']=np.where(d.REF > d.EFF, -1* d.BETA, d.BETA)
#d['EAF']= np.where(d.REF > d.EFF, 1 - d.EAF, d.EAF)
#d['CHR']= d['CHR'].astype(str).astype(int)
#d['POS']= d['POS'].astype(str).astype(int)
#d['pvalue']= d['pvalue'].astype(str).astype(float)
#d.loc[d.REF > d.EFF, ['REF', 'EFF']] = d.loc[d.REF > d.EFF, ['EFF', 'REF']].values
#d['ID']= d.CHR.astype(int).astype(str) + ':' + d.POS.astype(int).astype(str) + ':' + d.REF + ':' + d.EFF
#d= d.loc[((d.pvalue>0) & (d.pvalue <1)), :]
col_list= ['IMPACT', 'DISTANCE', 'SYMBOL', 'SYMBOL_SOURCE', 'BIOTYPE']
df_list= list()
for vep in pd.read_csv(snakemake.input[1], sep= '\t', header= None, names= ['Variation', 'Location', 'Allele', 'Gene', 'Feature', 'Feature_type', 'Consequence', 'cDNA_position', 'CDS_position', 'Protein_position', 'Amino_acids', 'Codons', 'Existing_variation', 'Extra'], comment= '#', chunksize= 100000):
for i in col_list:
vep[i]= vep['Extra'].apply(lambda y: dict([(x.split('=', 1)) for x in re.split(';(?=\w)', y) if x.find('=') > -1])[i] if i in y else '')
vep= vep[['Variation', 'Location', 'Existing_variation', 'Gene', 'SYMBOL', 'Consequence', 'IMPACT', 'DISTANCE', 'SYMBOL_SOURCE', 'BIOTYPE']]
vep.columns= ['ID', 'Location', 'RSID', 'Gene', 'SYMBOL', 'Consequence', 'IMPACT', 'DISTANCE', 'SYMBOL_SOURCE', 'BIOTYPE']
vep['BIOTYPE1']= np.where(vep.BIOTYPE== 'protein_coding', 0, np.where(vep.BIOTYPE.str.contains('pseudo'), 2, 1))
vep['DISTANCE']= np.where(vep.DISTANCE== '', 0, vep.DISTANCE)
vep[['chr', 'pos', 'All']]= vep.ID.str.split('_', expand= True)
vep[['EFF', 'REF']]= vep.All.str.split('/', expand= True)
vep.loc[vep.REF > vep.EFF, ['REF', 'EFF']] = vep.loc[vep.REF > vep.EFF, ['EFF', 'REF']].values
vep[['CHR', 'POS']]= vep['Location'].str.split(':', expand= True)
vep['CHR']= np.where(vep['CHR']== 'X', '23', vep['CHR'])
vep['ID']= vep.CHR.astype(int).astype(str) + ':' + vep.POS.astype(int).astype(str) + ':' + vep.REF + ':' + vep.EFF
vep= vep[['ID', 'RSID', 'Gene', 'SYMBOL', 'Consequence', 'IMPACT', 'DISTANCE', 'BIOTYPE', 'BIOTYPE1']]
vep.sort_values(by= ['BIOTYPE1'], ascending= True, inplace= True)
vep.drop_duplicates(subset= ['ID'], keep= 'first', inplace= True)
df_list.append(vep)
vep= pd.concat(df_list)
vep.sort_values(by= ['BIOTYPE1'], ascending= True, inplace= True)
vep.drop_duplicates(subset= ['ID'], keep= 'first', inplace= True)
vep= vep[['ID', 'RSID', 'Gene', 'SYMBOL', 'Consequence', 'IMPACT', 'DISTANCE', 'BIOTYPE']]
d= pd.read_csv(snakemake.input[0], sep= '\t', header= 0)
d['Allele1']= d['Allele1'].str.upper()
d['Allele2']= d['Allele2'].str.upper()
d= d.loc[(d.TOTALSAMPLESIZE> (d['TOTALSAMPLESIZE'].max())/ 2), :]
d[['CHR', 'POS', 'REF','EFF', 'SNP']]= d['MarkerName'].str.split(':', expand= True)
d['CHR']= d['CHR'].astype(str).astype(int)
d['POS']= d['POS'].astype(str).astype(int)
d= d[['CHR', 'POS', 'Allele1', 'Allele2', 'TOTALSAMPLESIZE', 'Freq1', 'Effect', 'StdErr', 'P-value']]
d.columns= ['CHR', 'POS', 'EFF', 'REF', 'TOTALSAMPLESIZE', 'EAF', 'BETA', 'SE', 'pvalue']
d['BETA']=np.where(d.REF > d.EFF, -1* d.BETA, d.BETA)
d['EAF']= np.where(d.REF > d.EFF, 1 - d.EAF, d.EAF)
d['CHR']= d['CHR'].astype(str).astype(int)
d['POS']= d['POS'].astype(str).astype(int)
d['pvalue']= d['pvalue'].astype(str).astype(float)
d.loc[d.REF > d.EFF, ['REF', 'EFF']] = d.loc[d.REF > d.EFF, ['EFF', 'REF']].values
d['ID']= d.CHR.astype(int).astype(str) + ':' + d.POS.astype(int).astype(str) + ':' + d.REF + ':' + d.EFF
d= d.loc[((d.pvalue>0) & (d.pvalue <1)), :]
d= pd.merge(d, vep, on= ['ID'], how= 'left')
d.to_csv(snakemake.output[0], header=True, index= False, sep= '\t')
|
# flake8: noqa
# errmsg.h
CR_ERROR_FIRST = 2000
CR_UNKNOWN_ERROR = 2000
CR_SOCKET_CREATE_ERROR = 2001
CR_CONNECTION_ERROR = 2002
CR_CONN_HOST_ERROR = 2003
CR_IPSOCK_ERROR = 2004
CR_UNKNOWN_HOST = 2005
CR_SERVER_GONE_ERROR = 2006
CR_VERSION_ERROR = 2007
CR_OUT_OF_MEMORY = 2008
CR_WRONG_HOST_INFO = 2009
CR_LOCALHOST_CONNECTION = 2010
CR_TCP_CONNECTION = 2011
CR_SERVER_HANDSHAKE_ERR = 2012
CR_SERVER_LOST = 2013
CR_COMMANDS_OUT_OF_SYNC = 2014
CR_NAMEDPIPE_CONNECTION = 2015
CR_NAMEDPIPEWAIT_ERROR = 2016
CR_NAMEDPIPEOPEN_ERROR = 2017
CR_NAMEDPIPESETSTATE_ERROR = 2018
CR_CANT_READ_CHARSET = 2019
CR_NET_PACKET_TOO_LARGE = 2020
CR_EMBEDDED_CONNECTION = 2021
CR_PROBE_SLAVE_STATUS = 2022
CR_PROBE_SLAVE_HOSTS = 2023
CR_PROBE_SLAVE_CONNECT = 2024
CR_PROBE_MASTER_CONNECT = 2025
CR_SSL_CONNECTION_ERROR = 2026
CR_MALFORMED_PACKET = 2027
CR_WRONG_LICENSE = 2028
CR_NULL_POINTER = 2029
CR_NO_PREPARE_STMT = 2030
CR_PARAMS_NOT_BOUND = 2031
CR_DATA_TRUNCATED = 2032
CR_NO_PARAMETERS_EXISTS = 2033
CR_INVALID_PARAMETER_NO = 2034
CR_INVALID_BUFFER_USE = 2035
CR_UNSUPPORTED_PARAM_TYPE = 2036
CR_SHARED_MEMORY_CONNECTION = 2037
CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR = 2038
CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR = 2039
CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR = 2040
CR_SHARED_MEMORY_CONNECT_MAP_ERROR = 2041
CR_SHARED_MEMORY_FILE_MAP_ERROR = 2042
CR_SHARED_MEMORY_MAP_ERROR = 2043
CR_SHARED_MEMORY_EVENT_ERROR = 2044
CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR = 2045
CR_SHARED_MEMORY_CONNECT_SET_ERROR = 2046
CR_CONN_UNKNOW_PROTOCOL = 2047
CR_INVALID_CONN_HANDLE = 2048
CR_SECURE_AUTH = 2049
CR_FETCH_CANCELED = 2050
CR_NO_DATA = 2051
CR_NO_STMT_METADATA = 2052
CR_NO_RESULT_SET = 2053
CR_NOT_IMPLEMENTED = 2054
CR_SERVER_LOST_EXTENDED = 2055
CR_STMT_CLOSED = 2056
CR_NEW_STMT_METADATA = 2057
CR_ALREADY_CONNECTED = 2058
CR_AUTH_PLUGIN_CANNOT_LOAD = 2059
CR_DUPLICATE_CONNECTION_ATTR = 2060
CR_AUTH_PLUGIN_ERR = 2061
CR_INSECURE_API_ERR = 2062
CR_FILE_NAME_TOO_LONG = 2063
CR_SSL_FIPS_MODE_ERR = 2064
CR_DEPRECATED_COMPRESSION_NOT_SUPPORTED = 2065
CR_COMPRESSION_WRONGLY_CONFIGURED = 2066
CR_KERBEROS_USER_NOT_FOUND = 2067
CR_LOAD_DATA_LOCAL_INFILE_REJECTED = 2068
CR_LOAD_DATA_LOCAL_INFILE_REALPATH_FAIL = 2069
CR_DNS_SRV_LOOKUP_FAILED = 2070
CR_MANDATORY_TRACKER_NOT_FOUND = 2071
CR_INVALID_FACTOR_NO = 2072
CR_ERROR_LAST = 2072
|
#ifndef H_DEBUG
#define H_DEBUG
#include "Common.h"
#include "ByteStream.h"
#define SRCFILE __FILE__
#define CODELINE __LINE__
#define DEBUG_MSG 0x0401
class CDebugInfo
{
public:
CDebugInfo(void);
~CDebugInfo(void);
WORD DebugEnable(BYTE byDbg, BYTE byType, DWORD dwLevel, WORD (*pFun)(WORD wCBType, WPARAM wParam, LPARAM lParam));
virtual void DebugEntry(PCSTR lpFileName, int iLine, PCSTR lpStr);
virtual void DebugInfo(PCSTR pSourceFileName, int iLineNo, DWORD dwLevel, PCSTR pFormat, ...);
virtual WORD DebugExit(PCSTR lpFileName, int iLine, PCSTR lpStr, WORD wRet);
virtual WORD DebugRetCode(PCSTR lpFileName, int iLine, PCSTR lpStr, WORD wRet);
virtual void DebugByteStream(PCSTR lpFileName, int iLine, DWORD dwLevel, CByteStream *pCmd, PCSTR pszStr);
virtual void DebugByteStream(PCSTR lpFileName, int iLine, DWORD dwLevel, BYTE *pbyData, int nLen, PCSTR pszStr);
virtual WORD DebugCBRegister(WORD (*pFun)(WORD wCBType, WPARAM wParam, LPARAM lParam));
private:
BYTE m_byDebug;
BYTE m_byDebugType;
DWORD m_dwDebugLevel;
WORD (*pFunCB)(WORD wCBType, WPARAM wParam, LPARAM lParam);
DWORD Hex2ASC(CByteStream *pcSrc, CByteStream &cOut, WORD dwFormat=0);
void GetTime(CByteStream &cTime, PCSTR lpFileName, int iLine);
};
#endif
|
import sys
from unittest import TestCase
from nose.tools import raises
import plotly_study.graph_objs as go
if sys.version_info.major == 3 and sys.version_info.minor >= 3:
from unittest.mock import MagicMock
else:
from mock import MagicMock
class TestOnChangeCallbacks(TestCase):
def setUp(self):
# Construct initial scatter object
self.figure = go.Figure(
data=[
go.Scatter(y=[3, 2, 1], marker={"color": "green"}),
go.Bar(y=[3, 2, 1, 0, -1], marker={"opacity": 0.5}),
],
layout={"xaxis": {"range": [-1, 4]}, "width": 1000},
frames=[go.Frame(layout={"yaxis": {"title": "f1"}})],
)
# on_change validation
# --------------------
@raises(ValueError)
def test_raise_if_no_figure(self):
scatt = go.Scatter()
fn = MagicMock()
scatt.on_change(fn, "x")
@raises(ValueError)
def test_raise_on_frame_hierarchy(self):
fn = MagicMock()
self.figure.frames[0].layout.xaxis.on_change(fn, "range")
@raises(ValueError)
def test_validate_property_path_nested(self):
fn = MagicMock()
self.figure.layout.xaxis.on_change(fn, "bogus")
@raises(ValueError)
def test_validate_property_path_nested(self):
fn = MagicMock()
self.figure.layout.on_change(fn, "xaxis.titlefont.bogus")
# Python triggered changes
# ------------------------
def test_single_prop_callback_on_assignment(self):
# Install callbacks on 'x', and 'y' property of first trace
fn_x = MagicMock()
fn_y = MagicMock()
self.figure.data[0].on_change(fn_x, "x")
self.figure.data[0].on_change(fn_y, "y")
# Setting x and y on second trace does not trigger callback
self.figure.data[1].x = [1, 2, 3]
self.figure.data[1].y = [1, 2, 3]
self.assertFalse(fn_x.called)
self.assertFalse(fn_y.called)
# Set x on first trace
self.figure.data[0].x = [10, 20, 30]
fn_x.assert_called_once_with(self.figure.data[0], (10, 20, 30))
self.assertFalse(fn_y.called)
# Set y on first trace
self.figure.data[0].y = [11, 22, 33]
fn_y.assert_called_once_with(self.figure.data[0], (11, 22, 33))
def test_multi_prop_callback_on_assignment_trace(self):
# Register callback if either 'x' or 'y' changes on first trace
fn = MagicMock()
self.figure.data[0].on_change(fn, "x", "y")
# Perform assignment on one of the properties
self.figure.data[0].x = [11, 22, 33]
# Check function called once with new value of x and old value of y
fn.assert_called_once_with(self.figure.data[0], (11, 22, 33), (3, 2, 1))
def test_multi_prop_callback_on_assignment_layout(self):
fn_range = MagicMock()
# Register callback if either axis range is changed. Both tuple and
# dot syntax are supported for nested properties
self.figure.layout.on_change(fn_range, ("xaxis", "range"), "yaxis.range")
self.figure.layout.xaxis.range = [-10, 10]
fn_range.assert_called_once_with(self.figure.layout, (-10, 10), None)
def test_multi_prop_callback_on_assignment_layout_nested(self):
fn_titlefont = MagicMock()
fn_xaxis = MagicMock()
fn_layout = MagicMock()
# Register callback on change to family property under titlefont
self.figure.layout.xaxis.titlefont.on_change(fn_titlefont, "family")
# Register callback on the range and titlefont.family properties
# under xaxis
self.figure.layout.xaxis.on_change(fn_xaxis, "range", "title.font.family")
# Register callback on xaxis object itself
self.figure.layout.on_change(fn_layout, "xaxis")
# Assign a new xaxis range and titlefont.family
self.figure.layout.xaxis.title.font.family = "courier"
# Check that all callbacks were executed once
fn_titlefont.assert_called_once_with(
self.figure.layout.xaxis.title.font, "courier"
)
fn_xaxis.assert_called_once_with(self.figure.layout.xaxis, (-1, 4), "courier")
fn_layout.assert_called_once_with(
self.figure.layout,
go.layout.XAxis(range=(-1, 4), title={"font": {"family": "courier"}}),
)
def test_prop_callback_nested_arrays(self):
# Initialize updatemenus and buttons
self.figure.layout.updatemenus = [{}, {}, {}]
self.figure.layout.updatemenus[2].buttons = [{}, {}]
self.figure.layout.updatemenus[2].buttons[1].label = "button 1"
self.figure.layout.updatemenus[2].buttons[1].method = "relayout"
# Register method callback
fn_button = MagicMock()
fn_layout = MagicMock()
self.figure.layout.updatemenus[2].buttons[1].on_change(fn_button, "method")
self.figure.layout.on_change(fn_layout, "updatemenus[2].buttons[1].method")
# Update button method
self.figure.layout.updatemenus[2].buttons[1].method = "restyle"
# Check that both callbacks are called once
fn_button.assert_called_once_with(
self.figure.layout.updatemenus[2].buttons[1], "restyle"
)
fn_layout.assert_called_once_with(self.figure.layout, "restyle")
def test_callback_on_update(self):
fn_range = MagicMock()
self.figure.layout.on_change(fn_range, "xaxis.range", "yaxis.range")
self.figure.update({"layout": {"yaxis": {"range": [11, 22]}}})
fn_range.assert_called_once_with(self.figure.layout, (-1, 4), (11, 22))
def test_callback_on_update_single_call(self):
fn_range = MagicMock()
self.figure.layout.on_change(fn_range, "xaxis.range", "yaxis.range", "width")
self.figure.update(
{"layout": {"xaxis": {"range": [-10, 10]}, "yaxis": {"range": [11, 22]}}}
)
# Even though both properties changed, callback should be called
# only once with the new value of both properties
fn_range.assert_called_once_with(self.figure.layout, (-10, 10), (11, 22), 1000)
def test_callback_on_batch_update(self):
fn_range = MagicMock()
self.figure.layout.on_change(fn_range, "xaxis.range", "yaxis.range", "width")
with self.figure.batch_update():
self.figure.layout.xaxis.range = [-10, 10]
self.figure.layout.width = 500
# Check fn not called before context exits
self.assertFalse(fn_range.called)
fn_range.assert_called_once_with(self.figure.layout, (-10, 10), None, 500)
def test_callback_on_batch_animate(self):
fn_range = MagicMock()
self.figure.layout.on_change(fn_range, "xaxis.range", "yaxis.range", "width")
with self.figure.batch_animate():
self.figure["layout.xaxis.range"] = [-10, 10]
self.figure[("layout", "yaxis", "range")] = (11, 22)
# Check fn not called before context exits
self.assertFalse(fn_range.called)
fn_range.assert_called_once_with(self.figure.layout, (-10, 10), (11, 22), 1000)
def test_callback_on_plotly_relayout(self):
fn_range = MagicMock()
self.figure.layout.on_change(fn_range, "xaxis.range", "yaxis.range", "width")
self.figure.plotly_relayout(
relayout_data={"xaxis.range": [-10, 10], "yaxis.range": [11, 22]}
)
fn_range.assert_called_once_with(self.figure.layout, (-10, 10), (11, 22), 1000)
def test_callback_on_plotly_restyle(self):
# Register callback if either 'x' or 'y' changes on first trace
fn = MagicMock()
self.figure.data[0].on_change(fn, "x", "y")
# Perform assignment on one of pthe properties
self.figure.plotly_restyle(
{"x": [[11, 22, 33], [1, 11, 111]]}, trace_indexes=[0, 1]
)
# Check function called once with new value of x and old value of y
fn.assert_called_once_with(self.figure.data[0], (11, 22, 33), (3, 2, 1))
def test_callback_on_plotly_update(self):
fn_range = MagicMock()
self.figure.layout.on_change(fn_range, "xaxis.range", "yaxis.range", "width")
self.figure.plotly_update(
restyle_data={"marker.color": "blue"},
relayout_data={"xaxis.range": [-10, 10], "yaxis.range": [11, 22]},
)
fn_range.assert_called_once_with(self.figure.layout, (-10, 10), (11, 22), 1000)
|
# Generated by Django 3.2.8 on 2021-10-08 23:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Message',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('body', models.TextField(blank=True, max_length=1000, null=True)),
('date', models.DateTimeField(auto_now_add=True)),
('is_read', models.BooleanField(default=False)),
('recipient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='to_user', to=settings.AUTH_USER_MODEL)),
('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='from_user', to=settings.AUTH_USER_MODEL)),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user', to=settings.AUTH_USER_MODEL)),
],
),
]
|
/*-------------------------------------------------------------------------
*
* binary_upgradeall.h
* Functions to dump Oid dispatch commands from pg_dumpall
*
* Portions Copyright 2017 Pivotal Software, Inc.
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* src/bin/pg_dump/binary_upgradeall.h
*
*-------------------------------------------------------------------------
*/
#ifndef BINARY_UPGRADEALL_H
#define BINARY_UPGRADEALL_H
#include <stdio.h>
#include <stdlib.h>
#include "postgres_fe.h"
#include "libpq-fe.h"
#include "libpq/libpq-fs.h"
#define QUERY_ALLOC 8192
#define atooid(x) ((Oid) strtoul((x), NULL, 10))
extern void dumpFilespaceOid(FILE *OPF, PGconn *conn, char *fsname);
extern void dumpTablespaceOid(FILE *OPF, PGconn *conn, char *tsname);
extern void dumpResqueueOid(FILE *OPF, PGconn *conn, int server_version, Oid rqoid, char *rsqname);
extern void dumpRoleOid(FILE *OPF, Oid roleoid, const char *rolename);
extern void dumpDatabaseOid(FILE *OPF, Oid dboid, const char *fdbname);
#endif /* BINARY_UPGRADEALL_H */
|
"""
Rafael Radkowski
Iowa State University
Jan 2017
rafael@iastate.edu
All rights reserved
"""
# Import the failure theory envelopes
from ME325Common.StressCalc import *
## Values, note, the values should be positive
## And all values in kpsi
#-- Material parameters
Sut = 50.0 # kpsi
Suc = 110.0 # kpsi
#-- factor of safety
n = 1.2
#-- Load is unknowns
#-- Dimensions
#dimensions of the first beam
r1 = 1.0 #in
l1 = 8.0 #in
# dimensions of the second beam
r2 = 0.6 #in
l2 = 20.0 #in
# 1. Compute the max. normal stress
# since the load is unknown, we describe the load as function of F.
def sigma_x(F, l, d):
return (F*l*32)/(math.pi * d**3)
# 2. Compute the max. shear stress
def tau_xz(T,d):
return (T * 16)/(math.pi * d**3)
print sigma_x(1,l1,r1*2.0)
print tau_xz(l2,r1*2.0)
# 3. Compute the principle stresses as a factor of F
[s1, s2, a] = PrincipleStress([sigma_x(1,l1,r1*2.0)], [tau_xz(l2,r1*2.0)] ) # x F
print "Principle stresses for s1:", s1, "* F [kpsi] and \ts2: ", s2 ,"* F [kpsi]"
# 4. Compute the missing forces
F1 = 0.0
F2 = 0.0
if s1 > 0.0:
F1 = Sut * 1000.0 / (n * s1)
else:
F1 = -Suc * 1000.0 / (n * s1)
if s2 > 0.0:
F2 = Sut * 1000.0 / (n * s2)
else:
F2 = -Suc * 1000.0 / (n * s2)
# we proceed with the smaller one since the material would fail at the lower falue first.
F = min(F1, F2)
print "The force is F = ", F, " lbf"
#-----------------------------------------------------------------
# For Modified-Mohr and MNST Theory
s1_f = s1 * F / 1000.0
s3_f = s2 * F / 1000.0
print "The final stress is sigma_1 = ", s1_f, "kpsi, and sigma_3 =", s3_f, 'kpsi'
#-----------------------------------------------------------------
# For Coulumb-Mohr Theory
n_cm = brittle_coulumb_fos(s1_f, s3_f, Sut, Suc)
print "Coulumb-Mohr failure theory factor of safety: ", n_cm
print "---------\nCorrecting for Coulumb Mohr theory"
F_cm = 1.0/( n *( (s1/Sut) - (s2/Suc) ) ) * 1000.0 # from psi to kpsi
print "Max. force accoriding to Coulumb-Mohr theory: F=", F_cm, " lbf"
s1_cm = s1 * F_cm / 1000.0
s3_cm = s2 * F_cm / 1000.0
print "The final stresses using CM theory sigma_1 = ", s1_cm, "kpsi, and sigma_3 =", s3_cm, 'kpsi'
#######
# PLOT
fig = plt.figure(figsize=(8, 8))
# Plot the stress point
pl_s, = plt.plot([s1_f], [s3_f], 'ro')
pl_s2, = plt.plot([s1_cm], [s3_cm], 'bo')
# Plot the failure envelopes
plotModMohrFailureTheory(Sut, Suc)
plotCoulumbMohrFailureTheory(Sut, Suc)
plotMaxNormalFailureTheory(Sut, Suc)
# Axis
plt.axis([-120, 120, -120, 120])
plt.ylabel('sigma_3 [kpsi]')
plt.xlabel('sigma_1 [kpsi]')
plt.grid()
plt.show()
|
const fs = require('fs'),
files = process.argv.slice(2),
version = require('../package.json').version
files.forEach((file) => {
let fileContent = fs.readFileSync(file, 'utf-8')
fileContent = fileContent.replace(/{version}/g, version).replace(/{date}/g, new Date().toDateString())
fs.writeFileSync(file, fileContent, 'utf-8')
})
|
/*! elementor - v3.4.3 - 30-08-2021 */
(self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[354],{7914:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},8135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{elements:".elementor-element",nestedDocumentElements:".elementor .elementor-element"},classes:{editMode:"elementor-edit-mode"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$elements:this.$element.find(e.elements).not(this.$element.find(e.nestedDocumentElements))}}getDocumentSettings(e){let t;if(this.isEdit){t={};const e=elementor.settings.page.model;jQuery.each(e.getActiveControls(),(n=>{t[n]=e.attributes[n]}))}else t=this.$element.data("elementor-settings")||{};return this.getItems(t,e)}runElementsHandlers(){this.elements.$elements.each(((e,t)=>elementorFrontend.elementsHandler.runReadyTrigger(t)))}onInit(){this.$element=this.getSettings("$element"),super.onInit(),this.isEdit=this.$element.hasClass(this.getSettings("classes.editMode")),this.isEdit?elementor.on("document:loaded",(()=>{elementor.settings.page.model.on("change",this.onSettingsChange.bind(this))})):this.runElementsHandlers()}onSettingsChange(){}}t.default=_default},2821:(e,t,n)=>{"use strict";var s=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(3090));class SwiperHandlerBase extends i.default{getInitialSlide(){const e=this.getEditSettings();return e.activeItemIndex?e.activeItemIndex-1:0}getSlidesCount(){return this.elements.$slides.length}togglePauseOnHover(e){e?this.elements.$swiperContainer.on({mouseenter:()=>{this.swiper.autoplay.stop()},mouseleave:()=>{this.swiper.autoplay.start()}}):this.elements.$swiperContainer.off("mouseenter mouseleave")}handleKenBurns(){const e=this.getSettings();this.$activeImageBg&&this.$activeImageBg.removeClass(e.classes.kenBurnsActive),this.activeItemIndex=this.swiper?this.swiper.activeIndex:this.getInitialSlide(),this.swiper?this.$activeImageBg=jQuery(this.swiper.slides[this.activeItemIndex]).children("."+e.classes.slideBackground):this.$activeImageBg=jQuery(this.elements.$slides[0]).children("."+e.classes.slideBackground),this.$activeImageBg.addClass(e.classes.kenBurnsActive)}}t.default=SwiperHandlerBase},3090:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({$element:null,editorListeners:null,onElementChange:null,onEditSettingsChange:null,onPageSettingsChange:null,isEdit:null,__construct:function(e){this.isActive(e)&&(this.$element=e.$element,this.isEdit=this.$element.hasClass("elementor-element-edit-mode"),this.isEdit&&this.addEditorListeners())},isActive:function(){return!0},findElement:function(e){var t=this.$element;return t.find(e).filter((function(){return jQuery(this).closest(".elementor-element").is(t)}))},getUniqueHandlerID:function(e,t){return e||(e=this.getModelCID()),t||(t=this.$element),e+t.attr("data-element_type")+this.getConstructorID()},initEditorListeners:function(){var e=this;if(e.editorListeners=[{event:"element:destroy",to:elementor.channels.data,callback:function(t){t.cid===e.getModelCID()&&e.onDestroy()}}],e.onElementChange){const t=e.getWidgetType()||e.getElementType();let n="change";"global"!==t&&(n+=":"+t),e.editorListeners.push({event:n,to:elementor.channels.editor,callback:function(t,n){e.getUniqueHandlerID(n.model.cid,n.$el)===e.getUniqueHandlerID()&&e.onElementChange(t.model.get("name"),t,n)}})}e.onEditSettingsChange&&e.editorListeners.push({event:"change:editSettings",to:elementor.channels.editor,callback:function(t,n){n.model.cid===e.getModelCID()&&e.onEditSettingsChange(Object.keys(t.changed)[0])}}),["page"].forEach((function(t){var n="on"+t[0].toUpperCase()+t.slice(1)+"SettingsChange";e[n]&&e.editorListeners.push({event:"change",to:elementor.settings[t].model,callback:function(t){e[n](t.changed)}})}))},getEditorListeners:function(){return this.editorListeners||this.initEditorListeners(),this.editorListeners},addEditorListeners:function(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach((function(t){elementorFrontend.addListenerOnce(e,t.event,t.callback,t.to)}))},removeEditorListeners:function(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach((function(t){elementorFrontend.removeListeners(e,t.event,null,t.to)}))},getElementType:function(){return this.$element.data("element_type")},getWidgetType:function(){const e=this.$element.data("widget_type");if(e)return e.split(".")[0]},getID:function(){return this.$element.data("id")},getModelCID:function(){return this.$element.data("model-cid")},getElementSettings:function(e){let t={};const n=this.getModelCID();if(this.isEdit&&n){const e=elementorFrontend.config.elements.data[n],s=e.attributes;let i=s.widgetType||s.elType;s.isInner&&(i="inner-"+i);let r=elementorFrontend.config.elements.keys[i];r||(r=elementorFrontend.config.elements.keys[i]=[],jQuery.each(e.controls,((e,t)=>{t.frontend_available&&r.push(e)}))),jQuery.each(e.getActiveControls(),(function(e){if(-1!==r.indexOf(e)){let n=s[e];n.toJSON&&(n=n.toJSON()),t[e]=n}}))}else t=this.$element.data("settings")||{};return this.getItems(t,e)},getEditSettings:function(e){var t={};return this.isEdit&&(t=elementorFrontend.config.elements.editSettings[this.getModelCID()].attributes),this.getItems(t,e)},getCurrentDeviceSetting:function(e){return elementorFrontend.getCurrentDeviceSetting(this.getElementSettings(),e)},onInit:function(){this.isActive(this.getSettings())&&elementorModules.ViewModule.prototype.onInit.apply(this,arguments)},onDestroy:function(){this.isEdit&&this.removeEditorListeners(),this.unbindEvents&&this.unbindEvents()}})},6412:(e,t,n)=>{"use strict";var s=n(7914),i=s(n(5955)),r=s(n(8135)),o=s(n(5658)),l=s(n(3090)),c=s(n(2821));i.default.frontend={Document:r.default,tools:{StretchElement:o.default},handlers:{Base:l.default,SwiperBase:c.default}}},5658:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({getDefaultSettings:function(){return{element:null,direction:elementorFrontend.config.is_rtl?"right":"left",selectors:{container:window}}},getDefaultElements:function(){return{$element:jQuery(this.getSettings("element"))}},stretch:function(){var e,t=this.getSettings("selectors.container");try{e=jQuery(t)}catch(e){}e&&e.length||(e=jQuery(this.getDefaultSettings().selectors.container)),this.reset();var n=this.elements.$element,s=e.innerWidth(),i=n.offset().left,r="fixed"===n.css("position"),o=r?0:i;if(window!==e[0]){var l=e.offset().left;r&&(o=l),i>l&&(o=i-l)}r||(elementorFrontend.config.is_rtl&&(o=s-(n.outerWidth()+o)),o=-o);var c={};c.width=s+"px",c[this.getSettings("direction")]=o+"px",n.css(c)},reset:function(){var e={width:""};e[this.getSettings("direction")]="",this.elements.$element.css(e)}})},2618:(e,t,n)=>{"use strict";var s=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(7597));class ArgsObject extends i.default{static getInstanceType(){return"ArgsObject"}constructor(e){super(),this.args=e}requireArgument(e,t=this.args){if(!t.hasOwnProperty(e))throw Error(`${e} is required.`)}requireArgumentType(e,t,n=this.args){if(this.requireArgument(e,n),typeof n[e]!==t)throw Error(`${e} invalid type: ${t}.`)}requireArgumentInstance(e,t,n=this.args){if(this.requireArgument(e,n),!(n[e]instanceof t))throw Error(`${e} invalid instance.`)}requireArgumentConstructor(e,t,n=this.args){if(this.requireArgument(e,n),n[e].constructor!==t)throw Error(`${e} invalid constructor type.`)}}t.default=ArgsObject},869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ForceMethodImplementation=void 0;class ForceMethodImplementation extends Error{constructor(e={}){super(`${e.isStatic?"static ":""}${e.fullName}() should be implemented, please provide '${e.functionName||e.fullName}' functionality.`),Error.captureStackTrace(this,ForceMethodImplementation)}}t.ForceMethodImplementation=ForceMethodImplementation;t.default=()=>{const e=Error().stack.split("\n")[2].trim(),t=e.startsWith("at new")?"constructor":e.split(" ")[1],n={};if(n.functionName=t,n.fullName=t,n.functionName.includes(".")){const e=n.functionName.split(".");n.className=e[0],n.functionName=e[1]}else n.isStatic=!0;throw new ForceMethodImplementation(n)}},7597:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class InstanceType{static[Symbol.hasInstance](e){let t=super[Symbol.hasInstance](e);if(e&&!e.constructor.getInstanceType)return t;if(e&&(e.instanceTypes||(e.instanceTypes=[]),t||this.getInstanceType()===e.constructor.getInstanceType()&&(t=!0),t)){const t=this.getInstanceType===InstanceType.getInstanceType?"BaseInstanceType":this.getInstanceType();-1===e.instanceTypes.indexOf(t)&&e.instanceTypes.push(t)}return!t&&e&&(t=e.instanceTypes&&Array.isArray(e.instanceTypes)&&-1!==e.instanceTypes.indexOf(this.getInstanceType())),t}constructor(){let e=new.target;const t=[];for(;e.__proto__&&e.__proto__.name;)t.push(e.__proto__),e=e.__proto__;t.reverse().forEach((e=>this instanceof e))}static getInstanceType(){elementorModules.ForceMethodImplementation()}}t.default=InstanceType},1192:e=>{"use strict";const Module=function(){const e=jQuery,t=arguments,n=this,s={};let i;const ensureClosureMethods=function(){e.each(n,(function(e){const t=n[e];"function"==typeof t&&(n[e]=function(){return t.apply(n,arguments)})}))},initSettings=function(){i=n.getDefaultSettings();const s=t[0];s&&e.extend(!0,i,s)},init=function(){n.__construct.apply(n,t),ensureClosureMethods(),initSettings(),n.trigger("init")};this.getItems=function(e,t){if(t){const n=t.split("."),s=n.splice(0,1);if(!n.length)return e[s];if(!e[s])return;return this.getItems(e[s],n.join("."))}return e},this.getSettings=function(e){return this.getItems(i,e)},this.setSettings=function(t,s,r){if(r||(r=i),"object"==typeof t)return e.extend(r,t),n;const o=t.split("."),l=o.splice(0,1);return o.length?(r[l]||(r[l]={}),n.setSettings(o.join("."),s,r[l])):(r[l]=s,n)},this.getErrorMessage=function(e,t){let n;switch(e){case"forceMethodImplementation":n=`The method '${t}' must to be implemented in the inheritor child.`;break;default:n="An error occurs"}return n},this.forceMethodImplementation=function(e){throw new Error(this.getErrorMessage("forceMethodImplementation",e))},this.on=function(t,i){if("object"==typeof t)return e.each(t,(function(e){n.on(e,this)})),n;return t.split(" ").forEach((function(e){s[e]||(s[e]=[]),s[e].push(i)})),n},this.off=function(e,t){if(!s[e])return n;if(!t)return delete s[e],n;const i=s[e].indexOf(t);return-1!==i&&(delete s[e][i],s[e]=s[e].filter((e=>e))),n},this.trigger=function(t){const i="on"+t[0].toUpperCase()+t.slice(1),r=Array.prototype.slice.call(arguments,1);n[i]&&n[i].apply(n,r);const o=s[t];return o?(e.each(o,(function(e,t){t.apply(n,r)})),n):n},init()};Module.prototype.__construct=function(){},Module.prototype.getDefaultSettings=function(){return{}},Module.prototype.getConstructorID=function(){return this.constructor.name},Module.extend=function(e){const t=jQuery,n=this,child=function(){return n.apply(this,arguments)};return t.extend(child,n),(child.prototype=Object.create(t.extend({},n.prototype,e))).constructor=child,child.__super__=n.prototype,child},e.exports=Module},6516:(e,t,n)=>{"use strict";var s=n(7914)(n(2640));e.exports=s.default.extend({getDefaultSettings:function(){return{container:null,items:null,columnsCount:3,verticalSpaceBetween:30}},getDefaultElements:function(){return{$container:jQuery(this.getSettings("container")),$items:jQuery(this.getSettings("items"))}},run:function(){var e=[],t=this.elements.$container.position().top,n=this.getSettings(),s=n.columnsCount;t+=parseInt(this.elements.$container.css("margin-top"),10),this.elements.$items.each((function(i){var r=Math.floor(i/s),o=jQuery(this),l=o[0].getBoundingClientRect().height+n.verticalSpaceBetween;if(r){var c=o.position(),a=i%s,u=c.top-t-e[a];u-=parseInt(o.css("margin-top"),10),u*=-1,o.css("margin-top",u+"px"),e[a]+=l}else e.push(l)}))}})},400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class Scroll{static scrollObserver(e){let t=0;const n={root:e.root||null,rootMargin:e.offset||"0px",threshold:((e=0)=>{const t=[];if(e>0&&e<=100){const n=100/e;for(let e=0;e<=100;e+=n)t.push(e/100)}else t.push(0);return t})(e.sensitivity)};return new IntersectionObserver((function handleIntersect(n,s){const i=n[0].boundingClientRect.y,r=n[0].isIntersecting,o=i<t?"down":"up",l=Math.abs(parseFloat((100*n[0].intersectionRatio).toFixed(2)));e.callback({sensitivity:e.sensitivity,isInViewport:r,scrollPercentage:l,intersectionScrollDirection:o}),t=i}),n)}static getElementViewportPercentage(e,t={}){const n=e[0].getBoundingClientRect(),s=t.start||0,i=t.end||0,r=window.innerHeight*s/100,o=window.innerHeight*i/100,l=n.top-window.innerHeight,c=0-l+r,a=n.top+r+e.height()-l+o,u=Math.max(0,Math.min(c/a,1));return parseFloat((100*u).toFixed(2))}static getPageScrollPercentage(e={},t){const n=e.start||0,s=e.end||0,i=t||document.documentElement.scrollHeight-document.documentElement.clientHeight,r=i*n/100,o=i+r+i*s/100;return(document.documentElement.scrollTop+document.body.scrollTop+r)/o*100}}},2640:(e,t,n)=>{"use strict";var s=n(7914)(n(1192));e.exports=s.default.extend({elements:null,getDefaultElements:function(){return{}},bindEvents:function(){},onInit:function(){this.initElements(),this.bindEvents()},initElements:function(){this.elements=this.getDefaultElements()}})},5955:(e,t,n)=>{"use strict";var s=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(1192)),r=s(n(2640)),o=s(n(2618)),l=s(n(6516)),c=s(n(400)),a=s(n(869)),u=window.elementorModules={Module:i.default,ViewModule:r.default,ArgsObject:o.default,ForceMethodImplementation:a.default,utils:{Masonry:l.default,Scroll:c.default}};t.default=u}},e=>{"use strict";var t;t=6412,e(e.s=t)}]);
|
import torch
from pathlib import Path
from utils import datahandler
from utils.model import createDeepLabv3
from utils.trainer import train_model
import torch.optim as optim
from utils.metrics import Pixel_Accuracy, Mean_Intersection_over_Union
if __name__ == "__main__":
path = r'C:\Users\A60026184\Desktop\ModelB\Data3class'
data_directory = Path(r"C:\Users\A60026184\Desktop\ModelB\Data3class")
print('START Loading model...')
model = createDeepLabv3()
model = model.train()
# Create the experiment directory if not present
exp_directory = Path(r"C:\Users\A60026184\Desktop")
if not exp_directory.exists():
exp_directory.mkdir()
# Specify the loss function
criterion = torch.nn.CrossEntropyLoss(reduction='mean')
# Setup the loss function
optimizer = optim.Adam(model.parameters(), lr=1e-4)
metrics = {'Accuracy': Pixel_Accuracy, 'mIoU': Mean_Intersection_over_Union}
scheduler = optim.lr_scheduler.MultiStepLR(optimizer, (10,25), 0.1)
print('START DataLoader...')
# Create the dataloader
dataloaders = datahandler.get_dataloader_sep_folder(data_directory,
'Images',
'Masks',
2)
print('START Training...')
_ = train_model(model,
criterion,
dataloaders,
optimizer,
scheduler,
bpath=exp_directory,
metrics=metrics,
num_epochs=20)
# Save the trained model
torch.save(model, exp_directory / 'weights.pt')
|
/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{0:function(t,e,n){"use strict";n.d(e,"Z",(function(){return m})),n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return w})),n.d(e,"c",(function(){return O})),n.d(e,"d",(function(){return k})),n.d(e,"e",(function(){return S})),n.d(e,"f",(function(){return j})),n.d(e,"g",(function(){return _})),n.d(e,"h",(function(){return x})),n.d(e,"i",(function(){return T})),n.d(e,"j",(function(){return B})),n.d(e,"k",(function(){return C})),n.d(e,"l",(function(){return P})),n.d(e,"m",(function(){return M})),n.d(e,"n",(function(){return E})),n.d(e,"o",(function(){return A})),n.d(e,"p",(function(){return z})),n.d(e,"q",(function(){return D})),n.d(e,"r",(function(){return L})),n.d(e,"s",(function(){return I})),n.d(e,"t",(function(){return N})),n.d(e,"u",(function(){return H})),n.d(e,"v",(function(){return V})),n.d(e,"w",(function(){return F})),n.d(e,"x",(function(){return R})),n.d(e,"y",(function(){return $})),n.d(e,"z",(function(){return U})),n.d(e,"A",(function(){return Y})),n.d(e,"B",(function(){return W})),n.d(e,"C",(function(){return G})),n.d(e,"D",(function(){return K})),n.d(e,"E",(function(){return Z})),n.d(e,"F",(function(){return X})),n.d(e,"G",(function(){return J})),n.d(e,"H",(function(){return Q})),n.d(e,"I",(function(){return tt})),n.d(e,"J",(function(){return et})),n.d(e,"K",(function(){return nt})),n.d(e,"L",(function(){return ot})),n.d(e,"M",(function(){return it})),n.d(e,"N",(function(){return at})),n.d(e,"O",(function(){return lt})),n.d(e,"P",(function(){return st})),n.d(e,"Q",(function(){return ct})),n.d(e,"R",(function(){return ut})),n.d(e,"S",(function(){return ft})),n.d(e,"T",(function(){return ht})),n.d(e,"U",(function(){return pt})),n.d(e,"V",(function(){return bt})),n.d(e,"W",(function(){return vt})),n.d(e,"X",(function(){return mt})),n.d(e,"Y",(function(){return gt})),n.d(e,"ab",(function(){return yt})),n.d(e,"bb",(function(){return wt})),n.d(e,"cb",(function(){return Ot})),n.d(e,"db",(function(){return kt})),n.d(e,"eb",(function(){return St})),n.d(e,"fb",(function(){return jt})),n.d(e,"gb",(function(){return _t})),n.d(e,"hb",(function(){return xt})),n.d(e,"ib",(function(){return Tt})),n.d(e,"jb",(function(){return Bt})),n.d(e,"kb",(function(){return Ct})),n.d(e,"lb",(function(){return Pt})),n.d(e,"mb",(function(){return Mt})),n.d(e,"nb",(function(){return qt})),n.d(e,"ob",(function(){return Et})),n.d(e,"pb",(function(){return At})),n.d(e,"qb",(function(){return zt})),n.d(e,"rb",(function(){return Dt})),n.d(e,"sb",(function(){return Lt})),n.d(e,"tb",(function(){return It})),n.d(e,"ub",(function(){return Nt})),n.d(e,"vb",(function(){return Ht})),n.d(e,"wb",(function(){return Vt})),n.d(e,"xb",(function(){return Ft})),n.d(e,"yb",(function(){return Rt})),n.d(e,"zb",(function(){return $t})),n.d(e,"Ab",(function(){return Ut})),n.d(e,"Bb",(function(){return Yt})),n.d(e,"Cb",(function(){return Wt})),n.d(e,"Db",(function(){return Gt})),n.d(e,"Eb",(function(){return Kt})),n.d(e,"Fb",(function(){return Zt})),n.d(e,"Gb",(function(){return Xt})),n.d(e,"Hb",(function(){return Jt})),n.d(e,"Ib",(function(){return Qt})),n.d(e,"Jb",(function(){return te})),n.d(e,"Kb",(function(){return ee})),n.d(e,"Lb",(function(){return ne})),n.d(e,"Mb",(function(){return re})),n.d(e,"Nb",(function(){return oe})),n.d(e,"Ob",(function(){return ie})),n.d(e,"Pb",(function(){return ae})),n.d(e,"Qb",(function(){return le})),n.d(e,"Rb",(function(){return se})),n.d(e,"Sb",(function(){return ce})),n.d(e,"Tb",(function(){return ue})),n.d(e,"Ub",(function(){return de})),n.d(e,"Vb",(function(){return fe})),n.d(e,"Wb",(function(){return he})),n.d(e,"Xb",(function(){return pe})),n.d(e,"Yb",(function(){return be})),n.d(e,"Zb",(function(){return ve})),n.d(e,"ac",(function(){return me})),n.d(e,"bc",(function(){return ge})),n.d(e,"cc",(function(){return ye})),n.d(e,"dc",(function(){return we})),n.d(e,"ec",(function(){return Oe})),n.d(e,"fc",(function(){return ke})),n.d(e,"gc",(function(){return Se})),n.d(e,"hc",(function(){return je})),n.d(e,"ic",(function(){return _e})),n.d(e,"jc",(function(){return xe})),n.d(e,"kc",(function(){return Te})),n.d(e,"lc",(function(){return Be})),n.d(e,"mc",(function(){return Ce})),n.d(e,"nc",(function(){return Pe})),n.d(e,"oc",(function(){return Me})),n.d(e,"pc",(function(){return qe})),n.d(e,"qc",(function(){return Ee})),n.d(e,"rc",(function(){return Ae})),n.d(e,"sc",(function(){return ze})),n.d(e,"tc",(function(){return De})),n.d(e,"uc",(function(){return Le})),n.d(e,"vc",(function(){return Ie})),n.d(e,"wc",(function(){return Ne})),n.d(e,"xc",(function(){return He})),n.d(e,"yc",(function(){return Ve})),n.d(e,"zc",(function(){return Fe})),n.d(e,"Ac",(function(){return Re})),n.d(e,"Bc",(function(){return $e})),n.d(e,"Cc",(function(){return Ue})),n.d(e,"Dc",(function(){return Ye})),n.d(e,"Ec",(function(){return We})),n.d(e,"Fc",(function(){return Ge})),n.d(e,"Gc",(function(){return Ke})),n.d(e,"Hc",(function(){return Ze})),n.d(e,"Ic",(function(){return Xe})),n.d(e,"Jc",(function(){return Je})),n.d(e,"Kc",(function(){return Qe})),n.d(e,"Lc",(function(){return tn})),n.d(e,"Mc",(function(){return en})),n.d(e,"Nc",(function(){return nn})),n.d(e,"Oc",(function(){return rn})),n.d(e,"Pc",(function(){return on})),n.d(e,"Qc",(function(){return an})),n.d(e,"Rc",(function(){return ln})),n.d(e,"Sc",(function(){return sn})),n.d(e,"Tc",(function(){return cn})),n.d(e,"Uc",(function(){return un})),n.d(e,"Vc",(function(){return dn})),n.d(e,"Wc",(function(){return fn})),n.d(e,"Xc",(function(){return hn})),n.d(e,"Yc",(function(){return pn})),n.d(e,"Zc",(function(){return bn})),n.d(e,"ad",(function(){return vn})),n.d(e,"bd",(function(){return mn})),n.d(e,"cd",(function(){return gn})),n.d(e,"dd",(function(){return yn})),n.d(e,"ed",(function(){return wn})),n.d(e,"fd",(function(){return On})),n.d(e,"gd",(function(){return kn})),n.d(e,"hd",(function(){return Sn})),n.d(e,"id",(function(){return jn})),n.d(e,"jd",(function(){return _n})),n.d(e,"kd",(function(){return xn})),n.d(e,"ld",(function(){return Tn})),n.d(e,"md",(function(){return Bn})),n.d(e,"nd",(function(){return Cn})),n.d(e,"od",(function(){return Pn})),n.d(e,"pd",(function(){return Mn})),n.d(e,"qd",(function(){return qn})),n.d(e,"rd",(function(){return En})),n.d(e,"sd",(function(){return An})),n.d(e,"td",(function(){return zn})),n.d(e,"ud",(function(){return Dn})),n.d(e,"vd",(function(){return Ln})),n.d(e,"wd",(function(){return In})),n.d(e,"xd",(function(){return Nn})),n.d(e,"yd",(function(){return Hn})),n.d(e,"zd",(function(){return Vn})),n.d(e,"Ad",(function(){return Fn})),n.d(e,"Bd",(function(){return Rn})),n.d(e,"Cd",(function(){return $n})),n.d(e,"Dd",(function(){return Un})),n.d(e,"Ed",(function(){return Yn})),n.d(e,"Fd",(function(){return Wn})),n.d(e,"Gd",(function(){return Gn})),n.d(e,"Hd",(function(){return Kn})),n.d(e,"Id",(function(){return Zn})),n.d(e,"Jd",(function(){return Xn})),n.d(e,"Kd",(function(){return Jn})),n.d(e,"Ld",(function(){return Qn})),n.d(e,"Md",(function(){return er})),n.d(e,"Nd",(function(){return nr})),n.d(e,"Od",(function(){return rr})),n.d(e,"Pd",(function(){return or})),n.d(e,"Qd",(function(){return ir})),n.d(e,"Rd",(function(){return ar})),n.d(e,"Sd",(function(){return lr})),n.d(e,"Td",(function(){return sr})),n.d(e,"Ud",(function(){return cr})),n.d(e,"Vd",(function(){return ur})),n.d(e,"Wd",(function(){return dr})),n.d(e,"Xd",(function(){return fr})),n.d(e,"Yd",(function(){return pr})),n.d(e,"Zd",(function(){return vr})),n.d(e,"ae",(function(){return mr})),n.d(e,"be",(function(){return gr})),n.d(e,"ce",(function(){return yr})),n.d(e,"de",(function(){return wr})),n.d(e,"ee",(function(){return Or})),n.d(e,"fe",(function(){return kr})),n.d(e,"ge",(function(){return Sr})),n.d(e,"he",(function(){return jr})),n.d(e,"ie",(function(){return _r})),n.d(e,"je",(function(){return xr})),n.d(e,"ke",(function(){return Tr})),n.d(e,"le",(function(){return Br})),n.d(e,"me",(function(){return Cr})),n.d(e,"ne",(function(){return Pr})),n.d(e,"oe",(function(){return Mr})),n.d(e,"pe",(function(){return qr})),n.d(e,"qe",(function(){return Er})),n.d(e,"re",(function(){return Ar})),n.d(e,"se",(function(){return zr})),n.d(e,"te",(function(){return Dr})),n.d(e,"ue",(function(){return Lr})),n.d(e,"ve",(function(){return Ir})),n.d(e,"we",(function(){return Nr})),n.d(e,"xe",(function(){return Hr})),n.d(e,"ye",(function(){return Vr})),n.d(e,"ze",(function(){return Fr})),n.d(e,"Ae",(function(){return Rr})),n.d(e,"Be",(function(){return $r})),n.d(e,"Ce",(function(){return Ur})),n.d(e,"De",(function(){return Yr})),n.d(e,"Ee",(function(){return Wr})),n.d(e,"Fe",(function(){return Gr})),n.d(e,"Ge",(function(){return Kr})),n.d(e,"He",(function(){return Zr})),n.d(e,"Ie",(function(){return Xr})),n.d(e,"Je",(function(){return Jr})),n.d(e,"Ke",(function(){return Qr})),n.d(e,"Le",(function(){return to})),n.d(e,"Me",(function(){return eo})),n.d(e,"Ne",(function(){return no})),n.d(e,"Oe",(function(){return ro})),n.d(e,"Pe",(function(){return oo})),n.d(e,"Qe",(function(){return io})),n.d(e,"Re",(function(){return ao})),n.d(e,"Se",(function(){return lo})),n.d(e,"Te",(function(){return so})),n.d(e,"Ue",(function(){return co})),n.d(e,"Ve",(function(){return uo})),n.d(e,"We",(function(){return fo})),n.d(e,"Xe",(function(){return ho})),n.d(e,"Ye",(function(){return po})),n.d(e,"Ze",(function(){return bo})),n.d(e,"af",(function(){return vo})),n.d(e,"bf",(function(){return mo})),n.d(e,"cf",(function(){return go})),n.d(e,"df",(function(){return yo})),n.d(e,"ef",(function(){return wo})),n.d(e,"ff",(function(){return Oo})),n.d(e,"gf",(function(){return ko})),n.d(e,"hf",(function(){return So})),n.d(e,"if",(function(){return jo})),n.d(e,"jf",(function(){return _o})),n.d(e,"kf",(function(){return xo})),n.d(e,"lf",(function(){return To})),n.d(e,"mf",(function(){return Bo})),n.d(e,"nf",(function(){return Co})),n.d(e,"of",(function(){return Po})),n.d(e,"pf",(function(){return Mo})),n.d(e,"qf",(function(){return qo})),n.d(e,"rf",(function(){return Eo})),n.d(e,"sf",(function(){return Ao})),n.d(e,"tf",(function(){return zo})),n.d(e,"uf",(function(){return Do})),n.d(e,"vf",(function(){return Lo})),n.d(e,"wf",(function(){return Io})),n.d(e,"xf",(function(){return No})),n.d(e,"yf",(function(){return Ho})),n.d(e,"zf",(function(){return Vo})),n.d(e,"Af",(function(){return Fo})),n.d(e,"Bf",(function(){return Ro})),n.d(e,"Cf",(function(){return $o})),n.d(e,"Df",(function(){return Uo})),n.d(e,"Ef",(function(){return Yo})),n.d(e,"Ff",(function(){return Wo})),n.d(e,"Gf",(function(){return Go})),n.d(e,"Hf",(function(){return Ko})),n.d(e,"If",(function(){return Zo})),n.d(e,"Jf",(function(){return Xo})),n.d(e,"Kf",(function(){return Jo})),n.d(e,"Lf",(function(){return Qo})),n.d(e,"Mf",(function(){return ti})),n.d(e,"Nf",(function(){return ei})),n.d(e,"Of",(function(){return ni})),n.d(e,"Pf",(function(){return ri})),n.d(e,"Qf",(function(){return oi})),n.d(e,"Rf",(function(){return ii})),n.d(e,"Sf",(function(){return ai})),n.d(e,"Tf",(function(){return si})),n.d(e,"Uf",(function(){return ci})),n.d(e,"Vf",(function(){return ui})),n.d(e,"Wf",(function(){return di})),n.d(e,"Xf",(function(){return fi})),n.d(e,"Yf",(function(){return hi})),n.d(e,"Zf",(function(){return pi})),n.d(e,"ag",(function(){return bi})),n.d(e,"bg",(function(){return vi})),n.d(e,"cg",(function(){return mi})),n.d(e,"dg",(function(){return gi}));n(14),n(10),n(11),n(9),n(12);var r=n(2),o=n(3),l=n(7),c=n(8),d=n(58);function f(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function h(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var v=function(t,content){var e="BIcon".concat(Object(c.e)(t)),n="bi-".concat(Object(c.b)(t)),r=Object(c.g)(content||"");return o.a.extend({name:e,functional:!0,props:h({},d.b,{stacked:{type:Boolean,default:!1}}),render:function(t,e){var data=e.data,o=e.props;return t(d.a,Object(l.a)(data,{staticClass:n,props:h({},o,{content:r})}))}})},m=v("Blank",""),y=v("Alarm",'<path fill-rule="evenodd" d="M10 17a6 6 0 100-12 6 6 0 000 12zm0 1a7 7 0 100-14 7 7 0 000 14z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 6.5a.5.5 0 01.5.5v4a.5.5 0 01-.053.224l-1.5 3a.5.5 0 11-.894-.448L9.5 10.882V7a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path d="M2.86 7.387A2.5 2.5 0 116.387 3.86 8.035 8.035 0 002.86 7.387zM13.613 3.86a2.5 2.5 0 113.527 3.527 8.035 8.035 0 00-3.527-3.527z"/><path fill-rule="evenodd" d="M13.646 16.146a.5.5 0 01.708 0l1 1a.5.5 0 01-.708.708l-1-1a.5.5 0 010-.708zm-7.292 0a.5.5 0 00-.708 0l-1 1a.5.5 0 00.708.708l1-1a.5.5 0 000-.708zM7.5 2.5A.5.5 0 018 2h4a.5.5 0 010 1H8a.5.5 0 01-.5-.5z" clip-rule="evenodd"/><path d="M9 3h2v2H9V3z"/>'),w=v("AlarmFill",'<path fill-rule="evenodd" d="M7.5 2.5A.5.5 0 018 2h4a.5.5 0 010 1h-1v1.07a7.002 7.002 0 013.537 12.26l.817.816a.5.5 0 01-.708.708l-.924-.925A6.967 6.967 0 0110 18a6.967 6.967 0 01-3.722-1.07l-.924.924a.5.5 0 01-.708-.708l.817-.816A7.002 7.002 0 019 4.07V3H8a.5.5 0 01-.5-.5zM2.86 7.387A2.5 2.5 0 116.387 3.86 8.035 8.035 0 002.86 7.387zM15.5 3c-.753 0-1.429.333-1.887.86a8.035 8.035 0 013.527 3.527A2.5 2.5 0 0015.5 3zm-5 4a.5.5 0 00-1 0v3.882l-1.447 2.894a.5.5 0 10.894.448l1.5-3A.5.5 0 0010.5 11V7z" clip-rule="evenodd"/>'),O=v("AlertCircle",'<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm0 1a8 8 0 100-16 8 8 0 000 16z" clip-rule="evenodd"/><path d="M9.002 13a1 1 0 112 0 1 1 0 01-2 0zM9.1 6.995a.905.905 0 111.8 0l-.35 3.507a.553.553 0 01-1.1 0L9.1 6.995z"/>'),k=v("AlertCircleFill",'<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8.998 3a1 1 0 112 0 1 1 0 01-2 0zM10 6a.905.905 0 00-.9.995l.35 3.507a.553.553 0 001.1 0l.35-3.507A.905.905 0 0010 6z" clip-rule="evenodd"/>'),S=v("AlertOctagon",'<path fill-rule="evenodd" d="M6.54 2.146A.5.5 0 016.893 2h6.214a.5.5 0 01.353.146l4.394 4.394a.5.5 0 01.146.353v6.214a.5.5 0 01-.146.353l-4.394 4.394a.5.5 0 01-.353.146H6.893a.5.5 0 01-.353-.146L2.146 13.46A.5.5 0 012 13.107V6.893a.5.5 0 01.146-.353L6.54 2.146zM7.1 3L3 7.1v5.8L7.1 17h5.8l4.1-4.1V7.1L12.9 3H7.1z" clip-rule="evenodd"/><rect width="2" height="2" x="9.002" y="12" rx="1"/><path d="M9.1 6.995a.905.905 0 111.8 0l-.35 3.507a.553.553 0 01-1.1 0L9.1 6.995z"/>'),j=v("AlertOctagonFill",'<path fill-rule="evenodd" d="M13.107 2a.5.5 0 01.353.146l4.394 4.394a.5.5 0 01.146.353v6.214a.5.5 0 01-.146.353l-4.394 4.394a.5.5 0 01-.353.146H6.893a.5.5 0 01-.353-.146L2.146 13.46A.5.5 0 012 13.107V6.893a.5.5 0 01.146-.353L6.54 2.146A.5.5 0 016.893 2h6.214zM9.002 13a1 1 0 112 0 1 1 0 01-2 0zM10 6a.905.905 0 00-.9.995l.35 3.507a.553.553 0 001.1 0l.35-3.507A.905.905 0 0010 6z" clip-rule="evenodd"/>'),_=v("AlertSquare",'<path fill-rule="evenodd" d="M16 3H4a1 1 0 00-1 1v12a1 1 0 001 1h12a1 1 0 001-1V4a1 1 0 00-1-1zM4 2a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V4a2 2 0 00-2-2H4z" clip-rule="evenodd"/><rect width="2" height="2" x="9.002" y="12" rx="1"/><path d="M9.1 6.995a.905.905 0 111.8 0l-.35 3.507a.553.553 0 01-1.1 0L9.1 6.995z"/>'),x=v("AlertSquareFill",'<path fill-rule="evenodd" d="M2 4a2 2 0 012-2h12a2 2 0 012 2v12a2 2 0 01-2 2H4a2 2 0 01-2-2V4zm7.002 9a1 1 0 112 0 1 1 0 01-2 0zM10 6a.905.905 0 00-.9.995l.35 3.507a.553.553 0 001.1 0l.35-3.507A.905.905 0 0010 6z" clip-rule="evenodd"/>'),T=v("AlertTriangle",'<path fill-rule="evenodd" d="M9.938 4.016a.146.146 0 00-.054.057L3.027 15.74a.176.176 0 00-.002.183c.016.03.037.05.054.06.015.01.034.017.066.017h13.713a.12.12 0 00.066-.017.163.163 0 00.055-.06.176.176 0 00-.003-.183L10.12 4.073a.146.146 0 00-.054-.057.13.13 0 00-.063-.016.13.13 0 00-.064.016zm1.043-.45a1.13 1.13 0 00-1.96 0L2.166 15.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L10.982 3.566z" clip-rule="evenodd"/><rect width="2" height="2" x="9.002" y="13" rx="1"/><path d="M9.1 7.995a.905.905 0 111.8 0l-.35 3.507a.553.553 0 01-1.1 0L9.1 7.995z"/>'),B=v("AlertTriangleFill",'<path fill-rule="evenodd" d="M9.022 3.566a1.13 1.13 0 011.96 0l6.857 11.667c.457.778-.092 1.767-.98 1.767H3.144c-.889 0-1.437-.99-.98-1.767L9.022 3.566zM9.002 14a1 1 0 112 0 1 1 0 01-2 0zM10 7a.905.905 0 00-.9.995l.35 3.507a.553.553 0 001.1 0l.35-3.507A.905.905 0 0010 7z" clip-rule="evenodd"/>'),C=v("Archive",'<path fill-rule="evenodd" d="M4 7v7.5c0 .864.642 1.5 1.357 1.5h9.286c.715 0 1.357-.636 1.357-1.5V7h1v7.5c0 1.345-1.021 2.5-2.357 2.5H5.357C4.021 17 3 15.845 3 14.5V7h1z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M7.5 9.5A.5.5 0 018 9h4a.5.5 0 010 1H8a.5.5 0 01-.5-.5zM17 4H3v2h14V4zM3 3a1 1 0 00-1 1v2a1 1 0 001 1h14a1 1 0 001-1V4a1 1 0 00-1-1H3z" clip-rule="evenodd"/>'),P=v("ArchiveFill",'<path fill-rule="evenodd" d="M14.643 17C15.979 17 17 15.845 17 14.5V7H3v7.5C3 15.845 4.021 17 5.357 17h9.286zM8 9a.5.5 0 000 1h4a.5.5 0 000-1H8zM3 3a1 1 0 00-1 1v1.5a1 1 0 001 1h14a1 1 0 001-1V4a1 1 0 00-1-1H3z" clip-rule="evenodd"/>'),M=v("ArrowBarBottom",'<path fill-rule="evenodd" d="M13.354 12.146a.5.5 0 010 .708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 01.708-.708L10 14.793l2.646-2.647a.5.5 0 01.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 8a.5.5 0 01.5.5V15a.5.5 0 01-1 0V8.5A.5.5 0 0110 8zM4 5.75a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),E=v("ArrowBarLeft",'<path fill-rule="evenodd" d="M7.854 6.646a.5.5 0 00-.708 0l-3 3a.5.5 0 000 .708l3 3a.5.5 0 00.708-.708L5.207 10l2.647-2.646a.5.5 0 000-.708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12 10a.5.5 0 00-.5-.5H5a.5.5 0 000 1h6.5a.5.5 0 00.5-.5zm2.5 6a.5.5 0 01-.5-.5v-11a.5.5 0 011 0v11a.5.5 0 01-.5.5z" clip-rule="evenodd"/>'),A=v("ArrowBarRight",'<path fill-rule="evenodd" d="M12.146 6.646a.5.5 0 01.708 0l3 3a.5.5 0 010 .708l-3 3a.5.5 0 01-.708-.708L14.793 10l-2.647-2.646a.5.5 0 010-.708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M8 10a.5.5 0 01.5-.5H15a.5.5 0 010 1H8.5A.5.5 0 018 10zm-2.5 6a.5.5 0 01-.5-.5v-11a.5.5 0 011 0v11a.5.5 0 01-.5.5z" clip-rule="evenodd"/>'),z=v("ArrowBarUp",'<path fill-rule="evenodd" d="M13.354 7.854a.5.5 0 000-.708l-3-3a.5.5 0 00-.708 0l-3 3a.5.5 0 10.708.708L10 5.207l2.646 2.647a.5.5 0 00.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 12a.5.5 0 00.5-.5V5a.5.5 0 00-1 0v6.5a.5.5 0 00.5.5zm-6 2.75a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),D=v("ArrowClockwise",'<path fill-rule="evenodd" d="M10 4.5a5.5 5.5 0 105.5 5.5.5.5 0 011 0 6.5 6.5 0 11-3.25-5.63l-.5.865A5.472 5.472 0 0010 4.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10.646 1.646a.5.5 0 01.708 0l2.5 2.5a.5.5 0 010 .708l-2.5 2.5a.5.5 0 01-.708-.708L12.793 4.5l-2.147-2.146a.5.5 0 010-.708z" clip-rule="evenodd"/>'),L=v("ArrowCounterclockwise",'<path fill-rule="evenodd" d="M10 4.5A5.5 5.5 0 114.5 10a.5.5 0 00-1 0 6.5 6.5 0 103.25-5.63l.5.865A5.472 5.472 0 0110 4.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M9.354 1.646a.5.5 0 00-.708 0l-2.5 2.5a.5.5 0 000 .708l2.5 2.5a.5.5 0 10.708-.708L7.207 4.5l2.147-2.146a.5.5 0 000-.708z" clip-rule="evenodd"/>'),I=v("ArrowDown",'<path fill-rule="evenodd" d="M6.646 11.646a.5.5 0 01.708 0L10 14.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 4.5a.5.5 0 01.5.5v9a.5.5 0 01-1 0V5a.5.5 0 01.5-.5z" clip-rule="evenodd"/>'),N=v("ArrowDownLeft",'<path fill-rule="evenodd" d="M5 9.5a.5.5 0 01.5.5v4.5H10a.5.5 0 010 1H5a.5.5 0 01-.5-.5v-5a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M14.354 5.646a.5.5 0 010 .708l-9 9a.5.5 0 01-.708-.708l9-9a.5.5 0 01.708 0z" clip-rule="evenodd"/>'),H=v("ArrowDownRight",'<path fill-rule="evenodd" d="M14 9.5a.5.5 0 01.5.5v5a.5.5 0 01-.5.5H9a.5.5 0 010-1h4.5V10a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4.646 5.646a.5.5 0 01.708 0l9 9a.5.5 0 01-.708.708l-9-9a.5.5 0 010-.708z" clip-rule="evenodd"/>'),V=v("ArrowDownShort",'<path fill-rule="evenodd" d="M6.646 9.646a.5.5 0 01.708 0L10 12.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 6.5a.5.5 0 01.5.5v5a.5.5 0 01-1 0V7a.5.5 0 01.5-.5z" clip-rule="evenodd"/>'),F=v("ArrowLeft",'<path fill-rule="evenodd" d="M7.854 6.646a.5.5 0 010 .708L5.207 10l2.647 2.646a.5.5 0 01-.708.708l-3-3a.5.5 0 010-.708l3-3a.5.5 0 01.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4.5 10a.5.5 0 01.5-.5h10.5a.5.5 0 010 1H5a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),R=v("ArrowLeftRight",'<path fill-rule="evenodd" d="M12.146 9.646a.5.5 0 01.708 0l3 3a.5.5 0 010 .708l-3 3a.5.5 0 01-.708-.708L14.793 13l-2.647-2.646a.5.5 0 010-.708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4 13a.5.5 0 01.5-.5H15a.5.5 0 010 1H4.5A.5.5 0 014 13zm3.854-9.354a.5.5 0 010 .708L5.207 7l2.647 2.646a.5.5 0 01-.708.708l-3-3a.5.5 0 010-.708l3-3a.5.5 0 01.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4.5 7a.5.5 0 01.5-.5h10.5a.5.5 0 010 1H5a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),$=v("ArrowLeftShort",'<path fill-rule="evenodd" d="M9.854 6.646a.5.5 0 010 .708L7.207 10l2.647 2.646a.5.5 0 01-.708.708l-3-3a.5.5 0 010-.708l3-3a.5.5 0 01.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M6.5 10a.5.5 0 01.5-.5h6.5a.5.5 0 010 1H7a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),U=v("ArrowRepeat",'<path fill-rule="evenodd" d="M4 9.5a.5.5 0 00-.5.5 6.5 6.5 0 0012.13 3.25.5.5 0 00-.866-.5A5.5 5.5 0 014.5 10a.5.5 0 00-.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4.354 9.146a.5.5 0 00-.708 0l-2 2a.5.5 0 00.708.708L4 10.207l1.646 1.647a.5.5 0 00.708-.708l-2-2zM15.947 10.5a.5.5 0 00.5-.5 6.5 6.5 0 00-12.13-3.25.5.5 0 10.866.5A5.5 5.5 0 0115.448 10a.5.5 0 00.5.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M18.354 8.146a.5.5 0 00-.708 0L16 9.793l-1.646-1.647a.5.5 0 00-.708.708l2 2a.5.5 0 00.708 0l2-2a.5.5 0 000-.708z" clip-rule="evenodd"/>'),Y=v("ArrowRight",'<path fill-rule="evenodd" d="M12.146 6.646a.5.5 0 01.708 0l3 3a.5.5 0 010 .708l-3 3a.5.5 0 01-.708-.708L14.793 10l-2.647-2.646a.5.5 0 010-.708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4 10a.5.5 0 01.5-.5H15a.5.5 0 010 1H4.5A.5.5 0 014 10z" clip-rule="evenodd"/>'),W=v("ArrowRightShort",'<path fill-rule="evenodd" d="M10.146 6.646a.5.5 0 01.708 0l3 3a.5.5 0 010 .708l-3 3a.5.5 0 01-.708-.708L12.793 10l-2.647-2.646a.5.5 0 010-.708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M6 10a.5.5 0 01.5-.5H13a.5.5 0 010 1H6.5A.5.5 0 016 10z" clip-rule="evenodd"/>'),G=v("ArrowUp",'<path fill-rule="evenodd" d="M10 5.5a.5.5 0 01.5.5v9a.5.5 0 01-1 0V6a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M9.646 4.646a.5.5 0 01.708 0l3 3a.5.5 0 01-.708.708L10 5.707 7.354 8.354a.5.5 0 11-.708-.708l3-3z" clip-rule="evenodd"/>'),K=v("ArrowUpDown",'<path fill-rule="evenodd" d="M13 5.5a.5.5 0 01.5.5v9a.5.5 0 01-1 0V6a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12.646 4.646a.5.5 0 01.708 0l3 3a.5.5 0 01-.708.708L13 5.707l-2.646 2.647a.5.5 0 01-.708-.708l3-3zm-9 7a.5.5 0 01.708 0L7 14.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M7 4.5a.5.5 0 01.5.5v9a.5.5 0 01-1 0V5a.5.5 0 01.5-.5z" clip-rule="evenodd"/>'),Z=v("ArrowUpLeft",'<path fill-rule="evenodd" d="M4.5 6a.5.5 0 01.5-.5h5a.5.5 0 010 1H5.5V11a.5.5 0 01-1 0V6z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4.646 5.646a.5.5 0 01.708 0l9 9a.5.5 0 01-.708.708l-9-9a.5.5 0 010-.708z" clip-rule="evenodd"/>'),X=v("ArrowUpRight",'<path fill-rule="evenodd" d="M8.5 6a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v5a.5.5 0 01-1 0V6.5H9a.5.5 0 01-.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M14.354 5.646a.5.5 0 010 .708l-9 9a.5.5 0 01-.708-.708l9-9a.5.5 0 01.708 0z" clip-rule="evenodd"/>'),J=v("ArrowUpShort",'<path fill-rule="evenodd" d="M10 7.5a.5.5 0 01.5.5v5a.5.5 0 01-1 0V8a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M9.646 6.646a.5.5 0 01.708 0l3 3a.5.5 0 01-.708.708L10 7.707l-2.646 2.647a.5.5 0 01-.708-.708l3-3z" clip-rule="evenodd"/>'),Q=v("ArrowsAngleContract",'<path fill-rule="evenodd" d="M11.5 4.036a.5.5 0 01.5.5v3.5h3.5a.5.5 0 010 1h-4a.5.5 0 01-.5-.5v-4a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M16.354 3.646a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708-.708l4.5-4.5a.5.5 0 01.708 0zm-7.5 7.5a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708-.708l4.5-4.5a.5.5 0 01.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4.036 11.5a.5.5 0 01.5-.5h4a.5.5 0 01.5.5v4a.5.5 0 01-1 0V12h-3.5a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),tt=v("ArrowsAngleExpand",'<path fill-rule="evenodd" d="M4 11.5a.5.5 0 01.5.5v3.5H8a.5.5 0 010 1H4a.5.5 0 01-.5-.5v-4a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M8.854 11.11a.5.5 0 010 .708l-4.5 4.5a.5.5 0 11-.708-.707l4.5-4.5a.5.5 0 01.708 0zm7.464-7.464a.5.5 0 010 .708l-4.5 4.5a.5.5 0 11-.707-.708l4.5-4.5a.5.5 0 01.707 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M11.5 4a.5.5 0 01.5-.5h4a.5.5 0 01.5.5v4a.5.5 0 01-1 0V4.5H12a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),et=v("ArrowsCollapse",'<path fill-rule="evenodd" d="M4 10a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11A.5.5 0 014 10zm6-7a.5.5 0 01.5.5V8a.5.5 0 01-1 0V3.5A.5.5 0 0110 3z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12.354 5.646a.5.5 0 010 .708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 11.708-.708L10 7.293l1.646-1.647a.5.5 0 01.708 0zM10 17a.5.5 0 00.5-.5V12a.5.5 0 00-1 0v4.5a.5.5 0 00.5.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12.354 14.354a.5.5 0 000-.708l-2-2a.5.5 0 00-.708 0l-2 2a.5.5 0 00.708.708L10 12.707l1.646 1.647a.5.5 0 00.708 0z" clip-rule="evenodd"/>'),nt=v("ArrowsExpand",'<path fill-rule="evenodd" d="M4 10a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11A.5.5 0 014 10zm6-1.5a.5.5 0 00.5-.5V3.5a.5.5 0 00-1 0V8a.5.5 0 00.5.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12.354 5.854a.5.5 0 000-.708l-2-2a.5.5 0 00-.708 0l-2 2a.5.5 0 10.708.708L10 4.207l1.646 1.647a.5.5 0 00.708 0zM10 11.5a.5.5 0 01.5.5v4.5a.5.5 0 01-1 0V12a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12.354 14.146a.5.5 0 010 .708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 01.708-.708L10 15.793l1.646-1.647a.5.5 0 01.708 0z" clip-rule="evenodd"/>'),ot=v("ArrowsFullscreen",'<path fill-rule="evenodd" d="M4 11.5a.5.5 0 01.5.5v3.5H8a.5.5 0 010 1H4a.5.5 0 01-.5-.5v-4a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M8.854 11.11a.5.5 0 010 .708l-4.5 4.5a.5.5 0 11-.708-.707l4.5-4.5a.5.5 0 01.708 0zm7.464-7.464a.5.5 0 010 .708l-4.5 4.5a.5.5 0 11-.707-.708l4.5-4.5a.5.5 0 01.707 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M11.5 4a.5.5 0 01.5-.5h4a.5.5 0 01.5.5v4a.5.5 0 01-1 0V4.5H12a.5.5 0 01-.5-.5zm4.5 7.5a.5.5 0 00-.5.5v3.5H12a.5.5 0 000 1h4a.5.5 0 00.5-.5v-4a.5.5 0 00-.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M11.146 11.11a.5.5 0 000 .708l4.5 4.5a.5.5 0 00.708-.707l-4.5-4.5a.5.5 0 00-.708 0zM3.682 3.646a.5.5 0 000 .708l4.5 4.5a.5.5 0 10.707-.708l-4.5-4.5a.5.5 0 00-.707 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M8.5 4a.5.5 0 00-.5-.5H4a.5.5 0 00-.5.5v4a.5.5 0 001 0V4.5H8a.5.5 0 00.5-.5z" clip-rule="evenodd"/>'),it=v("At",'<path fill-rule="evenodd" d="M15.106 9.222c0-2.967-2.249-5.032-5.482-5.032-3.35 0-5.646 2.318-5.646 5.702 0 3.493 2.235 5.708 5.762 5.708.862 0 1.689-.123 2.304-.335v-.862c-.43.199-1.354.328-2.29.328-2.926 0-4.813-1.88-4.813-4.798 0-2.844 1.921-4.881 4.594-4.881 2.735 0 4.608 1.688 4.608 4.156 0 1.682-.554 2.769-1.416 2.769-.492 0-.772-.28-.772-.76V7.206h-1.032v.834h-.11c-.266-.595-.881-.964-1.6-.964-1.4 0-2.378 1.162-2.378 2.823 0 1.737.957 2.906 2.379 2.906.8 0 1.415-.39 1.709-1.087h.11c.081.67.703 1.148 1.503 1.148 1.572 0 2.57-1.415 2.57-3.643zm-7.177.704c0-1.197.54-1.907 1.456-1.907.93 0 1.524.738 1.524 1.907s-.601 1.914-1.538 1.914c-.895 0-1.442-.725-1.442-1.914z" clip-rule="evenodd"/>'),at=v("Award",'<path d="M10 2l1.669.864 1.858.282.842 1.68 1.337 1.32L15.4 8l.306 1.854-1.337 1.32-.842 1.68-1.858.282L10 14l-1.669-.864-1.858-.282-.842-1.68-1.337-1.32L4.6 8l-.306-1.854 1.337-1.32.842-1.68 1.858-.282L10 2z"/><path d="M6 13.794V18l4-1 4 1v-4.206l-2.018.306L10 15.126 8.018 14.1 6 13.794z"/>'),lt=v("Backspace",'<path fill-rule="evenodd" d="M8.603 4h7.08a1 1 0 011 1v10a1 1 0 01-1 1h-7.08a1 1 0 01-.76-.35L3 10l4.844-5.65A1 1 0 018.603 4zm7.08-1a2 2 0 012 2v10a2 2 0 01-2 2h-7.08a2 2 0 01-1.519-.698L2.241 10.65a1 1 0 010-1.302L7.084 3.7A2 2 0 018.603 3h7.08z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M7.83 7.146a.5.5 0 000 .708l5 5a.5.5 0 00.707-.708l-5-5a.5.5 0 00-.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M13.537 7.146a.5.5 0 010 .708l-5 5a.5.5 0 01-.708-.708l5-5a.5.5 0 01.707 0z" clip-rule="evenodd"/>'),st=v("BackspaceFill",'<path fill-rule="evenodd" d="M17.683 5a2 2 0 00-2-2h-7.08a2 2 0 00-1.519.698L2.241 9.35a1 1 0 000 1.302l4.843 5.65A2 2 0 008.603 17h7.08a2 2 0 002-2V5zM7.829 7.854a.5.5 0 11.707-.708l2.147 2.147 2.146-2.147a.5.5 0 11.707.708L11.39 10l2.146 2.146a.5.5 0 01-.707.708l-2.146-2.147-2.147 2.147a.5.5 0 01-.707-.708L9.976 10 7.829 7.854z" clip-rule="evenodd"/>'),ct=v("BackspaceReverse",'<path fill-rule="evenodd" d="M11.08 4H4a1 1 0 00-1 1v10a1 1 0 001 1h7.08a1 1 0 00.76-.35L16.682 10l-4.844-5.65A1 1 0 0011.08 4zM4 3a2 2 0 00-2 2v10a2 2 0 002 2h7.08a2 2 0 001.519-.698l4.843-5.651a1 1 0 000-1.302L12.6 3.7a2 2 0 00-1.52-.7H4z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M11.854 7.146a.5.5 0 010 .708l-5 5a.5.5 0 01-.708-.708l5-5a.5.5 0 01.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M6.146 7.146a.5.5 0 000 .708l5 5a.5.5 0 00.708-.708l-5-5a.5.5 0 00-.708 0z" clip-rule="evenodd"/>'),ut=v("BackspaceReverseFill",'<path fill-rule="evenodd" d="M2 5a2 2 0 012-2h7.08a2 2 0 011.519.698l4.843 5.651a1 1 0 010 1.302L12.6 16.3a2 2 0 01-1.52.7H4a2 2 0 01-2-2V5zm9.854 2.854a.5.5 0 00-.708-.708L9 9.293 6.854 7.146a.5.5 0 10-.708.708L8.293 10l-2.147 2.146a.5.5 0 00.708.708L9 10.707l2.146 2.147a.5.5 0 00.708-.708L9.707 10l2.147-2.146z" clip-rule="evenodd"/>'),ft=v("BarChart",'<path fill-rule="evenodd" d="M6 13H4v3h2v-3zm5-4H9v7h2V9zm5-5h-2v12h2V4zm-2-1a1 1 0 00-1 1v12a1 1 0 001 1h2a1 1 0 001-1V4a1 1 0 00-1-1h-2zM8 9a1 1 0 011-1h2a1 1 0 011 1v7a1 1 0 01-1 1H9a1 1 0 01-1-1V9zm-5 4a1 1 0 011-1h2a1 1 0 011 1v3a1 1 0 01-1 1H4a1 1 0 01-1-1v-3z" clip-rule="evenodd"/>'),ht=v("BarChartFill",'<rect width="4" height="5" x="3" y="12" rx="1"/><rect width="4" height="9" x="8" y="8" rx="1"/><rect width="4" height="14" x="13" y="3" rx="1"/>'),pt=v("Battery",'<path fill-rule="evenodd" d="M14 7H4a1 1 0 00-1 1v4a1 1 0 001 1h10a1 1 0 001-1V8a1 1 0 00-1-1zM4 6a2 2 0 00-2 2v4a2 2 0 002 2h10a2 2 0 002-2V8a2 2 0 00-2-2H4z" clip-rule="evenodd"/><path d="M16.5 11.5a1.5 1.5 0 000-3v3z"/>'),bt=v("BatteryCharging",'<path d="M16.5 11.5a1.5 1.5 0 000-3v3z"/><path fill-rule="evenodd" d="M11.585 4.568a.5.5 0 01.226.579l-1.134 3.686h1.99a.5.5 0 01.364.843l-5.334 5.667a.5.5 0 01-.842-.49l1.135-3.686H6a.5.5 0 01-.364-.843l5.333-5.667a.5.5 0 01.616-.09z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M8.332 6H4a2 2 0 00-2 2v4a2 2 0 002 2h2.072l.307-1H4a1 1 0 01-1-1V8a1 1 0 011-1h3.391l.941-1zM6.45 8H4v4h1.313a1.5 1.5 0 01-.405-2.361L6.45 8zm.976 5l-.308 1H8.96l.21-.224h.001l.73-.776H8.53l-.085.09.028-.09H7.426zm1.354-1H7.733l.257-.833H6a.5.5 0 01-.364-.843l.793-.843L7.823 8h1.373l-2.039 2.167h1.51a.492.492 0 01.166.028.5.5 0 01.312.619L8.78 12zm.69 0h1.373l1.395-1.482.793-.842a.5.5 0 00-.364-.843h-1.99L10.933 8H9.887l-.166.54-.199.646a.5.5 0 00.478.647h1.51L9.47 12zm.725-5h1.046l.308-1H9.706l-.942 1h1.374l.085-.09-.028.09zm2.4-1l-.308 1H14a1 1 0 011 1v4a1 1 0 01-1 1h-2.724l-.942 1H14a2 2 0 002-2V8a2 2 0 00-2-2h-1.405zm-.378 6H14v-1.98a1.499 1.499 0 01-.241.341L12.217 12zM14 8.646V8h-.646a1.5 1.5 0 01.646.646z" clip-rule="evenodd"/>'),vt=v("BatteryFull",'<path fill-rule="evenodd" d="M14 7H4a1 1 0 00-1 1v4a1 1 0 001 1h10a1 1 0 001-1V8a1 1 0 00-1-1zM4 6a2 2 0 00-2 2v4a2 2 0 002 2h10a2 2 0 002-2V8a2 2 0 00-2-2H4z" clip-rule="evenodd"/><path d="M4 8h10v4H4V8zm12.5 3.5a1.5 1.5 0 000-3v3z"/>'),mt=v("Bell",'<path d="M10 18a2 2 0 002-2H8a2 2 0 002 2z"/><path fill-rule="evenodd" d="M10 3.918l-.797.161A4.002 4.002 0 006 8c0 .628-.134 2.197-.459 3.742-.16.767-.376 1.566-.663 2.258h10.244c-.287-.692-.502-1.49-.663-2.258C14.134 10.197 14 8.628 14 8a4.002 4.002 0 00-3.203-3.92L10 3.917zM16.22 14c.223.447.482.801.78 1H3c.299-.199.557-.553.78-1C4.68 12.2 5 8.88 5 8c0-2.42 1.72-4.44 4.005-4.901a1 1 0 111.99 0A5.002 5.002 0 0115 8c0 .88.32 4.2 1.22 6z" clip-rule="evenodd"/>'),gt=v("BellFill",'<path d="M10 18a2 2 0 002-2H8a2 2 0 002 2zm.995-14.901a1 1 0 10-1.99 0A5.002 5.002 0 005 8c0 1.098-.5 6-2 7h14c-1.5-1-2-5.902-2-7 0-2.42-1.72-4.44-4.005-4.901z"/>'),yt=v("BlockquoteLeft",'<path fill-rule="evenodd" d="M4 5.5a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm5 3a.5.5 0 01.5-.5h6a.5.5 0 010 1h-6a.5.5 0 01-.5-.5zm0 3a.5.5 0 01.5-.5h6a.5.5 0 010 1h-6a.5.5 0 01-.5-.5zm-5 3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5z" clip-rule="evenodd"/><path d="M5.734 8.352a6.586 6.586 0 00-.445.275 1.94 1.94 0 00-.346.299 1.38 1.38 0 00-.252.369c-.058.129-.1.295-.123.498h.282c.242 0 .431.06.568.182.14.117.21.29.21.521a.697.697 0 01-.187.463c-.12.14-.289.21-.503.21-.336 0-.577-.109-.721-.327-.145-.223-.217-.514-.217-.873 0-.254.055-.485.164-.692.11-.21.242-.398.399-.562.16-.168.33-.31.51-.428.179-.117.33-.213.45-.287l.211.352zm2.168 0a6.588 6.588 0 00-.445.275 1.94 1.94 0 00-.346.299c-.113.12-.199.246-.257.375a1.75 1.75 0 00-.118.492h.282c.242 0 .431.06.568.182.14.117.21.29.21.521a.697.697 0 01-.187.463c-.12.14-.289.21-.504.21-.335 0-.576-.109-.72-.327-.145-.223-.217-.514-.217-.873 0-.254.055-.485.164-.692.11-.21.242-.398.398-.562.16-.168.33-.31.51-.428.18-.117.33-.213.451-.287l.211.352z"/>'),wt=v("BlockquoteRight",'<path fill-rule="evenodd" d="M4 5.5a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm0 3a.5.5 0 01.5-.5h6a.5.5 0 010 1h-6a.5.5 0 01-.5-.5zm0 3a.5.5 0 01.5-.5h6a.5.5 0 010 1h-6a.5.5 0 01-.5-.5zm0 3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5z" clip-rule="evenodd"/><path d="M14.168 8.352c.184.105.332.197.445.275.114.074.229.174.346.299.11.117.193.24.252.369s.1.295.123.498h-.281c-.243 0-.432.06-.569.182-.14.117-.21.29-.21.521 0 .164.062.319.187.463.121.14.289.21.504.21.336 0 .576-.109.72-.327.145-.223.217-.514.217-.873 0-.254-.054-.485-.164-.692a2.436 2.436 0 00-.398-.562c-.16-.168-.33-.31-.51-.428-.18-.117-.33-.213-.451-.287l-.211.352zm-2.168 0c.184.105.332.197.445.275.114.074.229.174.346.299.113.12.2.246.258.375.055.125.094.289.117.492h-.281c-.242 0-.432.06-.569.182-.14.117-.21.29-.21.521 0 .164.062.319.187.463.121.14.289.21.504.21.336 0 .576-.109.72-.327.145-.223.217-.514.217-.873 0-.254-.054-.485-.164-.692a2.438 2.438 0 00-.398-.562c-.16-.168-.33-.31-.51-.428-.18-.117-.33-.213-.451-.287L12 8.352z"/>'),Ot=v("Book",'<path fill-rule="evenodd" d="M5.214 3.072c1.599-.32 3.702-.363 5.14 1.074a.5.5 0 01.146.354v11a.5.5 0 01-.854.354c-.843-.844-2.115-1.059-3.47-.92-1.344.14-2.66.617-3.452 1.013A.5.5 0 012 15.5v-11a.5.5 0 01.276-.447L2.5 4.5l-.224-.447.002-.001.004-.002.013-.006a5.116 5.116 0 01.22-.103 12.958 12.958 0 012.7-.869zM3 4.82v9.908c.846-.343 1.944-.672 3.074-.788 1.143-.118 2.387-.023 3.426.56V4.718c-1.063-.929-2.631-.956-4.09-.664A11.958 11.958 0 003 4.82z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M14.786 3.072c-1.598-.32-3.702-.363-5.14 1.074A.5.5 0 009.5 4.5v11a.5.5 0 00.854.354c.844-.844 2.115-1.059 3.47-.92 1.344.14 2.66.617 3.452 1.013A.5.5 0 0018 15.5v-11a.5.5 0 00-.276-.447L17.5 4.5l.224-.447-.002-.001-.004-.002-.013-.006-.047-.023a12.582 12.582 0 00-.799-.34 12.96 12.96 0 00-2.073-.609zM17 4.82v9.908c-.846-.343-1.944-.672-3.074-.788-1.143-.118-2.386-.023-3.426.56V4.718c1.063-.929 2.631-.956 4.09-.664A11.956 11.956 0 0117 4.82z" clip-rule="evenodd"/>'),kt=v("BookHalfFill",'<path fill-rule="evenodd" d="M5.214 3.072c1.599-.32 3.702-.363 5.14 1.074a.5.5 0 01.146.354v11a.5.5 0 01-.854.354c-.843-.844-2.115-1.059-3.47-.92-1.344.14-2.66.617-3.452 1.013A.5.5 0 012 15.5v-11a.5.5 0 01.276-.447L2.5 4.5l-.224-.447.002-.001.004-.002.013-.006a5.116 5.116 0 01.22-.103 12.958 12.958 0 012.7-.869zM3 4.82v9.908c.846-.343 1.944-.672 3.074-.788 1.143-.118 2.387-.023 3.426.56V4.718c-1.063-.929-2.631-.956-4.09-.664A11.958 11.958 0 003 4.82z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M14.786 3.072c-1.598-.32-3.702-.363-5.14 1.074A.5.5 0 009.5 4.5v11a.5.5 0 00.854.354c.844-.844 2.115-1.059 3.47-.92 1.344.14 2.66.617 3.452 1.013A.5.5 0 0018 15.5v-11a.5.5 0 00-.276-.447L17.5 4.5l.224-.447-.002-.001-.004-.002-.013-.006-.047-.023a12.582 12.582 0 00-.799-.34 12.96 12.96 0 00-2.073-.609z" clip-rule="evenodd"/>'),St=v("Bookmark",'<path fill-rule="evenodd" d="M10 14l5 3V5a2 2 0 00-2-2H7a2 2 0 00-2 2v12l5-3zm-4 1.234l4-2.4 4 2.4V5a1 1 0 00-1-1H7a1 1 0 00-1 1v10.234z" clip-rule="evenodd"/>'),jt=v("BookmarkFill",'<path fill-rule="evenodd" d="M5 5a2 2 0 012-2h6a2 2 0 012 2v12l-5-3-5 3V5z" clip-rule="evenodd"/>'),_t=v("Bootstrap",'<path fill-rule="evenodd" d="M14 3H6a3 3 0 00-3 3v8a3 3 0 003 3h8a3 3 0 003-3V6a3 3 0 00-3-3zM6 2a4 4 0 00-4 4v8a4 4 0 004 4h8a4 4 0 004-4V6a4 4 0 00-4-4H6z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10.537 14H7.062V5.545h3.398c1.588 0 2.543.809 2.543 2.11 0 .884-.65 1.675-1.482 1.816v.1c1.143.117 1.904.931 1.904 2.033 0 1.488-1.084 2.396-2.888 2.396zM8.375 6.658v2.467h1.558c1.16 0 1.764-.428 1.764-1.23 0-.78-.568-1.237-1.541-1.237H8.375zm1.898 6.229H8.375v-2.725h1.822c1.236 0 1.887.463 1.887 1.348 0 .896-.627 1.377-1.811 1.377z" clip-rule="evenodd"/>'),xt=v("BootstrapFill",'<path fill-rule="evenodd" d="M6.002 2a4 4 0 00-4 4v8a4 4 0 004 4h8a4 4 0 004-4V6a4 4 0 00-4-4h-8zm1.06 12h3.475c1.804 0 2.888-.908 2.888-2.396 0-1.102-.761-1.916-1.904-2.034v-.1c.832-.14 1.482-.93 1.482-1.816 0-1.3-.955-2.11-2.543-2.11H7.063V14zm1.313-4.875V6.658h1.78c.974 0 1.542.457 1.542 1.237 0 .802-.604 1.23-1.764 1.23H8.375zm0 3.762h1.898c1.184 0 1.81-.48 1.81-1.377 0-.885-.65-1.348-1.886-1.348H8.375v2.725z" clip-rule="evenodd"/>'),Tt=v("BootstrapReboot",'<path fill-rule="evenodd" d="M3.161 10a6.84 6.84 0 106.842-6.84.58.58 0 110-1.16 8 8 0 11-6.556 3.412l-.663-.577a.58.58 0 01.227-.997l2.52-.69a.58.58 0 01.728.633l-.332 2.592a.58.58 0 01-.956.364l-.643-.56A6.812 6.812 0 003.16 10zm5.228-.079V7.277h1.57c.881 0 1.416.499 1.416 1.32 0 .84-.505 1.324-1.386 1.324h-1.6zm0 3.75v-2.828h1.57l1.498 2.828h1.314l-1.646-3.006c.897-.3 1.427-1.106 1.427-2.1 0-1.37-.943-2.246-2.456-2.246H7.248v7.352h1.141z" clip-rule="evenodd"/>'),Bt=v("BoxArrowBottomLeft",'<path fill-rule="evenodd" d="M15 3.5A1.5 1.5 0 0116.5 5v8a1.5 1.5 0 01-1.5 1.5h-4a.5.5 0 010-1h4a.5.5 0 00.5-.5V5a.5.5 0 00-.5-.5H7a.5.5 0 00-.5.5v4a.5.5 0 01-1 0V5A1.5 1.5 0 017 3.5h8zm-11 7a.5.5 0 00-.5.5v5a.5.5 0 00.5.5h5a.5.5 0 000-1H4.5V11a.5.5 0 00-.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M3.646 16.354a.5.5 0 00.708 0l8-8a.5.5 0 00-.708-.708l-8 8a.5.5 0 000 .708z" clip-rule="evenodd"/>'),Ct=v("BoxArrowBottomRight",'<path fill-rule="evenodd" d="M5 3.5A1.5 1.5 0 003.5 5v8A1.5 1.5 0 005 14.5h4a.5.5 0 000-1H5a.5.5 0 01-.5-.5V5a.5.5 0 01.5-.5h8a.5.5 0 01.5.5v4a.5.5 0 001 0V5A1.5 1.5 0 0013 3.5H5zm11 7a.5.5 0 01.5.5v5a.5.5 0 01-.5.5h-5a.5.5 0 010-1h4.5V11a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M16.354 16.354a.5.5 0 01-.708 0l-8-8a.5.5 0 11.708-.708l8 8a.5.5 0 010 .708z" clip-rule="evenodd"/>'),Pt=v("BoxArrowDown",'<path fill-rule="evenodd" d="M6.646 13.646a.5.5 0 01.708 0L10 16.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 6.5a.5.5 0 01.5.5v9a.5.5 0 01-1 0V7a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4.5 4A1.5 1.5 0 016 2.5h8A1.5 1.5 0 0115.5 4v7a1.5 1.5 0 01-1.5 1.5h-1.5a.5.5 0 010-1H14a.5.5 0 00.5-.5V4a.5.5 0 00-.5-.5H6a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h1.5a.5.5 0 010 1H6A1.5 1.5 0 014.5 11V4z" clip-rule="evenodd"/>'),Mt=v("BoxArrowLeft",'<path fill-rule="evenodd" d="M6.354 13.354a.5.5 0 000-.708L3.707 10l2.647-2.646a.5.5 0 10-.708-.708l-3 3a.5.5 0 000 .708l3 3a.5.5 0 00.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M13.5 10a.5.5 0 00-.5-.5H4a.5.5 0 000 1h9a.5.5 0 00.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M16 15.5a1.5 1.5 0 001.5-1.5V6A1.5 1.5 0 0016 4.5H9A1.5 1.5 0 007.5 6v1.5a.5.5 0 001 0V6a.5.5 0 01.5-.5h7a.5.5 0 01.5.5v8a.5.5 0 01-.5.5H9a.5.5 0 01-.5-.5v-1.5a.5.5 0 00-1 0V14A1.5 1.5 0 009 15.5h7z" clip-rule="evenodd"/>'),qt=v("BoxArrowRight",'<path fill-rule="evenodd" d="M13.646 13.354a.5.5 0 010-.708L16.293 10l-2.647-2.646a.5.5 0 01.708-.708l3 3a.5.5 0 010 .708l-3 3a.5.5 0 01-.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M6.5 10a.5.5 0 01.5-.5h9a.5.5 0 010 1H7a.5.5 0 01-.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4 15.5A1.5 1.5 0 012.5 14V6A1.5 1.5 0 014 4.5h7A1.5 1.5 0 0112.5 6v1.5a.5.5 0 01-1 0V6a.5.5 0 00-.5-.5H4a.5.5 0 00-.5.5v8a.5.5 0 00.5.5h7a.5.5 0 00.5-.5v-1.5a.5.5 0 011 0V14a1.5 1.5 0 01-1.5 1.5H4z" clip-rule="evenodd"/>'),Et=v("BoxArrowUp",'<path fill-rule="evenodd" d="M6.646 6.354a.5.5 0 00.708 0L10 3.707l2.646 2.647a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.708 0l-3 3a.5.5 0 000 .708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 13.5a.5.5 0 00.5-.5V4a.5.5 0 00-1 0v9a.5.5 0 00.5.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4.5 16A1.5 1.5 0 006 17.5h8a1.5 1.5 0 001.5-1.5V9A1.5 1.5 0 0014 7.5h-1.5a.5.5 0 000 1H14a.5.5 0 01.5.5v7a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V9a.5.5 0 01.5-.5h1.5a.5.5 0 000-1H6A1.5 1.5 0 004.5 9v7z" clip-rule="evenodd"/>'),At=v("BoxArrowUpLeft",'<path fill-rule="evenodd" d="M16.5 15a1.5 1.5 0 01-1.5 1.5H7A1.5 1.5 0 015.5 15v-4a.5.5 0 011 0v4a.5.5 0 00.5.5h8a.5.5 0 00.5-.5V7a.5.5 0 00-.5-.5h-4a.5.5 0 010-1h4A1.5 1.5 0 0116.5 7v8zm-7-11a.5.5 0 00-.5-.5H4a.5.5 0 00-.5.5v5a.5.5 0 001 0V4.5H9a.5.5 0 00.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M3.646 3.646a.5.5 0 000 .708l8 8a.5.5 0 00.708-.708l-8-8a.5.5 0 00-.708 0z" clip-rule="evenodd"/>'),zt=v("BoxArrowUpRight",'<path fill-rule="evenodd" d="M3.5 15A1.5 1.5 0 005 16.5h8a1.5 1.5 0 001.5-1.5v-4a.5.5 0 00-1 0v4a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V7a.5.5 0 01.5-.5h4a.5.5 0 000-1H5A1.5 1.5 0 003.5 7v8zm7-11a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v5a.5.5 0 01-1 0V4.5H11a.5.5 0 01-.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M16.354 3.646a.5.5 0 010 .708l-8 8a.5.5 0 01-.708-.708l8-8a.5.5 0 01.708 0z" clip-rule="evenodd"/>'),Dt=v("Braces",'<path d="M4.114 10.063V9.9c1.005-.102 1.497-.615 1.497-1.6V6.503c0-1.094.39-1.538 1.354-1.538h.273V4h-.376C5.25 4 4.49 4.759 4.49 6.352v1.524c0 1.094-.376 1.456-1.49 1.456v1.299c1.114 0 1.49.362 1.49 1.456v1.524c0 1.593.759 2.352 2.372 2.352h.376v-.964h-.273c-.964 0-1.354-.444-1.354-1.538v-1.798c0-.984-.492-1.497-1.497-1.6zM15.886 9.9v.163c-1.005.103-1.497.616-1.497 1.6v1.798c0 1.094-.39 1.538-1.354 1.538h-.273v.964h.376c1.613 0 2.372-.759 2.372-2.352v-1.524c0-1.094.376-1.456 1.49-1.456V9.332c-1.114 0-1.49-.362-1.49-1.456V6.352C15.51 4.759 14.75 4 13.138 4h-.376v.964h.273c.964 0 1.354.444 1.354 1.538V8.3c0 .984.492 1.497 1.497 1.6z"/>'),Lt=v("BrightnessFillHigh",'<circle cx="10" cy="10" r="4"/><path fill-rule="evenodd" d="M10 2a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2A.5.5 0 0110 2zm0 13a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zm8-5a.5.5 0 01-.5.5h-2a.5.5 0 010-1h2a.5.5 0 01.5.5zM5 10a.5.5 0 01-.5.5h-2a.5.5 0 010-1h2a.5.5 0 01.5.5zm10.657-5.657a.5.5 0 010 .707l-1.414 1.414a.5.5 0 01-.707-.707l1.414-1.414a.5.5 0 01.707 0zm-9.193 9.193a.5.5 0 010 .707L5.05 15.657a.5.5 0 01-.707-.707l1.414-1.414a.5.5 0 01.707 0zm9.193 2.121a.5.5 0 01-.707 0l-1.414-1.414a.5.5 0 01.707-.707l1.414 1.414a.5.5 0 010 .707zM6.464 6.464a.5.5 0 01-.707 0L4.343 5.05a.5.5 0 01.707-.707l1.414 1.414a.5.5 0 010 .707z" clip-rule="evenodd"/>'),It=v("BrightnessFillLow",'<circle cx="10" cy="10" r="4"/><circle cx="10" cy="4.5" r=".5"/><circle cx="10" cy="15.5" r=".5"/><circle cx="15.5" cy="10" r=".5" transform="rotate(90 15.5 10)"/><circle cx="4.5" cy="10" r=".5" transform="rotate(90 4.5 10)"/><circle cx="13.889" cy="6.111" r=".5" transform="rotate(45 13.89 6.11)"/><circle cx="6.111" cy="13.889" r=".5" transform="rotate(45 6.11 13.89)"/><circle cx="13.889" cy="13.889" r=".5" transform="rotate(135 13.89 13.89)"/><circle cx="6.111" cy="6.111" r=".5" transform="rotate(135 6.11 6.11)"/>'),Nt=v("BrightnessHigh",'<path fill-rule="evenodd" d="M10 13a3 3 0 100-6 3 3 0 000 6zm0 1a4 4 0 100-8 4 4 0 000 8zm0-12a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2A.5.5 0 0110 2zm0 13a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zm8-5a.5.5 0 01-.5.5h-2a.5.5 0 010-1h2a.5.5 0 01.5.5zM5 10a.5.5 0 01-.5.5h-2a.5.5 0 010-1h2a.5.5 0 01.5.5zm10.657-5.657a.5.5 0 010 .707l-1.414 1.414a.5.5 0 11-.707-.707l1.414-1.414a.5.5 0 01.707 0zm-9.193 9.193a.5.5 0 010 .707L5.05 15.657a.5.5 0 01-.707-.707l1.414-1.414a.5.5 0 01.707 0zm9.193 2.121a.5.5 0 01-.707 0l-1.414-1.414a.5.5 0 01.707-.707l1.414 1.414a.5.5 0 010 .707zM6.464 6.464a.5.5 0 01-.707 0L4.343 5.05a.5.5 0 01.707-.707l1.414 1.414a.5.5 0 010 .707z" clip-rule="evenodd"/>'),Ht=v("BrightnessLow",'<path fill-rule="evenodd" d="M10 13a3 3 0 100-6 3 3 0 000 6zm0 1a4 4 0 100-8 4 4 0 000 8z" clip-rule="evenodd"/><circle cx="10" cy="4.5" r=".5"/><circle cx="10" cy="15.5" r=".5"/><circle cx="15.5" cy="10" r=".5" transform="rotate(90 15.5 10)"/><circle cx="4.5" cy="10" r=".5" transform="rotate(90 4.5 10)"/><circle cx="13.889" cy="6.111" r=".5" transform="rotate(45 13.89 6.11)"/><circle cx="6.111" cy="13.889" r=".5" transform="rotate(45 6.11 13.89)"/><circle cx="13.889" cy="13.889" r=".5" transform="rotate(135 13.89 13.89)"/><circle cx="6.111" cy="6.111" r=".5" transform="rotate(135 6.11 6.11)"/>'),Vt=v("Brush",'<path d="M17.213 3.018a.572.572 0 01.755.05.57.57 0 01.058.746c-.941 1.268-3.982 5.293-6.426 7.736a12.89 12.89 0 01-1.952 1.596c-.508.339-1.167.234-1.599-.197-.416-.416-.53-1.047-.213-1.543.347-.542.888-1.273 1.643-1.977 2.521-2.35 6.476-5.44 7.734-6.411z"/><path d="M9 14a2 2 0 01-2 2c-1 0-2 0-3.5-.5s.5-1 1-1.5 1.395-2 2.5-2a2 2 0 012 2z"/>'),Ft=v("Bucket",'<path fill-rule="evenodd" d="M10 3.5A4.5 4.5 0 005.5 8h-1a5.5 5.5 0 1111 0h-1A4.5 4.5 0 0010 3.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M3.61 7.687A.5.5 0 014 7.5h12a.5.5 0 01.488.608l-1.826 8.217a1.5 1.5 0 01-1.464 1.175H6.802a1.5 1.5 0 01-1.464-1.175L3.512 8.108a.5.5 0 01.098-.42zm1.013.813l1.691 7.608a.5.5 0 00.488.392h6.396a.5.5 0 00.488-.392l1.69-7.608H4.624z" clip-rule="evenodd"/>'),Rt=v("BucketFill",'<path fill-rule="evenodd" d="M10 3.5A4.5 4.5 0 005.5 8h-1a5.5 5.5 0 1111 0h-1A4.5 4.5 0 0010 3.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M3.61 7.687A.5.5 0 014 7.5h12a.5.5 0 01.488.608l-1.826 8.217a1.5 1.5 0 01-1.464 1.175H6.802a1.5 1.5 0 01-1.464-1.175L3.512 8.108a.5.5 0 01.098-.42z" clip-rule="evenodd"/>'),$t=v("Building",'<path fill-rule="evenodd" d="M17.285 2.089a.5.5 0 01.215.411v15a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V16h-1v1.5a.5.5 0 01-.5.5H3a.5.5 0 01-.5-.5v-6a.5.5 0 01.418-.493l5.582-.93V5.5a.5.5 0 01.324-.468l8-3a.5.5 0 01.46.057zM9.5 5.846V10.5a.5.5 0 01-.418.493l-5.582.93V17h8v-1.5a.5.5 0 01.5-.5h2a.5.5 0 01.5.5V17h2V3.221l-7 2.625z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M8.5 17.5v-7h1v7h-1z" clip-rule="evenodd"/><path d="M4.5 13h1v1h-1v-1zm2 0h1v1h-1v-1zm-2 2h1v1h-1v-1zm2 0h1v1h-1v-1zm6-10h1v1h-1V5zm2 0h1v1h-1V5zm-4 2h1v1h-1V7zm2 0h1v1h-1V7zm2 0h1v1h-1V7zm-2 2h1v1h-1V9zm2 0h1v1h-1V9zm-4 0h1v1h-1V9zm0 2h1v1h-1v-1zm2 0h1v1h-1v-1zm2 0h1v1h-1v-1zm-4 2h1v1h-1v-1zm2 0h1v1h-1v-1zm2 0h1v1h-1v-1z"/>'),Ut=v("Bullseye",'<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm0 1a8 8 0 100-16 8 8 0 000 16z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 15a5 5 0 100-10 5 5 0 000 10zm0 1a6 6 0 100-12 6 6 0 000 12z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 13a3 3 0 100-6 3 3 0 000 6zm0 1a4 4 0 100-8 4 4 0 000 8z" clip-rule="evenodd"/><path d="M11.5 10a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"/>'),Yt=v("Calendar",'<path fill-rule="evenodd" d="M16 2H4a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V4a2 2 0 00-2-2zM3 5.857C3 5.384 3.448 5 4 5h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H4c-.552 0-1-.384-1-.857V5.857z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M8.5 9a1 1 0 100-2 1 1 0 000 2zm3 0a1 1 0 100-2 1 1 0 000 2zm3 0a1 1 0 100-2 1 1 0 000 2zm-9 3a1 1 0 100-2 1 1 0 000 2zm3 0a1 1 0 100-2 1 1 0 000 2zm3 0a1 1 0 100-2 1 1 0 000 2zm3 0a1 1 0 100-2 1 1 0 000 2zm-9 3a1 1 0 100-2 1 1 0 000 2zm3 0a1 1 0 100-2 1 1 0 000 2zm3 0a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"/>'),Wt=v("CalendarFill",'<path d="M2 4a2 2 0 012-2h12a2 2 0 012 2H2z"/><path fill-rule="evenodd" d="M2 5h16v11a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm6.5 4a1 1 0 100-2 1 1 0 000 2zm4-1a1 1 0 11-2 0 1 1 0 012 0zm2 1a1 1 0 100-2 1 1 0 000 2zm-8 2a1 1 0 11-2 0 1 1 0 012 0zm2 1a1 1 0 100-2 1 1 0 000 2zm4-1a1 1 0 11-2 0 1 1 0 012 0zm2 1a1 1 0 100-2 1 1 0 000 2zm-8 2a1 1 0 11-2 0 1 1 0 012 0zm2 1a1 1 0 100-2 1 1 0 000 2zm4-1a1 1 0 11-2 0 1 1 0 012 0z" clip-rule="evenodd"/>'),Gt=v("Camera",'<path d="M11 7c-1.657 0-4 1.343-4 3a4 4 0 014-4v1z"/><path fill-rule="evenodd" d="M16.333 5h-2.015A5.97 5.97 0 0011 4a5.972 5.972 0 00-3.318 1H3.667C2.747 5 2 5.746 2 6.667v6.666C2 14.253 2.746 15 3.667 15h4.015c.95.632 2.091 1 3.318 1a5.973 5.973 0 003.318-1h2.015c.92 0 1.667-.746 1.667-1.667V6.667C18 5.747 17.254 5 16.333 5zM3.5 7a.5.5 0 100-1 .5.5 0 000 1zm7.5 8a5 5 0 100-10 5 5 0 000 10z" clip-rule="evenodd"/><path d="M4 5a1 1 0 011-1h1a1 1 0 010 2H5a1 1 0 01-1-1z"/>'),Kt=v("CameraVideo",'<path fill-rule="evenodd" d="M4.667 5.5c-.645 0-1.167.522-1.167 1.167v6.666c0 .645.522 1.167 1.167 1.167h6.666c.645 0 1.167-.522 1.167-1.167V6.667c0-.645-.522-1.167-1.167-1.167H4.667zM2.5 6.667C2.5 5.47 3.47 4.5 4.667 4.5h6.666c1.197 0 2.167.97 2.167 2.167v6.666c0 1.197-.97 2.167-2.167 2.167H4.667A2.167 2.167 0 012.5 13.333V6.667z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M13.25 7.65l2.768-1.605a.318.318 0 01.482.263v7.384c0 .228-.26.393-.482.264l-2.767-1.605-.502.865 2.767 1.605c.859.498 1.984-.095 1.984-1.129V6.308c0-1.033-1.125-1.626-1.984-1.128L12.75 6.785l.502.865z" clip-rule="evenodd"/>'),Zt=v("CameraVideoFill",'<path d="M4.667 5h6.666C12.253 5 13 5.746 13 6.667v6.666c0 .92-.746 1.667-1.667 1.667H4.667C3.747 15 3 14.254 3 13.333V6.667C3 5.747 3.746 5 4.667 5z"/><path d="M9.404 10.697l6.363 3.692c.54.313 1.233-.066 1.233-.697V6.308c0-.63-.692-1.01-1.233-.696L9.404 9.304a.802.802 0 000 1.393z"/>'),Xt=v("Capslock",'<path fill-rule="evenodd" d="M9.27 3.047a1 1 0 011.46 0l6.345 6.77c.6.638.146 1.683-.73 1.683H13.5v1a1 1 0 01-1 1h-5a1 1 0 01-1-1v-1H3.654c-.875 0-1.328-1.045-.73-1.684L9.27 3.047zm7.076 7.453L10 3.731 3.654 10.5H6.5a1 1 0 011 1v1h5v-1a1 1 0 011-1h2.846zm-9.846 5a1 1 0 011-1h5a1 1 0 011 1v1a1 1 0 01-1 1h-5a1 1 0 01-1-1v-1zm6 0h-5v1h5v-1z" clip-rule="evenodd"/>'),Jt=v("CapslockFill",'<path fill-rule="evenodd" d="M9.27 3.047a1 1 0 011.46 0l6.345 6.77c.6.638.146 1.683-.73 1.683H13.5v1a1 1 0 01-1 1h-5a1 1 0 01-1-1v-1H3.654c-.875 0-1.328-1.045-.73-1.684L9.27 3.047zM6.5 15.5a1 1 0 011-1h5a1 1 0 011 1v1a1 1 0 01-1 1h-5a1 1 0 01-1-1v-1z" clip-rule="evenodd"/>'),Qt=v("Chat",'<path fill-rule="evenodd" d="M8.207 13.293L7.5 14a5.5 5.5 0 110-11h5a5.5 5.5 0 110 11s-1.807 2.169-4.193 2.818C7.887 16.933 7.449 17 7 17c.291-.389.488-.74.617-1.052C8.149 14.649 7.5 14 7.5 14c.707-.707.708-.707.708-.706h.001l.002.003.004.004.01.01a1.184 1.184 0 01.074.084c.039.047.085.108.134.183.097.15.206.36.284.626.114.386.154.855.047 1.394.717-.313 1.37-.765 1.895-1.201a10.266 10.266 0 001.013-.969l.05-.056.01-.012m0 0A1 1 0 0112.5 13a4.5 4.5 0 100-9h-5a4.5 4.5 0 000 9 1 1 0 01.707.293" clip-rule="evenodd"/>'),te=v("ChatFill",'<path fill-rule="evenodd" d="M7.5 14s.65.65.117 1.948A4.821 4.821 0 017 17c.449 0 .887-.067 1.307-.181C10.692 16.169 12.5 14 12.5 14a5.5 5.5 0 100-11h-5a5.5 5.5 0 100 11z" clip-rule="evenodd"/>'),ee=v("Check",'<path fill-rule="evenodd" d="M15.854 5.646a.5.5 0 010 .708l-7 7a.5.5 0 01-.708 0l-3.5-3.5a.5.5 0 11.708-.708L8.5 12.293l6.646-6.647a.5.5 0 01.708 0z" clip-rule="evenodd"/>'),ne=v("CheckBox",'<path fill-rule="evenodd" d="M17.354 4.646a.5.5 0 010 .708l-7 7a.5.5 0 01-.708 0l-3-3a.5.5 0 11.708-.708L10 11.293l6.646-6.647a.5.5 0 01.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M3.5 15A1.5 1.5 0 005 16.5h10a1.5 1.5 0 001.5-1.5v-5a.5.5 0 00-1 0v5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V5a.5.5 0 01.5-.5h8a.5.5 0 000-1H5A1.5 1.5 0 003.5 5v10z" clip-rule="evenodd"/>'),re=v("CheckCircle",'<path fill-rule="evenodd" d="M17.354 4.646a.5.5 0 010 .708l-7 7a.5.5 0 01-.708 0l-3-3a.5.5 0 11.708-.708L10 11.293l6.646-6.647a.5.5 0 01.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 4.5a5.5 5.5 0 105.5 5.5.5.5 0 011 0 6.5 6.5 0 11-3.25-5.63.5.5 0 11-.5.865A5.472 5.472 0 0010 4.5z" clip-rule="evenodd"/>'),oe=v("ChevronCompactDown",'<path fill-rule="evenodd" d="M3.553 8.776a.5.5 0 01.67-.223L10 11.44l5.776-2.888a.5.5 0 11.448.894l-6 3a.5.5 0 01-.448 0l-6-3a.5.5 0 01-.223-.67z" clip-rule="evenodd"/>'),ie=v("ChevronCompactLeft",'<path fill-rule="evenodd" d="M11.224 3.553a.5.5 0 01.223.67L8.56 10l2.888 5.776a.5.5 0 11-.894.448l-3-6a.5.5 0 010-.448l3-6a.5.5 0 01.67-.223z" clip-rule="evenodd"/>'),ae=v("ChevronCompactRight",'<path fill-rule="evenodd" d="M8.776 3.553a.5.5 0 01.671.223l3 6a.5.5 0 010 .448l-3 6a.5.5 0 11-.894-.448L11.44 10 8.553 4.224a.5.5 0 01.223-.671z" clip-rule="evenodd"/>'),le=v("ChevronCompactUp",'<path fill-rule="evenodd" d="M9.776 7.553a.5.5 0 01.448 0l6 3a.5.5 0 11-.448.894L10 8.56l-5.776 2.888a.5.5 0 11-.448-.894l6-3z" clip-rule="evenodd"/>'),se=v("ChevronDown",'<path fill-rule="evenodd" d="M3.646 6.646a.5.5 0 01.708 0L10 12.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z" clip-rule="evenodd"/>'),ce=v("ChevronLeft",'<path fill-rule="evenodd" d="M13.354 3.646a.5.5 0 010 .708L7.707 10l5.647 5.646a.5.5 0 01-.708.708l-6-6a.5.5 0 010-.708l6-6a.5.5 0 01.708 0z" clip-rule="evenodd"/>'),ue=v("ChevronRight",'<path fill-rule="evenodd" d="M6.646 3.646a.5.5 0 01.708 0l6 6a.5.5 0 010 .708l-6 6a.5.5 0 01-.708-.708L12.293 10 6.646 4.354a.5.5 0 010-.708z" clip-rule="evenodd"/>'),de=v("ChevronUp",'<path fill-rule="evenodd" d="M9.646 6.646a.5.5 0 01.708 0l6 6a.5.5 0 01-.708.708L10 7.707l-5.646 5.647a.5.5 0 01-.708-.708l6-6z" clip-rule="evenodd"/>'),fe=v("Circle",'<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm0 1a8 8 0 100-16 8 8 0 000 16z" clip-rule="evenodd"/>'),he=v("CircleFill",'<circle cx="10" cy="10" r="8"/>'),pe=v("CircleHalf",'<path fill-rule="evenodd" d="M10 17V3a7 7 0 000 14zm0 1a8 8 0 100-16 8 8 0 000 16z" clip-rule="evenodd"/>'),be=v("CircleSlash",'<path fill-rule="evenodd" d="M10 1.5a8.5 8.5 0 100 17 8.5 8.5 0 000-17zM5.071 4.347a7.5 7.5 0 0110.582 10.582L5.071 4.347zm-.724.724a7.5 7.5 0 0010.582 10.582L4.347 5.071z" clip-rule="evenodd"/>'),ve=v("Clock",'<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 4a.5.5 0 01.5.5V10a.5.5 0 01-.5.5H5.5a.5.5 0 010-1h4v-5A.5.5 0 0110 4z" clip-rule="evenodd"/>'),me=v("ClockFill",'<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zM5.5 9.5h4v-5a.5.5 0 011 0V10a.5.5 0 01-.5.5H5.5a.5.5 0 010-1z" clip-rule="evenodd"/>'),ge=v("Cloud",'<path fill-rule="evenodd" d="M6.887 9.2l-.964-.165A2.5 2.5 0 105.5 14h10a1.5 1.5 0 00.237-2.982l-1.038-.164.216-1.028a4 4 0 10-7.843-1.587l-.185.96zm9.084.341a5 5 0 00-9.88-1.492A3.5 3.5 0 105.5 15h9.999a2.5 2.5 0 00.394-4.968c.033-.16.06-.324.077-.49z" clip-rule="evenodd"/>'),ye=v("CloudDownload",'<path d="M6.887 7.2l-.964-.165A2.5 2.5 0 105.5 12H8v1H5.5a3.5 3.5 0 11.59-6.95 5.002 5.002 0 119.804 1.98A2.501 2.501 0 0115.5 13H12v-1h3.5a1.5 1.5 0 00.237-2.981L14.7 8.854l.216-1.028a4 4 0 10-7.843-1.587l-.185.96z"/><path fill-rule="evenodd" d="M7 14.5a.5.5 0 01.707 0L10 16.793l2.293-2.293a.5.5 0 11.707.707l-2.646 2.647a.5.5 0 01-.708 0L7 15.207a.5.5 0 010-.707z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 8a.5.5 0 01.5.5v8a.5.5 0 01-1 0v-8A.5.5 0 0110 8z" clip-rule="evenodd"/>'),we=v("CloudFill",'<path fill-rule="evenodd" d="M5.5 15a3.5 3.5 0 11.59-6.95 5.002 5.002 0 119.804 1.98A2.5 2.5 0 0115.5 15h-10z" clip-rule="evenodd"/>'),Oe=v("CloudUpload",'<path d="M6.887 8.2l-.964-.165A2.5 2.5 0 105.5 13H8v1H5.5a3.5 3.5 0 11.59-6.95 5.002 5.002 0 119.804 1.98A2.501 2.501 0 0115.5 14H12v-1h3.5a1.5 1.5 0 00.237-2.982L14.7 9.854l.216-1.028a4 4 0 10-7.843-1.587l-.185.96z"/><path fill-rule="evenodd" d="M7 10.854a.5.5 0 00.707 0L10 8.56l2.293 2.293a.5.5 0 00.707-.707L10.354 7.5a.5.5 0 00-.708 0L7 10.146a.5.5 0 000 .708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 8a.5.5 0 01.5.5v8a.5.5 0 01-1 0v-8A.5.5 0 0110 8z" clip-rule="evenodd"/>'),ke=v("Code",'<path fill-rule="evenodd" d="M7.854 6.146a.5.5 0 010 .708L4.707 10l3.147 3.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 01.708 0zm4.292 0a.5.5 0 000 .708L15.293 10l-3.147 3.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 00-.708 0z" clip-rule="evenodd"/>'),Se=v("CodeSlash",'<path fill-rule="evenodd" d="M6.854 6.146a.5.5 0 010 .708L3.707 10l3.147 3.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 01.708 0zm6.292 0a.5.5 0 000 .708L16.293 10l-3.147 3.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 00-.708 0zm-.999-3.124a.5.5 0 01.33.625l-4 13a.5.5 0 11-.955-.294l4-13a.5.5 0 01.625-.33z" clip-rule="evenodd"/>'),je=v("Columns",'<path fill-rule="evenodd" d="M17 4H3v12h14V4zM3 3a1 1 0 00-1 1v12a1 1 0 001 1h14a1 1 0 001-1V4a1 1 0 00-1-1H3z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M9.5 16V4h1v12h-1zm0-8H3V7h6.5v1zm7.5 5h-6.5v-1H17v1z" clip-rule="evenodd"/>'),_e=v("ColumnsGutters",'<path fill-rule="evenodd" d="M8 3H3v3h5V3zM3 2a1 1 0 00-1 1v3a1 1 0 001 1h5a1 1 0 001-1V3a1 1 0 00-1-1H3zm14 12h-5v3h5v-3zm-5-1a1 1 0 00-1 1v3a1 1 0 001 1h5a1 1 0 001-1v-3a1 1 0 00-1-1h-5zm-4-3H3v7h5v-7zM3 9a1 1 0 00-1 1v7a1 1 0 001 1h5a1 1 0 001-1v-7a1 1 0 00-1-1H3zm14-6h-5v7h5V3zm-5-1a1 1 0 00-1 1v7a1 1 0 001 1h5a1 1 0 001-1V3a1 1 0 00-1-1h-5z" clip-rule="evenodd"/>'),xe=v("Command",'<path fill-rule="evenodd" d="M4 5.5A1.5 1.5 0 005.5 7H7V5.5a1.5 1.5 0 10-3 0zM8 8V5.5A2.5 2.5 0 105.5 8H8zm8-2.5A1.5 1.5 0 0114.5 7H13V5.5a1.5 1.5 0 013 0zM12 8V5.5A2.5 2.5 0 1114.5 8H12zm-8 6.5A1.5 1.5 0 015.5 13H7v1.5a1.5 1.5 0 01-3 0zM8 12v2.5A2.5 2.5 0 115.5 12H8zm8 2.5a1.5 1.5 0 00-1.5-1.5H13v1.5a1.5 1.5 0 003 0zM12 12v2.5a2.5 2.5 0 102.5-2.5H12z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12 8H8v4h4V8zM7 7v6h6V7H7z" clip-rule="evenodd"/>'),Te=v("Compass",'<path fill-rule="evenodd" d="M10 17.016a6.5 6.5 0 100-13 6.5 6.5 0 000 13zm0 1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z" clip-rule="evenodd"/><rect width="4" height="2" x="8" y="2" rx="1"/><path d="M8.94 9.44l4.95-2.83-2.83 4.95-4.95 2.83 2.83-4.95z"/>'),Be=v("Cone",'<path d="M9.03 3.88c.252-1.01 1.688-1.01 1.94 0L14 16H6L9.03 3.88z"/><path fill-rule="evenodd" d="M3.5 16a.5.5 0 01.5-.5h12a.5.5 0 010 1H4a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),Ce=v("ConeStriped",'<path fill-rule="evenodd" d="M9.879 13.015a.5.5 0 01.242 0l6 1.5a.5.5 0 01.037.96l-6 2a.499.499 0 01-.316 0l-6-2a.5.5 0 01.037-.96l6-1.5z" clip-rule="evenodd"/><path d="M13.885 14.538l-.72-2.877c-.862.212-1.964.339-3.165.339s-2.303-.127-3.165-.339l-.72 2.877c-.073.292-.002.6.256.756.49.295 1.545.706 3.629.706s3.14-.411 3.63-.706c.257-.155.328-.464.255-.756zM11.97 6.88l.953 3.811C12.159 10.878 11.14 11 10 11c-1.14 0-2.159-.122-2.923-.309L8.03 6.88C8.635 6.957 9.3 7 10 7s1.365-.043 1.97-.12zm-.245-.978L10.97 2.88c-.252-1.01-1.688-1.01-1.94 0L8.275 5.9C8.8 5.965 9.382 6 10 6c.618 0 1.2-.036 1.725-.098z"/>'),Pe=v("Controller",'<path fill-rule="evenodd" d="M13.119 4.693c.904.19 1.75.495 2.235.98.407.408.779 1.05 1.094 1.772.32.733.599 1.591.805 2.466.206.875.34 1.78.364 2.606.024.815-.059 1.602-.328 2.21a1.42 1.42 0 01-1.445.83c-.636-.067-1.115-.394-1.513-.773a11.307 11.307 0 01-.739-.809c-.126-.147-.25-.291-.368-.422-.728-.804-1.597-1.527-3.224-1.527-1.627 0-2.496.723-3.224 1.527-.119.131-.242.275-.368.422-.243.283-.494.576-.739.81-.398.378-.877.705-1.513.772a1.42 1.42 0 01-1.445-.83c-.27-.608-.352-1.395-.329-2.21.024-.826.16-1.73.365-2.606.206-.875.486-1.733.805-2.466.315-.722.687-1.364 1.094-1.772.486-.485 1.331-.79 2.235-.98.932-.196 2.03-.292 3.119-.292 1.089 0 2.187.096 3.119.292zm-6.032.979c-.877.185-1.469.443-1.733.708-.276.276-.587.783-.885 1.465a13.748 13.748 0 00-.748 2.295 12.35 12.35 0 00-.339 2.406c-.022.755.062 1.368.243 1.776a.42.42 0 00.426.24c.327-.034.61-.199.929-.502.212-.202.4-.423.615-.674.133-.156.276-.323.44-.505.826-.912 1.943-1.854 3.965-1.854s3.139.942 3.965 1.854c.164.182.307.35.44.505.214.25.403.472.615.674.318.303.601.468.929.503a.42.42 0 00.426-.241c.18-.408.265-1.02.243-1.776a12.353 12.353 0 00-.339-2.406 13.753 13.753 0 00-.748-2.295c-.298-.682-.61-1.19-.885-1.465-.264-.265-.856-.523-1.733-.708-.85-.179-1.877-.27-2.913-.27-1.036 0-2.063.091-2.913.27z" clip-rule="evenodd"/><path d="M13.5 8.026a.5.5 0 11-1 0 .5.5 0 011 0zm-1 1a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0zm-1 1.001a.5.5 0 11-1 0 .5.5 0 011 0zm-7-2.501h1v3h-1v-3z"/><path d="M5.5 8.526h3v1h-3v-1zM5.051 5.26a.5.5 0 01.354-.613l1.932-.518a.5.5 0 01.258.966l-1.932.518a.5.5 0 01-.612-.354zm9.976 0a.5.5 0 00-.353-.613l-1.932-.518a.5.5 0 10-.259.966l1.932.518a.5.5 0 00.612-.354z"/>'),Me=v("CreditCard",'<path fill-rule="evenodd" d="M16 5H4a1 1 0 00-1 1v8a1 1 0 001 1h12a1 1 0 001-1V6a1 1 0 00-1-1zM4 4a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2H4z" clip-rule="evenodd"/><rect width="3" height="3" x="4" y="11" rx="1"/><path d="M3 7h14v2H3z"/>'),qe=v("Cursor",'<path fill-rule="evenodd" d="M16.081 4.182a.5.5 0 01.104.557l-5.657 12.727a.5.5 0 01-.917-.006L7.57 12.694l-4.766-2.042a.5.5 0 01-.006-.917L15.525 4.08a.5.5 0 01.556.103zM4.25 10.184l3.897 1.67a.5.5 0 01.262.263l1.67 3.897L14.743 5.52 4.25 10.184z" clip-rule="evenodd"/>'),Ee=v("CursorFill",'<path fill-rule="evenodd" d="M16.081 4.182a.5.5 0 01.104.557l-5.657 12.727a.5.5 0 01-.917-.006L7.57 12.694l-4.766-2.042a.5.5 0 01-.006-.917L15.525 4.08a.5.5 0 01.556.103z" clip-rule="evenodd"/>'),Ae=v("Dash",'<path fill-rule="evenodd" d="M5.5 10a.5.5 0 01.5-.5h8a.5.5 0 010 1H6a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),ze=v("Diamond",'<path fill-rule="evenodd" d="M5.1 2.7a.5.5 0 01.4-.2h9a.5.5 0 01.4.2l2.976 3.974c.149.185.156.45.01.644L10.4 17.3a.5.5 0 01-.8 0l-7.5-10a.5.5 0 010-.6l3-4zm11.386 3.785l-1.806-2.41-.776 2.413 2.582-.003zm-3.633.004l.961-2.989H6.186l.963 2.995 5.704-.006zM7.47 7.495l5.062-.005L10 15.366 7.47 7.495zm-1.371-.999l-.78-2.422-1.818 2.425 2.598-.003zM3.499 7.5l2.92-.003 2.193 6.82L3.5 7.5zm7.889 6.817l2.194-6.828 2.929-.003-5.123 6.831z" clip-rule="evenodd"/>'),De=v("DiamondHalf",'<path fill-rule="evenodd" d="M8.94 2.354a1.5 1.5 0 012.12 0l6.586 6.585a1.5 1.5 0 010 2.122l-6.585 6.585a1.5 1.5 0 01-2.122 0l-6.585-6.585a1.5 1.5 0 010-2.122l6.585-6.585zm1.06.56a.498.498 0 00-.354.147L3.061 9.646a.5.5 0 000 .707l6.585 6.586a.499.499 0 00.354.147V2.914z" clip-rule="evenodd"/>'),Le=v("Display",'<path d="M7.75 15.5c.167-.333.25-.833.25-1.5h4c0 .667.083 1.167.25 1.5H13a.5.5 0 010 1H7a.5.5 0 010-1h.75z"/><path fill-rule="evenodd" d="M15.991 5H4c-.325 0-.502.078-.602.145a.758.758 0 00-.254.302A1.46 1.46 0 003 6.01V12c0 .325.078.502.145.602.07.105.17.188.302.254a1.464 1.464 0 00.538.143L4.01 13H16c.325 0 .502-.078.602-.145a.758.758 0 00.254-.302 1.464 1.464 0 00.143-.538L17 11.99V6c0-.325-.078-.502-.145-.602a.757.757 0 00-.302-.254A1.46 1.46 0 0015.99 5zM16 4H4C2 4 2 6 2 6v6c0 2 2 2 2 2h12c2 0 2-2 2-2V6c0-2-2-2-2-2z" clip-rule="evenodd"/>'),Ie=v("DisplayFill",'<path d="M7.75 15.5c.167-.333.25-.833.25-1.5h4c0 .667.083 1.167.25 1.5H13a.5.5 0 010 1H7a.5.5 0 010-1h.75z"/><path fill-rule="evenodd" d="M15.991 5H4c-.325 0-.502.078-.602.145a.758.758 0 00-.254.302A1.46 1.46 0 003 6.01V12c0 .325.078.502.145.602.07.105.17.188.302.254a1.464 1.464 0 00.538.143L4.01 13H16c.325 0 .502-.078.602-.145a.758.758 0 00.254-.302 1.464 1.464 0 00.143-.538L17 11.99V6c0-.325-.078-.502-.145-.602a.757.757 0 00-.302-.254A1.46 1.46 0 0015.99 5zM16 4H4C2 4 2 6 2 6v6c0 2 2 2 2 2h12c2 0 2-2 2-2V6c0-2-2-2-2-2z" clip-rule="evenodd"/><path d="M4 6h12v6H4z"/>'),Ne=v("Document",'<path fill-rule="evenodd" d="M6 3h8a2 2 0 012 2v10a2 2 0 01-2 2H6a2 2 0 01-2-2V5a2 2 0 012-2zm0 1a1 1 0 00-1 1v10a1 1 0 001 1h8a1 1 0 001-1V5a1 1 0 00-1-1H6z" clip-rule="evenodd"/>'),He=v("DocumentCode",'<path fill-rule="evenodd" d="M6 3h8a2 2 0 012 2v10a2 2 0 01-2 2H6a2 2 0 01-2-2V5a2 2 0 012-2zm0 1a1 1 0 00-1 1v10a1 1 0 001 1h8a1 1 0 001-1V5a1 1 0 00-1-1H6z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10.646 7.646a.5.5 0 01.708 0l2 2a.5.5 0 010 .708l-2 2a.5.5 0 01-.708-.708L12.293 10l-1.647-1.646a.5.5 0 010-.708zm-1.292 0a.5.5 0 00-.708 0l-2 2a.5.5 0 000 .708l2 2a.5.5 0 00.708-.708L7.707 10l1.647-1.646a.5.5 0 000-.708z" clip-rule="evenodd"/>'),Ve=v("DocumentDiff",'<path fill-rule="evenodd" d="M6 3h8a2 2 0 012 2v10a2 2 0 01-2 2H6a2 2 0 01-2-2V5a2 2 0 012-2zm0 1a1 1 0 00-1 1v10a1 1 0 001 1h8a1 1 0 001-1V5a1 1 0 00-1-1H6z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M7.5 13a.5.5 0 01.5-.5h4a.5.5 0 010 1H8a.5.5 0 01-.5-.5zM10 6.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V7a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M7.5 9a.5.5 0 01.5-.5h4a.5.5 0 010 1H8a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),Fe=v("DocumentRichtext",'<path fill-rule="evenodd" d="M6 3h8a2 2 0 012 2v10a2 2 0 01-2 2H6a2 2 0 01-2-2V5a2 2 0 012-2zm0 1a1 1 0 00-1 1v10a1 1 0 001 1h8a1 1 0 001-1V5a1 1 0 00-1-1H6z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M6.5 14a.5.5 0 01.5-.5h3a.5.5 0 010 1H7a.5.5 0 01-.5-.5zm0-2a.5.5 0 01.5-.5h6a.5.5 0 010 1H7a.5.5 0 01-.5-.5zm1.639-3.958l1.33.886 1.854-1.855a.25.25 0 01.289-.047L13.5 8v1.75a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5v-.5s1.54-1.274 1.639-1.208zM8.25 7a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd"/>'),Re=v("DocumentSpreadsheet",'<path fill-rule="evenodd" d="M6 3h8a2 2 0 012 2v10a2 2 0 01-2 2H6a2 2 0 01-2-2V5a2 2 0 012-2zm0 1a1 1 0 00-1 1v10a1 1 0 001 1h8a1 1 0 001-1V5a1 1 0 00-1-1H6z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M15 8H5V7h10v1zm0 3H5v-1h10v1zm0 3H5v-1h10v1z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M7 16V8h1v8H7zm4 0V8h1v8h-1z" clip-rule="evenodd"/>'),$e=v("DocumentText",'<path fill-rule="evenodd" d="M6 3h8a2 2 0 012 2v10a2 2 0 01-2 2H6a2 2 0 01-2-2V5a2 2 0 012-2zm0 1a1 1 0 00-1 1v10a1 1 0 001 1h8a1 1 0 001-1V5a1 1 0 00-1-1H6z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M6.5 14a.5.5 0 01.5-.5h3a.5.5 0 010 1H7a.5.5 0 01-.5-.5zm0-2a.5.5 0 01.5-.5h6a.5.5 0 010 1H7a.5.5 0 01-.5-.5zm0-2a.5.5 0 01.5-.5h6a.5.5 0 010 1H7a.5.5 0 01-.5-.5zm0-2a.5.5 0 01.5-.5h6a.5.5 0 010 1H7a.5.5 0 01-.5-.5zm0-2a.5.5 0 01.5-.5h6a.5.5 0 010 1H7a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),Ue=v("Documents",'<path fill-rule="evenodd" d="M5 4h8a2 2 0 012 2v10a2 2 0 01-2 2H5a2 2 0 01-2-2V6a2 2 0 012-2zm0 1a1 1 0 00-1 1v10a1 1 0 001 1h8a1 1 0 001-1V6a1 1 0 00-1-1H5z" clip-rule="evenodd"/><path d="M7 2h8a2 2 0 012 2v10a2 2 0 01-2 2v-1a1 1 0 001-1V4a1 1 0 00-1-1H7a1 1 0 00-1 1H5a2 2 0 012-2z"/>'),Ye=v("DocumentsAlt",'<path fill-rule="evenodd" d="M5 3h8a2 2 0 012 2v10a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2zm0 1a1 1 0 00-1 1v10a1 1 0 001 1h8a1 1 0 001-1V5a1 1 0 00-1-1H5z" clip-rule="evenodd"/><path d="M15 6V5a2 2 0 012 2v6a2 2 0 01-2 2v-1a1 1 0 001-1V7a1 1 0 00-1-1z"/>'),We=v("Dot",'<path fill-rule="evenodd" d="M10 11.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z" clip-rule="evenodd"/>'),Ge=v("Download",'<path fill-rule="evenodd" d="M2.5 10a.5.5 0 01.5.5V14a1 1 0 001 1h12a1 1 0 001-1v-3.5a.5.5 0 011 0V14a2 2 0 01-2 2H4a2 2 0 01-2-2v-3.5a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M7 9.5a.5.5 0 01.707 0L10 11.793 12.293 9.5a.5.5 0 01.707.707l-2.646 2.647a.5.5 0 01-.708 0L7 10.207A.5.5 0 017 9.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 3a.5.5 0 01.5.5v8a.5.5 0 01-1 0v-8A.5.5 0 0110 3z" clip-rule="evenodd"/>'),Ke=v("EggFried",'<path fill-rule="evenodd" d="M15.665 8.113a1 1 0 01-.667-.977L15 7a4 4 0 00-6.483-3.136 1 1 0 01-.8.2 4 4 0 00-3.693 6.61 1 1 0 01.2 1 4 4 0 006.67 4.087 1 1 0 011.262-.152 2.5 2.5 0 003.715-2.905 1 1 0 01.341-1.113 2.001 2.001 0 00-.547-3.478zM16 7c0 .057 0 .113-.003.17a3.001 3.001 0 01.822 5.216 3.5 3.5 0 01-5.201 4.065 5 5 0 01-8.336-5.109A5 5 0 017.896 3.08 5 5 0 0116 7z" clip-rule="evenodd"/><circle cx="10" cy="10" r="3"/>'),Ze=v("Eject",'<path fill-rule="evenodd" d="M9.27 3.047a1 1 0 011.46 0l6.345 6.77c.6.638.146 1.683-.73 1.683H3.656c-.876 0-1.33-1.045-.73-1.684L9.27 3.047zm7.076 7.453L10 3.731 3.654 10.5h12.692zM2.5 13.5a1 1 0 011-1h13a1 1 0 011 1v1a1 1 0 01-1 1h-13a1 1 0 01-1-1v-1zm14 0h-13v1h13v-1z" clip-rule="evenodd"/>'),Xe=v("EjectFill",'<path fill-rule="evenodd" d="M9.27 3.047a1 1 0 011.46 0l6.345 6.77c.6.638.146 1.683-.73 1.683H3.656c-.876 0-1.33-1.045-.73-1.684L9.27 3.047zM2.5 13.5a1 1 0 011-1h13a1 1 0 011 1v1a1 1 0 01-1 1h-13a1 1 0 01-1-1v-1z" clip-rule="evenodd"/>'),Je=v("Envelope",'<path fill-rule="evenodd" d="M16 5H4a1 1 0 00-1 1v8a1 1 0 001 1h12a1 1 0 001-1V6a1 1 0 00-1-1zM4 4a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2H4z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M2.071 6.243a.5.5 0 01.686-.172L10 10.417l7.243-4.346a.5.5 0 11.514.858L10 11.583 2.243 6.93a.5.5 0 01-.172-.686z" clip-rule="evenodd"/>'),Qe=v("EnvelopeFill",'<path d="M2.05 5.555L10 10.414l7.95-4.859A2 2 0 0016 4H4a2 2 0 00-1.95 1.555zM18 6.697l-5.875 3.59L18 13.743V6.697zm-.168 8.108l-6.675-3.926-1.157.707-1.157-.707-6.675 3.926A2 2 0 004 16h12a2 2 0 001.832-1.195zM2 13.743l5.875-3.456L2 6.697v7.046z"/>'),tn=v("EnvelopeOpen",'<path fill-rule="evenodd" d="M2.243 8.929l.514-.858L10 12.417l7.243-4.346.514.858L10 13.583 2.243 8.93z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M9.184 12.68l-6.432 3.752-.504-.864 6.432-3.752.504.864zm1.632 0l6.432 3.752.504-.864-6.432-3.752-.504.864z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10.47 3.318a1 1 0 00-.94 0l-6 3.2A1 1 0 003 7.4V16a1 1 0 001 1h12a1 1 0 001-1V7.4a1 1 0 00-.53-.882l-6-3.2zm-1.41-.883a2 2 0 011.882 0l6 3.2A2 2 0 0118 7.4V16a2 2 0 01-2 2H4a2 2 0 01-2-2V7.4a2 2 0 011.059-1.765l6-3.2z" clip-rule="evenodd"/>'),en=v("EnvelopeOpenFill",'<path fill-rule="evenodd" d="M10.941 2.435a2 2 0 00-1.882 0l-6 3.2A2 2 0 002 7.4v.125l8 4.889 8-4.889V7.4a2 2 0 00-1.059-1.765l-6-3.2zM18 8.697l-5.875 3.59L18 15.743V8.697zm-.168 8.108l-6.586-3.874-.088-.052-.897.548-.261.159-.26-.16-.897-.547-.09.052-6.585 3.874A2 2 0 004 18h12a2 2 0 001.832-1.195zM2 15.743l5.875-3.456L2 8.697v7.046z" clip-rule="evenodd"/>'),nn=v("Eye",'<path fill-rule="evenodd" d="M18 10s-3-5.5-8-5.5S2 10 2 10s3 5.5 8 5.5 8-5.5 8-5.5zM3.173 10a13.133 13.133 0 001.66 2.043C6.12 13.332 7.88 14.5 10 14.5c2.12 0 3.879-1.168 5.168-2.457A13.133 13.133 0 0016.828 10a13.133 13.133 0 00-1.66-2.043C13.879 6.668 12.119 5.5 10 5.5c-2.12 0-3.879 1.168-5.168 2.457A13.133 13.133 0 003.172 10z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 7.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5zM6.5 10a3.5 3.5 0 117 0 3.5 3.5 0 01-7 0z" clip-rule="evenodd"/>'),rn=v("EyeFill",'<path d="M12.5 10a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z"/><path fill-rule="evenodd" d="M2 10s3-5.5 8-5.5 8 5.5 8 5.5-3 5.5-8 5.5S2 10 2 10zm8 3.5a3.5 3.5 0 100-7 3.5 3.5 0 000 7z" clip-rule="evenodd"/>'),on=v("EyeSlash",'<path d="M15.359 13.238C17.06 11.72 18 10 18 10s-3-5.5-8-5.5a7.028 7.028 0 00-2.79.588l.77.771A5.944 5.944 0 0110 5.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0116.828 10c-.058.087-.122.183-.195.288a13.14 13.14 0 01-1.465 1.755c-.165.165-.337.328-.517.486l.708.709z"/><path d="M13.297 11.176a3.5 3.5 0 00-4.474-4.474l.823.823a2.5 2.5 0 012.829 2.829l.822.822zm-2.943 1.299l.822.822a3.5 3.5 0 01-4.474-4.474l.823.823a2.5 2.5 0 002.829 2.829z"/><path d="M5.35 7.47c-.18.16-.353.322-.518.487A13.134 13.134 0 003.172 10l.195.288c.335.48.83 1.12 1.465 1.755C6.121 13.332 7.881 14.5 10 14.5c.716 0 1.39-.133 2.02-.36l.77.772A7.027 7.027 0 0110 15.5c-5 0-8-5.5-8-5.5s.939-1.721 2.641-3.238l.708.709z"/><path fill-rule="evenodd" d="M15.646 16.354l-12-12 .708-.708 12 12-.708.707z" clip-rule="evenodd"/>'),an=v("EyeSlashFill",'<path d="M12.79 14.912l-1.614-1.615a3.5 3.5 0 01-4.474-4.474l-2.06-2.06C2.938 8.278 2 10 2 10s3 5.5 8 5.5a7.027 7.027 0 002.79-.588zM7.21 5.088A7.028 7.028 0 0110 4.5c5 0 8 5.5 8 5.5s-.939 1.72-2.641 3.238l-2.062-2.062a3.5 3.5 0 00-4.474-4.474L7.21 5.088z"/><path d="M7.525 9.646a2.5 2.5 0 002.829 2.829l-2.83-2.829zm4.95.708l-2.829-2.83a2.5 2.5 0 012.829 2.829z"/><path fill-rule="evenodd" d="M15.646 16.354l-12-12 .708-.708 12 12-.708.707z" clip-rule="evenodd"/>'),ln=v("Filter",'<path fill-rule="evenodd" d="M7.5 13a.5.5 0 01.5-.5h4a.5.5 0 010 1H8a.5.5 0 01-.5-.5zm-2-3a.5.5 0 01.5-.5h8a.5.5 0 010 1H6a.5.5 0 01-.5-.5zm-2-3a.5.5 0 01.5-.5h12a.5.5 0 010 1H4a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),sn=v("Flag",'<path fill-rule="evenodd" d="M5.5 3a.5.5 0 01.5.5v13a.5.5 0 01-1 0v-13a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M5.762 4.558C6.735 3.909 7.348 3.5 8.5 3.5c.653 0 1.139.325 1.495.562l.032.022c.392.26.646.416.973.416.168 0 .356-.042.587-.126.187-.068.376-.153.593-.25.058-.027.117-.053.18-.08.57-.255 1.278-.544 2.14-.544a.5.5 0 01.5.5v6a.5.5 0 01-.5.5c-.638 0-1.18.21-1.734.457l-.159.07c-.22.1-.453.205-.678.287A2.718 2.718 0 0111 11.5c-.653 0-1.139-.325-1.495-.563l-.032-.021c-.391-.26-.646-.416-.973-.416-.833 0-1.218.246-2.223.916a.5.5 0 11-.515-.858C6.735 9.909 7.348 9.5 8.5 9.5c.653 0 1.139.325 1.495.563l.032.021c.392.26.646.416.973.416.168 0 .356-.042.587-.126.187-.068.376-.153.593-.25.058-.027.117-.053.18-.08.456-.204 1-.43 1.64-.512V4.543c-.433.074-.83.234-1.234.414l-.159.07c-.22.1-.453.205-.678.287A2.72 2.72 0 0111 5.5c-.653 0-1.139-.325-1.495-.562l-.032-.022c-.391-.26-.646-.416-.973-.416-.833 0-1.218.246-2.223.916a.5.5 0 01-.554-.832l.04-.026z" clip-rule="evenodd"/>'),cn=v("FlagFill",'<path fill-rule="evenodd" d="M5.5 3a.5.5 0 01.5.5v13a.5.5 0 01-1 0v-13a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M5.762 4.558C6.735 3.909 7.348 3.5 8.5 3.5c.653 0 1.139.325 1.495.562l.032.022c.392.26.646.416.973.416.168 0 .356-.042.587-.126.187-.068.376-.153.593-.25.058-.027.117-.053.18-.08.57-.255 1.278-.544 2.14-.544a.5.5 0 01.5.5v6a.5.5 0 01-.5.5c-.638 0-1.18.21-1.734.457l-.159.07c-.22.1-.453.205-.678.287A2.718 2.718 0 0111 11.5c-.653 0-1.139-.325-1.495-.563l-.032-.021c-.391-.26-.646-.416-.973-.416-.833 0-1.218.246-2.223.916A.5.5 0 015.5 11V5a.5.5 0 01.223-.416l.04-.026z" clip-rule="evenodd"/>'),un=v("Folder",'<path d="M11.828 6a3 3 0 01-2.12-.879l-.83-.828A1 1 0 008.173 4H4.5a1 1 0 00-1 .981L3.546 6h-1L2.5 5a2 2 0 012-2h3.672a2 2 0 011.414.586l.828.828A2 2 0 0011.828 5v1z"/><path fill-rule="evenodd" d="M15.81 6H4.19a1 1 0 00-.996 1.09l.637 7a1 1 0 00.995.91h10.348a1 1 0 00.995-.91l.637-7A1 1 0 0015.81 6zM4.19 5a2 2 0 00-1.992 2.181l.637 7A2 2 0 004.826 16h10.348a2 2 0 001.991-1.819l.637-7A2 2 0 0015.81 5H4.19z" clip-rule="evenodd"/>'),dn=v("FolderFill",'<path fill-rule="evenodd" d="M11.828 5h3.982a2 2 0 011.992 2.181l-.637 7A2 2 0 0115.174 16H4.826a2 2 0 01-1.991-1.819l-.637-7a1.99 1.99 0 01.342-1.31L2.5 5a2 2 0 012-2h3.672a2 2 0 011.414.586l.828.828A2 2 0 0011.828 5zm-8.322.12C3.72 5.042 3.95 5 4.19 5h5.396l-.707-.707A1 1 0 008.172 4H4.5a1 1 0 00-1 .981l.006.139z" clip-rule="evenodd"/>'),fn=v("FolderSymlink",'<path d="M11.828 6a3 3 0 01-2.12-.879l-.83-.828A1 1 0 008.173 4H4.5a1 1 0 00-1 .981L3.546 6h-1L2.5 5a2 2 0 012-2h3.672a2 2 0 011.414.586l.828.828A2 2 0 0011.828 5v1z"/><path fill-rule="evenodd" d="M15.81 6H4.19a1 1 0 00-.996 1.09l.637 7a1 1 0 00.995.91h10.348a1 1 0 00.995-.91l.637-7A1 1 0 0015.81 6zM4.19 5a2 2 0 00-1.992 2.181l.637 7A2 2 0 004.826 16h10.348a2 2 0 001.991-1.819l.637-7A2 2 0 0015.81 5H4.19z" clip-rule="evenodd"/><path d="M10.616 12.24l3.182-1.969a.442.442 0 000-.742l-3.182-1.97c-.27-.166-.616.036-.616.372V8.7c-.857 0-3.429 0-4 4.8 1.429-2.7 4-2.4 4-2.4v.769c0 .336.346.538.616.371z"/>'),hn=v("FolderSymlinkFill",'<path fill-rule="evenodd" d="M15.81 5h-3.982a2 2 0 01-1.414-.586l-.828-.828A2 2 0 008.172 3H4.5a2 2 0 00-2 2l.04.87a1.99 1.99 0 00-.342 1.311l.637 7A2 2 0 004.826 16h10.348a2 2 0 001.991-1.819l.637-7A2 2 0 0015.81 5zM4.19 5c-.24 0-.47.042-.684.12L3.5 4.98a1 1 0 011-.98h3.672a1 1 0 01.707.293L9.586 5H4.19zm9.608 5.271l-3.182 1.97c-.27.166-.616-.036-.616-.372V11.1s-2.571-.3-4 2.4c.571-4.8 3.143-4.8 4-4.8v-.769c0-.336.346-.538.616-.371l3.182 1.969c.27.166.27.576 0 .742z" clip-rule="evenodd"/>'),pn=v("Fonts",'<path d="M14.258 5H5.747l-.082 2.46h.479c.26-1.544.758-1.783 2.693-1.845l.424-.013v7.827c0 .663-.144.82-1.3.923v.52h4.082v-.52c-1.162-.103-1.306-.26-1.306-.923V5.602l.43.013c1.935.062 2.434.301 2.694 1.846h.479L14.258 5z"/>'),bn=v("Forward",'<path fill-rule="evenodd" d="M11.502 7.513a.144.144 0 00-.202.134V8.65a.5.5 0 01-.5.5H4.5v2.9h6.3a.5.5 0 01.5.5v1.003c0 .108.11.176.202.134l3.984-2.933a.522.522 0 01.042-.028.147.147 0 000-.252.523.523 0 01-.042-.028l-3.984-2.933zm-1.202.134a1.144 1.144 0 011.767-.96l3.994 2.94a1.147 1.147 0 010 1.946l-3.994 2.94a1.144 1.144 0 01-1.767-.96v-.503H4a.5.5 0 01-.5-.5v-3.9a.5.5 0 01.5-.5h6.3v-.503z" clip-rule="evenodd"/>'),vn=v("ForwardFill",'<path d="M11.77 14.11l4.012-2.953a.647.647 0 000-1.114L11.771 7.09a.644.644 0 00-.971.557V8.65H4v3.9h6.8v1.003c0 .505.545.808.97.557z"/>'),mn=v("Gear",'<path fill-rule="evenodd" d="M10.837 3.626c-.246-.835-1.428-.835-1.674 0l-.094.319A1.873 1.873 0 016.377 5.06l-.292-.16c-.764-.415-1.6.42-1.184 1.185l.159.292a1.873 1.873 0 01-1.115 2.692l-.319.094c-.835.246-.835 1.428 0 1.674l.319.094a1.873 1.873 0 011.115 2.693l-.16.291c-.415.764.42 1.6 1.185 1.184l.292-.159a1.873 1.873 0 012.692 1.115l.094.319c.246.835 1.428.835 1.674 0l.094-.319a1.873 1.873 0 012.693-1.115l.291.16c.764.415 1.6-.42 1.184-1.185l-.159-.291a1.873 1.873 0 011.115-2.693l.319-.094c.835-.246.835-1.428 0-1.674l-.319-.094a1.873 1.873 0 01-1.115-2.692l.16-.292c.415-.764-.42-1.6-1.185-1.184l-.291.159a1.873 1.873 0 01-2.693-1.115l-.094-.319zm-2.633-.283c.527-1.79 3.064-1.79 3.592 0l.094.319a.873.873 0 001.255.52l.292-.16c1.64-.892 3.434.901 2.54 2.541l-.159.292a.873.873 0 00.52 1.255l.319.094c1.79.527 1.79 3.064 0 3.592l-.319.094a.873.873 0 00-.52 1.255l.16.292c.893 1.64-.902 3.434-2.541 2.54l-.292-.159a.873.873 0 00-1.255.52l-.094.319c-.527 1.79-3.065 1.79-3.592 0l-.094-.319a.873.873 0 00-1.255-.52l-.292.16c-1.64.893-3.433-.902-2.54-2.541l.159-.292a.873.873 0 00-.52-1.255l-.319-.094c-1.79-.527-1.79-3.065 0-3.592l.319-.094a.873.873 0 00.52-1.255l-.16-.292c-.892-1.64.901-3.433 2.541-2.54l.292.159a.873.873 0 001.255-.52l.094-.319z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 7.754a2.246 2.246 0 100 4.492 2.246 2.246 0 000-4.492zM6.754 10a3.246 3.246 0 116.492 0 3.246 3.246 0 01-6.492 0z" clip-rule="evenodd"/>'),gn=v("GearFill",'<path fill-rule="evenodd" d="M11.405 3.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 01-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 01.872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 012.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 012.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 01.872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 01-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 01-2.105-.872l-.1-.34zM10 12.93a2.929 2.929 0 100-5.858 2.929 2.929 0 000 5.858z" clip-rule="evenodd"/>'),yn=v("GearWide",'<path fill-rule="evenodd" d="M10.932 2.724c-.243-.97-1.621-.97-1.864 0l-.072.286a.96.96 0 01-1.622.434l-.205-.211c-.695-.72-1.889-.03-1.614.932l.08.283a.96.96 0 01-1.187 1.188l-.283-.081c-.962-.275-1.651.919-.932 1.614l.211.205a.96.96 0 01-.434 1.622l-.286.072c-.97.243-.97 1.621 0 1.864l.286.072a.96.96 0 01.434 1.622l-.211.205c-.72.695-.03 1.889.932 1.614l.283-.08a.96.96 0 011.188 1.187l-.081.283c-.275.962.919 1.651 1.614.932l.205-.211a.96.96 0 011.622.434l.072.286c.243.97 1.621.97 1.864 0l.072-.286a.96.96 0 011.622-.434l.205.211c.695.72 1.889.03 1.614-.932l-.08-.283a.96.96 0 011.187-1.188l.283.081c.962.275 1.651-.919.932-1.614l-.211-.205a.96.96 0 01.434-1.622l.286-.072c.97-.243.97-1.621 0-1.864l-.286-.072a.96.96 0 01-.434-1.622l.211-.205c.72-.695.03-1.889-.932-1.614l-.283.08a.96.96 0 01-1.188-1.187l.081-.283c.275-.962-.919-1.651-1.614-.932l-.205.211a.96.96 0 01-1.622-.434l-.072-.286zM10 15a5 5 0 100-10 5 5 0 000 10z" clip-rule="evenodd"/>'),wn=v("GearWideConnected",'<path fill-rule="evenodd" d="M10.932 2.724c-.243-.97-1.621-.97-1.864 0l-.072.286a.96.96 0 01-1.622.434l-.205-.211c-.695-.72-1.889-.03-1.614.932l.08.283a.96.96 0 01-1.187 1.188l-.283-.081c-.962-.275-1.651.919-.932 1.614l.211.205a.96.96 0 01-.434 1.622l-.286.072c-.97.243-.97 1.621 0 1.864l.286.072a.96.96 0 01.434 1.622l-.211.205c-.72.695-.03 1.889.932 1.614l.283-.08a.96.96 0 011.188 1.187l-.081.283c-.275.962.919 1.651 1.614.932l.205-.211a.96.96 0 011.622.434l.072.286c.243.97 1.621.97 1.864 0l.072-.286a.96.96 0 011.622-.434l.205.211c.695.72 1.889.03 1.614-.932l-.08-.283a.96.96 0 011.187-1.188l.283.081c.962.275 1.651-.919.932-1.614l-.211-.205a.96.96 0 01.434-1.622l.286-.072c.97-.243.97-1.621 0-1.864l-.286-.072a.96.96 0 01-.434-1.622l.211-.205c.72-.695.03-1.889-.932-1.614l-.283.08a.96.96 0 01-1.188-1.187l.081-.283c.275-.962-.919-1.651-1.614-.932l-.205.211a.96.96 0 01-1.622-.434l-.072-.286zM10 15a5 5 0 100-10 5 5 0 000 10z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M9.375 10L6.6 6.3l.8-.6 2.85 3.8H15v1h-4.75L7.4 14.3l-.8-.6L9.375 10z" clip-rule="evenodd"/>'),On=v("Geo",'<path d="M13 6a3 3 0 11-6 0 3 3 0 016 0z"/><path d="M9.5 6h1v9a.5.5 0 01-1 0V6z"/><path fill-rule="evenodd" d="M8.489 14.095a.5.5 0 01-.383.594c-.565.123-1.003.292-1.286.472-.302.192-.32.321-.32.339 0 .013.005.085.146.21.14.124.372.26.701.383.655.245 1.593.407 2.653.407s1.998-.162 2.653-.407c.329-.124.56-.259.701-.383.14-.125.146-.197.146-.21 0-.018-.018-.147-.32-.339-.283-.18-.721-.35-1.286-.472a.5.5 0 11.212-.977c.63.137 1.193.34 1.61.606.4.253.784.645.784 1.182 0 .402-.219.724-.483.958-.264.235-.618.423-1.013.57-.793.298-1.855.472-3.004.472s-2.21-.174-3.004-.471c-.395-.148-.749-.337-1.013-.571-.264-.234-.483-.556-.483-.958 0-.537.384-.929.783-1.182.418-.266.98-.47 1.611-.606a.5.5 0 01.595.383z" clip-rule="evenodd"/>'),kn=v("GraphDown",'<path d="M2 2h1v16H2V2zm1 15h15v1H3v-1z"/><path fill-rule="evenodd" d="M16.39 11.041l-4.349-5.436L9 8.646 5.354 5l-.708.707L9 10.061l2.959-2.959 3.65 4.564.781-.625z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12 11.854a.5.5 0 00.5.5h4a.5.5 0 00.5-.5v-4a.5.5 0 00-1 0v3.5h-3.5a.5.5 0 00-.5.5z" clip-rule="evenodd"/>'),Sn=v("GraphUp",'<path d="M2 2h1v16H2V2zm1 15h15v1H3v-1z"/><path fill-rule="evenodd" d="M16.39 6.312l-4.349 5.437L9 8.707l-3.646 3.647-.708-.708L9 7.293l2.959 2.958 3.65-4.563.781.624z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12 5.5a.5.5 0 01.5-.5h4a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6h-3.5a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),jn=v("Grid",'<path fill-rule="evenodd" d="M9.5 4.5a1 1 0 00-1-1h-4a1 1 0 00-1 1v4a1 1 0 001 1h4a1 1 0 001-1v-4zm-1 7h-4v4h4v-4zm7 0h-4v4h4v-4zm0-7h-4v4h4v-4zm-7 0h-4v4h4v-4zm2 0a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4zm-6 6a1 1 0 00-1 1v4a1 1 0 001 1h4a1 1 0 001-1v-4a1 1 0 00-1-1h-4zm7 0a1 1 0 00-1 1v4a1 1 0 001 1h4a1 1 0 001-1v-4a1 1 0 00-1-1h-4z" clip-rule="evenodd"/>'),_n=v("GridFill",'<rect width="6" height="6" x="3.5" y="10.5" rx="1"/><rect width="6" height="6" x="10.5" y="10.5" rx="1"/><rect width="6" height="6" x="10.5" y="3.5" rx="1"/><rect width="6" height="6" x="3.5" y="3.5" rx="1"/>'),xn=v("Hammer",'<path d="M11.812 3.952a.5.5 0 01-.312.89c-1.671 0-2.852.596-3.616 1.185L6.857 7.073V8.21a.5.5 0 01-.146.354L5.426 9.853a.5.5 0 01-.709 0L2.146 7.274a.5.5 0 010-.706l1.286-1.29a.5.5 0 01.354-.146H4.84c1.664-1.904 3.375-2.27 4.716-2.091a5.008 5.008 0 012.076.782l.18.129z"/><path fill-rule="evenodd" d="M8.012 5.5a.5.5 0 01.359.165l9.146 8.646A.5.5 0 0117.5 15L16 16.5a.5.5 0 01-.756-.056L6.598 7.297a.5.5 0 01.048-.65l1-1a.5.5 0 01.366-.147z" clip-rule="evenodd"/>'),Tn=v("Hash",'<path d="M10.39 14.648a1.32 1.32 0 00-.015.18c0 .305.21.508.5.508.266 0 .492-.172.555-.477l.554-2.703h1.204c.421 0 .617-.234.617-.547 0-.312-.188-.53-.617-.53h-.985l.516-2.524h1.265c.43 0 .618-.227.618-.547 0-.313-.188-.524-.618-.524h-1.046l.476-2.304c.008-.04.016-.117.016-.164a.51.51 0 00-.516-.516.54.54 0 00-.539.43l-.523 2.554H9.617l.477-2.304c.008-.04.015-.117.015-.164a.512.512 0 00-.523-.516.539.539 0 00-.531.43L8.53 7.484H7.414c-.43 0-.617.22-.617.532 0 .312.187.539.617.539h.906l-.515 2.523H6.609c-.421 0-.609.219-.609.531 0 .313.188.547.61.547h.976l-.516 2.492c-.008.04-.015.125-.015.18 0 .305.21.508.5.508.265 0 .492-.172.554-.477l.555-2.703h2.242l-.515 2.492zm-1-6.109h2.266l-.515 2.563H8.859l.532-2.563z"/>'),Bn=v("Heart",'<path fill-rule="evenodd" d="M10 4.748l-.717-.737C7.6 2.281 4.514 2.878 3.4 5.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.837-3.362.314-4.385-1.114-2.175-4.2-2.773-5.883-1.043L10 4.748zM10 17C-5.333 6.868 5.279-1.04 9.824 3.143c.06.055.119.112.176.171a3.12 3.12 0 01.176-.17C14.72-1.042 25.333 6.867 10 17z" clip-rule="evenodd"/>'),Cn=v("HeartFill",'<path fill-rule="evenodd" d="M10 3.314C14.438-1.248 25.534 6.735 10 17-5.534 6.736 5.562-1.248 10 3.314z" clip-rule="evenodd"/>'),Pn=v("House",'<path fill-rule="evenodd" d="M9.646 3.146a.5.5 0 01.708 0l6 6a.5.5 0 01.146.354v7a.5.5 0 01-.5.5h-4.5a.5.5 0 01-.5-.5v-4H9v4a.5.5 0 01-.5.5H4a.5.5 0 01-.5-.5v-7a.5.5 0 01.146-.354l6-6zM4.5 9.707V16H8v-4a.5.5 0 01.5-.5h3a.5.5 0 01.5.5v4h3.5V9.707l-5.5-5.5-5.5 5.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M15 4.5V8l-2-2V4.5a.5.5 0 01.5-.5h1a.5.5 0 01.5.5z" clip-rule="evenodd"/>'),Mn=v("HouseFill",'<path d="M8.5 12.995V16.5a.5.5 0 01-.5.5H4a.5.5 0 01-.5-.5v-7a.5.5 0 01.146-.354l6-6a.5.5 0 01.708 0l6 6a.5.5 0 01.146.354v7a.5.5 0 01-.5.5h-4a.5.5 0 01-.5-.5V13c0-.25-.25-.5-.5-.5H9c-.25 0-.5.25-.5.495z"/><path fill-rule="evenodd" d="M15 4.5V8l-2-2V4.5a.5.5 0 01.5-.5h1a.5.5 0 01.5.5z" clip-rule="evenodd"/>'),qn=v("Image",'<path fill-rule="evenodd" d="M16.002 4h-12a1 1 0 00-1 1v10a1 1 0 001 1h12a1 1 0 001-1V5a1 1 0 00-1-1zm-12-1a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2h-12z" clip-rule="evenodd"/><path d="M12.648 9.646a.5.5 0 01.577-.093l3.777 1.947V16h-14v-2l2.646-2.354a.5.5 0 01.63-.062l2.66 1.773 3.71-3.71z"/><path fill-rule="evenodd" d="M6.502 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3z" clip-rule="evenodd"/>'),En=v("ImageAlt",'<path d="M12.648 8.646a.5.5 0 01.577-.093l4.777 3.947V17a1 1 0 01-1 1h-14a1 1 0 01-1-1v-2l3.646-4.354a.5.5 0 01.63-.062l2.66 2.773 3.71-4.71z"/><path fill-rule="evenodd" d="M6.5 7a2.5 2.5 0 100-5 2.5 2.5 0 000 5z" clip-rule="evenodd"/>'),An=v("ImageFill",'<path fill-rule="evenodd" d="M2.002 5a2 2 0 012-2h12a2 2 0 012 2v10a2 2 0 01-2 2h-12a2 2 0 01-2-2V5zm1 9l2.646-2.354a.5.5 0 01.63-.062l2.66 1.773 3.71-3.71a.5.5 0 01.577-.094l3.777 1.947V15a1 1 0 01-1 1h-12a1 1 0 01-1-1v-1zm5-6.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z" clip-rule="evenodd"/>'),zn=v("Images",'<path fill-rule="evenodd" d="M14.002 6h-10a1 1 0 00-1 1v8a1 1 0 001 1h10a1 1 0 001-1V7a1 1 0 00-1-1zm-10-1a2 2 0 00-2 2v8a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-10z" clip-rule="evenodd"/><path d="M12.648 10.646a.5.5 0 01.577-.093l1.777 1.947V16h-12v-1l2.646-2.354a.5.5 0 01.63-.062l2.66 1.773 3.71-3.71z"/><path fill-rule="evenodd" d="M6.502 11a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM6 4h10a1 1 0 011 1v8a1 1 0 01-1 1v1a2 2 0 002-2V5a2 2 0 00-2-2H6a2 2 0 00-2 2h1a1 1 0 011-1z" clip-rule="evenodd"/>'),Dn=v("Inbox",'<path fill-rule="evenodd" d="M5.81 6.063A1.5 1.5 0 016.98 5.5h6.04a1.5 1.5 0 011.17.563l3.7 4.625a.5.5 0 11-.78.624l-3.7-4.624a.5.5 0 00-.39-.188H6.98a.5.5 0 00-.39.188l-3.7 4.624a.5.5 0 11-.78-.624l3.7-4.625z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M2.125 10.67a.5.5 0 01.375-.17H8a.5.5 0 01.5.5 1.5 1.5 0 003 0 .5.5 0 01.5-.5h5.5a.5.5 0 01.496.562l-.39 3.124a1.5 1.5 0 01-1.489 1.314H3.883a1.5 1.5 0 01-1.489-1.314l-.39-3.124a.5.5 0 01.121-.393zm.941.83l.32 2.562a.5.5 0 00.497.438h12.234a.5.5 0 00.496-.438l.32-2.562H12.45a2.5 2.5 0 01-4.9 0H3.066z" clip-rule="evenodd"/>'),Ln=v("InboxFill",'<path fill-rule="evenodd" d="M5.81 6.063A1.5 1.5 0 016.98 5.5h6.04a1.5 1.5 0 011.17.563l3.7 4.625a.5.5 0 11-.78.624l-3.7-4.624a.5.5 0 00-.39-.188H6.98a.5.5 0 00-.39.188l-3.7 4.624a.5.5 0 11-.78-.624l3.7-4.625z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M2.125 10.67a.5.5 0 01.375-.17h5a.5.5 0 01.5.5c0 .828.625 2 2 2s2-1.172 2-2a.5.5 0 01.5-.5h5a.5.5 0 01.496.562l-.39 3.124a1.5 1.5 0 01-1.489 1.314H3.883a1.5 1.5 0 01-1.489-1.314l-.39-3.124a.5.5 0 01.121-.393z" clip-rule="evenodd"/>'),In=v("Inboxes",'<path fill-rule="evenodd" d="M2.125 13.17A.5.5 0 012.5 13H8a.5.5 0 01.5.5 1.5 1.5 0 003 0 .5.5 0 01.5-.5h5.5a.5.5 0 01.496.562l-.39 3.124A1.5 1.5 0 0116.117 18H3.883a1.5 1.5 0 01-1.489-1.314l-.39-3.124a.5.5 0 01.121-.393zm.941.83l.32 2.562a.5.5 0 00.497.438h12.234a.5.5 0 00.496-.438l.32-2.562H12.45a2.5 2.5 0 01-4.9 0H3.066zM5.81 2.563A1.5 1.5 0 016.98 2h6.04a1.5 1.5 0 011.17.563l3.7 4.625a.5.5 0 11-.78.624l-3.7-4.624A.5.5 0 0013.02 3H6.98a.5.5 0 00-.39.188l-3.7 4.624a.5.5 0 11-.78-.624l3.7-4.625z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M2.125 7.17A.5.5 0 012.5 7H8a.5.5 0 01.5.5 1.5 1.5 0 003 0A.5.5 0 0112 7h5.5a.5.5 0 01.496.562l-.39 3.124A1.5 1.5 0 0116.117 12H3.883a1.5 1.5 0 01-1.489-1.314l-.39-3.124a.5.5 0 01.121-.393zm.941.83l.32 2.562a.5.5 0 00.497.438h12.234a.5.5 0 00.496-.438L16.933 8H12.45a2.5 2.5 0 01-4.9 0H3.066z" clip-rule="evenodd"/>'),Nn=v("InboxesFill",'<path fill-rule="evenodd" d="M2.125 13.17A.5.5 0 012.5 13H8a.5.5 0 01.5.5 1.5 1.5 0 003 0 .5.5 0 01.5-.5h5.5a.5.5 0 01.496.562l-.39 3.124A1.5 1.5 0 0116.117 18H3.883a1.5 1.5 0 01-1.489-1.314l-.39-3.124a.5.5 0 01.121-.393zM5.81 2.563A1.5 1.5 0 016.98 2h6.04a1.5 1.5 0 011.17.563l3.7 4.625a.5.5 0 11-.78.624l-3.7-4.624A.5.5 0 0013.02 3H6.98a.5.5 0 00-.39.188l-3.7 4.624a.5.5 0 11-.78-.624l3.7-4.625z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M2.125 7.17A.5.5 0 012.5 7H8a.5.5 0 01.5.5 1.5 1.5 0 003 0A.5.5 0 0112 7h5.5a.5.5 0 01.496.562l-.39 3.124A1.5 1.5 0 0116.117 12H3.883a1.5 1.5 0 01-1.489-1.314l-.39-3.124a.5.5 0 01.121-.393z" clip-rule="evenodd"/>'),Hn=v("Info",'<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"/><path d="M10.93 8.588l-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533l1.002-4.705z"/><circle cx="10" cy="6.5" r="1"/>'),Vn=v("InfoFill",'<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm.93-9.412l-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533l1.002-4.705zM10 7.5a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"/>'),Fn=v("InfoSquare",'<path fill-rule="evenodd" d="M16 3H4a1 1 0 00-1 1v12a1 1 0 001 1h12a1 1 0 001-1V4a1 1 0 00-1-1zM4 2a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V4a2 2 0 00-2-2H4z" clip-rule="evenodd"/><path d="M10.93 8.588l-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533l1.002-4.705z"/><circle cx="10" cy="6.5" r="1"/>'),Rn=v("InfoSquareFill",'<path fill-rule="evenodd" d="M2 4a2 2 0 012-2h12a2 2 0 012 2v12a2 2 0 01-2 2H4a2 2 0 01-2-2V4zm8.93 4.588l-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533l1.002-4.705zM10 7.5a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"/>'),$n=v("Justify",'<path fill-rule="evenodd" d="M4 14.5a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm0-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm0-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm0-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),Un=v("JustifyLeft",'<path fill-rule="evenodd" d="M4 14.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zm0-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm0-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm0-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),Yn=v("JustifyRight",'<path fill-rule="evenodd" d="M8 14.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zm-4-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm0-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm0-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),Wn=v("Kanban",'<path fill-rule="evenodd" d="M15.5 3h-11a1 1 0 00-1 1v12a1 1 0 001 1h11a1 1 0 001-1V4a1 1 0 00-1-1zm-11-1a2 2 0 00-2 2v12a2 2 0 002 2h11a2 2 0 002-2V4a2 2 0 00-2-2h-11z" clip-rule="evenodd"/><rect width="3" height="5" x="8.5" y="4" rx="1"/><rect width="3" height="9" x="4.5" y="4" rx="1"/><rect width="3" height="12" x="12.5" y="4" rx="1"/>'),Gn=v("KanbanFill",'<path fill-rule="evenodd" d="M4.5 2a2 2 0 00-2 2v12a2 2 0 002 2h11a2 2 0 002-2V4a2 2 0 00-2-2h-11zm5 2a1 1 0 00-1 1v3a1 1 0 001 1h1a1 1 0 001-1V5a1 1 0 00-1-1h-1zm-5 1a1 1 0 011-1h1a1 1 0 011 1v7a1 1 0 01-1 1h-1a1 1 0 01-1-1V5zm9-1a1 1 0 00-1 1v10a1 1 0 001 1h1a1 1 0 001-1V5a1 1 0 00-1-1h-1z" clip-rule="evenodd"/>'),Kn=v("Laptop",'<path fill-rule="evenodd" d="M15.5 4h-11a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5zm-11-1A1.5 1.5 0 003 4.5v7A1.5 1.5 0 004.5 13h11a1.5 1.5 0 001.5-1.5v-7A1.5 1.5 0 0015.5 3h-11z" clip-rule="evenodd"/><path d="M2.81 13.758A1 1 0 013.78 13h12.44a1 1 0 01.97.758l.5 2A1 1 0 0116.72 17H3.28a1 1 0 01-.97-1.242l.5-2z"/>'),Zn=v("LayoutSidebar",'<path fill-rule="evenodd" d="M16 4H4a1 1 0 00-1 1v10a1 1 0 001 1h12a1 1 0 001-1V5a1 1 0 00-1-1zM4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M6 16V4h1v12H6z" clip-rule="evenodd"/>'),Xn=v("LayoutSidebarReverse",'<path fill-rule="evenodd" d="M16 4H4a1 1 0 00-1 1v10a1 1 0 001 1h12a1 1 0 001-1V5a1 1 0 00-1-1zM4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M13 16V4h1v12h-1z" clip-rule="evenodd"/>'),Jn=v("LayoutSplit",'<path fill-rule="evenodd" d="M1.5 5A2.5 2.5 0 014 2.5h12A2.5 2.5 0 0118.5 5v10a2.5 2.5 0 01-2.5 2.5H4A2.5 2.5 0 011.5 15V5zM4 3.5A1.5 1.5 0 002.5 5v10A1.5 1.5 0 004 16.5h12a1.5 1.5 0 001.5-1.5V5A1.5 1.5 0 0016 3.5h-5.5v13h-1v-13H4z" clip-rule="evenodd"/>'),Qn=v("List",'<path fill-rule="evenodd" d="M4.5 13.5A.5.5 0 015 13h10a.5.5 0 010 1H5a.5.5 0 01-.5-.5zm0-4A.5.5 0 015 9h10a.5.5 0 010 1H5a.5.5 0 01-.5-.5zm0-4A.5.5 0 015 5h10a.5.5 0 010 1H5a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),er=v("ListCheck",'<path fill-rule="evenodd" d="M7 13.5a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5zm0-4a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5zm0-4a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5zM5.854 4.146a.5.5 0 010 .708l-1.5 1.5a.5.5 0 01-.708 0l-.5-.5a.5.5 0 11.708-.708L4 5.293l1.146-1.147a.5.5 0 01.708 0zm0 4a.5.5 0 010 .708l-1.5 1.5a.5.5 0 01-.708 0l-.5-.5a.5.5 0 11.708-.708L4 9.293l1.146-1.147a.5.5 0 01.708 0zm0 4a.5.5 0 010 .708l-1.5 1.5a.5.5 0 01-.708 0l-.5-.5a.5.5 0 01.708-.708l.146.147 1.146-1.147a.5.5 0 01.708 0z" clip-rule="evenodd"/>'),nr=v("ListOl",'<path fill-rule="evenodd" d="M7 13.5a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5zm0-4a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5zm0-4a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5z" clip-rule="evenodd"/><path d="M3.713 13.865v-.474H4c.217 0 .363-.137.363-.317 0-.185-.158-.31-.361-.31-.223 0-.367.152-.373.31h-.59c.016-.467.373-.787.986-.787.588-.002.954.291.957.703a.595.595 0 01-.492.594v.033a.615.615 0 01.569.631c.003.533-.502.8-1.051.8-.656 0-1-.37-1.008-.794h.582c.008.178.186.306.422.309.254 0 .424-.145.422-.35-.002-.195-.155-.348-.414-.348h-.3zm-.004-4.699h-.604v-.035c0-.408.295-.844.958-.844.583 0 .96.326.96.756 0 .389-.257.617-.476.848l-.537.572v.03h1.054V11H3.143v-.395l.957-.99c.138-.142.293-.304.293-.508 0-.18-.147-.32-.342-.32a.33.33 0 00-.342.338v.041zM4.564 7h-.635V4.924h-.031l-.598.42v-.567l.629-.443h.635V7z"/>'),rr=v("ListTask",'<path fill-rule="evenodd" d="M4 4.5a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h1a.5.5 0 00.5-.5V5a.5.5 0 00-.5-.5H4zM5 5H4v1h1V5z" clip-rule="evenodd"/><path d="M7 5.5a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5zM7.5 9a.5.5 0 000 1h9a.5.5 0 000-1h-9zm0 4a.5.5 0 000 1h9a.5.5 0 000-1h-9z"/><path fill-rule="evenodd" d="M3.5 9a.5.5 0 01.5-.5h1a.5.5 0 01.5.5v1a.5.5 0 01-.5.5H4a.5.5 0 01-.5-.5V9zM4 9h1v1H4V9zm0 3.5a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h1a.5.5 0 00.5-.5v-1a.5.5 0 00-.5-.5H4zm1 .5H4v1h1v-1z" clip-rule="evenodd"/>'),or=v("ListUl",'<path fill-rule="evenodd" d="M7 13.5a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5zm0-4a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5zm0-4a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5zm-3 1a1 1 0 100-2 1 1 0 000 2zm0 4a1 1 0 100-2 1 1 0 000 2zm0 4a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"/>'),ir=v("Lock",'<path fill-rule="evenodd" d="M13.655 9H6.333c-.264 0-.398.068-.471.121a.73.73 0 00-.224.296 1.626 1.626 0 00-.138.59V15c0 .342.076.531.14.635.064.106.151.18.256.237a1.122 1.122 0 00.436.127l.013.001h7.322c.264 0 .398-.068.471-.121a.73.73 0 00.224-.296 1.627 1.627 0 00.138-.59V10c0-.342-.076-.531-.14-.635a.658.658 0 00-.255-.237 1.123 1.123 0 00-.45-.128zm.012-1H6.333C4.5 8 4.5 10 4.5 10v5c0 2 1.833 2 1.833 2h7.334c1.833 0 1.833-2 1.833-2v-5c0-2-1.833-2-1.833-2zM6.5 5a3.5 3.5 0 117 0v3h-1V5a2.5 2.5 0 00-5 0v3h-1V5z" clip-rule="evenodd"/>'),ar=v("LockFill",'<rect width="11" height="9" x="4.5" y="8" rx="2"/><path fill-rule="evenodd" d="M6.5 5a3.5 3.5 0 117 0v3h-1V5a2.5 2.5 0 00-5 0v3h-1V5z" clip-rule="evenodd"/>'),lr=v("Map",'<path fill-rule="evenodd" d="M17.817 2.613A.5.5 0 0118 3v13a.5.5 0 01-.402.49l-5 1a.502.502 0 01-.196 0L7.5 16.51l-4.902.98A.5.5 0 012 17V4a.5.5 0 01.402-.49l5-1a.5.5 0 01.196 0l4.902.98 4.902-.98a.5.5 0 01.415.103zM12 4.41l-4-.8v11.98l4 .8V4.41zm1 11.98l4-.8V3.61l-4 .8v11.98zm-6-.8V3.61l-4 .8v11.98l4-.8z" clip-rule="evenodd"/>'),sr=v("Mic",'<path d="M7 5a3 3 0 016 0v5a3 3 0 11-6 0V5z"/><path fill-rule="evenodd" d="M5.5 8.5A.5.5 0 016 9v1a4 4 0 008 0V9a.5.5 0 011 0v1a5 5 0 01-4.5 4.975V17h3a.5.5 0 010 1h-7a.5.5 0 010-1h3v-2.025A5 5 0 015 10V9a.5.5 0 01.5-.5z" clip-rule="evenodd"/>'),cr=v("Moon",'<path d="M17.293 13.293A8 8 0 016.707 2.707a8.002 8.002 0 1010.586 10.586z"/>'),ur=v("MusicPlayer",'<path fill-rule="evenodd" d="M14 3H6a1 1 0 00-1 1v12a1 1 0 001 1h8a1 1 0 001-1V4a1 1 0 00-1-1zM6 2a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4a2 2 0 00-2-2H6z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M13 5H7v3h6V5zM7 4a1 1 0 00-1 1v3a1 1 0 001 1h6a1 1 0 001-1V5a1 1 0 00-1-1H7zm3 11a2 2 0 100-4 2 2 0 000 4zm3-2a3 3 0 11-6 0 3 3 0 016 0z" clip-rule="evenodd"/><circle cx="10" cy="13" r="1"/>'),dr=v("MusicPlayerFill",'<path fill-rule="evenodd" d="M4 4a2 2 0 012-2h8a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 1a1 1 0 011-1h6a1 1 0 011 1v2.5a1 1 0 01-1 1H7a1 1 0 01-1-1V5zm7 8a3 3 0 11-6 0 3 3 0 016 0z" clip-rule="evenodd"/><circle cx="10" cy="13" r="1"/>'),fr=v("Option",'<path fill-rule="evenodd" d="M2.5 4.5A.5.5 0 013 4h4a.5.5 0 01.439.26L13.297 15H17a.5.5 0 010 1h-4a.5.5 0 01-.439-.26L6.703 5H3a.5.5 0 01-.5-.5zm10 0A.5.5 0 0113 4h4a.5.5 0 010 1h-4a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),pr=v("Outlet",'<path fill-rule="evenodd" d="M5.34 4.994c.275-.338.68-.494 1.074-.494h7.172c.393 0 .798.156 1.074.494.578.708 1.84 2.534 1.84 5.006 0 2.472-1.262 4.297-1.84 5.006-.276.338-.68.494-1.074.494H6.414c-.394 0-.799-.156-1.074-.494C4.762 14.297 3.5 12.472 3.5 10c0-2.472 1.262-4.298 1.84-5.006zm1.074.506a.376.376 0 00-.299.126C5.599 6.259 4.5 7.863 4.5 10c0 2.137 1.099 3.74 1.615 4.374.06.073.163.126.3.126h7.17c.137 0 .24-.053.3-.126.516-.633 1.615-2.237 1.615-4.374 0-2.137-1.099-3.74-1.615-4.374a.376.376 0 00-.3-.126h-7.17z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M8 7.5a.5.5 0 01.5.5v1.5a.5.5 0 01-1 0V8a.5.5 0 01.5-.5zm4 0a.5.5 0 01.5.5v1.5a.5.5 0 01-1 0V8a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path d="M9 12v1h2v-1a1 1 0 10-2 0z"/>'),vr=v("Pause",'<path fill-rule="evenodd" d="M8 5.5a.5.5 0 01.5.5v8a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zm4 0a.5.5 0 01.5.5v8a.5.5 0 01-1 0V6a.5.5 0 01.5-.5z" clip-rule="evenodd"/>'),mr=v("PauseFill",'<path d="M7.5 5.5A1.5 1.5 0 019 7v6a1.5 1.5 0 01-3 0V7a1.5 1.5 0 011.5-1.5zm5 0A1.5 1.5 0 0114 7v6a1.5 1.5 0 01-3 0V7a1.5 1.5 0 011.5-1.5z"/>'),gr=v("Pen",'<path fill-rule="evenodd" d="M7.707 15.707a1 1 0 01-.39.242l-3 1a1 1 0 01-1.266-1.265l1-3a1 1 0 01.242-.391L12.086 4.5a2 2 0 012.828 0l.586.586a2 2 0 010 2.828l-7.793 7.793zM5 13l7.793-7.793a1 1 0 011.414 0l.586.586a1 1 0 010 1.414L7 15l-3 1 1-3z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M11.854 4.56a.5.5 0 00-.708 0L7.854 7.855a.5.5 0 11-.708-.708l3.293-3.292a1.5 1.5 0 012.122 0l.293.292a.5.5 0 11-.708.708l-.292-.293z" clip-rule="evenodd"/><path d="M15.293 3.207a1 1 0 011.414 0l.03.03a1 1 0 01.03 1.383L15.5 6 14 4.5l1.293-1.293z"/>'),yr=v("Pencil",'<path fill-rule="evenodd" d="M13.293 3.293a1 1 0 011.414 0l2 2a1 1 0 010 1.414l-9 9a1 1 0 01-.39.242l-3 1a1 1 0 01-1.266-1.265l1-3a1 1 0 01.242-.391l9-9zM14 4l2 2-9 9-3 1 1-3 9-9z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M14.146 8.354l-2.5-2.5.708-.708 2.5 2.5-.708.708zM5 12v.5a.5.5 0 00.5.5H6v.5a.5.5 0 00.5.5H7v.5a.5.5 0 00.5.5H8v-1.5a.5.5 0 00-.5-.5H7v-.5a.5.5 0 00-.5-.5H5z" clip-rule="evenodd"/>'),wr=v("People",'<path fill-rule="evenodd" d="M17 16s1 0 1-1-1-4-5-4-5 3-5 4 1 1 1 1h8zm-7.995-.944v-.002zM9.022 15h7.956a.274.274 0 00.014-.002l.008-.002c-.002-.264-.167-1.03-.76-1.72C15.688 12.629 14.718 12 13 12c-1.717 0-2.687.63-3.24 1.276-.593.69-.759 1.457-.76 1.72a1.05 1.05 0 00.022.004zm7.973.056v-.002zM13 9a2 2 0 100-4 2 2 0 000 4zm3-2a3 3 0 11-6 0 3 3 0 016 0zm-7.064 4.28a5.873 5.873 0 00-1.23-.247A7.334 7.334 0 007 11c-4 0-5 3-5 4 0 .667.333 1 1 1h4.216A2.238 2.238 0 017 15c0-1.01.377-2.042 1.09-2.904.243-.294.526-.569.846-.816zM6.92 12c-1.668.02-2.615.64-3.16 1.276C3.163 13.97 3 14.739 3 15h3c0-1.045.323-2.086.92-3zM3.5 7.5a3 3 0 116 0 3 3 0 01-6 0zm3-2a2 2 0 100 4 2 2 0 000-4z" clip-rule="evenodd"/>'),Or=v("PeopleFill",'<path fill-rule="evenodd" d="M9 16s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H9zm4-6a3 3 0 100-6 3 3 0 000 6zm-5.784 6A2.238 2.238 0 017 15c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 007 11c-4 0-5 3-5 4s1 1 1 1h4.216zM6.5 10a2.5 2.5 0 100-5 2.5 2.5 0 000 5z" clip-rule="evenodd"/>'),kr=v("Person",'<path fill-rule="evenodd" d="M15 16s1 0 1-1-1-4-6-4-6 3-6 4 1 1 1 1h10zm-9.995-.944v-.002zM5.022 15h9.956a.274.274 0 00.014-.002l.008-.002c-.001-.246-.154-.986-.832-1.664C13.516 12.68 12.289 12 10 12c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664a1.05 1.05 0 00.022.004zm9.974.056v-.002zM10 9a2 2 0 100-4 2 2 0 000 4zm3-2a3 3 0 11-6 0 3 3 0 016 0z" clip-rule="evenodd"/>'),Sr=v("PersonFill",'<path fill-rule="evenodd" d="M5 16s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H5zm5-6a3 3 0 100-6 3 3 0 000 6z" clip-rule="evenodd"/>'),jr=v("Phone",'<path fill-rule="evenodd" d="M13 3H7a1 1 0 00-1 1v11a1 1 0 001 1h6a1 1 0 001-1V4a1 1 0 00-1-1zM7 2a2 2 0 00-2 2v11a2 2 0 002 2h6a2 2 0 002-2V4a2 2 0 00-2-2H7z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 15a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"/>'),_r=v("PhoneLandscape",'<path fill-rule="evenodd" d="M3.5 6.5v6a1 1 0 001 1h11a1 1 0 001-1v-6a1 1 0 00-1-1h-11a1 1 0 00-1 1zm-1 6a2 2 0 002 2h11a2 2 0 002-2v-6a2 2 0 00-2-2h-11a2 2 0 00-2 2v6z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M15.5 9.5a1 1 0 10-2 0 1 1 0 002 0z" clip-rule="evenodd"/>'),xr=v("PieChart",'<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm0 1a8 8 0 100-16 8 8 0 000 16z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M9.5 9.793V3h1v6.5H17v1h-6.793l-4.853 4.854-.708-.708L9.5 9.793z" clip-rule="evenodd"/>'),Tr=v("PieChartFill",'<path d="M17.985 10.5h-7.778l-5.5 5.5a8 8 0 0013.277-5.5zM4 15.292A8 8 0 019.5 2.015v7.778l-5.5 5.5zm6.5-13.277V9.5h7.485A8.001 8.001 0 0010.5 2.015z"/>'),Br=v("Play",'<path fill-rule="evenodd" d="M12.804 10L7 6.633v6.734L12.804 10zm.792-.696a.802.802 0 010 1.392l-6.363 3.692C6.713 14.69 6 14.345 6 13.692V6.308c0-.653.713-.998 1.233-.696l6.363 3.692z" clip-rule="evenodd"/>'),Cr=v("PlayFill",'<path d="M13.596 10.697l-6.363 3.692c-.54.313-1.233-.066-1.233-.697V6.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 010 1.393z"/>'),Pr=v("Plug",'<path d="M6 7h8v3a4 4 0 01-8 0V7z"/><path fill-rule="evenodd" d="M8 3.5a.5.5 0 01.5.5v3a.5.5 0 01-1 0V4a.5.5 0 01.5-.5zm4 0a.5.5 0 01.5.5v3a.5.5 0 01-1 0V4a.5.5 0 01.5-.5zM9.115 15.651c.256-.511.385-1.408.385-2.651h1c0 1.257-.121 2.36-.49 3.099-.191.381-.47.707-.87.877-.401.17-.845.15-1.298-.002-.961-.32-1.534-.175-1.851.046-.33.23-.491.615-.491.98h-1c0-.635.278-1.353.918-1.8.653-.456 1.58-.561 2.74-.174.297.099.478.078.592.03.115-.05.244-.161.365-.405z" clip-rule="evenodd"/>'),Mr=v("Plus",'<path fill-rule="evenodd" d="M10 5.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H6a.5.5 0 010-1h3.5V6a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M9.5 10a.5.5 0 01.5-.5h4a.5.5 0 010 1h-3.5V14a.5.5 0 01-1 0v-4z" clip-rule="evenodd"/>'),qr=v("Power",'<path fill-rule="evenodd" d="M7.578 6.437a5 5 0 104.922.044l.5-.865a6 6 0 11-5.908-.053l.486.874z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M9.5 10V3h1v7h-1z" clip-rule="evenodd"/>'),Er=v("Question",'<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm8-7a8 8 0 11-16 0 8 8 0 0116 0z" clip-rule="evenodd"/><path d="M7.25 8.033h1.32c0-.781.458-1.384 1.36-1.384.685 0 1.313.343 1.313 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.007.463h1.307v-.355c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.326 0-2.786.647-2.754 2.533zm1.562 5.516c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"/>'),Ar=v("QuestionFill",'<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zM8.57 8.033H7.25C7.22 6.147 8.68 5.5 10.006 5.5c1.397 0 2.673.73 2.673 2.24 0 1.08-.635 1.594-1.244 2.057-.737.559-1.01.768-1.01 1.486v.355H9.117l-.007-.463c-.038-.927.495-1.498 1.168-1.987.59-.444.965-.736.965-1.371 0-.825-.628-1.168-1.314-1.168-.901 0-1.358.603-1.358 1.384zm1.251 6.443c-.584 0-1.009-.394-1.009-.927 0-.552.425-.94 1.01-.94.609 0 1.028.388 1.028.94 0 .533-.42.927-1.029.927z" clip-rule="evenodd"/>'),zr=v("QuestionSquare",'<path fill-rule="evenodd" d="M16 3H4a1 1 0 00-1 1v12a1 1 0 001 1h12a1 1 0 001-1V4a1 1 0 00-1-1zM4 2a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V4a2 2 0 00-2-2H4z" clip-rule="evenodd"/><path d="M7.25 8.033h1.32c0-.781.458-1.384 1.36-1.384.685 0 1.313.343 1.313 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.007.463h1.307v-.355c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.326 0-2.786.647-2.754 2.533zm1.562 5.516c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"/>'),Dr=v("QuestionSquareFill",'<path fill-rule="evenodd" d="M4 2a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V4a2 2 0 00-2-2H4zm4.57 6.033H7.25C7.22 6.147 8.68 5.5 10.006 5.5c1.397 0 2.673.73 2.673 2.24 0 1.08-.635 1.594-1.244 2.057-.737.559-1.01.768-1.01 1.486v.355H9.117l-.007-.463c-.038-.927.495-1.498 1.168-1.987.59-.444.965-.736.965-1.371 0-.825-.628-1.168-1.314-1.168-.901 0-1.358.603-1.358 1.384zm1.251 6.443c-.584 0-1.009-.394-1.009-.927 0-.552.425-.94 1.01-.94.609 0 1.028.388 1.028.94 0 .533-.42.927-1.029.927z" clip-rule="evenodd"/>'),Lr=v("Reply",'<path fill-rule="evenodd" d="M11.502 7.013a.144.144 0 00-.202.134V8.3a.5.5 0 01-.5.5c-.667 0-2.013.005-3.3.822-.984.624-1.99 1.76-2.595 3.876 1.02-.983 2.185-1.516 3.205-1.799a8.745 8.745 0 011.921-.306 7.468 7.468 0 01.798.008h.013l.005.001h.001l-.048.498.05-.498a.5.5 0 01.45.498v1.153c0 .108.11.176.202.134l3.984-2.933a.522.522 0 01.042-.028.147.147 0 000-.252.51.51 0 01-.042-.028l-3.984-2.933zM10.3 12.386a7.745 7.745 0 00-1.923.277c-1.326.368-2.896 1.201-3.94 3.08a.5.5 0 01-.933-.305c.464-3.71 1.886-5.662 3.46-6.66 1.245-.79 2.527-.942 3.336-.971v-.66a1.144 1.144 0 011.767-.96l3.994 2.94a1.147 1.147 0 010 1.946l-3.994 2.94a1.144 1.144 0 01-1.767-.96v-.667z" clip-rule="evenodd"/>'),Ir=v("ReplyAll",'<path fill-rule="evenodd" d="M10.002 7.013a.144.144 0 00-.202.134V8.3a.5.5 0 01-.5.5c-.667 0-2.013.005-3.3.822-.984.624-1.99 1.76-2.595 3.876 1.02-.983 2.185-1.516 3.205-1.799a8.745 8.745 0 011.921-.306 7.47 7.47 0 01.798.008h.013l.005.001h.001L9.3 11.9l.05-.498a.5.5 0 01.45.498v1.153c0 .108.11.176.202.134l3.984-2.933a.522.522 0 01.042-.028.147.147 0 000-.252.51.51 0 01-.042-.028l-3.984-2.933zM8.8 12.386a7.745 7.745 0 00-1.923.277c-1.326.368-2.896 1.201-3.94 3.08a.5.5 0 01-.933-.305c.464-3.71 1.886-5.662 3.46-6.66 1.245-.79 2.527-.942 3.336-.971v-.66a1.144 1.144 0 011.767-.96l3.994 2.94a1.147 1.147 0 010 1.946l-3.994 2.94a1.144 1.144 0 01-1.767-.96v-.667z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12.868 6.293a.5.5 0 01.7-.106l3.993 2.94a1.147 1.147 0 010 1.946l-3.994 2.94a.5.5 0 11-.593-.805l4.012-2.954a.523.523 0 01.042-.028.147.147 0 000-.252.512.512 0 01-.042-.028l-4.012-2.954a.5.5 0 01-.106-.699z" clip-rule="evenodd"/>'),Nr=v("ReplyAllFill",'<path d="M10.079 13.9l4.568-3.281a.719.719 0 000-1.238L10.079 6.1A.716.716 0 009 6.719V8c-1.5 0-6 0-7 8 2.5-4.5 7-4 7-4v1.281c0 .56.606.898 1.079.62z"/><path fill-rule="evenodd" d="M12.868 6.293a.5.5 0 01.7-.106l3.993 2.94a1.147 1.147 0 010 1.946l-3.994 2.94a.5.5 0 11-.593-.805l4.012-2.954a.523.523 0 01.042-.028.147.147 0 000-.252.512.512 0 01-.042-.028l-4.012-2.954a.5.5 0 01-.106-.699z" clip-rule="evenodd"/>'),Hr=v("ReplyFill",'<path d="M11.079 13.9l4.568-3.281a.719.719 0 000-1.238L11.079 6.1A.716.716 0 0010 6.719V8c-1.5 0-6 0-7 8 2.5-4.5 7-4 7-4v1.281c0 .56.606.898 1.079.62z"/>'),Vr=v("Screwdriver",'<path fill-rule="evenodd" d="M2 3l1-1 3.081 2.2a1 1 0 01.419.815v.07a1 1 0 00.293.708L12.5 11.5l.914-.305a1 1 0 011.023.242l3.356 3.356a1 1 0 010 1.414l-1.586 1.586a1 1 0 01-1.414 0l-3.356-3.356a1 1 0 01-.242-1.023l.305-.914-5.707-5.707a1 1 0 00-.707-.293h-.071a1 1 0 01-.814-.419L2 3zm11.354 9.646a.5.5 0 00-.708.708l3 3a.5.5 0 00.708-.708l-3-3z" clip-rule="evenodd"/>'),Fr=v("Search",'<path fill-rule="evenodd" d="M12.442 12.442a1 1 0 011.415 0l3.85 3.85a1 1 0 01-1.414 1.415l-3.85-3.85a1 1 0 010-1.415z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M8.5 14a5.5 5.5 0 100-11 5.5 5.5 0 000 11zM15 8.5a6.5 6.5 0 11-13 0 6.5 6.5 0 0113 0z" clip-rule="evenodd"/>'),Rr=v("Shield",'<path fill-rule="evenodd" d="M7.443 3.991a60.17 60.17 0 00-2.725.802.454.454 0 00-.315.366C3.87 9.056 5.1 11.9 6.567 13.773c.736.94 1.533 1.636 2.197 2.093.333.228.626.394.857.5.116.053.21.089.282.11A.73.73 0 0010 16.5a.774.774 0 00.097-.023c.072-.022.166-.058.282-.111.23-.106.524-.272.857-.5a10.198 10.198 0 002.197-2.093C14.9 11.9 16.13 9.056 15.597 5.159a.454.454 0 00-.315-.366c-.626-.2-1.682-.526-2.725-.802C11.491 3.71 10.51 3.5 10 3.5c-.51 0-1.49.21-2.557.491zm-.256-.966C8.23 2.749 9.337 2.5 10 2.5c.662 0 1.77.249 2.813.525 1.066.282 2.14.614 2.772.815.528.168.926.623 1.003 1.184.573 4.197-.756 7.307-2.367 9.365a11.192 11.192 0 01-2.418 2.3 6.942 6.942 0 01-1.007.586c-.27.124-.558.225-.796.225s-.527-.101-.796-.225a6.908 6.908 0 01-1.007-.586 11.192 11.192 0 01-2.418-2.3c-1.611-2.058-2.94-5.168-2.367-9.365A1.454 1.454 0 014.415 3.84a61.113 61.113 0 012.772-.815z" clip-rule="evenodd"/>'),$r=v("ShieldFill",'<path fill-rule="evenodd" d="M7.187 3.025C8.23 2.749 9.337 2.5 10 2.5c.662 0 1.77.249 2.813.525 1.066.282 2.14.614 2.772.815.528.168.926.623 1.003 1.184.573 4.197-.756 7.307-2.367 9.365a11.192 11.192 0 01-2.418 2.3 6.942 6.942 0 01-1.007.586c-.27.124-.558.225-.796.225s-.527-.101-.796-.225a6.908 6.908 0 01-1.007-.586 11.192 11.192 0 01-2.418-2.3c-1.611-2.058-2.94-5.168-2.367-9.365A1.454 1.454 0 014.415 3.84a61.113 61.113 0 012.772-.815z" clip-rule="evenodd"/>'),Ur=v("ShieldLock",'<path fill-rule="evenodd" d="M7.443 3.991a60.17 60.17 0 00-2.725.802.454.454 0 00-.315.366C3.87 9.056 5.1 11.9 6.567 13.773c.736.94 1.533 1.636 2.197 2.093.333.228.626.394.857.5.116.053.21.089.282.11A.73.73 0 0010 16.5a.774.774 0 00.097-.023c.072-.022.166-.058.282-.111.23-.106.524-.272.857-.5a10.198 10.198 0 002.197-2.093C14.9 11.9 16.13 9.056 15.597 5.159a.454.454 0 00-.315-.366c-.626-.2-1.682-.526-2.725-.802C11.491 3.71 10.51 3.5 10 3.5c-.51 0-1.49.21-2.557.491zm-.256-.966C8.23 2.749 9.337 2.5 10 2.5c.662 0 1.77.249 2.813.525 1.066.282 2.14.614 2.772.815.528.168.926.623 1.003 1.184.573 4.197-.756 7.307-2.367 9.365a11.192 11.192 0 01-2.418 2.3 6.942 6.942 0 01-1.007.586c-.27.124-.558.225-.796.225s-.527-.101-.796-.225a6.908 6.908 0 01-1.007-.586 11.192 11.192 0 01-2.418-2.3c-1.611-2.058-2.94-5.168-2.367-9.365A1.454 1.454 0 014.415 3.84a61.113 61.113 0 012.772-.815z" clip-rule="evenodd"/><path d="M11.5 8.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"/><path d="M9.41 10.034a.5.5 0 01.494-.417h.156a.5.5 0 01.492.414l.347 2a.5.5 0 01-.493.585h-.835a.5.5 0 01-.493-.582l.333-2z"/>'),Yr=v("ShieldLockFill",'<path fill-rule="evenodd" d="M7.187 3.025C8.23 2.749 9.337 2.5 10 2.5c.662 0 1.77.249 2.813.525a61.1 61.1 0 012.772.815c.527.168.926.623 1.003 1.184.573 4.197-.756 7.307-2.368 9.365a11.19 11.19 0 01-2.417 2.3 6.942 6.942 0 01-1.007.586c-.27.124-.558.225-.796.225s-.527-.101-.796-.225a6.908 6.908 0 01-1.007-.586 11.192 11.192 0 01-2.418-2.3c-1.611-2.058-2.94-5.168-2.367-9.365A1.454 1.454 0 014.415 3.84a61.105 61.105 0 012.772-.815zm3.328 6.884a1.5 1.5 0 10-1.06-.011.5.5 0 00-.044.136l-.333 2a.5.5 0 00.493.582h.835a.5.5 0 00.493-.585l-.347-2a.501.501 0 00-.037-.122z" clip-rule="evenodd"/>'),Wr=v("ShieldShaded",'<path fill-rule="evenodd" d="M7.443 3.991a60.17 60.17 0 00-2.725.802.454.454 0 00-.315.366C3.87 9.056 5.1 11.9 6.567 13.773c.736.94 1.533 1.636 2.197 2.093.333.228.626.394.857.5.116.053.21.089.282.11A.73.73 0 0010 16.5a.774.774 0 00.097-.023c.072-.022.166-.058.282-.111a5.94 5.94 0 00.857-.5 10.198 10.198 0 002.197-2.093C14.9 11.9 16.13 9.056 15.597 5.159a.454.454 0 00-.315-.366c-.626-.2-1.682-.526-2.725-.802C11.491 3.71 10.51 3.5 10 3.5c-.51 0-1.49.21-2.557.491zm-.256-.966C8.23 2.749 9.337 2.5 10 2.5c.662 0 1.77.249 2.813.525 1.066.282 2.14.614 2.772.815.528.168.926.623 1.003 1.184.573 4.197-.756 7.307-2.367 9.365a11.192 11.192 0 01-2.418 2.3 6.942 6.942 0 01-1.007.586c-.27.124-.558.225-.796.225s-.526-.101-.796-.225a6.908 6.908 0 01-1.007-.586 11.192 11.192 0 01-2.418-2.3c-1.611-2.058-2.94-5.168-2.367-9.365A1.454 1.454 0 014.415 3.84a61.105 61.105 0 012.772-.815z" clip-rule="evenodd"/><path d="M10 4.25c.909 0 3.188.685 4.254 1.022a.94.94 0 01.656.773c.814 6.424-4.13 9.452-4.91 9.452V4.25z"/>'),Gr=v("Shift",'<path fill-rule="evenodd" d="M9.27 4.047a1 1 0 011.46 0l6.345 6.77c.6.638.146 1.683-.73 1.683H13.5v3a1 1 0 01-1 1h-5a1 1 0 01-1-1v-3H3.654c-.875 0-1.328-1.045-.73-1.684L9.27 4.047zm7.076 7.453L10 4.731 3.654 11.5H6.5a1 1 0 011 1v3h5v-3a1 1 0 011-1h2.846z" clip-rule="evenodd"/>'),Kr=v("ShiftFill",'<path fill-rule="evenodd" d="M9.27 4.047a1 1 0 011.46 0l6.345 6.769c.6.639.146 1.684-.73 1.684H13.5v3a1 1 0 01-1 1h-5a1 1 0 01-1-1v-3H3.654c-.875 0-1.328-1.045-.73-1.684L9.27 4.047z" clip-rule="evenodd"/>'),Zr=v("SkipBackward",'<path fill-rule="evenodd" d="M2.5 5.5A.5.5 0 013 6v3.248l6.267-3.636c.52-.302 1.233.043 1.233.696v2.94l6.267-3.636c.52-.302 1.233.043 1.233.696v7.384c0 .653-.713.998-1.233.696L10.5 10.752v2.94c0 .653-.713.998-1.233.696L3 10.752V14a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zm7 1.133L3.696 10 9.5 13.367V6.633zm7.5 0L11.196 10 17 13.367V6.633z" clip-rule="evenodd"/>'),Xr=v("SkipBackwardFill",'<path stroke="currentColor" stroke-linecap="round" d="M14 6v8"/><path d="M13.596 10.697l-6.363 3.692c-.54.313-1.233-.066-1.233-.697V6.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 010 1.393z"/>'),Jr=v("SkipEnd",'<path fill-rule="evenodd" d="M14 5.5a.5.5 0 01.5.5v8a.5.5 0 01-1 0V6a.5.5 0 01.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12.804 10L7 6.633v6.734L12.804 10zm.792-.696a.802.802 0 010 1.392l-6.363 3.692C6.713 14.69 6 14.345 6 13.692V6.308c0-.653.713-.998 1.233-.696l6.363 3.692z" clip-rule="evenodd"/>'),Qr=v("SkipEndFill",'<path stroke="currentColor" stroke-linecap="round" d="M2.5 6v8"/><path d="M2.904 10.697l6.363 3.692c.54.313 1.233-.066 1.233-.697V6.308c0-.63-.693-1.01-1.233-.696L2.904 9.304a.802.802 0 000 1.393z"/><path d="M10.404 10.697l6.363 3.692c.54.313 1.233-.066 1.233-.697V6.308c0-.63-.692-1.01-1.233-.696l-6.363 3.692a.802.802 0 000 1.393z"/>'),to=v("SkipForward",'<path fill-rule="evenodd" d="M17.5 5.5a.5.5 0 01.5.5v8a.5.5 0 01-1 0v-3.248l-6.267 3.636c-.52.302-1.233-.043-1.233-.696v-2.94l-6.267 3.636C2.713 14.69 2 14.345 2 13.692V6.308c0-.653.713-.998 1.233-.696L9.5 9.248v-2.94c0-.653.713-.998 1.233-.696L17 9.248V6a.5.5 0 01.5-.5zM3 6.633v6.734L8.804 10 3 6.633zm7.5 0v6.734L16.304 10 10.5 6.633z" clip-rule="evenodd"/>'),eo=v("SkipForwardFill",'<path stroke="currentColor" stroke-linecap="round" d="M17.5 6v8"/><path d="M9.596 10.697l-6.363 3.692c-.54.313-1.233-.066-1.233-.697V6.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 010 1.393z"/><path d="M17.096 10.697l-6.363 3.692c-.54.313-1.233-.066-1.233-.697V6.308c0-.63.693-1.01 1.233-.696l6.363 3.692a.802.802 0 010 1.393z"/>'),no=v("SkipStart",'<path fill-rule="evenodd" d="M6.5 5.5A.5.5 0 006 6v8a.5.5 0 001 0V6a.5.5 0 00-.5-.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M7.696 10L13.5 6.633v6.734L7.696 10zm-.792-.696a.802.802 0 000 1.392l6.363 3.692c.52.302 1.233-.043 1.233-.696V6.308c0-.653-.713-.998-1.233-.696L6.904 9.304z" clip-rule="evenodd"/>'),ro=v("SkipStartFill",'<path stroke="currentColor" stroke-linecap="round" d="M6.5 6v8"/><path d="M6.903 10.697l6.364 3.692c.54.313 1.232-.066 1.232-.697V6.308c0-.63-.692-1.01-1.232-.696L6.903 9.304a.802.802 0 000 1.393z"/>'),oo=v("Speaker",'<path d="M11 6a1 1 0 11-2 0 1 1 0 012 0zm-2.5 6.5a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z"/><path fill-rule="evenodd" d="M6 2a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4a2 2 0 00-2-2H6zm6 4a2 2 0 11-4 0 2 2 0 014 0zm-2 3a3.5 3.5 0 100 7 3.5 3.5 0 000-7z" clip-rule="evenodd"/>'),io=v("Square",'<path fill-rule="evenodd" d="M16 3H4a1 1 0 00-1 1v12a1 1 0 001 1h12a1 1 0 001-1V4a1 1 0 00-1-1zM4 2a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V4a2 2 0 00-2-2H4z" clip-rule="evenodd"/>'),ao=v("SquareFill",'<rect width="16" height="16" x="2" y="2" rx="2"/>'),lo=v("SquareHalf",'<path fill-rule="evenodd" d="M10 3H4a1 1 0 00-1 1v12a1 1 0 001 1h6V3zM4 2a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V4a2 2 0 00-2-2H4z" clip-rule="evenodd"/>'),so=v("Star",'<path fill-rule="evenodd" d="M4.866 16.85c-.078.444.36.791.746.593l4.39-2.256 4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73 3.523-3.356c.329-.314.158-.888-.283-.95l-4.898-.696-2.184-4.327a.513.513 0 00-.927 0L7.354 7.12l-4.898.696c-.441.062-.612.636-.282.95l3.522 3.356-.83 4.73zm4.905-2.767l-3.686 1.894.694-3.957a.565.565 0 00-.163-.505L3.71 8.745l4.052-.576a.525.525 0 00.393-.288l1.847-3.658 1.846 3.658c.08.157.226.264.393.288l4.053.575-2.907 2.77a.564.564 0 00-.163.506l.694 3.957-3.686-1.894a.503.503 0 00-.461 0z" clip-rule="evenodd"/>'),co=v("StarFill",'<path d="M5.612 17.443c-.386.198-.824-.149-.746-.592l.83-4.73-3.522-3.356c-.33-.314-.16-.888.282-.95l4.898-.696 2.184-4.327c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.283.95l-3.523 3.356.83 4.73c.078.443-.36.79-.746.592L10 15.187l-4.389 2.256z"/>'),uo=v("StarHalf",'<path fill-rule="evenodd" d="M7.354 7.119l2.184-4.327A.516.516 0 0110 2.5c.183 0 .366.097.465.292l2.184 4.327 4.898.696A.537.537 0 0118 8.32a.55.55 0 01-.17.445l-3.523 3.356.83 4.73c.078.443-.36.79-.746.592L10 15.187l-4.389 2.256a.52.52 0 01-.146.05c-.341.06-.668-.254-.6-.642l.83-4.73-3.522-3.356a.55.55 0 01-.172-.403.59.59 0 01.084-.302.513.513 0 01.37-.245l4.898-.696zM10 14.027c.08 0 .16.018.232.056l3.686 1.894-.694-3.957a.564.564 0 01.163-.505l2.907-2.77-4.053-.576a.525.525 0 01-.393-.288l-1.847-3.658-.001.003v9.8z" clip-rule="evenodd"/>'),fo=v("Stop",'<path fill-rule="evenodd" d="M5.5 7A1.5 1.5 0 017 5.5h6A1.5 1.5 0 0114.5 7v6a1.5 1.5 0 01-1.5 1.5H7A1.5 1.5 0 015.5 13V7zM7 6.5a.5.5 0 00-.5.5v6a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V7a.5.5 0 00-.5-.5H7z" clip-rule="evenodd"/>'),ho=v("StopFill",'<path d="M7 5.5h6A1.5 1.5 0 0114.5 7v6a1.5 1.5 0 01-1.5 1.5H7A1.5 1.5 0 015.5 13V7A1.5 1.5 0 017 5.5z"/>'),po=v("Stopwatch",'<path fill-rule="evenodd" d="M10 17a6 6 0 100-12 6 6 0 000 12zm0 1a7 7 0 100-14 7 7 0 000 14z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 6.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H6.5a.5.5 0 010-1h3V7a.5.5 0 01.5-.5zm-2.5-4A.5.5 0 018 2h4a.5.5 0 010 1H8a.5.5 0 01-.5-.5z" clip-rule="evenodd"/><path d="M9 3h2v2H9V3z"/>'),bo=v("StopwatchFill",'<path fill-rule="evenodd" d="M7.5 2.5A.5.5 0 018 2h4a.5.5 0 010 1h-1v1.07A7.002 7.002 0 0110 18 7 7 0 019 4.07V3H8a.5.5 0 01-.5-.5zm3 4.5a.5.5 0 00-1 0v3.5h-3a.5.5 0 000 1H10a.5.5 0 00.5-.5V7z" clip-rule="evenodd"/>'),vo=v("Sun",'<path d="M5.5 10a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0z"/><path fill-rule="evenodd" d="M10.202 2.28a.25.25 0 00-.404 0l-.91 1.255a.25.25 0 01-.334.067L7.232 2.79a.25.25 0 00-.374.155l-.36 1.508a.25.25 0 01-.282.189l-1.532-.244a.25.25 0 00-.286.286l.244 1.532a.25.25 0 01-.189.282l-1.508.36a.25.25 0 00-.155.374l.812 1.322a.25.25 0 01-.067.333l-1.256.91a.25.25 0 000 .405l1.256.91a.25.25 0 01.067.334l-.812 1.322a.25.25 0 00.155.374l1.508.36a.25.25 0 01.19.282l-.245 1.532a.25.25 0 00.286.286l1.532-.244a.25.25 0 01.282.189l.36 1.508a.25.25 0 00.374.155l1.322-.812a.25.25 0 01.333.067l.91 1.256a.25.25 0 00.405 0l.91-1.256a.25.25 0 01.334-.067l1.322.812a.25.25 0 00.374-.155l.36-1.508a.25.25 0 01.282-.19l1.532.245a.25.25 0 00.286-.286l-.244-1.532a.25.25 0 01.189-.282l1.508-.36a.25.25 0 00.155-.374l-.812-1.322a.25.25 0 01.067-.333l1.256-.91a.25.25 0 000-.405l-1.256-.91a.25.25 0 01-.067-.334l.812-1.322a.25.25 0 00-.155-.374l-1.508-.36a.25.25 0 01-.19-.282l.245-1.532a.25.25 0 00-.286-.286l-1.532.244a.25.25 0 01-.282-.189l-.36-1.509a.25.25 0 00-.374-.154l-1.322.812a.25.25 0 01-.333-.067l-.91-1.256zM10 4.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11z" clip-rule="evenodd"/>'),mo=v("Table",'<path fill-rule="evenodd" d="M16 3H4a1 1 0 00-1 1v12a1 1 0 001 1h12a1 1 0 001-1V4a1 1 0 00-1-1zM4 2a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V4a2 2 0 00-2-2H4z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M17 6H3V5h14v1z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M7 17.5v-14h1v14H7zm5 0v-14h1v14h-1z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M17 10H3V9h14v1zm0 4H3v-1h14v1z" clip-rule="evenodd"/><path d="M2 4a2 2 0 012-2h12a2 2 0 012 2v2H2V4z"/>'),go=v("Tablet",'<path fill-rule="evenodd" d="M14 3.5H6a1 1 0 00-1 1v11a1 1 0 001 1h8a1 1 0 001-1v-11a1 1 0 00-1-1zm-8-1a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2v-11a2 2 0 00-2-2H6z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 15.5a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"/>'),yo=v("TabletLandscape",'<path fill-rule="evenodd" d="M3.5 6v8a1 1 0 001 1h11a1 1 0 001-1V6a1 1 0 00-1-1h-11a1 1 0 00-1 1zm-1 8a2 2 0 002 2h11a2 2 0 002-2V6a2 2 0 00-2-2h-11a2 2 0 00-2 2v8z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M15.5 10a1 1 0 10-2 0 1 1 0 002 0z" clip-rule="evenodd"/>'),wo=v("Tag",'<path fill-rule="evenodd" d="M2.5 4A1.5 1.5 0 014 2.5h4.586a1.5 1.5 0 011.06.44l7 7a1.5 1.5 0 010 2.12l-4.585 4.586a1.5 1.5 0 01-2.122 0l-7-7a1.5 1.5 0 01-.439-1.06V4zM4 3.5a.5.5 0 00-.5.5v4.586a.5.5 0 00.146.353l7 7a.5.5 0 00.708 0l4.585-4.585a.5.5 0 000-.708l-7-7a.5.5 0 00-.353-.146H4z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4.5 6.5a2 2 0 114 0 2 2 0 01-4 0zm2-1a1 1 0 100 2 1 1 0 000-2z" clip-rule="evenodd"/>'),Oo=v("TagFill",'<path fill-rule="evenodd" d="M4 3a1 1 0 00-1 1v4.586a1 1 0 00.293.707l7 7a1 1 0 001.414 0l4.586-4.586a1 1 0 000-1.414l-7-7A1 1 0 008.586 3H4zm4 3.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z" clip-rule="evenodd"/>'),ko=v("Terminal",'<path fill-rule="evenodd" d="M16 4H4a1 1 0 00-1 1v10a1 1 0 001 1h12a1 1 0 001-1V5a1 1 0 00-1-1zM4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M8 11a.5.5 0 01.5-.5h3a.5.5 0 010 1h-3A.5.5 0 018 11zM5.146 6.146a.5.5 0 01.708 0l2 2a.5.5 0 010 .708l-2 2a.5.5 0 01-.708-.708L6.793 8.5 5.146 6.854a.5.5 0 010-.708z" clip-rule="evenodd"/>'),So=v("TerminalFill",'<path fill-rule="evenodd" d="M2 5a2 2 0 012-2h12a2 2 0 012 2v10a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm9.5 5.5h-3a.5.5 0 000 1h3a.5.5 0 000-1zm-6.354-.354L6.793 8.5 5.146 6.854a.5.5 0 11.708-.708l2 2a.5.5 0 010 .708l-2 2a.5.5 0 01-.708-.708z" clip-rule="evenodd"/>'),jo=v("TextCenter",'<path fill-rule="evenodd" d="M6 14.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zm-2-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm2-3a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zm-2-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),_o=v("TextIndentLeft",'<path fill-rule="evenodd" d="M4 5.5a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm.646 2.146a.5.5 0 01.708 0l2 2a.5.5 0 010 .708l-2 2a.5.5 0 01-.708-.708L6.293 10 4.646 8.354a.5.5 0 010-.708zM9 8.5a.5.5 0 01.5-.5h6a.5.5 0 010 1h-6a.5.5 0 01-.5-.5zm0 3a.5.5 0 01.5-.5h6a.5.5 0 010 1h-6a.5.5 0 01-.5-.5zm-5 3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),xo=v("TextIndentRight",'<path fill-rule="evenodd" d="M4 5.5a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm10.646 2.146a.5.5 0 01.708.708L13.707 10l1.647 1.646a.5.5 0 01-.708.708l-2-2a.5.5 0 010-.708l2-2zM4 8.5a.5.5 0 01.5-.5h6a.5.5 0 010 1h-6a.5.5 0 01-.5-.5zm0 3a.5.5 0 01.5-.5h6a.5.5 0 010 1h-6a.5.5 0 01-.5-.5zm0 3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),To=v("TextLeft",'<path fill-rule="evenodd" d="M4 14.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zm0-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm0-3a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zm0-3a.5.5 0 01.5-.5h11a.5.5 0 010 1h-11a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),Bo=v("TextRight",'<path stroke="currentColor" stroke-linecap="round" d="M8.5 14.5h7m-11-3h11m-7-3h7m-11-3h11"/>'),Co=v("ThreeDots",'<path fill-rule="evenodd" d="M5 11.5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" clip-rule="evenodd"/>'),Po=v("ThreeDotsVertical",'<path fill-rule="evenodd" d="M11.5 15a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm0-5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm0-5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z" clip-rule="evenodd"/>'),Mo=v("ToggleOff",'<path fill-rule="evenodd" d="M13 6a4 4 0 010 8h-3a4.992 4.992 0 002-4 4.992 4.992 0 00-2-4h3zm-6 8a4 4 0 110-8 4 4 0 010 8zm-5-4a5 5 0 005 5h6a5 5 0 000-10H7a5 5 0 00-5 5z" clip-rule="evenodd"/>'),qo=v("ToggleOn",'<path fill-rule="evenodd" d="M7 5a5 5 0 000 10h6a5 5 0 000-10H7zm6 9a4 4 0 100-8 4 4 0 000 8z" clip-rule="evenodd"/>'),Eo=v("Toggles",'<path fill-rule="evenodd" d="M13.5 3h-7a2.5 2.5 0 000 5h7a2.5 2.5 0 000-5zm-7-1a3.5 3.5 0 100 7h7a3.5 3.5 0 100-7h-7zm0 9a3.5 3.5 0 100 7h7a3.5 3.5 0 100-7h-7zm7 6a2.5 2.5 0 100-5 2.5 2.5 0 000 5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 5.5a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zM6.5 8a2.5 2.5 0 100-5 2.5 2.5 0 000 5z" clip-rule="evenodd"/>'),Ao=v("Tools",'<path fill-rule="evenodd" d="M2 3l1-1 3.081 2.2a1 1 0 01.419.815v.07a1 1 0 00.293.708L12.5 11.5l.914-.305a1 1 0 011.023.242l3.356 3.356a1 1 0 010 1.414l-1.586 1.586a1 1 0 01-1.414 0l-3.356-3.356a1 1 0 01-.242-1.023l.305-.914-5.707-5.707a1 1 0 00-.707-.293h-.071a1 1 0 01-.814-.419L2 3zm11.354 9.646a.5.5 0 00-.708.708l3 3a.5.5 0 00.708-.708l-3-3z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M17.898 4.223a3.003 3.003 0 01-3.679 3.674L7.878 14.15a3 3 0 11-2.027-2.027l6.252-6.341a3 3 0 013.675-3.68l-2.142 2.142L14 6l1.757.364 2.141-2.141zm-13.37 9.019L5 13l.471.242.529.026.287.445.445.287.026.529L7 15l-.242.471-.026.529-.445.287-.287.445-.529.026L5 17l-.471-.242L4 16.732l-.287-.445L3.268 16l-.026-.529L3 15l.242-.471.026-.529.445-.287.287-.445.529-.026z" clip-rule="evenodd"/>'),zo=v("Trash",'<path d="M7.5 7.5A.5.5 0 018 8v6a.5.5 0 01-1 0V8a.5.5 0 01.5-.5zm2.5 0a.5.5 0 01.5.5v6a.5.5 0 01-1 0V8a.5.5 0 01.5-.5zm3 .5a.5.5 0 00-1 0v6a.5.5 0 001 0V8z"/><path fill-rule="evenodd" d="M16.5 5a1 1 0 01-1 1H15v9a2 2 0 01-2 2H7a2 2 0 01-2-2V6h-.5a1 1 0 01-1-1V4a1 1 0 011-1H8a1 1 0 011-1h2a1 1 0 011 1h3.5a1 1 0 011 1v1zM6.118 6L6 6.059V15a1 1 0 001 1h6a1 1 0 001-1V6.059L13.882 6H6.118zM4.5 5V4h11v1h-11z" clip-rule="evenodd"/>'),Do=v("TrashFill",'<path fill-rule="evenodd" d="M4.5 3a1 1 0 00-1 1v1a1 1 0 001 1H5v9a2 2 0 002 2h6a2 2 0 002-2V6h.5a1 1 0 001-1V4a1 1 0 00-1-1H12a1 1 0 00-1-1H9a1 1 0 00-1 1H4.5zm3 4a.5.5 0 01.5.5v7a.5.5 0 01-1 0v-7a.5.5 0 01.5-.5zM10 7a.5.5 0 01.5.5v7a.5.5 0 01-1 0v-7A.5.5 0 0110 7zm3 .5a.5.5 0 00-1 0v7a.5.5 0 001 0v-7z" clip-rule="evenodd"/>'),Lo=v("Triangle",'<path fill-rule="evenodd" d="M9.938 4.016a.146.146 0 00-.054.057L3.027 15.74a.176.176 0 00-.002.183c.016.03.037.05.054.06.015.01.034.017.066.017h13.713a.12.12 0 00.066-.017.163.163 0 00.055-.06.176.176 0 00-.003-.183L10.12 4.073a.146.146 0 00-.054-.057.13.13 0 00-.063-.016.13.13 0 00-.064.016zm1.043-.45a1.13 1.13 0 00-1.96 0L2.166 15.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L10.982 3.566z" clip-rule="evenodd"/>'),Io=v("TriangleFill",'<path fill-rule="evenodd" d="M9.022 3.566a1.13 1.13 0 011.96 0l6.857 11.667c.457.778-.092 1.767-.98 1.767H3.144c-.889 0-1.437-.99-.98-1.767L9.022 3.566z" clip-rule="evenodd"/>'),No=v("TriangleHalf",'<path fill-rule="evenodd" d="M9.938 4.016a.146.146 0 00-.054.057L3.027 15.74a.176.176 0 00-.002.183c.016.03.037.05.054.06.015.01.034.017.066.017l6.857-.017V4a.13.13 0 00-.064.016zm1.043-.45a1.13 1.13 0 00-1.96 0L2.166 15.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L10.982 3.566z" clip-rule="evenodd"/>'),Ho=v("Trophy",'<path d="M5 3h10c-.495 3.467-.5 10-5 10S5.495 6.467 5 3zm0 15a1 1 0 011-1h8a1 1 0 011 1H5zm2-1a1 1 0 011-1h4a1 1 0 011 1H7z"/><path fill-rule="evenodd" d="M14.5 5a2 2 0 100 4 2 2 0 000-4zm-3 2a3 3 0 116 0 3 3 0 01-6 0zm-6-2a2 2 0 100 4 2 2 0 000-4zm-3 2a3 3 0 116 0 3 3 0 01-6 0z" clip-rule="evenodd"/><path d="M9 12h2v4H9v-4z"/><path d="M12 13c0 .552-.895 1-2 1s-2-.448-2-1 .895-1 2-1 2 .448 2 1z"/>'),Vo=v("Tv",'<path fill-rule="evenodd" d="M2.216 6H1.5v-.04l.005-.083a2.957 2.957 0 01.298-1.102c.154-.309.394-.633.763-.88C2.94 3.648 3.413 3.5 4 3.5h12.039l.083.005a2.958 2.958 0 011.102.298c.309.154.633.394.88.763.248.373.396.847.396 1.434v6H18h.5v.039l-.005.083a2.957 2.957 0 01-.298 1.102 2.257 2.257 0 01-.763.88c-.373.248-.847.396-1.434.396H3.961l-.083-.005a2.956 2.956 0 01-1.102-.298 2.254 2.254 0 01-.88-.763C1.648 13.06 1.5 12.588 1.5 12V6h.716zm.284.002v-.008l.003-.044a1.959 1.959 0 01.195-.726c.095-.191.23-.367.423-.495.19-.127.466-.229.879-.229h12.006l.044.003a1.958 1.958 0 01.726.195c.191.095.367.23.495.423.127.19.229.466.229.879v6.006l-.003.044a1.959 1.959 0 01-.195.726c-.095.191-.23.367-.423.495-.19.127-.466.229-.879.229H3.994l-.044-.003a1.96 1.96 0 01-.726-.195 1.256 1.256 0 01-.495-.423c-.127-.19-.229-.466-.229-.879V6.002zM4.003 13.5zm.497 2A.5.5 0 015 15h10a.5.5 0 010 1H5a.5.5 0 01-.5-.5z" clip-rule="evenodd"/>'),Fo=v("TvFill",'<path fill-rule="evenodd" d="M4.5 15.5A.5.5 0 015 15h10a.5.5 0 010 1H5a.5.5 0 01-.5-.5zM4 4h12s2 0 2 2v6s0 2-2 2H4s-2 0-2-2V6s0-2 2-2z" clip-rule="evenodd"/>'),Ro=v("Type",'<path d="M4.244 15.081l.944-2.803H8.66l.944 2.803h1.257L7.54 5.75H6.322L3 15.081h1.244zm2.7-7.923l1.395 4.157h-2.83L6.91 7.158h.034zm9.146 7.027h.035v.896h1.128v-4.956c0-1.51-1.114-2.345-2.646-2.345-1.736 0-2.59.916-2.666 2.174h1.108c.068-.718.595-1.19 1.517-1.19.971 0 1.518.52 1.518 1.463v.732H14.19c-1.647.007-2.522.8-2.522 2.058 0 1.319.957 2.18 2.345 2.18 1.06 0 1.716-.43 2.078-1.011zm-1.763.035c-.752 0-1.456-.397-1.456-1.244 0-.65.424-1.115 1.408-1.115h1.805v.834c0 .896-.752 1.525-1.757 1.525z"/>'),$o=v("TypeBold",'<path d="M10.21 15c2.106 0 3.412-1.087 3.412-2.823 0-1.306-.984-2.283-2.324-2.386v-.055a2.176 2.176 0 001.852-2.14c0-1.51-1.162-2.46-3.014-2.46H5.843V15h4.368zM7.908 6.674h1.696c.963 0 1.517.451 1.517 1.244 0 .834-.629 1.32-1.73 1.32H7.908V6.673zm0 6.788v-2.864h1.73c1.216 0 1.88.492 1.88 1.415 0 .943-.643 1.449-1.832 1.449H7.907z"/>'),Uo=v("TypeH1",'<path d="M10.637 15V5.669H9.379V9.62H4.758V5.67H3.5V15h1.258v-4.273h4.62V15h1.259zm5.329 0V5.669h-1.244L12.5 7.316v1.265l2.16-1.565h.062V15h1.244z"/>'),Yo=v("TypeH2",'<path d="M9.638 15V5.669H8.38V9.62H3.759V5.67H2.5V15h1.258v-4.273h4.62V15h1.259zm3.022-6.733v-.048c0-.889.63-1.668 1.716-1.668.957 0 1.675.608 1.675 1.572 0 .855-.554 1.504-1.067 2.085l-3.513 3.999V15H17.5v-1.094h-4.245v-.075l2.481-2.844c.875-.998 1.586-1.784 1.586-2.953 0-1.463-1.155-2.556-2.919-2.556-1.941 0-2.966 1.326-2.966 2.74v.049h1.223z"/>'),Wo=v("TypeH3",'<path d="M9.637 15V5.669H8.379V9.62H3.758V5.67H2.5V15h1.258v-4.273h4.62V15h1.259zm3.625-4.273h1.018c1.142 0 1.935.67 1.949 1.675.013 1.005-.78 1.737-2.01 1.73-1.08-.007-1.853-.588-1.935-1.32h-1.176c.069 1.327 1.224 2.386 3.083 2.386 1.935 0 3.343-1.155 3.309-2.789-.027-1.51-1.251-2.16-2.037-2.249v-.068c.704-.123 1.764-.91 1.723-2.229-.035-1.353-1.176-2.4-2.954-2.385-1.873.006-2.857 1.162-2.898 2.358h1.196c.062-.69.711-1.299 1.696-1.299.998 0 1.695.622 1.695 1.525.007.922-.718 1.592-1.695 1.592h-.964v1.073z"/>'),Go=v("TypeItalic",'<path d="M9.991 13.674l1.538-7.219c.123-.595.246-.71 1.347-.807l.11-.52H9.211l-.11.52c1.06.096 1.128.212 1.005.807L8.57 13.674c-.123.595-.246.71-1.346.806l-.11.52h3.774l.11-.52c-1.06-.095-1.129-.211-1.006-.806z"/>'),Ko=v("TypeStrikethrough",'<path d="M10.527 15.164c-2.153 0-3.589-1.107-3.705-2.81h1.23c.144 1.06 1.129 1.703 2.544 1.703 1.34 0 2.31-.705 2.31-1.675 0-.827-.547-1.374-1.914-1.675l-.946-.207h3.45c.468.437.675.994.675 1.697 0 1.826-1.436 2.967-3.644 2.967zM8.602 8.5H7.167a2.776 2.776 0 01-.099-.76c0-1.627 1.436-2.768 3.48-2.768 1.969 0 3.39 1.175 3.445 2.85h-1.23c-.11-1.08-.964-1.743-2.25-1.743-1.23 0-2.18.602-2.18 1.607 0 .31.083.581.27.814z"/><path fill-rule="evenodd" d="M17 10.5H3v-1h14v1z" clip-rule="evenodd"/>'),Zo=v("TypeUnderline",'<path d="M7.313 5.136h-1.23v6.405c0 2.105 1.47 3.623 3.917 3.623s3.917-1.518 3.917-3.623V5.136h-1.23v6.323c0 1.49-.978 2.57-2.687 2.57-1.709 0-2.687-1.08-2.687-2.57V5.136z"/><path fill-rule="evenodd" d="M14.5 17h-9v-1h9v1z" clip-rule="evenodd"/>'),Xo=v("Unlock",'<path fill-rule="evenodd" d="M11.655 9H4.333c-.264 0-.398.068-.471.121a.73.73 0 00-.224.296 1.626 1.626 0 00-.138.59V15c0 .342.076.531.14.635.064.106.151.18.256.237a1.122 1.122 0 00.436.127l.013.001h7.322c.264 0 .398-.068.471-.121a.73.73 0 00.224-.296 1.627 1.627 0 00.138-.59V10c0-.342-.076-.531-.14-.635a.658.658 0 00-.255-.237 1.123 1.123 0 00-.45-.128zm.012-1H4.333C2.5 8 2.5 10 2.5 10v5c0 2 1.833 2 1.833 2h7.334c1.833 0 1.833-2 1.833-2v-5c0-2-1.833-2-1.833-2zM10.5 5a3.5 3.5 0 117 0v3h-1V5a2.5 2.5 0 00-5 0v3h-1V5z" clip-rule="evenodd"/>'),Jo=v("UnlockFill",'<path d="M2.5 10a2 2 0 012-2h7a2 2 0 012 2v5a2 2 0 01-2 2h-7a2 2 0 01-2-2v-5z"/><path fill-rule="evenodd" d="M10.5 5a3.5 3.5 0 117 0v3h-1V5a2.5 2.5 0 00-5 0v3h-1V5z" clip-rule="evenodd"/>'),Qo=v("Upload",'<path fill-rule="evenodd" d="M2.5 10a.5.5 0 01.5.5V14a1 1 0 001 1h12a1 1 0 001-1v-3.5a.5.5 0 011 0V14a2 2 0 01-2 2H4a2 2 0 01-2-2v-3.5a.5.5 0 01.5-.5zM7 6.854a.5.5 0 00.707 0L10 4.56l2.293 2.293A.5.5 0 1013 6.146L10.354 3.5a.5.5 0 00-.708 0L7 6.146a.5.5 0 000 .708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 4a.5.5 0 01.5.5v8a.5.5 0 01-1 0v-8A.5.5 0 0110 4z" clip-rule="evenodd"/>'),ti=v("VolumeDown",'<path fill-rule="evenodd" d="M10.717 5.55A.5.5 0 0111 6v8a.5.5 0 01-.812.39L7.825 12.5H5.5A.5.5 0 015 12V8a.5.5 0 01.5-.5h2.325l2.363-1.89a.5.5 0 01.529-.06zM10 7.04L8.312 8.39A.5.5 0 018 8.5H6v3h2a.5.5 0 01.312.11L10 12.96V7.04z" clip-rule="evenodd"/><path d="M12.707 13.182A4.486 4.486 0 0014.025 10a4.486 4.486 0 00-1.318-3.182L12 7.525A3.489 3.489 0 0113.025 10c0 .966-.392 1.841-1.025 2.475l.707.707z"/>'),ei=v("VolumeDownFill",'<path fill-rule="evenodd" d="M10.717 5.55A.5.5 0 0111 6v8a.5.5 0 01-.812.39L7.825 12.5H5.5A.5.5 0 015 12V8a.5.5 0 01.5-.5h2.325l2.363-1.89a.5.5 0 01.529-.06z" clip-rule="evenodd"/><path d="M12.707 13.182A4.486 4.486 0 0014.025 10a4.486 4.486 0 00-1.318-3.182L12 7.525A3.489 3.489 0 0113.025 10c0 .966-.392 1.841-1.025 2.475l.707.707z"/>'),ni=v("VolumeMute",'<path fill-rule="evenodd" d="M8.717 5.55A.5.5 0 019 6v8a.5.5 0 01-.812.39L5.825 12.5H3.5A.5.5 0 013 12V8a.5.5 0 01.5-.5h2.325l2.363-1.89a.5.5 0 01.529-.06zM8 7.04L6.312 8.39A.5.5 0 016 8.5H4v3h2a.5.5 0 01.312.11L8 12.96V7.04zm7.854.606a.5.5 0 010 .708l-4 4a.5.5 0 01-.708-.708l4-4a.5.5 0 01.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M11.146 7.646a.5.5 0 000 .708l4 4a.5.5 0 00.708-.708l-4-4a.5.5 0 00-.708 0z" clip-rule="evenodd"/>'),ri=v("VolumeMuteFill",'<path fill-rule="evenodd" d="M8.717 5.55A.5.5 0 019 6v8a.5.5 0 01-.812.39L5.825 12.5H3.5A.5.5 0 013 12V8a.5.5 0 01.5-.5h2.325l2.363-1.89a.5.5 0 01.529-.06zm7.137 1.596a.5.5 0 010 .708l-4 4a.5.5 0 01-.708-.708l4-4a.5.5 0 01.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M11.146 7.146a.5.5 0 000 .708l4 4a.5.5 0 00.708-.708l-4-4a.5.5 0 00-.708 0z" clip-rule="evenodd"/>'),oi=v("VolumeUp",'<path fill-rule="evenodd" d="M8.717 5.55A.5.5 0 019 6v8a.5.5 0 01-.812.39L5.825 12.5H3.5A.5.5 0 013 12V8a.5.5 0 01.5-.5h2.325l2.363-1.89a.5.5 0 01.529-.06zM8 7.04L6.312 8.39A.5.5 0 016 8.5H4v3h2a.5.5 0 01.312.11L8 12.96V7.04z" clip-rule="evenodd"/><path d="M13.536 16.01a8.473 8.473 0 002.49-6.01 8.473 8.473 0 00-2.49-6.01l-.708.707A7.476 7.476 0 0115.025 10c0 2.071-.84 3.946-2.197 5.303l.708.707z"/><path d="M12.121 14.596A6.48 6.48 0 0014.025 10a6.48 6.48 0 00-1.904-4.596l-.707.707A5.483 5.483 0 0113.025 10a5.483 5.483 0 01-1.61 3.89l.706.706z"/><path d="M10.707 13.182A4.486 4.486 0 0012.025 10a4.486 4.486 0 00-1.318-3.182L10 7.525A3.489 3.489 0 0111.025 10c0 .966-.392 1.841-1.025 2.475l.707.707z"/>'),ii=v("VolumeUpFill",'<path d="M13.536 16.01a8.473 8.473 0 002.49-6.01 8.473 8.473 0 00-2.49-6.01l-.708.707A7.476 7.476 0 0115.025 10c0 2.071-.84 3.946-2.197 5.303l.708.707z"/><path d="M12.121 14.596A6.48 6.48 0 0014.025 10a6.48 6.48 0 00-1.904-4.596l-.707.707A5.483 5.483 0 0113.025 10a5.483 5.483 0 01-1.61 3.89l.706.706z"/><path d="M10.707 13.182A4.486 4.486 0 0012.025 10a4.486 4.486 0 00-1.318-3.182L10 7.525A3.489 3.489 0 0111.025 10c0 .966-.392 1.841-1.025 2.475l.707.707z"/><path fill-rule="evenodd" d="M8.717 5.55A.5.5 0 019 6v8a.5.5 0 01-.812.39L5.825 12.5H3.5A.5.5 0 013 12V8a.5.5 0 01.5-.5h2.325l2.363-1.89a.5.5 0 01.529-.06z" clip-rule="evenodd"/>'),ai=v("Wallet",'<path fill-rule="evenodd" d="M3.5 5a.5.5 0 00-.5.5v2h5a.5.5 0 01.5.5c0 .253.08.644.306.958.207.288.557.542 1.194.542.637 0 .987-.254 1.194-.542.226-.314.306-.705.306-.958a.5.5 0 01.5-.5h5v-2a.5.5 0 00-.5-.5h-13zM17 8.5h-4.551a2.678 2.678 0 01-.443 1.042c-.393.546-1.043.958-2.006.958-.963 0-1.613-.412-2.006-.958A2.679 2.679 0 017.551 8.5H3v6a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-6zm-15-3A1.5 1.5 0 013.5 4h13A1.5 1.5 0 0118 5.5v9a1.5 1.5 0 01-1.5 1.5h-13A1.5 1.5 0 012 14.5v-9z" clip-rule="evenodd"/>'),si=v("Watch",'<path fill-rule="evenodd" d="M6 16.333v-1.86A5.985 5.985 0 014 10c0-1.777.772-3.374 2-4.472V3.667C6 2.747 6.746 2 7.667 2h4.666C13.253 2 14 2.746 14 3.667v1.86A5.985 5.985 0 0116 10a5.985 5.985 0 01-2 4.472v1.861c0 .92-.746 1.667-1.667 1.667H7.667C6.747 18 6 17.254 6 16.333zM15 10a5 5 0 10-10 0 5 5 0 0010 0z" clip-rule="evenodd"/><rect width="1" height="2" x="15.5" y="9" rx=".5"/><path fill-rule="evenodd" d="M10 6.5a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H8a.5.5 0 010-1h1.5V7a.5.5 0 01.5-.5z" clip-rule="evenodd"/>'),ci=v("Wifi",'<path fill-rule="evenodd" d="M8.858 13.858A1.991 1.991 0 0110 13.5c.425 0 .818.132 1.142.358L10 15l-1.142-1.142z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M9.731 14.024l.269.269.269-.269a1.506 1.506 0 00-.538 0zm-1.159-.576A2.49 2.49 0 0110 13c.53 0 1.023.165 1.428.448a.5.5 0 01.068.763l-1.143 1.143a.5.5 0 01-.707 0L8.504 14.21a.5.5 0 01.354-.853v.5l-.286-.41zM10 11.5a4.478 4.478 0 00-2.7.9.5.5 0 01-.6-.8c.919-.69 2.062-1.1 3.3-1.1s2.381.41 3.3 1.1a.5.5 0 01-.6.8 4.478 4.478 0 00-2.7-.9zm0-3c-1.833 0-3.51.657-4.814 1.748a.5.5 0 11-.642-.766A8.468 8.468 0 0110 7.5c2.076 0 3.98.745 5.456 1.982a.5.5 0 01-.642.766A7.468 7.468 0 0010 8.5z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M10 5.5c-2.657 0-5.082.986-6.932 2.613a.5.5 0 11-.66-.75A11.458 11.458 0 0110 4.5c2.91 0 5.567 1.08 7.592 2.862a.5.5 0 11-.66.751A10.458 10.458 0 0010 5.5z" clip-rule="evenodd"/>'),ui=v("Window",'<path fill-rule="evenodd" d="M16 4H4a1 1 0 00-1 1v10a1 1 0 001 1h12a1 1 0 001-1V5a1 1 0 00-1-1zM4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M17 8H3V7h14v1z" clip-rule="evenodd"/><path d="M5 5.5a.5.5 0 11-1 0 .5.5 0 011 0zm1.5 0a.5.5 0 11-1 0 .5.5 0 011 0zm1.5 0a.5.5 0 11-1 0 .5.5 0 011 0z"/>'),di=v("Wrench",'<path fill-rule="evenodd" d="M2.102 4.223A3.004 3.004 0 005 8c.27 0 .532-.036.78-.103l6.342 6.252A3.003 3.003 0 0015 18a3 3 0 10-.851-5.878L7.897 5.781A3.004 3.004 0 004.223 2.1l2.141 2.142L6 6l-1.757.364-2.141-2.141zm13.37 9.019L15 13l-.471.242-.529.026-.287.445-.445.287-.026.529L13 15l.242.471.026.529.445.287.287.445.529.026L15 17l.471-.242.529-.026.287-.445.445-.287.026-.529L17 15l-.242-.471-.026-.529-.445-.287-.287-.445-.529-.026z" clip-rule="evenodd"/>'),fi=v("X",'<path fill-rule="evenodd" d="M5.646 5.646a.5.5 0 000 .708l8 8a.5.5 0 00.708-.708l-8-8a.5.5 0 00-.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M14.354 5.646a.5.5 0 010 .708l-8 8a.5.5 0 01-.708-.708l8-8a.5.5 0 01.708 0z" clip-rule="evenodd"/>'),hi=v("XCircle",'<path fill-rule="evenodd" d="M10 17a7 7 0 100-14 7 7 0 000 14zm0 1a8 8 0 100-16 8 8 0 000 16z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M12.646 13.354l-6-6 .708-.708 6 6-.708.708z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M7.354 13.354l6-6-.708-.708-6 6 .708.708z" clip-rule="evenodd"/>'),pi=v("XCircleFill",'<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM7.354 6.646L10 9.293l2.646-2.647a.5.5 0 01.708.708L10.707 10l2.647 2.646a.5.5 0 01-.708.708L10 10.707l-2.646 2.647a.5.5 0 01-.708-.708L9.293 10 6.646 7.354a.5.5 0 11.708-.708z" clip-rule="evenodd"/>'),bi=v("XOctagon",'<path fill-rule="evenodd" d="M6.54 2.146A.5.5 0 016.893 2h6.214a.5.5 0 01.353.146l4.394 4.394a.5.5 0 01.146.353v6.214a.5.5 0 01-.146.353l-4.394 4.394a.5.5 0 01-.353.146H6.893a.5.5 0 01-.353-.146L2.146 13.46A.5.5 0 012 13.107V6.893a.5.5 0 01.146-.353L6.54 2.146zM7.1 3L3 7.1v5.8L7.1 17h5.8l4.1-4.1V7.1L12.9 3H7.1z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M9.293 10L6.646 7.354l.708-.708L10 9.293l2.646-2.647.708.708L10.707 10l2.647 2.646-.707.708L10 10.707l-2.646 2.647-.708-.707L9.293 10z" clip-rule="evenodd"/>'),vi=v("XOctagonFill",'<path fill-rule="evenodd" d="M13.46 2.146A.5.5 0 0013.107 2H6.893a.5.5 0 00-.353.146L2.146 6.54A.5.5 0 002 6.893v6.214a.5.5 0 00.146.353l4.394 4.394a.5.5 0 00.353.146h6.214a.5.5 0 00.353-.146l4.394-4.394a.5.5 0 00.146-.353V6.893a.5.5 0 00-.146-.353L13.46 2.146zm-6.106 4.5L10 9.293l2.646-2.647a.5.5 0 01.708.708L10.707 10l2.647 2.646a.5.5 0 01-.708.708L10 10.707l-2.646 2.647a.5.5 0 01-.708-.708L9.293 10 6.646 7.354a.5.5 0 11.708-.708z" clip-rule="evenodd"/>'),mi=v("XSquare",'<path fill-rule="evenodd" d="M16 3H4a1 1 0 00-1 1v12a1 1 0 001 1h12a1 1 0 001-1V4a1 1 0 00-1-1zM4 2a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V4a2 2 0 00-2-2H4z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M9.293 10L6.646 7.354l.708-.708L10 9.293l2.646-2.647.708.708L10.707 10l2.647 2.646-.708.708L10 10.707l-2.646 2.647-.708-.707L9.293 10z" clip-rule="evenodd"/>'),gi=v("XSquareFill",'<path fill-rule="evenodd" d="M4 2a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V4a2 2 0 00-2-2H4zm3.354 4.646L10 9.293l2.646-2.647a.5.5 0 01.708.708L10.707 10l2.647 2.646a.5.5 0 01-.708.708L10 10.707l-2.646 2.647a.5.5 0 01-.708-.708L9.293 10 6.646 7.354a.5.5 0 11.708-.708z" clip-rule="evenodd"/>')},1:function(t,e,n){"use strict";n.d(e,"k",(function(){return d})),n.d(e,"f",(function(){return f})),n.d(e,"l",(function(){return h})),n.d(e,"e",(function(){return v})),n.d(e,"a",(function(){return m})),n.d(e,"j",(function(){return y})),n.d(e,"g",(function(){return w})),n.d(e,"b",(function(){return O})),n.d(e,"c",(function(){return k})),n.d(e,"d",(function(){return S})),n.d(e,"i",(function(){return j})),n.d(e,"h",(function(){return _}));n(56),n(57),n(9);var r=n(41),o=n(23),l=function(t){return Object(r.a)(t)},c=function(t){return Object.prototype.toString.call(t).slice(8,-1)},d=function(t){return void 0===t},f=function(t){return null===t},h=function(t){return d(t)||f(t)},v=function(t){return"function"===l(t)},m=function(t){return"boolean"===l(t)},y=function(t){return"string"===l(t)},w=function(t){return"number"===l(t)},O=function(t){return t instanceof Date},k=function(t){return t instanceof Event},S=function(t){return t instanceof o.a},j=function(t){return"RegExp"===c(t)},_=function(t){return!h(t)&&v(t.then)&&v(t.catch)}},102:function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));n(14),n(10),n(11),n(9),n(12),n(22);var r=n(2),o=n(3),l=n(7),c=n(8),d=n(0),f=n(58);function h(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function v(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var m=/^BIcon/,y=o.a.extend({name:"BIcon",functional:!0,props:v({icon:{type:String,default:null}},f.b,{stacked:{type:Boolean,default:!1}}),render:function(t,e){var data=e.data,n=e.props,r=e.parent,o=Object(c.e)(Object(c.g)(n.icon||"")).replace(m,""),f="BIcon".concat(o),h=((r||{}).$options||{}).components;return t(o&&h?h[f]||d.Z:o?f:d.Z,Object(l.a)(data,{props:v({},n,{icon:null})}))}})},105:function(t,e,n){(function(t){t.exports=function(){"use strict";var e,r;function o(){return e.apply(null,arguments)}function l(input){return input instanceof Array||"[object Array]"===Object.prototype.toString.call(input)}function c(input){return null!=input&&"[object Object]"===Object.prototype.toString.call(input)}function d(input){return void 0===input}function f(input){return"number"==typeof input||"[object Number]"===Object.prototype.toString.call(input)}function h(input){return input instanceof Date||"[object Date]"===Object.prototype.toString.call(input)}function map(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function v(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function m(a,b){for(var i in b)v(b,i)&&(a[i]=b[i]);return v(b,"toString")&&(a.toString=b.toString),v(b,"valueOf")&&(a.valueOf=b.valueOf),a}function y(input,t,e,n){return Ee(input,t,e,n,!0).utc()}function w(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function O(t){if(null==t._isValid){var e=w(t),n=r.call(e.parsedDateParts,(function(i){return null!=i})),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function k(t){var e=y(NaN);return null!=t?m(w(e),t):w(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var S=o.momentProperties=[];function j(t,e){var i,n,r;if(d(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),d(e._i)||(t._i=e._i),d(e._f)||(t._f=e._f),d(e._l)||(t._l=e._l),d(e._strict)||(t._strict=e._strict),d(e._tzm)||(t._tzm=e._tzm),d(e._isUTC)||(t._isUTC=e._isUTC),d(e._offset)||(t._offset=e._offset),d(e._pf)||(t._pf=w(e)),d(e._locale)||(t._locale=e._locale),S.length>0)for(i=0;i<S.length;i++)d(r=e[n=S[i]])||(t[n]=r);return t}var _=!1;function x(t){j(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,o.updateOffset(this),_=!1)}function T(t){return t instanceof x||null!=t&&null!=t._isAMomentObject}function B(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function C(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=B(e)),n}function P(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),l=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&C(t[i])!==C(e[i]))&&l++;return l+o}function M(t){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function E(t,e){var n=!0;return m((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,t),n){for(var r,l=[],i=0;i<arguments.length;i++){if(r="","object"==typeof arguments[i]){for(var c in r+="\n["+i+"] ",arguments[0])r+=c+": "+arguments[0][c]+", ";r=r.slice(0,-2)}else r=arguments[i];l.push(r)}M(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var A,z={};function D(t,e){null!=o.deprecationHandler&&o.deprecationHandler(t,e),z[t]||(M(e),z[t]=!0)}function L(input){return input instanceof Function||"[object Function]"===Object.prototype.toString.call(input)}function I(t,e){var n,r=m({},t);for(n in e)v(e,n)&&(c(t[n])&&c(e[n])?(r[n]={},m(r[n],t[n]),m(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)v(t,n)&&!v(e,n)&&c(t[n])&&(r[n]=m({},r[n]));return r}function N(t){null!=t&&this.set(t)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,A=Object.keys?Object.keys:function(t){var i,e=[];for(i in t)v(t,i)&&e.push(i);return e};var H={};function V(t,e){var n=t.toLowerCase();H[n]=H[n+"s"]=H[e]=t}function F(t){return"string"==typeof t?H[t]||H[t.toLowerCase()]:void 0}function R(t){var e,n,r={};for(n in t)v(t,n)&&(e=F(n))&&(r[e]=t[n]);return r}var $={};function U(t,e){$[t]=e}function Y(t,e,n){var r=""+Math.abs(t),o=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,G=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,K={},Z={};function X(t,e,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),t&&(Z[t]=o),e&&(Z[e[0]]=function(){return Y(o.apply(this,arguments),e[1],e[2])}),n&&(Z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function J(t,e){return t.isValid()?(e=Q(e,t.localeData()),K[e]=K[e]||function(t){var i,e,input,n=t.match(W);for(i=0,e=n.length;i<e;i++)Z[n[i]]?n[i]=Z[n[i]]:n[i]=(input=n[i]).match(/\[[\s\S]/)?input.replace(/^\[|\]$/g,""):input.replace(/\\/g,"");return function(r){var i,output="";for(i=0;i<e;i++)output+=L(n[i])?n[i].call(r,t):n[i];return output}}(e),K[e](t)):t.localeData().invalidDate()}function Q(t,e){var i=5;function n(input){return e.longDateFormat(input)||input}for(G.lastIndex=0;i>=0&&G.test(t);)t=t.replace(G,n),G.lastIndex=0,i-=1;return t}var tt=/\d/,et=/\d\d/,nt=/\d{3}/,ot=/\d{4}/,it=/[+-]?\d{6}/,at=/\d\d?/,lt=/\d\d\d\d?/,st=/\d\d\d\d\d\d?/,ct=/\d{1,3}/,ut=/\d{1,4}/,ft=/[+-]?\d{1,6}/,ht=/\d+/,pt=/[+-]?\d+/,bt=/Z|[+-]\d\d:?\d\d/gi,vt=/Z|[+-]\d\d(?::?\d\d)?/gi,mt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,gt={};function yt(t,e,n){gt[t]=L(e)?e:function(t,r){return t&&n?n:e}}function wt(t,e){return v(gt,t)?gt[t](e._strict,e._locale):new RegExp(Ot(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,o){return e||n||r||o}))))}function Ot(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var kt={};function St(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),f(e)&&(n=function(input,t){t[e]=C(input)}),i=0;i<t.length;i++)kt[t[i]]=n}function jt(t,e){St(t,(function(input,t,n,r){n._w=n._w||{},e(input,n._w,n,r)}))}function _t(t,input,e){null!=input&&v(kt,t)&&kt[t](input,e._a,e,t)}function xt(t){return Tt(t)?366:365}function Tt(t){return t%4==0&&t%100!=0||t%400==0}X("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),X(0,["YY",2],0,(function(){return this.year()%100})),X(0,["YYYY",4],0,"year"),X(0,["YYYYY",5],0,"year"),X(0,["YYYYYY",6,!0],0,"year"),V("year","y"),U("year",1),yt("Y",pt),yt("YY",at,et),yt("YYYY",ut,ot),yt("YYYYY",ft,it),yt("YYYYYY",ft,it),St(["YYYYY","YYYYYY"],0),St("YYYY",(function(input,t){t[0]=2===input.length?o.parseTwoDigitYear(input):C(input)})),St("YY",(function(input,t){t[0]=o.parseTwoDigitYear(input)})),St("Y",(function(input,t){t[0]=parseInt(input,10)})),o.parseTwoDigitYear=function(input){return C(input)+(C(input)>68?1900:2e3)};var Bt,Ct=Pt("FullYear",!0);function Pt(t,e){return function(n){return null!=n?(qt(this,t,n),o.updateOffset(this,e),this):Mt(this,t)}}function Mt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function qt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Et(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Et(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,r=(e%(n=12)+n)%n;return t+=(e-r)/12,1===r?Tt(t)?29:28:31-r%7%2}Bt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var i;for(i=0;i<this.length;++i)if(this[i]===t)return i;return-1},X("M",["MM",2],"Mo",(function(){return this.month()+1})),X("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),X("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),V("month","M"),U("month",8),yt("M",at),yt("MM",at,et),yt("MMM",(function(t,e){return e.monthsShortRegex(t)})),yt("MMMM",(function(t,e){return e.monthsRegex(t)})),St(["M","MM"],(function(input,t){t[1]=C(input)-1})),St(["MMM","MMMM"],(function(input,t,e,n){var r=e._locale.monthsParse(input,n,e._strict);null!=r?t[1]=r:w(e).invalidMonth=input}));var At=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,zt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Dt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Lt(t,e,n){var i,r,o,l=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=y([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=Bt.call(this._shortMonthsParse,l))?r:null:-1!==(r=Bt.call(this._longMonthsParse,l))?r:null:"MMM"===e?-1!==(r=Bt.call(this._shortMonthsParse,l))||-1!==(r=Bt.call(this._longMonthsParse,l))?r:null:-1!==(r=Bt.call(this._longMonthsParse,l))||-1!==(r=Bt.call(this._shortMonthsParse,l))?r:null}function It(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=C(e);else if(!f(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Et(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Nt(t){return null!=t?(It(this,t),o.updateOffset(this,!0),this):Mt(this,"Month")}var Ht=mt,Vt=mt;function Ft(){function t(a,b){return b.length-a.length}var i,e,n=[],r=[],o=[];for(i=0;i<12;i++)e=y([2e3,i]),n.push(this.monthsShort(e,"")),r.push(this.months(e,"")),o.push(this.months(e,"")),o.push(this.monthsShort(e,""));for(n.sort(t),r.sort(t),o.sort(t),i=0;i<12;i++)n[i]=Ot(n[i]),r[i]=Ot(r[i]);for(i=0;i<24;i++)o[i]=Ot(o[i]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Rt(t,e,n,r,o,s,l){var c;return t<100&&t>=0?(c=new Date(t+400,e,n,r,o,s,l),isFinite(c.getFullYear())&&c.setFullYear(t)):c=new Date(t,e,n,r,o,s,l),c}function $t(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Ut(t,e,n){var r=7+e-n;return-(7+$t(t,0,r).getUTCDay()-e)%7+r-1}function Yt(t,e,n,r,o){var l,c,d=1+7*(e-1)+(7+n-r)%7+Ut(t,r,o);return d<=0?c=xt(l=t-1)+d:d>xt(t)?(l=t+1,c=d-xt(t)):(l=t,c=d),{year:l,dayOfYear:c}}function Wt(t,e,n){var r,o,l=Ut(t.year(),e,n),c=Math.floor((t.dayOfYear()-l-1)/7)+1;return c<1?r=c+Gt(o=t.year()-1,e,n):c>Gt(t.year(),e,n)?(r=c-Gt(t.year(),e,n),o=t.year()+1):(o=t.year(),r=c),{week:r,year:o}}function Gt(t,e,n){var r=Ut(t,e,n),o=Ut(t+1,e,n);return(xt(t)-r+o)/7}function Kt(t,e){return t.slice(e,7).concat(t.slice(0,e))}X("w",["ww",2],"wo","week"),X("W",["WW",2],"Wo","isoWeek"),V("week","w"),V("isoWeek","W"),U("week",5),U("isoWeek",5),yt("w",at),yt("ww",at,et),yt("W",at),yt("WW",at,et),jt(["w","ww","W","WW"],(function(input,t,e,n){t[n.substr(0,1)]=C(input)})),X("d",0,"do","day"),X("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),X("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),X("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),X("e",0,0,"weekday"),X("E",0,0,"isoWeekday"),V("day","d"),V("weekday","e"),V("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),yt("d",at),yt("e",at),yt("E",at),yt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),yt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),yt("dddd",(function(t,e){return e.weekdaysRegex(t)})),jt(["dd","ddd","dddd"],(function(input,t,e,n){var r=e._locale.weekdaysParse(input,n,e._strict);null!=r?t.d=r:w(e).invalidWeekday=input})),jt(["d","e","E"],(function(input,t,e,n){t[n]=C(input)}));var Zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Qt(t,e,n){var i,r,o,l=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=y([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Bt.call(this._weekdaysParse,l))?r:null:"ddd"===e?-1!==(r=Bt.call(this._shortWeekdaysParse,l))?r:null:-1!==(r=Bt.call(this._minWeekdaysParse,l))?r:null:"dddd"===e?-1!==(r=Bt.call(this._weekdaysParse,l))||-1!==(r=Bt.call(this._shortWeekdaysParse,l))||-1!==(r=Bt.call(this._minWeekdaysParse,l))?r:null:"ddd"===e?-1!==(r=Bt.call(this._shortWeekdaysParse,l))||-1!==(r=Bt.call(this._weekdaysParse,l))||-1!==(r=Bt.call(this._minWeekdaysParse,l))?r:null:-1!==(r=Bt.call(this._minWeekdaysParse,l))||-1!==(r=Bt.call(this._weekdaysParse,l))||-1!==(r=Bt.call(this._shortWeekdaysParse,l))?r:null}var te=mt,ee=mt,ne=mt;function re(){function t(a,b){return b.length-a.length}var i,e,n,r,o,l=[],c=[],d=[],f=[];for(i=0;i<7;i++)e=y([2e3,1]).day(i),n=this.weekdaysMin(e,""),r=this.weekdaysShort(e,""),o=this.weekdays(e,""),l.push(n),c.push(r),d.push(o),f.push(n),f.push(r),f.push(o);for(l.sort(t),c.sort(t),d.sort(t),f.sort(t),i=0;i<7;i++)c[i]=Ot(c[i]),d[i]=Ot(d[i]),f[i]=Ot(f[i]);this._weekdaysRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+l.join("|")+")","i")}function oe(){return this.hours()%12||12}function ie(t,e){X(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function ae(t,e){return e._meridiemParse}X("H",["HH",2],0,"hour"),X("h",["hh",2],0,oe),X("k",["kk",2],0,(function(){return this.hours()||24})),X("hmm",0,0,(function(){return""+oe.apply(this)+Y(this.minutes(),2)})),X("hmmss",0,0,(function(){return""+oe.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)})),X("Hmm",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)})),X("Hmmss",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)})),ie("a",!0),ie("A",!1),V("hour","h"),U("hour",13),yt("a",ae),yt("A",ae),yt("H",at),yt("h",at),yt("k",at),yt("HH",at,et),yt("hh",at,et),yt("kk",at,et),yt("hmm",lt),yt("hmmss",st),yt("Hmm",lt),yt("Hmmss",st),St(["H","HH"],3),St(["k","kk"],(function(input,t,e){var n=C(input);t[3]=24===n?0:n})),St(["a","A"],(function(input,t,e){e._isPm=e._locale.isPM(input),e._meridiem=input})),St(["h","hh"],(function(input,t,e){t[3]=C(input),w(e).bigHour=!0})),St("hmm",(function(input,t,e){var n=input.length-2;t[3]=C(input.substr(0,n)),t[4]=C(input.substr(n)),w(e).bigHour=!0})),St("hmmss",(function(input,t,e){var n=input.length-4,r=input.length-2;t[3]=C(input.substr(0,n)),t[4]=C(input.substr(n,2)),t[5]=C(input.substr(r)),w(e).bigHour=!0})),St("Hmm",(function(input,t,e){var n=input.length-2;t[3]=C(input.substr(0,n)),t[4]=C(input.substr(n))})),St("Hmmss",(function(input,t,e){var n=input.length-4,r=input.length-2;t[3]=C(input.substr(0,n)),t[4]=C(input.substr(n,2)),t[5]=C(input.substr(r))}));var le,se=Pt("Hours",!0),ce={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:zt,monthsShort:Dt,week:{dow:0,doy:6},weekdays:Zt,weekdaysMin:Jt,weekdaysShort:Xt,meridiemParse:/[ap]\.?m?\.?/i},ue={},de={};function fe(t){return t?t.toLowerCase().replace("_","-"):t}function he(e){var r=null;if(!ue[e]&&void 0!==t&&t&&t.exports)try{r=le._abbr,n(234)("./"+e),pe(r)}catch(t){}return ue[e]}function pe(t,e){var data;return t&&((data=d(e)?ve(t):be(t,e))?le=data:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),le._abbr}function be(t,e){if(null!==e){var n,r=ce;if(e.abbr=t,null!=ue[t])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ue[t]._config;else if(null!=e.parentLocale)if(null!=ue[e.parentLocale])r=ue[e.parentLocale]._config;else{if(null==(n=he(e.parentLocale)))return de[e.parentLocale]||(de[e.parentLocale]=[]),de[e.parentLocale].push({name:t,config:e}),null;r=n._config}return ue[t]=new N(I(r,e)),de[t]&&de[t].forEach((function(t){be(t.name,t.config)})),pe(t),ue[t]}return delete ue[t],null}function ve(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return le;if(!l(t)){if(e=he(t))return e;t=[t]}return function(t){for(var e,n,r,o,i=0;i<t.length;){for(e=(o=fe(t[i]).split("-")).length,n=(n=fe(t[i+1]))?n.split("-"):null;e>0;){if(r=he(o.slice(0,e).join("-")))return r;if(n&&n.length>=e&&P(o,n,!0)>=e-1)break;e--}i++}return le}(t)}function me(t){var e,a=t._a;return a&&-2===w(t).overflow&&(e=a[1]<0||a[1]>11?1:a[2]<1||a[2]>Et(a[0],a[1])?2:a[3]<0||a[3]>24||24===a[3]&&(0!==a[4]||0!==a[5]||0!==a[6])?3:a[4]<0||a[4]>59?4:a[5]<0||a[5]>59?5:a[6]<0||a[6]>999?6:-1,w(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),w(t)._overflowWeeks&&-1===e&&(e=7),w(t)._overflowWeekday&&-1===e&&(e=8),w(t).overflow=e),t}function ge(a,b,t){return null!=a?a:null!=b?b:t}function ye(t){var i,e,n,r,l,input=[];if(!t._d){for(n=function(t){var e=new Date(o.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,n,r,o,l,c,d,f;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)l=1,c=4,n=ge(e.GG,t._a[0],Wt(Ae(),1,4).year),r=ge(e.W,1),((o=ge(e.E,1))<1||o>7)&&(f=!0);else{l=t._locale._week.dow,c=t._locale._week.doy;var h=Wt(Ae(),l,c);n=ge(e.gg,t._a[0],h.year),r=ge(e.w,h.week),null!=e.d?((o=e.d)<0||o>6)&&(f=!0):null!=e.e?(o=e.e+l,(e.e<0||e.e>6)&&(f=!0)):o=l}r<1||r>Gt(n,l,c)?w(t)._overflowWeeks=!0:null!=f?w(t)._overflowWeekday=!0:(d=Yt(n,r,o,l,c),t._a[0]=d.year,t._dayOfYear=d.dayOfYear)}(t),null!=t._dayOfYear&&(l=ge(t._a[0],n[0]),(t._dayOfYear>xt(l)||0===t._dayOfYear)&&(w(t)._overflowDayOfYear=!0),e=$t(l,0,t._dayOfYear),t._a[1]=e.getUTCMonth(),t._a[2]=e.getUTCDate()),i=0;i<3&&null==t._a[i];++i)t._a[i]=input[i]=n[i];for(;i<7;i++)t._a[i]=input[i]=null==t._a[i]?2===i?1:0:t._a[i];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?$t:Rt).apply(null,input),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(w(t).weekdayMismatch=!0)}}var we=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Oe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ke=/Z|[+-]\d\d(?::?\d\d)?/,Se=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],je=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_e=/^\/?Date\((\-?\d+)/i;function xe(t){var i,e,n,r,o,l,c=t._i,d=we.exec(c)||Oe.exec(c);if(d){for(w(t).iso=!0,i=0,e=Se.length;i<e;i++)if(Se[i][1].exec(d[1])){r=Se[i][0],n=!1!==Se[i][2];break}if(null==r)return void(t._isValid=!1);if(d[3]){for(i=0,e=je.length;i<e;i++)if(je[i][1].exec(d[3])){o=(d[2]||" ")+je[i][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(d[4]){if(!ke.exec(d[4]))return void(t._isValid=!1);l="Z"}t._f=r+(o||"")+(l||""),Me(t)}else t._isValid=!1}var Te=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Be(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}var Ce={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pe(t){var e,n,r,o,l,c,d,f=Te.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(f){var h=(e=f[4],n=f[3],r=f[2],o=f[5],l=f[6],c=f[7],d=[Be(e),Dt.indexOf(n),parseInt(r,10),parseInt(o,10),parseInt(l,10)],c&&d.push(parseInt(c,10)),d);if(!function(t,e,n){return!t||Xt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(w(n).weekdayMismatch=!0,n._isValid=!1,!1)}(f[1],h,t))return;t._a=h,t._tzm=function(t,e,n){if(t)return Ce[t];if(e)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(f[8],f[9],f[10]),t._d=$t.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),w(t).rfc2822=!0}else t._isValid=!1}function Me(t){if(t._f!==o.ISO_8601)if(t._f!==o.RFC_2822){t._a=[],w(t).empty=!0;var i,e,n,r,l,c=""+t._i,d=c.length,f=0;for(n=Q(t._f,t._locale).match(W)||[],i=0;i<n.length;i++)r=n[i],(e=(c.match(wt(r,t))||[])[0])&&((l=c.substr(0,c.indexOf(e))).length>0&&w(t).unusedInput.push(l),c=c.slice(c.indexOf(e)+e.length),f+=e.length),Z[r]?(e?w(t).empty=!1:w(t).unusedTokens.push(r),_t(r,e,t)):t._strict&&!e&&w(t).unusedTokens.push(r);w(t).charsLeftOver=d-f,c.length>0&&w(t).unusedInput.push(c),t._a[3]<=12&&!0===w(t).bigHour&&t._a[3]>0&&(w(t).bigHour=void 0),w(t).parsedDateParts=t._a.slice(0),w(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),ye(t),me(t)}else Pe(t);else xe(t)}function qe(t){var input=t._i,e=t._f;return t._locale=t._locale||ve(t._l),null===input||void 0===e&&""===input?k({nullInput:!0}):("string"==typeof input&&(t._i=input=t._locale.preparse(input)),T(input)?new x(me(input)):(h(input)?t._d=input:l(e)?function(t){var e,n,r,i,o;if(0===t._f.length)return w(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)o=0,e=j({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Me(e),O(e)&&(o+=w(e).charsLeftOver,o+=10*w(e).unusedTokens.length,w(e).score=o,(null==r||o<r)&&(r=o,n=e));m(t,n||e)}(t):e?Me(t):function(t){var input=t._i;d(input)?t._d=new Date(o.now()):h(input)?t._d=new Date(input.valueOf()):"string"==typeof input?function(t){var e=_e.exec(t._i);null===e?(xe(t),!1===t._isValid&&(delete t._isValid,Pe(t),!1===t._isValid&&(delete t._isValid,o.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):l(input)?(t._a=map(input.slice(0),(function(t){return parseInt(t,10)})),ye(t)):c(input)?function(t){if(!t._d){var i=R(t._i);t._a=map([i.year,i.month,i.day||i.date,i.hour,i.minute,i.second,i.millisecond],(function(t){return t&&parseInt(t,10)})),ye(t)}}(t):f(input)?t._d=new Date(input):o.createFromInputFallback(t)}(t),O(t)||(t._d=null),t))}function Ee(input,t,e,n,r){var o,d={};return!0!==e&&!1!==e||(n=e,e=void 0),(c(input)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(input)||l(input)&&0===input.length)&&(input=void 0),d._isAMomentObject=!0,d._useUTC=d._isUTC=r,d._l=e,d._i=input,d._f=t,d._strict=n,(o=new x(me(qe(d))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Ae(input,t,e,n){return Ee(input,t,e,n,!1)}o.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var ze=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ae.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:k()})),De=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ae.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:k()}));function Le(t,e){var n,i;if(1===e.length&&l(e[0])&&(e=e[0]),!e.length)return Ae();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Ie=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ne(t){var e=R(t),n=e.year||0,r=e.quarter||0,o=e.month||0,l=e.week||e.isoWeek||0,c=e.day||0,d=e.hour||0,f=e.minute||0,h=e.second||0,v=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Bt.call(Ie,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Ie.length;++i)if(t[Ie[i]]){if(n)return!1;parseFloat(t[Ie[i]])!==C(t[Ie[i]])&&(n=!0)}return!0}(e),this._milliseconds=+v+1e3*h+6e4*f+1e3*d*60*60,this._days=+c+7*l,this._months=+o+3*r+12*n,this._data={},this._locale=ve(),this._bubble()}function He(t){return t instanceof Ne}function Ve(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Fe(t,e){X(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+Y(~~(t/60),2)+e+Y(~~t%60,2)}))}Fe("Z",":"),Fe("ZZ",""),yt("Z",vt),yt("ZZ",vt),St(["Z","ZZ"],(function(input,t,e){e._useUTC=!0,e._tzm=$e(vt,input)}));var Re=/([\+\-]|\d\d)/gi;function $e(t,e){var n=(e||"").match(t);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Re)||["-",0,0],o=60*r[1]+C(r[2]);return 0===o?0:"+"===r[0]?o:-o}function Ue(input,t){var e,n;return t._isUTC?(e=t.clone(),n=(T(input)||h(input)?input.valueOf():Ae(input).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+n),o.updateOffset(e,!1),e):Ae(input).local()}function Ye(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function We(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Ge=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ke=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ze(input,t){var e,n,r,base,o,l,c=input,d=null;return He(input)?c={ms:input._milliseconds,d:input._days,M:input._months}:f(input)?(c={},t?c[t]=input:c.milliseconds=input):(d=Ge.exec(input))?(e="-"===d[1]?-1:1,c={y:0,d:C(d[2])*e,h:C(d[3])*e,m:C(d[4])*e,s:C(d[5])*e,ms:C(Ve(1e3*d[6]))*e}):(d=Ke.exec(input))?(e="-"===d[1]?-1:1,c={y:Xe(d[2],e),M:Xe(d[3],e),w:Xe(d[4],e),d:Xe(d[5],e),h:Xe(d[6],e),m:Xe(d[7],e),s:Xe(d[8],e)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(base=Ae(c.from),o=Ae(c.to),r=base.isValid()&&o.isValid()?(o=Ue(o,base),base.isBefore(o)?l=Je(base,o):((l=Je(o,base)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=r.milliseconds,c.M=r.months),n=new Ne(c),He(input)&&v(input,"_locale")&&(n._locale=input._locale),n}function Xe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Je(base,t){var e={};return e.months=t.month()-base.month()+12*(t.year()-base.year()),base.clone().add(e.months,"M").isAfter(t)&&--e.months,e.milliseconds=+t-+base.clone().add(e.months,"M"),e}function Qe(t,e){return function(n,r){var o;return null===r||isNaN(+r)||(D(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),tn(this,Ze(n="string"==typeof n?+n:n,r),t),this}}function tn(t,e,n,r){var l=e._milliseconds,c=Ve(e._days),d=Ve(e._months);t.isValid()&&(r=null==r||r,d&&It(t,Mt(t,"Month")+d*n),c&&qt(t,"Date",Mt(t,"Date")+c*n),l&&t._d.setTime(t._d.valueOf()+l*n),r&&o.updateOffset(t,c||d))}Ze.fn=Ne.prototype,Ze.invalid=function(){return Ze(NaN)};var en=Qe(1,"add"),nn=Qe(-1,"subtract");function rn(a,b){var t=12*(b.year()-a.year())+(b.month()-a.month()),e=a.clone().add(t,"months");return-(t+(b-e<0?(b-e)/(e-a.clone().add(t-1,"months")):(b-e)/(a.clone().add(t+1,"months")-e)))||0}function on(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ve(t))&&(this._locale=e),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var an=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ln(){return this._locale}function sn(t,e){return(t%e+e)%e}function cn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-126227808e5:new Date(t,e,n).valueOf()}function un(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-126227808e5:Date.UTC(t,e,n)}function dn(t,e){X(0,[t,t.length],0,e)}function fn(input,t,e,n,r){var o;return null==input?Wt(this,n,r).year:(t>(o=Gt(input,n,r))&&(t=o),hn.call(this,input,t,e,n,r))}function hn(t,e,n,r,o){var l=Yt(t,e,n,r,o),c=$t(l.year,0,l.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}X(0,["gg",2],0,(function(){return this.weekYear()%100})),X(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),V("weekYear","gg"),V("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),yt("G",pt),yt("g",pt),yt("GG",at,et),yt("gg",at,et),yt("GGGG",ut,ot),yt("gggg",ut,ot),yt("GGGGG",ft,it),yt("ggggg",ft,it),jt(["gggg","ggggg","GGGG","GGGGG"],(function(input,t,e,n){t[n.substr(0,2)]=C(input)})),jt(["gg","GG"],(function(input,t,e,n){t[n]=o.parseTwoDigitYear(input)})),X("Q",0,"Qo","quarter"),V("quarter","Q"),U("quarter",7),yt("Q",tt),St("Q",(function(input,t){t[1]=3*(C(input)-1)})),X("D",["DD",2],"Do","date"),V("date","D"),U("date",9),yt("D",at),yt("DD",at,et),yt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),St(["D","DD"],2),St("Do",(function(input,t){t[2]=C(input.match(at)[0])}));var pn=Pt("Date",!0);X("DDD",["DDDD",3],"DDDo","dayOfYear"),V("dayOfYear","DDD"),U("dayOfYear",4),yt("DDD",ct),yt("DDDD",nt),St(["DDD","DDDD"],(function(input,t,e){e._dayOfYear=C(input)})),X("m",["mm",2],0,"minute"),V("minute","m"),U("minute",14),yt("m",at),yt("mm",at,et),St(["m","mm"],4);var bn=Pt("Minutes",!1);X("s",["ss",2],0,"second"),V("second","s"),U("second",15),yt("s",at),yt("ss",at,et),St(["s","ss"],5);var vn,mn=Pt("Seconds",!1);for(X("S",0,0,(function(){return~~(this.millisecond()/100)})),X(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),X(0,["SSS",3],0,"millisecond"),X(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),X(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),X(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),X(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),X(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),X(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),V("millisecond","ms"),U("millisecond",16),yt("S",ct,tt),yt("SS",ct,et),yt("SSS",ct,nt),vn="SSSS";vn.length<=9;vn+="S")yt(vn,ht);function gn(input,t){t[6]=C(1e3*("0."+input))}for(vn="S";vn.length<=9;vn+="S")St(vn,gn);var yn=Pt("Milliseconds",!1);X("z",0,0,"zoneAbbr"),X("zz",0,0,"zoneName");var wn=x.prototype;function On(t){return t}wn.add=en,wn.calendar=function(time,t){var e=time||Ae(),n=Ue(e,this).startOf("day"),r=o.calendarFormat(this,n)||"sameElse",output=t&&(L(t[r])?t[r].call(this,e):t[r]);return this.format(output||this.localeData().calendar(r,this,Ae(e)))},wn.clone=function(){return new x(this)},wn.diff=function(input,t,e){var n,r,output;if(!this.isValid())return NaN;if(!(n=Ue(input,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=F(t)){case"year":output=rn(this,n)/12;break;case"month":output=rn(this,n);break;case"quarter":output=rn(this,n)/3;break;case"second":output=(this-n)/1e3;break;case"minute":output=(this-n)/6e4;break;case"hour":output=(this-n)/36e5;break;case"day":output=(this-n-r)/864e5;break;case"week":output=(this-n-r)/6048e5;break;default:output=this-n}return e?output:B(output)},wn.endOf=function(t){var time;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;var e=this._isUTC?un:cn;switch(t){case"year":time=e(this.year()+1,0,1)-1;break;case"quarter":time=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":time=e(this.year(),this.month()+1,1)-1;break;case"week":time=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":time=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":time=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":time=this._d.valueOf(),time+=36e5-sn(time+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":time=this._d.valueOf(),time+=6e4-sn(time,6e4)-1;break;case"second":time=this._d.valueOf(),time+=1e3-sn(time,1e3)-1}return this._d.setTime(time),o.updateOffset(this,!0),this},wn.format=function(t){t||(t=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var output=J(this,t);return this.localeData().postformat(output)},wn.from=function(time,t){return this.isValid()&&(T(time)&&time.isValid()||Ae(time).isValid())?Ze({to:this,from:time}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.fromNow=function(t){return this.from(Ae(),t)},wn.to=function(time,t){return this.isValid()&&(T(time)&&time.isValid()||Ae(time).isValid())?Ze({from:this,to:time}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.toNow=function(t){return this.to(Ae(),t)},wn.get=function(t){return L(this[t=F(t)])?this[t]():this},wn.invalidAt=function(){return w(this).overflow},wn.isAfter=function(input,t){var e=T(input)?input:Ae(input);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},wn.isBefore=function(input,t){var e=T(input)?input:Ae(input);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},wn.isBetween=function(t,e,n,r){var o=T(t)?t:Ae(t),l=T(e)?e:Ae(e);return!!(this.isValid()&&o.isValid()&&l.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(l,n):!this.isAfter(l,n))},wn.isSame=function(input,t){var e,n=T(input)?input:Ae(input);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===n.valueOf():(e=n.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},wn.isSameOrAfter=function(input,t){return this.isSame(input,t)||this.isAfter(input,t)},wn.isSameOrBefore=function(input,t){return this.isSame(input,t)||this.isBefore(input,t)},wn.isValid=function(){return O(this)},wn.lang=an,wn.locale=on,wn.localeData=ln,wn.max=De,wn.min=ze,wn.parsingFlags=function(){return m({},w(this))},wn.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var u in t)e.push({unit:u,priority:$[u]});return e.sort((function(a,b){return a.priority-b.priority})),e}(t=R(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(L(this[t=F(t)]))return this[t](e);return this},wn.startOf=function(t){var time;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;var e=this._isUTC?un:cn;switch(t){case"year":time=e(this.year(),0,1);break;case"quarter":time=e(this.year(),this.month()-this.month()%3,1);break;case"month":time=e(this.year(),this.month(),1);break;case"week":time=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":time=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":time=e(this.year(),this.month(),this.date());break;case"hour":time=this._d.valueOf(),time-=sn(time+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":time=this._d.valueOf(),time-=sn(time,6e4);break;case"second":time=this._d.valueOf(),time-=sn(time,1e3)}return this._d.setTime(time),o.updateOffset(this,!0),this},wn.subtract=nn,wn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},wn.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},wn.toDate=function(){return new Date(this.valueOf())},wn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?J(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",J(n,"Z")):J(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},wn.toJSON=function(){return this.isValid()?this.toISOString():null},wn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.year=Ct,wn.isLeapYear=function(){return Tt(this.year())},wn.weekYear=function(input){return fn.call(this,input,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function(input){return fn.call(this,input,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function(input){return null==input?Math.ceil((this.month()+1)/3):this.month(3*(input-1)+this.month()%3)},wn.month=Nt,wn.daysInMonth=function(){return Et(this.year(),this.month())},wn.week=wn.weeks=function(input){var t=this.localeData().week(this);return null==input?t:this.add(7*(input-t),"d")},wn.isoWeek=wn.isoWeeks=function(input){var t=Wt(this,1,4).week;return null==input?t:this.add(7*(input-t),"d")},wn.weeksInYear=function(){var t=this.localeData()._week;return Gt(this.year(),t.dow,t.doy)},wn.isoWeeksInYear=function(){return Gt(this.year(),1,4)},wn.date=pn,wn.day=wn.days=function(input){if(!this.isValid())return null!=input?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=input?(input=function(input,t){return"string"!=typeof input?input:isNaN(input)?"number"==typeof(input=t.weekdaysParse(input))?input:null:parseInt(input,10)}(input,this.localeData()),this.add(input-t,"d")):t},wn.weekday=function(input){if(!this.isValid())return null!=input?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==input?t:this.add(input-t,"d")},wn.isoWeekday=function(input){if(!this.isValid())return null!=input?this:NaN;if(null!=input){var t=function(input,t){return"string"==typeof input?t.weekdaysParse(input)%7||7:isNaN(input)?null:input}(input,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},wn.dayOfYear=function(input){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==input?t:this.add(input-t,"d")},wn.hour=wn.hours=se,wn.minute=wn.minutes=bn,wn.second=wn.seconds=mn,wn.millisecond=wn.milliseconds=yn,wn.utcOffset=function(input,t,e){var n,r=this._offset||0;if(!this.isValid())return null!=input?this:NaN;if(null!=input){if("string"==typeof input){if(null===(input=$e(vt,input)))return this}else Math.abs(input)<16&&!e&&(input*=60);return!this._isUTC&&t&&(n=Ye(this)),this._offset=input,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==input&&(!t||this._changeInProgress?tn(this,Ze(input-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ye(this)},wn.utc=function(t){return this.utcOffset(0,t)},wn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ye(this),"m")),this},wn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=$e(bt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function(input){return!!this.isValid()&&(input=input?Ae(input).utcOffset():0,(this.utcOffset()-input)%60==0)},wn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wn.isUtc=We,wn.isUTC=We,wn.zoneAbbr=function(){return this._isUTC?"UTC":""},wn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=E("dates accessor is deprecated. Use date instead.",pn),wn.months=E("months accessor is deprecated. Use month instead",Nt),wn.years=E("years accessor is deprecated. Use year instead",Ct),wn.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(input,t){return null!=input?("string"!=typeof input&&(input=-input),this.utcOffset(input,t),this):-this.utcOffset()})),wn.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!d(this._isDSTShifted))return this._isDSTShifted;var t={};if(j(t,this),(t=qe(t))._a){var e=t._isUTC?y(t._a):Ae(t._a);this._isDSTShifted=this.isValid()&&P(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var kn=N.prototype;function Sn(t,e,n,r){var o=ve(),l=y().set(r,e);return o[n](l,t)}function jn(t,e,n){if(f(t)&&(e=t,t=void 0),t=t||"",null!=e)return Sn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Sn(t,i,n,"month");return r}function _n(t,e,n,r){"boolean"==typeof t?(f(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,f(e)&&(n=e,e=void 0),e=e||"");var i,o=ve(),l=t?o._week.dow:0;if(null!=n)return Sn(e,(n+l)%7,r,"day");var c=[];for(i=0;i<7;i++)c[i]=Sn(e,(i+l)%7,r,"day");return c}kn.calendar=function(t,e,n){var output=this._calendar[t]||this._calendar.sameElse;return L(output)?output.call(e,n):output},kn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},kn.invalidDate=function(){return this._invalidDate},kn.ordinal=function(t){return this._ordinal.replace("%d",t)},kn.preparse=On,kn.postformat=On,kn.relativeTime=function(t,e,n,r){var output=this._relativeTime[n];return L(output)?output(t,e,n,r):output.replace(/%d/i,t)},kn.pastFuture=function(t,output){var e=this._relativeTime[t>0?"future":"past"];return L(e)?e(output):e.replace(/%s/i,output)},kn.set=function(t){var e,i;for(i in t)L(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kn.months=function(t,e){return t?l(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||At).test(e)?"format":"standalone"][t.month()]:l(this._months)?this._months:this._months.standalone},kn.monthsShort=function(t,e){return t?l(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[At.test(e)?"format":"standalone"][t.month()]:l(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kn.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return Lt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=y([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},kn.monthsRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||Ft.call(this),t?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=Vt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},kn.monthsShortRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||Ft.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=Ht),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},kn.week=function(t){return Wt(t,this._week.dow,this._week.doy).week},kn.firstDayOfYear=function(){return this._week.doy},kn.firstDayOfWeek=function(){return this._week.dow},kn.weekdays=function(t,e){var n=l(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Kt(n,this._week.dow):t?n[t.day()]:n},kn.weekdaysMin=function(t){return!0===t?Kt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},kn.weekdaysShort=function(t){return!0===t?Kt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},kn.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return Qt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=y([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},kn.weekdaysRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||re.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=te),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},kn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||re.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ee),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||re.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ne),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kn.isPM=function(input){return"p"===(input+"").toLowerCase().charAt(0)},kn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},pe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var b=t%10;return t+(1===C(t%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")}}),o.lang=E("moment.lang is deprecated. Use moment.locale instead.",pe),o.langData=E("moment.langData is deprecated. Use moment.localeData instead.",ve);var xn=Math.abs;function Tn(t,input,e,n){var r=Ze(input,e);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Bn(t){return t<0?Math.floor(t):Math.ceil(t)}function Cn(t){return 4800*t/146097}function Pn(t){return 146097*t/4800}function Mn(t){return function(){return this.as(t)}}var qn=Mn("ms"),En=Mn("s"),An=Mn("m"),zn=Mn("h"),Dn=Mn("d"),Ln=Mn("w"),In=Mn("M"),Nn=Mn("Q"),Hn=Mn("y");function Vn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Fn=Vn("milliseconds"),Rn=Vn("seconds"),$n=Vn("minutes"),Un=Vn("hours"),Yn=Vn("days"),Wn=Vn("months"),Gn=Vn("years"),Kn=Math.round,Zn={ss:44,s:45,m:45,h:22,d:26,M:11};function Xn(t,e,n,r,o){return o.relativeTime(e||1,!!n,t,r)}var Jn=Math.abs;function Qn(t){return(t>0)-(t<0)||+t}function er(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Jn(this._milliseconds)/1e3,r=Jn(this._days),o=Jn(this._months);t=B(n/60),e=B(t/60),n%=60,t%=60;var l=B(o/12),c=o%=12,d=r,f=e,h=t,s=n?n.toFixed(3).replace(/\.?0+$/,""):"",v=this.asSeconds();if(!v)return"P0D";var m=v<0?"-":"",y=Qn(this._months)!==Qn(v)?"-":"",w=Qn(this._days)!==Qn(v)?"-":"",O=Qn(this._milliseconds)!==Qn(v)?"-":"";return m+"P"+(l?y+l+"Y":"")+(c?y+c+"M":"")+(d?w+d+"D":"")+(f||h||s?"T":"")+(f?O+f+"H":"")+(h?O+h+"M":"")+(s?O+s+"S":"")}var nr=Ne.prototype;return nr.isValid=function(){return this._isValid},nr.abs=function(){var data=this._data;return this._milliseconds=xn(this._milliseconds),this._days=xn(this._days),this._months=xn(this._months),data.milliseconds=xn(data.milliseconds),data.seconds=xn(data.seconds),data.minutes=xn(data.minutes),data.hours=xn(data.hours),data.months=xn(data.months),data.years=xn(data.years),this},nr.add=function(input,t){return Tn(this,input,t,1)},nr.subtract=function(input,t){return Tn(this,input,t,-1)},nr.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=F(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Cn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Pn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},nr.asMilliseconds=qn,nr.asSeconds=En,nr.asMinutes=An,nr.asHours=zn,nr.asDays=Dn,nr.asWeeks=Ln,nr.asMonths=In,nr.asQuarters=Nn,nr.asYears=Hn,nr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*C(this._months/12):NaN},nr._bubble=function(){var t,e,n,r,o,l=this._milliseconds,c=this._days,d=this._months,data=this._data;return l>=0&&c>=0&&d>=0||l<=0&&c<=0&&d<=0||(l+=864e5*Bn(Pn(d)+c),c=0,d=0),data.milliseconds=l%1e3,t=B(l/1e3),data.seconds=t%60,e=B(t/60),data.minutes=e%60,n=B(e/60),data.hours=n%24,c+=B(n/24),o=B(Cn(c)),d+=o,c-=Bn(Pn(o)),r=B(d/12),d%=12,data.days=c,data.months=d,data.years=r,this},nr.clone=function(){return Ze(this)},nr.get=function(t){return t=F(t),this.isValid()?this[t+"s"]():NaN},nr.milliseconds=Fn,nr.seconds=Rn,nr.minutes=$n,nr.hours=Un,nr.days=Yn,nr.weeks=function(){return B(this.days()/7)},nr.months=Wn,nr.years=Gn,nr.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),output=function(t,e,n){var r=Ze(t).abs(),o=Kn(r.as("s")),l=Kn(r.as("m")),c=Kn(r.as("h")),d=Kn(r.as("d")),f=Kn(r.as("M")),h=Kn(r.as("y")),a=o<=Zn.ss&&["s",o]||o<Zn.s&&["ss",o]||l<=1&&["m"]||l<Zn.m&&["mm",l]||c<=1&&["h"]||c<Zn.h&&["hh",c]||d<=1&&["d"]||d<Zn.d&&["dd",d]||f<=1&&["M"]||f<Zn.M&&["MM",f]||h<=1&&["y"]||["yy",h];return a[2]=e,a[3]=+t>0,a[4]=n,Xn.apply(null,a)}(this,!t,e);return t&&(output=e.pastFuture(+this,output)),e.postformat(output)},nr.toISOString=er,nr.toString=er,nr.toJSON=er,nr.locale=on,nr.localeData=ln,nr.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er),nr.lang=an,X("X",0,0,"unix"),X("x",0,0,"valueOf"),yt("x",pt),yt("X",/[+-]?\d+(\.\d{1,3})?/),St("X",(function(input,t,e){e._d=new Date(1e3*parseFloat(input,10))})),St("x",(function(input,t,e){e._d=new Date(C(input))})),o.version="2.24.0",e=Ae,o.fn=wn,o.min=function(){var t=[].slice.call(arguments,0);return Le("isBefore",t)},o.max=function(){var t=[].slice.call(arguments,0);return Le("isAfter",t)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=y,o.unix=function(input){return Ae(1e3*input)},o.months=function(t,e){return jn(t,e,"months")},o.isDate=h,o.locale=pe,o.invalid=k,o.duration=Ze,o.isMoment=T,o.weekdays=function(t,e,n){return _n(t,e,n,"weekdays")},o.parseZone=function(){return Ae.apply(null,arguments).parseZone()},o.localeData=ve,o.isDuration=He,o.monthsShort=function(t,e){return jn(t,e,"monthsShort")},o.weekdaysMin=function(t,e,n){return _n(t,e,n,"weekdaysMin")},o.defineLocale=be,o.updateLocale=function(t,e){if(null!=e){var n,r,o=ce;null!=(r=he(t))&&(o=r._config),e=I(o,e),(n=new N(e)).parentLocale=ue[t],ue[t]=n,pe(t)}else null!=ue[t]&&(null!=ue[t].parentLocale?ue[t]=ue[t].parentLocale:null!=ue[t]&&delete ue[t]);return ue[t]},o.locales=function(){return A(ue)},o.weekdaysShort=function(t,e,n){return _n(t,e,n,"weekdaysShort")},o.normalizeUnits=F,o.relativeTimeRounding=function(t){return void 0===t?Kn:"function"==typeof t&&(Kn=t,!0)},o.relativeTimeThreshold=function(t,e){return void 0!==Zn[t]&&(void 0===e?Zn[t]:(Zn[t]=e,"s"===t&&(Zn.ss=e-1),!0))},o.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=wn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(233)(t))},122:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(6),o=n(102),l=n(63),c=n(0),d=Object(r.c)({components:{BIcon:o.a,BIconstack:l.a,BIconBlank:c.Z,BIconAlarm:c.a,BIconAlarmFill:c.b,BIconAlertCircle:c.c,BIconAlertCircleFill:c.d,BIconAlertOctagon:c.e,BIconAlertOctagonFill:c.f,BIconAlertSquare:c.g,BIconAlertSquareFill:c.h,BIconAlertTriangle:c.i,BIconAlertTriangleFill:c.j,BIconArchive:c.k,BIconArchiveFill:c.l,BIconArrowBarBottom:c.m,BIconArrowBarLeft:c.n,BIconArrowBarRight:c.o,BIconArrowBarUp:c.p,BIconArrowClockwise:c.q,BIconArrowCounterclockwise:c.r,BIconArrowDown:c.s,BIconArrowDownLeft:c.t,BIconArrowDownRight:c.u,BIconArrowDownShort:c.v,BIconArrowLeft:c.w,BIconArrowLeftRight:c.x,BIconArrowLeftShort:c.y,BIconArrowRepeat:c.z,BIconArrowRight:c.A,BIconArrowRightShort:c.B,BIconArrowUp:c.C,BIconArrowUpDown:c.D,BIconArrowUpLeft:c.E,BIconArrowUpRight:c.F,BIconArrowUpShort:c.G,BIconArrowsAngleContract:c.H,BIconArrowsAngleExpand:c.I,BIconArrowsCollapse:c.J,BIconArrowsExpand:c.K,BIconArrowsFullscreen:c.L,BIconAt:c.M,BIconAward:c.N,BIconBackspace:c.O,BIconBackspaceFill:c.P,BIconBackspaceReverse:c.Q,BIconBackspaceReverseFill:c.R,BIconBarChart:c.S,BIconBarChartFill:c.T,BIconBattery:c.U,BIconBatteryCharging:c.V,BIconBatteryFull:c.W,BIconBell:c.X,BIconBellFill:c.Y,BIconBlockquoteLeft:c.ab,BIconBlockquoteRight:c.bb,BIconBook:c.cb,BIconBookHalfFill:c.db,BIconBookmark:c.eb,BIconBookmarkFill:c.fb,BIconBootstrap:c.gb,BIconBootstrapFill:c.hb,BIconBootstrapReboot:c.ib,BIconBoxArrowBottomLeft:c.jb,BIconBoxArrowBottomRight:c.kb,BIconBoxArrowDown:c.lb,BIconBoxArrowLeft:c.mb,BIconBoxArrowRight:c.nb,BIconBoxArrowUp:c.ob,BIconBoxArrowUpLeft:c.pb,BIconBoxArrowUpRight:c.qb,BIconBraces:c.rb,BIconBrightnessFillHigh:c.sb,BIconBrightnessFillLow:c.tb,BIconBrightnessHigh:c.ub,BIconBrightnessLow:c.vb,BIconBrush:c.wb,BIconBucket:c.xb,BIconBucketFill:c.yb,BIconBuilding:c.zb,BIconBullseye:c.Ab,BIconCalendar:c.Bb,BIconCalendarFill:c.Cb,BIconCamera:c.Db,BIconCameraVideo:c.Eb,BIconCameraVideoFill:c.Fb,BIconCapslock:c.Gb,BIconCapslockFill:c.Hb,BIconChat:c.Ib,BIconChatFill:c.Jb,BIconCheck:c.Kb,BIconCheckBox:c.Lb,BIconCheckCircle:c.Mb,BIconChevronCompactDown:c.Nb,BIconChevronCompactLeft:c.Ob,BIconChevronCompactRight:c.Pb,BIconChevronCompactUp:c.Qb,BIconChevronDown:c.Rb,BIconChevronLeft:c.Sb,BIconChevronRight:c.Tb,BIconChevronUp:c.Ub,BIconCircle:c.Vb,BIconCircleFill:c.Wb,BIconCircleHalf:c.Xb,BIconCircleSlash:c.Yb,BIconClock:c.Zb,BIconClockFill:c.ac,BIconCloud:c.bc,BIconCloudDownload:c.cc,BIconCloudFill:c.dc,BIconCloudUpload:c.ec,BIconCode:c.fc,BIconCodeSlash:c.gc,BIconColumns:c.hc,BIconColumnsGutters:c.ic,BIconCommand:c.jc,BIconCompass:c.kc,BIconCone:c.lc,BIconConeStriped:c.mc,BIconController:c.nc,BIconCreditCard:c.oc,BIconCursor:c.pc,BIconCursorFill:c.qc,BIconDash:c.rc,BIconDiamond:c.sc,BIconDiamondHalf:c.tc,BIconDisplay:c.uc,BIconDisplayFill:c.vc,BIconDocument:c.wc,BIconDocumentCode:c.xc,BIconDocumentDiff:c.yc,BIconDocumentRichtext:c.zc,BIconDocumentSpreadsheet:c.Ac,BIconDocumentText:c.Bc,BIconDocuments:c.Cc,BIconDocumentsAlt:c.Dc,BIconDot:c.Ec,BIconDownload:c.Fc,BIconEggFried:c.Gc,BIconEject:c.Hc,BIconEjectFill:c.Ic,BIconEnvelope:c.Jc,BIconEnvelopeFill:c.Kc,BIconEnvelopeOpen:c.Lc,BIconEnvelopeOpenFill:c.Mc,BIconEye:c.Nc,BIconEyeFill:c.Oc,BIconEyeSlash:c.Pc,BIconEyeSlashFill:c.Qc,BIconFilter:c.Rc,BIconFlag:c.Sc,BIconFlagFill:c.Tc,BIconFolder:c.Uc,BIconFolderFill:c.Vc,BIconFolderSymlink:c.Wc,BIconFolderSymlinkFill:c.Xc,BIconFonts:c.Yc,BIconForward:c.Zc,BIconForwardFill:c.ad,BIconGear:c.bd,BIconGearFill:c.cd,BIconGearWide:c.dd,BIconGearWideConnected:c.ed,BIconGeo:c.fd,BIconGraphDown:c.gd,BIconGraphUp:c.hd,BIconGrid:c.id,BIconGridFill:c.jd,BIconHammer:c.kd,BIconHash:c.ld,BIconHeart:c.md,BIconHeartFill:c.nd,BIconHouse:c.od,BIconHouseFill:c.pd,BIconImage:c.qd,BIconImageAlt:c.rd,BIconImageFill:c.sd,BIconImages:c.td,BIconInbox:c.ud,BIconInboxFill:c.vd,BIconInboxes:c.wd,BIconInboxesFill:c.xd,BIconInfo:c.yd,BIconInfoFill:c.zd,BIconInfoSquare:c.Ad,BIconInfoSquareFill:c.Bd,BIconJustify:c.Cd,BIconJustifyLeft:c.Dd,BIconJustifyRight:c.Ed,BIconKanban:c.Fd,BIconKanbanFill:c.Gd,BIconLaptop:c.Hd,BIconLayoutSidebar:c.Id,BIconLayoutSidebarReverse:c.Jd,BIconLayoutSplit:c.Kd,BIconList:c.Ld,BIconListCheck:c.Md,BIconListOl:c.Nd,BIconListTask:c.Od,BIconListUl:c.Pd,BIconLock:c.Qd,BIconLockFill:c.Rd,BIconMap:c.Sd,BIconMic:c.Td,BIconMoon:c.Ud,BIconMusicPlayer:c.Vd,BIconMusicPlayerFill:c.Wd,BIconOption:c.Xd,BIconOutlet:c.Yd,BIconPause:c.Zd,BIconPauseFill:c.ae,BIconPen:c.be,BIconPencil:c.ce,BIconPeople:c.de,BIconPeopleFill:c.ee,BIconPerson:c.fe,BIconPersonFill:c.ge,BIconPhone:c.he,BIconPhoneLandscape:c.ie,BIconPieChart:c.je,BIconPieChartFill:c.ke,BIconPlay:c.le,BIconPlayFill:c.me,BIconPlug:c.ne,BIconPlus:c.oe,BIconPower:c.pe,BIconQuestion:c.qe,BIconQuestionFill:c.re,BIconQuestionSquare:c.se,BIconQuestionSquareFill:c.te,BIconReply:c.ue,BIconReplyAll:c.ve,BIconReplyAllFill:c.we,BIconReplyFill:c.xe,BIconScrewdriver:c.ye,BIconSearch:c.ze,BIconShield:c.Ae,BIconShieldFill:c.Be,BIconShieldLock:c.Ce,BIconShieldLockFill:c.De,BIconShieldShaded:c.Ee,BIconShift:c.Fe,BIconShiftFill:c.Ge,BIconSkipBackward:c.He,BIconSkipBackwardFill:c.Ie,BIconSkipEnd:c.Je,BIconSkipEndFill:c.Ke,BIconSkipForward:c.Le,BIconSkipForwardFill:c.Me,BIconSkipStart:c.Ne,BIconSkipStartFill:c.Oe,BIconSpeaker:c.Pe,BIconSquare:c.Qe,BIconSquareFill:c.Re,BIconSquareHalf:c.Se,BIconStar:c.Te,BIconStarFill:c.Ue,BIconStarHalf:c.Ve,BIconStop:c.We,BIconStopFill:c.Xe,BIconStopwatch:c.Ye,BIconStopwatchFill:c.Ze,BIconSun:c.af,BIconTable:c.bf,BIconTablet:c.cf,BIconTabletLandscape:c.df,BIconTag:c.ef,BIconTagFill:c.ff,BIconTerminal:c.gf,BIconTerminalFill:c.hf,BIconTextCenter:c.if,BIconTextIndentLeft:c.jf,BIconTextIndentRight:c.kf,BIconTextLeft:c.lf,BIconTextRight:c.mf,BIconThreeDots:c.nf,BIconThreeDotsVertical:c.of,BIconToggleOff:c.pf,BIconToggleOn:c.qf,BIconToggles:c.rf,BIconTools:c.sf,BIconTrash:c.tf,BIconTrashFill:c.uf,BIconTriangle:c.vf,BIconTriangleFill:c.wf,BIconTriangleHalf:c.xf,BIconTrophy:c.yf,BIconTv:c.zf,BIconTvFill:c.Af,BIconType:c.Bf,BIconTypeBold:c.Cf,BIconTypeH1:c.Df,BIconTypeH2:c.Ef,BIconTypeH3:c.Ff,BIconTypeItalic:c.Gf,BIconTypeStrikethrough:c.Hf,BIconTypeUnderline:c.If,BIconUnlock:c.Jf,BIconUnlockFill:c.Kf,BIconUpload:c.Lf,BIconVolumeDown:c.Mf,BIconVolumeDownFill:c.Nf,BIconVolumeMute:c.Of,BIconVolumeMuteFill:c.Pf,BIconVolumeUp:c.Qf,BIconVolumeUpFill:c.Rf,BIconWallet:c.Sf,BIconWatch:c.Tf,BIconWifi:c.Uf,BIconWindow:c.Vf,BIconWrench:c.Wf,BIconX:c.Xf,BIconXCircle:c.Yf,BIconXCircleFill:c.Zf,BIconXOctagon:c.ag,BIconXOctagonFill:c.bg,BIconXSquare:c.cg,BIconXSquareFill:c.dg}}),f=Object(r.c)({plugins:{IconsPlugin:d}},{NAME:"BootstrapVueIcons"})},123:function(t,e,n){!function(t){"use strict";t.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(input){return"午後"===input},meridiem:function(t,e,n){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()<t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(105))},125:function(t,e,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,l=r(),c=l.default;void 0===c&&(c=[]);var d=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||d)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||d):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=r},13:function(t,e,n){"use strict";(function(t){n.d(e,"i",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"g",(function(){return c})),n.d(e,"d",(function(){return d})),n.d(e,"j",(function(){return f})),n.d(e,"k",(function(){return v})),n.d(e,"e",(function(){return m})),n.d(e,"h",(function(){return y})),n.d(e,"f",(function(){return w})),n.d(e,"c",(function(){return O})),n.d(e,"a",(function(){return k}));n(9);var r="undefined"!=typeof window,o="undefined"!=typeof document,l="undefined"!=typeof navigator,c="undefined"!=typeof Promise,d="undefined"!=typeof MutationObserver||"undefined"!=typeof WebKitMutationObserver||"undefined"!=typeof MozMutationObserver,f=r&&o&&l,h=f?window.navigator.userAgent.toLowerCase():"",v=h.indexOf("jsdom")>0,m=(/msie|trident/.test(h),function(){var t=!1;if(f)try{var e={get passive(){t=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){t=!1}return t}()),y=f&&("ontouchstart"in document.documentElement||navigator.maxTouchPoints>0),w=f&&Boolean(window.PointerEvent||window.MSPointerEvent),O=f&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,k=function(){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=void 0!==t&&t&&t.env||{};return e?r[e]||n:r}("BOOTSTRAP_VUE_NO_WARN")}}).call(this,n(117))},15:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return l}));var r=function(t){return parseInt(t,10)},o=function(t){return parseFloat(t)},l=function(t,e){return o(t).toFixed(r(e)||0)}},16:function(t,e,n){"use strict";e.a=function(t){return t}},167:function(t,e,n){"use strict";e.a=function(t,e){return e=e||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(JSON.parse(s.responseText))},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var l in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){o.push(e=e.toLowerCase()),u.push([e,n]),i[e]=i[e]?i[e]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(l,e.headers[l]);s.send(e.body||null)}))}},169:function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?v((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function c(t,source,e){return t.concat(source).map((function(element){return l(element,e)}))}function d(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return t.propertyIsEnumerable(symbol)})):[]}(t))}function f(object,t){try{return t in object}catch(t){return!1}}function h(t,source,e){var n={};return e.isMergeableObject(t)&&d(t).forEach((function(r){n[r]=l(t[r],e)})),d(source).forEach((function(r){(function(t,e){return f(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(f(t,r)&&e.isMergeableObject(source[r])?n[r]=function(t,e){if(!e.customMerge)return v;var n=e.customMerge(t);return"function"==typeof n?n:v}(r,e)(t[r],source[r],e):n[r]=l(source[r],e))})),n}function v(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||c,e.isMergeableObject=e.isMergeableObject||r,e.cloneUnlessOtherwiseSpecified=l;var n=Array.isArray(source);return n===Array.isArray(t)?n?e.arrayMerge(t,source,e):h(t,source,e):l(source,e)}v.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return v(t,n,e)}),{})};var m=v;t.exports=m},170:function(t,e){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(1);t.exports=function(e,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a="object"===("undefined"==typeof document?"undefined":r(document))&&"string"==typeof document.cookie,s="object"===(void 0===e?"undefined":r(e))&&"object"===(void 0===n?"undefined":r(n))&&void 0!==t,u=!a&&!s||a&&s,l=function(t){if(s){var r=e.headers.cookie||"";return t&&(r=(r=n.getHeaders())["set-cookie"]?r["set-cookie"].map((function(t){return t.split(";")[0]})).join(";"):""),r}if(a)return document.cookie||""},c=function(){var t=n.getHeader("Set-Cookie");return(t="string"==typeof t?[t]:t)||[]},p=function(t){return n.setHeader("Set-Cookie",t)},d=function(t,e){if(!e)return t;try{return JSON.parse(t)}catch(e){return t}},f={parseJSON:i,set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};if(!u)if(e="object"===(void 0===e?"undefined":r(e))?JSON.stringify(e):e,s){var i=c();i.push(o.serialize(t,e,n)),p(i)}else document.cookie=o.serialize(t,e,n)},setAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u||Array.isArray(t)&&t.forEach((function(t){var e=t.name,n=void 0===e?"":e,r=t.value,o=void 0===r?"":r,i=t.opts,a=void 0===i?{path:"/"}:i;f.set(n,o,a)}))},get:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fromRes:!1,parseJSON:f.parseJSON};if(u)return"";var n=o.parse(l(e.fromRes)),r=n[t];return d(r,e.parseJSON)},getAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromRes:!1,parseJSON:f.parseJSON};if(u)return{};var e=o.parse(l(t.fromRes));for(var n in e)e[n]=d(e[n],t.parseJSON);return e},remove:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{path:"/"};if(!u){var n=f.get(t);e.expires=new Date(0),void 0!==n&&f.set(t,"",e)}},removeAll:function(){if(!u){var t=o.parse(l());for(var e in t)f.remove(e)}},nodeCookie:o};return f}},function(t,e,n){"use strict";function i(t,e){try{return e(t)}catch(e){return t}}e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},r=e||{},o=t.split(u),s=r.decode||a,l=0;l<o.length;l++){var c=o[l],p=c.indexOf("=");if(!(p<0)){var d=c.substr(0,p).trim(),f=c.substr(++p,c.length).trim();'"'==f[0]&&(f=f.slice(1,-1)),null==n[d]&&(n[d]=i(f,s))}}return n},e.serialize=function(t,e,n){var o=n||{},l=o.encode||s;if("function"!=typeof l)throw new TypeError("option encode is invalid");if(!r.test(t))throw new TypeError("argument name is invalid");var i=l(e);if(i&&!r.test(i))throw new TypeError("argument val is invalid");var a=t+"="+i;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u))throw new Error("maxAge should be a Number");a+="; Max-Age="+Math.floor(u)}if(o.domain){if(!r.test(o.domain))throw new TypeError("option domain is invalid");a+="; Domain="+o.domain}if(o.path){if(!r.test(o.path))throw new TypeError("option path is invalid");a+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");a+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(a+="; HttpOnly"),o.secure&&(a+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a};var a=decodeURIComponent,s=encodeURIComponent,u=/; */,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/}])},171:function(t,e){function n(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)}t.exports=function t(e,r){if(!n(e))return t({},r);if(!n(r))return t(e,{});var o=Object.assign({},r);return Object.keys(e).forEach((function(r){if("__proto__"!==r&&"constructor"!==r){var l=e[r];null!==l&&(n(l)&&n(o[r])?o[r]=t(l,o[r]):o[r]=l)}})),o}},172:function(t,e,n){"use strict";(function(t){var r=n(34),o=n.n(r),l=[[{header:[!1,1,2,3,4,5,6]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{list:"check"}],[{indent:"-1"},{indent:"+1"}],[{color:[]},{background:[]}],["link","image","video"],["clean"]],c={props:{customModules:Array},methods:{registerCustomModules:function(t){void 0!==this.customModules&&this.customModules.forEach((function(e){t.register("modules/"+e.alias,e.module)}))}}};function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,p){return(m=Object.setPrototypeOf||function(t,p){return t.__proto__=p,t})(t,p)}function y(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return e}(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var O=function(t){function e(){return f(this,e),y(this,v(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(e,t),e}(o.a.import("blots/block/embed"));O.blotName="hr",O.tagName="hr",o.a.register("formats/horizontal",O);var k=function(){function t(e,n){var r=this;f(this,t),this.quill=e,this.options=n,this.ignoreTags=["PRE"],this.matches=[{name:"header",pattern:/^(#){1,6}\s/g,action:function(text,t,pattern){var e=pattern.exec(text);if(e){var n=e[0].length;setTimeout((function(){r.quill.formatLine(t.index,0,"header",n-1),r.quill.deleteText(t.index-n,n)}),0)}}},{name:"blockquote",pattern:/^(>)\s/g,action:function(t,e){setTimeout((function(){r.quill.formatLine(e.index,1,"blockquote",!0),r.quill.deleteText(e.index-2,2)}),0)}},{name:"code-block",pattern:/^`{3}(?:\s|\n)/g,action:function(t,e){setTimeout((function(){r.quill.formatLine(e.index,1,"code-block",!0),r.quill.deleteText(e.index-4,4)}),0)}},{name:"bolditalic",pattern:/(?:\*|_){3}(.+?)(?:\*|_){3}/g,action:function(text,t,pattern,e){var n=pattern.exec(text),o=n[0],l=n[1],c=e+n.index;text.match(/^([*_ \n]+)$/g)||setTimeout((function(){r.quill.deleteText(c,o.length),r.quill.insertText(c,l,{bold:!0,italic:!0}),r.quill.format("bold",!1)}),0)}},{name:"bold",pattern:/(?:\*|_){2}(.+?)(?:\*|_){2}/g,action:function(text,t,pattern,e){var n=pattern.exec(text),o=n[0],l=n[1],c=e+n.index;text.match(/^([*_ \n]+)$/g)||setTimeout((function(){r.quill.deleteText(c,o.length),r.quill.insertText(c,l,{bold:!0}),r.quill.format("bold",!1)}),0)}},{name:"italic",pattern:/(?:\*|_){1}(.+?)(?:\*|_){1}/g,action:function(text,t,pattern,e){var n=pattern.exec(text),o=n[0],l=n[1],c=e+n.index;text.match(/^([*_ \n]+)$/g)||setTimeout((function(){r.quill.deleteText(c,o.length),r.quill.insertText(c,l,{italic:!0}),r.quill.format("italic",!1)}),0)}},{name:"strikethrough",pattern:/(?:~~)(.+?)(?:~~)/g,action:function(text,t,pattern,e){var n=pattern.exec(text),o=n[0],l=n[1],c=e+n.index;text.match(/^([*_ \n]+)$/g)||setTimeout((function(){r.quill.deleteText(c,o.length),r.quill.insertText(c,l,{strike:!0}),r.quill.format("strike",!1)}),0)}},{name:"code",pattern:/(?:`)(.+?)(?:`)/g,action:function(text,t,pattern,e){var n=pattern.exec(text),o=n[0],l=n[1],c=e+n.index;text.match(/^([*_ \n]+)$/g)||setTimeout((function(){r.quill.deleteText(c,o.length),r.quill.insertText(c,l,{code:!0}),r.quill.format("code",!1),r.quill.insertText(r.quill.getSelection()," ")}),0)}},{name:"hr",pattern:/^([-*]\s?){3}/g,action:function(text,t){var e=t.index-text.length;setTimeout((function(){r.quill.deleteText(e,text.length),r.quill.insertEmbed(e+1,"hr",!0,o.a.sources.USER),r.quill.insertText(e+2,"\n",o.a.sources.SILENT),r.quill.setSelection(e+2,o.a.sources.SILENT)}),0)}},{name:"asterisk-ul",pattern:/^(\*|\+)\s$/g,action:function(t,e,n){setTimeout((function(){r.quill.formatLine(e.index,1,"list","unordered"),r.quill.deleteText(e.index-2,2)}),0)}},{name:"image",pattern:/(?:!\[(.+?)\])(?:\((.+?)\))/g,action:function(text,t,pattern){var e=text.search(pattern),n=text.match(pattern)[0],o=text.match(/(?:\((.*?)\))/g)[0],l=t.index-n.length-1;-1!==e&&setTimeout((function(){r.quill.deleteText(l,n.length),r.quill.insertEmbed(l,"image",o.slice(1,o.length-1))}),0)}},{name:"link",pattern:/(?:\[(.+?)\])(?:\((.+?)\))/g,action:function(text,t,pattern){var e=text.search(pattern),n=text.match(pattern)[0],o=text.match(/(?:\[(.*?)\])/g)[0],l=text.match(/(?:\((.*?)\))/g)[0],c=t.index-n.length-1;-1!==e&&setTimeout((function(){r.quill.deleteText(c,n.length),r.quill.insertText(c,o.slice(1,o.length-1),"link",l.slice(1,l.length-1))}),0)}}],this.quill.on("text-change",(function(t,e,n){for(var i=0;i<t.ops.length;i++)t.ops[i].hasOwnProperty("insert")&&(" "===t.ops[i].insert?r.onSpace():"\n"===t.ops[i].insert&&r.onEnter())}))}var e,n,r;return e=t,(n=[{key:"isValid",value:function(text,t){return void 0!==text&&text&&-1===this.ignoreTags.indexOf(t)}},{key:"onSpace",value:function(){var t=this.quill.getSelection();if(t){var e=w(this.quill.getLine(t.index),2),line=e[0],n=e[1],text=line.domNode.textContent,r=t.index-n;if(this.isValid(text,line.domNode.tagName)){var o=!0,l=!1,c=void 0;try{for(var d,f=this.matches[Symbol.iterator]();!(o=(d=f.next()).done);o=!0){var h=d.value;if(text.match(h.pattern))return console.log("matched:",h.name,text),void h.action(text,t,h.pattern,r)}}catch(t){l=!0,c=t}finally{try{o||null==f.return||f.return()}finally{if(l)throw c}}}}}},{key:"onEnter",value:function(){var t=this.quill.getSelection();if(t){var e=w(this.quill.getLine(t.index),2),line=e[0],n=e[1],text=line.domNode.textContent+" ",r=t.index-n;if(t.length=t.index++,this.isValid(text,line.domNode.tagName)){var o=!0,l=!1,c=void 0;try{for(var d,f=this.matches[Symbol.iterator]();!(o=(d=f.next()).done);o=!0){var h=d.value;if(text.match(h.pattern))return console.log("matched",h.name,text),void h.action(text,t,h.pattern,r)}}catch(t){l=!0,c=t}finally{try{o||null==f.return||f.return()}finally{if(l)throw c}}}}}}])&&h(e.prototype,n),r&&h(e,r),t}(),script={name:"VueEditor",mixins:[c],props:{id:{type:String,default:"quill-container"},placeholder:{type:String,default:""},value:{type:String,default:""},disabled:{type:Boolean},editorToolbar:{type:Array,default:function(){return[]}},editorOptions:{type:Object,required:!1,default:function(){return{}}},useCustomImageHandler:{type:Boolean,default:!1},useMarkdownShortcuts:{type:Boolean,default:!1}},data:function(){return{quill:null}},watch:{value:function(t){t==this.quill.root.innerHTML||this.quill.hasFocus()||(this.quill.root.innerHTML=t)},disabled:function(t){this.quill.enable(!t)}},mounted:function(){this.registerCustomModules(o.a),this.registerPrototypes(),this.initializeEditor()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initializeEditor:function(){this.setupQuillEditor(),this.checkForCustomImageHandler(),this.handleInitialContent(),this.registerEditorEventListeners(),this.$emit("ready",this.quill)},setupQuillEditor:function(){var t={debug:!1,modules:this.setModules(),theme:"snow",placeholder:this.placeholder?this.placeholder:"",readOnly:!!this.disabled&&this.disabled};this.prepareEditorConfig(t),this.quill=new o.a(this.$refs.quillContainer,t)},setModules:function(){var t={toolbar:this.editorToolbar.length?this.editorToolbar:l};return this.useMarkdownShortcuts&&(o.a.register("modules/markdownShortcuts",k,!0),t.markdownShortcuts={}),t},prepareEditorConfig:function(t){Object.keys(this.editorOptions).length>0&&this.editorOptions.constructor===Object&&(this.editorOptions.modules&&void 0!==this.editorOptions.modules.toolbar&&delete t.modules.toolbar,function t(e,source){var n=function(t){return t&&"object"===d(t)};return n(e)&&n(source)?(Object.keys(source).forEach((function(r){var o=e[r],l=source[r];Array.isArray(o)&&Array.isArray(l)?e[r]=o.concat(l):n(o)&&n(l)?e[r]=t(Object.assign({},o),l):e[r]=l})),e):source}(t,this.editorOptions))},registerPrototypes:function(){o.a.prototype.getHTML=function(){return this.container.querySelector(".ql-editor").innerHTML},o.a.prototype.getWordCount=function(){return this.container.querySelector(".ql-editor").innerText.length}},registerEditorEventListeners:function(){this.quill.on("text-change",this.handleTextChange),this.quill.on("selection-change",this.handleSelectionChange),this.listenForEditorEvent("text-change"),this.listenForEditorEvent("selection-change"),this.listenForEditorEvent("editor-change")},listenForEditorEvent:function(t){var e=this;this.quill.on(t,(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.$emit.apply(e,[t].concat(r))}))},handleInitialContent:function(){this.value&&(this.quill.root.innerHTML=this.value)},handleSelectionChange:function(t,e){!t&&e?this.$emit("blur",this.quill):t&&!e&&this.$emit("focus",this.quill)},handleTextChange:function(t,e){var n="<p><br></p>"===this.quill.getHTML()?"":this.quill.getHTML();this.$emit("input",n),this.useCustomImageHandler&&this.handleImageRemoved(t,e)},handleImageRemoved:function(t,e){var n=this;this.quill.getContents().diff(e).ops.map((function(t){if(t.insert&&t.insert.hasOwnProperty("image")){var image=t.insert.image;n.$emit("image-removed",image)}}))},checkForCustomImageHandler:function(){!0===this.useCustomImageHandler&&this.setupCustomImageHandler()},setupCustomImageHandler:function(){this.quill.getModule("toolbar").addHandler("image",this.customImageHandler)},customImageHandler:function(image,t){this.$refs.fileInput.click()},emitImageInfo:function(t){var e=t.target.files[0],n=this.quill,r=n.getSelection().index;this.$emit("image-added",e,n,r,(function(){document.getElementById("file-upload").value=""}))}}};var S,j=function(template,style,script,t,e,n,r,o,l,c){"boolean"!=typeof r&&(l=o,o=r,r=!1);var d,f="function"==typeof script?script.options:script;if(template&&template.render&&(f.render=template.render,f.staticRenderFns=template.staticRenderFns,f._compiled=!0,e&&(f.functional=!0)),t&&(f._scopeId=t),n?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),style&&style.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(n)},f._ssrRegister=d):style&&(d=r?function(){style.call(this,c(this.$root.$options.shadowRoot))}:function(t){style.call(this,o(t))}),d)if(f.functional){var h=f.render;f.render=function(t,e){return d.call(e),h(t,e)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,d):[d]}return script},_="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var x={};var T=j({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quillWrapper"},[t._t("toolbar"),t._v(" "),n("div",{ref:"quillContainer",attrs:{id:t.id}}),t._v(" "),t.useCustomImageHandler?n("input",{ref:"fileInput",staticStyle:{display:"none"},attrs:{id:"file-upload",type:"file",accept:"image/*"},on:{change:function(e){return t.emitImageInfo(e)}}}):t._e()],2)},staticRenderFns:[]},(function(t){t&&(t("data-v-59392418_0",{source:"/*!\n * Quill Editor v1.3.6\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li::before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:0;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li::before{content:'\\2022'}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li::before,.ql-editor ul[data-checked=true]>li::before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li::before{content:'\\2611'}.ql-editor ul[data-checked=false]>li::before{content:'\\2610'}.ql-editor li::before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl)::before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl::before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) '. '}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) '. '}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) '. '}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) '. '}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) '. '}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) '. '}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) '. '}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) '. '}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) '. '}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank::before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow .ql-toolbar:after,.ql-snow.ql-toolbar:after{clear:both;content:'';display:table}.ql-snow .ql-toolbar button,.ql-snow.ql-toolbar button{background:0 0;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow .ql-toolbar button svg,.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow .ql-toolbar button:active:hover,.ql-snow.ql-toolbar button:active:hover{outline:0}.ql-snow .ql-toolbar input.ql-image[type=file],.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover{color:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow .ql-toolbar button:hover:not(.ql-active),.ql-snow.ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:'';display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item::before,.ql-snow .ql-picker.ql-header .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before{content:'Heading 1'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before{content:'Heading 2'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before{content:'Heading 3'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before{content:'Heading 4'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before{content:'Heading 5'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before{content:'Heading 6'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item::before,.ql-snow .ql-picker.ql-font .ql-picker-label::before{content:'Sans Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before{content:'Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before{content:'Monospace'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item::before,.ql-snow .ql-picker.ql-size .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before{content:'Small'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before{content:'Large'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before{content:'Huge'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:\"Visit URL:\";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:'Edit';margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:'Remove';margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:'Save';padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:\"Enter link:\"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:\"Enter formula:\"}.ql-snow .ql-tooltip[data-mode=video]::before{content:\"Enter video:\"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}",map:void 0,media:void 0}),t("data-v-59392418_1",{source:".ql-editor{min-height:200px;font-size:16px}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1px!important}.quillWrapper .ql-snow.ql-toolbar{padding-top:8px;padding-bottom:4px}.quillWrapper .ql-snow.ql-toolbar .ql-formats{margin-bottom:10px}.ql-snow .ql-toolbar button svg,.quillWrapper .ql-snow.ql-toolbar button svg{width:22px;height:22px}.quillWrapper .ql-editor ul[data-checked=false]>li::before,.quillWrapper .ql-editor ul[data-checked=true]>li::before{font-size:1.35em;vertical-align:baseline;bottom:-.065em;font-weight:900;color:#222}.quillWrapper .ql-snow .ql-stroke{stroke:rgba(63,63,63,.95);stroke-linecap:square;stroke-linejoin:initial;stroke-width:1.7px}.quillWrapper .ql-picker-label{font-size:15px}.quillWrapper .ql-snow .ql-active .ql-stroke{stroke-width:2.25px}.quillWrapper .ql-toolbar.ql-snow .ql-formats{vertical-align:top}.ql-picker:not(.ql-background){position:relative;top:2px}.ql-picker.ql-color-picker svg{width:22px!important;height:22px!important}.quillWrapper .imageResizeActive img{display:block;cursor:pointer}.quillWrapper .imageResizeActive~div svg{cursor:pointer}",map:void 0,media:void 0}))}),script,void 0,!1,void 0,(function(t){return function(t,style){return function(t,e){var n=_?e.media||"default":t,style=x[n]||(x[n]={ids:new Set,styles:[]});if(!style.ids.has(t)){style.ids.add(t);var code=e.source;if(e.map&&(code+="\n/*# sourceURL="+e.map.sources[0]+" */",code+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),style.element||(style.element=document.createElement("style"),style.element.type="text/css",e.media&&style.element.setAttribute("media",e.media),void 0===S&&(S=document.head||document.getElementsByTagName("head")[0]),S.appendChild(style.element)),"styleSheet"in style.element)style.styles.push(code),style.element.styleSheet.cssText=style.styles.filter(Boolean).join("\n");else{var r=style.ids.size-1,o=document.createTextNode(code),l=style.element.childNodes;l[r]&&style.element.removeChild(l[r]),l.length?style.element.insertBefore(o,l[r]):style.element.appendChild(o)}}}(t,style)}}),void 0);var B={install:function t(e){t.installed||(t.installed=!0,e.component("VueEditor",T))},version:"2.10.2",Quill:o.a,VueEditor:T},C=null;"undefined"!=typeof window?C=window.Vue:void 0!==t&&(C=t.Vue),C&&C.use(B),e.a=B}).call(this,n(45))},174:function(t,e,n){"use strict";n.d(e,"a",(function(){return jf}));var r=n(6),o=n(2),l=(n(20),n(3)),c=n(44),d=n(21),object=n(4),f=function(t){var e=Object(object.c)(null);return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var l=JSON.stringify(r);return e[l]=e[l]||t.apply(null,r)}},h=n(59),v=l.a.prototype,m=function(t){return v.$bvConfig?v.$bvConfig.getConfigValue(t):Object(c.a)(Object(d.a)(h.a,t))},y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?m("".concat(t,".").concat(e)):m(t)||{}},w=function(){return m("breakpoints")},O=f((function(){return w()})),k=function(){return Object(c.a)(O())},S=f((function(){var t=k();return t[0]="",t})),j=n(5),_=n(13),x=n(1),T=_.i?window:{},B=_.b?document:{},C="undefined"!=typeof Element?Element.prototype:{},P=C.matches||C.msMatchesSelector||C.webkitMatchesSelector,M=C.closest||function(t){var e=this;do{if(V(e,t))return e;e=e.parentElement||e.parentNode}while(!Object(x.f)(e)&&e.nodeType===Node.ELEMENT_NODE);return null},E=T.requestAnimationFrame||T.webkitRequestAnimationFrame||T.mozRequestAnimationFrame||T.msRequestAnimationFrame||T.oRequestAnimationFrame||function(t){return setTimeout(t,16)},A=T.MutationObserver||T.WebKitMutationObserver||T.MozMutationObserver||null,z=function(t){return!(!t||t.nodeType!==Node.ELEMENT_NODE)},D=function(t){if(!z(t)||!t.parentNode||!R(B.body,t))return!1;if("none"===t.style.display)return!1;var e=J(t);return!!(e&&e.height>0&&e.width>0)},L=function(t){return!z(t)||t.disabled||X(t,"disabled")||W(t,"disabled")},I=function(t){return z(t)&&t.offsetHeight},N=function(t,e){return Object(j.c)((z(e)?e:B).querySelectorAll(t))},H=function(t,e){return(z(e)?e:B).querySelector(t)||null},V=function(t,e){return!!z(t)&&P.call(t,e)},F=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!z(e))return null;var r=M.call(e,t);return n?r:r===e?null:r},R=function(t,e){return!(!t||!Object(x.e)(t.contains))&&t.contains(e)},$=function(t){return B.getElementById(/^#/.test(t)?t.slice(1):t)||null},U=function(t,e){e&&z(t)&&t.classList&&t.classList.add(e)},Y=function(t,e){e&&z(t)&&t.classList&&t.classList.remove(e)},W=function(t,e){return!!(e&&z(t)&&t.classList)&&t.classList.contains(e)},G=function(t,e,n){e&&z(t)&&t.setAttribute(e,n)},K=function(t,e){e&&z(t)&&t.removeAttribute(e)},Z=function(t,e){return e&&z(t)?t.getAttribute(e):null},X=function(t,e){return e&&z(t)?t.hasAttribute(e):null},J=function(t){return z(t)?t.getBoundingClientRect():null},Q=function(t){return _.i&&z(t)?T.getComputedStyle(t):{}},tt=function(){return _.i&&T.getSelection?T.getSelection():null},et=function(t){var e={top:0,left:0};if(!z(t)||0===t.getClientRects().length)return e;var n=J(t);if(n){var r=t.ownerDocument.defaultView;e.top=n.top+r.pageYOffset,e.left=n.left+r.pageXOffset}return e},nt=function(t){var e={top:0,left:0};if(!z(t))return e;var n={top:0,left:0},r=Q(t);if("fixed"===r.position)e=J(t)||e;else{e=et(t);for(var o=t.ownerDocument,l=t.offsetParent||o.documentElement;l&&(l===o.body||l===o.documentElement)&&"static"===Q(l).position;)l=l.parentNode;if(l&&l!==t&&l.nodeType===Node.ELEMENT_NODE){n=et(l);var c=Q(l);n.top+=parseFloat(c.borderTopWidth),n.left+=parseFloat(c.borderLeftWidth)}}return{top:e.top-n.top-parseFloat(r.marginTop),left:e.left-n.left-parseFloat(r.marginLeft)}},ot=n(15),it=(n(14),n(10),n(11),n(9),n(12),n(7));function at(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function lt(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?at(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):at(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var st={name:"",enterClass:"",enterActiveClass:"",enterToClass:"show",leaveClass:"show",leaveActiveClass:"",leaveToClass:""},ct=lt({},st,{enterActiveClass:"fade",leaveActiveClass:"fade"}),ut=l.a.extend({name:"BVTransition",functional:!0,props:{noFade:{type:Boolean,default:!1},appear:{type:Boolean,default:!1},mode:{type:String},transProps:{type:Object,default:null}},render:function(t,e){var n=e.children,data=e.data,r=e.props,o=r.transProps;return Object(object.k)(o)||(o=r.noFade?st:ct,r.appear&&(o=lt({},o,{appear:!0,appearClass:o.enterClass,appearActiveClass:o.enterActiveClass,appearToClass:o.enterToClass}))),o=lt({mode:r.mode},o,{css:!0}),t("transition",Object(it.a)(data,{props:o}),n)}}),ft=ut,ht=n(16),pt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(t=Object(j.b)(t).filter(ht.a)).some((function(t){return e[t]||n[t]}))},bt=function(t){var slot,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=Object(j.b)(t).filter(ht.a);for(var i=0;i<t.length&&!slot;i++){var o=t[i];slot=n[o]||r[o]}return Object(x.e)(slot)?slot(e):slot},vt={methods:{hasNormalizedSlot:function(t){return pt(t,this.$scopedSlots,this.$slots)},normalizeSlot:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=bt(t,e,this.$scopedSlots,this.$slots);return n?Object(j.b)(n):n}}},mt={content:{type:String,default:function(){return y("BButtonClose","content")}},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:function(){return y("BButtonClose","ariaLabel")}},textVariant:{type:String,default:function(){return y("BButtonClose","textVariant")}}},gt=l.a.extend({name:"BButtonClose",functional:!0,props:mt,render:function(t,e){var n=e.props,data=e.data,r=e.slots,l=e.scopedSlots,c=r(),d=l||{},f={staticClass:"close",class:Object(o.a)({},"text-".concat(n.textVariant),n.textVariant),attrs:{type:"button",disabled:n.disabled,"aria-label":n.ariaLabel?String(n.ariaLabel):null},on:{click:function(t){n.disabled&&Object(x.c)(t)&&(t.stopPropagation(),t.preventDefault())}}};return pt("default",d,c)||(f.domProps={innerHTML:n.content}),t("button",Object(it.a)(data,f),bt("default",{},d,c))}}),yt=function(t){return""===t||Object(x.a)(t)?0:(t=Object(ot.c)(t))>0?t:0},wt=function(t){return""===t||!0===t||!(Object(ot.c)(t)<1)&&!!t},Ot=function(t){return!isNaN(Object(ot.c)(t))},kt=l.a.extend({name:"BAlert",mixins:[vt],model:{prop:"show",event:"input"},props:{variant:{type:String,default:function(){return y("BAlert","variant")}},dismissible:{type:Boolean,default:!1},dismissLabel:{type:String,default:function(){return y("BAlert","dismissLabel")}},show:{type:[Boolean,Number,String],default:!1},fade:{type:Boolean,default:!1}},data:function(){return{countDownTimerId:null,countDown:0,localShow:wt(this.show)}},watch:{show:function(t){this.countDown=yt(t),this.localShow=wt(t)},countDown:function(t){var e=this;this.clearTimer(),Ot(this.show)&&(this.$emit("dismiss-count-down",t),this.show!==t&&this.$emit("input",t),t>0?(this.localShow=!0,this.countDownTimerId=setTimeout((function(){e.countDown--}),1e3)):this.$nextTick((function(){E((function(){e.localShow=!1}))})))},localShow:function(t){t||!this.dismissible&&!Ot(this.show)||this.$emit("dismissed"),Ot(this.show)||this.show===t||this.$emit("input",t)}},created:function(){this.countDown=yt(this.show),this.localShow=wt(this.show)},mounted:function(){this.countDown=yt(this.show),this.localShow=wt(this.show)},beforeDestroy:function(){this.clearTimer()},methods:{dismiss:function(){this.clearTimer(),this.countDown=0,this.localShow=!1},clearTimer:function(){this.countDownTimerId&&(clearInterval(this.countDownTimerId),this.countDownTimerId=null)}},render:function(t){var e;if(this.localShow){var n=t();this.dismissible&&(n=t(gt,{attrs:{"aria-label":this.dismissLabel},on:{click:this.dismiss}},[this.normalizeSlot("dismiss")])),e=[e=t("div",{key:this._uid,staticClass:"alert",class:Object(o.a)({"alert-dismissible":this.dismissible},"alert-".concat(this.variant),this.variant),attrs:{role:"alert","aria-live":"polite","aria-atomic":!0}},[n,this.normalizeSlot("default")])]}return t(ft,{props:{noFade:!this.fade}},e)}}),St=Object(r.b)({components:{BAlert:kt}}),jt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ht.a;return(Object(j.d)(t)?t.slice():Object(object.l)(t)).reduce((function(t,r){return t[n(r)]=e[r],t}),{})},_t=n(25),xt=(n(31),n(22),n(56),n(57),n(8)),Tt=/%2C/g,Bt=/[!'()*]/g,Ct=/\+/g,Pt=/^(\?|#|&)/,Mt=function(t){return"%"+t.charCodeAt(0).toString(16)},qt=function(t){return encodeURIComponent(Object(xt.f)(t)).replace(Bt,Mt).replace(Tt,",")},Et=decodeURIComponent,At=function(t){if(!Object(object.k)(t))return"";var e=Object(object.l)(t).map((function(e){var n=t[e];return Object(x.k)(n)?"":Object(x.f)(n)?qt(e):Object(j.d)(n)?n.reduce((function(t,n){return Object(x.f)(n)?t.push(qt(e)):Object(x.k)(n)||t.push(qt(e)+"="+qt(n)),t}),[]).join("&"):qt(e)+"="+qt(n)})).filter((function(t){return t.length>0})).join("&");return e?"?".concat(e):""},zt=function(t){var e={};return(t=Object(xt.f)(t).trim().replace(Pt,""))?(t.split("&").forEach((function(param){var t=param.replace(Ct," ").split("="),n=Et(t.shift()),r=t.length>0?Et(t.join("=")):null;Object(x.k)(e[n])?e[n]=r:Object(j.d)(e[n])?e[n].push(r):e[n]=[e[n],r]})),e):e},Dt=function(t){return"a"!==Object(xt.f)(t).toLowerCase()},Lt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.href,n=t.to,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(Dt(r))return null;if(e)return e;if(n){if(Object(x.j)(n))return n||l;if(Object(object.k)(n)&&(n.path||n.query||n.hash)){var path=Object(xt.f)(n.path),c=At(n.query),d=Object(xt.f)(n.hash);return d=d&&"#"!==d.charAt(0)?"#".concat(d):d,"".concat(path).concat(c).concat(d)||l}}return o};function It(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Nt(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?It(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):It(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Ht=function(){return{href:{type:String,default:null},rel:{type:String,default:null},target:{type:String,default:"_self"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{type:[String,Object],default:null},append:{type:Boolean,default:!1},replace:{type:Boolean,default:!1},event:{type:[String,Array],default:"click"},activeClass:{type:String},exact:{type:Boolean,default:!1},exactActiveClass:{type:String},routerTag:{type:String,default:"a"},noPrefetch:{type:Boolean,default:!1}}},Vt=(Ht(),l.a.extend({name:"BLink",mixins:[vt],inheritAttrs:!1,props:Ht(),computed:{computedTag:function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.to,n=t.disabled,r=arguments.length>1?arguments[1]:void 0;return r.$router&&e&&!n?r.$nuxt?"nuxt-link":"router-link":"a"}({to:this.to,disabled:this.disabled},this)},isRouterLink:function(){return Dt(this.computedTag)},computedRel:function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.target,n=t.rel;return"_blank"===e&&Object(x.f)(n)?"noopener":n||null}({target:this.target,rel:this.rel})},computedHref:function(){return Lt({to:this.to,href:this.href},this.computedTag)},computedProps:function(){return this.isRouterLink?Nt({},this.$props,{tag:this.routerTag}):{}}},methods:{onClick:function(t){var e=arguments,n=Object(x.c)(t),r=this.isRouterLink,o=this.$listeners.click;n&&this.disabled?(t.stopPropagation(),t.stopImmediatePropagation()):(r&&t.currentTarget.__vue__&&t.currentTarget.__vue__.$emit("click",t),Object(j.b)(o).filter((function(t){return Object(x.e)(t)})).forEach((function(t){t.apply(void 0,Object(_t.a)(e))})),this.$root.$emit("clicked::link",t)),n&&(this.disabled||!r&&"#"===this.computedHref)&&t.preventDefault()},focus:function(){this.$el&&this.$el.focus&&this.$el.focus()},blur:function(){this.$el&&this.$el.blur&&this.$el.blur()}},render:function(t){var e=this.computedTag,n=this.computedRel,r=this.computedHref,o=this.isRouterLink,l={class:{active:this.active,disabled:this.disabled},attrs:Nt({},this.$attrs,{rel:n,target:this.target,tabindex:this.disabled?"-1":Object(x.k)(this.$attrs.tabindex)?null:this.$attrs.tabindex,"aria-disabled":this.disabled?"true":null}),props:this.computedProps};return l[o?"nativeOn":"on"]=Nt({},this.$listeners,{click:this.onClick}),r?l.attrs.href=r:delete l.props.href,t(e,l,this.normalizeSlot("default"))}}));function Ft(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var Rt=Ht();delete Rt.href.default,delete Rt.to.default;var $t=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Ft(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Ft(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Rt,{tag:{type:String,default:"span"},variant:{type:String,default:function(){return y("BBadge","variant")}},pill:{type:Boolean,default:!1}}),Ut=l.a.extend({name:"BBadge",functional:!0,props:$t,render:function(t,e){var n=e.props,data=e.data,r=e.children,o=n.href||n.to,l=o?Vt:n.tag,c={staticClass:"badge",class:[n.variant?"badge-".concat(n.variant):"badge-secondary",{"badge-pill":n.pill,active:n.active,disabled:n.disabled}],props:o?jt(Rt,n):{}};return t(l,Object(it.a)(data,c),r)}}),Yt=Object(r.b)({components:{BBadge:Ut}}),Wt=/(<([^>]+)>)/gi,Gt=function(){var text=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(text).replace(Wt,"")},Kt=function(t,e){return t?{innerHTML:t}:e?{textContent:e}:{}};function Zt(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var Xt=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Zt(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Zt(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Ht(),{text:{type:String,default:null},html:{type:String,default:null},ariaCurrent:{type:String,default:"location"}}),Jt=l.a.extend({name:"BBreadcrumbLink",functional:!0,props:Xt,render:function(t,e){var n=e.props,data=e.data,r=e.children,o=n.active?"span":Vt,l={props:jt(Xt,n)};return n.active&&(l.attrs={"aria-current":n.ariaCurrent}),r||(l.domProps=Kt(n.html,n.text)),t(o,Object(it.a)(data,l),r)}}),Qt=l.a.extend({name:"BBreadcrumbItem",functional:!0,props:Xt,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t("li",Object(it.a)(data,{staticClass:"breadcrumb-item",class:{active:n.active}}),[t(Jt,{props:n},r)])}});function te(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function ee(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?te(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):te(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var ne={items:{type:Array,default:null}},re=l.a.extend({name:"BBreadcrumb",functional:!0,props:ne,render:function(t,e){var n=e.props,data=e.data,r=e.children;if(Object(j.d)(n.items)){var o=!1;r=n.items.map((function(e,r){Object(object.j)(e)||(e={text:Object(xt.f)(e)});var l=e.active;return l&&(o=!0),l||o||(l=r+1===n.items.length),t(Qt,{props:ee({},e,{active:l})})}))}return t("ol",Object(it.a)(data,{staticClass:"breadcrumb"}),r)}}),oe=Object(r.b)({components:{BBreadcrumb:re,BBreadcrumbItem:Qt,BBreadcrumbLink:Jt}}),ie=Object(object.g)({SPACE:32,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,PAGEUP:33,PAGEDOWN:34,HOME:36,END:35,TAB:9,SHIFT:16,CTRL:17,BACKSPACE:8,ALT:18,PAUSE:19,BREAK:19,INSERT:45,INS:45,DELETE:46});function ae(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var le={block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:function(){return y("BButton","size")}},variant:{type:String,default:function(){return y("BButton","variant")}},type:{type:String,default:"button"},tag:{type:String,default:"button"},pill:{type:Boolean,default:!1},squared:{type:Boolean,default:!1},pressed:{type:Boolean,default:null}},se=Ht();delete se.href.default,delete se.to.default;var ce=Object(object.l)(se),ue=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ae(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):ae(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},se,{},le),de=function(t,e){return Object(xt.f)(t).toLowerCase()===Object(xt.f)(e).toLowerCase()},fe=function(t){"focusin"===t.type?U(t.target,"focus"):"focusout"===t.type&&Y(t.target,"focus")},he=function(t){return t.href||t.to||de(t.tag,"a")},pe=function(t){return Object(x.a)(t.pressed)},be=function(t){return!(he(t)||t.tag&&!de(t.tag,"button"))},ve=function(t){return!he(t)&&!be(t)},me=function(t){var e;return["btn-".concat(t.variant||y("BButton","variant")),(e={},Object(o.a)(e,"btn-".concat(t.size),t.size),Object(o.a)(e,"btn-block",t.block),Object(o.a)(e,"rounded-pill",t.pill),Object(o.a)(e,"rounded-0",t.squared&&!t.pill),Object(o.a)(e,"disabled",t.disabled),Object(o.a)(e,"active",t.pressed),e)]},ge=function(t){return he(t)?jt(ce,t):null},ye=function(t,data){var button=be(t),link=he(t),e=pe(t),n=ve(t),r=link&&"#"===t.href,o=data.attrs&&data.attrs.role?data.attrs.role:null,l=data.attrs?data.attrs.tabindex:null;return(n||r)&&(l="0"),{type:button&&!link?t.type:null,disabled:button?t.disabled:null,role:n||r?"button":o,"aria-disabled":n?String(t.disabled):null,"aria-pressed":e?String(t.pressed):null,autocomplete:e?"off":null,tabindex:t.disabled&&!button?"-1":l}},we=l.a.extend({name:"BButton",functional:!0,props:ue,render:function(t,e){var n=e.props,data=e.data,r=e.listeners,o=e.children,l=pe(n),link=he(n),c=ve(n),d=link&&"#"===n.href,f={keydown:function(t){if(!n.disabled&&(c||d)){var e=t.keyCode;if(e===ie.SPACE||e===ie.ENTER&&c){var r=t.currentTarget||t.target;t.preventDefault(),r.click()}}},click:function(t){n.disabled&&Object(x.c)(t)?(t.stopPropagation(),t.preventDefault()):l&&r&&r["update:pressed"]&&Object(j.b)(r["update:pressed"]).forEach((function(t){Object(x.e)(t)&&t(!n.pressed)}))}};l&&(f.focusin=fe,f.focusout=fe);var h={staticClass:"btn",class:me(n),props:ge(n),attrs:ye(n,data),on:f};return t(link?Vt:n.tag,Object(it.a)(data,h),o)}}),Oe=Object(r.b)({components:{BButton:we,BBtn:we,BButtonClose:gt,BBtnClose:gt}}),ke={vertical:{type:Boolean,default:!1},size:{type:String,default:function(){return y("BButton","size")}},tag:{type:String,default:"div"},ariaRole:{type:String,default:"group"}},Se=l.a.extend({name:"BButtonGroup",functional:!0,props:ke,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(n.tag,Object(it.a)(data,{class:Object(o.a)({"btn-group":!n.vertical,"btn-group-vertical":n.vertical},"btn-group-".concat(n.size),n.size),attrs:{role:n.ariaRole}}),r)}}),je=Object(r.b)({components:{BButtonGroup:Se,BBtnGroup:Se}}),_e=[".btn:not(.disabled):not([disabled]):not(.dropdown-item)",".form-control:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])",'input[type="checkbox"]:not(.disabled)','input[type="radio"]:not(.disabled)'].join(","),xe=l.a.extend({name:"BButtonToolbar",mixins:[vt],props:{justify:{type:Boolean,default:!1},keyNav:{type:Boolean,default:!1}},mounted:function(){this.keyNav&&this.getItems()},methods:{onFocusin:function(t){t.target===this.$el&&(t.preventDefault(),t.stopPropagation(),this.focusFirst(t))},stop:function(t){t.preventDefault(),t.stopPropagation()},onKeydown:function(t){if(this.keyNav){var e=t.keyCode,n=t.shiftKey;e===ie.UP||e===ie.LEFT?(this.stop(t),n?this.focusFirst(t):this.focusPrev(t)):e!==ie.DOWN&&e!==ie.RIGHT||(this.stop(t),n?this.focusLast(t):this.focusNext(t))}},setItemFocus:function(t){t&&t.focus&&t.focus()},focusFirst:function(){var t=this.getItems();this.setItemFocus(t[0])},focusPrev:function(t){var e=this.getItems(),n=e.indexOf(t.target);n>-1&&(e=e.slice(0,n).reverse(),this.setItemFocus(e[0]))},focusNext:function(t){var e=this.getItems(),n=e.indexOf(t.target);n>-1&&(e=e.slice(n+1),this.setItemFocus(e[0]))},focusLast:function(){var t=this.getItems().reverse();this.setItemFocus(t[0])},getItems:function(){var t=N(_e,this.$el);return t.forEach((function(t){t.tabIndex=-1})),t.filter((function(t){return D(t)}))}},render:function(t){return t("div",{staticClass:"btn-toolbar",class:{"justify-content-between":this.justify},attrs:{role:"toolbar",tabindex:this.keyNav?"0":null},on:this.keyNav?{focusin:this.onFocusin,keydown:this.onKeydown}:{}},[this.normalizeSlot("default")])}}),Te=Object(r.b)({components:{BButtonToolbar:xe,BBtnToolbar:xe}}),Be=function t(a,b){if(a===b)return!0;var e=Object(x.b)(a),n=Object(x.b)(b);if(e||n)return!(!e||!n)&&a.getTime()===b.getTime();if(e=Object(j.d)(a),n=Object(j.d)(b),e||n)return!(!e||!n)&&function(a,b){if(a.length!==b.length)return!1;for(var t=!0,i=0;t&&i<a.length;i++)t=Be(a[i],b[i]);return t}(a,b);if(e=Object(object.j)(a),n=Object(object.j)(b),e||n){if(!e||!n)return!1;if(Object(object.l)(a).length!==Object(object.l)(b).length)return!1;for(var r in a){var o=a.hasOwnProperty(r),l=b.hasOwnProperty(r);if(o&&!l||!o&&l||!t(a[r],b[r]))return!1}}return String(a)===String(b)},Ce=Be,Pe=n(47),Me=n(104),qe=/^\d+-\d+-\d+$/,Ee=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Object(Me.a)(Date,e)},Ae=function(t){if(Object(x.j)(t)&&qe.test(t.trim())){var e=t.split("-").map(ot.c),n=Object(Pe.a)(e,3),r=n[0],o=n[1],l=n[2];return Ee(r,o-1,l)}return Object(x.b)(t)?Ee(t.getFullYear(),t.getMonth(),t.getDate()):null},ze=function(t){if(!(t=Ae(t)))return null;var e=t.getFullYear(),n="0".concat(t.getMonth()+1).slice(-2),r="0".concat(t.getDate()).slice(-2);return"".concat(e,"-").concat(n,"-").concat(r)},De=function(t,e){return new Intl.DateTimeFormat(t,e).format},Le=function(t,e){return ze(t)===ze(e)},Ie=function(t){return(t=Ee(t)).setDate(1),t},Ne=function(t){return(t=Ee(t)).setMonth(t.getMonth()+1),t.setDate(0),t},He=function(t){var e=(t=Ee(t)).getMonth();return t.setMonth(e-1),t.getMonth()===e&&t.setDate(0),t},Ve=function(t){var e=(t=Ee(t)).getMonth();return t.setMonth(e+1),t.getMonth()===(e+2)%12&&t.setDate(0),t},Fe=function(t){var e=(t=Ee(t)).getMonth();return t.setMonth(e-12),t.getMonth()!==e&&t.setDate(0),t},Re=function(t){var e=(t=Ee(t)).getMonth();return t.setMonth(e+12),t.getMonth()!==e&&t.setDate(0),t},$e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t=Ae(t),e=Ae(e)||t,n=Ae(n)||t,t?t<e?e:t>n?n:t:null},Ue=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map((function(t){return t.toLowerCase()})),Ye=/-u-.+/,We=function(t){var e=Object(xt.f)(t).toLowerCase().replace(Ye,"").split("-"),n=e.slice(0,2).join("-"),r=e[0];return Object(j.a)(Ue,n)||Object(j.a)(Ue,r)},Ge={props:{id:{type:String,default:null}},data:function(){return{localId_:null}},computed:{safeId:function(){var t=this.id||this.localId_;return function(e){return t?(e=String(e||"").replace(/\s+/g,"_"))?t+"_"+e:t:null}}},mounted:function(){var t=this;this.$nextTick((function(){t.localId_="__BVID__".concat(t._uid)}))}},Ke=n(0),Ze=n(63);function Xe(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Je(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Xe(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Xe(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Qe=ie.UP,tn=ie.DOWN,en=ie.LEFT,nn=ie.RIGHT,rn=ie.PAGEUP,on=ie.PAGEDOWN,an=ie.HOME,ln=ie.END,sn=ie.ENTER,cn=ie.SPACE,un=l.a.extend({name:"BCalendar",mixins:[Ge,vt],model:{prop:"value",event:"input"},props:{value:{type:[String,Date]},valueAsDate:{type:Boolean,default:!1},initialDate:{type:[String,Date],default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},min:{type:[String,Date]},max:{type:[String,Date]},dateDisabledFn:{type:Function},startWeekday:{type:[Number,String],default:0},locale:{type:[String,Array]},direction:{type:String},selectedVariant:{type:String,default:"primary"},todayVariant:{type:String},noHighlightToday:{type:Boolean,default:!1},dateInfoFn:{type:Function},width:{type:String,default:"270px"},block:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},ariaControls:{type:String},roleDescription:{type:String},labelPrevYear:{type:String,default:function(){return y("BCalendar","labelPrevYear")}},labelPrevMonth:{type:String,default:function(){return y("BCalendar","labelPrevMonth")}},labelCurrentMonth:{type:String,default:function(){return y("BCalendar","labelCurrentMonth")}},labelNextMonth:{type:String,default:function(){return y("BCalendar","labelNextMonth")}},labelNextYear:{type:String,default:function(){return y("BCalendar","labelNextYear")}},labelToday:{type:String,default:function(){return y("BCalendar","labelToday")}},labelSelected:{type:String,default:function(){return y("BCalendar","labelSelected")}},labelNoDateSelected:{type:String,default:function(){return y("BCalendar","labelNoDateSelected")}},labelCalendar:{type:String,default:function(){return y("BCalendar","labelCalendar")}},labelNav:{type:String,default:function(){return y("BCalendar","labelNav")}},labelHelp:{type:String,default:function(){return y("BCalendar","labelHelp")}},dateFormatOptions:{type:Object,default:function(){return{year:"numeric",month:"long",day:"numeric",weekday:"long"}}}},data:function(){var t=ze(this.value)||"";return{selectedYMD:t,activeYMD:t||ze($e(this.initialDate||this.getToday()),this.min,this.max),gridHasFocus:!1,isLive:!1}},computed:{selectedDate:function(){return Ae(this.selectedYMD)},activeDate:function(){return Ae(this.activeYMD)},computedMin:function(){return Ae(this.min)},computedMax:function(){return Ae(this.max)},computedWeekStarts:function(){return Math.max(Object(ot.c)(this.startWeekday)||0,0)%7},computedLocale:function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"gregory";t=Object(j.b)(t).filter(ht.a);var n=new Intl.DateTimeFormat(t,{calendar:e});return n.resolvedOptions().locale}(Object(j.b)(this.locale).filter(ht.a),"gregory")},calendarLocale:function(){var t=new Intl.DateTimeFormat(this.computedLocale,{calendar:"gregory"}),e=t.resolvedOptions().calendar,n=t.resolvedOptions().locale;return"gregory"!==e&&(n=n.replace(/-u-.+$/i,"").concat("-u-ca-gregory")),n},calendarYear:function(){return this.activeDate.getFullYear()},calendarMonth:function(){return this.activeDate.getMonth()},calendarFirstDay:function(){return Ee(this.calendarYear,this.calendarMonth,1)},calendarDaysInMonth:function(){var t=Ee(this.calendarFirstDay);return t.setMonth(t.getMonth()+1,0),t.getDate()},computedVariant:function(){return"btn-".concat(this.selectedVariant||"primary")},computedTodayVariant:function(){return"btn-outline-".concat(this.todayVariant||this.selectedVariant||"primary")},isRTL:function(){var t=Object(xt.f)(this.direction).toLowerCase();return"rtl"===t||"ltr"!==t&&We(this.computedLocale)},context:function(){var t=this.selectedYMD,e=Ae(t),n=this.activeYMD,r=Ae(n);return{selectedYMD:t,selectedDate:e,selectedFormatted:e?this.formatDateString(e):this.labelNoDateSelected,activeYMD:n,activeDate:r,activeFormatted:r?this.formatDateString(r):"",disabled:this.dateDisabled(r),locale:this.computedLocale,calendarLocale:this.calendarLocale,rtl:this.isRTL}},dateOutOfRange:function(){var t=this.computedMin,e=this.computedMax;return function(n){return n=Ae(n),t&&n<t||e&&n>e}},dateDisabled:function(){var t=this.dateOutOfRange,e=Object(x.e)(this.dateDisabledFn)?this.dateDisabledFn:function(){return!1};return function(n){n=Ae(n);var r=ze(n);return!(!t(n)&&!e(r,n))}},formatDateString:function(){return De(this.calendarLocale,Je({year:"numeric",month:"2-digit",day:"2-digit"},this.dateFormatOptions,{hour:void 0,minute:void 0,second:void 0,calendar:"gregory"}))},formatYearMonth:function(){return De(this.calendarLocale,{year:"numeric",month:"long",calendar:"gregory"})},formatWeekdayName:function(){return De(this.calendarLocale,{weekday:"long",calendar:"gregory"})},formatWeekdayNameShort:function(){return De(this.calendarLocale,{weekday:"short",calendar:"gregory"})},formatDay:function(){return De(this.calendarLocale,{day:"numeric",calendar:"gregory"})},prevYearDisabled:function(){var t=this.computedMin;return this.disabled||t&&Ne(Fe(this.activeDate))<t},prevMonthDisabled:function(){var t=this.computedMin;return this.disabled||t&&Ne(He(this.activeDate))<t},thisMonthDisabled:function(){return this.disabled},nextMonthDisabled:function(){var t=this.computedMax;return this.disabled||t&&Ie(Ve(this.activeDate))>t},nextYearDisabled:function(){var t=this.computedMax;return this.disabled||t&&Ie(Re(this.activeDate))>t},calendar:function(){for(var t=[],e=this.calendarFirstDay,n=e.getFullYear(),r=e.getMonth(),o=this.calendarDaysInMonth,l=e.getDay(),c=(this.computedWeekStarts>l?7:0)-this.computedWeekStarts,d=Object(x.e)(this.dateInfoFn)?this.dateInfoFn:function(){return{}},f=0-c-l,h=0;h<6&&f<o;h++){t[h]=[];for(var v=0;v<7;v++){f++;var m=Ee(n,r,f),y=m.getMonth(),w=ze(m),O=this.dateDisabled(m),k=d(w,Ae(w));k=Object(x.j)(k)||Object(j.d)(k)?{class:k}:Object(object.k)(k)?Je({class:""},k):{class:""},t[h].push({ymd:w,day:this.formatDay(m),label:this.formatDateString(m),isThisMonth:y===r,isDisabled:O,info:k})}}return t},calendarHeadings:function(){var t=this;return this.calendar[0].map((function(e){return{text:t.formatWeekdayNameShort(Ae(e.ymd)),label:t.formatWeekdayName(Ae(e.ymd))}}))}},watch:{value:function(t,e){var n=ze(t)||"",r=ze(e)||"";Le(n,r)||(this.activeYMD=n||this.activeYMD,this.selectedYMD=n)},selectedYMD:function(t,e){t!==e&&this.$emit("input",this.valueAsDate?Ae(t)||null:t||"")},context:function(t,e){Ce(t,e)||this.$emit("context",t)},hidden:function(t){this.activeYMD=this.selectedYMD||ze(this.value||this.constrainDate(this.initialDate||this.getToday())),this.setLive(!t)}},created:function(){var t=this;this.$nextTick((function(){t.$emit("context",t.context)}))},mounted:function(){this.setLive(!0)},activated:function(){this.setLive(!0)},deactivated:function(){this.setLive(!1)},beforeDestroy:function(){this.setLive(!1)},methods:{focus:function(){if(!this.disabled)try{this.$refs.grid.focus()}catch(t){}},blur:function(){try{this.$refs.grid.blur()}catch(t){}},setLive:function(t){var e=this;t?this.$nextTick((function(){E((function(){e.isLive=!0}))})):this.isLive=!1},getToday:function(){return Ae(Ee())},constrainDate:function(t){return $e(t,this.computedMin,this.computedMax)},emitSelected:function(t){var e=this;this.$nextTick((function(){e.$emit("selected",ze(t)||"",Ae(t)||null)}))},setGridFocusFlag:function(t){this.gridHasFocus=!this.disabled&&"focus"===t.type},onKeydownWrapper:function(t){var e=t.keyCode,n=t.altKey;if(Object(j.a)([rn,on,ln,an,en,Qe,nn,tn],e)){t.preventDefault(),t.stopPropagation();var r=Ee(this.activeDate),o=Ee(this.activeDate),l=r.getDate(),c=this.constrainDate(this.getToday()),d=this.isRTL;e===rn?(r=(n?Fe:He)(r),(o=Ee(r)).setDate(1)):e===on?(r=(n?Re:Ve)(r),(o=Ee(r)).setMonth(o.getMonth()+1),o.setDate(0)):e===en?(r.setDate(l+(d?1:-1)),o=r):e===nn?(r.setDate(l+(d?-1:1)),o=r):e===Qe?(r.setDate(l-7),o=r):e===tn?(r.setDate(l+7),o=r):e===an?o=r=c:e===ln&&(o=r=Ae(this.selectedDate)||c),this.dateOutOfRange(o)||Le(r,this.activeDate)||(this.activeYMD=ze(r)),this.focus()}},onKeydownGrid:function(t){var e=t.keyCode,n=this.activeDate;e!==sn&&e!==cn||(t.preventDefault(),t.stopPropagation(),this.disabled||this.readonly||this.dateDisabled(n)||(this.selectedYMD=ze(n),this.emitSelected(n)),this.focus())},onClickDay:function(t){var e=this.selectedDate,n=this.activeDate,r=Ae(t.ymd);this.disabled||t.isDisabled||this.dateDisabled(r)||(this.readonly||(this.selectedYMD=ze(Le(r,e)?e:r),this.emitSelected(r)),this.activeYMD=ze(Le(r,n)?n:Ee(r)),this.focus())},gotoPrevYear:function(){this.activeYMD=ze(this.constrainDate(Fe(this.activeDate)))},gotoPrevMonth:function(){this.activeYMD=ze(this.constrainDate(He(this.activeDate)))},gotoCurrentMonth:function(){this.activeYMD=ze(this.constrainDate(this.getToday()))},gotoNextMonth:function(){this.activeYMD=ze(this.constrainDate(Ve(this.activeDate)))},gotoNextYear:function(){this.activeYMD=ze(this.constrainDate(Re(this.activeDate)))},onHeaderClick:function(){this.disabled||(this.activeYMD=this.selectedYMD||ze(this.getToday()),this.focus())}},render:function(t){var e=this;if(this.hidden)return t();var n=this.isRTL,r=ze(this.getToday()),l=this.selectedYMD,c=this.activeYMD,d=!this.noHighlightToday,f=this.safeId,h=this.isLive,v=f(),m=f("_calendar-wrapper_"),y=f("_calendar-nav_"),w=f("_calendar-grid_"),O=f("_calendar-grid-caption_"),k=f("_calendar-grid-help_"),S=c?f("_cell-".concat(c,"_")):null,j=t("output",{staticClass:"d-block text-center rounded border small p-1 mb-1",class:{"text-muted":this.disabled,readonly:this.readonly||this.disabled},attrs:{id:v,for:w,role:"status",tabindex:this.disabled?null:"-1","data-selected":Object(xt.f)(l),"aria-live":h?"polite":"off","aria-atomic":h?"true":null},on:{click:this.onHeaderClick,focus:this.onHeaderClick}},this.selectedDate?[t("bdi",{staticClass:"sr-only"}," (".concat(Object(xt.f)(this.labelSelected),") ")),t("bdi",{},this.formatDateString(this.selectedDate))]:this.labelNoDateSelected||" ");j=t("header",{class:this.hideHeader?"sr-only":"mb-1",attrs:{title:this.selectedDate&&this.labelSelectedDate||null}},[j]);var _=t(Ze.a,{props:{shiftV:.5,flipH:n}},[t(Ke.Sb,{props:{shiftH:-2}}),t(Ke.Sb,{props:{shiftH:2}})]),x=t(Ke.Sb,{props:{shiftV:.5,flipH:n}}),T=t(Ke.Wb,{props:{shiftV:.5}}),B=t(Ke.Sb,{props:{shiftV:.5,flipH:!n}}),C=t(Ze.a,{props:{shiftV:.5,flipH:!n}},[t(Ke.Sb,{props:{shiftH:-2}}),t(Ke.Sb,{props:{shiftH:2}})]),P=function(content,label,e,n,r){return t("button",{staticClass:"btn btn-sm btn-outline-secondary border-0 flex-fill p-1 mx-1",class:{disabled:n},attrs:{title:label||null,type:"button","aria-label":label||null,"aria-disabled":n?"true":null,"aria-keyshortcuts":r||null},on:n?{}:{click:e}},[t("div",{attrs:{"aria-hidden":"true"}},[content])])},M=t("div",{staticClass:"b-calendar-nav d-flex mx-n1 mb-1",attrs:{id:y,role:"group","aria-hidden":this.disabled?"true":null,"aria-label":this.labelNav||null,"aria-controls":w}},[P(_,this.labelPrevYear,this.gotoPrevYear,this.prevYearDisabled,"Alt+PageDown"),P(x,this.labelPrevMonth,this.gotoPrevMonth,this.prevMonthDisabled,"PageDown"),P(T,this.labelCurrentMonth,this.gotoCurrentMonth,this.thisMonthDisabled,"Home"),P(B,this.labelNextMonth,this.gotoNextMonth,this.nextMonthDisabled,"PageUp"),P(C,this.labelNextYear,this.gotoNextYear,this.nextYearDisabled,"Alt+PageUp")]),E=t("header",{key:"grid-caption",staticClass:"text-center font-weight-bold p-1 m-0",class:{"text-muted":this.disabled},attrs:{id:O,"aria-live":h?"polite":null,"aria-atomic":h?"true":null}},this.formatYearMonth(this.calendarFirstDay)),A=t("div",{staticClass:"row no-gutters border-bottom",attrs:{"aria-hidden":"true"}},this.calendarHeadings.map((function(n,r){return t("small",{key:r,staticClass:"col text-truncate",class:{"text-muted":e.disabled},attrs:{title:n.label===n.text?null:n.label,"aria-label":n.label}},n.text)}))),z=this.calendar.map((function(n){var h=n.map((function(n,h){var v,m=n.ymd===l,y=n.ymd===c,w=n.ymd===r,O=f("_cell-".concat(n.ymd,"_")),k=t("span",{staticClass:"btn border-0 rounded-circle text-nowrap",class:(v={focus:y&&e.gridHasFocus,disabled:n.isDisabled||e.disabled,active:m},Object(o.a)(v,e.computedVariant,m),Object(o.a)(v,e.computedTodayVariant,w&&d&&!m&&n.isThisMonth),Object(o.a)(v,"btn-outline-light",!(w&&d||m||y)),Object(o.a)(v,"btn-light",!(w&&d)&&!m&&y),Object(o.a)(v,"text-muted",!n.isThisMonth&&!m),Object(o.a)(v,"text-dark",!(w&&d)&&!m&&!y&&n.isThisMonth),Object(o.a)(v,"font-weight-bold",(m||n.isThisMonth)&&!n.isDisabled),v),on:{click:function(){return e.onClickDay(n)}}},n.day);return t("div",{key:h,staticClass:"col p-0",class:n.isDisabled?"bg-light":n.info.class||"",attrs:{id:O,role:"button","data-date":n.ymd,"aria-hidden":n.isThisMonth?null:"true","aria-disabled":n.isDisabled||e.disabled?"true":null,"aria-label":[n.label,m?"(".concat(e.labelSelected,")"):null,w?"(".concat(e.labelToday,")"):null].filter(ht.a).join(" "),"aria-selected":m?"true":null,"aria-current":m?"date":null}},[k])}));return t("div",{key:n[0].ymd,staticClass:"row no-gutters"},h)}));z=t("div",{staticClass:"b-calendar-grid-body",style:this.disabled?{pointerEvents:"none"}:{}},z);var D=t("footer",{staticClass:"border-top small text-muted text-center bg-light",attrs:{id:k}},[t("div",{staticClass:"small"},this.labelHelp)]),L=t("div",{ref:"grid",staticClass:"form-control h-auto text-center p-0 mb-0",attrs:{id:w,role:"application",tabindex:this.disabled?null:"0","data-month":c.slice(0,-3),"aria-roledescription":this.labelCalendar||null,"aria-labelledby":O,"aria-describedby":k,"aria-disabled":this.disabled?"true":null,"aria-activedescendant":S},on:{keydown:this.onKeydownGrid,focus:this.setGridFocusFlag,blur:this.setGridFocusFlag}},[E,A,z,D]),I=this.normalizeSlot("default");I=I?t("footer",{staticClass:"mt-2"},I):t();var N=t("div",{staticClass:"b-calendar-inner",class:this.block?"d-block":"d-inline-block",style:this.block?{}:{width:this.width},attrs:{id:m,dir:n?"rtl":"ltr",lang:this.computedLocale||null,role:"group","aria-disabled":this.disabled?"true":null,"aria-controls":this.ariaControls||null,"aria-roledescription":this.roleDescription||null,"aria-describedby":[this.$attrs["aria-describedby"],v,k].filter(ht.a).join(" ")},on:{keydown:this.onKeydownWrapper}},[j,M,L,I]);return t("div",{staticClass:"b-calendar",style:this.block?{}:{display:"inline-block"}},[N])}}),dn=Object(r.b)({components:{BCalendar:un}}),fn=function(t,e){return t+Object(xt.i)(e)},hn=function(t,e){return Object(xt.d)(e.replace(t,""))},pn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ht.a;if(Object(j.d)(t))return t.map(e);var n={};for(var r in t)t.hasOwnProperty(r)&&(n[e(r)]=Object(object.j)(t[r])?Object(object.b)(t[r]):t[r]);return n},bn={props:{tag:{type:String,default:"div"},bgVariant:{type:String,default:null},borderVariant:{type:String,default:null},textVariant:{type:String,default:null}}},vn={title:{type:String,default:""},titleTag:{type:String,default:"h4"}},mn=l.a.extend({name:"BCardTitle",functional:!0,props:vn,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(n.titleTag,Object(it.a)(data,{staticClass:"card-title"}),r||n.title)}}),gn={subTitle:{type:String,default:""},subTitleTag:{type:String,default:"h6"},subTitleTextVariant:{type:String,default:function(){return y("BCardSubTitle","subTitleTextVariant")}}},yn=l.a.extend({name:"BCardSubTitle",functional:!0,props:gn,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(n.subTitleTag,Object(it.a)(data,{staticClass:"card-subtitle",class:[n.subTitleTextVariant?"text-".concat(n.subTitleTextVariant):null]}),r||n.subTitle)}});function wn(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var On=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?wn(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):wn(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},pn(bn.props,fn.bind(null,"body")),{bodyClass:{type:[String,Object,Array],default:null}},vn,{},gn,{overlay:{type:Boolean,default:!1}}),kn=l.a.extend({name:"BCardBody",functional:!0,props:On,render:function(t,e){var n,r=e.props,data=e.data,l=e.children,c=t(),d=t(),f=l||[t()];return r.title&&(c=t(mn,{props:jt(vn,r)})),r.subTitle&&(d=t(yn,{props:jt(gn,r),class:["mb-2"]})),t(r.bodyTag,Object(it.a)(data,{staticClass:"card-body",class:[(n={"card-img-overlay":r.overlay},Object(o.a)(n,"bg-".concat(r.bodyBgVariant),r.bodyBgVariant),Object(o.a)(n,"border-".concat(r.bodyBorderVariant),r.bodyBorderVariant),Object(o.a)(n,"text-".concat(r.bodyTextVariant),r.bodyTextVariant),n),r.bodyClass||{}]}),[c,d].concat(Object(_t.a)(f)))}});function Sn(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var jn=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Sn(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Sn(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},pn(bn.props,fn.bind(null,"header")),{header:{type:String,default:null},headerHtml:{type:String,default:null},headerClass:{type:[String,Object,Array],default:null}}),_n=l.a.extend({name:"BCardHeader",functional:!0,props:jn,render:function(t,e){var n,r=e.props,data=e.data,l=e.children;return t(r.headerTag,Object(it.a)(data,{staticClass:"card-header",class:[r.headerClass,(n={},Object(o.a)(n,"bg-".concat(r.headerBgVariant),r.headerBgVariant),Object(o.a)(n,"border-".concat(r.headerBorderVariant),r.headerBorderVariant),Object(o.a)(n,"text-".concat(r.headerTextVariant),r.headerTextVariant),n)]}),l||[t("div",{domProps:Kt(r.headerHtml,r.header)})])}});function xn(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var Tn=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?xn(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):xn(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},pn(bn.props,fn.bind(null,"footer")),{footer:{type:String,default:null},footerHtml:{type:String,default:null},footerClass:{type:[String,Object,Array],default:null}}),Bn=l.a.extend({name:"BCardFooter",functional:!0,props:Tn,render:function(t,e){var n,r=e.props,data=e.data,l=e.children;return t(r.footerTag,Object(it.a)(data,{staticClass:"card-footer",class:[r.footerClass,(n={},Object(o.a)(n,"bg-".concat(r.footerBgVariant),r.footerBgVariant),Object(o.a)(n,"border-".concat(r.footerBorderVariant),r.footerBorderVariant),Object(o.a)(n,"text-".concat(r.footerTextVariant),r.footerTextVariant),n)]}),l||[t("div",{domProps:Kt(r.footerHtml,r.footer)})])}}),Cn={src:{type:String,default:null,required:!0},alt:{type:String,default:null},top:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},start:{type:Boolean,default:!1},left:{type:Boolean,default:!1},end:{type:Boolean,default:!1},right:{type:Boolean,default:!1},height:{type:[Number,String],default:null},width:{type:[Number,String],default:null}},Pn=l.a.extend({name:"BCardImg",functional:!0,props:Cn,render:function(t,e){var n=e.props,data=e.data,r="card-img";return n.top?r+="-top":n.right||n.end?r+="-right":n.bottom?r+="-bottom":(n.left||n.start)&&(r+="-left"),t("img",Object(it.a)(data,{class:[r],attrs:{src:n.src,alt:n.alt,height:n.height,width:n.width}}))}});function Mn(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var qn=pn(Cn,fn.bind(null,"img"));qn.imgSrc.required=!1;var En=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Mn(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Mn(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},On,{},jn,{},Tn,{},qn,{},pn(bn.props),{align:{type:String,default:null},noBody:{type:Boolean,default:!1}}),An=l.a.extend({name:"BCard",functional:!0,props:En,render:function(t,e){var n,r=e.props,data=e.data,l=e.slots,c=e.scopedSlots,d=l(),f=c||{},h=t(),header=t(),content=t(),footer=t(),v=t();if(r.imgSrc){var img=t(Pn,{props:jt(qn,r,hn.bind(null,"img"))});r.imgBottom?v=img:h=img}return(r.header||pt("header",f,d))&&(header=t(_n,{props:jt(jn,r)},bt("header",{},f,d))),content=bt("default",{},f,d)||[],r.noBody||(content=[t(kn,{props:jt(On,r)},Object(_t.a)(content))]),(r.footer||pt("footer",f,d))&&(footer=t(Bn,{props:jt(Tn,r)},bt("footer",{},f,d))),t(r.tag,Object(it.a)(data,{staticClass:"card",class:(n={"flex-row":r.imgLeft||r.imgStart,"flex-row-reverse":(r.imgRight||r.imgEnd)&&!(r.imgLeft||r.imgStart)},Object(o.a)(n,"text-".concat(r.align),r.align),Object(o.a)(n,"bg-".concat(r.bgVariant),r.bgVariant),Object(o.a)(n,"border-".concat(r.borderVariant),r.borderVariant),Object(o.a)(n,"text-".concat(r.textVariant),r.textVariant),n)}),[h,header].concat(Object(_t.a)(content),[footer,v]))}}),zn=n(26),Dn=n(33),Ln="__bv__visibility_observer",In=/^\d+$/,Nn=function(){function t(e,n,r){Object(zn.a)(this,t),this.el=e,this.callback=n.callback,this.margin=n.margin||0,this.once=n.once||!1,this.observer=null,this.visible=void 0,this.doneOnce=!1,this.createObserver(r)}return Object(Dn.a)(t,[{key:"createObserver",value:function(t){var e=this;if(this.observer&&this.stop(),!this.doneOnce&&Object(x.e)(this.callback)){try{this.observer=new IntersectionObserver(this.handler.bind(this),{root:null,rootMargin:this.margin,threshold:0})}catch(t){return this.doneOnce=!0,this.observer=void 0,void this.callback(null)}t.context.$nextTick((function(){E((function(){e.observer&&e.observer.observe(e.el)}))}))}}},{key:"handler",value:function(t){var e=t?t[0]:{},n=Boolean(e.isIntersecting||e.intersectionRatio>0);n!==this.visible&&(this.visible=n,this.callback(n),this.once&&this.visible&&(this.doneOnce=!0,this.stop()))}},{key:"stop",value:function(){var t=this.observer;t&&t.disconnect&&t.disconnect(),this.observer=null}}]),t}(),Hn=function(t){var e=t[Ln];e&&e.stop&&e.stop(),delete t[Ln]},Vn=function(t,e,n){var r=e.value,o=e.modifiers,l={margin:"0px",once:!1,callback:r};Object(object.l)(o).forEach((function(t){In.test(t)?l.margin="".concat(t,"px"):"once"===t.toLowerCase()&&(l.once=!0)})),Hn(t),t[Ln]=new Nn(t,l,n),t[Ln]._prevModifiers=Object(object.b)(o)},Fn={bind:Vn,componentUpdated:function(t,e,n){var r=e.value,o=e.oldValue,l=e.modifiers;l=Object(object.b)(l),!t||r===o&&t[Ln]&&Ce(l,t[Ln]._prevModifiers)||Vn(t,{value:r,modifiers:l},n)},unbind:function(t){Hn(t)}},Rn='<svg width="%{w}" height="%{h}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 %{w} %{h}" preserveAspectRatio="none"><rect width="100%" height="100%" style="fill:%{f};"></rect></svg>',$n={src:{type:String,default:null},srcset:{type:[String,Array],default:null},sizes:{type:[String,Array],default:null},alt:{type:String,default:null},width:{type:[Number,String],default:null},height:{type:[Number,String],default:null},block:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fluidGrow:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},thumbnail:{type:Boolean,default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},center:{type:Boolean,default:!1},blank:{type:Boolean,default:!1},blankColor:{type:String,default:function(){return y("BImg","blankColor")}}},Un=l.a.extend({name:"BImg",functional:!0,props:$n,render:function(t,e){var n,r=e.props,data=e.data,l=r.src,c=Object(ot.c)(r.width)||null,d=Object(ot.c)(r.height)||null,f=null,h=r.block,v=Object(j.b)(r.srcset).filter(ht.a).join(","),m=Object(j.b)(r.sizes).filter(ht.a).join(",");return r.blank&&(!d&&c?d=c:!c&&d&&(c=d),c||d||(c=1,d=1),l=function(t,e,n){var r=encodeURIComponent(Rn.replace("%{w}",Object(xt.f)(t)).replace("%{h}",Object(xt.f)(e)).replace("%{f}",n));return"data:image/svg+xml;charset=UTF-8,".concat(r)}(c,d,r.blankColor||"transparent"),v=null,m=null),r.left?f="float-left":r.right?f="float-right":r.center&&(f="mx-auto",h=!0),t("img",Object(it.a)(data,{attrs:{src:l,alt:r.alt,width:c?Object(xt.f)(c):null,height:d?Object(xt.f)(d):null,srcset:v||null,sizes:m||null},class:(n={"img-thumbnail":r.thumbnail,"img-fluid":r.fluid||r.fluidGrow,"w-100":r.fluidGrow,rounded:""===r.rounded||!0===r.rounded},Object(o.a)(n,"rounded-".concat(r.rounded),Object(x.j)(r.rounded)&&""!==r.rounded),Object(o.a)(n,f,f),Object(o.a)(n,"d-block",h),n)}))}}),Yn={src:{type:String,default:null,required:!0},srcset:{type:[String,Array],default:null},sizes:{type:[String,Array],default:null},alt:{type:String,default:null},width:{type:[Number,String],default:null},height:{type:[Number,String],default:null},blankSrc:{type:String,default:null},blankColor:{type:String,default:function(){return y("BImgLazy","blankColor")}},blankWidth:{type:[Number,String],default:null},blankHeight:{type:[Number,String],default:null},show:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fluidGrow:{type:Boolean,default:!1},block:{type:Boolean,default:!1},thumbnail:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},center:{type:Boolean,default:!1},offset:{type:[Number,String],default:360}},Wn=l.a.extend({name:"BImgLazy",directives:{bVisible:Fn},props:Yn,data:function(){return{isShown:this.show}},computed:{computedSrc:function(){return!this.blankSrc||this.isShown?this.src:this.blankSrc},computedBlank:function(){return!(this.isShown||this.blankSrc)},computedWidth:function(){return this.isShown?this.width:this.blankWidth||this.width},computedHeight:function(){return this.isShown?this.height:this.blankHeight||this.height},computedSrcset:function(){var t=Object(j.b)(this.srcset).filter(ht.a).join(",");return!this.blankSrc||this.isShown?t:null},computedSizes:function(){var t=Object(j.b)(this.sizes).filter(ht.a).join(",");return!this.blankSrc||this.isShown?t:null}},watch:{show:function(t,e){if(t!==e){var n=!_.c||t;this.isShown=n,n!==t&&this.$nextTick(this.updateShowProp)}},isShown:function(t,e){t!==e&&this.updateShowProp()}},mounted:function(){this.isShown=!_.c||this.show},methods:{updateShowProp:function(){this.$emit("update:show",this.isShown)},doShow:function(t){!t&&null!==t||this.isShown||(this.isShown=!0)}},render:function(t){var e,n=[];this.isShown||n.push({name:"b-visible",value:this.doShow,modifiers:(e={},Object(o.a)(e,"".concat(Object(ot.c)(this.offset)||0),!0),Object(o.a)(e,"once",!0),e)});return t(Un,{directives:n,props:{src:this.computedSrc,blank:this.computedBlank,width:this.computedWidth,height:this.computedHeight,srcset:this.computedSrcset||null,sizes:this.computedSizes||null,alt:this.alt,blankColor:this.blankColor,fluid:this.fluid,fluidGrow:this.fluidGrow,block:this.block,thumbnail:this.thumbnail,rounded:this.rounded,left:this.left,right:this.right,center:this.center}})}});function Gn(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Kn(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Gn(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Gn(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Zn=Kn({},Object(object.m)(Yn,["left","right","center","block","rounded","thumbnail","fluid","fluidGrow"]),{top:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},start:{type:Boolean,default:!1},left:{type:Boolean,default:!1},end:{type:Boolean,default:!1},right:{type:Boolean,default:!1}}),Xn=l.a.extend({name:"BCardImgLazy",functional:!0,props:Zn,render:function(t,e){var n=e.props,data=e.data,r="card-img";n.top?r+="-top":n.right||n.end?r+="-right":n.bottom?r+="-bottom":(n.left||n.start)&&(r+="-left");var o=Kn({},n,{left:!1,right:!1,center:!1});return t(Wn,Object(it.a)(data,{class:[r],props:o}))}}),Jn={textTag:{type:String,default:"p"}},Qn=l.a.extend({name:"BCardText",functional:!0,props:Jn,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(n.textTag,Object(it.a)(data,{staticClass:"card-text"}),r)}}),er={tag:{type:String,default:"div"},deck:{type:Boolean,default:!1},columns:{type:Boolean,default:!1}},nr=l.a.extend({name:"BCardGroup",functional:!0,props:er,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(n.tag,Object(it.a)(data,{class:n.deck?"card-deck":n.columns?"card-columns":"card-group"}),r)}}),rr=Object(r.b)({components:{BCard:An,BCardHeader:_n,BCardBody:kn,BCardTitle:mn,BCardSubTitle:yn,BCardFooter:Bn,BCardImg:Pn,BCardImgLazy:Xn,BCardText:Qn,BCardGroup:nr}}),or=function(){},ir=n(19);function ar(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var lr=function(t,e,n){if(t=t?t.$el||t:null,!z(t))return null;if(Object(ir.b)("observeDom"))return null;var r=new A((function(t){for(var n=!1,i=0;i<t.length&&!n;i++){var r=t[i],o=r.type,l=r.target;("characterData"===o&&l.nodeType===Node.TEXT_NODE||"attributes"===o||"childList"===o&&(r.addedNodes.length>0||r.removedNodes.length>0))&&(n=!0)}n&&e()}));return r.observe(t,function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ar(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):ar(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({childList:!0,subtree:!0},n)),r},sr={passive:!0},cr={passive:!0,capture:!1},ur=function(t){return _.e?Object(object.j)(t)?t:{capture:!!t||!1}:!!(Object(object.j)(t)?t.capture:t)},dr=function(t,e,n,r){t&&t.addEventListener&&t.addEventListener(e,n,ur(r))},fr=function(t,e,n,r){t&&t.removeEventListener&&t.removeEventListener(e,n,ur(r))},pr=function(t){for(var e=t?dr:fr,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.apply(void 0,r)},vr={next:{dirClass:"carousel-item-left",overlayClass:"carousel-item-next"},prev:{dirClass:"carousel-item-right",overlayClass:"carousel-item-prev"}},mr={TOUCH:"touch",PEN:"pen"},gr={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend oTransitionEnd",transition:"transitionend"},yr=l.a.extend({name:"BCarousel",mixins:[Ge,vt],provide:function(){return{bvCarousel:this}},model:{prop:"value",event:"input"},props:{labelPrev:{type:String,default:function(){return y("BCarousel","labelPrev")}},labelNext:{type:String,default:function(){return y("BCarousel","labelNext")}},labelGotoSlide:{type:String,default:function(){return y("BCarousel","labelGotoSlide")}},labelIndicators:{type:String,default:function(){return y("BCarousel","labelIndicators")}},interval:{type:Number,default:5e3},indicators:{type:Boolean,default:!1},controls:{type:Boolean,default:!1},noAnimation:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},noTouch:{type:Boolean,default:!1},noHoverPause:{type:Boolean,default:!1},imgWidth:{type:[Number,String]},imgHeight:{type:[Number,String]},background:{type:String},value:{type:Number,default:0}},data:function(){return{index:this.value||0,isSliding:!1,transitionEndEvent:null,slides:[],direction:null,isPaused:!(Object(ot.c)(this.interval)>0),touchStartX:0,touchDeltaX:0}},computed:{numSlides:function(){return this.slides.length}},watch:{value:function(t,e){t!==e&&this.setSlide(Object(ot.c)(t)||0)},interval:function(t,e){t!==e&&(t?(this.pause(!0),this.start(!1)):this.pause(!1))},isPaused:function(t,e){t!==e&&this.$emit(t?"paused":"unpaused")},index:function(t,e){t===e||this.isSliding||this.doSlide(t,e)}},created:function(){this._intervalId=null,this._animationTimeout=null,this._touchTimeout=null,this.isPaused=!(Object(ot.c)(this.interval)>0)},mounted:function(){this.transitionEndEvent=function(t){for(var e in gr)if(!Object(x.k)(t.style[e]))return gr[e];return null}(this.$el)||null,this.updateSlides(),lr(this.$refs.inner,this.updateSlides.bind(this),{subtree:!1,childList:!0,attributes:!0,attributeFilter:["id"]})},beforeDestroy:function(){clearTimeout(this._animationTimeout),clearTimeout(this._touchTimeout),clearInterval(this._intervalId),this._intervalId=null,this._animationTimeout=null,this._touchTimeout=null},methods:{setSlide:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(_.j&&document.visibilityState&&document.hidden)){var r=this.noWrap,o=this.numSlides;t=Math.floor(t),0!==o&&(this.isSliding?this.$once("sliding-end",(function(){return e.setSlide(t,n)})):(this.direction=n,this.index=t>=o?r?o-1:0:t<0?r?0:o-1:t,r&&this.index!==t&&this.index!==this.value&&this.$emit("input",this.index)))}},prev:function(){this.setSlide(this.index-1,"prev")},next:function(){this.setSlide(this.index+1,"next")},pause:function(t){t||(this.isPaused=!0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},start:function(t){t||(this.isPaused=!1),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this.interval&&this.numSlides>1&&(this._intervalId=setInterval(this.next,Math.max(1e3,this.interval)))},restart:function(){this.$el.contains(document.activeElement)||this.start()},doSlide:function(t,e){var n=this,r=Boolean(this.interval),o=this.calcDirection(this.direction,e,t),l=o.overlayClass,c=o.dirClass,d=this.slides[e],f=this.slides[t];if(d&&f){if(this.isSliding=!0,r&&this.pause(!1),this.$emit("sliding-start",t),this.$emit("input",this.index),this.noAnimation)U(f,"active"),Y(d,"active"),this.isSliding=!1,this.$nextTick((function(){return n.$emit("sliding-end",t)}));else{U(f,l),I(f),U(d,c),U(f,c);var h=!1,v=function e(){if(!h){if(h=!0,n.transitionEndEvent)n.transitionEndEvent.split(/\s+/).forEach((function(t){return fr(d,t,e,cr)}));n._animationTimeout=null,Y(f,c),Y(f,l),U(f,"active"),Y(d,"active"),Y(d,c),Y(d,l),G(d,"aria-current","false"),G(f,"aria-current","true"),G(d,"aria-hidden","true"),G(f,"aria-hidden","false"),n.isSliding=!1,n.direction=null,n.$nextTick((function(){return n.$emit("sliding-end",t)}))}};if(this.transitionEndEvent)this.transitionEndEvent.split(/\s+/).forEach((function(t){return dr(d,t,v,cr)}));this._animationTimeout=setTimeout(v,650)}r&&this.start(!1)}},updateSlides:function(){this.pause(!0),this.slides=N(".carousel-item",this.$refs.inner);var t=this.slides.length,e=Math.max(0,Math.min(Math.floor(this.index),t-1));this.slides.forEach((function(n,r){var o=r+1;r===e?(U(n,"active"),G(n,"aria-current","true")):(Y(n,"active"),G(n,"aria-current","false")),G(n,"aria-posinset",String(o)),G(n,"aria-setsize",String(t))})),this.setSlide(e),this.start(this.isPaused)},calcDirection:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t?vr[t]:n>e?vr.next:vr.prev},handleClick:function(t,e){var n=t.keyCode;"click"!==t.type&&n!==ie.SPACE&&n!==ie.ENTER||(t.preventDefault(),t.stopPropagation(),e())},handleSwipe:function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0?this.prev():e<0&&this.next()}},touchStart:function(t){_.f&&mr[t.pointerType.toUpperCase()]?this.touchStartX=t.clientX:_.f||(this.touchStartX=t.touches[0].clientX)},touchMove:function(t){t.touches&&t.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=t.touches[0].clientX-this.touchStartX},touchEnd:function(t){_.f&&mr[t.pointerType.toUpperCase()]&&(this.touchDeltaX=t.clientX-this.touchStartX),this.handleSwipe(),this.pause(!1),this._touchTimeout&&clearTimeout(this._touchTimeout),this._touchTimeout=setTimeout(this.start,500+Math.max(1e3,this.interval))}},render:function(t){var e=this,n=t("div",{ref:"inner",class:["carousel-inner"],attrs:{id:this.safeId("__BV_inner_"),role:"list"}},[this.normalizeSlot("default")]),r=t();if(this.controls){var o=function(t){e.isSliding?t.preventDefault():e.handleClick(t,e.prev)},l=function(t){e.isSliding?t.preventDefault():e.handleClick(t,e.next)};r=[t("a",{class:["carousel-control-prev"],attrs:{href:"#",role:"button","aria-controls":this.safeId("__BV_inner_"),"aria-disabled":this.isSliding?"true":null},on:{click:o,keydown:o}},[t("span",{class:["carousel-control-prev-icon"],attrs:{"aria-hidden":"true"}}),t("span",{class:["sr-only"]},[this.labelPrev])]),t("a",{class:["carousel-control-next"],attrs:{href:"#",role:"button","aria-controls":this.safeId("__BV_inner_"),"aria-disabled":this.isSliding?"true":null},on:{click:l,keydown:l}},[t("span",{class:["carousel-control-next-icon"],attrs:{"aria-hidden":"true"}}),t("span",{class:["sr-only"]},[this.labelNext])])]}var c=t("ol",{class:["carousel-indicators"],directives:[{name:"show",rawName:"v-show",value:this.indicators,expression:"indicators"}],attrs:{id:this.safeId("__BV_indicators_"),"aria-hidden":this.indicators?"false":"true","aria-label":this.labelIndicators,"aria-owns":this.safeId("__BV_inner_")}},this.slides.map((function(n,r){return t("li",{key:"slide_".concat(r),class:{active:r===e.index},attrs:{role:"button",id:e.safeId("__BV_indicator_".concat(r+1,"_")),tabindex:e.indicators?"0":"-1","aria-current":r===e.index?"true":"false","aria-label":"".concat(e.labelGotoSlide," ").concat(r+1),"aria-describedby":e.slides[r].id||null,"aria-controls":e.safeId("__BV_inner_")},on:{click:function(t){e.handleClick(t,(function(){e.setSlide(r)}))},keydown:function(t){e.handleClick(t,(function(){e.setSlide(r)}))}}})}))),d={mouseenter:this.noHoverPause?or:this.pause,mouseleave:this.noHoverPause?or:this.restart,focusin:this.pause,focusout:this.restart,keydown:function(t){if(!/input|textarea/i.test(t.target.tagName)){var n=t.keyCode;n!==ie.LEFT&&n!==ie.RIGHT||(t.preventDefault(),t.stopPropagation(),e[n===ie.LEFT?"prev":"next"]())}}};return!this.noTouch&&_.h&&(_.f?(d["&pointerdown"]=this.touchStart,d["&pointerup"]=this.touchEnd):(d["&touchstart"]=this.touchStart,d["&touchmove"]=this.touchMove,d["&touchend"]=this.touchEnd)),t("div",{staticClass:"carousel",class:{slide:!this.noAnimation,"carousel-fade":!this.noAnimation&&this.fade,"pointer-event":!this.noTouch&&_.h&&_.f},style:{background:this.background},attrs:{role:"region",id:this.safeId(),"aria-busy":this.isSliding?"true":"false"},on:d},[n,r,c])}}),wr={imgSrc:{type:String},imgAlt:{type:String},imgWidth:{type:[Number,String]},imgHeight:{type:[Number,String]},imgBlank:{type:Boolean,default:!1},imgBlankColor:{type:String,default:"transparent"},contentVisibleUp:{type:String},contentTag:{type:String,default:"div"},caption:{type:String},captionHtml:{type:String},captionTag:{type:String,default:"h3"},text:{type:String},textHtml:{type:String},textTag:{type:String,default:"p"},background:{type:String}},Or=l.a.extend({name:"BCarouselSlide",mixins:[Ge,vt],inject:{bvCarousel:{default:function(){return{noTouch:!0}}}},props:wr,computed:{contentClasses:function(){return[this.contentVisibleUp?"d-none":"",this.contentVisibleUp?"d-".concat(this.contentVisibleUp,"-block"):""]},computedWidth:function(){return this.imgWidth||this.bvCarousel.imgWidth||null},computedHeight:function(){return this.imgHeight||this.bvCarousel.imgHeight||null}},render:function(t){var e=!this.bvCarousel.noTouch&&_.h,img=this.normalizeSlot("img");img||!this.imgSrc&&!this.imgBlank||(img=t(Un,{props:{fluidGrow:!0,block:!0,src:this.imgSrc,blank:this.imgBlank,blankColor:this.imgBlankColor,width:this.computedWidth,height:this.computedHeight,alt:this.imgAlt},on:e?{dragstart:function(t){t.preventDefault()}}:{}})),img||(img=t());var content=t(),n=[!(!this.caption&&!this.captionHtml)&&t(this.captionTag,{domProps:Kt(this.captionHtml,this.caption)}),!(!this.text&&!this.textHtml)&&t(this.textTag,{domProps:Kt(this.textHtml,this.text)}),this.normalizeSlot("default")||!1];return n.some(Boolean)&&(content=t(this.contentTag,{staticClass:"carousel-caption",class:this.contentClasses},n.map((function(i){return i||t()})))),t("div",{staticClass:"carousel-item",style:{background:this.background||this.bvCarousel.background||null},attrs:{id:this.safeId(),role:"listitem"}},[img,content])}}),kr=Object(r.b)({components:{BCarousel:yr,BCarouselSlide:Or}}),Sr={css:!0,enterClass:"",enterActiveClass:"collapsing",enterToClass:"collapse show",leaveClass:"collapse show",leaveActiveClass:"collapsing",leaveToClass:"collapse"},jr={enter:function(t){t.style.height=0,E((function(){I(t),t.style.height="".concat(t.scrollHeight,"px")}))},afterEnter:function(t){t.style.height=null},leave:function(t){t.style.height="auto",t.style.display="block",t.style.height="".concat(J(t).height,"px"),I(t),t.style.height=0},afterLeave:function(t){t.style.height=null}},_r=l.a.extend({name:"BVCollapse",functional:!0,props:{appear:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,data=e.data,r=e.children;return t("transition",Object(it.a)(data,{props:Sr,on:jr},{props:n}),r)}}),xr={methods:{listenOnRoot:function(t,e){var n=this;return this.$root.$on(t,e),this.$on("hook:beforeDestroy",(function(){n.$root.$off(t,e)})),this},listenOnRootOnce:function(t,e){var n=this;return this.$root.$once(t,e),this.$on("hook:beforeDestroy",(function(){n.$root.$off(t,e)})),this},emitOnRoot:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(e=this.$root).$emit.apply(e,[t].concat(r)),this}}},Tr=l.a.extend({name:"BCollapse",mixins:[Ge,xr,vt],model:{prop:"visible",event:"input"},props:{isNav:{type:Boolean,default:!1},accordion:{type:String,default:null},visible:{type:Boolean,default:!1},tag:{type:String,default:"div"},appear:{type:Boolean,default:!1}},data:function(){return{show:this.visible,transitioning:!1}},computed:{classObject:function(){return{"navbar-collapse":this.isNav,collapse:!this.transitioning,show:this.show&&!this.transitioning}}},watch:{visible:function(t){t!==this.show&&(this.show=t)},show:function(t,e){t!==e&&this.emitState()}},created:function(){this.show=this.visible},mounted:function(){var t=this;this.show=this.visible,this.listenOnRoot("bv::toggle::collapse",this.handleToggleEvt),this.listenOnRoot("bv::collapse::accordion",this.handleAccordionEvt),this.isNav&&(this.setWindowEvents(!0),this.handleResize()),this.$nextTick((function(){t.emitState()})),this.listenOnRoot("bv::request::collapse::state",(function(e){e===t.safeId()&&t.$nextTick(t.emitSync)}))},updated:function(){this.emitSync()},deactivated:function(){this.isNav&&this.setWindowEvents(!1)},activated:function(){this.isNav&&this.setWindowEvents(!0),this.emitSync()},beforeDestroy:function(){this.show=!1,this.isNav&&_.j&&this.setWindowEvents(!1)},methods:{setWindowEvents:function(t){pr(t,window,"resize",this.handleResize,cr),pr(t,window,"orientationchange",this.handleResize,cr)},toggle:function(){this.show=!this.show},onEnter:function(){this.transitioning=!0,this.$emit("show")},onAfterEnter:function(){this.transitioning=!1,this.$emit("shown")},onLeave:function(){this.transitioning=!0,this.$emit("hide")},onAfterLeave:function(){this.transitioning=!1,this.$emit("hidden")},emitState:function(){this.$emit("input",this.show),this.$root.$emit("bv::collapse::state",this.safeId(),this.show),this.accordion&&this.show&&this.$root.$emit("bv::collapse::accordion",this.safeId(),this.accordion)},emitSync:function(){this.$root.$emit("bv::collapse::sync::state",this.safeId(),this.show)},checkDisplayBlock:function(){var t=W(this.$el,"show");Y(this.$el,"show");var e="block"===Q(this.$el).display;return t&&U(this.$el,"show"),e},clickHandler:function(t){var e=t.target;this.isNav&&e&&"block"===Q(this.$el).display&&(V(e,".nav-link,.dropdown-item")||F(".nav-link,.dropdown-item",e))&&(this.checkDisplayBlock()||(this.show=!1))},handleToggleEvt:function(t){t===this.safeId()&&this.toggle()},handleAccordionEvt:function(t,e){this.accordion&&e===this.accordion&&(t===this.safeId()?this.show||this.toggle():this.show&&this.toggle())},handleResize:function(){this.show="block"===Q(this.$el).display}},render:function(t){var e=this,n={visible:this.show,close:function(){return e.show=!1}},content=t(this.tag,{class:this.classObject,directives:[{name:"show",value:this.show}],attrs:{id:this.safeId()},on:{click:this.clickHandler}},[this.normalizeSlot("default",n)]);return t(_r,{props:{appear:this.appear},on:{enter:this.onEnter,afterEnter:this.onAfterEnter,leave:this.onLeave,afterLeave:this.onAfterLeave}},[content])}}),Br={hover:!0,click:!0,focus:!0},Cr="__BV_boundEventListeners__",Pr=function(t){var e=Object(object.l)(t.modifiers||{}).filter((function(t){return!Br[t]}));return t.value&&e.push(t.value),e},Mr=function(t,e,n,r){var o=Pr(e),l=function(){r({targets:o,vnode:t})};return Object(object.l)(Br).forEach((function(r){if(n[r]||e.modifiers[r]){dr(t.elm,r,l);var o=t.elm[Cr]||{};o[r]=o[r]||[],o[r].push(l),t.elm[Cr]=o}})),o},qr=function(t,e,n){Object(object.l)(Br).forEach((function(r){if(n[r]||e.modifiers[r]){var o=t.elm[Cr]&&t.elm[Cr][r];o&&(o.forEach((function(e){return fr(t.elm,r,e)})),delete t.elm[Cr][r])}}))},Er={click:!0},Ar="__BV_toggle__",zr=function(t,e){t[e]=null,delete t[e]},Dr=function(t){var e=t.targets,n=t.vnode;e.forEach((function(t){n.context.$root.$emit("bv::toggle::collapse",t)}))},Lr=function(t,e,n){if(_.j){if(!Ce(Pr(e),t.__BV_toggle_TARGETS__)){qr(n,e,Er);var r=Mr(n,e,Er,Dr);t.__BV_toggle_TARGETS__=r,t.__BV_toggle_CONTROLS__=r.join(" "),G(t,"aria-controls",t.__BV_toggle_CONTROLS__),r.forEach((function(t){n.context.$root.$emit("bv::request::collapse::state",t)}))}!0===t.__BV_toggle_STATE__?(U(t,"collapsed"),G(t,"aria-expanded","true")):!1===t.__BV_toggle_STATE__&&(Y(t,"collapsed"),G(t,"aria-expanded","false")),G(t,"aria-controls",t.__BV_toggle_CONTROLS__)}},Ir={bind:function(t,e,n){var r=Mr(n,e,Er,Dr);if(_.j&&n.context&&r.length>0){t.__BV_toggle_TARGETS__=r,t.__BV_toggle_CONTROLS__=r.join(" "),t.__BV_toggle_STATE__=!1,G(t,"aria-controls",t.__BV_toggle_CONTROLS__),G(t,"aria-expanded","false"),"BUTTON"===t.tagName||X(t,"role")||G(t,"role","button");t[Ar]=function(e,n){-1!==(t.__BV_toggle_TARGETS__||[]).indexOf(e)&&(G(t,"aria-expanded",n?"true":"false"),t.__BV_toggle_STATE__=n,n?Y(t,"collapsed"):U(t,"collapsed"))},n.context.$root.$on("bv::collapse::state",t[Ar]),n.context.$root.$on("bv::collapse::sync::state",t[Ar])}},componentUpdated:Lr,updated:Lr,unbind:function(t,e,n){qr(n,e,Er),t[Ar]&&(n.context.$root.$off("bv::collapse::state",t[Ar]),n.context.$root.$off("bv::collapse::sync::state",t[Ar])),zr(t,Ar),zr(t,"__BV_toggle_STATE__"),zr(t,"__BV_toggle_CONTROLS__"),zr(t,"__BV_toggle_TARGETS__"),Y(t,"collapsed"),K(t,"aria-expanded"),K(t,"aria-controls"),K(t,"role")}},Nr=Object(r.b)({components:{BCollapse:Tr},directives:{VBToggle:Ir}}),Hr=(n(118),n(80)),Vr=(n(30),function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object(zn.a)(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));Object(object.a)(this,t.Defaults,this.constructor.Defaults,n,{type:e}),Object(object.e)(this,{type:Object(object.n)(),cancelable:Object(object.n)(),nativeEvent:Object(object.n)(),target:Object(object.n)(),relatedTarget:Object(object.n)(),vueTarget:Object(object.n)(),componentId:Object(object.n)()});var r=!1;this.preventDefault=function(){this.cancelable&&(r=!0)},Object(object.f)(this,"defaultPrevented",{enumerable:!0,get:function(){return r}})}return Object(Dn.a)(t,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),t}()),Fr=n(23),Rr={data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(t,e){t!==e&&(fr(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,cr),t&&dr(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,cr))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&dr(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,cr)},beforeDestroy:function(){fr(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,cr)},methods:{isClickOut:function(t){return!R(this.$el,t.target)},_clickOutHandler:function(t){this.clickOutHandler&&this.isClickOut(t)&&this.clickOutHandler(t)}}},$r={data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(t,e){t!==e&&(fr(this.focusInElement,"focusin",this._focusInHandler,cr),t&&dr(this.focusInElement,"focusin",this._focusInHandler,cr))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&dr(this.focusInElement,"focusin",this._focusInHandler,cr)},beforeDestroy:function(){fr(this.focusInElement,"focusin",this._focusInHandler,cr)},methods:{_focusInHandler:function(t){this.focusInHandler&&this.focusInHandler(t)}}};function Ur(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Yr(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Ur(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Ur(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Wr="".concat("bv::dropdown::","shown"),Gr="".concat("bv::dropdown::","hidden"),Kr={FORM_CHILD:".dropdown form",ITEM_SELECTOR:[".dropdown-item",".b-dropdown-form"].map((function(t){return"".concat(t,":not(.disabled):not([disabled])")})).join(", ")},Zr="top-start",Xr="top-end",Jr="bottom-start",Qr="bottom-end",to="right-start",eo="left-start",no={dropup:{type:Boolean,default:!1},dropright:{type:Boolean,default:!1},dropleft:{type:Boolean,default:!1},right:{type:Boolean,default:!1},offset:{type:[Number,String],default:0},noFlip:{type:Boolean,default:!1},popperOpts:{default:function(){}},boundary:{type:[String,Fr.b],default:"scrollParent"}},ro={mixins:[Ge,Rr,$r],provide:function(){return{bvDropdown:this}},inject:{bvNavbar:{default:null}},props:Yr({disabled:{type:Boolean,default:!1}},no),data:function(){return{visible:!1,visibleChangePrevented:!1}},computed:{inNavbar:function(){return!Object(x.f)(this.bvNavbar)},toggler:function(){var t=this.$refs.toggle;return t?t.$el||t:null},directionClass:function(){return this.dropup?"dropup":this.dropright?"dropright":this.dropleft?"dropleft":""}},watch:{visible:function(t,e){if(this.visibleChangePrevented)this.visibleChangePrevented=!1;else if(t!==e){var n=t?"show":"hide",r=new Vr(n,{cancelable:!0,vueTarget:this,target:this.$refs.menu,relatedTarget:null,componentId:this.safeId?this.safeId():this.id||null});if(this.emitEvent(r),r.defaultPrevented)return this.visibleChangePrevented=!0,this.visible=e,void this.$off("hidden",this.focusToggler);"show"===n?this.showMenu():this.hideMenu()}},disabled:function(t,e){t!==e&&t&&this.visible&&(this.visible=!1)}},created:function(){this.$_popper=null},deactivated:function(){this.visible=!1,this.whileOpenListen(!1),this.destroyPopper()},beforeDestroy:function(){this.visible=!1,this.whileOpenListen(!1),this.destroyPopper()},methods:{emitEvent:function(t){var e=t.type;this.$emit(e,t),this.$root.$emit("".concat("bv::dropdown::").concat(e),t)},showMenu:function(){var t=this;if(!this.disabled){if(!this.inNavbar)if(void 0===Hr.a)Object(ir.a)("Popper.js not found. Falling back to CSS positioning","BDropdown");else{var e=this.dropup&&this.right||this.split?this.$el:this.$refs.toggle;e=e.$el||e,this.createPopper(e)}this.$root.$emit(Wr,this),this.whileOpenListen(!0),this.$nextTick((function(){t.focusMenu(),t.$emit("shown")}))}},hideMenu:function(){this.whileOpenListen(!1),this.$root.$emit(Gr,this),this.$emit("hidden"),this.destroyPopper()},createPopper:function(element){this.destroyPopper(),this.$_popper=new Hr.a(element,this.$refs.menu,this.getPopperConfig())},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){try{this.$_popper.scheduleUpdate()}catch(t){}},getPopperConfig:function(){var t=Jr;this.dropup?t=this.right?Xr:Zr:this.dropright?t=to:this.dropleft?t=eo:this.right&&(t=Qr);var e={placement:t,modifiers:{offset:{offset:this.offset||0},flip:{enabled:!this.noFlip}}};return this.boundary&&(e.modifiers.preventOverflow={boundariesElement:this.boundary}),Yr({},e,{},this.popperOpts||{})},whileOpenListen:function(t){this.listenForClickOut=t,this.listenForFocusIn=t;var e=t?"$on":"$off";this.$root[e](Wr,this.rootCloseListener)},rootCloseListener:function(t){t!==this&&(this.visible=!1)},show:function(){var t=this;this.disabled||E((function(){t.visible=!0}))},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,t&&this.$once("hidden",this.focusToggler))},toggle:function(t){var e=t=t||{},n=e.type,r=e.keyCode;("click"===n||"keydown"===n&&-1!==[ie.ENTER,ie.SPACE,ie.DOWN].indexOf(r))&&(this.disabled?this.visible=!1:(this.$emit("toggle",t),t.preventDefault(),t.stopPropagation(),this.visible?this.hide(!0):this.show()))},onMousedown:function(t){t.preventDefault()},onKeydown:function(t){var e=t.keyCode;e===ie.ESC?this.onEsc(t):e===ie.DOWN?this.focusNext(t,!1):e===ie.UP&&this.focusNext(t,!0)},onEsc:function(t){this.visible&&(this.visible=!1,t.preventDefault(),t.stopPropagation(),this.$once("hidden",this.focusToggler))},onSplitClick:function(t){this.disabled?this.visible=!1:this.$emit("click",t)},hideHandler:function(t){var e=t.target;!this.visible||R(this.$refs.menu,e)||R(this.toggler,e)||this.hide()},clickOutHandler:function(t){this.hideHandler(t)},focusInHandler:function(t){this.hideHandler(t)},focusNext:function(t,e){var n=this,r=t.target;!this.visible||t&&F(Kr.FORM_CHILD,r)||(t.preventDefault(),t.stopPropagation(),this.$nextTick((function(){var t=n.getItems();if(!(t.length<1)){var o=t.indexOf(r);e&&o>0?o--:!e&&o<t.length-1&&o++,o<0&&(o=0),n.focusItem(o,t)}})))},focusItem:function(t,e){var n=e.find((function(e,i){return i===t}));n&&n.focus&&n.focus()},getItems:function(){return(N(Kr.ITEM_SELECTOR,this.$refs.menu)||[]).filter(D)},focusMenu:function(){try{this.$refs.menu.focus()}catch(t){}},focusToggler:function(){var t=this;this.$nextTick((function(){var e=t.toggler;e&&e.focus&&e.focus()}))}}},oo={text:{type:String,default:""},html:{type:String},size:{type:String,default:function(){return y("BDropdown","size")}},variant:{type:String,default:function(){return y("BDropdown","variant")}},block:{type:Boolean,default:!1},menuClass:{type:[String,Array,Object],default:null},toggleTag:{type:String,default:"button"},toggleText:{type:String,default:function(){return y("BDropdown","toggleText")}},toggleClass:{type:[String,Array,Object],default:null},noCaret:{type:Boolean,default:!1},split:{type:Boolean,default:!1},splitHref:{type:String},splitTo:{type:[String,Object]},splitVariant:{type:String,default:function(){return y("BDropdown","splitVariant")}},splitClass:{type:[String,Array,Object],default:null},splitButtonType:{type:String,default:"button",validator:function(t){return Object(j.a)(["button","submit","reset"],t)}},lazy:{type:Boolean,default:!1},role:{type:String,default:"menu"}},io=l.a.extend({name:"BDropdown",mixins:[Ge,ro,vt],props:oo,computed:{dropdownClasses:function(){return[this.directionClass,{show:this.visible,"btn-group":this.split||!this.block,"d-flex":this.block&&this.split,"position-static":"scrollParent"!==this.boundary||!this.boundary}]},menuClasses:function(){return[this.menuClass,{"dropdown-menu-right":this.right,show:this.visible}]},toggleClasses:function(){return[this.toggleClass,{"dropdown-toggle-split":this.split,"dropdown-toggle-no-caret":this.noCaret&&!this.split}]}},render:function(t){var e=t(),n=this.normalizeSlot("button-content")||this.html||Gt(this.text);if(this.split){var r={variant:this.splitVariant||this.variant,size:this.size,block:this.block,disabled:this.disabled};this.splitTo?r.to=this.splitTo:this.splitHref?r.href=this.splitHref:this.splitButtonType&&(r.type=this.splitButtonType),e=t(we,{ref:"button",props:r,class:this.splitClass,attrs:{id:this.safeId("_BV_button_")},on:{click:this.onSplitClick}},[n])}var o=t(we,{ref:"toggle",staticClass:"dropdown-toggle",class:this.toggleClasses,props:{tag:this.toggleTag,variant:this.variant,size:this.size,block:this.block&&!this.split,disabled:this.disabled},attrs:{id:this.safeId("_BV_toggle_"),"aria-haspopup":"true","aria-expanded":this.visible?"true":"false"},on:{mousedown:this.onMousedown,click:this.toggle,keydown:this.toggle}},[this.split?t("span",{class:["sr-only"]},[this.toggleText]):n]),menu=t("ul",{ref:"menu",staticClass:"dropdown-menu",class:this.menuClasses,attrs:{role:this.role,tabindex:"-1","aria-labelledby":this.safeId(this.split?"_BV_button_":"_BV_toggle_")},on:{keydown:this.onKeydown}},!this.lazy||this.visible?this.normalizeSlot("default",{hide:this.hide}):[t()]);return t("div",{staticClass:"dropdown b-dropdown",class:this.dropdownClasses,attrs:{id:this.safeId()}},[e,o,menu])}});function ao(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function lo(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ao(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):ao(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var so=Ht(),co=l.a.extend({name:"BDropdownItem",mixins:[vt],inheritAttrs:!1,inject:{bvDropdown:{default:null}},props:lo({},so,{variant:{type:String,default:null}}),methods:{closeDropdown:function(){var t=this;E((function(){t.bvDropdown&&t.bvDropdown.hide(!0)}))},onClick:function(t){this.$emit("click",t),this.closeDropdown()}},render:function(t){return t("li",{attrs:{role:"presentation"}},[t(Vt,{props:this.$props,staticClass:"dropdown-item",class:Object(o.a)({},"text-".concat(this.variant),this.variant&&!(this.active||this.disabled)),attrs:lo({},this.$attrs,{role:"menuitem"}),on:{click:this.onClick},ref:"item"},this.normalizeSlot("default"))])}});function uo(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function fo(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?uo(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):uo(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var ho={active:{type:Boolean,default:!1},activeClass:{type:String,default:"active"},disabled:{type:Boolean,default:!1},variant:{type:String,default:null}},po=l.a.extend({name:"BDropdownItemButton",mixins:[vt],inheritAttrs:!1,inject:{bvDropdown:{default:null}},props:ho,methods:{closeDropdown:function(){this.bvDropdown&&this.bvDropdown.hide(!0)},onClick:function(t){this.$emit("click",t),this.closeDropdown()}},render:function(t){var e;return t("li",{attrs:{role:"presentation"}},[t("button",{staticClass:"dropdown-item",class:(e={},Object(o.a)(e,this.activeClass,this.active),Object(o.a)(e,"text-".concat(this.variant),this.variant&&!(this.active||this.disabled)),e),attrs:fo({},this.$attrs,{role:"menuitem",type:"button",disabled:this.disabled}),on:{click:this.onClick},ref:"button"},this.normalizeSlot("default"))])}});function bo(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function vo(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?bo(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):bo(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var mo={id:{type:String,default:null},tag:{type:String,default:"header"},variant:{type:String,default:null}},go=l.a.extend({name:"BDropdownHeader",functional:!0,props:mo,render:function(t,e){var n=e.props,data=e.data,r=e.children,l=data.attrs||{};return data.attrs={},t("li",Object(it.a)(data,{attrs:{role:"presentation"}}),[t(n.tag,{staticClass:"dropdown-header",class:Object(o.a)({},"text-".concat(n.variant),n.variant),attrs:vo({},l,{id:n.id||null,role:"heading"}),ref:"header"},r)])}});function yo(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function wo(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?yo(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):yo(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Oo={tag:{type:String,default:"hr"}},ko=l.a.extend({name:"BDropdownDivider",functional:!0,props:Oo,render:function(t,e){var n=e.props,data=e.data,r=data.attrs||{};return data.attrs={},t("li",Object(it.a)(data,{attrs:{role:"presentation"}}),[t(n.tag,{staticClass:"dropdown-divider",attrs:wo({},r,{role:"separator","aria-orientation":"horizontal"}),ref:"divider"})])}}),So={id:{type:String,default:null},inline:{type:Boolean,default:!1},novalidate:{type:Boolean,default:!1},validated:{type:Boolean,default:!1}},jo=l.a.extend({name:"BForm",functional:!0,props:So,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t("form",Object(it.a)(data,{class:{"form-inline":n.inline,"was-validated":n.validated},attrs:{id:n.id,novalidate:n.novalidate}}),r)}});function _o(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function xo(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?_o(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):_o(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var To=l.a.extend({name:"BDropdownForm",functional:!0,props:xo({},So,{disabled:{type:Boolean,default:!1},formClass:{type:[String,Object,Array],default:null}}),render:function(t,e){var n=e.props,data=e.data,r=e.children,o=data.attrs||{},l=data.on||{};return data.attrs={},data.on={},t("li",Object(it.a)(data,{attrs:{role:"presentation"}}),[t(jo,{ref:"form",staticClass:"b-dropdown-form",class:[n.formClass,{disabled:n.disabled}],props:n,attrs:xo({},o,{disabled:n.disabled,tabindex:n.disabled?null:"-1"}),on:l},r)])}}),Bo=l.a.extend({name:"BDropdownText",functional:!0,props:{tag:{type:String,default:"p"},variant:{type:String,default:null}},render:function(t,e){var n=e.props,data=e.data,r=e.children,l=data.attrs||{};return data.attrs={},t("li",Object(it.a)(data,{attrs:{role:"presentation"}}),[t(n.tag,{staticClass:"b-dropdown-text",class:Object(o.a)({},"text-".concat(n.variant),n.variant),props:n,attrs:l,ref:"text"},r)])}});function Co(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Po(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Co(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Co(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Mo={id:{type:String,default:null},header:{type:String,default:null},headerTag:{type:String,default:"header"},headerVariant:{type:String,default:null},headerClasses:{type:[String,Array,Object],default:null},ariaDescribedby:{type:String,default:null}},qo=l.a.extend({name:"BDropdownGroup",functional:!0,props:Mo,render:function(t,e){var header,n=e.props,data=e.data,r=e.slots,l=e.scopedSlots,c=r(),d=l||{},f=data.attrs||{};data.attrs={};var h=null;(pt("header",d,c)||n.header)&&(h=n.id?"_bv_".concat(n.id,"_group_dd_header"):null,header=t(n.headerTag,{staticClass:"dropdown-header",class:[n.headerClasses,Object(o.a)({},"text-".concat(n.variant),n.variant)],attrs:{id:h,role:"heading"}},bt("header",{},d,c)||n.header));var v=[h,n.ariaDescribedBy].filter(Boolean).join(" ").trim();return t("li",Object(it.a)(data,{attrs:{role:"presentation"}}),[header||t(),t("ul",{staticClass:"list-unstyled",attrs:Po({},f,{id:n.id||null,role:"group","aria-describedby":v||null})},bt("default",{},d,c))])}}),Eo=Object(r.b)({components:{BDropdown:io,BDd:io,BDropdownItem:co,BDdItem:co,BDropdownItemButton:po,BDropdownItemBtn:po,BDdItemButton:po,BDdItemBtn:po,BDropdownHeader:go,BDdHeader:go,BDropdownDivider:ko,BDdDivider:ko,BDropdownForm:To,BDdForm:To,BDropdownText:Bo,BDdText:Bo,BDropdownGroup:qo,BDdGroup:qo}}),Ao={type:{type:String,default:"iframe",validator:function(t){return Object(j.a)(["iframe","embed","video","object","img","b-img","b-img-lazy"],t)}},tag:{type:String,default:"div"},aspect:{type:String,default:"16by9"}},zo=l.a.extend({name:"BEmbed",functional:!0,props:Ao,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(n.tag,{ref:data.ref,staticClass:"embed-responsive",class:Object(o.a)({},"embed-responsive-".concat(n.aspect),n.aspect)},[t(n.type,Object(it.a)(data,{ref:"",staticClass:"embed-responsive-item"}),r)])}}),Do=Object(r.b)({components:{BEmbed:zo}}),Lo={props:{options:{type:[Array,Object],default:function(){return[]}},valueField:{type:String,default:"value"},textField:{type:String,default:"text"},htmlField:{type:String,default:"html"},disabledField:{type:String,default:"disabled"}},computed:{formOptions:function(){var t=this,e=this.options;return Object(j.d)(e)?e.map((function(option){return t.normalizeOption(option)})):(Object(ir.a)('Setting prop "options" to an object is deprecated. Use the array format instead.',this.$options.name),Object(object.l)(e).map((function(n){return t.normalizeOption(e[n]||{},n)})))}},methods:{normalizeOption:function(option){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Object(object.k)(option)){var e=Object(d.a)(option,this.valueField),text=Object(d.a)(option,this.textField);return{value:Object(x.k)(e)?t||text:e,text:Gt(String(Object(x.k)(text)?t:text)),html:Object(d.a)(option,this.htmlField),disabled:Boolean(Object(d.a)(option,this.disabledField))}}return{value:t||option,text:Gt(String(option)),disabled:!1}}}};function Io(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function No(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Io(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Io(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Ho=l.a.extend({name:"BFormDatalist",mixins:[Lo,vt],props:{id:{type:String,default:null,required:!0}},render:function(t){var e=this.formOptions.map((function(option,e){return t("option",{key:"option_".concat(e,"_opt"),attrs:{disabled:option.disabled},domProps:No({},Kt(option.html,option.text),{value:option.value})})}));return t("datalist",{attrs:{id:this.id}},[e,this.normalizeSlot("default")])}}),Vo={id:{type:String,default:null},tag:{type:String,default:"small"},textVariant:{type:String,default:function(){return y("BFormText","textVariant")}},inline:{type:Boolean,default:!1}},Fo=l.a.extend({name:"BFormText",functional:!0,props:Vo,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(n.tag,Object(it.a)(data,{class:Object(o.a)({"form-text":!n.inline},"text-".concat(n.textVariant),n.textVariant),attrs:{id:n.id}}),r)}}),Ro={id:{type:String,default:null},tag:{type:String,default:"div"},tooltip:{type:Boolean,default:!1},forceShow:{type:Boolean,default:!1},state:{type:Boolean,default:null},ariaLive:{type:String,default:null},role:{type:String,default:null}},$o=l.a.extend({name:"BFormInvalidFeedback",functional:!0,props:Ro,render:function(t,e){var n=e.props,data=e.data,r=e.children,o=!0===n.forceShow||!1===n.state;return t(n.tag,Object(it.a)(data,{class:{"invalid-feedback":!n.tooltip,"invalid-tooltip":n.tooltip,"d-block":o},attrs:{id:n.id,role:n.role,"aria-live":n.ariaLive,"aria-atomic":n.ariaLive?"true":null}}),r)}}),Uo={id:{type:String,default:null},tag:{type:String,default:"div"},tooltip:{type:Boolean,default:!1},forceShow:{type:Boolean,default:!1},state:{type:Boolean,default:null},ariaLive:{type:String,default:null},role:{type:String,default:null}},Yo=l.a.extend({name:"BFormValidFeedback",functional:!0,props:Uo,render:function(t,e){var n=e.props,data=e.data,r=e.children,o=!0===n.forceShow||!0===n.state;return t(n.tag,Object(it.a)(data,{class:{"valid-feedback":!n.tooltip,"valid-tooltip":n.tooltip,"d-block":o},attrs:{id:n.id,role:n.role,"aria-live":n.ariaLive,"aria-atomic":n.ariaLive?"true":null}}),r)}}),Wo={tag:{type:String,default:"div"}},Go=l.a.extend({name:"BFormRow",functional:!0,props:Wo,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(n.tag,Object(it.a)(data,{staticClass:"form-row"}),r)}}),Ko=Object(r.b)({components:{BForm:jo,BFormDatalist:Ho,BDatalist:Ho,BFormText:Fo,BFormInvalidFeedback:$o,BFormFeedback:$o,BFormValidFeedback:Yo,BFormRow:Go}}),Zo=function(t,e){for(var i=0;i<t.length;i++)if(Ce(t[i],e))return i;return-1},Xo={props:{name:{type:String},id:{type:String},disabled:{type:Boolean},required:{type:Boolean,default:!1},form:{type:String,default:null},autofocus:{type:Boolean,default:!1}},mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{handleAutofocus:function(){var t=this;this.$nextTick((function(){E((function(){var e=t.$el;t.autofocus&&D(e)&&(V(e,"input, textarea, select")||(e=H("input, textarea, select",e)),e&&e.focus&&e.focus())}))}))}}};function Jo(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Qo(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Jo(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Jo(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var ti={mixins:[vt],inheritAttrs:!1,model:{prop:"checked",event:"input"},props:{value:{},checked:{},inline:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},button:{type:Boolean,default:!1},buttonVariant:{type:String,default:null},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},data:function(){return{localChecked:this.isGroup?this.bvGroup.checked:this.checked,hasFocus:!1}},computed:{computedLocalChecked:{get:function(){return this.isGroup?this.bvGroup.localChecked:this.localChecked},set:function(t){this.isGroup?this.bvGroup.localChecked=t:this.localChecked=t}},isGroup:function(){return Boolean(this.bvGroup)},isBtnMode:function(){return this.isGroup?this.bvGroup.buttons:this.button},isPlain:function(){return!this.isBtnMode&&(this.isGroup?this.bvGroup.plain:this.plain)},isCustom:function(){return!this.isBtnMode&&!this.isPlain},isSwitch:function(){return!(this.isBtnMode||this.isRadio||this.isPlain)&&(this.isGroup?this.bvGroup.switches:this.switch)},isInline:function(){return this.isGroup?this.bvGroup.inline:this.inline},isDisabled:function(){return this.isGroup&&this.bvGroup.disabled||this.disabled},isRequired:function(){return this.getName&&(this.isGroup?this.bvGroup.required:this.required)},getName:function(){return(this.isGroup?this.bvGroup.groupName:this.name)||null},getForm:function(){return(this.isGroup?this.bvGroup.form:this.form)||null},getSize:function(){return(this.isGroup?this.bvGroup.size:this.size)||""},getState:function(){return this.isGroup?this.bvGroup.computedState:this.computedState},getButtonVariant:function(){return this.buttonVariant?this.buttonVariant:this.isGroup&&this.bvGroup.buttonVariant?this.bvGroup.buttonVariant:"secondary"},buttonClasses:function(){var t;return["btn","btn-".concat(this.getButtonVariant),(t={},Object(o.a)(t,"btn-".concat(this.getSize),this.getSize),Object(o.a)(t,"disabled",this.isDisabled),Object(o.a)(t,"active",this.isChecked),Object(o.a)(t,"focus",this.hasFocus),t)]}},watch:{checked:function(t){this.computedLocalChecked=t}},methods:{handleFocus:function(t){t.target&&("focus"===t.type?this.hasFocus=!0:"blur"===t.type&&(this.hasFocus=!1))},focus:function(){!this.isDisabled&&this.$refs.input&&this.$refs.input.focus&&this.$refs.input.focus()},blur:function(){!this.isDisabled&&this.$refs.input&&this.$refs.input.blur&&this.$refs.input.blur()}},render:function(t){var e=this.normalizeSlot("default"),n={change:this.handleChange};this.isBtnMode&&(n.focus=n.blur=this.handleFocus);var input=t("input",{ref:"input",key:"input",on:n,class:{"form-check-input":this.isPlain,"custom-control-input":this.isCustom,"is-valid":!0===this.getState&&!this.isBtnMode,"is-invalid":!1===this.getState&&!this.isBtnMode,"position-static":this.isPlain&&!e},directives:[{name:"model",rawName:"v-model",value:this.computedLocalChecked,expression:"computedLocalChecked"}],attrs:Qo({},this.$attrs,{id:this.safeId(),type:this.isRadio?"radio":"checkbox",name:this.getName,form:this.getForm,disabled:this.isDisabled,required:this.isRequired,autocomplete:"off","aria-required":this.isRequired||null,"aria-label":this.ariaLabel||null,"aria-labelledby":this.ariaLabelledby||null}),domProps:{value:this.value,checked:this.isChecked}});if(this.isBtnMode){var button=t("label",{class:this.buttonClasses},[input,e]);return this.isGroup||(button=t("div",{class:["btn-group-toggle","d-inline-block"]},[button])),button}var label=t();return this.isPlain&&!e||(label=t("label",{class:{"form-check-label":this.isPlain,"custom-control-label":this.isCustom},attrs:{for:this.safeId()}},e)),t("div",{class:Object(o.a)({"form-check":this.isPlain,"form-check-inline":this.isPlain&&this.isInline,"custom-control":this.isCustom,"custom-control-inline":this.isCustom&&this.isInline,"custom-checkbox":this.isCustom&&this.isCheck&&!this.isSwitch,"custom-switch":this.isSwitch,"custom-radio":this.isCustom&&this.isRadio},"b-custom-control-".concat(this.getSize),Boolean(this.getSize&&!this.isBtnMode))},[input,label])}},ei={props:{size:{type:String,default:function(){return y("formControls","size")}}},computed:{sizeFormClass:function(){return[this.size?"form-control-".concat(this.size):null]},sizeBtnClass:function(){return[this.size?"btn-".concat(this.size):null]}}},ni={props:{state:{type:Boolean,default:null}},computed:{computedState:function(){return Object(x.a)(this.state)?this.state:null},stateClass:function(){var t=this.computedState;return!0===t?"is-valid":!1===t?"is-invalid":null}}},ri=l.a.extend({name:"BFormCheckbox",mixins:[ti,Ge,Xo,ei,ni],inject:{bvGroup:{from:"bvCheckGroup",default:!1}},props:{value:{default:!0},uncheckedValue:{default:!1},indeterminate:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},checked:{default:null}},computed:{isChecked:function(){var t=this.computedLocalChecked,e=this.value;return Object(j.d)(t)?Zo(t,e)>-1:Ce(t,e)},isRadio:function(){return!1},isCheck:function(){return!0}},watch:{computedLocalChecked:function(t){this.$emit("input",t),this.$refs&&this.$refs.input&&this.$emit("update:indeterminate",this.$refs.input.indeterminate)},indeterminate:function(t){this.setIndeterminate(t)}},mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{handleChange:function(t){var e=t.target,n=e.checked,r=e.indeterminate,o=this.computedLocalChecked,l=this.value,c=Object(j.d)(o),d=c?null:this.uncheckedValue;if(c){var f=Zo(o,l);n&&f<0?o=o.concat(l):!n&&f>-1&&(o=o.slice(0,f).concat(o.slice(f+1)))}else o=n?l:d;this.computedLocalChecked=o,this.$emit("change",n?l:d),this.isGroup&&this.bvGroup.$emit("change",o),this.$emit("update:indeterminate",r)},setIndeterminate:function(t){Object(j.d)(this.computedLocalChecked)&&(t=!1),this.$refs&&this.$refs.input&&(this.$refs.input.indeterminate=t,this.$emit("update:indeterminate",t))}}}),oi=l.a.extend({name:"BFormRadio",mixins:[Ge,ti,Xo,ei,ni],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:{checked:{default:null}},computed:{isChecked:function(){return Ce(this.value,this.computedLocalChecked)},isRadio:function(){return!0},isCheck:function(){return!1}},watch:{computedLocalChecked:function(){this.$emit("input",this.computedLocalChecked)}},methods:{handleChange:function(t){var e=t.target.checked,n=this.value;this.computedLocalChecked=n,this.$emit("change",e?n:null),this.isGroup&&this.bvGroup.$emit("change",e?n:null)}}}),ii={mixins:[vt],model:{prop:"checked",event:"input"},props:{validated:{type:Boolean,default:!1},ariaInvalid:{type:[Boolean,String],default:!1},stacked:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},buttons:{type:Boolean,default:!1},buttonVariant:{type:String,default:"secondary"}},computed:{inline:function(){return!this.stacked},groupName:function(){return this.name||this.safeId()},groupClasses:function(){return this.buttons?["btn-group-toggle",this.inline?"btn-group":"btn-group-vertical",this.size?"btn-group-".concat(this.size):"",this.validated?"was-validated":""]:[this.validated?"was-validated":""]},computedAriaInvalid:function(){var t=this.ariaInvalid;return!0===t||"true"===t||""===t||!1===this.computedState?"true":null}},watch:{checked:function(t){this.localChecked=t},localChecked:function(t){this.$emit("input",t)}},render:function(t){var e=this,n=this.formOptions.map((function(option,n){var r="_BV_option_".concat(n,"_");return t(e.isRadioGroup?oi:ri,{key:r,props:{id:e.safeId(r),value:option.value,disabled:option.disabled||!1}},[t("span",{domProps:Kt(option.html,option.text)})])}));return t("div",{class:[this.groupClasses,"bv-no-focus-ring"],attrs:{id:this.safeId(),role:this.isRadioGroup?"radiogroup":"group",tabindex:"-1","aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid}},[this.normalizeSlot("first"),n,this.normalizeSlot("default")])}},ai={switches:{type:Boolean,default:!1},checked:{type:Array,default:null}},si=l.a.extend({name:"BFormCheckboxGroup",mixins:[Ge,Xo,ii,Lo,ei,ni],provide:function(){return{bvCheckGroup:this}},props:ai,data:function(){return{localChecked:this.checked||[]}},computed:{isRadioGroup:function(){return!1}}}),ci=Object(r.b)({components:{BFormCheckbox:ri,BCheckbox:ri,BCheck:ri,BFormCheckboxGroup:si,BCheckboxGroup:si,BCheckGroup:si}}),ui="__BV_hover_handler__",di=function(t,e,n){pr(t,e,"mouseenter",n,cr),pr(t,e,"mouseleave",n,cr)},fi=function(t,e){var n=e.value,r=void 0===n?null:n;if(_.j){var o=t[ui],l=Object(x.e)(o),c=!(l&&o.fn===r);l&&c&&(di(!1,t,o),delete t[ui]),Object(x.e)(r)&&c&&(t[ui]=function(t){var e=function(e){t("mouseenter"===e.type,e)};return e.fn=t,e}(r),di(!0,t,t[ui]))}},hi={bind:fi,componentUpdated:fi,unbind:function(t){fi(t,{value:null})}},pi=no,bi=l.a.extend({name:"BVFormBtnLabelControl",directives:{BHover:hi},mixins:[Ge,vt,ro],props:{value:{type:String,default:""},formattedValue:{type:String},placeholder:{type:String},labelSelected:{type:String},state:{type:Boolean,default:null},size:{type:String},name:{type:String},form:{type:String},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},lang:{type:String},rtl:{type:Boolean,default:null},buttonOnly:{type:Boolean,default:!1},buttonVariant:{type:String,default:"secondary"},menuClass:{type:[String,Array,Object]}},data:function(){return{isHovered:!1,hasFocus:!1}},computed:{idButton:function(){return this.safeId()},idLabel:function(){return this.safeId("_value_")},idMenu:function(){return this.safeId("_dialog_")},idWrapper:function(){return this.safeId("_outer_")},computedDir:function(){return!0===this.rtl?"rtl":!1===this.rtl?"ltr":null}},methods:{focus:function(){if(!this.disabled)try{this.$refs.toggle.focus()}catch(t){}},blur:function(){if(!this.disabled)try{this.$refs.toggle.blur()}catch(t){}},setFocus:function(t){this.hasFocus="focus"===t.type},handleHover:function(t){this.isHovered=t},stopEvent:function(t){t.stopPropagation()}},render:function(t){var e,n,r,l=this.idButton,c=this.idLabel,d=this.idMenu,f=this.idWrapper,h=this.disabled,v=this.readonly,m=this.required,y=this.isHovered,w=this.hasFocus,O=this.state,k=this.visible,S=this.size,j=Object(xt.f)(this.value)||"",_=this.labelSelected,x=!!this.buttonOnly,T=this.buttonVariant,B={isHovered:y,hasFocus:w,state:O,opened:k},C=t("button",{ref:"toggle",staticClass:"btn",class:(e={},Object(o.a)(e,"btn-".concat(T),x),Object(o.a)(e,"btn-".concat(S),!!S),Object(o.a)(e,"border-0",!x),Object(o.a)(e,"h-auto",!x),Object(o.a)(e,"py-0",!x),Object(o.a)(e,"dropdown-toggle",x),Object(o.a)(e,"dropdown-toggle-no-caret",x),e),attrs:{id:l,type:"button",disabled:h,"aria-haspopup":"dialog","aria-expanded":k?"true":"false","aria-invalid":!1===O||m&&!j?"true":null,"aria-required":m?"true":null},directives:[{name:"b-hover",value:this.handleHover}],on:{mousedown:this.onMousedown,click:this.toggle,keydown:this.toggle,"!focus":this.setFocus,"!blur":this.setFocus}},[this.hasNormalizedSlot("button-content")?this.normalizeSlot("button-content",B):t(Ke.Rb,{props:{scale:1.25}})]),P=t();this.name&&!h&&(P=t("input",{attrs:{type:"hidden",name:this.name||null,form:this.form||null,value:j}}));var M=t("div",{ref:"menu",staticClass:"dropdown-menu p-2",class:[this.menuClass,{show:k,"dropdown-menu-right":this.right}],attrs:{id:d,role:"dialog",tabindex:"-1","aria-modal":"false","aria-labelledby":c},on:{keydown:this.onKeydown}},[this.normalizeSlot("default",{opened:k})]),E=t("label",{staticClass:"form-control text-break text-wrap border-0 bg-transparent h-auto pl-1 m-0",class:(n={"sr-only":x,"text-muted":!j},Object(o.a)(n,"form-control-".concat(S),!!S),Object(o.a)(n,"is-invalid",!1===O),Object(o.a)(n,"is-valid",!0===O),n),attrs:{id:c,for:l,"aria-invalid":!1===O||m&&!j?"true":null,"aria-required":m?"true":null},directives:[{name:"b-hover",value:this.handleHover}],on:{"!click":this.stopEvent}},[j?this.formattedValue||j:this.placeholder||"",j&&_?t("bdi",{staticClass:"sr-only"},_):""]);return t("div",{staticClass:"dropdown",class:[this.directionClass,(r={"btn-group":x,"b-form-btn-label-control":!x,"form-control":!x},Object(o.a)(r,"form-control-".concat(S),!!S&&!x),Object(o.a)(r,"d-flex",!x),Object(o.a)(r,"p-0",!x),Object(o.a)(r,"h-auto",!x),Object(o.a)(r,"align-items-stretch",!x),Object(o.a)(r,"focus",w&&!x),Object(o.a)(r,"show",k),Object(o.a)(r,"is-valid",!0===O),Object(o.a)(r,"is-invalid",!1===O),r)],attrs:{id:f,role:x?null:"group",lang:this.lang||null,dir:this.computedDir,"aria-disabled":h,"aria-readonly":v&&!h,"aria-labelledby":c,"aria-invalid":!1===O||m&&!j?"true":null,"aria-required":m?"true":null}},[C,P,M,E])}});function vi(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function mi(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?vi(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):vi(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var gi=function(t){return y("BFormDatepicker",t)||y("BCalendar",t)},yi={props:mi({value:{type:[String,Date],default:null},valueAsDate:{type:Boolean,default:!1},resetValue:{type:[String,Date],default:""},initialDate:{type:[String,Date],default:null},placeholder:{type:String,default:null},size:{type:String,default:null},min:{type:[String,Date],default:null},max:{type:[String,Date],default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},name:{type:String,default:null},form:{type:String,default:null},state:{type:Boolean,default:null},dateDisabledFn:{type:Function,default:null},noCloseOnSelect:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},locale:{type:[String,Array],default:null},startWeekday:{type:[Number,String],default:0},direction:{type:String,default:null},buttonOnly:{type:Boolean,default:!1},buttonVariant:{type:String,default:"secondary"},calendarWidth:{type:String,default:"270px"},selectedVariant:{type:String,default:"primary"},todayVariant:{type:String,default:null},noHighlightToday:{type:Boolean,default:!1},todayButton:{type:Boolean,default:!1},labelTodayButton:{type:String,default:function(){return y("BFormDatepicker","labelTodayButton")}},todayButtonVariant:{type:String,default:"outline-primary"},resetButton:{type:Boolean,default:!1},labelResetButton:{type:String,default:function(){return y("BFormDatepicker","labelResetButton")}},resetButtonVariant:{type:String,default:"outline-danger"},closeButton:{type:Boolean,default:!1},labelCloseButton:{type:String,default:function(){return y("BFormDatepicker","labelCloseButton")}},closeButtonVariant:{type:String,default:"outline-secondary"},labelPrevYear:{type:String,default:function(){return gi("labelPrevYear")}},labelPrevMonth:{type:String,default:function(){return gi("labelPrevMonth")}},labelCurrentMonth:{type:String,default:function(){return gi("labelCurrentMonth")}},labelNextMonth:{type:String,default:function(){return gi("labelNextMonth")}},labelNextYear:{type:String,default:function(){return gi("labelNextYear")}},labelToday:{type:String,default:function(){return gi("labelToday")}},labelSelected:{type:String,default:function(){return gi("labelSelected")}},labelNoDateSelected:{type:String,default:function(){return gi("labelNoDateSelected")}},labelCalendar:{type:String,default:function(){return gi("labelCalendar")}},labelNav:{type:String,default:function(){return gi("labelNav")}},labelHelp:{type:String,default:function(){return gi("labelHelp")}},dateFormatOptions:{type:Object,default:function(){return{year:"numeric",month:"long",day:"numeric",weekday:"long"}}},dark:{type:Boolean,default:!1},menuClass:{type:[String,Array,Object],default:null}},pi)},wi=l.a.extend({name:"BFormDatepicker",mixins:[Ge,yi],model:{prop:"value",event:"input"},data:function(){return{localYMD:ze(this.value)||"",isVisible:!1,localLocale:null,isRTL:!1,formattedValue:"",activeYMD:""}},computed:{calendarYM:function(){return this.activeYMD.slice(0,-3)},calendarProps:function(){return{hidden:!this.isVisible,value:this.localYMD,min:this.min,max:this.max,initialDate:this.initialDate,readonly:this.readonly,disabled:this.disabled,locale:this.locale,startWeekday:this.startWeekday,direction:this.direction,width:this.calendarWidth,dateDisabledFn:this.dateDisabledFn,selectedVariant:this.selectedVariant,todayVariant:this.todayVariant,hideHeader:this.hideHeader,labelPrevYear:this.labelPrevYear,labelPrevMonth:this.labelPrevMonth,labelCurrentMonth:this.labelCurrentMonth,labelNextMonth:this.labelNextMonth,labelNextYear:this.labelNextYear,labelToday:this.labelToday,labelSelected:this.labelSelected,labelNoDateSelected:this.labelNoDateSelected,labelCalendar:this.labelCalendar,labelNav:this.labelNav,labelHelp:this.labelHelp,dateFormatOptions:this.dateFormatOptions}},computedLang:function(){return(this.localLocale||"").replace(/-u-.*$/i,"")||null},computedResetValue:function(){return ze($e(this.resetValue))||""}},watch:{value:function(t){this.localYMD=ze(t)||""},localYMD:function(t){this.isVisible&&this.$emit("input",this.valueAsDate?Ae(t)||null:t||"")},calendarYM:function(t,e){if(t!==e&&e)try{this.$refs.control.updatePopper()}catch(t){}}},methods:{focus:function(){if(!this.disabled)try{this.$refs.control.focus()}catch(t){}},blur:function(){if(!this.disabled)try{this.$refs.control.blur()}catch(t){}},setAndClose:function(t){var e=this;this.localYMD=t,this.noCloseOnSelect||this.$nextTick((function(){e.$refs.control.hide(!0)}))},onSelected:function(t){var e=this;this.$nextTick((function(){e.setAndClose(t)}))},onInput:function(t){this.localYMD!==t&&(this.localYMD=t)},onContext:function(t){var e=t.activeYMD,n=t.isRTL,r=t.locale,o=t.selectedYMD,l=t.selectedFormatted;this.isRTL=n,this.localLocale=r,this.formattedValue=l,this.localYMD=o,this.activeYMD=e,this.$emit("context",t)},onTodayButton:function(){this.setAndClose(ze($e(Ee(),this.min,this.max)))},onResetButton:function(){this.setAndClose(this.computedResetValue)},onCloseButton:function(){this.$refs.control.hide(!0)},onShow:function(){this.isVisible=!0},onShown:function(){var t=this;this.$nextTick((function(){try{t.$refs.calendar.focus()}catch(t){}}))},onHidden:function(){this.isVisible=!1},defaultButtonFn:function(t){var e=t.isHovered,n=t.hasFocus;return this.$createElement(e||n?Ke.Cb:Ke.Bb,{props:{scale:1.25},attrs:{"aria-hidden":"true"}})}},render:function(t){var e=this.localYMD,n=this.disabled,r=this.readonly,o=Object(x.l)(this.placeholder)?this.labelNoDateSelected:this.placeholder,l=[];if(this.todayButton){var label=this.labelTodayButton;l.push(t(we,{props:{size:"sm",disabled:n||r,variant:this.todayButtonVariant},attrs:{"aria-label":label||null},on:{click:this.onTodayButton}},label))}if(this.resetButton){var c=this.labelResetButton;l.push(t(we,{props:{size:"sm",disabled:n||r,variant:this.resetButtonVariant},attrs:{"aria-label":c||null},on:{click:this.onResetButton}},c))}if(this.closeButton){var d=this.labelCloseButton;l.push(t(we,{props:{size:"sm",disabled:n,variant:this.closeButtonVariant},attrs:{"aria-label":d||null},on:{click:this.onCloseButton}},d))}l.length>0&&(l=[t("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":l.length>1,"justify-content-end":l.length<2}},l)]);var f=t(un,{key:"calendar",ref:"calendar",staticClass:"b-form-date-calendar",props:this.calendarProps,on:{selected:this.onSelected,input:this.onInput,context:this.onContext}},l);return t(bi,{ref:"control",staticClass:"b-form-datepicker",props:mi({},this.$props,{id:this.safeId(),rtl:this.isRTL,lang:this.computedLang,value:e||"",formattedValue:e?this.formattedValue:"",placeholder:o||"",menuClass:[{"bg-dark":!!this.dark,"text-light":!!this.dark},this.menuClass]}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:{"button-content":this.$scopedSlots["button-content"]||this.defaultButtonFn}},[f])}}),Oi=Object(r.b)({components:{BFormDatepicker:wi,BDatepicker:wi}}),ki=(n(71),{props:{plain:{type:Boolean,default:!1}},computed:{custom:function(){return!this.plain}}});function Si(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function ji(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Si(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Si(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var _i=l.a.extend({name:"BFormFile",mixins:[Ge,Xo,ni,ki,vt],inheritAttrs:!1,model:{prop:"value",event:"input"},props:{size:{type:String,default:function(){return y("BFormControl","size")}},value:{type:[Fr.a,Array],default:null,validator:function(t){return""===t?(Object(ir.a)('Setting "value"/"v-model" to an empty string for reset is deprecated. Set to "null" instead.',"BFormFile"),!0):Object(x.l)(t)||function t(e){return Object(x.d)(e)||Object(j.d)(e)&&e.every((function(e){return t(e)}))}(t)}},accept:{type:String,default:""},capture:{type:Boolean,default:!1},placeholder:{type:String,default:function(){return y("BFormFile","placeholder")}},browseText:{type:String,default:function(){return y("BFormFile","browseText")}},dropPlaceholder:{type:String,default:function(){return y("BFormFile","dropPlaceholder")}},multiple:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},noTraverse:{type:Boolean,default:!1},noDrop:{type:Boolean,default:!1},fileNameFormatter:{type:Function,default:null}},data:function(){return{selectedFile:null,dragging:!1,hasFocus:!1}},computed:{selectLabel:function(){if(this.dragging&&this.dropPlaceholder)return this.dropPlaceholder;if(!this.selectedFile||0===this.selectedFile.length)return this.placeholder;var t=Object(j.b)(this.selectedFile).filter(ht.a);return this.hasNormalizedSlot("file-name")?[this.normalizeSlot("file-name",{files:t,names:t.map((function(t){return t.name}))})]:Object(x.e)(this.fileNameFormatter)?Object(xt.f)(this.fileNameFormatter(t)):t.map((function(t){return t.name})).join(", ")}},watch:{selectedFile:function(t,e){t===e||Object(j.d)(t)&&Object(j.d)(e)&&t.length===e.length&&t.every((function(t,i){return t===e[i]}))||(!t&&this.multiple?this.$emit("input",[]):this.$emit("input",t))},value:function(t){(!t||Object(j.d)(t)&&0===t.length)&&this.reset()}},methods:{focusHandler:function(t){this.plain||"focusout"===t.type?this.hasFocus=!1:this.hasFocus=!0},reset:function(){try{var t=this.$refs.input;t.value="",t.type="",t.type="file"}catch(t){}this.selectedFile=this.multiple?[]:null},onFileChange:function(t){var e=this;this.$emit("change",t);var n=t.dataTransfer&&t.dataTransfer.items;if(!n||this.noTraverse)this.setFiles(t.target.files||t.dataTransfer.files);else{for(var r=[],i=0;i<n.length;i++){var o=n[i].webkitGetAsEntry();o&&r.push(this.traverseFileTree(o))}Promise.all(r).then((function(t){e.setFiles(Object(j.c)(t))}))}},setFiles:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(t)if(this.multiple){for(var e=[],i=0;i<t.length;i++)e.push(t[i]);this.selectedFile=e}else this.selectedFile=t[0]||null;else this.selectedFile=null},onReset:function(){this.selectedFile=this.multiple?[]:null},onDragover:function(t){t.preventDefault(),t.stopPropagation(),!this.noDrop&&this.custom&&(this.dragging=!0,t.dataTransfer.dropEffect="copy")},onDragleave:function(t){t.preventDefault(),t.stopPropagation(),this.dragging=!1},onDrop:function(t){t.preventDefault(),t.stopPropagation(),this.noDrop||(this.dragging=!1,t.dataTransfer.files&&t.dataTransfer.files.length>0&&this.onFileChange(t))},traverseFileTree:function(t,path){var e=this;return new Promise((function(n){path=path||"",t.isFile?t.file((function(t){t.$path=path,n(t)})):t.isDirectory&&t.createReader().readEntries((function(r){for(var o=[],i=0;i<r.length;i++)o.push(e.traverseFileTree(r[i],path+t.name+"/"));Promise.all(o).then((function(t){n(Object(j.c)(t))}))}))}))}},render:function(t){var input=t("input",{ref:"input",class:[{"form-control-file":this.plain,"custom-file-input":this.custom,focus:this.custom&&this.hasFocus},this.stateClass],attrs:ji({},this.$attrs,{type:"file",id:this.safeId(),name:this.name,disabled:this.disabled,required:this.required,form:this.form||null,capture:this.capture||null,accept:this.accept||null,multiple:this.multiple,webkitdirectory:this.directory,"aria-required":this.required?"true":null}),on:{change:this.onFileChange,focusin:this.focusHandler,focusout:this.focusHandler,reset:this.onReset}});if(this.plain)return input;var label=t("label",{staticClass:"custom-file-label",class:[this.dragging?"dragging":null],attrs:{for:this.safeId(),"data-browse":this.browseText||null}},this.selectLabel);return t("div",{staticClass:"custom-file b-form-file",class:[this.stateClass,Object(o.a)({},"b-custom-control-".concat(this.size),this.size)],attrs:{id:this.safeId("_BV_file_outer_")},on:{dragover:this.onDragover,dragleave:this.onDragleave,drop:this.onDrop}},[input,label])}}),xi=Object(r.b)({components:{BFormFile:_i,BFile:_i}}),Ti=function(t,e){return e+(t?Object(xt.i)(t):"")};function Bi(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var Ci=/^col-/,Pi=function(){return{type:[String,Number],default:null}},Mi=f((function(t,e,n){var r=t;if(!Object(x.l)(n)&&!1!==n)return e&&(r+="-".concat(e)),"col"!==t||""!==n&&!0!==n?(r+="-".concat(n),Object(xt.c)(r)):Object(xt.c)(r)})),qi=Object(object.c)(null),Ei=function(){var t=S().filter(ht.a),e=t.reduce((function(t,e){return e&&(t[e]={type:[Boolean,String,Number],default:!1}),t}),Object(object.c)(null)),n=t.reduce((function(t,e){return t[Ti(e,"offset")]=Pi(),t}),Object(object.c)(null)),r=t.reduce((function(t,e){return t[Ti(e,"order")]=Pi(),t}),Object(object.c)(null));return qi=Object(object.a)(Object(object.c)(null),{col:Object(object.l)(e),offset:Object(object.l)(n),order:Object(object.l)(r)}),function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Bi(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Bi(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({col:{type:Boolean,default:!1},cols:Pi()},e,{offset:Pi()},n,{order:Pi()},r,{alignSelf:{type:String,default:null,validator:function(t){return Object(j.a)(["auto","start","end","center","baseline","stretch"],t)}},tag:{type:String,default:"div"}})},Ai={name:"BCol",functional:!0,get props(){return delete this.props,this.props=Ei()},render:function(t,e){var n,r=e.props,data=e.data,l=e.children,c=[];for(var d in qi)for(var f=qi[d],i=0;i<f.length;i++){var h=Mi(d,f[i].replace(d,""),r[f[i]]);h&&c.push(h)}var v=c.some((function(t){return Ci.test(t)}));return c.push((n={col:r.col||!v&&!r.cols},Object(o.a)(n,"col-".concat(r.cols),r.cols),Object(o.a)(n,"offset-".concat(r.offset),r.offset),Object(o.a)(n,"order-".concat(r.order),r.order),Object(o.a)(n,"align-self-".concat(r.alignSelf),r.alignSelf),n)),t(r.tag,Object(it.a)(data,{class:c}),l)}};function zi(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Di(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?zi(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):zi(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Li=function(t,e){var content=e.normalizeSlot("invalid-feedback")||e.invalidFeedback,n=t();return content&&(n=t($o,{props:{id:e.invalidFeedbackId,state:e.computedState,tooltip:e.tooltip,ariaLive:e.feedbackAriaLive,role:e.feedbackAriaLive?"alert":null},attrs:{tabindex:content?"-1":null}},[content])),n},Ii=function(t,e){var content=e.normalizeSlot("valid-feedback")||e.validFeedback,n=t();return content&&(n=t(Yo,{props:{id:e.validFeedbackId,state:e.computedState,tooltip:e.tooltip,ariaLive:e.feedbackAriaLive,role:e.feedbackAriaLive?"alert":null},attrs:{tabindex:content?"-1":null}},[content])),n},Ni=function(t,e){var content=e.normalizeSlot("description")||e.description,n=t();return content&&(n=t(Fo,{attrs:{id:e.descriptionId,tabindex:content?"-1":null}},[content])),n},Hi=f((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return"".concat(e).concat(Object(xt.i)(t))})),Vi={name:"BFormGroup",mixins:[Ge,ni,vt],get props(){return delete this.props,this.props=(t=S(),e=t.reduce((function(t,e){return t[Hi(e,"labelCols")]={type:[Number,String,Boolean],default:!e&&null},t}),Object(object.c)(null)),n=t.reduce((function(t,e){return t[Hi(e,"labelAlign")]={type:String,default:null},t}),Object(object.c)(null)),Di({label:{type:String,default:null},labelFor:{type:String,default:null},labelSize:{type:String,default:null},labelSrOnly:{type:Boolean,default:!1}},e,{},n,{labelClass:{type:[String,Array,Object],default:null},description:{type:String,default:null},invalidFeedback:{type:String,default:null},validFeedback:{type:String,default:null},tooltip:{type:Boolean,default:!1},feedbackAriaLive:{type:String,default:"assertive"},validated:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}}));var t,e,n},computed:{labelColProps:function(){var t=this,e={};return S().forEach((function(n){var r=t[Hi(n,"labelCols")];if(r=""===r||(r||!1),Object(x.a)(r)||"auto"===r||(r=(r=parseInt(r,10)||0)>0&&r),r){var o=n||(Object(x.a)(r)?"col":"cols");e[o]=r}})),e},labelAlignClasses:function(){var t=this,e=[];return S().forEach((function(n){var r=t[Hi(n,"labelAlign")]||null;if(r){var o=n?"text-".concat(n,"-").concat(r):"text-".concat(r);e.push(o)}})),e},isHorizontal:function(){return Object(object.l)(this.labelColProps).length>0},labelId:function(){return this.hasNormalizedSlot("label")||this.label?this.safeId("_BV_label_"):null},descriptionId:function(){return this.hasNormalizedSlot("description")||this.description?this.safeId("_BV_description_"):null},hasInvalidFeedback:function(){return!1===this.computedState&&(this.hasNormalizedSlot("invalid-feedback")||this.invalidFeedback)},invalidFeedbackId:function(){return this.hasInvalidFeedback?this.safeId("_BV_feedback_invalid_"):null},hasValidFeedback:function(){return!0===this.computedState&&(this.hasNormalizedSlot("valid-feedback")||this.validFeedback)},validFeedbackId:function(){return this.hasValidFeedback?this.safeId("_BV_feedback_valid_"):null},describedByIds:function(){return[this.descriptionId,this.invalidFeedbackId,this.validFeedbackId].filter(Boolean).join(" ")||null}},watch:{describedByIds:function(t,e){t!==e&&this.setInputDescribedBy(t,e)}},mounted:function(){var t=this;this.$nextTick((function(){t.setInputDescribedBy(t.describedByIds)}))},methods:{legendClick:function(t){if(!this.labelFor){var e=t.target?t.target.tagName:"";if(!/^(input|select|textarea|label|button|a)$/i.test(e)){var n=N("input:not([disabled]),textarea:not([disabled]),select:not([disabled])",this.$refs.content).filter(D);if(n&&1===n.length&&n[0].focus)try{n[0].focus()}catch(t){}}}},setInputDescribedBy:function(t,e){if(this.labelFor&&_.j){var input=H("#".concat(this.labelFor),this.$refs.content);if(input){var n="aria-describedby",r=(Z(input,n)||"").split(/\s+/);t=(t||"").split(/\s+/),e=(e||"").split(/\s+/),r=r.filter((function(t){return!Object(j.a)(e,t)})).concat(t).filter(Boolean),(r=Object(object.l)(r.reduce((function(t,e){return Di({},t,Object(o.a)({},e,!0))}),{})).join(" ").trim())?G(input,n,r):K(input,n)}}}},render:function(t){var e=!this.labelFor,n=this.isHorizontal,label=function(t,e){var content=e.normalizeSlot("label")||e.label,n=e.labelFor,r=!n,o=e.isHorizontal,l=r?"legend":"label";if(content||o){if(e.labelSrOnly){var label=t();return content&&(label=t(l,{class:"sr-only",attrs:{id:e.labelId,for:n||null}},[content])),t(o?Ai:"div",{props:o?e.labelColProps:{}},[label])}return t(o?Ai:l,{on:r?{click:e.legendClick}:{},props:o?Di({tag:l},e.labelColProps):{},attrs:{id:e.labelId,for:n||null,tabindex:r?"-1":null},class:[r?"bv-no-focus-ring":"",o||r?"col-form-label":"",!o&&r?"pt-0":"",o||r?"":"d-block",e.labelSize?"col-form-label-".concat(e.labelSize):"",e.labelAlignClasses,e.labelClass]},[content])}return t()}(t,this),content=t(n?Ai:"div",{ref:"content",staticClass:"bv-no-focus-ring",attrs:{tabindex:e?"-1":null,role:e?"group":null}},[this.normalizeSlot("default")||t(),Li(t,this),Ii(t,this),Ni(t,this)]),data={staticClass:"form-group",class:[this.validated?"was-validated":null,this.stateClass],attrs:{id:this.safeId(),disabled:e?this.disabled:null,role:e?null:"group","aria-invalid":!1===this.computedState?"true":null,"aria-labelledby":e&&n?this.labelId:null,"aria-describedby":e?this.describedByIds:null}};return t(e?"fieldset":n?Go:"div",data,n&&e?[t(Go,[label,content])]:[label,content])}},Fi=Object(r.b)({components:{BFormGroup:Vi,BFormFieldset:Vi}}),Ri={model:{prop:"value",event:"update"},props:{value:{type:[String,Number],default:""},ariaInvalid:{type:[Boolean,String],default:!1},readonly:{type:Boolean,default:!1},plaintext:{type:Boolean,default:!1},autocomplete:{type:String,default:null},placeholder:{type:String,default:null},formatter:{type:Function,default:null},lazyFormatter:{type:Boolean,default:!1},trim:{type:Boolean,default:!1},number:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},debounce:{type:[Number,String],default:0}},data:function(){return{localValue:Object(xt.f)(this.value),vModelValue:this.value}},computed:{computedClass:function(){return[{"custom-range":"range"===this.type,"form-control-plaintext":this.plaintext&&"range"!==this.type&&"color"!==this.type,"form-control":!this.plaintext&&"range"!==this.type||"color"===this.type},this.sizeFormClass,this.stateClass]},computedAriaInvalid:function(){return this.ariaInvalid&&"false"!==this.ariaInvalid?!0===this.ariaInvalid?"true":this.ariaInvalid:!1===this.computedState?"true":null},computedDebounce:function(){return Math.max(Object(ot.c)(this.debounce)||0,0)},hasFormatter:function(){return Object(x.e)(this.formatter)}},watch:{value:function(t){var e=Object(xt.f)(t);e!==this.localValue&&t!==this.vModelValue&&(this.clearDebounce(),this.localValue=e,this.vModelValue=t)}},mounted:function(){this.$_inputDebounceTimer=null,this.$on("hook:beforeDestroy",this.clearDebounce);var t=this.value,e=Object(xt.f)(t);e!==this.localValue&&t!==this.vModelValue&&(this.localValue=e,this.vModelValue=t)},methods:{clearDebounce:function(){clearTimeout(this.$_inputDebounceTimer),this.$_inputDebounceTimer=null},formatValue:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=Object(xt.f)(t),!this.hasFormatter||this.lazyFormatter&&!n||(t=this.formatter(t,e)),t},modifyValue:function(t){if(this.trim&&(t=t.trim()),this.number){var e=Object(ot.b)(t);t=isNaN(e)?t:e}return t},updateValue:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.lazy;if(!r||n)if((t=this.modifyValue(t))!==this.vModelValue){this.clearDebounce();var o=function(){e.vModelValue=t,e.$emit("update",t)},l=this.computedDebounce;l>0&&!r&&!n?this.$_inputDebounceTimer=setTimeout(o,l):o()}else if(this.hasFormatter){var c=this.$refs.input;c&&t!==c.value&&(c.value=t)}},onInput:function(t){if(!t.target.composing){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?t.preventDefault():(this.localValue=n,this.updateValue(n),this.$emit("input",n))}},onChange:function(t){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?t.preventDefault():(this.localValue=n,this.updateValue(n,!0),this.$emit("change",n))},onBlur:function(t){var e=t.target.value,n=this.formatValue(e,t,!0);!1!==n&&(this.localValue=Object(xt.f)(this.modifyValue(n)),this.updateValue(n,!0)),this.$emit("blur",t)},focus:function(){this.disabled||this.$el.focus()},blur:function(){this.disabled||this.$el.blur()}}},$i={computed:{selectionStart:{cache:!1,get:function(){return this.$refs.input.selectionStart},set:function(t){this.$refs.input.selectionStart=t}},selectionEnd:{cache:!1,get:function(){return this.$refs.input.selectionEnd},set:function(t){this.$refs.input.selectionEnd=t}},selectionDirection:{cache:!1,get:function(){return this.$refs.input.selectionDirection},set:function(t){this.$refs.input.selectionDirection=t}}},methods:{select:function(){var t;(t=this.$refs.input).select.apply(t,arguments)},setSelectionRange:function(){var t;(t=this.$refs.input).setSelectionRange.apply(t,arguments)},setRangeText:function(){var t;(t=this.$refs.input).setRangeText.apply(t,arguments)}}},Ui={computed:{validity:{cache:!1,get:function(){return this.$refs.input.validity}},validationMessage:{cache:!1,get:function(){return this.$refs.input.validationMessage}},willValidate:{cache:!1,get:function(){return this.$refs.input.willValidate}}},methods:{setCustomValidity:function(){var t;return(t=this.$refs.input).setCustomValidity.apply(t,arguments)},checkValidity:function(){var t;return(t=this.$refs.input).checkValidity.apply(t,arguments)},reportValidity:function(){var t;return(t=this.$refs.input).reportValidity.apply(t,arguments)}}};function Yi(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Wi(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Yi(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Yi(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Gi=["text","password","email","number","url","tel","search","range","color","date","time","datetime","datetime-local","month","week"],Ki=l.a.extend({name:"BFormInput",mixins:[Ge,Xo,ei,ni,Ri,$i,Ui],props:{type:{type:String,default:"text",validator:function(t){return Object(j.a)(Gi,t)}},noWheel:{type:Boolean,default:!1},min:{type:[String,Number],default:null},max:{type:[String,Number],default:null},step:{type:[String,Number],default:null},list:{type:String,default:null}},computed:{localType:function(){return Object(j.a)(Gi,this.type)?this.type:"text"}},watch:{noWheel:function(t){this.setWheelStopper(t)}},mounted:function(){this.setWheelStopper(this.noWheel)},deactivated:function(){this.setWheelStopper(!1)},activated:function(){this.setWheelStopper(this.noWheel)},beforeDestroy:function(){this.setWheelStopper(!1)},methods:{setWheelStopper:function(t){var input=this.$el;pr(t,input,"focus",this.onWheelFocus),pr(t,input,"blur",this.onWheelBlur),t||fr(document,"wheel",this.stopWheel)},onWheelFocus:function(){dr(document,"wheel",this.stopWheel)},onWheelBlur:function(){fr(document,"wheel",this.stopWheel)},stopWheel:function(t){t.preventDefault(),this.$el.blur()}},render:function(t){return t("input",{ref:"input",class:this.computedClass,directives:[{name:"model",rawName:"v-model",value:this.localValue,expression:"localValue"}],attrs:{id:this.safeId(),name:this.name,form:this.form||null,type:this.localType,disabled:this.disabled,placeholder:this.placeholder,required:this.required,autocomplete:this.autocomplete||null,readonly:this.readonly||this.plaintext,min:this.min,max:this.max,step:this.step,list:"password"!==this.localType?this.list:null,"aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid},domProps:{value:this.localValue},on:Wi({},this.$listeners,{input:this.onInput,change:this.onChange,blur:this.onBlur})})}}),Zi=Object(r.b)({components:{BFormInput:Ki,BInput:Ki}}),Xi=l.a.extend({name:"BFormRadioGroup",mixins:[Ge,Xo,ii,Lo,ei,ni],provide:function(){return{bvRadioGroup:this}},props:{checked:{default:null}},data:function(){return{localChecked:this.checked}},computed:{isRadioGroup:function(){return!0}}}),Ji=Object(r.b)({components:{BFormRadio:oi,BRadio:oi,BFormRadioGroup:Xi,BRadioGroup:Xi}}),Qi={mixins:[Lo],props:{labelField:{type:String,default:"label"},optionsField:{type:String,default:"options"}},methods:{normalizeOption:function(option){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Object(object.k)(option)){var e=Object(d.a)(option,this.valueField),text=Object(d.a)(option,this.textField),n=Object(d.a)(option,this.optionsField);return Object(j.d)(n)?{label:String(Object(d.a)(option,this.labelField)||text),options:n}:{value:Object(x.k)(e)?t||text:e,text:String(Object(x.k)(text)?t:text),html:Object(d.a)(option,this.htmlField),disabled:Boolean(Object(d.a)(option,this.disabledField))}}return{value:t||option,text:String(option),disabled:!1}}}},ta={value:{required:!0},disabled:{type:Boolean,default:!1}},ea=l.a.extend({name:"BFormSelectOption",functional:!0,props:ta,render:function(t,e){var n=e.props,data=e.data,r=e.children,o=n.value,l=n.disabled;return t("option",Object(it.a)(data,{attrs:{disabled:l},domProps:{value:o}}),r)}}),na=l.a.extend({name:"BFormSelectOptionGroup",mixins:[vt,Lo],props:{label:{type:String,required:!0}},render:function(t){return t("optgroup",{attrs:{label:this.label}},[this.normalizeSlot("first"),this.formOptions.map((function(option,e){return t(ea,{props:{value:option.value,disabled:option.disabled},domProps:Kt(option.html,option.text),key:"option_".concat(e,"_opt")})})),this.normalizeSlot("default")])}}),ra=l.a.extend({name:"BFormSelect",mixins:[Ge,vt,Xo,ei,ni,ki,Qi],model:{prop:"value",event:"input"},props:{value:{},multiple:{type:Boolean,default:!1},selectSize:{type:Number,default:0},ariaInvalid:{type:[Boolean,String],default:!1}},data:function(){return{localValue:this.value}},computed:{computedSelectSize:function(){return this.plain||0!==this.selectSize?this.selectSize:null},inputClass:function(){return[this.plain?"form-control":"custom-select",this.size&&this.plain?"form-control-".concat(this.size):null,this.size&&!this.plain?"custom-select-".concat(this.size):null,this.stateClass]},computedAriaInvalid:function(){return!0===this.ariaInvalid||"true"===this.ariaInvalid||"is-invalid"===this.stateClass?"true":null}},watch:{value:function(t){this.localValue=t},localValue:function(){this.$emit("input",this.localValue)}},methods:{focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()}},render:function(t){var e=this;return t("select",{ref:"input",class:this.inputClass,directives:[{name:"model",rawName:"v-model",value:this.localValue,expression:"localValue"}],attrs:{id:this.safeId(),name:this.name,form:this.form||null,multiple:this.multiple||null,size:this.computedSelectSize,disabled:this.disabled,required:this.required,"aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid},on:{change:function(t){var n=t.target,r=Object(j.c)(n.options).filter((function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));e.localValue=n.multiple?r:r[0],e.$nextTick((function(){e.$emit("change",e.localValue)}))}}},[this.normalizeSlot("first"),this.formOptions.map((function(option,e){var n="option_".concat(e,"_opt"),r=option.options;return Object(j.d)(r)?t(na,{props:{label:option.label,options:r},key:n}):t(ea,{props:{value:option.value,disabled:option.disabled},domProps:Kt(option.html,option.text),key:n})})),this.normalizeSlot("default")])}}),oa=Object(r.b)({components:{BFormSelect:ra,BFormSelectOption:ea,BFormSelectOptionGroup:na,BSelect:ra,BSelectOption:ea,BSelectOptionGroup:na}});function ia(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function aa(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ia(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):ia(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var la=ie.UP,sa=ie.DOWN,ca=ie.HOME,ua=ie.END,da=ie.PAGEUP,fa=ie.PAGEDOWN,ha=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t=Object(ot.b)(t),isNaN(t)?e:t},pa=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t=Object(ot.c)(t),isNaN(t)?Math.abs(e):t},ba=l.a.extend({name:"BFormSpinbutton",mixins:[Ge],inheritAttrs:!1,props:{value:{type:Number,default:null},min:{type:[Number,String],default:1},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},wrap:{type:Boolean,default:!1},formatterFn:{type:Function},size:{type:String},placeholder:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},name:{type:String},form:{type:String},state:{type:Boolean,default:null},inline:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},ariaControls:{type:String,default:null},labelDecrement:{type:String,default:function(){return y("BFormSpinbutton","labelDecrement")}},labelIncrement:{type:String,default:function(){return y("BFormSpinbutton","labelIncrement")}},locale:{type:[String,Array],default:null},repeatDelay:{type:[Number,String],default:500},repeatInterval:{type:[Number,String],default:100},repeatThreshold:{type:[Number,String],default:10},repeatStepMultiplier:{type:[Number,String],default:4}},data:function(){return{localValue:ha(this.value),hasFocus:!1}},computed:{computedStep:function(){return ha(this.step,1)},computedMin:function(){return ha(this.min,1)},computedMax:function(){var t=ha(this.max,100),e=this.computedStep,n=this.computedMin;return Math.floor((t-n)/e)*e+n},computedDelay:function(){return pa(this.repeatDelay,500)||500},computedInterval:function(){return pa(this.repeatInterval,100)||100},computedThreshold:function(){return pa(this.repeatThreshold,10)||1},computedStepMultiplier:function(){return pa(this.repeatStepMultiplier,4)||1},computedPrecision:function(){var t=this.computedStep;return Math.floor(t)===t?0:(t.toString().split(".")[1]||"").length},computedMultiplier:function(){return Math.pow(10,this.computedPrecision||0)},valueAsFixed:function(){var t=this.localValue;return Object(x.f)(t)?"":t.toFixed(this.computedPrecision)},computedLocale:function(){var t=Object(j.b)(this.locale).filter(ht.a);return new Intl.NumberFormat(t).resolvedOptions().locale},computedRTL:function(){return We(this.computedLocale)},defaultFormatter:function(){var t=this.computedPrecision;return new Intl.NumberFormat(this.computedLocale,{style:"decimal",useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:t,maximumFractionDigits:t,notation:"standard"}).format}},watch:{value:function(t){t=Object(ot.b)(t),this.localValue=isNaN(t)?null:t},localValue:function(t){this.$emit("input",t)},disabled:function(t){t&&this.clearRepeat()},readonly:function(t){t&&this.clearRepeat()}},created:function(){this.$_autoDelayTimer=null,this.$_autoRepeatTimer=null,this.$_keyIsDown=!1},beforeDestroy:function(){this.clearRepeat()},deactivated:function(){this.clearRepeat()},methods:{focus:function(){if(!this.disabled)try{this.$refs.spinner.focus()}catch(t){}},blur:function(){if(!this.disabled)try{this.$refs.spinner.blur()}catch(t){}},emitChange:function(){this.$emit("change",this.localValue)},stepValue:function(t){var e=this.localValue;if(!this.disabled&&!Object(x.f)(e)){var n=this.computedStep*t,r=this.computedMin,o=this.computedMax,l=this.computedMultiplier,c=this.wrap;e=Math.round((e-r)/n)*n+r+n,e=Math.round(e*l)/l,this.localValue=e>o?c?r:o:e<r?c?o:r:e}},onFocusBlur:function(t){this.disabled?this.hasFocus=!1:this.hasFocus="focus"===t.type},stepUp:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this.localValue;Object(x.f)(e)?this.localValue=this.computedMin:this.stepValue(1*t)},stepDown:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this.localValue;Object(x.f)(e)?this.localValue=this.wrap?this.computedMax:this.computedMin:this.stepValue(-1*t)},onKeydown:function(t){var e=t.keyCode,n=t.altKey,r=t.ctrlKey,o=t.metaKey;if(!(this.disabled||this.readonly||n||r||o)&&Object(j.a)([la,sa,ca,ua,da,fa],e)){if(t.preventDefault(),this.$_keyIsDown)return;this.resetTimers(),Object(j.a)([la,sa],e)?(this.$_keyIsDown=!0,e===la?this.handleStepRepeat(t,this.stepUp):e===sa&&this.handleStepRepeat(t,this.stepDown)):e===da?this.stepUp(this.computedStepMultiplier):e===fa?this.stepDown(this.computedStepMultiplier):e===ca?this.localValue=this.computedMin:e===ua&&(this.localValue=this.computedMax)}},onKeyup:function(t){var e=t.keyCode,n=t.altKey,r=t.ctrlKey,o=t.metaKey;this.disabled||this.readonly||n||r||o||Object(j.a)([la,sa,ca,ua,da,fa],e)&&(this.resetTimers(),this.$_keyIsDown=!1,t.preventDefault(),this.emitChange())},handleStepRepeat:function(t,e){var n=this,r=t||{},o=r.type,button=r.button;if(!this.disabled&&!this.readonly){if("mousedown"===o&&button)return;this.resetTimers(),e(1);var l=this.computedThreshold,c=this.computedStepMultiplier,d=this.computedDelay,f=this.computedInterval;this.$_autoDelayTimer=setTimeout((function(){var t=0;n.$_autoRepeatTimer=setInterval((function(){e(t<l?1:c),t++}),f)}),d)}},onMouseup:function(t){var e=t||{},n=e.type,button=e.button;"mouseup"===n&&button||(t.preventDefault(),this.resetTimers(),this.setMouseup(!1),this.emitChange())},setMouseup:function(t){try{pr(t,document.body,"mouseup",this.onMouseup,!1),pr(t,document.body,"touchend",this.onMouseup,!1)}catch(t){}},resetTimers:function(){clearTimeout(this.$_autoDelayTimer),clearInterval(this.$_autoRepeatTimer)},clearRepeat:function(){this.resetTimers(),this.setMouseup(!1),this.$_keyIsDown=!1}},render:function(t){var e,n=this,r=this.safeId(),l=this.localValue,c=this.vertical,d=this.inline&&!c,f=this.disabled,h=this.readonly&&!f,v=this.required&&!h&&!f,m=this.state,y=this.size,w=!Object(x.f)(l),O=Object(x.e)(this.formatterFn)?this.formatterFn:this.defaultFormatter,k=function(e,label,o,l,d,v){var m=t(o,{props:{scale:n.hasFocus?1.5:1.25},attrs:{"aria-hidden":"true"}}),y=function(t){if(!f&&!h){t.preventDefault(),n.setMouseup(!0);try{t.currentTarget.focus()}catch(t){}n.handleStepRepeat(t,e)}};return t("button",{key:l||null,ref:l,staticClass:"btn btn-sm border-0 rounded-0",class:{"py-0":!c},attrs:{tabindex:"-1",type:"button",disabled:f||h||v,"aria-disabled":f||h||v?"true":null,"aria-controls":r,"aria-label":label||null,"aria-keyshortcuts":d||null},on:{mousedown:y,touchstart:y}},[t("div",{},[m])])},S=k(this.stepUp,this.labelIncrement,Ke.oe,"inc","ArrowUp"),j=k(this.stepDown,this.labelDecrement,Ke.rc,"dec","ArrowDown"),_=t();this.name&&!f&&(_=t("input",{key:"hidden",attrs:{type:"hidden",name:this.name,form:this.form||null,value:this.valueAsFixed}}));var T=t("output",{ref:"spinner",key:"output",staticClass:"flex-grow-1",class:{"w-100":!c&&!d,"d-flex":c,"align-self-center":!c,"align-items-center":c,"py-1":c,"px-1":!c,"mx-1":c,"border-top":c,"border-bottom":c,"border-left":!c,"border-right":!c},attrs:aa({dir:this.computedRTL?"rtl":"ltr"},this.$attrs,{id:r,role:"spinbutton",tabindex:f?null:"0","aria-live":"off","aria-label":this.ariaLabel||null,"aria-controls":this.ariaControls||null,"aria-invalid":!1===m||!w&&v?"true":null,"aria-required":v?"true":null,"aria-valuemin":Object(xt.f)(this.computedMin),"aria-valuemax":Object(xt.f)(this.computedMax),"aria-valuenow":w?l:null,"aria-valuetext":w?O(l):null})},[t("bdi",{staticClass:"w-100"},w?O(l):this.placeholder||"")]);return t("div",{staticClass:"b-form-spinbutton form-control p-0",class:(e={disabled:f,readonly:h,focus:this.hasFocus},Object(o.a)(e,"form-control-".concat(y),!!y),Object(o.a)(e,"d-inline-flex",d||c),Object(o.a)(e,"d-flex",!d&&!c),Object(o.a)(e,"align-items-stretch",!c),Object(o.a)(e,"flex-column",c),Object(o.a)(e,"is-valid",!0===m),Object(o.a)(e,"is-invalid",!1===m),e),attrs:{role:"group",lang:this.computedLocale,tabindex:f?null:"-1",title:this.ariaLabel},on:{keydown:this.onKeydown,keyup:this.onKeyup,"!focus":this.onFocusBlur,"!blur":this.onFocusBlur}},c?[S,_,T,j]:[j,_,T,S])}}),va=Object(r.b)({components:{BFormSpinbutton:ba,BSpinbutton:ba}}),ma=(n(95),l.a.extend({name:"BFormTag",mixins:[Ge,vt],props:{variant:{type:String,default:function(){return y("BFormTag","variant")}},disabled:{type:Boolean,default:!1},title:{type:String,default:null},pill:{type:Boolean,default:!1},removeLabel:{type:String,default:function(){return y("BFormTag","removeLabel")}},tag:{type:String,default:"span"}},methods:{onDelete:function(t){var e=t.type,n=t.keyCode;this.disabled||"click"!==e&&("keydown"!==e||n!==ie.DELETE)||this.$emit("remove")}},render:function(t){var e=this.safeId(),n=this.safeId("_taglabel_"),r=t();this.disabled||(r=t(gt,{staticClass:"b-form-tag-remove ml-1",props:{ariaLabel:this.removeLabel},attrs:{"aria-controls":e,"aria-describedby":n,"aria-keyshortcuts":"Delete"},on:{click:this.onDelete,keydown:this.onDelete}}));var o=t("span",{staticClass:"b-form-tag-content flex-grow-1 text-truncate",attrs:{id:n}},this.normalizeSlot("default")||this.title||[t()]);return t(Ut,{staticClass:"b-form-tag d-inline-flex align-items-baseline mw-100",class:{disabled:this.disabled},attrs:{id:e,title:this.title||null,"aria-labelledby":n},props:{tag:this.tag,variant:this.variant,pill:this.pill}},[o,r])}}));function ga(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function ya(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ga(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):ga(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var wa=["text","email","tel","url","number"],Oa=/[\s\uFEFF\xA0]+/g,ka=ie.ENTER,Sa=ie.BACKSPACE,ja=ie.DELETE,_a=function(t){return Object(j.b)(t).map((function(t){return Object(xt.g)(Object(xt.f)(t))})).filter((function(t,e,n){return t.length>0&&n.indexOf(t)===e}))},xa=function(t){return Object(x.j)(t)?t:Object(x.c)(t)&&t.target.value||""},Ta=l.a.extend({name:"BFormTags",mixins:[Ge,vt],model:{prop:"value",event:"input"},props:{inputId:{type:String,default:null},placeholder:{type:String,default:function(){return y("BFormTags","placeholder")}},disabled:{type:Boolean,default:!1},name:{type:String,default:null},form:{type:String,default:null},autofocus:{type:Boolean,default:!1},state:{type:Boolean,default:null},size:{type:String,default:null},inputType:{type:String,default:"text",validator:function(t){return Object(j.a)(wa,t)}},inputClass:{type:[String,Array,Object],default:null},inputAttrs:{type:Object,default:function(){return{}}},addButtonText:{type:String,default:function(){return y("BFormTags","addButtonText")}},addButtonVariant:{type:String,default:function(){return y("BFormTags","addButtonVariant")}},tagVariant:{type:String,default:function(){return y("BFormTags","tagVariant")}},tagClass:{type:[String,Array,Object],default:null},tagPills:{type:Boolean,default:!1},tagRemoveLabel:{type:String,default:function(){return y("BFormTags","tagRemoveLabel")}},tagRemovedLabel:{type:String,default:function(){return y("BFormTags","tagRemovedLabel")}},tagValidator:{type:Function,default:null},duplicateTagText:{type:String,default:function(){return y("BFormTags","duplicateTagText")}},invalidTagText:{type:String,default:function(){return y("BFormTags","invalidTagText")}},separator:{type:[String,Array],default:null},removeOnDelete:{type:Boolean,default:!1},addOnChange:{type:Boolean,default:!1},noAddOnEnter:{type:Boolean,default:!1},noOuterFocus:{type:Boolean,default:!1},value:{type:Array,default:function(){return[]}}},data:function(){return{hasFocus:!1,newTag:"",tags:[],removedTags:[],tagsState:{all:[],valid:[],invalid:[],duplicate:[]}}},computed:{computedInputId:function(){return this.inputId||this.safeId("__input__")},computedInputType:function(){return Object(j.a)(wa,this.inputType)?this.inputType:"text"},computedInputAttrs:function(){return ya({},this.inputAttrs,{id:this.computedInputId,value:this.newTag,disabled:this.disabled||null,form:this.form||null})},computedInputHandlers:function(){return{input:this.onInputInput,change:this.onInputChange,keydown:this.onInputKeydown}},computedSeparator:function(){return Object(j.b)(this.separator).filter(x.j).filter(ht.a).join("")},computedSeparatorRegExp:function(){var t,e=this.computedSeparator;return e?new RegExp("[".concat((t=e,Object(xt.a)(t).replace(Oa,"\\s")),"]+")):null},computedJoiner:function(){var t=this.computedSeparator.charAt(0);return" "!==t?"".concat(t," "):t},disableAddButton:function(){var t=this,e=Object(xt.g)(this.newTag);return""===e||!this.splitTags(e).some((function(e){return!Object(j.a)(t.tags,e)&&t.validateTag(e)}))},duplicateTags:function(){return this.tagsState.duplicate},hasDuplicateTags:function(){return this.duplicateTags.length>0},invalidTags:function(){return this.tagsState.invalid},hasInvalidTags:function(){return this.invalidTags.length>0}},watch:{value:function(t){this.tags=_a(t)},tags:function(t,e){Ce(t,this.value)||this.$emit("input",t),Ce(t,e)||(t=Object(j.b)(t).filter(ht.a),e=Object(j.b)(e).filter(ht.a),this.removedTags=e.filter((function(e){return!Object(j.a)(t,e)})))},tagsState:function(t,e){Ce(t,e)||this.$emit("tag-state",t.valid,t.invalid,t.duplicate)}},created:function(){this.tags=_a(this.value)},mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{addTag:function(t){if(t=Object(x.j)(t)?t:this.newTag,!this.disabled&&""!==Object(xt.g)(t)){var e=this.parseTags(t);if(e.valid.length>0||0===e.all.length)if(V(this.getInput(),"select"))this.newTag="";else{var n=[].concat(Object(_t.a)(e.invalid),Object(_t.a)(e.duplicate));this.newTag=e.all.filter((function(t){return Object(j.a)(n,t)})).join(this.computedJoiner).concat(n.length>0?this.computedJoiner.charAt(0):"")}e.valid.length>0&&(this.tags=Object(j.b)(this.tags,e.valid)),this.tagsState=e,this.focus()}},removeTag:function(t){var e=this;this.disabled||(this.tags=this.tags.filter((function(e){return e!==t})),this.$nextTick((function(){e.focus()})))},onInputInput:function(t){if(!(this.disabled||Object(x.c)(t)&&t.target.composing)){var e=xa(t),n=this.computedSeparatorRegExp;this.newTag!==e&&(this.newTag=e),e=Object(xt.h)(e),n&&n.test(e.slice(-1))?this.addTag():this.tagsState=""===e?{all:[],valid:[],invalid:[],duplicate:[]}:this.parseTags(e)}},onInputChange:function(t){if(!this.disabled&&this.addOnChange){var e=xa(t);this.newTag!==e&&(this.newTag=e),this.addTag()}},onInputKeydown:function(t){if(!this.disabled&&Object(x.c)(t)){var e=t.keyCode,n=t.target.value||"";this.noAddOnEnter||e!==ka?!this.removeOnDelete||e!==Sa&&e!==ja||""!==n||(t.preventDefault(),this.tags=this.tags.slice(0,-1)):(t.preventDefault(),this.addTag())}},onClick:function(t){var e=this;!this.disabled&&Object(x.c)(t)&&t.target===t.currentTarget&&this.$nextTick((function(){e.focus()}))},onFocusin:function(){this.hasFocus=!0},onFocusout:function(){this.hasFocus=!1},handleAutofocus:function(){var t=this;this.$nextTick((function(){E((function(){t.autofocus&&!t.disabled&&t.focus()}))}))},focus:function(){if(!this.disabled)try{this.getInput().focus()}catch(t){}},blur:function(){try{this.getInput().blur()}catch(t){}},splitTags:function(t){t=Object(xt.f)(t);var e=this.computedSeparatorRegExp;return(e?t.split(e):[t]).map(xt.g).filter(ht.a)},parseTags:function(t){var e=this,n=this.splitTags(t),r={all:n,valid:[],invalid:[],duplicate:[]};return n.forEach((function(t){Object(j.a)(e.tags,t)||Object(j.a)(r.valid,t)?Object(j.a)(r.duplicate,t)||r.duplicate.push(t):e.validateTag(t)?r.valid.push(t):Object(j.a)(r.invalid,t)||r.invalid.push(t)})),r},validateTag:function(t){var e=this.tagValidator;return!Object(x.e)(e)||e(t)},getInput:function(){return H("#".concat(this.computedInputId),this.$el)},defaultRender:function(t){var e=t.tags,n=t.addTag,r=t.removeTag,o=t.inputType,l=t.inputAttrs,c=t.inputHandlers,d=t.inputClass,f=t.tagClass,h=t.tagVariant,v=t.tagPills,m=t.tagRemoveLabel,y=t.invalidTagText,w=t.duplicateTagText,O=t.isInvalid,k=t.isDuplicate,S=t.disabled,_=t.placeholder,x=t.addButtonText,T=t.addButtonVariant,B=t.disableAddButton,C=this.$createElement,P=e.map((function(t){return t=Object(xt.f)(t),C(ma,{key:"li-tag__".concat(t),staticClass:"mt-1 mr-1",class:f,props:{tag:"li",title:t,disabled:S,variant:h,pill:v,removeLabel:m},on:{remove:function(){return r(t)}}},t)})),M=y&&O?this.safeId("__invalid_feedback__"):null,E=w&&k?this.safeId("__duplicate_feedback__"):null,A=[l["aria-describedby"],M,E].filter(ht.a).join(" "),z=C("input",{ref:"input",directives:[{name:"model",value:l.value}],staticClass:"b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",class:d,style:{outline:0,minWidth:"5rem"},attrs:ya({},l,{"aria-describedby":A||null,type:o,placeholder:_||null}),domProps:{value:l.value},on:c}),D=C(we,{ref:"button",staticClass:"b-form-tags-button py-0",class:{invisible:B},style:{fontSize:"90%"},props:{variant:T,disabled:B},on:{click:function(){return n()}}},[this.normalizeSlot("add-button-text")||x]),L=this.safeId("__TAG__LIST__"),I=C("li",{key:"__li-input__",staticClass:"flex-grow-1 mt-1",attrs:{role:"none","aria-live":"off","aria-controls":L}},[C("div",{staticClass:"d-flex",attrs:{role:"group"}},[z,D])]),N=C("ul",{key:"_tags_list_",staticClass:"list-unstyled mt-n1 mb-0 d-flex flex-wrap align-items-center",attrs:{id:L}},Object(j.b)(P,I)),H=C();if(y||w){var V=this.computedJoiner,F=C();M&&(F=C($o,{key:"_tags_invalid_feedback_",props:{id:M,forceShow:!0}},[this.invalidTagText,": ",this.invalidTags.join(V)]));var R=C();E&&(R=C(Fo,{key:"_tags_duplicate_feedback_",props:{id:E}},[this.duplicateTagText,": ",this.duplicateTags.join(V)])),H=C("div",{key:"_tags_feedback_",attrs:{"aria-live":"polite","aria-atomic":"true"}},[F,R])}return[N,H]}},render:function(t){var e=this,n={tags:this.tags.slice(),removeTag:this.removeTag,addTag:this.addTag,inputType:this.computedInputType,inputAttrs:this.computedInputAttrs,inputHandlers:this.computedInputHandlers,inputId:this.computedInputId,invalidTags:this.invalidTags.slice(),isInvalid:this.hasInvalidTags,duplicateTags:this.duplicateTags.slice(),isDuplicate:this.hasDuplicateTags,disableAddButton:this.disableAddButton,state:this.state,separator:this.separator,disabled:this.disabled,size:this.size,placeholder:this.placeholder,inputClass:this.inputClass,tagRemoveLabel:this.tagRemoveLabel,tagVariant:this.tagVariant,tagPills:this.tagPills,tagClass:this.tagClass,addButtonText:this.addButtonText,addButtonVariant:this.addButtonVariant,invalidTagText:this.invalidTagText,duplicateTagText:this.duplicateTagText},r=this.normalizeSlot("default",n)||this.defaultRender(n),l=t("output",{staticClass:"sr-only",attrs:{id:this.safeId("_selected-tags_"),role:"status",for:this.computedInputId,"aria-live":this.hasFocus?"polite":"off","aria-atomic":"true","aria-relevant":"additions text"}},this.tags.join(", ")),c=t("div",{staticClass:"sr-only",attrs:{id:this.safeId("_removed-tags_"),role:"status","aria-live":this.hasFocus?"assertive":"off","aria-atomic":"true"}},this.removedTags.length>0?"(".concat(this.tagRemovedLabel,") ").concat(this.removedTags.join(", ")):""),d=t();return this.name&&!this.disabled&&(d=this.tags.map((function(n){return t("input",{key:n,attrs:{type:"hidden",value:n,name:e.name,form:e.form||null}})}))),t("div",{staticClass:"b-form-tags form-control h-auto",class:Object(o.a)({focus:this.hasFocus&&!this.noOuterFocus&&!this.disabled,disabled:this.disabled,"is-valid":!0===this.state,"is-invalid":!1===this.state},"form-control-".concat(this.size),this.size),attrs:{id:this.safeId(),role:"group",tabindex:this.disabled||this.noOuterFocus?null:"-1","aria-describedby":this.safeId("_selected_")},on:{focusin:this.onFocusin,focusout:this.onFocusout,click:this.onClick}},Object(j.b)(l,c,r,d))}}),Ba=Object(r.b)({components:{BFormTags:Ta,BTags:Ta,BFormTag:ma,BTag:ma}});function Ca(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Pa(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Ca(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Ca(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Ma=l.a.extend({name:"BFormTextarea",directives:{"b-visible":Fn},mixins:[Ge,xr,Xo,ei,ni,Ri,$i,Ui],props:{rows:{type:[Number,String],default:2},maxRows:{type:[Number,String],default:null},wrap:{type:String,default:"soft"},noResize:{type:Boolean,default:!1},noAutoShrink:{type:Boolean,default:!1}},data:function(){return{heightInPx:null}},computed:{computedStyle:function(){var t={resize:!this.computedRows||this.noResize?"none":null};return this.computedRows||(t.height=this.heightInPx,t.overflowY="scroll"),t},computedMinRows:function(){return Math.max(parseInt(this.rows,10)||2,2)},computedMaxRows:function(){return Math.max(this.computedMinRows,parseInt(this.maxRows,10)||0)},computedRows:function(){return this.computedMinRows===this.computedMaxRows?this.computedMinRows:null}},watch:{localValue:function(){this.setHeight()}},mounted:function(){this.setHeight()},methods:{visibleCallback:function(t){t&&this.$nextTick(this.setHeight)},setHeight:function(){var t=this;this.$nextTick((function(){E((function(){t.heightInPx=t.computeHeight()}))}))},computeHeight:function(){if(this.$isServer||!Object(x.f)(this.computedRows))return null;var t=this.$el;if(!D(t))return null;var e=Q(t),n=parseFloat(e.lineHeight),r=(parseFloat(e.borderTopWidth)||0)+(parseFloat(e.borderBottomWidth)||0),o=(parseFloat(e.paddingTop)||0)+(parseFloat(e.paddingBottom)||0),l=r+o,c=n*this.computedMinRows+l,d=t.style.height||e.height;t.style.height="auto";var f=t.scrollHeight;t.style.height=d;var h=Math.max((f-o)/n,2),v=Math.min(Math.max(h,this.computedMinRows),this.computedMaxRows),m=Math.max(Math.ceil(v*n+l),c);return this.noAutoShrink&&(parseFloat(d)||0)>m?d:"".concat(m,"px")}},render:function(t){return t("textarea",{ref:"input",class:this.computedClass,style:this.computedStyle,directives:[{name:"model",value:this.localValue},{name:"b-visible",value:this.visibleCallback,modifiers:{640:!0}}],attrs:{id:this.safeId(),name:this.name,form:this.form||null,disabled:this.disabled,placeholder:this.placeholder,required:this.required,autocomplete:this.autocomplete||null,readonly:this.readonly||this.plaintext,rows:this.computedRows,wrap:this.wrap||null,"aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid},domProps:{value:this.localValue},on:Pa({},this.$listeners,{input:this.onInput,change:this.onChange,blur:this.onBlur})})}}),qa=Object(r.b)({components:{BFormTextarea:Ma,BTextarea:Ma}});function Ea(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Aa(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Ea(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Ea(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var za=ie.LEFT,Da=ie.RIGHT,La=/^([0-1]?[0-9]|2[0-3]):[0-5]?[0-9](:[0-5]?[0-9])?$/,Ia=function(t){return y("BTime",t)||y("BFormSpinbutton",t)},Na=function(t){return"00".concat(t||"").slice(-2)},Ha=function(t){t=Object(xt.f)(t);var e=null,n=null,r=null;if(La.test(t)){var o=t.split(":").map(ot.c).map((function(t){return isNaN(t)?null:t})),l=Object(Pe.a)(o,3);e=l[0],n=l[1],r=l[2]}return{hours:Object(x.l)(e)?null:e,minutes:Object(x.l)(n)?null:n,seconds:Object(x.l)(r)?null:r,ampm:Object(x.l)(e)||e<12?0:1}},Va=l.a.extend({name:"BTime",mixins:[Ge,vt],model:{prop:"value",event:"input"},props:{value:{type:String,default:""},showSeconds:{type:Boolean,default:!1},hour12:{type:Boolean,default:null},locale:{type:[String,Array],default:null},ariaLabelledby:{type:String,default:null},secondsStep:{type:[Number,String],default:1},minutesStep:{type:[Number,String],default:1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},labelNoTimeSelected:{type:String,default:function(){return y("BTime","labelNoTimeSelected")}},labelSelected:{type:String,default:function(){return y("BTime","labelSelected")}},labelHours:{type:String,default:function(){return y("BTime","labelHours")}},labelMinutes:{type:String,default:function(){return y("BTime","labelMinutes")}},labelSeconds:{type:String,default:function(){return y("BTime","labelSeconds")}},labelAmpm:{type:String,default:function(){return y("BTime","labelAmpm")}},labelAm:{type:String,default:function(){return y("BTime","labelAm")}},labelPm:{type:String,default:function(){return y("BTime","labelPm")}},labelIncrement:{type:String,default:function(){return Ia("labelIncrement")}},labelDecrement:{type:String,default:function(){return Ia("labelDecrement")}},hidden:{type:Boolean,default:!1}},data:function(){var t=Ha(this.value||"");return{modelHours:t.hours,modelMinutes:t.minutes,modelSeconds:t.seconds,modelAmpm:t.ampm,isLive:!1}},computed:{computedHMS:function(){return function(t){var e=t.hours,n=t.minutes,r=t.seconds,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Object(x.f)(e)||Object(x.f)(n)||o&&Object(x.f)(r))return"";var l=[e,n,o?r:0];return l.map(Na).join(":")}({hours:this.modelHours,minutes:this.modelMinutes,seconds:this.modelSeconds},this.showSeconds)},resolvedOptions:function(){var t=Object(j.b)(this.locale).filter(ht.a),e={hour:"numeric",minute:"numeric",second:"numeric"};Object(x.l)(this.hour12)||(e.hour12=!!this.hour12);var n=new Intl.DateTimeFormat(t,e).resolvedOptions(),r=n.hour12||!1,o=n.hourCycle||(r?"h12":"h23");return{locale:n.locale,hour12:r,hourCycle:o}},computedLocale:function(){return this.resolvedOptions.locale},computedLang:function(){return(this.computedLocale||"").replace(/-u-.*$/,"")},computedRTL:function(){return We(this.computedLang)},computedHourCycle:function(){return this.resolvedOptions.hourCycle},is12Hour:function(){return!!this.resolvedOptions.hour12},context:function(){return{locale:this.computedLocale,isRTL:this.computedRTL,hourCycle:this.computedHourCycle,hour12:this.is12Hour,hours:this.modelHours,minutes:this.modelMinutes,seconds:this.showSeconds?this.modelSeconds:0,value:this.computedHMS,formatted:this.formattedTimeString}},valueId:function(){return this.safeId()||null},computedAriaLabelledby:function(){return[this.ariaLabelledby,this.valueId].filter(ht.a).join(" ")||null},timeFormatter:function(){var t={hour12:this.is12Hour,hourCycle:this.computedHourCycle,hour:"numeric",minute:"numeric",timeZone:"UTC"};return this.showSeconds&&(t.second="numeric"),De(this.computedLocale,t)},numberFormatter:function(){return new Intl.NumberFormat(this.computedLocale,{style:"decimal",minimumIntegerDigits:2,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"}).format},formattedTimeString:function(){var t=this.modelHours,e=this.modelMinutes,n=this.showSeconds&&this.modelSeconds||0;return this.computedHMS?this.timeFormatter(Ee(Date.UTC(0,0,1,t,e,n))):this.labelNoTimeSelected||" "}},watch:{value:function(t,e){if(t!==e&&!Ce(Ha(t),Ha(this.computedHMS))){var n=Ha(t),r=n.hours,o=n.minutes,l=n.seconds,c=n.ampm;this.modelHours=r,this.modelMinutes=o,this.modelSeconds=l,this.modelAmpm=c}},computedHMS:function(t,e){t!==e&&this.$emit("input",t)},context:function(t,e){Ce(t,e)||this.$emit("context",t)},modelAmpm:function(t,e){var n=this;if(t!==e){var r=Object(x.f)(this.modelHours)?0:this.modelHours;this.$nextTick((function(){0===t&&r>11?n.modelHours=r-12:1===t&&r<12&&(n.modelHours=r+12)}))}},modelHours:function(t,e){t!==e&&(this.modelAmpm=t>11?1:0)}},created:function(){var t=this;this.$nextTick((function(){t.$emit("context",t.context)}))},mounted:function(){this.setLive(!0)},activated:function(){this.setLive(!0)},deactivated:function(){this.setLive(!1)},beforeDestroy:function(){this.setLive(!1)},methods:{focus:function(){if(!this.disabled)try{this.$refs.spinners[0].focus()}catch(t){}},blur:function(){if(!this.disabled)try{R(this.$el,document.activeElement)&&document.activeElement.blur()}catch(t){}},formatHours:function(t){var e=this.computedHourCycle;return t=0===(t=this.is12Hour&&t>12?t-12:t)&&"h12"===e?12:0===t&&"h24"===e?24:12===t&&"h11"===e?0:t,this.numberFormatter(t)},formatMinutes:function(t){return this.numberFormatter(t)},formatSeconds:function(t){return this.numberFormatter(t)},formatAmpm:function(t){return 0===t?this.labelAm:1===t?this.labelPm:""},setHours:function(t){this.modelHours=t},setMinutes:function(t){this.modelMinutes=t},setSeconds:function(t){this.modelSeconds=t},setAmpm:function(t){this.modelAmpm=t},onSpinLeftRight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.type,n=t.keyCode;if(!this.disabled&&"keydown"===e&&(n===za||n===Da)){t.preventDefault(),t.stopPropagation();var r=this.$refs.spinners||[],o=r.map((function(t){return!!t.hasFocus})).indexOf(!0);o=(o+=n===za?-1:1)>=r.length?0:o<0?r.length-1:o;try{r[o].focus()}catch(t){}}},setLive:function(t){var e=this;t?this.$nextTick((function(){E((function(){e.isLive=!0}))})):this.isLive=!1}},render:function(t){var e=this;if(this.hidden)return t();var n=this.valueId,r=this.computedAriaLabelledby,o=[],l=function(r,l,c){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=e.safeId("_spinbutton_".concat(l,"_"))||null;return o.push(f),t(ba,{key:l,ref:"spinners",refInFor:!0,class:c,props:Aa({id:f,placeholder:"--",vertical:!0,required:!0,disabled:e.disabled,readonly:e.readonly,locale:e.computedLocale,labelIncrement:e.labelIncrement,labelDecrement:e.labelDecrement,wrap:!0,ariaControls:n,min:0},d),on:{change:r}})},c=function(){return t("div",{staticClass:"d-flex flex-column",class:{"text-muted":e.disabled||e.readonly},attrs:{"aria-hidden":"true"}},[t(Ke.Wb,{props:{shiftV:4,scale:.5}}),t(Ke.Wb,{props:{shiftV:-4,scale:.5}})])},d=[];d.push(l(this.setHours,"hours","",{value:this.modelHours,max:23,step:1,formatterFn:this.formatHours,ariaLabel:this.labelHours})),d.push(c()),d.push(l(this.setMinutes,"minutes","",{value:this.modelMinutes,max:59,step:this.minutesStep||1,formatterFn:this.formatMinutes,ariaLabel:this.labelMinutes})),this.showSeconds&&(d.push(c()),d.push(l(this.setSeconds,"seconds","",{value:this.modelSeconds,max:59,step:this.secondsStep||1,formatterFn:this.formatSeconds,ariaLabel:this.labelSeconds}))),this.is12Hour&&d.push(l(this.setAmpm,"ampm","ml-2",{value:this.modelAmpm,max:1,formatterFn:this.formatAmpm,ariaLabel:this.labelAmpm,required:!1})),d=t("div",{staticClass:"d-flex align-items-center justify-content-center mx-auto",attrs:{role:"group",tabindex:this.disabled||this.readonly?null:"-1","aria-labelledby":r},on:{keydown:this.onSpinLeftRight,click:function(t){t.target===t.currentTarget&&e.focus()}}},d);var f=t("output",{staticClass:"border rounded d-block p-1 small text-center",class:{disabled:this.disabled||this.readonly},attrs:{id:n,role:"status",for:o.filter(ht.a).join(" ")||null,tabindex:this.disabled?null:"-1","aria-live":this.isLive?"polite":"off","aria-atomic":"true"},on:{click:this.focus,focus:this.focus}},[t("bdi",this.formattedTimeString),this.computedHMS?t("span",{staticClass:"sr-only"}," (".concat(this.labelSelected,") ")):""]),h=t("header",{class:{"sr-only":this.hideHeader,"mb-2":!this.hideHeader}},[f]),v=this.normalizeSlot("default");return v=v?t("footer",{staticClass:"mt-2"},v):t(),t("div",{staticClass:"b-time d-inline-flex flex-column text-center",attrs:{role:"group",lang:this.computedLang||null,"aria-labelledby":r||null,"aria-disabled":this.disabled?"true":null,"aria-readonly":this.readonly&&!this.disabled?"true":null}},[h,d,v])}});function Fa(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Ra(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Fa(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Fa(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var $a=function(t){return y("BFormTimepicker",t)||y("BTime",t)||y("BFormSpinbutton",t)},Ua={props:Ra({value:{type:String,default:""},resetValue:{type:String,default:""},placeholder:{type:String,default:null},size:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},name:{type:String,default:null},form:{type:String,default:null},state:{type:Boolean,default:null},hour12:{type:Boolean,default:null},locale:{type:[String,Array],default:null},showSeconds:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},secondsStep:{type:[Number,String],default:1},minutesStep:{type:[Number,String],default:1},buttonOnly:{type:Boolean,default:!1},buttonVariant:{type:String,default:"secondary"},nowButton:{type:Boolean,default:!1},labelNowButton:{type:String,default:function(){return y("BFormTimepicker","labelNowButton")}},nowButtonVariant:{type:String,default:"outline-primary"},resetButton:{type:Boolean,default:!1},labelResetButton:{type:String,default:function(){return y("BFormTimepicker","labelResetButton")}},resetButtonVariant:{type:String,default:"outline-danger"},noCloseButton:{type:Boolean,default:!1},labelCloseButton:{type:String,default:function(){return y("BFormTimepicker","labelCloseButton")}},closeButtonVariant:{type:String,default:"outline-secondary"},labelSelected:{type:String,default:function(){return $a("labelSelected")}},labelNoTimeSelected:{type:String,default:function(){return $a("labelNoTimeSelected")}},labelHours:{type:String,default:function(){return $a("labelHours")}},labelMinutes:{type:String,default:function(){return $a("labelMinutes")}},labelSeconds:{type:String,default:function(){return $a("labelSeconds")}},labelAmpm:{type:String,default:function(){return $a("labelAmpm")}},labelAm:{type:String,default:function(){return $a("labelAm")}},labelPm:{type:String,default:function(){return $a("labelPm")}},labelIncrement:{type:String,default:function(){return $a("labelIncrement")}},labelDecrement:{type:String,default:function(){return $a("labelDecrement")}},menuClass:{type:[String,Array,Object],default:null}},pi)},Ya=l.a.extend({name:"BFormTimepicker",mixins:[Ge,Ua],model:{prop:"value",event:"input"},data:function(){return{localHMS:this.value||"",localLocale:null,isRTL:!1,formattedValue:"",isVisible:!1}},computed:{computedLang:function(){return(this.localLocale||"").replace(/-u-.*$/i,"")||null},timeProps:function(){return{hidden:!this.isVisible,value:this.localHMS,readonly:this.readonly,disabled:this.disabled,locale:this.locale,hour12:this.hour12,hideHeader:this.hideHeader,showSeconds:this.showSeconds,secondsStep:this.secondsStep,minutesStep:this.minutesStep,labelNoTimeSelected:this.labelNoTimeSelected,labelSelected:this.labelSelected,labelHours:this.labelHours,labelMinutes:this.labelMinutes,labelSeconds:this.labelSeconds,labelAmpm:this.labelAmpm,labelAm:this.labelAm,labelPm:this.labelPm,labelIncrement:this.labelIncrement,labelDecrement:this.labelDecrement}}},watch:{value:function(t){this.localHMS=t||""},localHMS:function(t){this.isVisible&&this.$emit("input",t||"")}},methods:{focus:function(){if(!this.disabled)try{this.$refs.control.focus()}catch(t){}},blur:function(){if(!this.disabled)try{this.$refs.control.blur()}catch(t){}},setAndClose:function(t){var e=this;this.localHMS=t,this.$nextTick((function(){e.$refs.control.hide(!0)}))},onInput:function(t){this.localHMS!==t&&(this.localHMS=t)},onContext:function(t){var e=t.isRTL,n=t.locale,r=t.value,o=t.formatted;this.isRTL=e,this.localLocale=n,this.formattedValue=o,this.localHMS=r||"",this.$emit("context",t)},onNowButton:function(){var t=new Date,e=[t.getHours(),t.getMinutes(),this.showSeconds?t.getSeconds():0].map((function(t){return"00".concat(t||"").slice(-2)})).join(":");this.setAndClose(e)},onResetButton:function(){this.setAndClose(this.resetValue)},onCloseButton:function(){this.$refs.control.hide(!0)},onShow:function(){this.isVisible=!0},onShown:function(){var t=this;this.$nextTick((function(){try{t.$refs.time.focus()}catch(t){}}))},onHidden:function(){this.isVisible=!1},defaultButtonFn:function(t){var e=t.isHovered,n=t.hasFocus;return this.$createElement(e||n?Ke.ac:Ke.Zb,{props:{scale:1.25},attrs:{"aria-hidden":"true"}})}},render:function(t){var e=this.localHMS,n=this.disabled,r=this.readonly,o=Object(x.l)(this.placeholder)?this.labelNoTimeSelected:this.placeholder,l=[];if(this.nowButton){var label=this.labelNowButton;l.push(t(we,{staticClass:"mx-1",props:{size:"sm",disabled:n||r,variant:this.nowButtonVariant},attrs:{"aria-label":label||null},on:{click:this.onNowButton}},label))}if(this.resetButton){var c=this.labelResetButton;l.push(t(we,{staticClass:"mx-1",props:{size:"sm",disabled:n||r,variant:this.resetButtonVariant},attrs:{"aria-label":c||null},on:{click:this.onResetButton}},c))}if(!this.noCloseButton){var d=this.labelCloseButton;l.push(t(we,{staticClass:"mx-1",props:{size:"sm",disabled:n,variant:this.closeButtonVariant},attrs:{"aria-label":d||null},on:{click:this.onCloseButton}},d))}l.length>0&&(l=[t("div",{staticClass:"b-form-date-controls d-flex flex-wrap mx-n1",class:{"justify-content-between":l.length>1,"justify-content-end":l.length<2}},l)]);var f=t(Va,{ref:"time",staticClass:"b-form-time-control",props:this.timeProps,on:{input:this.onInput,context:this.onContext}},l);return t(bi,{ref:"control",staticClass:"b-form-timepicker",props:Ra({},this.$props,{id:this.safeId(),rtl:this.isRTL,lang:this.computedLang,value:e||"",formattedValue:e?this.formattedValue:"",placeholder:o||""}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:{"button-content":this.$scopedSlots["button-content"]||this.defaultButtonFn}},[f])}}),Wa=Object(r.b)({components:{BFormTimepicker:Ya,BTimepicker:Ya}}),Ga=Object(r.b)({components:{BImg:Un,BImgLazy:Wn}}),Ka={tag:{type:String,default:"div"}},Za=l.a.extend({name:"BInputGroupText",functional:!0,props:Ka,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(n.tag,Object(it.a)(data,{staticClass:"input-group-text"}),r)}});function Xa(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var Ja={id:{type:String,default:null},tag:{type:String,default:"div"},isText:{type:Boolean,default:!1}},Qa=l.a.extend({name:"BInputGroupAddon",functional:!0,props:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Xa(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Xa(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Ja,{append:{type:Boolean,default:!1}}),render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(n.tag,Object(it.a)(data,{class:{"input-group-append":n.append,"input-group-prepend":!n.append},attrs:{id:n.id}}),n.isText?[t(Za,r)]:r)}});function tl(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function el(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?tl(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):tl(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var nl=l.a.extend({name:"BInputGroupPrepend",functional:!0,props:Ja,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(Qa,Object(it.a)(data,{props:el({},n,{append:!1})}),r)}});function rl(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function il(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?rl(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):rl(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var al=l.a.extend({name:"BInputGroupAppend",functional:!0,props:Ja,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(Qa,Object(it.a)(data,{props:il({},n,{append:!0})}),r)}}),ll={id:{type:String},size:{type:String,default:function(){return y("BInputGroup","size")}},prepend:{type:String},prependHtml:{type:String},append:{type:String},appendHtml:{type:String},tag:{type:String,default:"div"}},sl=l.a.extend({name:"BInputGroup",functional:!0,props:ll,render:function(t,e){var n=e.props,data=e.data,r=e.slots,l=e.scopedSlots,c=r(),d=l||{},f=[];return n.prepend||n.prependHtml||pt("prepend",d,c)?f.push(t(nl,[n.prepend||n.prependHtml?t(Za,{domProps:Kt(n.prependHtml,n.prepend)}):t(),bt("prepend",{},d,c)||t()])):f.push(t()),pt("default",d,c)?f.push.apply(f,Object(_t.a)(bt("default",{},d,c))):f.push(t()),n.append||n.appendHtml||pt("append",d,c)?f.push(t(al,[n.append||n.appendHtml?t(Za,{domProps:Kt(n.appendHtml,n.append)}):t(),bt("append",{},d,c)||t()])):f.push(t()),t(n.tag,Object(it.a)(data,{staticClass:"input-group",class:Object(o.a)({},"input-group-".concat(n.size),n.size),attrs:{id:n.id||null,role:"group"}}),f)}}),cl=Object(r.b)({components:{BInputGroup:sl,BInputGroupAddon:Qa,BInputGroupPrepend:nl,BInputGroupAppend:al,BInputGroupText:Za}}),fl={tag:{type:String,default:"div"},fluid:{type:[Boolean,String],default:!1}},hl=l.a.extend({name:"BContainer",functional:!0,props:fl,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(n.tag,Object(it.a)(data,{class:Object(o.a)({container:!(n.fluid||""===n.fluid),"container-fluid":!0===n.fluid||""===n.fluid},"container-".concat(n.fluid),n.fluid&&!0!==n.fluid)}),r)}}),pl={fluid:{type:Boolean,default:!1},containerFluid:{type:[Boolean,String],default:!1},header:{type:String,default:null},headerHtml:{type:String,default:null},headerTag:{type:String,default:"h1"},headerLevel:{type:[Number,String],default:"3"},lead:{type:String,default:null},leadHtml:{type:String,default:null},leadTag:{type:String,default:"p"},tag:{type:String,default:"div"},bgVariant:{type:String,default:function(){return y("BJumbotron","bgVariant")}},borderVariant:{type:String,default:function(){return y("BJumbotron","borderVariant")}},textVariant:{type:String,default:function(){return y("BJumbotron","textVariant")}}},bl=l.a.extend({name:"BJumbotron",functional:!0,props:pl,render:function(t,e){var n,r=e.props,data=e.data,l=e.slots,c=e.scopedSlots,d=[],f=l(),h=c||{};return(r.header||pt("header",h,f)||r.headerHtml)&&d.push(t(r.headerTag,{class:Object(o.a)({},"display-".concat(r.headerLevel),r.headerLevel)},bt("header",{},h,f)||r.headerHtml||Gt(r.header))),(r.lead||pt("lead",h,f)||r.leadHtml)&&d.push(t(r.leadTag,{staticClass:"lead"},bt("lead",{},h,f)||r.leadHtml||Gt(r.lead))),pt("default",h,f)&&d.push(bt("default",{},h,f)),r.fluid&&(d=[t(hl,{props:{fluid:r.containerFluid}},d)]),t(r.tag,Object(it.a)(data,{staticClass:"jumbotron",class:(n={"jumbotron-fluid":r.fluid},Object(o.a)(n,"text-".concat(r.textVariant),r.textVariant),Object(o.a)(n,"bg-".concat(r.bgVariant),r.bgVariant),Object(o.a)(n,"border-".concat(r.borderVariant),r.borderVariant),Object(o.a)(n,"border",r.borderVariant),n)}),d)}}),vl=Object(r.b)({components:{BJumbotron:bl}});function ml(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var gl=["start","end","center"],yl=f((function(t,e){return(e=Object(xt.g)(Object(xt.f)(e)))?Object(xt.c)(["row-cols",t,e].filter(ht.a).join("-")):null})),wl=f((function(t){return Object(xt.c)(t.replace("cols",""))})),Ol=[],kl=function(){var t=S().reduce((function(t,e){return t[Ti(e,"cols")]={type:[String,Number],default:null},t}),Object(object.c)(null));return Ol=Object(object.l)(t),function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ml(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):ml(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({tag:{type:String,default:"div"},noGutters:{type:Boolean,default:!1},alignV:{type:String,default:null,validator:function(t){return Object(j.a)(gl.concat(["baseline","stretch"]),t)}},alignH:{type:String,default:null,validator:function(t){return Object(j.a)(gl.concat(["between","around"]),t)}},alignContent:{type:String,default:null,validator:function(t){return Object(j.a)(gl.concat(["between","around","stretch"]),t)}}},t)},Sl={name:"BRow",functional:!0,get props(){return delete this.props,this.props=kl(),this.props},render:function(t,e){var n,r=e.props,data=e.data,l=e.children,c=[];return Ol.forEach((function(t){var e=yl(wl(t),r[t]);e&&c.push(e)})),c.push((n={"no-gutters":r.noGutters},Object(o.a)(n,"align-items-".concat(r.alignV),r.alignV),Object(o.a)(n,"justify-content-".concat(r.alignH),r.alignH),Object(o.a)(n,"align-content-".concat(r.alignContent),r.alignContent),n)),t(r.tag,Object(it.a)(data,{staticClass:"row",class:c}),l)}},jl=Object(r.b)({components:{BContainer:hl,BRow:Sl,BCol:Ai,BFormRow:Go}}),_l=Object(r.b)({components:{BLink:Vt}}),xl={tag:{type:String,default:"div"},flush:{type:Boolean,default:!1},horizontal:{type:[Boolean,String],default:!1}},Tl=l.a.extend({name:"BListGroup",functional:!0,props:xl,render:function(t,e){var n=e.props,data=e.data,r=e.children,l=""===n.horizontal||n.horizontal;l=!n.flush&&l;var c={staticClass:"list-group",class:Object(o.a)({"list-group-flush":n.flush,"list-group-horizontal":!0===l},"list-group-horizontal-".concat(l),Object(x.j)(l))};return t(n.tag,Object(it.a)(data,c),r)}});function Bl(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var Cl=["a","router-link","button","b-link"],Pl=Ht();delete Pl.href.default,delete Pl.to.default;var Ml=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Bl(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Bl(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({tag:{type:String,default:"div"},action:{type:Boolean,default:null},button:{type:Boolean,default:null},variant:{type:String,default:function(){return y("BListGroupItem","variant")}}},Pl),ql=l.a.extend({name:"BListGroupItem",functional:!0,props:Ml,render:function(t,e){var n,r=e.props,data=e.data,l=e.children,c=r.button?"button":r.href||r.to?Vt:r.tag,d=Boolean(r.href||r.to||r.action||r.button||Object(j.a)(Cl,r.tag)),f={},h={};"button"===c?(data.attrs&&data.attrs.type||(f.type="button"),r.disabled&&(f.disabled=!0)):h=jt(Pl,r);var v={attrs:f,props:h,staticClass:"list-group-item",class:(n={},Object(o.a)(n,"list-group-item-".concat(r.variant),r.variant),Object(o.a)(n,"list-group-item-action",d),Object(o.a)(n,"active",r.active),Object(o.a)(n,"disabled",r.disabled),n)};return t(c,Object(it.a)(data,v),l)}}),El=Object(r.b)({components:{BListGroup:Tl,BListGroupItem:ql}}),Al={tag:{type:String,default:"div"}},zl=l.a.extend({name:"BMediaBody",functional:!0,props:Al,render:function(t,e){var n=e.props,data=e.data,r=e.children;return t(n.tag,Object(it.a)(data,{staticClass:"media-body"}),r)}}),Dl={tag:{type:String,default:"div"},verticalAlign:{type:String,default:"top"}},Ll=l.a.extend({name:"BMediaAside",functional:!0,props:Dl,render:function(t,e){var n=e.props,data=e.data,r=e.children,l="top"===n.verticalAlign?"start":"bottom"===n.verticalAlign?"end":n.verticalAlign;return t(n.tag,Object(it.a)(data,{staticClass:"d-flex",class:Object(o.a)({},"align-self-".concat(l),l)}),r)}}),Il={tag:{type:String,default:"div"},rightAlign:{type:Boolean,default:!1},verticalAlign:{type:String,default:"top"},noBody:{type:Boolean,default:!1}},Nl=l.a.extend({name:"BMedia",functional:!0,props:Il,render:function(t,e){var n=e.props,data=e.data,r=e.slots,o=e.scopedSlots,l=e.children,c=n.noBody?l:[];if(!n.noBody){var d=r(),f=o||{},h=bt("aside",{},f,d),v=bt("default",{},f,d);h&&!n.rightAlign&&c.push(t(Ll,{staticClass:"mr-3",props:{verticalAlign:n.verticalAlign}},h)),c.push(t(zl,v)),h&&n.rightAlign&&c.push(t(Ll,{staticClass:"ml-3",props:{verticalAlign:n.verticalAlign}},h))}return t(n.tag,Object(it.a)(data,{staticClass:"media"}),c)}}),Hl=Object(r.b)({components:{BMedia:Nl,BMediaAside:Ll,BMediaBody:zl}}),Vl=l.a.extend({abstract:!0,name:"BTransporterTargetSingle",props:{nodes:{type:[Array,Function]}},data:function(t){return{updatedNodes:t.nodes}},destroyed:function(){var t;(t=this.$el)&&t.parentNode&&t.parentNode.removeChild(t)},render:function(t){var e=Object(x.e)(this.updatedNodes)?this.updatedNodes({}):this.updatedNodes;return(e=Object(j.b)(e).filter(Boolean))&&e.length>0&&!e[0].text?e[0]:t()}}),Fl=l.a.extend({name:"BTransporterSingle",mixins:[vt],props:{disabled:{type:Boolean,default:!1},container:{type:[String,Fr.b],default:"body"},tag:{type:String,default:"div"}},watch:{disabled:{immediate:!0,handler:function(t){t?this.unmountTarget():this.$nextTick(this.mountTarget)}}},created:function(){this._bv_defaultFn=null,this._bv_target=null},beforeMount:function(){this.mountTarget()},updated:function(){this.updateTarget()},beforeDestroy:function(){this.unmountTarget(),this._bv_defaultFn=null},methods:{getContainer:function(){if(_.j){var t=this.container;return Object(x.j)(t)?H(t):t}return null},mountTarget:function(){if(!this._bv_target){var t=this.getContainer();if(t){var e=document.createElement("div");t.appendChild(e),this._bv_target=new Vl({el:e,parent:this,propsData:{nodes:Object(j.b)(this.normalizeSlot("default"))}})}}},updateTarget:function(){if(_.j&&this._bv_target){var t=this.$scopedSlots.default;this.disabled||(t&&this._bv_defaultFn!==t?this._bv_target.updatedNodes=t:t||(this._bv_target.updatedNodes=this.$slots.default)),this._bv_defaultFn=t}},unmountTarget:function(){this._bv_target&&(this._bv_target.$destroy(),this._bv_target=null)}},render:function(t){if(this.disabled){var e=Object(j.b)(this.normalizeSlot("default")).filter(ht.a);if(e.length>0&&!e[0].text)return e[0]}return t()}}),Rl={created:function(){var t=this;_.j&&(this.$_bv_documentHandlers_={},this.$once("hook:beforeDestroy",(function(){var e=t.$_bv_documentHandlers_||{};delete t.$_bv_documentHandlers_,Object(object.l)(e).forEach((function(t){(e[t]||[]).forEach((function(e){return fr(document,t,e,cr)}))}))})))},methods:{listenDocument:function(t,e,n){t?this.listenOnDocument(e,n):this.listenOffDocument(e,n)},listenOnDocument:function(t,e){this.$_bv_documentHandlers_&&Object(x.j)(t)&&Object(x.e)(e)&&(this.$_bv_documentHandlers_[t]=this.$_bv_documentHandlers_[t]||[],Object(j.a)(this.$_bv_documentHandlers_[t],e)||(this.$_bv_documentHandlers_[t].push(e),dr(document,t,e,cr)))},listenOffDocument:function(t,e){this.$_bv_documentHandlers_&&Object(x.j)(t)&&Object(x.e)(e)&&(fr(document,t,e,cr),this.$_bv_documentHandlers_[t]=(this.$_bv_documentHandlers_[t]||[]).filter((function(t){return t!==e})))}}},$l={beforeCreate:function(){this.$_bv_windowHandlers_={}},beforeDestroy:function(){if(_.j){var t=this.$_bv_windowHandlers_;delete this.$_bv_windowHandlers_,Object(object.l)(t).forEach((function(e){(t[e]||[]).forEach((function(t){return fr(window,e,t,cr)}))}))}},methods:{listenWindow:function(t,e,n){t?this.listenOnWindow(e,n):this.listenOffWindow(e,n)},listenOnWindow:function(t,e){_.j&&this.$_bv_windowHandlers_&&Object(x.j)(t)&&Object(x.e)(e)&&(this.$_bv_windowHandlers_[t]=this.$_bv_windowHandlers_[t]||[],Object(j.a)(this.$_bv_windowHandlers_[t],e)||(this.$_bv_windowHandlers_[t].push(e),dr(window,t,e,cr)))},listenOffWindow:function(t,e){_.j&&this.$_bv_windowHandlers_&&Object(x.j)(t)&&Object(x.e)(e)&&(fr(window,t,e,cr),this.$_bv_windowHandlers_[t]=(this.$_bv_windowHandlers_[t]||[]).filter((function(t){return t!==e})))}}},Ul=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t&&t.$options._scopeId||e},Yl={computed:{scopedStyleAttrs:function(){var t=Ul(this.$parent);return t?Object(o.a)({},t,""):{}}}},Wl=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Gl=".sticky-top",Kl=".navbar-toggler",Zl=new(l.a.extend({data:function(){return{modals:[],baseZIndex:null,scrollbarWidth:null,isBodyOverflowing:!1}},computed:{modalCount:function(){return this.modals.length},modalsAreOpen:function(){return this.modalCount>0}},watch:{modalCount:function(t,e){_.j&&(this.getScrollbarWidth(),t>0&&0===e?(this.checkScrollbar(),this.setScrollbar(),U(document.body,"modal-open")):0===t&&e>0&&(this.resetScrollbar(),Y(document.body,"modal-open")),G(document.body,"data-modal-open-count",String(t)))},modals:function(t){var e=this;this.checkScrollbar(),E((function(){e.updateModals(t||[])}))}},methods:{registerModal:function(t){var e=this;t&&-1===this.modals.indexOf(t)&&(this.modals.push(t),t.$once("hook:beforeDestroy",(function(){e.unregisterModal(t)})))},unregisterModal:function(t){var e=this.modals.indexOf(t);e>-1&&(this.modals.splice(e,1),t._isBeingDestroyed||t._isDestroyed||this.resetModal(t))},getBaseZIndex:function(){if(Object(x.f)(this.baseZIndex)&&_.j){var div=document.createElement("div");div.className="modal-backdrop d-none",div.style.display="none",document.body.appendChild(div),this.baseZIndex=Object(ot.c)(Q(div).zIndex||1040),document.body.removeChild(div)}return this.baseZIndex||1040},getScrollbarWidth:function(){if(Object(x.f)(this.scrollbarWidth)&&_.j){var div=document.createElement("div");div.className="modal-scrollbar-measure",document.body.appendChild(div),this.scrollbarWidth=J(div).width-div.clientWidth,document.body.removeChild(div)}return this.scrollbarWidth||0},updateModals:function(t){var e=this,n=this.getBaseZIndex(),r=this.getScrollbarWidth();t.forEach((function(t,o){t.zIndex=n+o,t.scrollbarWidth=r,t.isTop=o===e.modals.length-1,t.isBodyOverflowing=e.isBodyOverflowing}))},resetModal:function(t){t&&(t.zIndex=this.getBaseZIndex(),t.isTop=!0,t.isBodyOverflowing=!1)},checkScrollbar:function(){var t=J(document.body),e=t.left,n=t.right;this.isBodyOverflowing=e+n<window.innerWidth},setScrollbar:function(){var body=document.body;if(body._paddingChangedForModal=body._paddingChangedForModal||[],body._marginChangedForModal=body._marginChangedForModal||[],this.isBodyOverflowing){var t=this.scrollbarWidth;N(Wl).forEach((function(e){var n=e.style.paddingRight,r=Q(e).paddingRight||0;G(e,"data-padding-right",n),e.style.paddingRight="".concat(Object(ot.b)(r)+t,"px"),body._paddingChangedForModal.push(e)})),N(Gl).forEach((function(e){var n=e.style.marginRight,r=Q(e).marginRight||0;G(e,"data-margin-right",n),e.style.marginRight="".concat(Object(ot.b)(r)-t,"px"),body._marginChangedForModal.push(e)})),N(Kl).forEach((function(e){var n=e.style.marginRight,r=Q(e).marginRight||0;G(e,"data-margin-right",n),e.style.marginRight="".concat(Object(ot.b)(r)+t,"px"),body._marginChangedForModal.push(e)}));var e=body.style.paddingRight,n=Q(body).paddingRight;G(body,"data-padding-right",e),body.style.paddingRight="".concat(Object(ot.b)(n)+t,"px")}},resetScrollbar:function(){var body=document.body;body._paddingChangedForModal&&body._paddingChangedForModal.forEach((function(t){X(t,"data-padding-right")&&(t.style.paddingRight=Z(t,"data-padding-right")||"",K(t,"data-padding-right"))})),body._marginChangedForModal&&body._marginChangedForModal.forEach((function(t){X(t,"data-margin-right")&&(t.style.marginRight=Z(t,"data-margin-right")||"",K(t,"data-margin-right"))})),body._paddingChangedForModal=null,body._marginChangedForModal=null,X(body,"data-padding-right")&&(body.style.paddingRight=Z(body,"data-padding-right")||"",K(body,"data-padding-right"))}}})),Xl=n(64),Jl=n(103),Ql=n(42),ts=n(175),es=n(65);function ns(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var rs=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(zn.a)(this,e),n=Object(Xl.a)(this,Object(Ql.a)(e).call(this,t,r)),Object(object.e)(Object(Jl.a)(n),{trigger:Object(object.n)()}),n}return Object(es.a)(e,t),Object(Dn.a)(e,null,[{key:"Defaults",get:function(){return function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ns(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):ns(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(ts.a)(Object(Ql.a)(e),"Defaults",this),{trigger:null})}}]),e}(Vr);function os(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function is(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?os(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):os(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var as={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["style","class"]},ls=["button","[href]:not(.disabled)","input","select","textarea","[tabindex]","[contenteditable]"].map((function(s){return"".concat(s,":not(:disabled):not([disabled])")})).join(", "),ss=function(t){if(t&&D(t)&&t.focus)try{t.focus()}catch(t){}return document.activeElement===t},cs={size:{type:String,default:function(){return y("BModal","size")}},centered:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},buttonSize:{type:String,default:""},noStacking:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},noEnforceFocus:{type:Boolean,default:!1},ignoreEnforceFocusSelector:{type:[Array,String],default:""},title:{type:String,default:""},titleHtml:{type:String},titleTag:{type:String,default:function(){return y("BModal","titleTag")}},titleClass:{type:[String,Array,Object],default:null},titleSrOnly:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},headerBgVariant:{type:String,default:function(){return y("BModal","headerBgVariant")}},headerBorderVariant:{type:String,default:function(){return y("BModal","headerBorderVariant")}},headerTextVariant:{type:String,default:function(){return y("BModal","headerTextVariant")}},headerCloseVariant:{type:String,default:function(){return y("BModal","headerCloseVariant")}},headerClass:{type:[String,Array,Object],default:null},bodyBgVariant:{type:String,default:function(){return y("BModal","bodyBgVariant")}},bodyTextVariant:{type:String,default:function(){return y("BModal","bodyTextVariant")}},modalClass:{type:[String,Array,Object],default:null},dialogClass:{type:[String,Array,Object],default:null},contentClass:{type:[String,Array,Object],default:null},bodyClass:{type:[String,Array,Object],default:null},footerBgVariant:{type:String,default:function(){return y("BModal","footerBgVariant")}},footerBorderVariant:{type:String,default:function(){return y("BModal","footerBorderVariant")}},footerTextVariant:{type:String,default:function(){return y("BModal","footerTextVariant")}},footerClass:{type:[String,Array,Object],default:null},hideHeader:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideHeaderClose:{type:Boolean,default:!1},hideBackdrop:{type:Boolean,default:!1},okOnly:{type:Boolean,default:!1},okDisabled:{type:Boolean,default:!1},cancelDisabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},returnFocus:{type:[Fr.b,String,Object],default:null},headerCloseContent:{type:String,default:function(){return y("BModal","headerCloseContent")}},headerCloseLabel:{type:String,default:function(){return y("BModal","headerCloseLabel")}},cancelTitle:{type:String,default:function(){return y("BModal","cancelTitle")}},cancelTitleHtml:{type:String},okTitle:{type:String,default:function(){return y("BModal","okTitle")}},okTitleHtml:{type:String},cancelVariant:{type:String,default:function(){return y("BModal","cancelVariant")}},okVariant:{type:String,default:function(){return y("BModal","okVariant")}},lazy:{type:Boolean,default:!1},busy:{type:Boolean,default:!1},static:{type:Boolean,default:!1},autoFocusButton:{type:String,default:null,validator:function(t){return Object(x.l)(t)||Object(j.a)(["ok","cancel","close"],t)}}},us=l.a.extend({name:"BModal",mixins:[Ge,Rl,xr,$l,vt,Yl],inheritAttrs:!1,model:{prop:"visible",event:"change"},props:cs,data:function(){return{isHidden:!0,isVisible:!1,isTransitioning:!1,isShow:!1,isBlock:!1,isOpening:!1,isClosing:!1,ignoreBackdropClick:!1,isModalOverflowing:!1,return_focus:this.returnFocus||null,scrollbarWidth:0,zIndex:Zl.getBaseZIndex(),isTop:!0,isBodyOverflowing:!1}},computed:{modalClasses:function(){return[{fade:!this.noFade,show:this.isShow},this.modalClass]},modalStyles:function(){var t="".concat(this.scrollbarWidth,"px");return{paddingLeft:!this.isBodyOverflowing&&this.isModalOverflowing?t:"",paddingRight:this.isBodyOverflowing&&!this.isModalOverflowing?t:"",display:this.isBlock?"block":"none"}},dialogClasses:function(){var t;return[(t={},Object(o.a)(t,"modal-".concat(this.size),this.size),Object(o.a)(t,"modal-dialog-centered",this.centered),Object(o.a)(t,"modal-dialog-scrollable",this.scrollable),t),this.dialogClass]},headerClasses:function(){var t;return[(t={},Object(o.a)(t,"bg-".concat(this.headerBgVariant),this.headerBgVariant),Object(o.a)(t,"text-".concat(this.headerTextVariant),this.headerTextVariant),Object(o.a)(t,"border-".concat(this.headerBorderVariant),this.headerBorderVariant),t),this.headerClass]},titleClasses:function(){return[{"sr-only":this.titleSrOnly},this.titleClass]},bodyClasses:function(){var t;return[(t={},Object(o.a)(t,"bg-".concat(this.bodyBgVariant),this.bodyBgVariant),Object(o.a)(t,"text-".concat(this.bodyTextVariant),this.bodyTextVariant),t),this.bodyClass]},footerClasses:function(){var t;return[(t={},Object(o.a)(t,"bg-".concat(this.footerBgVariant),this.footerBgVariant),Object(o.a)(t,"text-".concat(this.footerTextVariant),this.footerTextVariant),Object(o.a)(t,"border-".concat(this.footerBorderVariant),this.footerBorderVariant),t),this.footerClass]},modalOuterStyle:function(){return{position:"absolute",zIndex:this.zIndex}},slotScope:function(){return{ok:this.onOk,cancel:this.onCancel,close:this.onClose,hide:this.hide,visible:this.isVisible}},computeIgnoreEnforceFocusSelector:function(){return Object(j.b)(this.ignoreEnforceFocusSelector).filter(ht.a).join(",").trim()}},watch:{visible:function(t,e){t!==e&&this[t?"show":"hide"]()}},created:function(){this._observer=null},mounted:function(){this.zIndex=Zl.getBaseZIndex(),this.listenOnRoot("bv::show::modal",this.showHandler),this.listenOnRoot("bv::hide::modal",this.hideHandler),this.listenOnRoot("bv::toggle::modal",this.toggleHandler),this.listenOnRoot("bv::modal::show",this.modalListener),!0===this.visible&&this.$nextTick(this.show)},beforeDestroy:function(){this._observer&&(this._observer.disconnect(),this._observer=null),this.isVisible&&(this.isVisible=!1,this.isShow=!1,this.isTransitioning=!1)},methods:{updateModel:function(t){t!==this.visible&&this.$emit("change",t)},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new rs(t,is({cancelable:!1,target:this.$refs.modal||this.$el||null,relatedTarget:null,trigger:null},e,{vueTarget:this,componentId:this.safeId()}))},show:function(){if(!this.isVisible&&!this.isOpening)if(this.isClosing)this.$once("hidden",this.show);else{this.isOpening=!0,this.return_focus=this.return_focus||this.getActiveElement();var t=this.buildEvent("show",{cancelable:!0});if(this.emitEvent(t),t.defaultPrevented||this.isVisible)return this.isOpening=!1,void this.updateModel(!1);this.doShow()}},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.isVisible&&!this.isClosing){this.isClosing=!0;var e=this.buildEvent("hide",{cancelable:"FORCE"!==t,trigger:t||null});if("ok"===t?this.$emit("ok",e):"cancel"===t?this.$emit("cancel",e):"headerclose"===t&&this.$emit("close",e),this.emitEvent(e),e.defaultPrevented||!this.isVisible)return this.isClosing=!1,void this.updateModel(!0);this._observer&&(this._observer.disconnect(),this._observer=null),this.isVisible=!1,this.updateModel(!1)}},toggle:function(t){t&&(this.return_focus=t),this.isVisible?this.hide("toggle"):this.show()},getActiveElement:function(){if(_.j){var t=document.activeElement;if(t&&t!==document.body&&t.focus)return t}return null},getTabables:function(){return N(ls,this.$refs.content).filter(D).filter((function(i){return i.tabIndex>-1&&!i.disabled}))},doShow:function(){var t=this;Zl.modalsAreOpen&&this.noStacking?this.listenOnRootOnce("bv::modal::hidden",this.doShow):(Zl.registerModal(this),this.isHidden=!1,this.$nextTick((function(){t.isVisible=!0,t.isOpening=!1,t.updateModel(!0),t.$nextTick((function(){t._observer=lr(t.$refs.content,t.checkModalOverflow.bind(t),as)}))})))},onBeforeEnter:function(){this.isTransitioning=!0,this.setResizeEvent(!0)},onEnter:function(){var t=this;this.isBlock=!0,E((function(){E((function(){t.isShow=!0}))}))},onAfterEnter:function(){var t=this;this.checkModalOverflow(),this.isTransitioning=!1,E((function(){t.emitEvent(t.buildEvent("shown")),t.setEnforceFocus(!0),t.$nextTick((function(){t.focusFirst()}))}))},onBeforeLeave:function(){this.isTransitioning=!0,this.setResizeEvent(!1),this.setEnforceFocus(!1)},onLeave:function(){this.isShow=!1},onAfterLeave:function(){var t=this;this.isBlock=!1,this.isTransitioning=!1,this.isModalOverflowing=!1,this.isHidden=!0,this.$nextTick((function(){t.isClosing=!1,Zl.unregisterModal(t),t.returnFocusTo(),t.emitEvent(t.buildEvent("hidden"))}))},emitEvent:function(t){var e=t.type;this.emitOnRoot("bv::modal::".concat(e),t,t.componentId),this.$emit(e,t)},onDialogMousedown:function(){var t=this,e=this.$refs.modal;dr(e,"mouseup",(function n(r){fr(e,"mouseup",n,cr),r.target===e&&(t.ignoreBackdropClick=!0)}),cr)},onClickOut:function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:this.isVisible&&!this.noCloseOnBackdrop&&R(document.body,t.target)&&(R(this.$refs.content,t.target)||this.hide("backdrop"))},onOk:function(){this.hide("ok")},onCancel:function(){this.hide("cancel")},onClose:function(){this.hide("headerclose")},onEsc:function(t){t.keyCode===ie.ESC&&this.isVisible&&!this.noCloseOnEsc&&this.hide("esc")},focusHandler:function(t){var content=this.$refs.content,e=t.target;if(!(this.noEnforceFocus||!this.isTop||!this.isVisible||!content||document===e||R(content,e)||this.computeIgnoreEnforceFocusSelector&&F(this.computeIgnoreEnforceFocusSelector,e,!0))){var n=this.getTabables(),r=this.$refs,o=r.bottomTrap,l=r.topTrap;if(o&&e===o){if(ss(n[0]))return}else if(l&&e===l&&ss(n[n.length-1]))return;content.focus({preventScroll:!0})}},setEnforceFocus:function(t){this.listenDocument(t,"focusin",this.focusHandler)},setResizeEvent:function(t){this.listenWindow(t,"resize",this.checkModalOverflow),this.listenWindow(t,"orientationchange",this.checkModalOverflow)},showHandler:function(t,e){t===this.safeId()&&(this.return_focus=e||this.getActiveElement(),this.show())},hideHandler:function(t){t===this.safeId()&&this.hide("event")},toggleHandler:function(t,e){t===this.safeId()&&this.toggle(e)},modalListener:function(t){this.noStacking&&t.vueTarget!==this&&this.hide()},focusFirst:function(){var t=this;_.j&&E((function(){var e=t.$refs.modal,content=t.$refs.content,n=t.getActiveElement();if(e&&content&&(!n||!R(content,n))){var r=t.$refs["ok-button"],o=t.$refs["cancel-button"],l=t.$refs["close-button"],c=t.autoFocusButton,d="ok"===c&&r?r.$el||r:"cancel"===c&&o?o.$el||o:"close"===c&&l?l.$el||l:content;ss(d),d===content&&t.$nextTick((function(){e.scrollTop=0}))}}))},returnFocusTo:function(){var t=this.returnFocus||this.return_focus||null;this.return_focus=null,this.$nextTick((function(){(t=Object(x.j)(t)?H(t):t)&&(t=t.$el||t,ss(t))}))},checkModalOverflow:function(){if(this.isVisible){var t=this.$refs.modal;this.isModalOverflowing=t.scrollHeight>document.documentElement.clientHeight}},makeModal:function(t){var header=t();if(!this.hideHeader){var e=this.normalizeSlot("modal-header",this.slotScope);if(!e){var n=t();this.hideHeaderClose||(n=t(gt,{ref:"close-button",props:{content:this.headerCloseContent,disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose}},[this.normalizeSlot("modal-header-close")]));var r=!this.hasNormalizedSlot("modal-title")&&this.titleHtml?{innerHTML:this.titleHtml}:{};e=[t(this.titleTag,{staticClass:"modal-title",class:this.titleClasses,attrs:{id:this.safeId("__BV_modal_title_")},domProps:r},[this.normalizeSlot("modal-title",this.slotScope)||Gt(this.title)]),n]}header=t("header",{ref:"header",staticClass:"modal-header",class:this.headerClasses,attrs:{id:this.safeId("__BV_modal_header_")}},[e])}var body=t("div",{ref:"body",staticClass:"modal-body",class:this.bodyClasses,attrs:{id:this.safeId("__BV_modal_body_")}},this.normalizeSlot("default",this.slotScope)),footer=t();if(!this.hideFooter){var o=this.normalizeSlot("modal-footer",this.slotScope);if(!o){var l=t();if(!this.okOnly){var c=this.cancelTitleHtml?{innerHTML:this.cancelTitleHtml}:null;l=t(we,{ref:"cancel-button",props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},on:{click:this.onCancel}},[this.normalizeSlot("modal-cancel")||(c?t("span",{domProps:c}):Gt(this.cancelTitle))])}var d=this.okTitleHtml?{innerHTML:this.okTitleHtml}:null;o=[l,t(we,{ref:"ok-button",props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},on:{click:this.onOk}},[this.normalizeSlot("modal-ok")||(d?t("span",{domProps:d}):Gt(this.okTitle))])]}footer=t("footer",{ref:"footer",staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.safeId("__BV_modal_footer_")}},[o])}var f=t("div",{ref:"content",staticClass:"modal-content",class:this.contentClass,attrs:{role:"document",id:this.safeId("__BV_modal_content_"),tabindex:"-1"}},[header,body,footer]),h=t(),v=t();this.isVisible&&!this.noEnforceFocus&&(h=t("span",{ref:"topTrap",attrs:{tabindex:"0"}}),v=t("span",{ref:"bottomTrap",attrs:{tabindex:"0"}}));var m=t("div",{ref:"dialog",staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown}},[h,f,v]),y=t("div",{ref:"modal",staticClass:"modal",class:this.modalClasses,style:this.modalStyles,directives:[{name:"show",rawName:"v-show",value:this.isVisible,expression:"isVisible"}],attrs:{id:this.safeId(),role:"dialog","aria-hidden":this.isVisible?null:"true","aria-modal":this.isVisible?"true":null,"aria-label":this.ariaLabel,"aria-labelledby":this.hideHeader||this.ariaLabel||!(this.hasNormalizedSlot("modal-title")||this.titleHtml||this.title)?null:this.safeId("__BV_modal_title_"),"aria-describedby":this.safeId("__BV_modal_body_")},on:{keydown:this.onEsc,click:this.onClickOut}},[m]);y=t("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[y]);var w=t();!this.hideBackdrop&&this.isVisible&&(w=t("div",{staticClass:"modal-backdrop",attrs:{id:this.safeId("__BV_modal_backdrop_")}},[this.normalizeSlot("modal-backdrop")])),w=t(ft,{props:{noFade:this.noFade}},[w]);var O=this.static?{}:this.scopedStyleAttrs;return t("div",{key:"modal-outer-".concat(this._uid),style:this.modalOuterStyle,attrs:is({},O,{},this.$attrs,{id:this.safeId("__BV_modal_outer_")})},[y,w])}},render:function(t){return this.static?this.lazy&&this.isHidden?t():this.makeModal(t):this.isHidden?t():t(Fl,[this.makeModal(t)])}}),ds="__bv_modal_directive__",fs=function(t){var e=t.modifiers,n=void 0===e?{}:e,r=t.arg,o=t.value;return Object(x.j)(o)?o:Object(x.j)(r)?r:Object(object.l)(n).reverse()[0]},hs=function(t){return t&&V(t,".dropdown-menu > li, li.nav-item")&&H("a, button",t)||t},ps=function(t){t&&"BUTTON"!==t.tagName&&(X(t,"role")||G(t,"role","button"),"A"===t.tagName||X(t,"tabindex")||G(t,"tabindex","0"))},bs=function(t){var e=t[ds]||{},n=e.trigger,r=e.handler;n&&r&&(fr(n,"click",r,sr),fr(n,"keydown",r,sr),fr(t,"click",r,sr),fr(t,"keydown",r,sr)),delete t[ds]},vs=function(t,e,n){var r=t[ds]||{},o=fs(e),l=hs(t);o===r.target&&l===r.trigger||(bs(t),function(t,e,n){var r=fs(e),o=hs(t);if(r&&o){var l=function(t){var e=t.currentTarget;if(!L(e)){var o=t.type,l=t.keyCode;"click"!==o&&("keydown"!==o||l!==ie.ENTER&&l!==ie.SPACE)||n.context.$root.$emit("bv::show::modal",r,e)}};t[ds]={handler:l,target:r,trigger:o},ps(o),dr(o,"click",l,sr),"BUTTON"!==o.tagName&&"button"===Z(o,"role")&&dr(o,"keydown",l,sr)}}(t,e,n)),ps(l)},ms={inserted:vs,updated:function(){},componentUpdated:vs,unbind:bs};function gs(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function ys(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?gs(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):gs(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var ws=["id"].concat(Object(_t.a)(Object(object.l)(Object(object.m)(cs,["busy","lazy","noStacking","static","visible"])))),Os=function(){},ks={msgBoxContent:"default",title:"modal-title",okTitle:"modal-ok",cancelTitle:"modal-cancel"},Ss=function(t){return ws.reduce((function(e,n){return Object(x.k)(t[n])||(e[n]=t[n]),e}),{})},js=Object(r.b)({plugins:{plugin:function(t){var e=t.extend({name:"BMsgBox",extends:us,destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},mounted:function(){var t=this,e=function(){var e=t;t.$nextTick((function(){setTimeout((function(){return e.$destroy()}),0)}))};this.$parent.$once("hook:destroyed",e),this.$once("hidden",e),this.$router&&this.$route&&this.$once("hook:beforeDestroy",this.$watch("$router",e)),this.show()}}),n=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Os;if(!Object(ir.d)("$bvModal")&&!Object(ir.c)("$bvModal")){var o=new e({parent:t,propsData:ys({},Ss(y("BModal")||{}),{hideHeaderClose:!0,hideHeader:!(n.title||n.titleHtml)},Object(object.m)(n,Object(object.l)(ks)),{lazy:!1,busy:!1,visible:!1,noStacking:!1,noEnforceFocus:!1})});return Object(object.l)(ks).forEach((function(t){Object(x.k)(n[t])||(o.$slots[ks[t]]=Object(j.b)(n[t]))})),new Promise((function(t,e){var n=!1;o.$once("hook:destroyed",(function(){n||e(new Error("BootstrapVue MsgBox destroyed before resolve"))})),o.$on("hide",(function(e){if(!e.defaultPrevented){var o=r(e);e.defaultPrevented||(n=!0,t(o))}}));var div=document.createElement("div");document.body.appendChild(div),o.$mount(div)}))}},r=function(t,content){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(content&&!Object(ir.c)("$bvModal")&&!Object(ir.d)("$bvModal")&&Object(x.e)(r))return n(t,ys({},Ss(e),{msgBoxContent:content}),r)},o=function(){function t(e){Object(zn.a)(this,t),Object(object.a)(this,{_vm:e,_root:e.$root}),Object(object.e)(this,{_vm:Object(object.n)(),_root:Object(object.n)()})}return Object(Dn.a)(t,[{key:"show",value:function(t){if(t&&this._root){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(e=this._root).$emit.apply(e,["bv::show::modal",t].concat(r))}}},{key:"hide",value:function(t){if(t&&this._root){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(e=this._root).$emit.apply(e,["bv::hide::modal",t].concat(r))}}},{key:"msgBoxOk",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ys({},e,{okOnly:!0,okDisabled:!1,hideFooter:!1,msgBoxContent:t});return r(this._vm,t,n,(function(){return!0}))}},{key:"msgBoxConfirm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ys({},e,{okOnly:!1,okDisabled:!1,cancelDisabled:!1,hideFooter:!1});return r(this._vm,t,n,(function(t){var e=t.trigger;return"ok"===e||"cancel"!==e&&null}))}}]),t}();t.mixin({beforeCreate:function(){this._bv__modal=new o(this)}}),t.prototype.hasOwnProperty("$bvModal")||Object(object.f)(t.prototype,"$bvModal",{get:function(){return this&&this._bv__modal||Object(ir.a)('"'.concat("$bvModal",'" must be accessed from a Vue instance "this" context.'),"BModal"),this._bv__modal}})}}}),_s=Object(r.b)({components:{BModal:us},directives:{VBModal:ms},plugins:{BVModalPlugin:js}}),xs=(n(79),n(120),{tag:{type:String,default:"ul"},fill:{type:Boolean,default:!1},justified:{type:Boolean,default:!1},align:{type:String,default:null},tabs:{type:Boolean,default:!1},pills:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},small:{type:Boolean,default:!1},cardHeader:{type:Boolean,default:!1}}),Ts=l.a.extend({name:"BNav",functional:!0,props:xs,render:function(t,e){var n,r,l=e.props,data=e.data,c=e.children;return t(l.tag,Object(it.a)(data,{staticClass:"nav",class:(n={"nav-tabs":l.tabs,"nav-pills":l.pills&&!l.tabs,"card-header-tabs":!l.vertical&&l.cardHeader&&l.tabs,"card-header-pills":!l.vertical&&l.cardHeader&&l.pills&&!l.tabs,"flex-column":l.vertical,"nav-fill":!l.vertical&&l.fill,"nav-justified":!l.vertical&&l.justified},Object(o.a)(n,(r=l.align,"justify-content-".concat(r="left"===r?"start":"right"===r?"end":r)),!l.vertical&&l.align),Object(o.a)(n,"small",l.small),n)}),c)}});function Bs(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var Cs=Ht(),Ps=l.a.extend({name:"BNavItem",functional:!0,props:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Bs(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Bs(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Cs,{linkAttrs:{type:Object,default:function(){}},linkClasses:{type:[String,Object,Array],default:null}}),render:function(t,e){var n=e.props,data=e.data,r=e.listeners,o=e.children;return delete data.on,t("li",Object(it.a)(data,{staticClass:"nav-item"}),[t(Vt,{staticClass:"nav-link",class:n.linkClasses,attrs:n.linkAttrs,props:n,on:r},o)])}}),Ms=l.a.extend({name:"BNavText",functional:!0,props:{},render:function(t,e){var data=e.data,n=e.children;return t("li",Object(it.a)(data,{staticClass:"navbar-text"}),n)}});function qs(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Es(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?qs(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):qs(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var As=Es({},Object(object.m)(So,["inline"]),{formClass:{type:[String,Array,Object],default:null}}),zs=l.a.extend({name:"BNavForm",functional:!0,props:As,render:function(t,e){var n=e.props,data=e.data,r=e.children,o=e.listeners,l=void 0===o?{}:o,c=data.attrs;data.attrs={},data.on={};var d=t(jo,{class:n.formClass,props:Es({},n,{inline:!0}),attrs:c,on:l},r);return t("li",Object(it.a)(data,{staticClass:"form-inline"}),[d])}}),Ds=jt(["text","html","menuClass","toggleClass","noCaret","role","lazy"],oo),Ls=l.a.extend({name:"BNavItemDropdown",mixins:[Ge,ro,vt],props:Ds,computed:{isNav:function(){return!0},dropdownClasses:function(){return[this.directionClass,{show:this.visible}]},menuClasses:function(){return[this.menuClass,{"dropdown-menu-right":this.right,show:this.visible}]},toggleClasses:function(){return[this.toggleClass,{"dropdown-toggle-no-caret":this.noCaret}]}},render:function(t){var button=t(Vt,{ref:"toggle",staticClass:"nav-link dropdown-toggle",class:this.toggleClasses,props:{href:"#",disabled:this.disabled},attrs:{id:this.safeId("_BV_button_"),"aria-haspopup":"true","aria-expanded":this.visible?"true":"false"},on:{mousedown:this.onMousedown,click:this.toggle,keydown:this.toggle}},[this.$slots["button-content"]||this.$slots.text||t("span",{domProps:Kt(this.html,this.text)})]),menu=t("ul",{staticClass:"dropdown-menu",class:this.menuClasses,ref:"menu",attrs:{tabindex:"-1","aria-labelledby":this.safeId("_BV_button_")},on:{keydown:this.onKeydown}},!this.lazy||this.visible?this.normalizeSlot("default",{hide:this.hide}):[t()]);return t("li",{staticClass:"nav-item b-nav-dropdown dropdown",class:this.dropdownClasses,attrs:{id:this.safeId()}},[button,menu])}}),Is=Object(r.b)({components:{BNav:Ts,BNavItem:Ps,BNavText:Ms,BNavForm:zs,BNavItemDropdown:Ls,BNavItemDd:Ls,BNavDropdown:Ls,BNavDd:Ls},plugins:{DropdownPlugin:Eo}}),Ns=(n(121),{tag:{type:String,default:"nav"},type:{type:String,default:"light"},variant:{type:String,default:function(){return y("BNavbar","variant")}},toggleable:{type:[Boolean,String],default:!1},fixed:{type:String},sticky:{type:Boolean,default:!1},print:{type:Boolean,default:!1}}),Hs=l.a.extend({name:"BNavbar",mixins:[vt],props:Ns,provide:function(){return{bvNavbar:this}},computed:{breakpointClass:function(){var t=null,e=w()[0],n=this.toggleable;return n&&Object(x.j)(n)&&n!==e?t="navbar-expand-".concat(n):!1===n&&(t="navbar-expand"),t}},render:function(t){var e;return t(this.tag,{staticClass:"navbar",class:[(e={"d-print":this.print,"sticky-top":this.sticky},Object(o.a)(e,"navbar-".concat(this.type),this.type),Object(o.a)(e,"bg-".concat(this.variant),this.variant),Object(o.a)(e,"fixed-".concat(this.fixed),this.fixed),e),this.breakpointClass],attrs:{role:"nav"===this.tag?null:"navigation"}},[this.normalizeSlot("default")])}}),Vs=jt(["tag","fill","justified","align","small"],xs),Fs=l.a.extend({name:"BNavbarNav",functional:!0,props:Vs,render:function(t,e){var n,r,l=e.props,data=e.data,c=e.children;return t(l.tag,Object(it.a)(data,{staticClass:"navbar-nav",class:(n={"nav-fill":l.fill,"nav-justified":l.justified},Object(o.a)(n,(r=l.align,"justify-content-".concat(r="left"===r?"start":"right"===r?"end":r)),l.align),Object(o.a)(n,"small",l.small),n)}),c)}});function Rs(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var $s=Ht();$s.href.default=void 0,$s.to.default=void 0;var Us=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Rs(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Rs(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},$s,{tag:{type:String,default:"div"}}),Ys=l.a.extend({name:"BNavbarBrand",functional:!0,props:Us,render:function(t,e){var n=e.props,data=e.data,r=e.children,o=n.to||n.href;return t(o?Vt:n.tag,Object(it.a)(data,{staticClass:"navbar-brand",props:o?jt($s,n):{}}),r)}}),Ws=l.a.extend({name:"BNavbarToggle",mixins:[xr,vt],props:{label:{type:String,default:function(){return y("BNavbarToggle","label")}},target:{type:String,required:!0}},data:function(){return{toggleState:!1}},created:function(){this.listenOnRoot("bv::collapse::state",this.handleStateEvt),this.listenOnRoot("bv::collapse::sync::state",this.handleStateEvt)},methods:{onClick:function(t){this.$emit("click",t),t.defaultPrevented||this.$root.$emit("bv::toggle::collapse",this.target)},handleStateEvt:function(t,e){t===this.target&&(this.toggleState=e)}},render:function(t){return t("button",{class:["navbar-toggler"],attrs:{type:"button","aria-label":this.label,"aria-controls":this.target,"aria-expanded":this.toggleState?"true":"false"},on:{click:this.onClick}},[this.normalizeSlot("default")||t("span",{class:["navbar-toggler-icon"]})])}}),Gs=Object(r.b)({components:{BNavbar:Hs,BNavbarNav:Fs,BNavbarBrand:Ys,BNavbarToggle:Ws,BNavToggle:Ws},plugins:{NavPlugin:Is,CollapsePlugin:Nr,DropdownPlugin:Eo}}),Ks=l.a.extend({name:"BSpinner",functional:!0,props:{type:{type:String,default:"border"},label:{type:String,default:null},variant:{type:String,default:function(){return y("BSpinner","variant")}},small:{type:Boolean,default:!1},role:{type:String,default:"status"},tag:{type:String,default:"span"}},render:function(t,e){var n,r=e.props,data=e.data,l=e.slots,c=e.scopedSlots,d=l(),label=bt("label",{},c||{},d)||r.label;return label&&(label=t("span",{staticClass:"sr-only"},label)),t(r.tag,Object(it.a)(data,{attrs:{role:label?r.role||"status":null,"aria-hidden":label?null:"true"},class:(n={},Object(o.a)(n,"spinner-".concat(r.type),r.type),Object(o.a)(n,"spinner-".concat(r.type,"-sm"),r.small),Object(o.a)(n,"text-".concat(r.variant),r.variant),n)}),[label||t()])}});function Zs(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Xs(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Zs(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Zs(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Js={top:0,left:0,bottom:0,right:0},Qs=l.a.extend({name:"BOverlay",mixins:[vt],props:{show:{type:Boolean,default:!1},variant:{type:String,default:"light"},bgColor:{type:String,default:null},opacity:{type:[Number,String],default:.85,validator:function(t){var e=Object(ot.b)(t);return e>=0&&e<=1}},blur:{type:String,default:"2px"},rounded:{type:[Boolean,String],default:!1},noCenter:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},spinnerType:{type:String,default:"border"},spinnerVariant:{type:String,default:null},spinnerSmall:{type:Boolean,default:!1},overlayTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},noWrap:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:10}},computed:{computedRounded:function(){var t=this.rounded;return!0===t||""===t?"rounded":t?"rounded-".concat(t):""},computedVariant:function(){return this.variant&&!this.bgColor?"bg-".concat(this.variant):""},overlayScope:function(){return{spinnerType:this.spinnerType,spinnerVariant:this.spinnerVariant||null,spinnerSmall:this.spinnerSmall}}},methods:{defaultOverlayFn:function(t){var e=t.spinnerType,n=t.spinnerVariant,r=t.spinnerSmall;return this.$createElement(Ks,{props:{type:e,variant:n,small:r}})}},render:function(t){var e=this,n=t();if(this.show){var r=this.overlayScope,o=t("div",{staticClass:"position-absolute",class:[this.computedVariant,this.computedRounded],style:Xs({},Js,{opacity:this.opacity,backgroundColor:this.bgColor||null,backdropFilter:this.blur?"blur(".concat(this.blur,")"):null})}),l=t("div",{staticClass:"position-absolute",style:this.noCenter?Xs({},Js):{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},[this.normalizeSlot("overlay",r)||this.defaultOverlayFn(r)]);n=t(this.overlayTag,{key:"overlay",staticClass:"b-overlay",class:{"position-absolute":!this.noWrap||this.noWrap&&!this.fixed,"position-fixed":this.noWrap&&this.fixed},style:Xs({},Js,{zIndex:this.zIndex||10})},[o,l])}return n=t(ut,{props:{noFade:this.noFade,appear:!0},on:{"after-enter":function(){return e.$emit("shown")},"after-leave":function(){return e.$emit("hidden")}}},[n]),this.noWrap?n:t(this.wrapTag,{staticClass:"b-overlay-wrap position-relative",attrs:{"aria-busy":this.show?"true":null}},this.noWrap?[n]:[this.normalizeSlot("default"),n])}}),tc=Object(r.b)({components:{BOverlay:Qs}}),ec=function(t){return Array.apply(null,{length:t})},nc=function(t){var e=Object(ot.c)(t)||1;return e<1?5:e},rc=function(t,e){var n=Object(ot.c)(t)||1;return n>e?e:n<1?1:n},oc=function(t){if(t.keyCode===ie.SPACE)return t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),t.currentTarget.click(),!1},ic={mixins:[vt],model:{prop:"value",event:"input"},props:{disabled:{type:Boolean,default:!1},value:{type:[Number,String],default:null,validator:function(t){var e=Object(ot.c)(t);return!(!Object(x.f)(t)&&(isNaN(e)||e<1))||(Object(ir.a)('"v-model" value must be a number greater than "0"',"BPagination"),!1)}},limit:{type:[Number,String],default:5,validator:function(t){var e=Object(ot.c)(t);return!(isNaN(e)||e<1)||(Object(ir.a)('Prop "limit" must be a number greater than "0"',"BPagination"),!1)}},align:{type:String,default:"left"},pills:{type:Boolean,default:!1},hideGotoEndButtons:{type:Boolean,default:!1},ariaLabel:{type:String,default:"Pagination"},labelFirstPage:{type:String,default:"Go to first page"},firstText:{type:String,default:"«"},firstNumber:{type:Boolean,default:!1},firstClass:{type:[String,Array,Object],default:null},labelPrevPage:{type:String,default:"Go to previous page"},prevText:{type:String,default:"‹"},prevClass:{type:[String,Array,Object],default:null},labelNextPage:{type:String,default:"Go to next page"},nextText:{type:String,default:"›"},nextClass:{type:[String,Array,Object],default:null},labelLastPage:{type:String,default:"Go to last page"},lastText:{type:String,default:"»"},lastNumber:{type:Boolean,default:!1},lastClass:{type:[String,Array,Object],default:null},labelPage:{type:[String,Function],default:"Go to page"},pageClass:{type:[String,Array,Object],default:null},hideEllipsis:{type:Boolean,default:!1},ellipsisText:{type:String,default:"…"},ellipsisClass:{type:[String,Array,Object],default:null}},data:function(){var t=Object(ot.c)(this.value);return{currentPage:t>0?t:-1,localNumberOfPages:1,localLimit:5}},computed:{btnSize:function(){return this.size?"pagination-".concat(this.size):""},alignment:function(){var t=this.align;return"center"===t?"justify-content-center":"end"===t||"right"===t?"justify-content-end":"fill"===t?"text-center":""},styleClass:function(){return this.pills?"b-pagination-pills":""},computedCurrentPage:function(){return rc(this.currentPage,this.localNumberOfPages)},paginationParams:function(){var t=this.localLimit,e=this.localNumberOfPages,n=this.computedCurrentPage,r=this.hideEllipsis,o=this.firstNumber,l=this.lastNumber,c=!1,d=!1,f=t,h=1;e<=t?f=e:n<t-1&&t>3?(r&&!l||(d=!0,f=t-(o?0:1)),f=Math.min(f,t)):e-n+2<t&&t>3?(r&&!o||(c=!0,f=t-(l?0:1)),h=e-f+1):(t>3&&(f=t-2,c=!(r&&!o),d=!(r&&!l)),h=n-Math.floor(f/2)),h<1?(h=1,c=!1):h>e-f&&(h=e-f+1,d=!1),c&&o&&h<4&&(f+=2,h=1,c=!1);var v=h+f-1;return d&&l&&v>e-3&&(f+=v===e-2?2:3,d=!1),t<=3&&(o&&1===h?f=Math.min(f+1,e,t+1):l&&e===h+f-1&&(h=Math.max(h-1,1),f=Math.min(e-h+1,e,t+1))),{showFirstDots:c,showLastDots:d,numberOfLinks:f=Math.min(f,e-h+1),startNumber:h}},pageList:function(){var t=this.paginationParams,e=t.numberOfLinks,n=t.startNumber,r=this.computedCurrentPage,o=function(t,e){return ec(e).map((function(e,i){return{number:t+i,classes:null}}))}(n,e);if(o.length>3){var l=r-n,c="bv-d-xs-down-none";if(0===l)for(var i=3;i<o.length;i++)o[i].classes=c;else if(l===o.length-1)for(var d=0;d<o.length-3;d++)o[d].classes=c;else{for(var f=0;f<l-1;f++)o[f].classes=c;for(var h=o.length-1;h>l+1;h--)o[h].classes=c}}return o}},watch:{value:function(t,e){t!==e&&(this.currentPage=rc(t,this.localNumberOfPages))},currentPage:function(t,e){t!==e&&this.$emit("input",t>0?t:null)},limit:function(t,e){t!==e&&(this.localLimit=nc(t))}},created:function(){var t=this;this.localLimit=nc(this.limit),this.$nextTick((function(){t.currentPage=t.currentPage>t.localNumberOfPages?t.localNumberOfPages:t.currentPage}))},methods:{handleKeyNav:function(t){var e=t.keyCode,n=t.shiftKey;this.isNav||(e===ie.LEFT||e===ie.UP?(t.preventDefault(),n?this.focusFirst():this.focusPrev()):e!==ie.RIGHT&&e!==ie.DOWN||(t.preventDefault(),n?this.focusLast():this.focusNext()))},getButtons:function(){return N("button.page-link, a.page-link",this.$el).filter((function(t){return D(t)}))},setBtnFocus:function(t){t.focus()},focusCurrent:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().find((function(e){return Object(ot.c)(Z(e,"aria-posinset"))===t.computedCurrentPage}));e&&e.focus?t.setBtnFocus(e):t.focusFirst()}))},focusFirst:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().find((function(t){return!L(t)}));e&&e.focus&&e!==document.activeElement&&t.setBtnFocus(e)}))},focusLast:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().reverse().find((function(t){return!L(t)}));e&&e.focus&&e!==document.activeElement&&t.setBtnFocus(e)}))},focusPrev:function(){var t=this;this.$nextTick((function(){var e=t.getButtons(),n=e.indexOf(document.activeElement);n>0&&!L(e[n-1])&&e[n-1].focus&&t.setBtnFocus(e[n-1])}))},focusNext:function(){var t=this;this.$nextTick((function(){var e=t.getButtons(),n=e.indexOf(document.activeElement);n<e.length-1&&!L(e[n+1])&&e[n+1].focus&&t.setBtnFocus(e[n+1])}))}},render:function(t){var e=this,n=[],r=this.localNumberOfPages,o=this.pageList.map((function(p){return p.number})),l=this.disabled,c=this.paginationParams,d=c.showFirstDots,f=c.showLastDots,h=this.computedCurrentPage,v="fill"===this.align,m=this.isNav,y=function(t){return t===h},w=this.currentPage<1,O=function(n,o,c,d,f,h,O){var k=l||y(h)||w||n<1||n>r,S=n<1?1:n>r?r:n,j={disabled:k,page:S,index:S-1},_=e.normalizeSlot(c,j)||Object(xt.f)(d)||t(),x=t(k?"span":m?Vt:"button",{staticClass:"page-link",class:{"flex-grow-1":!m&&!k&&v},props:k||!m?{}:e.linkProps(n),attrs:{role:m?null:"menuitem",type:m||k?null:"button",tabindex:k||m?null:"-1","aria-label":o,"aria-controls":e.ariaControls||null,"aria-disabled":k?"true":null},on:k?{}:{"!click":function(t){e.onClick(n,t)},keydown:oc}},[_]);return t("li",{key:O,staticClass:"page-item",class:[{disabled:k,"flex-fill":v,"d-flex":v&&!m&&!k},f],attrs:{role:m?null:"presentation","aria-hidden":k?"true":null}},[x])},k=function(n){return t("li",{key:"ellipsis-".concat(n?"last":"first"),staticClass:"page-item",class:["disabled","bv-d-xs-down-none",v?"flex-fill":"",e.ellipsisClass],attrs:{role:"separator"}},[t("span",{staticClass:"page-link"},[e.normalizeSlot("ellipsis-text")||Object(xt.f)(e.ellipsisText)||t()])])},S=function(n,o){var c=y(n.number)&&!w,d=l?null:c||w&&0===o?"0":"-1",f={role:m?null:"menuitemradio",type:m||l?null:"button","aria-disabled":l?"true":null,"aria-controls":e.ariaControls||null,"aria-label":Object(x.e)(e.labelPage)?e.labelPage(n.number):"".concat(e.labelPage," ").concat(n.number),"aria-checked":m?null:c?"true":"false","aria-current":m&&c?"page":null,"aria-posinset":n.number,"aria-setsize":r,tabindex:m?null:d},h=Object(xt.f)(e.makePage(n.number)),O={page:n.number,index:n.number-1,content:h,active:c,disabled:l},k=t(l?"span":m?Vt:"button",{props:l||!m?{}:e.linkProps(n.number),staticClass:"page-link",class:{"flex-grow-1":!m&&!l&&v},attrs:f,on:l?{}:{"!click":function(t){e.onClick(n.number,t)},keydown:oc}},[e.normalizeSlot("page",O)||h]);return t("li",{key:"page-".concat(n.number),staticClass:"page-item",class:[{disabled:l,active:c,"flex-fill":v,"d-flex":v&&!m&&!l},n.classes,e.pageClass],attrs:{role:m?null:"presentation"}},[k])},j=t();this.firstNumber||this.hideGotoEndButtons||(j=O(1,this.labelFirstPage,"first-text",this.firstText,this.firstClass,1,"pagination-goto-first")),n.push(j),n.push(O(h-1,this.labelPrevPage,"prev-text",this.prevText,this.prevClass,1,"pagination-goto-prev")),n.push(this.firstNumber&&1!==o[0]?S({number:1},0):t()),n.push(d?k(!1):t()),this.pageList.forEach((function(t,r){var l=d&&e.firstNumber&&1!==o[0]?1:0;n.push(S(t,r+l))})),n.push(f?k(!0):t()),n.push(this.lastNumber&&o[o.length-1]!==r?S({number:r},-1):t()),n.push(O(h+1,this.labelNextPage,"next-text",this.nextText,this.nextClass,r,"pagination-goto-next"));var _=t();this.lastNumber||this.hideGotoEndButtons||(_=O(r,this.labelLastPage,"last-text",this.lastText,this.lastClass,r,"pagination-goto-last")),n.push(_);var T=t("ul",{ref:"ul",staticClass:"pagination",class:["b-pagination",this.btnSize,this.alignment,this.styleClass],attrs:{role:m?null:"menubar","aria-disabled":l?"true":"false","aria-label":m?null:this.ariaLabel||null},on:m?{}:{keydown:this.handleKeyNav}},n);return m?t("nav",{attrs:{"aria-disabled":l?"true":null,"aria-hidden":l?"true":"false","aria-label":m&&this.ariaLabel||null}},[T]):T}},ac={size:{type:String,default:function(){return y("BPagination","size")}},perPage:{type:[Number,String],default:20},totalRows:{type:[Number,String],default:0},ariaControls:{type:String,default:null}},lc=function(t){var e=Object(ot.c)(t)||20;return e<1?1:e},sc=function(t){var e=Object(ot.c)(t)||0;return e<0?0:e},cc=l.a.extend({name:"BPagination",mixins:[ic],props:ac,computed:{numberOfPages:function(){var t=Math.ceil(sc(this.totalRows)/lc(this.perPage));return t<1?1:t},pageSizeNumberOfPages:function(){return{perPage:lc(this.perPage),totalRows:sc(this.totalRows),numberOfPages:this.numberOfPages}}},watch:{pageSizeNumberOfPages:function(t,e){Object(x.l)(e)||(t.perPage!==e.perPage&&t.totalRows===e.totalRows||t.numberOfPages!==e.numberOfPages&&this.currentPage>t.numberOfPages)&&(this.currentPage=1),this.localNumberOfPages=t.numberOfPages}},created:function(){var t=this;this.localNumberOfPages=this.numberOfPages;var e=Object(ot.c)(this.value)||0;e>0?this.currentPage=e:this.$nextTick((function(){t.currentPage=0}))},mounted:function(){this.localNumberOfPages=this.numberOfPages},methods:{onClick:function(t,e){var n=this;t>this.numberOfPages?t=this.numberOfPages:t<1&&(t=1),this.currentPage=t,this.$emit("change",this.currentPage),this.$nextTick((function(){var t=e.target;D(t)&&n.$el.contains(t)&&t.focus?t.focus():n.focusCurrent()}))},makePage:function(t){return t},linkProps:function(){return{}}}}),uc=Object(r.b)({components:{BPagination:cc}}),dc=(n(156),n(158),{size:{type:String,default:function(){return y("BPaginationNav","size")}},numberOfPages:{type:[Number,String],default:1,validator:function(t){var e=Object(ot.c)(t);return!(isNaN(e)||e<1)||(Object(ir.a)('Prop "number-of-pages" must be a number greater than "0"',"BPaginationNav"),!1)}},baseUrl:{type:String,default:"/"},useRouter:{type:Boolean,default:!1},linkGen:{type:Function,default:null},pageGen:{type:Function,default:null},pages:{type:Array,default:null},noPageDetect:{type:Boolean,default:!1},activeClass:{type:String},exact:{type:Boolean,default:!1},exactActiveClass:{type:String},noPrefetch:{type:Boolean,default:!1}}),fc=l.a.extend({name:"BPaginationNav",mixins:[ic],props:dc,computed:{isNav:function(){return!0},computedValue:function(){var t=Object(ot.c)(this.value);return isNaN(t)||t<1?null:t}},watch:{numberOfPages:function(){var t=this;this.$nextTick((function(){t.setNumberOfPages()}))},pages:function(){var t=this;this.$nextTick((function(){t.setNumberOfPages()}))}},created:function(){this.setNumberOfPages()},mounted:function(){var t=this;this.$router&&this.$watch("$route",(function(){t.$nextTick((function(){E((function(){t.guessCurrentPage()}))}))}))},methods:{setNumberOfPages:function(){var t,e,n=this;Object(j.d)(this.pages)&&this.pages.length>0?this.localNumberOfPages=this.pages.length:this.localNumberOfPages=(t=this.numberOfPages,(e=Object(ot.c)(t)||1)<1?1:e),this.$nextTick((function(){n.guessCurrentPage()}))},onClick:function(t,e){var n=this;t!==this.currentPage&&(E((function(){n.currentPage=t,n.$emit("change",t)})),this.$nextTick((function(){try{(e.currentTarget||e.target).blur()}catch(t){}})))},getPageInfo:function(t){if(!Object(j.d)(this.pages)||0===this.pages.length||Object(x.k)(this.pages[t-1])){var link="".concat(this.baseUrl).concat(t);return{link:this.useRouter?{path:link}:link,text:Object(xt.f)(t)}}var e=this.pages[t-1];if(Object(object.j)(e)){var n=e.link;return{link:Object(object.j)(n)?n:this.useRouter?{path:n}:n,text:Object(xt.f)(e.text||t)}}return{link:Object(xt.f)(e),text:Object(xt.f)(t)}},makePage:function(t){var e=this.getPageInfo(t);return this.pageGen&&Object(x.e)(this.pageGen)?this.pageGen(t,e):e.text},makeLink:function(t){var e=this.getPageInfo(t);return this.linkGen&&Object(x.e)(this.linkGen)?this.linkGen(t,e):e.link},linkProps:function(t){var link=this.makeLink(t),e={target:this.target||null,rel:this.rel||null,disabled:this.disabled,exact:this.exact,activeClass:this.activeClass,exactActiveClass:this.exactActiveClass,append:this.append,replace:this.replace,noPrefetch:this.noPrefetch};return this.useRouter||Object(object.j)(link)?e.to=link:e.href=link,e},resolveLink:function(){var link,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{(link=document.createElement("a")).href=Lt({to:t},"a","/","/"),document.body.appendChild(link);var e=link,n=e.pathname,r=e.hash,o=e.search;return document.body.removeChild(link),{path:n,hash:r,query:zt(o)}}catch(t){try{link&&link.parentNode&&link.parentNode.removeChild(link)}catch(t){}return{}}},resolveRoute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{var e=this.$router.resolve(t,this.$route).route;return{path:e.path,hash:e.hash,query:e.query}}catch(t){return{}}},guessCurrentPage:function(){var t=this.computedValue,e=this.$router,n=this.$route;if(!this.noPageDetect&&!t&&(_.j||!_.j&&e))for(var r=e&&n?{path:n.path,hash:n.hash,query:n.query}:{},o=_.j?window.location||document.location:null,l=o?{path:o.pathname,hash:o.hash,query:zt(o.search)}:{},c=1;!t&&c<=this.localNumberOfPages;c++){var d=this.makeLink(c);t=e&&(Object(object.j)(d)||this.useRouter)?Ce(this.resolveRoute(d),r)?c:null:_.j?Ce(this.resolveLink(d),l)?c:null:-1}this.currentPage=t>0?t:0}}}),hc=Object(r.b)({components:{BPaginationNav:fc}}),pc={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},bc={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},vc=l.a.extend({name:"BVPopper",props:{target:{type:[Fr.b,Fr.c],default:null},placement:{type:String,default:"top"},fallbackPlacement:{type:[String,Array],default:"flip"},offset:{type:Number,default:0},boundary:{type:[String,Fr.b],default:"scrollParent"},boundaryPadding:{type:Number,default:5},arrowPadding:{type:Number,default:6}},data:function(){return{noFade:!1,localShow:!0,attachment:this.getAttachment(this.placement)}},computed:{templateType:function(){return"unknown"},popperConfig:function(){var t=this,e=this.placement;return{placement:this.getAttachment(e),modifiers:{offset:{offset:this.getOffset(e)},flip:{behavior:this.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.boundaryPadding,boundariesElement:this.boundary}},onCreate:function(data){data.originalPlacement!==data.placement&&t.popperPlacementChange(data)},onUpdate:function(data){t.popperPlacementChange(data)}}}},created:function(){var t=this;this.$_popper=null,this.localShow=!0,this.$on("show",(function(e){t.popperCreate(e)})),this.$on("hidden",(function(){t.$nextTick(t.$destroy)})),this.$parent.$once("hook:destroyed",this.$destroy)},beforeMount:function(){this.attachment=this.getAttachment(this.placement)},mounted:function(){},updated:function(){this.popperUpdate()},beforeDestroy:function(){this.popperDestroy()},destroyed:function(){var t=this.$el;t&&t.parentNode&&t.parentNode.removeChild(t)},methods:{hide:function(){this.localShow=!1},getAttachment:function(t){return pc[String(t).toUpperCase()]||"auto"},getOffset:function(t){if(!this.offset){var e=this.$refs.arrow||H(".arrow",this.$el),n=(parseFloat(Q(e).width)||0)+(parseFloat(this.arrowPadding)||0);switch(bc[String(t).toUpperCase()]||0){case 1:return"+50%p - ".concat(n,"px");case-1:return"-50%p + ".concat(n,"px");default:return 0}}return this.offset},popperCreate:function(t){this.popperDestroy(),this.$_popper=new Hr.a(this.target,t,this.popperConfig)},popperDestroy:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},popperUpdate:function(){this.$_popper&&this.$_popper.scheduleUpdate()},popperPlacementChange:function(data){this.attachment=this.getAttachment(data.placement)},renderTemplate:function(t){return t("div")}},render:function(t){var e=this;return t(ut,{props:{appear:!0,noFade:this.noFade},on:{beforeEnter:function(t){return e.$emit("show",t)},afterEnter:function(t){return e.$emit("shown",t)},beforeLeave:function(t){return e.$emit("hide",t)},afterLeave:function(t){return e.$emit("hidden",t)}}},[this.localShow?this.renderTemplate(t):t()])}});function mc(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var gc=l.a.extend({name:"BVTooltipTemplate",extends:vc,mixins:[Yl],props:{id:{type:String,default:null},html:{type:Boolean,default:!1}},data:function(){return{title:"",content:"",variant:null,customClass:null,interactive:!0}},computed:{templateType:function(){return"tooltip"},templateClasses:function(){var t;return[(t={noninteractive:!this.interactive},Object(o.a)(t,"b-".concat(this.templateType,"-").concat(this.variant),this.variant),Object(o.a)(t,"bs-".concat(this.templateType,"-").concat(this.attachment),this.attachment),t),this.customClass]},templateAttributes:function(){return function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?mc(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):mc(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({id:this.id,role:"tooltip",tabindex:"-1"},this.scopedStyleAttrs)},templateListeners:function(){var t=this;return{mouseenter:function(e){t.$emit("mouseenter",e)},mouseleave:function(e){t.$emit("mouseleave",e)},focusin:function(e){t.$emit("focusin",e)},focusout:function(e){t.$emit("focusout",e)}}}},methods:{renderTemplate:function(t){var e=Object(x.e)(this.title)?this.title({}):Object(x.l)(this.title)?t():this.title,n=this.html&&!Object(x.e)(this.title)?{innerHTML:this.title}:{};return t("div",{staticClass:"tooltip b-tooltip",class:this.templateClasses,attrs:this.templateAttributes,on:this.templateListeners},[t("div",{ref:"arrow",staticClass:"arrow"}),t("div",{staticClass:"tooltip-inner",domProps:n},[e])])}}});function yc(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function wc(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?yc(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):yc(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Oc={title:"",content:"",variant:null,customClass:null,triggers:"",placement:"auto",fallbackPlacement:"flip",target:null,container:null,noFade:!1,boundary:"scrollParent",boundaryPadding:5,offset:0,delay:0,arrowPadding:6,interactive:!0,disabled:!1,id:null,html:!1},kc=l.a.extend({name:"BVTooltip",props:{},data:function(){return wc({},Oc,{activeTrigger:{hover:!1,click:!1,focus:!1},localShow:!1})},computed:{templateType:function(){return"tooltip"},computedId:function(){return this.id||"__bv_".concat(this.templateType,"_").concat(this._uid,"__")},computedDelay:function(){var t={show:0,hide:0};return Object(object.k)(this.delay)?(t.show=Math.max(parseInt(this.delay.show,10)||0,0),t.hide=Math.max(parseInt(this.delay.hide,10)||0,0)):(Object(x.g)(this.delay)||Object(x.j)(this.delay))&&(t.show=t.hide=Math.max(parseInt(this.delay,10)||0,0)),t},computedTriggers:function(){return Object(j.b)(this.triggers).filter(Boolean).join(" ").trim().toLowerCase().split(/\s+/).sort()},isWithActiveTrigger:function(){for(var t in this.activeTrigger)if(this.activeTrigger[t])return!0;return!1},computedTemplateData:function(){return{title:this.title,content:this.content,variant:this.variant,customClass:this.customClass,noFade:this.noFade,interactive:this.interactive}}},watch:{computedTriggers:function(t,e){var n=this;Ce(t,e)||this.$nextTick((function(){n.unListen(),e.forEach((function(e){Object(j.a)(t,e)||n.activeTrigger[e]&&(n.activeTrigger[e]=!1)})),n.listen()}))},computedTemplateData:function(){this.handleTemplateUpdate()},disabled:function(t){t?this.disable():this.enable()}},created:function(){var t=this;this.$_tip=null,this.$_hoverTimeout=null,this.$_hoverState="",this.$_visibleInterval=null,this.$_enabled=!this.disabled,this.$_noop=or.bind(this),this.$parent&&this.$parent.$once("hook:beforeDestroy",this.$destroy),this.$nextTick((function(){var e=t.getTarget();e&&R(document.body,e)?(t.scopeId=Ul(t.$parent),t.listen()):Object(ir.a)("Unable to find target element in document.",t.templateType)}))},updated:function(){this.$nextTick(this.handleTemplateUpdate)},deactivated:function(){this.forceHide()},beforeDestroy:function(){this.unListen(),this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.clearVisibilityInterval(),this.destroyTemplate()},methods:{getTemplate:function(){return gc},updateData:function(){var t=this,data=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!1;Object(object.l)(Oc).forEach((function(n){Object(x.k)(data[n])||t[n]===data[n]||(t[n]=data[n],"title"===n&&(e=!0))})),e&&this.localShow&&this.fixTitle()},createTemplateAndShow:function(){var t=this.getContainer(),e=this.getTemplate(),n=this.$_tip=new e({parent:this,propsData:{id:this.computedId,html:this.html,placement:this.placement,fallbackPlacement:this.fallbackPlacement,target:this.getPlacementTarget(),boundary:this.getBoundary(),offset:parseInt(this.offset,10)||0,arrowPadding:parseInt(this.arrowPadding,10)||0,boundaryPadding:parseInt(this.boundaryPadding,10)||0}});this.handleTemplateUpdate(),n.$once("show",this.onTemplateShow),n.$once("shown",this.onTemplateShown),n.$once("hide",this.onTemplateHide),n.$once("hidden",this.onTemplateHidden),n.$once("hook:destroyed",this.destroyTemplate),n.$on("focusin",this.handleEvent),n.$on("focusout",this.handleEvent),n.$on("mouseenter",this.handleEvent),n.$on("mouseleave",this.handleEvent),n.$mount(t.appendChild(document.createElement("div")))},hideTemplate:function(){this.$_tip&&this.$_tip.hide(),this.clearActiveTriggers(),this.$_hoverState=""},destroyTemplate:function(){this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.localPlacementTarget=null;try{this.$_tip&&this.$_tip.$destroy()}catch(t){}this.$_tip=null,this.removeAriaDescribedby(),this.restoreTitle(),this.localShow=!1},getTemplateElement:function(){return this.$_tip?this.$_tip.$el:null},handleTemplateUpdate:function(){var t=this,e=this.$_tip;if(e){["title","content","variant","customClass","noFade","interactive"].forEach((function(n){e[n]!==t[n]&&(e[n]=t[n])}))}},show:function(){var t=this.getTarget();if(t&&R(document.body,t)&&D(t)&&!this.dropdownOpen()&&(!Object(x.l)(this.title)&&""!==this.title||!Object(x.l)(this.content)&&""!==this.content)&&!this.$_tip&&!this.localShow){this.localShow=!0;var e=this.buildEvent("show",{cancelable:!0});this.emitEvent(e),e.defaultPrevented?this.destroyTemplate():(this.fixTitle(),this.addAriaDescribedby(),this.createTemplateAndShow())}},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.getTemplateElement();if(e&&this.localShow){var n=this.buildEvent("hide",{cancelable:!t});this.emitEvent(n),n.defaultPrevented||this.hideTemplate()}else this.restoreTitle()},forceHide:function(){this.getTemplateElement()&&this.localShow&&(this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.$_tip&&(this.$_tip.noFade=!0),this.hide(!0))},enable:function(){this.$_enabled=!0,this.emitEvent(this.buildEvent("enabled"))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent("disabled"))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var t=this.$_hoverState;this.$_hoverState="","out"===t&&this.leave(null),this.emitEvent(this.buildEvent("shown"))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent("hidden"))},getTarget:function(){var t=this.target?this.target.$el||this.target:null;return t=Object(x.j)(t)?$(t.replace(/^#/,"")):t,t=Object(x.e)(t)?t():t,z(t)?t:null},getPlacementTarget:function(){return this.getTarget()},getTargetId:function(){var t=this.getTarget();return t&&t.id?t.id:null},getContainer:function(){var t=!!this.container&&(this.container.$el||this.container),body=document.body,e=this.getTarget();return!1===t?F(".modal-content",e)||body:Object(x.j)(t)&&$(t.replace(/^#/,""))||body},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var t=this.getTarget();return t&&F(".modal-content",t)},isDropdown:function(){var t=this.getTarget();return t&&W(t,"dropdown")},dropdownOpen:function(){var t=this.getTarget();return this.isDropdown()&&t&&H(".dropdown-menu.show",t)},clearHoverTimeout:function(){this.$_hoverTimeout&&(clearTimeout(this.$_hoverTimeout),this.$_hoverTimeout=null)},clearVisibilityInterval:function(){this.$_visibleInterval&&(clearInterval(this.$_visibleInterval),this.$_visibleInterval=null)},clearActiveTriggers:function(){for(var t in this.activeTrigger)this.activeTrigger[t]=!1},addAriaDescribedby:function(){var t=this.getTarget(),desc=Z(t,"aria-describedby")||"";desc=desc.split(/\s+/).concat(this.computedId).join(" ").trim(),G(t,"aria-describedby",desc)},removeAriaDescribedby:function(){var t=this,e=this.getTarget(),desc=Z(e,"aria-describedby")||"";(desc=desc.split(/\s+/).filter((function(e){return e!==t.computedId})).join(" ").trim())?G(e,"aria-describedby",desc):K(e,"aria-describedby")},fixTitle:function(){var t=this.getTarget();t&&Z(t,"title")&&(G(t,"data-original-title",Z(t,"title")||""),G(t,"title",""))},restoreTitle:function(){var t=this.getTarget();t&&X(t,"data-original-title")&&(G(t,"title",Z(t,"data-original-title")||""),K(t,"data-original-title"))},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Vr(t,wc({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},e))},emitEvent:function(t){var e=t.type,n=this.$root;n&&n.$emit&&n.$emit("bv::".concat(this.templateType,"::").concat(e),t),this.$emit(e,t)},listen:function(){var t=this,e=this.getTarget();e&&(this.setRootListener(!0),this.computedTriggers.forEach((function(n){"click"===n?dr(e,"click",t.handleEvent,cr):"focus"===n?(dr(e,"focusin",t.handleEvent,cr),dr(e,"focusout",t.handleEvent,cr)):"blur"===n?dr(e,"focusout",t.handleEvent,cr):"hover"===n&&(dr(e,"mouseenter",t.handleEvent,cr),dr(e,"mouseleave",t.handleEvent,cr))}),this))},unListen:function(){var t=this,e=this.getTarget();this.setRootListener(!1),["click","focusin","focusout","mouseenter","mouseleave"].forEach((function(n){e&&fr(e,n,t.handleEvent,cr)}),this)},setRootListener:function(t){var e=this.$root;if(e){var n=t?"$on":"$off",r=this.templateType;e[n]("bv::hide::".concat(r),this.doHide),e[n]("bv::show::".concat(r),this.doShow),e[n]("bv::disable::".concat(r),this.doDisable),e[n]("bv::enable::".concat(r),this.doEnable)}},setWhileOpenListeners:function(t){this.setModalListener(t),this.setDropdownListener(t),this.visibleCheck(t),this.setOnTouchStartListener(t)},visibleCheck:function(t){var e=this;this.clearVisibilityInterval();var n=this.getTarget(),r=this.getTemplateElement();t&&(this.$_visibleInterval=setInterval((function(){!r||!e.localShow||n.parentNode&&D(n)||e.forceHide()}),100))},setModalListener:function(t){this.isInModal()&&this.$root[t?"$on":"$off"]("bv::modal::hidden",this.forceHide)},setOnTouchStartListener:function(t){var e=this;"ontouchstart"in document.documentElement&&Object(j.c)(document.body.children).forEach((function(n){pr(t,n,"mouseover",e.$_noop)}))},setDropdownListener:function(t){var e=this.getTarget();e&&this.$root&&this.isDropdown&&e.__vue__&&e.__vue__[t?"$on":"$off"]("shown",this.forceHide)},handleEvent:function(t){var e=this.getTarget();if(e&&!L(e)&&this.$_enabled&&!this.dropdownOpen()){var n=t.type,r=this.computedTriggers;if("click"===n&&Object(j.a)(r,"click"))this.click(t);else if("mouseenter"===n&&Object(j.a)(r,"hover"))this.enter(t);else if("focusin"===n&&Object(j.a)(r,"focus"))this.enter(t);else if("focusout"===n&&(Object(j.a)(r,"focus")||Object(j.a)(r,"blur"))||"mouseleave"===n&&Object(j.a)(r,"hover")){var o=this.getTemplateElement(),l=t.target,c=t.relatedTarget;if(o&&R(o,l)&&R(e,c)||o&&R(e,l)&&R(o,c)||o&&R(o,l)&&R(o,c)||R(e,l)&&R(e,c))return;this.leave(t)}}},doHide:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.forceHide()},doShow:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.show()},doDisable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.disable()},doEnable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.enable()},click:function(){this.$_enabled&&!this.dropdownOpen()&&(this.activeTrigger.click=!this.activeTrigger.click,this.isWithActiveTrigger?this.enter(null):this.leave(null))},toggle:function(){this.$_enabled&&!this.dropdownOpen()&&(this.localShow?this.leave(null):this.enter(null))},enter:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusin"===e.type?"focus":"hover"]=!0),this.localShow||"in"===this.$_hoverState?this.$_hoverState="in":(this.clearHoverTimeout(),this.$_hoverState="in",this.computedDelay.show?(this.fixTitle(),this.$_hoverTimeout=setTimeout((function(){"in"===t.$_hoverState?t.show():t.localShow||t.restoreTitle()}),this.computedDelay.show)):this.show())},leave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusout"===e.type?"focus":"hover"]=!1,"focusout"===e.type&&Object(j.a)(this.computedTriggers,"blur")&&(this.activeTrigger.click=!1,this.activeTrigger.hover=!1)),this.isWithActiveTrigger||(this.clearHoverTimeout(),this.$_hoverState="out",this.computedDelay.hide?this.$_hoverTimeout=setTimeout((function(){"out"===t.$_hoverState&&t.hide()}),this.computedDelay.hide):this.hide())}}}),Sc=l.a.extend({name:"BTooltip",props:{title:{type:String},target:{type:[String,Fr.b,Fr.c,Function,Object],required:!0},triggers:{type:[String,Array],default:"hover focus"},placement:{type:String,default:"top"},fallbackPlacement:{type:[String,Array],default:"flip",validator:function(t){return Object(j.d)(t)&&t.every((function(t){return Object(x.j)(t)}))||Object(j.a)(["flip","clockwise","counterclockwise"],t)}},variant:{type:String,default:function(){return y("BTooltip","variant")}},customClass:{type:String,default:function(){return y("BTooltip","customClass")}},delay:{type:[Number,Object,String],default:function(){return y("BTooltip","delay")}},boundary:{type:[String,Fr.b,Object],default:function(){return y("BTooltip","boundary")}},boundaryPadding:{type:[Number,String],default:function(){return y("BTooltip","boundaryPadding")}},offset:{type:[Number,String],default:0},noFade:{type:Boolean,default:!1},container:{type:[String,Fr.b,Object]},show:{type:Boolean,default:!1},noninteractive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},data:function(){return{localShow:this.show,localTitle:"",localContent:""}},computed:{templateData:function(){return{title:this.localTitle,content:this.localContent,target:this.target,triggers:this.triggers,placement:this.placement,fallbackPlacement:this.fallbackPlacement,variant:this.variant,customClass:this.customClass,container:this.container,boundary:this.boundary,boundaryPadding:this.boundaryPadding,delay:this.delay,offset:this.offset,noFade:this.noFade,interactive:!this.noninteractive,disabled:this.disabled,id:this.id}},templateTitleContent:function(){return{title:this.title,content:this.content}}},watch:{show:function(t,e){t!==e&&t!==this.localShow&&this.$_bv_toolpop&&(t?this.$_bv_toolpop.show():this.$_bv_toolpop.forceHide())},disabled:function(t){t?this.doDisable():this.doEnable()},localShow:function(t){this.$emit("update:show",t)},templateData:function(){var t=this;this.$nextTick((function(){t.$_bv_toolpop&&t.$_bv_toolpop.updateData(t.templateData)}))},templateTitleContent:function(){this.$nextTick(this.updateContent)}},created:function(){this.$_bv_toolpop=null},updated:function(){this.$nextTick(this.updateContent)},beforeDestroy:function(){this.$off("open",this.doOpen),this.$off("close",this.doClose),this.$off("disable",this.doDisable),this.$off("enable",this.doEnable),this.$_bv_toolpop&&this.$_bv_toolpop.$destroy(),this.$_bv_toolpop=null},mounted:function(){var t=this;this.$nextTick((function(){var e=t.getComponent();t.updateContent();var n=Ul(t)||Ul(t.$parent),r=t.$_bv_toolpop=new e({parent:t,_scopeId:n||void 0});r.updateData(t.templateData),r.$on("show",t.onShow),r.$on("shown",t.onShown),r.$on("hide",t.onHide),r.$on("hidden",t.onHidden),r.$on("disabled",t.onDisabled),r.$on("enabled",t.onEnabled),t.disabled&&t.doDisable(),t.$on("open",t.doOpen),t.$on("close",t.doClose),t.$on("disable",t.doDisable),t.$on("enable",t.doEnable),t.localShow&&t.$_bv_toolpop&&t.$_bv_toolpop.show()}))},methods:{getComponent:function(){return kc},updateContent:function(){this.setTitle(this.$scopedSlots.default||this.title)},setTitle:function(t){t=Object(x.l)(t)?"":t,this.localTitle!==t&&(this.localTitle=t)},setContent:function(t){t=Object(x.l)(t)?"":t,this.localContent!==t&&(this.localContent=t)},onShow:function(t){this.$emit("show",t),t&&(this.localShow=!t.defaultPrevented)},onShown:function(t){this.localShow=!0,this.$emit("shown",t)},onHide:function(t){this.$emit("hide",t)},onHidden:function(t){this.$emit("hidden",t),this.localShow=!1},onDisabled:function(t){t&&"disabled"===t.type&&(this.$emit("update:disabled",!0),this.$emit("disabled",t))},onEnabled:function(t){t&&"enabled"===t.type&&(this.$emit("update:disabled",!1),this.$emit("enabled",t))},doOpen:function(){!this.localShow&&this.$_bv_toolpop&&this.$_bv_toolpop.show()},doClose:function(){this.localShow&&this.$_bv_toolpop&&this.$_bv_toolpop.hide()},doDisable:function(){this.$_bv_toolpop&&this.$_bv_toolpop.disable()},doEnable:function(){this.$_bv_toolpop&&this.$_bv_toolpop.enable()}},render:function(t){return t()}}),jc=l.a.extend({name:"BVPopoverTemplate",extends:gc,computed:{templateType:function(){return"popover"}},methods:{renderTemplate:function(t){var e=Object(x.e)(this.title)?this.title({}):this.title,n=Object(x.e)(this.content)?this.content({}):this.content,r=this.html&&!Object(x.e)(this.title)?{innerHTML:this.title}:{},o=this.html&&!Object(x.e)(this.content)?{innerHTML:this.content}:{};return t("div",{staticClass:"popover b-popover",class:this.templateClasses,attrs:this.templateAttributes,on:this.templateListeners},[t("div",{ref:"arrow",staticClass:"arrow"}),Object(x.l)(e)||""===e?t():t("h3",{staticClass:"popover-header",domProps:r},[e]),Object(x.l)(n)||""===n?t():t("div",{staticClass:"popover-body",domProps:o},[n])])}}}),_c=l.a.extend({name:"BVPopover",extends:kc,computed:{templateType:function(){return"popover"}},methods:{getTemplate:function(){return jc}}}),xc=l.a.extend({name:"BPopover",extends:Sc,inheritAttrs:!1,props:{title:{type:String},content:{type:String},triggers:{type:[String,Array],default:"click"},placement:{type:String,default:"right"},variant:{type:String,default:function(){return y("BPopover","variant")}},customClass:{type:String,default:function(){return y("BPopover","customClass")}},delay:{type:[Number,Object,String],default:function(){return y("BPopover","delay")}},boundary:{type:[String,Fr.b,Object],default:function(){return y("BPopover","boundary")}},boundaryPadding:{type:[Number,String],default:function(){return y("BPopover","boundaryPadding")}}},methods:{getComponent:function(){return _c},updateContent:function(){this.setContent(this.$scopedSlots.default||this.content),this.setTitle(this.$scopedSlots.title||this.title)}}});function Tc(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var Bc="__BV_Popover__",Cc={focus:!0,hover:!0,click:!0,blur:!0,manual:!0},Pc=/^html$/i,Mc=/^nofade$/i,qc=/^(auto|top(left|right)?|bottom(left|right)?|left(top|bottom)?|right(top|bottom)?)$/i,Ec=/^(window|viewport|scrollParent)$/i,Ac=/^d\d+$/i,zc=/^ds\d+$/i,Dc=/^dh\d+$/i,Lc=/^o-?\d+$/i,Ic=/^v-.+$/i,Nc=/\s+/,Hc=function(t,e){var n="BPopover",r={title:void 0,content:void 0,trigger:"",placement:"right",fallbackPlacement:"flip",container:!1,animation:!0,offset:0,disabled:!1,id:null,html:!1,delay:y(n,"delay"),boundary:String(y(n,"boundary")),boundaryPadding:parseInt(y(n,"boundaryPadding"),10)||0,variant:y(n,"variant"),customClass:y(n,"customClass")};if(Object(x.j)(t.value)||Object(x.g)(t.value)||Object(x.e)(t.value)?r.content=t.value:Object(object.k)(t.value)&&(r=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Tc(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Tc(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},r,{},t.value)),t.arg&&(r.container="#".concat(t.arg)),Object(x.k)(r.title)){var data=e.data||{};r.title=data.attrs&&!Object(x.l)(data.attrs.title)?data.attrs.title:void 0}Object(object.k)(r.delay)||(r.delay={show:parseInt(r.delay,10)||0,hide:parseInt(r.delay,10)||0}),Object(object.l)(t.modifiers).forEach((function(t){if(Pc.test(t))r.html=!0;else if(Mc.test(t))r.animation=!1;else if(qc.test(t))r.placement=t;else if(Ec.test(t))t="scrollparent"===t?"scrollParent":t,r.boundary=t;else if(Ac.test(t)){var e=parseInt(t.slice(1),10)||0;r.delay.show=e,r.delay.hide=e}else zc.test(t)?r.delay.show=parseInt(t.slice(2),10)||0:Dc.test(t)?r.delay.hide=parseInt(t.slice(2),10)||0:Lc.test(t)?r.offset=parseInt(t.slice(1),10)||0:Ic.test(t)&&(r.variant=t.slice(2)||null)}));var l={};return Object(j.b)(r.trigger||"").filter(ht.a).join(" ").trim().toLowerCase().split(Nc).forEach((function(t){Cc[t]&&(l[t]=!0)})),Object(object.l)(t.modifiers).forEach((function(t){t=t.toLowerCase(),Cc[t]&&(l[t]=!0)})),r.trigger=Object(object.l)(l).join(" "),"blur"===r.trigger&&(r.trigger="focus"),r.trigger||(r.trigger="click"),r},Vc=function(t,e,n){if(_.j){var r=Hc(e,n);if(!t[Bc]){var o=n.context;t[Bc]=new _c({parent:o,_scopeId:Ul(o,void 0)}),t[Bc].__bv_prev_data__={},t[Bc].$on("show",(function(){var data={};Object(x.e)(r.title)&&(data.title=r.title(t)),Object(x.e)(r.content)&&(data.content=r.content(t)),Object(object.l)(data).length>0&&t[Bc].updateData(data)}))}var data={title:r.title,content:r.content,triggers:r.trigger,placement:r.placement,fallbackPlacement:r.fallbackPlacement,variant:r.variant,customClass:r.customClass,container:r.container,boundary:r.boundary,delay:r.delay,offset:r.offset,noFade:!r.animation,id:r.id,disabled:r.disabled,html:r.html},l=t[Bc].__bv_prev_data__;if(t[Bc].__bv_prev_data__=data,!Ce(data,l)){var c={target:t};Object(object.l)(data).forEach((function(e){data[e]!==l[e]&&(c[e]="title"!==e&&"content"!==e||!Object(x.e)(data[e])?data[e]:data[e](t))})),t[Bc].updateData(c)}}},Fc={bind:function(t,e,n){Vc(t,e,n)},componentUpdated:function(t,e,n){n.context.$nextTick((function(){Vc(t,e,n)}))},unbind:function(t){!function(t){t[Bc]&&(t[Bc].$destroy(),t[Bc]=null),delete t[Bc]}(t)}},Rc=Object(r.b)({directives:{VBPopover:Fc}}),$c=Object(r.b)({components:{BPopover:xc},plugins:{VBPopoverPlugin:Rc}}),Uc=l.a.extend({name:"BProgressBar",mixins:[vt],inject:{bvProgress:{default:function(){return{}}}},props:{value:{type:[Number,String],default:0},label:{type:String,default:null},labelHtml:{type:String},max:{type:[Number,String],default:null},precision:{type:[Number,String],default:null},variant:{type:String,default:function(){return y("BProgressBar","variant")}},striped:{type:Boolean,default:null},animated:{type:Boolean,default:null},showProgress:{type:Boolean,default:null},showValue:{type:Boolean,default:null}},computed:{progressBarClasses:function(){return[this.computedVariant?"bg-".concat(this.computedVariant):"",this.computedStriped||this.computedAnimated?"progress-bar-striped":"",this.computedAnimated?"progress-bar-animated":""]},progressBarStyles:function(){return{width:this.computedValue/this.computedMax*100+"%"}},computedValue:function(){return Object(ot.b)(this.value)||0},computedMax:function(){var t=Object(ot.b)(this.max);return isNaN(t)?Object(ot.b)(this.bvProgress.max)||100:t},computedPrecision:function(){var t=Object(ot.c)(this.precision);return isNaN(t)?Object(ot.c)(this.bvProgress.precision)||0:t},computedProgress:function(){var t=this.computedPrecision,p=Math.pow(10,t);return Object(ot.a)(100*p*this.computedValue/this.computedMax/p,t)},computedVariant:function(){return this.variant||this.bvProgress.variant},computedStriped:function(){return Object(x.a)(this.striped)?this.striped:this.bvProgress.striped||!1},computedAnimated:function(){return Object(x.a)(this.animated)?this.animated:this.bvProgress.animated||!1},computedShowProgress:function(){return Object(x.a)(this.showProgress)?this.showProgress:this.bvProgress.showProgress||!1},computedShowValue:function(){return Object(x.a)(this.showValue)?this.showValue:this.bvProgress.showValue||!1}},render:function(t){var e=t();return this.hasNormalizedSlot("default")?e=this.normalizeSlot("default"):this.label||this.labelHtml?e=t("span",{domProps:Kt(this.labelHtml,this.label)}):this.computedShowProgress?e=this.computedProgress:this.computedShowValue&&(e=Object(ot.a)(this.computedValue,this.computedPrecision)),t("div",{staticClass:"progress-bar",class:this.progressBarClasses,style:this.progressBarStyles,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":Object(xt.f)(this.computedMax),"aria-valuenow":Object(ot.a)(this.computedValue,this.computedPrecision)}},[e])}}),Yc=l.a.extend({name:"BProgress",mixins:[vt],provide:function(){return{bvProgress:this}},props:{variant:{type:String,default:function(){return y("BProgress","variant")}},striped:{type:Boolean,default:!1},animated:{type:Boolean,default:!1},height:{type:String,default:null},precision:{type:[Number,String],default:0},showProgress:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0}},computed:{progressHeight:function(){return{height:this.height||null}}},render:function(t){var e=this.normalizeSlot("default");return e||(e=t(Uc,{props:{value:this.value,max:this.max,precision:this.precision,variant:this.variant,animated:this.animated,striped:this.striped,showProgress:this.showProgress,showValue:this.showValue}})),t("div",{class:["progress"],style:this.progressHeight},[e])}}),Wc=Object(r.b)({components:{BProgress:Yc,BProgressBar:Uc}}),Gc=Object(r.b)({components:{BSpinner:Ks}}),Kc={methods:{hasListener:function(t){var e=this.$listeners||{},n=this._events||{};return!Object(x.k)(e[t])||Object(j.d)(n[t])&&n[t].length>0}}},Zc=/_/g,Xc=/([a-z])([A-Z])/g,Jc=/(\s|^)(\w)/g,Qc=function(t){return t.replace(Zc," ").replace(Xc,(function(t,e,n){return e+" "+n})).replace(Jc,(function(t,e,n){return e+n.toUpperCase()}))},tu={_rowVariant:!0,_cellVariants:!0,_showDetails:!0},eu=["a","a *","button","button *","input:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])","textarea:not(.disabled):not([disabled])",'[role="link"]','[role="link"] *','[role="button"]','[role="button"] *',"[tabindex]:not(.disabled):not([disabled])"].join(","),nu=function(t,e){var n=[];if(Object(j.d)(t)&&t.filter(ht.a).forEach((function(t){if(Object(x.j)(t))n.push({key:t,label:Qc(t)});else if(Object(object.j)(t)&&t.key&&Object(x.j)(t.key))n.push(Object(object.b)(t));else if(Object(object.j)(t)&&1===Object(object.l)(t).length){var e=Object(object.l)(t)[0],r=function(t,e){var n=null;return Object(x.j)(e)?n={key:t,label:e}:Object(x.e)(e)?n={key:t,formatter:e}:Object(object.j)(e)?(n=Object(object.b)(e)).key=n.key||t:!1!==e&&(n={key:t}),n}(e,t[e]);r&&n.push(r)}})),0===n.length&&Object(j.d)(e)&&e.length>0){var r=e[0];Object(object.l)(r).forEach((function(t){tu[t]||n.push({key:t,label:Qc(t)})}))}var o={};return n.filter((function(t){return!o[t.key]&&(o[t.key]=!0,t.label=Object(x.j)(t.label)?t.label:Qc(t.key),!0)}))},ru={props:{items:{type:Array,default:function(){return[]}},fields:{type:Array,default:null},primaryKey:{type:String,default:null},value:{type:Array,default:function(){return[]}}},data:function(){return{localItems:Object(j.d)(this.items)?this.items.slice():[]}},computed:{computedFields:function(){return nu(this.fields,this.localItems)},computedFieldsObj:function(){var t=this.$parent;return this.computedFields.reduce((function(e,n){if(e[n.key]=Object(object.b)(n),n.formatter){var r=n.formatter;Object(x.j)(r)&&Object(x.e)(t[r])?r=t[r]:Object(x.e)(r)||(r=void 0),e[n.key].formatter=r}return e}),{})},computedItems:function(){return(this.paginatedItems||this.sortedItems||this.filteredItems||this.localItems||[]).slice()},context:function(){return{filter:this.localFilter,sortBy:this.localSortBy,sortDesc:this.localSortDesc,perPage:parseInt(this.perPage,10)||0,currentPage:parseInt(this.currentPage,10)||1,apiUrl:this.apiUrl}}},watch:{items:function(t){Object(j.d)(t)?this.localItems=t.slice():Object(x.l)(t)&&(this.localItems=[])},computedItems:function(t){this.$emit("input",t)},context:function(t,e){Ce(t,e)||this.$emit("context-changed",t)}},mounted:function(){this.$emit("input",this.computedItems)},methods:{getFieldFormatter:function(t){var e=this.computedFieldsObj[t];return e?e.formatter:void 0}}},ou={props:{stacked:{type:[Boolean,String],default:!1}},computed:{isStacked:function(){return""===this.stacked||this.stacked},isStackedAlways:function(){return!0===this.isStacked},stackedTableClasses:function(){return Object(o.a)({"b-table-stacked":this.isStackedAlways},"b-table-stacked-".concat(this.stacked),!this.isStackedAlways&&this.isStacked)}}},iu=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(object.l)(t).reduce((function(o,l){if(!tu[l]&&!(e&&e.length>0&&Object(j.a)(e,l))&&(!(n&&n.length>0)||Object(j.a)(n,l))){var c=r[l]||{},d=t[l],f=c.filterByFormatted,h=Object(x.e)(f)?f:f?c.formatter:null;o[l]=Object(x.e)(h)?h(d,l,t):d}return o}),{})},au=function t(e){return Object(x.l)(e)?"":Object(object.j)(e)&&!Object(x.b)(e)?Object(object.l)(e).sort().filter((function(t){return!Object(x.l)(t)})).map((function(n){return t(e[n])})).join(" "):Object(xt.f)(e)},lu=function(t,e,n,r){return Object(object.j)(t)?au(iu(t,e,n,r)):""},su='Prop "filter-debounce" is deprecated. Use the debounce feature of "<b-form-input>" instead.',cu=/[\s\uFEFF\xA0]+/g,uu={props:{filter:{type:[String,RegExp,Object,Array],default:null},filterFunction:{type:Function,default:null},filterIgnoredFields:{type:Array},filterIncludedFields:{type:Array},filterDebounce:{type:[Number,String],deprecated:su,default:0,validator:function(t){return/^\d+/.test(String(t))}}},data:function(){return{isFiltered:!1,localFilter:this.filterSanitize(this.filter)}},computed:{computedFilterIgnored:function(){return this.filterIgnoredFields?Object(j.b)(this.filterIgnoredFields).filter(Boolean):null},computedFilterIncluded:function(){return this.filterIncludedFields?Object(j.b)(this.filterIncludedFields).filter(Boolean):null},computedFilterDebounce:function(){var t=Object(ot.c)(this.filterDebounce)||0;return t>0&&Object(ir.a)(su,"BTable"),t},localFiltering:function(){return!this.hasProvider||!!this.noProviderFiltering},filteredCheck:function(){return{filteredItems:this.filteredItems,localItems:this.localItems,localFilter:this.localFilter}},localFilterFn:function(){return Object(x.e)(this.filterFunction)?this.filterFunction:null},filteredItems:function(){var t=this.localItems||[],e=this.localFilter,n=this.localFiltering?this.filterFnFactory(this.localFilterFn,e)||this.defaultFilterFnFactory(e):null;return n&&t.length>0?t.filter(n):t}},watch:{computedFilterDebounce:function(t){!t&&this.$_filterTimer&&(clearTimeout(this.$_filterTimer),this.$_filterTimer=null,this.localFilter=this.filterSanitize(this.filter))},filter:{deep:!0,handler:function(t){var e=this,n=this.computedFilterDebounce;clearTimeout(this.$_filterTimer),this.$_filterTimer=null,n&&n>0?this.$_filterTimer=setTimeout((function(){e.localFilter=e.filterSanitize(t)}),n):this.localFilter=this.filterSanitize(t)}},filteredCheck:function(t){var e=t.filteredItems,n=t.localFilter,r=!1;n?Ce(n,[])||Ce(n,{})?r=!1:n&&(r=!0):r=!1,r&&this.$emit("filtered",e,e.length),this.isFiltered=r},isFiltered:function(t,e){!1===t&&!0===e&&this.$emit("filtered",this.localItems,this.localItems.length)}},created:function(){var t=this;this.$_filterTimer=null,this.$nextTick((function(){t.isFiltered=Boolean(t.localFilter)}))},beforeDestroy:function(){clearTimeout(this.$_filterTimer),this.$_filterTimer=null},methods:{filterSanitize:function(t){return!this.localFiltering||this.localFilterFn||Object(x.j)(t)||Object(x.i)(t)?Object(c.a)(t):""},filterFnFactory:function(t,e){if(!t||!Object(x.e)(t)||!e||Ce(e,[])||Ce(e,{}))return null;return function(n){return t(n,e)}},defaultFilterFnFactory:function(t){var e=this;if(!t||!Object(x.j)(t)&&!Object(x.i)(t))return null;var n=t;if(Object(x.j)(n)){var pattern=Object(xt.a)(t).replace(cu,"\\s+");n=new RegExp(".*".concat(pattern,".*"),"i")}return function(t){return n.lastIndex=0,n.test(lu(t,e.computedFilterIgnored,e.computedFilterIncluded,e.computedFieldsObj))}}}},du=function(t,e){return t.map((function(a,t){return[t,a]})).sort(function(a,b){return this(a[1],b[1])||a[0]-b[0]}.bind(e)).map((function(t){return t[1]}))},fu=function(a,b,t,e,n,r,o,l){var c=Object(d.a)(a,t,null),f=Object(d.a)(b,t,null);return Object(x.e)(n)&&(c=n(c,t,a),f=n(f,t,b)),c=Object(x.l)(c)?"":c,f=Object(x.l)(f)?"":f,Object(x.b)(c)&&Object(x.b)(f)||Object(x.g)(c)&&Object(x.g)(f)?c<f?-1:c>f?1:0:l&&""===c&&""!==f?1:l&&""!==c&&""===f?-1:au(c).localeCompare(au(f),o,r)};function hu(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var pu={props:{sortBy:{type:String,default:""},sortDesc:{type:Boolean,default:!1},sortDirection:{type:String,default:"asc",validator:function(t){return Object(j.a)(["asc","desc","last"],t)}},sortCompare:{type:Function,default:null},sortCompareOptions:{type:Object,default:function(){return{numeric:!0}}},sortCompareLocale:{type:[String,Array]},sortNullLast:{type:Boolean,default:!1},noSortReset:{type:Boolean,default:!1},labelSortAsc:{type:String,default:"Click to sort Ascending"},labelSortDesc:{type:String,default:"Click to sort Descending"},labelSortClear:{type:String,default:"Click to clear sorting"},noLocalSorting:{type:Boolean,default:!1},noFooterSorting:{type:Boolean,default:!1},sortIconLeft:{type:Boolean,default:!1}},data:function(){return{localSortBy:this.sortBy||"",localSortDesc:this.sortDesc||!1}},computed:{localSorting:function(){return this.hasProvider?!!this.noProviderSorting:!this.noLocalSorting},isSortable:function(){return this.computedFields.some((function(t){return t.sortable}))},sortedItems:function(){var t=(this.filteredItems||this.localItems||[]).slice(),e=this.localSortBy,n=this.localSortDesc,r=this.sortCompare,l=this.localSorting,c=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?hu(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):hu(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},this.sortCompareOptions,{usage:"sort"}),d=this.sortCompareLocale||void 0,f=this.sortNullLast;if(e&&l){var h=(this.computedFieldsObj[e]||{}).sortByFormatted,v=Object(x.e)(h)?h:h?this.getFieldFormatter(e):void 0;return du(t,(function(a,b){var t=null;return Object(x.e)(r)&&(t=r(a,b,e,n,v,c,d)),(Object(x.l)(t)||!1===t)&&(t=fu(a,b,e,n,v,c,d,f)),(t||0)*(n?-1:1)}))}return t}},watch:{isSortable:function(t){t?this.isSortable&&this.$on("head-clicked",this.handleSort):this.$off("head-clicked",this.handleSort)},sortDesc:function(t){t!==this.localSortDesc&&(this.localSortDesc=t||!1)},sortBy:function(t){t!==this.localSortBy&&(this.localSortBy=t||"")},localSortDesc:function(t,e){t!==e&&this.$emit("update:sortDesc",t)},localSortBy:function(t,e){t!==e&&this.$emit("update:sortBy",t)}},created:function(){this.isSortable&&this.$on("head-clicked",this.handleSort)},methods:{handleSort:function(t,e,n,r){var o=this;if(this.isSortable&&(!r||!this.noFooterSorting)){var l=!1,c=function(){var t=e.sortDirection||o.sortDirection;"asc"===t?o.localSortDesc=!1:"desc"===t&&(o.localSortDesc=!0)};e.sortable?(t===this.localSortBy?this.localSortDesc=!this.localSortDesc:(this.localSortBy=t,c()),l=!0):this.localSortBy&&!this.noSortReset&&(this.localSortBy="",c(),l=!0),l&&this.$emit("sort-changed",this.context)}},sortTheadThClasses:function(t,e,n){return{"b-table-sort-icon-left":e.sortable&&this.sortIconLeft&&!(n&&this.noFooterSorting)}},sortTheadThAttrs:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return{};var r=e.sortable;return{"aria-sort":r&&this.localSortBy===t?this.localSortDesc?"descending":"ascending":r?"none":null}},sortTheadThLabel:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return null;var r="";if(e.sortable)if(this.localSortBy===t)r=this.localSortDesc?this.labelSortAsc:this.labelSortDesc;else{r=this.localSortDesc?this.labelSortDesc:this.labelSortAsc;var o=this.sortDirection||e.sortDirection;"asc"===o?r=this.labelSortAsc:"desc"===o&&(r=this.labelSortDesc)}else this.noSortReset||(r=this.localSortBy?this.labelSortClear:"");return Object(xt.g)(r)||null}}},bu={props:{perPage:{type:[Number,String],default:0},currentPage:{type:[Number,String],default:1}},computed:{localPaging:function(){return!this.hasProvider||!!this.noProviderPaging},paginatedItems:function(){var t=this.sortedItems||this.filteredItems||this.localItems||[],e=Math.max(parseInt(this.currentPage,10)||1,1),n=Math.max(parseInt(this.perPage,10)||0,0);return this.localPaging&&n&&(t=t.slice((e-1)*n,e*n)),t}}},vu={props:{caption:{type:String,default:null},captionHtml:{type:String}},computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var t=this.$createElement,e=this.normalizeSlot("table-caption"),n=t();if(e||this.caption||this.captionHtml){var data={key:"caption",attrs:{id:this.captionId}};e||(data.domProps=Kt(this.captionHtml,this.caption)),n=t("caption",data,[e])}return n}}},mu={methods:{renderColgroup:function(){var t=this.$createElement,e=this.computedFields,n=t();return this.hasNormalizedSlot("table-colgroup")&&(n=t("colgroup",{key:"colgroup"},[this.normalizeSlot("table-colgroup",{columns:e.length,fields:e})])),n}}},gu=["TD","TH","TR"],yu=function(t){if(!t||!t.target)return!1;var e=t.target;if(e.disabled||-1!==gu.indexOf(e.tagName))return!1;if(F(".dropdown-menu",e))return!0;var label="LABEL"===e.tagName?e:F("label",e);if(label){var n=Z(label,"for"),input=n?$(n):H("input, select, textarea",label);if(input&&!input.disabled)return!0}return V(e,eu)},wu=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=tt();return!!(e&&""!==e.toString().trim()&&e.containsNode&&z(t))&&e.containsNode(t,!0)};function Ou(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var ku={headVariant:{type:String,default:null}},Su=l.a.extend({name:"BThead",mixins:[vt],inheritAttrs:!1,provide:function(){return{bvTableRowGroup:this}},inject:{bvTable:{default:function(){return{}}}},props:ku,computed:{isThead:function(){return!0},isDark:function(){return this.bvTable.dark},isStacked:function(){return this.bvTable.isStacked},isResponsive:function(){return this.bvTable.isResponsive},isStickyHeader:function(){return!this.isStacked&&this.bvTable.stickyHeader},hasStickyHeader:function(){return!this.isStacked&&this.bvTable.stickyHeader},tableVariant:function(){return this.bvTable.tableVariant},theadClasses:function(){return[this.headVariant?"thead-".concat(this.headVariant):null]},theadAttrs:function(){return function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Ou(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Ou(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({role:"rowgroup"},this.$attrs)}},render:function(t){return t("thead",{class:this.theadClasses,attrs:this.theadAttrs,on:this.$listeners},this.normalizeSlot("default"))}});function ju(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var _u={footVariant:{type:String,default:null}},xu=l.a.extend({name:"BTfoot",mixins:[vt],inheritAttrs:!1,provide:function(){return{bvTableRowGroup:this}},inject:{bvTable:{default:function(){return{}}}},props:_u,computed:{isTfoot:function(){return!0},isDark:function(){return this.bvTable.dark},isStacked:function(){return this.bvTable.isStacked},isResponsive:function(){return this.bvTable.isResponsive},isStickyHeader:function(){return!1},hasStickyHeader:function(){return!this.isStacked&&this.bvTable.stickyHeader},tableVariant:function(){return this.bvTable.tableVariant},tfootClasses:function(){return[this.footVariant?"thead-".concat(this.footVariant):null]},tfootAttrs:function(){return function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ju(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):ju(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({role:"rowgroup"},this.$attrs)}},render:function(t){return t("tfoot",{class:this.tfootClasses,attrs:this.tfootAttrs,on:this.$listeners},this.normalizeSlot("default"))}});function Tu(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var Bu={variant:{type:String,default:null}},Cu=l.a.extend({name:"BTr",mixins:[vt],inheritAttrs:!1,provide:function(){return{bvTableTr:this}},inject:{bvTableRowGroup:{default:function(){return{}}}},props:Bu,computed:{inTbody:function(){return this.bvTableRowGroup.isTbody},inThead:function(){return this.bvTableRowGroup.isThead},inTfoot:function(){return this.bvTableRowGroup.isTfoot},isDark:function(){return this.bvTableRowGroup.isDark},isStacked:function(){return this.bvTableRowGroup.isStacked},isResponsive:function(){return this.bvTableRowGroup.isResponsive},isStickyHeader:function(){return this.bvTableRowGroup.isStickyHeader},hasStickyHeader:function(){return!this.isStacked&&this.bvTableRowGroup.hasStickyHeader},tableVariant:function(){return this.bvTableRowGroup.tableVariant},headVariant:function(){return this.inThead?this.bvTableRowGroup.headVariant:null},footVariant:function(){return this.inTfoot?this.bvTableRowGroup.footVariant:null},isRowDark:function(){return"light"!==this.headVariant&&"light"!==this.footVariant&&("dark"===this.headVariant||"dark"===this.footVariant||this.isDark)},trClasses:function(){return[this.variant?"".concat(this.isRowDark?"bg":"table","-").concat(this.variant):null]},trAttrs:function(){return function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Tu(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Tu(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({role:"row"},this.$attrs)}},render:function(t){return t("tr",{class:this.trClasses,attrs:this.trAttrs,on:this.$listeners},this.normalizeSlot("default"))}});function Pu(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var Mu=/^\d+$/,qu=function(t){return t=parseInt(t,10),Mu.test(String(t))&&t>0?t:null},Eu=function(t){return Object(x.l)(t)||qu(t)>0},Au={variant:{type:String,default:null},colspan:{type:[Number,String],default:null,validator:Eu},rowspan:{type:[Number,String],default:null,validator:Eu},stackedHeading:{type:String,default:null},stickyColumn:{type:Boolean,default:!1}},zu=l.a.extend({name:"BTableCell",mixins:[vt],inheritAttrs:!1,inject:{bvTableTr:{default:function(){return{}}}},props:Au,computed:{tag:function(){return"td"},inTbody:function(){return this.bvTableTr.inTbody},inThead:function(){return this.bvTableTr.inThead},inTfoot:function(){return this.bvTableTr.inTfoot},isDark:function(){return this.bvTableTr.isDark},isStacked:function(){return this.bvTableTr.isStacked},isStackedCell:function(){return this.inTbody&&this.isStacked},isResponsive:function(){return this.bvTableTr.isResponsive},isStickyHeader:function(){return this.bvTableTr.isStickyHeader},hasStickyHeader:function(){return this.bvTableTr.hasStickyHeader},isStickyColumn:function(){return!this.isStacked&&(this.isResponsive||this.hasStickyHeader)&&this.stickyColumn},rowVariant:function(){return this.bvTableTr.variant},headVariant:function(){return this.bvTableTr.headVariant},footVariant:function(){return this.bvTableTr.footVariant},tableVariant:function(){return this.bvTableTr.tableVariant},computedColspan:function(){return qu(this.colspan)},computedRowspan:function(){return qu(this.rowspan)},cellClasses:function(){var t=this.variant;return(!t&&this.isStickyHeader&&!this.headVariant||!t&&this.isStickyColumn)&&(t=this.rowVariant||this.tableVariant||"b-table-default"),[t?"".concat(this.isDark?"bg":"table","-").concat(t):null,this.isStickyColumn?"b-table-sticky-column":null]},cellAttrs:function(){var t=this.inThead||this.inTfoot,e=this.computedColspan,n=this.computedRowspan,r="cell",l=null;return t?(r="columnheader",l=e>0?"colspan":"col"):"th"===this.tag&&(r="rowheader",l=n>0?"rowgroup":"row"),function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Pu(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Pu(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({colspan:e,rowspan:n,role:r,scope:l},this.$attrs,{"data-label":this.isStackedCell&&!Object(x.l)(this.stackedHeading)?Object(xt.f)(this.stackedHeading):null})}},render:function(t){var content=[this.normalizeSlot("default")];return t(this.tag,{class:this.cellClasses,attrs:this.cellAttrs,on:this.$listeners},[this.isStackedCell?t("div",[content]):content])}}),Du=l.a.extend({name:"BTh",extends:zu,computed:{tag:function(){return"th"}}});function Lu(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Iu(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Lu(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Lu(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Nu={props:{headVariant:{type:String,default:function(){return y("BTable","headVariant")}},headRowVariant:{type:String,default:null},theadClass:{type:[String,Array,Object]},theadTrClass:{type:[String,Array,Object]}},methods:{fieldClasses:function(t){return[t.class?t.class:"",t.thClass?t.thClass:""]},headClicked:function(t,e,n){this.stopIfBusy&&this.stopIfBusy(t)||yu(t)||wu(this.$el)||(t.stopPropagation(),t.preventDefault(),this.$emit("head-clicked",e.key,e,t,n))},renderThead:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.$createElement,r=this.computedFields||[];if(this.isStackedAlways||0===r.length)return n();var o=this.isSelectable?this.selectAllRows:function(){},l=this.isSelectable?this.clearSelected:function(){},c=function(r,c){var d=null;r.label.trim()||r.headerTitle||(d=Qc(r.key));var f=t.hasListener("head-clicked")||t.isSortable,h={};f&&(h.click=function(n){t.headClicked(n,r,e)},h.keydown=function(n){var o=n.keyCode;o!==ie.ENTER&&o!==ie.SPACE||t.headClicked(n,r,e)});var v=t.isSortable?t.sortTheadThAttrs(r.key,r,e):{},m=t.isSortable?t.sortTheadThClasses(r.key,r,e):null,y=t.isSortable?t.sortTheadThLabel(r.key,r,e):null,data={key:r.key,class:[t.fieldClasses(r),m],props:{variant:r.variant,stickyColumn:r.stickyColumn},style:r.thStyle||{},attrs:Iu({tabindex:f?"0":null,abbr:r.headerAbbr||null,title:r.headerTitle||null,"aria-colindex":c+1,"aria-label":d},t.getThValues(null,r.key,r.thAttr,e?"foot":"head",{}),{},v),on:h},w=["head(".concat(r.key,")"),"head(".concat(r.key.toLowerCase(),")"),"head()"];e&&(w=["foot(".concat(r.key,")"),"foot(".concat(r.key.toLowerCase(),")"),"foot()"].concat(Object(_t.a)(w)));var O={label:r.label,column:r.key,field:r,isFoot:e,selectAllRows:o,clearSelected:l},content=t.normalizeSlot(w,O)||(r.labelHtml?n("div",{domProps:Kt(r.labelHtml)}):r.label),k=y?n("span",{staticClass:"sr-only"}," (".concat(y,")")):null;return n(Du,data,[content,k].filter(ht.a))},d=r.map(c).filter(ht.a),f=[];if(e){var h={variant:Object(x.l)(this.footRowVariant)?this.headRowVariant:this.footRowVariant};f.push(n(Cu,{class:this.tfootTrClass,props:h},d))}else{var v={columns:r.length,fields:r,selectAllRows:o,clearSelected:l};f.push(this.normalizeSlot("thead-top",v)||n()),f.push(n(Cu,{class:this.theadTrClass,props:{variant:this.headRowVariant}},d))}return n(e?xu:Su,{key:e?"bv-tfoot":"bv-thead",class:(e?this.tfootClass:this.theadClass)||null,props:e?{footVariant:this.footVariant||this.headVariant||null}:{headVariant:this.headVariant||null}},f)}}},Hu={props:{footClone:{type:Boolean,default:!1},footVariant:{type:String,default:function(){return y("BTable","footVariant")}},footRowVariant:{type:String,default:null},tfootClass:{type:[String,Array,Object],default:null},tfootTrClass:{type:[String,Array,Object],default:null}},methods:{renderTFootCustom:function(){var t=this.$createElement;return this.hasNormalizedSlot("custom-foot")?t(xu,{key:"bv-tfoot-custom",class:this.tfootClass||null,props:{footVariant:this.footVariant||this.headVariant||null}},this.normalizeSlot("custom-foot",{items:this.computedItems.slice(),fields:this.computedFields.slice(),columns:this.computedFields.length})):t()},renderTfoot:function(){return this.footClone?this.renderThead(!0):this.renderTFootCustom()}}};function Vu(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Fu(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Vu(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Vu(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Ru={tbodyTransitionProps:{type:Object},tbodyTransitionHandlers:{type:Object}},$u=l.a.extend({name:"BTbody",mixins:[vt],inheritAttrs:!1,provide:function(){return{bvTableRowGroup:this}},inject:{bvTable:{default:function(){return{}}}},props:Ru,computed:{isTbody:function(){return!0},isDark:function(){return this.bvTable.dark},isStacked:function(){return this.bvTable.isStacked},isResponsive:function(){return this.bvTable.isResponsive},isStickyHeader:function(){return!1},hasStickyHeader:function(){return!this.isStacked&&this.bvTable.stickyHeader},tableVariant:function(){return this.bvTable.tableVariant},isTransitionGroup:function(){return this.tbodyTransitionProps||this.tbodyTransitionHandlers},tbodyAttrs:function(){return Fu({role:"rowgroup"},this.$attrs)},tbodyProps:function(){return this.tbodyTransitionProps?Fu({},this.tbodyTransitionProps,{tag:"tbody"}):{}}},render:function(t){var data={props:this.tbodyProps,attrs:this.tbodyAttrs};return this.isTransitionGroup?(data.on=this.tbodyTransitionHandlers||{},data.nativeOn=this.$listeners||{}):data.on=this.$listeners||{},t(this.isTransitionGroup?"transition-group":"tbody",data,this.normalizeSlot("default"))}});function Uu(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Yu(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Uu(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Uu(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function Wu(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var Gu={mixins:[{props:{tbodyTrClass:{type:[String,Array,Object,Function],default:null},tbodyTrAttr:{type:[Object,Function],default:null},detailsTdClass:{type:[String,Array,Object],default:null}},methods:{getTdValues:function(t,e,n,r){var o=this.$parent;if(n){var l=Object(d.a)(t,e,"");return Object(x.e)(n)?n(l,e,t):Object(x.j)(n)&&Object(x.e)(o[n])?o[n](l,e,t):n}return r},getThValues:function(t,e,n,r,o){var l=this.$parent;if(n){var c=Object(d.a)(t,e,"");return Object(x.e)(n)?n(c,e,t,r):Object(x.j)(n)&&Object(x.e)(l[n])?l[n](c,e,t,r):n}return o},getFormattedValue:function(t,e){var n=e.key,r=this.getFieldFormatter(n),o=Object(d.a)(t,n,null);return Object(x.e)(r)&&(o=r(o,n,t)),Object(x.l)(o)?"":o},toggleDetailsFactory:function(t,e){var n=this;return function(){t&&n.$set(e,"_showDetails",!e._showDetails)}},rowHovered:function(t){this.tbodyRowEvtStopped(t)||this.emitTbodyRowEvent("row-hovered",t)},rowUnhovered:function(t){this.tbodyRowEvtStopped(t)||this.emitTbodyRowEvent("row-unhovered",t)},renderTbodyRowCell:function(t,e,n,r){var o=this,l=this.$createElement,c=this.hasNormalizedSlot("row-details"),f=this.getFormattedValue(n,t),h=t.key,v=!this.isStacked&&(this.isResponsive||this.stickyHeader)&&t.stickyColumn,m=v?t.isRowHeader?Du:zu:t.isRowHeader?"th":"td",y=n._cellVariants&&n._cellVariants[h]?n._cellVariants[h]:t.variant||null,data={key:"row-".concat(r,"-cell-").concat(e,"-").concat(h),class:[t.class?t.class:"",this.getTdValues(n,h,t.tdClass,"")],props:{},attrs:Yu({"aria-colindex":String(e+1)},t.isRowHeader?this.getThValues(n,h,t.thAttr,"row",{}):this.getTdValues(n,h,t.tdAttr,{}))};v?data.props={stackedHeading:this.isStacked?t.label:null,stickyColumn:!0,variant:y}:(data.attrs["data-label"]=this.isStacked&&!Object(x.l)(t.label)?Object(xt.f)(t.label):null,data.attrs.role=t.isRowHeader?"rowheader":"cell",data.attrs.scope=t.isRowHeader?"row":null,y&&data.class.push("".concat(this.dark?"bg":"table","-").concat(y)));var w={item:n,index:r,field:t,unformatted:Object(d.a)(n,h,""),value:f,toggleDetails:this.toggleDetailsFactory(c,n),detailsShowing:Boolean(n._showDetails)};this.supportsSelectableRows&&(w.rowSelected=this.isRowSelected(r),w.selectRow=function(){return o.selectRow(r)},w.unselectRow=function(){return o.unselectRow(r)});var O=this.$_bodyFieldSlotNameCache[h],k=O?this.normalizeSlot(O,w):Object(xt.f)(f);return this.isStacked&&(k=[l("div",[k])]),l(m,data,[k])},renderTbodyRow:function(t,e){var n=this,r=this.$createElement,o=this.computedFields,l=this.striped,c=this.hasNormalizedSlot("row-details"),f=t._showDetails&&c,h=this.$listeners["row-clicked"]||this.hasSelectableRowClick,v=[],m=f?this.safeId("_details_".concat(e,"_")):null,y=o.map((function(r,o){return n.renderTbodyRowCell(r,o,t,e)})),w=null;this.currentPage&&this.perPage&&this.perPage>0&&(w=String((this.currentPage-1)*this.perPage+e+1));var O=this.primaryKey,k=Object(xt.f)(Object(d.a)(t,O))||null,S=k||Object(xt.f)(e),j=k?this.safeId("_row_".concat(k)):null,_=this.selectableRowClasses?this.selectableRowClasses(e):{},T=this.selectableRowAttrs?this.selectableRowAttrs(e):{},B=Object(x.e)(this.tbodyTrClass)?this.tbodyTrClass(t,"row"):this.tbodyTrClass,C=Object(x.e)(this.tbodyTrAttr)?this.tbodyTrAttr(t,"row"):this.tbodyTrAttr;if(v.push(r(Cu,{key:"__b-table-row-".concat(S,"__"),ref:"itemRows",refInFor:!0,class:[B,_,f?"b-table-has-details":""],props:{variant:t._rowVariant||null},attrs:Yu({id:j},C,{tabindex:h?"0":null,"data-pk":k||null,"aria-details":m,"aria-owns":m,"aria-rowindex":w},T),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered}},y)),f){var P={item:t,index:e,fields:o,toggleDetails:this.toggleDetailsFactory(c,t)};this.supportsSelectableRows&&(P.rowSelected=this.isRowSelected(e),P.selectRow=function(){return n.selectRow(e)},P.unselectRow=function(){return n.unselectRow(e)});var M=r(zu,{props:{colspan:o.length},class:this.detailsTdClass},[this.normalizeSlot("row-details",P)]);l&&v.push(r("tr",{key:"__b-table-details-stripe__".concat(S),staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"}}));var E=Object(x.e)(this.tbodyTrClass)?this.tbodyTrClass(t,"row-details"):this.tbodyTrClass,A=Object(x.e)(this.tbodyTrAttr)?this.tbodyTrAttr(t,"row-details"):this.tbodyTrAttr;v.push(r(Cu,{key:"__b-table-details__".concat(S),staticClass:"b-table-details",class:[E],props:{variant:t._rowVariant||null},attrs:Yu({},A,{id:m,tabindex:"-1"})},[M]))}else c&&(v.push(r()),l&&v.push(r()));return v}}}],props:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Wu(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Wu(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Ru,{tbodyClass:{type:[String,Array,Object]}}),methods:{getTbodyTrs:function(){var t=this.$refs||{},tbody=t.tbody?t.tbody.$el||t.tbody:null,e=(t.itemRows||[]).map((function(tr){return tr.$el||tr}));return tbody&&tbody.children&&tbody.children.length>0&&e&&e.length>0?Object(j.c)(tbody.children).filter((function(tr){return Object(j.a)(e,tr)})):[]},getTbodyTrIndex:function(t){if(!z(t))return-1;var tr="TR"===t.tagName?t:F("tr",t,!0);return tr?this.getTbodyTrs().indexOf(tr):-1},emitTbodyRowEvent:function(t,e){if(t&&this.hasListener(t)&&e&&e.target){var n=this.getTbodyTrIndex(e.target);if(n>-1){var r=this.computedItems[n];this.$emit(t,r,n,e)}}},tbodyRowEvtStopped:function(t){return this.stopIfBusy&&this.stopIfBusy(t)},onTbodyRowKeydown:function(t){var e=t.target;if(!this.tbodyRowEvtStopped(t)&&"TR"===e.tagName&&e===document.activeElement&&0===e.tabIndex){var n=t.keyCode;if(Object(j.a)([ie.ENTER,ie.SPACE],n))t.stopPropagation(),t.preventDefault(),this.onTBodyRowClicked(t);else if(Object(j.a)([ie.UP,ie.DOWN,ie.HOME,ie.END],n)){var r=this.getTbodyTrIndex(e);if(r>-1){t.stopPropagation(),t.preventDefault();var o=this.getTbodyTrs(),l=t.shiftKey;n===ie.HOME||l&&n===ie.UP?o[0].focus():n===ie.END||l&&n===ie.DOWN?o[o.length-1].focus():n===ie.UP&&r>0?o[r-1].focus():n===ie.DOWN&&r<o.length-1&&o[r+1].focus()}}}},onTBodyRowClicked:function(t){this.tbodyRowEvtStopped(t)||yu(t)||wu(this.$el)||this.emitTbodyRowEvent("row-clicked",t)},onTbodyRowMiddleMouseRowClicked:function(t){this.tbodyRowEvtStopped(t)||2!==t.which||this.emitTbodyRowEvent("row-middle-clicked",t)},onTbodyRowContextmenu:function(t){this.tbodyRowEvtStopped(t)||this.emitTbodyRowEvent("row-contextmenu",t)},onTbodyRowDblClicked:function(t){this.tbodyRowEvtStopped(t)||yu(t)||this.emitTbodyRowEvent("row-dblclicked",t)},renderTbody:function(){var t=this,e=this.computedItems,n=this.$createElement,r=this.hasListener("row-clicked")||this.hasSelectableRowClick,o=[],l=this.renderBusy?this.renderBusy():null;if(l)o.push(l);else{var c={},d=this.hasNormalizedSlot("cell()")?"cell()":null;this.computedFields.forEach((function(e){var n=e.key,r="cell(".concat(n,")"),o="cell(".concat(n.toLowerCase(),")");c[n]=t.hasNormalizedSlot(r)?r:t.hasNormalizedSlot(o)?o:d})),this.$_bodyFieldSlotNameCache=c,o.push(this.renderTopRow?this.renderTopRow():n()),e.forEach((function(e,n){o.push(t.renderTbodyRow(e,n))})),o.push(this.renderEmpty?this.renderEmpty():n()),o.push(this.renderBottomRow?this.renderBottomRow():n())}var f={auxclick:this.onTbodyRowMiddleMouseRowClicked,contextmenu:this.onTbodyRowContextmenu,dblclick:this.onTbodyRowDblClicked};return r&&(f.click=this.onTBodyRowClicked,f.keydown=this.onTbodyRowKeydown),n($u,{ref:"tbody",class:this.tbodyClass||null,props:{tbodyTransitionProps:this.tbodyTransitionProps,tbodyTransitionHandlers:this.tbodyTransitionHandlers},on:f},o)}}},Ku={props:{showEmpty:{type:Boolean,default:!1},emptyText:{type:String,default:"There are no records to show"},emptyHtml:{type:String},emptyFilteredText:{type:String,default:"There are no records matching your request"},emptyFilteredHtml:{type:String}},methods:{renderEmpty:function(){var t,e=this.$createElement,n=this.computedItems;return!this.showEmpty||n&&0!==n.length||this.computedBusy&&this.hasNormalizedSlot("table-busy")||((t=this.normalizeSlot(this.isFiltered?"emptyfiltered":"empty",{emptyFilteredHtml:this.emptyFilteredHtml,emptyFilteredText:this.emptyFilteredText,emptyHtml:this.emptyHtml,emptyText:this.emptyText,fields:this.computedFields,items:this.computedItems}))||(t=e("div",{class:["text-center","my-2"],domProps:this.isFiltered?Kt(this.emptyFilteredHtml,this.emptyFilteredText):Kt(this.emptyHtml,this.emptyText)})),t=e(zu,{props:{colspan:this.computedFields.length||null}},[e("div",{attrs:{role:"alert","aria-live":"polite"}},[t])]),t=e(Cu,{key:this.isFiltered?"b-empty-filtered-row":"b-empty-row",staticClass:"b-table-empty-row",class:[Object(x.e)(this.tbodyTrClass)?this.tbodyTrClass(null,"row-empty"):this.tbodyTrClass],attrs:Object(x.e)(this.tbodyTrAttr)?this.tbodyTrAttr(null,"row-empty"):this.tbodyTrAttr},[t])),t||e()}}},Zu={methods:{renderTopRow:function(){var t=this.$createElement;if(!this.hasNormalizedSlot("top-row")||!0===this.stacked||""===this.stacked)return t();var e=this.computedFields;return t(Cu,{key:"b-top-row",staticClass:"b-table-top-row",class:[Object(x.e)(this.tbodyTrClass)?this.tbodyTrClass(null,"row-top"):this.tbodyTrClass],attrs:Object(x.e)(this.tbodyTrAttr)?this.tbodyTrAttr(null,"row-top"):this.tbodyTrAttr},[this.normalizeSlot("top-row",{columns:e.length,fields:e})])}}},Xu={methods:{renderBottomRow:function(){var t=this.$createElement;if(!this.hasNormalizedSlot("bottom-row")||!0===this.stacked||""===this.stacked)return t();var e=this.computedFields;return t(Cu,{key:"b-bottom-row",staticClass:"b-table-bottom-row",class:[Object(x.e)(this.tbodyTrClass)?this.tbodyTrClass(null,"row-bottom"):this.tbodyTrClass],attrs:Object(x.e)(this.tbodyTrAttr)?this.tbodyTrAttr(null,"row-bottom"):this.tbodyTrAttr},this.normalizeSlot("bottom-row",{columns:e.length,fields:e}))}}},Ju={props:{busy:{type:Boolean,default:!1}},data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this.busy||this.localBusy}},watch:{localBusy:function(t,e){t!==e&&this.$emit("update:busy",t)}},methods:{stopIfBusy:function(t){return!!this.computedBusy&&(t.preventDefault(),t.stopPropagation(),!0)},renderBusy:function(){var t=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot("table-busy")?t(Cu,{key:"table-busy-slot",staticClass:"b-table-busy-slot",class:[Object(x.e)(this.tbodyTrClass)?this.tbodyTrClass(null,"table-busy"):this.tbodyTrClass],attrs:Object(x.e)(this.tbodyTrAttr)?this.tbodyTrAttr(null,"table-busy"):this.tbodyTrAttr},[t(zu,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot("table-busy")])]):null}}},Qu={props:{selectable:{type:Boolean,default:!1},selectMode:{type:String,default:"multi",validator:function(t){return Object(j.a)(["range","multi","single"],t)}},selectedVariant:{type:String,default:function(){return y("BTable","selectedVariant")}},noSelectOnClick:{type:Boolean,default:!1}},data:function(){return{selectedRows:[],selectedLastRow:-1}},computed:{isSelectable:function(){return this.selectable&&this.selectMode},hasSelectableRowClick:function(){return this.isSelectable&&!this.noSelectOnClick},supportsSelectableRows:function(){return!0},selectableHasSelection:function(){return this.isSelectable&&this.selectedRows&&this.selectedRows.length>0&&this.selectedRows.some(ht.a)},selectableIsMultiSelect:function(){return this.isSelectable&&Object(j.a)(["range","multi"],this.selectMode)},selectableTableClasses:function(){var t;return t={"b-table-selectable":this.isSelectable},Object(o.a)(t,"b-table-select-".concat(this.selectMode),this.isSelectable),Object(o.a)(t,"b-table-selecting",this.selectableHasSelection),Object(o.a)(t,"b-table-selectable-no-click",this.isSelectable&&!this.hasSelectableRowClick),t},selectableTableAttrs:function(){return{"aria-multiselectable":this.isSelectable?this.selectableIsMultiSelect?"true":"false":null}}},watch:{computedItems:function(t,e){var n=!1;if(this.isSelectable&&this.selectedRows.length>0){n=Object(j.d)(t)&&Object(j.d)(e)&&t.length===e.length;for(var i=0;n&&i<t.length;i++)n=Ce(iu(t[i]),iu(e[i]))}n||this.clearSelected()},selectable:function(t){this.clearSelected(),this.setSelectionHandlers(t)},selectMode:function(){this.clearSelected()},hasSelectableRowClick:function(t){this.clearSelected(),this.setSelectionHandlers(!t)},selectedRows:function(t,e){var n=this;if(this.isSelectable&&!Ce(t,e)){var r=[];t.forEach((function(t,e){t&&r.push(n.computedItems[e])})),this.$emit("row-selected",r)}}},beforeMount:function(){this.isSelectable&&this.setSelectionHandlers(!0)},methods:{selectRow:function(t){if(this.isSelectable&&Object(x.g)(t)&&t>=0&&t<this.computedItems.length&&!this.isRowSelected(t)){var e=this.selectableIsMultiSelect?this.selectedRows.slice():[];e[t]=!0,this.selectedLastClicked=-1,this.selectedRows=e}},unselectRow:function(t){if(this.isSelectable&&Object(x.g)(t)&&this.isRowSelected(t)){var e=this.selectedRows.slice();e[t]=!1,this.selectedLastClicked=-1,this.selectedRows=e}},selectAllRows:function(){var t=this.computedItems.length;this.isSelectable&&t>0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?ec(t).map((function(){return!0})):[!0])},isRowSelected:function(t){return!(!Object(x.g)(t)||!this.selectedRows[t])},clearSelected:function(){this.selectedLastClicked=-1,this.selectedRows=[]},selectableRowClasses:function(t){if(this.isSelectable&&this.isRowSelected(t)){var e=this.selectedVariant;return Object(o.a)({"b-table-row-selected":!0},"".concat(this.dark?"bg":"table","-").concat(e),e)}return{}},selectableRowAttrs:function(t){return{"aria-selected":this.isSelectable?this.isRowSelected(t)?"true":"false":null}},setSelectionHandlers:function(t){var e=t&&!this.noSelectOnClick?"$on":"$off";this[e]("row-clicked",this.selectionHandler),this[e]("filtered",this.clearSelected),this[e]("context-changed",this.clearSelected)},selectionHandler:function(t,e,n){if(this.isSelectable&&!this.noSelectOnClick){var r=this.selectMode,o=this.selectedRows.slice(),l=!o[e];if("single"===r)o=[];else if("range"===r)if(this.selectedLastRow>-1&&n.shiftKey){for(var c=Math.min(this.selectedLastRow,e);c<=Math.max(this.selectedLastRow,e);c++)o[c]=!0;l=!0}else n.ctrlKey||n.metaKey||(o=[],l=!0),this.selectedLastRow=l?e:-1;o[e]=l,this.selectedRows=o}else this.clearSelected()}}},ed={mixins:[xr],props:{items:{type:[Array,Function],default:function(){return[]}},noProviderPaging:{type:Boolean,default:!1},noProviderSorting:{type:Boolean,default:!1},noProviderFiltering:{type:Boolean,default:!1},apiUrl:{type:String,default:""}},computed:{hasProvider:function(){return Object(x.e)(this.items)},providerTriggerContext:function(){var t={apiUrl:this.apiUrl,filter:null,sortBy:null,sortDesc:null,perPage:null,currentPage:null};return this.noProviderFiltering||(t.filter=this.localFilter),this.noProviderSorting||(t.sortBy=this.localSortBy,t.sortDesc=this.localSortDesc),this.noProviderPaging||(t.perPage=this.perPage,t.currentPage=this.currentPage),Object(object.b)(t)}},watch:{items:function(t){(this.hasProvider||Object(x.e)(t))&&this.$nextTick(this._providerUpdate)},providerTriggerContext:function(t,e){Ce(t,e)||this.$nextTick(this._providerUpdate)}},mounted:function(){var t=this;!this.hasProvider||this.localItems&&0!==this.localItems.length||this._providerUpdate(),this.listenOnRoot("bv::refresh::table",(function(e){e!==t.id&&e!==t||t.refresh()}))},methods:{refresh:function(){this.$off("refreshed",this.refresh),this.computedBusy?this.localBusy&&this.hasProvider&&this.$on("refreshed",this.refresh):(this.clearSelected(),this.hasProvider?this.$nextTick(this._providerUpdate):this.localItems=Object(j.d)(this.items)?this.items.slice():[])},_providerSetLocal:function(t){this.localItems=Object(j.d)(t)?t.slice():[],this.localBusy=!1,this.$emit("refreshed"),this.id&&this.emitOnRoot("bv::table::refreshed",this.id)},_providerUpdate:function(){var t=this;this.hasProvider&&(this.computedBusy?this.$nextTick(this.refresh):(this.localBusy=!0,this.$nextTick((function(){try{var data=t.items(t.context,t._providerSetLocal);Object(x.h)(data)?data.then((function(e){t._providerSetLocal(e)})):Object(j.d)(data)?t._providerSetLocal(data):2!==t.items.length&&(Object(ir.a)("Provider function didn't request callback and did not return a promise or data.","BTable"),t.localBusy=!1)}catch(e){Object(ir.a)("Provider function error [".concat(e.name,"] ").concat(e.message,"."),"BTable"),t.localBusy=!1,t.$off("refreshed",t.refresh)}}))))}}};function nd(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var rd={inheritAttrs:!1,provide:function(){return{bvTable:this}},props:{striped:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},small:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},responsive:{type:[Boolean,String],default:!1},stickyHeader:{type:[Boolean,String],default:!1},noBorderCollapse:{type:Boolean,default:!1},captionTop:{type:Boolean,default:!1},tableVariant:{type:String,default:null},tableClass:{type:[String,Array,Object],default:null}},computed:{isResponsive:function(){var t=""===this.responsive||this.responsive;return!this.isStacked&&t},isStickyHeader:function(){var t=""===this.stickyHeader||this.stickyHeader;return!this.isStacked&&t},wrapperClasses:function(){return[this.isStickyHeader?"b-table-sticky-header":"",!0===this.isResponsive?"table-responsive":this.isResponsive?"table-responsive-".concat(this.responsive):""].filter(ht.a)},wrapperStyles:function(){return this.isStickyHeader&&!Object(x.a)(this.isStickyHeader)?{maxHeight:this.isStickyHeader}:{}},tableClasses:function(){var t=this.isTableSimple?this.hover:this.hover&&this.computedItems.length>0&&!this.computedBusy;return[this.tableClass,{"table-striped":this.striped,"table-hover":t,"table-dark":this.dark,"table-bordered":this.bordered,"table-borderless":this.borderless,"table-sm":this.small,border:this.outlined,"b-table-fixed":this.fixed,"b-table-caption-top":this.captionTop,"b-table-no-border-collapse":this.noBorderCollapse},this.tableVariant?"".concat(this.dark?"bg":"table","-").concat(this.tableVariant):"",this.stackedTableClasses,this.selectableTableClasses]},tableAttrs:function(){var t=[(this.$attrs||{})["aria-describedby"],this.captionId].filter(ht.a).join(" ")||null,e=this.computedItems,n=this.filteredItems,r=this.computedFields,l=this.selectableTableAttrs||{},c=this.isTableSimple?{}:{"aria-busy":this.computedBusy?"true":"false","aria-colcount":Object(xt.f)(r.length),"aria-describedby":t};return function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?nd(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):nd(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({"aria-rowcount":e&&n&&n.length>e.length?Object(xt.f)(n.length):null},this.$attrs,{id:this.safeId(),role:"table"},c,{},l)}},render:function(t){var e=[];this.isTableSimple?e.push(this.normalizeSlot("default")):(e.push(this.renderCaption?this.renderCaption():null),e.push(this.renderColgroup?this.renderColgroup():null),e.push(this.renderThead?this.renderThead():null),e.push(this.renderTbody?this.renderTbody():null),e.push(this.renderTfoot?this.renderTfoot():null));var n=t("table",{key:"b-table",staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs},e.filter(ht.a));return this.wrapperClasses.length>0?t("div",{key:"wrap",class:this.wrapperClasses,style:this.wrapperStyles},[n]):n}},od=l.a.extend({name:"BTable",mixins:[Kc,Ge,vt,ru,rd,ou,Nu,Hu,Gu,ou,uu,pu,bu,vu,mu,Qu,Ku,Zu,Xu,Ju,ed]}),id=l.a.extend({name:"BTableLite",mixins:[Kc,Ge,vt,ru,rd,ou,Nu,Hu,Gu,vu,mu]}),ad=l.a.extend({name:"BTableSimple",mixins:[Ge,vt,rd,ou],computed:{isTableSimple:function(){return!0}}}),ld=Object(r.b)({components:{BTableLite:id}}),sd=Object(r.b)({components:{BTableSimple:ad,BTbody:$u,BThead:Su,BTfoot:xu,BTr:Cu,BTd:zu,BTh:Du}}),cd=Object(r.b)({components:{BTable:od},plugins:{TableLitePlugin:ld,TableSimplePlugin:sd}});function ud(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function fd(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ud(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):ud(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var hd=Object(object.m)(xs,["tabs","isNavBar","cardHeader"]),pd=function(t){return!t.disabled},bd=l.a.extend({name:"BTabButtonHelper",inject:{bvTabs:{default:function(){return{}}}},props:{tab:{default:null},tabs:{type:Array,default:function(){return[]}},id:{type:String,default:null},controls:{type:String,default:null},tabIndex:{type:Number,default:null},posInSet:{type:Number,default:null},setSize:{type:Number,default:null},noKeyNav:{type:Boolean,default:!1}},methods:{focus:function(){this.$refs&&this.$refs.link&&this.$refs.link.focus&&this.$refs.link.focus()},handleEvt:function(t){var e=function(){t.preventDefault(),t.stopPropagation()};if(!this.tab.disabled){var n=t.type,r=t.keyCode,o=t.shiftKey;"click"===n||"keydown"===n&&r===ie.SPACE?(e(),this.$emit("click",t)):"keydown"!==n||this.noKeyNav||(r===ie.UP||r===ie.LEFT||r===ie.HOME?(e(),o||r===ie.HOME?this.$emit("first",t):this.$emit("prev",t)):r!==ie.DOWN&&r!==ie.RIGHT&&r!==ie.END||(e(),o||r===ie.END?this.$emit("last",t):this.$emit("next",t)))}}},render:function(t){var link=t(Vt,{ref:"link",staticClass:"nav-link",class:[{active:this.tab.localActive&&!this.tab.disabled,disabled:this.tab.disabled},this.tab.titleLinkClass,this.tab.localActive?this.bvTabs.activeNavItemClass:null],props:{disabled:this.tab.disabled},attrs:fd({},this.tab.titleLinkAttributes,{role:"tab",id:this.id,tabindex:this.tabIndex,"aria-selected":this.tab.localActive&&!this.tab.disabled?"true":"false","aria-setsize":this.setSize,"aria-posinset":this.posInSet,"aria-controls":this.controls}),on:{click:this.handleEvt,keydown:this.handleEvt}},[this.tab.normalizeSlot("title")||this.tab.title]);return t("li",{staticClass:"nav-item",class:[this.tab.titleItemClass],attrs:{role:"presentation"}},[link])}}),vd=l.a.extend({name:"BTabs",mixins:[Ge,vt],provide:function(){return{bvTabs:this}},model:{prop:"value",event:"input"},props:fd({},hd,{tag:{type:String,default:"div"},card:{type:Boolean,default:!1},end:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noNavStyle:{type:Boolean,default:!1},noKeyNav:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},contentClass:{type:[String,Array,Object],default:null},navClass:{type:[String,Array,Object],default:null},navWrapperClass:{type:[String,Array,Object],default:null},activeNavItemClass:{type:[String,Array,Object],default:null},activeTabClass:{type:[String,Array,Object],default:null},value:{type:Number,default:null}}),data:function(){var t=parseInt(this.value,10);return{currentTab:t=isNaN(t)?-1:t,tabs:[],registeredTabs:[],isMounted:!1}},computed:{fade:function(){return!this.noFade},localNavClass:function(){var t=[];return this.card&&this.vertical&&t.push("card-header","h-100","border-bottom-0","rounded-0"),[].concat(t,[this.navClass])}},watch:{currentTab:function(t){var e=-1;this.tabs.forEach((function(n,r){t!==r||n.disabled?n.localActive=!1:(n.localActive=!0,e=r)})),this.$emit("input",e)},value:function(t,e){if(t!==e){t=parseInt(t,10),t=isNaN(t)?-1:t,e=parseInt(e,10)||0;var n=this.tabs;n[t]&&!n[t].disabled?this.activateTab(n[t]):t<e?this.previousTab():this.nextTab()}},registeredTabs:function(){var t=this;this.$nextTick((function(){E((function(){t.updateTabs()}))}))},tabs:function(t,e){var n=this;Ce(t.map((function(t){return t._uid})),e.map((function(t){return t._uid})))||this.$nextTick((function(){n.$emit("changed",t.slice(),e.slice())}))},isMounted:function(t){var e=this;t&&E((function(){e.updateTabs()})),this.setObserver(t)}},created:function(){var t=this,e=parseInt(this.value,10);this.currentTab=isNaN(e)?-1:e,this._bvObserver=null,this.$nextTick((function(){t.updateTabs()}))},mounted:function(){var t=this;this.updateTabs(),this.$nextTick((function(){t.isMounted=!0}))},deactivated:function(){this.isMounted=!1},activated:function(){var t=this,e=parseInt(this.value,10);this.currentTab=isNaN(e)?-1:e,this.$nextTick((function(){t.updateTabs(),t.isMounted=!0}))},beforeDestroy:function(){this.isMounted=!1},destroyed:function(){this.tabs=[]},methods:{registerTab:function(t){var e=this;Object(j.a)(this.registeredTabs,t)||(this.registeredTabs.push(t),t.$once("hook:destroyed",(function(){e.unregisterTab(t)})))},unregisterTab:function(t){this.registeredTabs=this.registeredTabs.slice().filter((function(e){return e!==t}))},setObserver:function(t){if(t){this.setObserver(!1);var e=this;this._bvObserver=lr(this.$refs.tabsContainer,(function(){e.$nextTick((function(){E((function(){e.updateTabs()}))}))}),{childList:!0,subtree:!1,attributes:!0,attributeFilter:["id"]})}else this._bvObserver&&this._bvObserver.disconnect&&this._bvObserver.disconnect(),this._bvObserver=null},getTabs:function(){var t=this.registeredTabs.filter((function(t){return 0===t.$children.filter((function(t){return t._isTab})).length})),e=[];if(this.isMounted&&t.length>0){var n=t.map((function(t){return"#".concat(t.safeId())})).join(", ");e=N(n,this.$el).map((function(t){return t.id})).filter(ht.a)}return du(t,(function(a,b){return e.indexOf(a.safeId())-e.indexOf(b.safeId())}))},updateTabs:function(){var t=this.getTabs(),e=t.indexOf(t.slice().reverse().find((function(t){return t.localActive&&!t.disabled})));if(e<0){var n=this.currentTab;n>=t.length?e=t.indexOf(t.slice().reverse().find(pd)):t[n]&&!t[n].disabled&&(e=n)}e<0&&(e=t.indexOf(t.find(pd))),t.forEach((function(t){t.localActive=!1})),t[e]&&(t[e].localActive=!0),this.tabs=t,this.currentTab=e},getButtonForTab:function(t){return(this.$refs.buttons||[]).find((function(e){return e.tab===t}))},updateButton:function(t){var button=this.getButtonForTab(t);button&&button.$forceUpdate&&button.$forceUpdate()},activateTab:function(t){var e=!1;if(t){var n=this.tabs.indexOf(t);if(!t.disabled&&n>-1&&n!==this.currentTab){var r=new Vr("activate-tab",{cancelable:!0,vueTarget:this,componentId:this.safeId()});this.$emit(r.type,n,this.currentTab,r),r.defaultPrevented||(e=!0,this.currentTab=n)}}return e||this.currentTab===this.value||this.$emit("input",this.currentTab),e},deactivateTab:function(t){return!!t&&this.activateTab(this.tabs.filter((function(e){return e!==t})).find(pd))},focusButton:function(t){var e=this;this.$nextTick((function(){var button=e.getButtonForTab(t);button&&button.focus&&button.focus()}))},emitTabClick:function(t,e){Object(x.c)(e)&&t&&t.$emit&&!t.disabled&&t.$emit("click",e)},clickTab:function(t,e){this.activateTab(t),this.emitTabClick(t,e)},firstTab:function(t){var e=this.tabs.find(pd);this.activateTab(e)&&t&&(this.focusButton(e),this.emitTabClick(e,t))},previousTab:function(t){var e=Math.max(this.currentTab,0),n=this.tabs.slice(0,e).reverse().find(pd);this.activateTab(n)&&t&&(this.focusButton(n),this.emitTabClick(n,t))},nextTab:function(t){var e=Math.max(this.currentTab,-1),n=this.tabs.slice(e+1).find(pd);this.activateTab(n)&&t&&(this.focusButton(n),this.emitTabClick(n,t))},lastTab:function(t){var e=this.tabs.slice().reverse().find(pd);this.activateTab(e)&&t&&(this.focusButton(e),this.emitTabClick(e,t))}},render:function(t){var e=this,n=this.tabs,r=n.find((function(t){return t.localActive&&!t.disabled})),o=n.find((function(t){return!t.disabled})),l=n.map((function(l,c){var d=null;return e.noKeyNav||(d=-1,(r===l||!r&&o===l)&&(d=null)),t(bd,{key:l._uid||c,ref:"buttons",refInFor:!0,props:{tab:l,tabs:n,id:l.controlledBy||(l.safeId?l.safeId("_BV_tab_button_"):null),controls:l.safeId?l.safeId():null,tabIndex:d,setSize:n.length,posInSet:c+1,noKeyNav:e.noKeyNav},on:{click:function(t){e.clickTab(l,t)},first:e.firstTab,prev:e.previousTab,next:e.nextTab,last:e.lastTab}})})),nav=t(Ts,{ref:"nav",class:this.localNavClass,attrs:{role:"tablist",id:this.safeId("_BV_tab_controls_")},props:{fill:this.fill,justified:this.justified,align:this.align,tabs:!this.noNavStyle&&!this.pills,pills:!this.noNavStyle&&this.pills,vertical:this.vertical,small:this.small,cardHeader:this.card&&!this.vertical}},[this.normalizeSlot("tabs-start")||t(),l,this.normalizeSlot("tabs-end")||t()]);nav=t("div",{key:"bv-tabs-nav",class:[{"card-header":this.card&&!this.vertical&&!this.end,"card-footer":this.card&&!this.vertical&&this.end,"col-auto":this.vertical},this.navWrapperClass]},[nav]);var c=t();n&&0!==n.length||(c=t("div",{key:"bv-empty-tab",class:["tab-pane","active",{"card-body":this.card}]},this.normalizeSlot("empty")));var content=t("div",{ref:"tabsContainer",key:"bv-tabs-container",staticClass:"tab-content",class:[{col:this.vertical},this.contentClass],attrs:{id:this.safeId("_BV_tab_container_")}},Object(j.b)(this.normalizeSlot("default"),c));return t(this.tag,{staticClass:"tabs",class:{row:this.vertical,"no-gutters":this.vertical&&this.card},attrs:{id:this.safeId()}},[this.end?content:t(),[nav],this.end?t():content])}}),md=l.a.extend({name:"BTab",mixins:[Ge,vt],inject:{bvTabs:{default:function(){return{}}}},props:{active:{type:Boolean,default:!1},tag:{type:String,default:"div"},buttonId:{type:String,default:""},title:{type:String,default:""},titleItemClass:{type:[String,Array,Object],default:null},titleLinkClass:{type:[String,Array,Object],default:null},titleLinkAttributes:{type:Object,default:null},disabled:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},data:function(){return{localActive:this.active&&!this.disabled,show:!1}},computed:{tabClasses:function(){return[{active:this.localActive,disabled:this.disabled,"card-body":this.bvTabs.card&&!this.noBody},this.localActive?this.bvTabs.activeTabClass:null]},controlledBy:function(){return this.buttonId||this.safeId("__BV_tab_button__")},computedNoFade:function(){return!this.bvTabs.fade},computedLazy:function(){return this.bvTabs.lazy||this.lazy},_isTab:function(){return!0}},watch:{localActive:function(t){this.$emit("update:active",t)},active:function(t,e){t!==e&&(t?this.activate():this.deactivate()||this.$emit("update:active",this.localActive))},disabled:function(t,e){t!==e&&t&&this.localActive&&this.bvTabs.firstTab&&(this.localActive=!1,this.bvTabs.firstTab())}},mounted:function(){this.registerTab(),this.show=this.localActive},updated:function(){this.hasNormalizedSlot("title")&&this.bvTabs.updateButton&&this.bvTabs.updateButton(this)},destroyed:function(){this.unregisterTab()},methods:{registerTab:function(){this.bvTabs.registerTab&&this.bvTabs.registerTab(this)},unregisterTab:function(){this.bvTabs.unregisterTab&&this.bvTabs.unregisterTab(this)},activate:function(){return!(!this.bvTabs.activateTab||this.disabled)&&this.bvTabs.activateTab(this)},deactivate:function(){return!(!this.bvTabs.deactivateTab||!this.localActive)&&this.bvTabs.deactivateTab(this)}},render:function(t){var content=t(this.tag,{ref:"panel",staticClass:"tab-pane",class:this.tabClasses,directives:[{name:"show",rawName:"v-show",value:this.localActive,expression:"localActive"}],attrs:{role:"tabpanel",id:this.safeId(),"aria-hidden":this.localActive?"false":"true","aria-labelledby":this.controlledBy||null}},[this.localActive||!this.computedLazy?this.normalizeSlot("default"):t()]);return t(ft,{props:{mode:"out-in",noFade:this.computedNoFade}},[content])}}),gd=Object(r.b)({components:{BTabs:vd,BTab:md}}),yd=Object(r.b)({components:{BTime:Va}}),wd=n(68),Od={name:{type:String,required:!0},ariaLive:{type:String,default:function(){return y("BToaster","ariaLive")}},ariaAtomic:{type:String,default:function(){return y("BToaster","ariaAtomic")}},role:{type:String,default:function(){return y("BToaster","role")}}},kd=l.a.extend({data:function(){return{name:"b-toaster"}},methods:{onAfterEnter:function(t){var e=this;E((function(){Y(t,"".concat(e.name,"-enter-to"))}))}},render:function(t){return t("transition-group",{props:{tag:"div",name:this.name},on:{afterEnter:this.onAfterEnter}},this.$slots.default)}}),Sd=l.a.extend({name:"BToaster",props:Od,data:function(){return{doRender:!1,dead:!1,staticName:this.name}},beforeMount:function(){var t=this;this.staticName=this.name,wd.Wormhole.hasTarget(this.staticName)?(Object(ir.a)('A "<portal-target>" with name "'.concat(this.name,'" already exists in the document.'),"BToaster"),this.dead=!0):(this.doRender=!0,this.$once("hook:beforeDestroy",(function(){t.$root.$emit("bv::toaster::destroyed",t.staticName)})))},destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},render:function(t){var e=t("div",{class:["d-none",{"b-dead-toaster":this.dead}]});if(this.doRender){var n=t(wd.PortalTarget,{staticClass:"b-toaster-slot",props:{name:this.staticName,multiple:!0,tag:"div",slim:!1,transition:kd}});e=t("div",{staticClass:"b-toaster",class:[this.staticName],attrs:{id:this.staticName,role:this.role||null,"aria-live":this.ariaLive,"aria-atomic":this.ariaAtomic}},[n])}return e}});function jd(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function _d(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?jd(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):jd(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var xd={id:{type:String,default:null},title:{type:String,default:null},toaster:{type:String,default:function(){return y("BToast","toaster")}},visible:{type:Boolean,default:!1},variant:{type:String,default:function(){return y("BToast","variant")}},isStatus:{type:Boolean,default:!1},appendToast:{type:Boolean,default:!1},noAutoHide:{type:Boolean,default:!1},autoHideDelay:{type:[Number,String],default:function(){return y("BToast","autoHideDelay")}},noCloseButton:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noHoverPause:{type:Boolean,default:!1},solid:{type:Boolean,default:!1},toastClass:{type:[String,Object,Array],default:function(){return y("BToast","toastClass")}},headerClass:{type:[String,Object,Array],default:function(){return y("BToast","headerClass")}},bodyClass:{type:[String,Object,Array],default:function(){return y("BToast","bodyClass")}},href:{type:String,default:null},to:{type:[String,Object],default:null},static:{type:Boolean,default:!1}},Td=l.a.extend({name:"BToast",mixins:[Ge,xr,vt,Yl],inheritAttrs:!1,model:{prop:"visible",event:"change"},props:xd,data:function(){return{isMounted:!1,doRender:!1,localShow:!1,isTransitioning:!1,isHiding:!1,order:0,timer:null,dismissStarted:0,resumeDismiss:0}},computed:{bToastClasses:function(){return Object(o.a)({"b-toast-solid":this.solid,"b-toast-append":this.appendToast,"b-toast-prepend":!this.appendToast},"b-toast-".concat(this.variant),this.variant)},slotScope:function(){return{hide:this.hide}},computedDuration:function(){return Math.max(Object(ot.c)(this.autoHideDelay)||0,1e3)},computedToaster:function(){return String(this.toaster)},transitionHandlers:function(){return{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,afterLeave:this.onAfterLeave}}},watch:{visible:function(t){t?this.show():this.hide()},localShow:function(t){t!==this.visible&&this.$emit("change",t)},toaster:function(){this.$nextTick(this.ensureToaster)},static:function(t){t&&this.localShow&&this.ensureToaster()}},mounted:function(){var t=this;this.isMounted=!0,this.$nextTick((function(){t.visible&&E((function(){t.show()}))})),this.listenOnRoot("bv::show::toast",(function(e){e===t.safeId()&&t.show()})),this.listenOnRoot("bv::hide::toast",(function(e){e&&e!==t.safeId()||t.hide()})),this.listenOnRoot("bv::toaster::destroyed",(function(e){e===t.computedToaster&&t.hide()}))},beforeDestroy:function(){this.clearDismissTimer()},methods:{show:function(){var t=this;if(!this.localShow){this.ensureToaster();var e=this.buildEvent("show");this.emitEvent(e),this.dismissStarted=this.resumeDismiss=0,this.order=Date.now()*(this.appendToast?1:-1),this.isHiding=!1,this.doRender=!0,this.$nextTick((function(){E((function(){t.localShow=!0}))}))}},hide:function(){var t=this;if(this.localShow){var e=this.buildEvent("hide");this.emitEvent(e),this.setHoverHandler(!1),this.dismissStarted=this.resumeDismiss=0,this.clearDismissTimer(),this.isHiding=!0,E((function(){t.localShow=!1}))}},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Vr(t,_d({cancelable:!1,target:this.$el||null,relatedTarget:null},e,{vueTarget:this,componentId:this.safeId()}))},emitEvent:function(t){var e=t.type;this.$root.$emit("bv::toast:".concat(e),t),this.$emit(e,t)},ensureToaster:function(){if(!this.static&&!wd.Wormhole.hasTarget(this.computedToaster)){var div=document.createElement("div");document.body.appendChild(div),new Sd({parent:this.$root,propsData:{name:this.computedToaster}}).$mount(div)}},startDismissTimer:function(){this.clearDismissTimer(),this.noAutoHide||(this.timer=setTimeout(this.hide,this.resumeDismiss||this.computedDuration),this.dismissStarted=Date.now(),this.resumeDismiss=0)},clearDismissTimer:function(){clearTimeout(this.timer),this.timer=null},setHoverHandler:function(t){var e=this.$refs["b-toast"];pr(t,e,"mouseenter",this.onPause,cr),pr(t,e,"mouseleave",this.onUnPause,cr)},onPause:function(){if(!this.noAutoHide&&!this.noHoverPause&&this.timer&&!this.resumeDismiss){var t=Date.now()-this.dismissStarted;t>0&&(this.clearDismissTimer(),this.resumeDismiss=Math.max(this.computedDuration-t,1e3))}},onUnPause:function(){this.noAutoHide||this.noHoverPause||!this.resumeDismiss?this.resumeDismiss=this.dismissStarted=0:this.startDismissTimer()},onLinkClick:function(){var t=this;this.$nextTick((function(){E((function(){t.hide()}))}))},onBeforeEnter:function(){this.isTransitioning=!0},onAfterEnter:function(){this.isTransitioning=!1;var t=this.buildEvent("shown");this.emitEvent(t),this.startDismissTimer(),this.setHoverHandler(!0)},onBeforeLeave:function(){this.isTransitioning=!0},onAfterLeave:function(){this.isTransitioning=!1,this.order=0,this.resumeDismiss=this.dismissStarted=0;var t=this.buildEvent("hidden");this.emitEvent(t),this.doRender=!1},makeToast:function(t){var e=this,n=[],r=this.normalizeSlot("toast-title",this.slotScope);r?n.push(r):this.title&&n.push(t("strong",{staticClass:"mr-2"},this.title)),this.noCloseButton||n.push(t(gt,{staticClass:"ml-auto mb-1",on:{click:function(){e.hide()}}}));var o=t();n.length>0&&(o=t("header",{staticClass:"toast-header",class:this.headerClass},n));var l=this.href||this.to,c=t(l?Vt:"div",{staticClass:"toast-body",class:this.bodyClass,props:l?{to:this.to,href:this.href}:{},on:l?{click:this.onLinkClick}:{}},[this.normalizeSlot("default",this.slotScope)||t()]);return t("div",{key:"toast-".concat(this._uid),ref:"toast",staticClass:"toast",class:this.toastClass,attrs:_d({},this.$attrs,{tabindex:"0",id:this.safeId()})},[o,c])}},render:function(t){if(!this.doRender||!this.isMounted)return t();var e="b-toast-".concat(this._uid),n=this.static?{}:this.scopedStyleAttrs;return t(wd.Portal,{props:{name:e,to:this.computedToaster,order:this.order,slim:!0,disabled:this.static}},[t("div",{key:e,ref:"b-toast",staticClass:"b-toast",class:this.bToastClasses,attrs:_d({},n,{id:this.safeId("_toast_outer"),role:this.isHiding?null:this.isStatus?"status":"alert","aria-live":this.isHiding?null:this.isStatus?"polite":"assertive","aria-atomic":this.isHiding?null:"true"})},[t(ft,{props:{noFade:this.noFade},on:this.transitionHandlers},[this.localShow?this.makeToast(t):t()])])])}});function Bd(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Cd(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Bd(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Bd(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Pd=["id"].concat(Object(_t.a)(Object(object.l)(Object(object.m)(xd,["static","visible"])))),Md={toastContent:"default",title:"toast-title"},qd=function(t){return Pd.reduce((function(e,n){return Object(x.k)(t[n])||(e[n]=t[n]),e}),{})},Ed=Object(r.b)({plugins:{plugin:function(t){var e=t.extend({name:"BToastPop",extends:Td,destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},mounted:function(){var t=this,e=function(){t.localShow=!1,t.doRender=!1,t.$nextTick((function(){t.$nextTick((function(){E((function(){t.$destroy()}))}))}))};this.$parent.$once("hook:destroyed",e),this.$once("hidden",e),this.listenOnRoot("bv::toaster::destroyed",(function(n){n===t.toaster&&e()}))}}),n=function(t,n){if(!Object(ir.d)("$bvToast")){var r=new e({parent:n,propsData:Cd({},qd(y("BToast")||{}),{},Object(object.m)(t,Object(object.l)(Md)),{static:!1,visible:!0})});Object(object.l)(Md).forEach((function(e){var o=t[e];Object(x.k)(o)||("title"===e&&Object(x.j)(o)&&(o=[n.$createElement("strong",{class:"mr-2"},o)]),r.$slots[Md[e]]=Object(j.b)(o))}));var div=document.createElement("div");document.body.appendChild(div),r.$mount(div)}},r=function(){function t(e){Object(zn.a)(this,t),Object(object.a)(this,{_vm:e,_root:e.$root}),Object(object.e)(this,{_vm:Object(object.n)(),_root:Object(object.n)()})}return Object(Dn.a)(t,[{key:"toast",value:function(content){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};content&&!Object(ir.d)("$bvToast")&&n(Cd({},qd(t),{toastContent:content}),this._vm)}},{key:"show",value:function(t){t&&this._root.$emit("bv::show::toast",t)}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._root.$emit("bv::hide::toast",t)}}]),t}();t.mixin({beforeCreate:function(){this._bv__toast=new r(this)}}),t.prototype.hasOwnProperty("$bvToast")||Object(object.f)(t.prototype,"$bvToast",{get:function(){return this&&this._bv__toast||Object(ir.a)('"'.concat("$bvToast",'" must be accessed from a Vue instance "this" context.'),"BToast"),this._bv__toast}})}}}),Ad=Object(r.b)({components:{BToast:Td,BToaster:Sd},plugins:{BVToastPlugin:Ed}});function zd(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var Dd="__BV_Tooltip__",Ld={focus:!0,hover:!0,click:!0,blur:!0,manual:!0},Id=/^html$/i,Nd=/^noninteractive$/i,Hd=/^nofade$/i,Vd=/^(auto|top(left|right)?|bottom(left|right)?|left(top|bottom)?|right(top|bottom)?)$/i,Fd=/^(window|viewport|scrollParent)$/i,Rd=/^d\d+$/i,$d=/^ds\d+$/i,Ud=/^dh\d+$/i,Yd=/^o-?\d+$/i,Wd=/^v-.+$/i,Gd=/\s+/,Kd=function(t,e){var n="BTooltip",r={title:void 0,trigger:"",placement:"top",fallbackPlacement:"flip",container:!1,animation:!0,offset:0,id:null,html:!1,interactive:!0,disabled:!1,delay:y(n,"delay"),boundary:String(y(n,"boundary")),boundaryPadding:parseInt(y(n,"boundaryPadding"),10)||0,variant:y(n,"variant"),customClass:y(n,"customClass")};if(Object(x.j)(t.value)||Object(x.g)(t.value)||Object(x.e)(t.value)?r.title=t.value:Object(object.k)(t.value)&&(r=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?zd(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):zd(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},r,{},t.value)),Object(x.k)(r.title)){var data=e.data||{};r.title=data.attrs&&!Object(x.l)(data.attrs.title)?data.attrs.title:void 0}Object(object.k)(r.delay)||(r.delay={show:parseInt(r.delay,10)||0,hide:parseInt(r.delay,10)||0}),t.arg&&(r.container="#".concat(t.arg)),Object(object.l)(t.modifiers).forEach((function(t){if(Id.test(t))r.html=!0;else if(Nd.test(t))r.interactive=!1;else if(Hd.test(t))r.animation=!1;else if(Vd.test(t))r.placement=t;else if(Fd.test(t))t="scrollparent"===t?"scrollParent":t,r.boundary=t;else if(Rd.test(t)){var e=parseInt(t.slice(1),10)||0;r.delay.show=e,r.delay.hide=e}else $d.test(t)?r.delay.show=parseInt(t.slice(2),10)||0:Ud.test(t)?r.delay.hide=parseInt(t.slice(2),10)||0:Yd.test(t)?r.offset=parseInt(t.slice(1),10)||0:Wd.test(t)&&(r.variant=t.slice(2)||null)}));var l={};return Object(j.b)(r.trigger||"").filter(ht.a).join(" ").trim().toLowerCase().split(Gd).forEach((function(t){Ld[t]&&(l[t]=!0)})),Object(object.l)(t.modifiers).forEach((function(t){t=t.toLowerCase(),Ld[t]&&(l[t]=!0)})),r.trigger=Object(object.l)(l).join(" "),"blur"===r.trigger&&(r.trigger="focus"),r.trigger||(r.trigger="hover focus"),r},Zd=function(t,e,n){if(_.j){var r=Kd(e,n);if(!t[Dd]){var o=n.context;t[Dd]=new kc({parent:o,_scopeId:Ul(o,void 0)}),t[Dd].__bv_prev_data__={},t[Dd].$on("show",(function(){Object(x.e)(r.title)&&t[Dd].updateData({title:r.title(t)})}))}var data={title:r.title,triggers:r.trigger,placement:r.placement,fallbackPlacement:r.fallbackPlacement,variant:r.variant,customClass:r.customClass,container:r.container,boundary:r.boundary,delay:r.delay,offset:r.offset,noFade:!r.animation,id:r.id,interactive:r.interactive,disabled:r.disabled,html:r.html},l=t[Dd].__bv_prev_data__;if(t[Dd].__bv_prev_data__=data,!Ce(data,l)){var c={target:t};Object(object.l)(data).forEach((function(e){data[e]!==l[e]&&(c[e]="title"===e&&Object(x.e)(data[e])?data[e](t):data[e])})),t[Dd].updateData(c)}}},Xd={bind:function(t,e,n){Zd(t,e,n)},componentUpdated:function(t,e,n){n.context.$nextTick((function(){Zd(t,e,n)}))},unbind:function(t){!function(t){t[Dd]&&(t[Dd].$destroy(),t[Dd]=null),delete t[Dd]}(t)}},Jd=Object(r.b)({directives:{VBTooltip:Xd}}),Qd=Object(r.b)({components:{BTooltip:Sc},plugins:{VBTooltipPlugin:Jd}}),tf=Object(r.b)({plugins:{AlertPlugin:St,BadgePlugin:Yt,BreadcrumbPlugin:oe,ButtonPlugin:Oe,ButtonGroupPlugin:je,ButtonToolbarPlugin:Te,CalendarPlugin:dn,CardPlugin:rr,CarouselPlugin:kr,CollapsePlugin:Nr,DropdownPlugin:Eo,EmbedPlugin:Do,FormPlugin:Ko,FormCheckboxPlugin:ci,FormDatepickerPlugin:Oi,FormFilePlugin:xi,FormGroupPlugin:Fi,FormInputPlugin:Zi,FormRadioPlugin:Ji,FormSelectPlugin:oa,FormSpinbuttonPlugin:va,FormTagsPlugin:Ba,FormTextareaPlugin:qa,FormTimepickerPlugin:Wa,ImagePlugin:Ga,InputGroupPlugin:cl,JumbotronPlugin:vl,LayoutPlugin:jl,LinkPlugin:_l,ListGroupPlugin:El,MediaPlugin:Hl,ModalPlugin:_s,NavPlugin:Is,NavbarPlugin:Gs,OverlayPlugin:tc,PaginationPlugin:uc,PaginationNavPlugin:hc,PopoverPlugin:$c,ProgressPlugin:Wc,SpinnerPlugin:Gc,TablePlugin:cd,TabsPlugin:gd,TimePlugin:yd,ToastPlugin:Ad,TooltipPlugin:Qd}}),ef=Object(r.b)({directives:{VBHover:hi}}),nf=Object(r.b)({directives:{VBModal:ms}});n(140);function rf(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var of={element:"body",offset:10,method:"auto",throttle:75},af={element:"(string|element|component)",offset:"number",method:"string",throttle:"number"},lf="dropdown-item",sf="active",cf={ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown, .dropup",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},uf="offset",df="position",ff=/^.*(#[^#]+)$/,hf=["webkitTransitionEnd","transitionend","otransitionend","oTransitionEnd"],pf=function(){function t(element,e,n){Object(zn.a)(this,t),this.$el=element,this.$scroller=null,this.$selector=[cf.NAV_LINKS,cf.LIST_ITEMS,cf.DROPDOWN_ITEMS].join(","),this.$offsets=[],this.$targets=[],this.$activeTarget=null,this.$scrollHeight=0,this.$resizeTimeout=null,this.$obs_scroller=null,this.$obs_targets=null,this.$root=n||null,this.$config=null,this.updateConfig(e)}return Object(Dn.a)(t,[{key:"updateConfig",value:function(t,e){this.$scroller&&(this.unlisten(),this.$scroller=null);var n=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?rf(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):rf(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},this.constructor.Default,{},t);if(e&&(this.$root=e),function(t,e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r],l=e[r],c=l&&z(l)?"element":(d=l,Object(object.o)(d).match(/\s([a-zA-Z]+)/)[1].toLowerCase());c=l&&l._isVue?"component":c,new RegExp(o).test(c)||Object(ir.a)("".concat(t,': Option "').concat(r,'" provided type "').concat(c,'" but expected type "').concat(o,'"'))}var d}(this.constructor.Name,n,this.constructor.DefaultType),this.$config=n,this.$root){var r=this;this.$root.$nextTick((function(){r.listen()}))}else this.listen()}},{key:"dispose",value:function(){this.unlisten(),clearTimeout(this.$resizeTimeout),this.$resizeTimeout=null,this.$el=null,this.$config=null,this.$scroller=null,this.$selector=null,this.$offsets=null,this.$targets=null,this.$activeTarget=null,this.$scrollHeight=null}},{key:"listen",value:function(){var t=this,e=this.getScroller();e&&"BODY"!==e.tagName&&dr(e,"scroll",this,cr),dr(window,"scroll",this,cr),dr(window,"resize",this,cr),dr(window,"orientationchange",this,cr),hf.forEach((function(e){dr(window,e,t,cr)})),this.setObservers(!0),this.handleEvent("refresh")}},{key:"unlisten",value:function(){var t=this,e=this.getScroller();this.setObservers(!1),e&&"BODY"!==e.tagName&&fr(e,"scroll",this,cr),fr(window,"scroll",this,cr),fr(window,"resize",this,cr),fr(window,"orientationchange",this,cr),hf.forEach((function(e){fr(window,e,t,cr)}))}},{key:"setObservers",value:function(t){var e=this;this.$obs_scroller&&(this.$obs_scroller.disconnect(),this.$obs_scroller=null),this.$obs_targets&&(this.$obs_targets.disconnect(),this.$obs_targets=null),t&&(this.$obs_targets=lr(this.$el,(function(){e.handleEvent("mutation")}),{subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]}),this.$obs_scroller=lr(this.getScroller(),(function(){e.handleEvent("mutation")}),{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["id","style","class"]}))}},{key:"handleEvent",value:function(t){var e=Object(x.j)(t)?t:t.type,n=this;"scroll"===e?(this.$obs_scroller||this.listen(),this.process()):/(resize|orientationchange|mutation|refresh)/.test(e)&&(n.$resizeTimeout||(n.$resizeTimeout=setTimeout((function(){n.refresh(),n.process(),n.$resizeTimeout=null}),n.$config.throttle)))}},{key:"refresh",value:function(){var t=this,e=this.getScroller();if(e){var n=e!==e.window?df:uf,r="auto"===this.$config.method?n:this.$config.method,o=r===df?nt:et,l=r===df?this.getScrollTop():0;return this.$offsets=[],this.$targets=[],this.$scrollHeight=this.getScrollHeight(),N(this.$selector,this.$el).map((function(link){return Z(link,"href")})).filter((function(t){return t&&ff.test(t||"")})).map((function(t){var n=t.replace(ff,"$1").trim();if(!n)return null;var r=H(n,e);return r&&D(r)?{offset:parseInt(o(r).top,10)+l,target:n}:null})).filter(Boolean).sort((function(a,b){return a.offset-b.offset})).reduce((function(e,n){return e[n.target]||(t.$offsets.push(n.offset),t.$targets.push(n.target),e[n.target]=!0),e}),{}),this}}},{key:"process",value:function(){var t=this.getScrollTop()+this.$config.offset,e=this.getScrollHeight(),n=this.$config.offset+e-this.getOffsetHeight();if(this.$scrollHeight!==e&&this.refresh(),t>=n){var r=this.$targets[this.$targets.length-1];this.$activeTarget!==r&&this.activate(r)}else{if(this.$activeTarget&&t<this.$offsets[0]&&this.$offsets[0]>0)return this.$activeTarget=null,void this.clear();for(var i=this.$offsets.length;i--;){this.$activeTarget!==this.$targets[i]&&t>=this.$offsets[i]&&(Object(x.k)(this.$offsets[i+1])||t<this.$offsets[i+1])&&this.activate(this.$targets[i])}}}},{key:"getScroller",value:function(){if(this.$scroller)return this.$scroller;var t=this.$config.element;return t?(z(t.$el)?t=t.$el:Object(x.j)(t)&&(t=H(t)),t?(this.$scroller="BODY"===t.tagName?window:t,this.$scroller):null):null}},{key:"getScrollTop",value:function(){var t=this.getScroller();return t===window?t.pageYOffset:t.scrollTop}},{key:"getScrollHeight",value:function(){return this.getScroller().scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"getOffsetHeight",value:function(){var t=this.getScroller();return t===window?window.innerHeight:J(t).height}},{key:"activate",value:function(t){var e=this;this.$activeTarget=t,this.clear();var n=N(this.$selector.split(",").map((function(e){return"".concat(e,'[href$="').concat(t,'"]')})).join(","),this.$el);n.forEach((function(link){if(W(link,lf)){var t=F(cf.DROPDOWN,link);t&&e.setActiveState(H(cf.DROPDOWN_TOGGLE,t),!0),e.setActiveState(link,!0)}else{e.setActiveState(link,!0),V(link.parentElement,cf.NAV_ITEMS)&&e.setActiveState(link.parentElement,!0);for(var n=link;n;){var r=(n=F(cf.NAV_LIST_GROUP,n))?n.previousElementSibling:null;r&&V(r,"".concat(cf.NAV_LINKS,", ").concat(cf.LIST_ITEMS))&&e.setActiveState(r,!0),r&&V(r,cf.NAV_ITEMS)&&(e.setActiveState(H(cf.NAV_LINKS,r),!0),e.setActiveState(r,!0))}}})),n&&n.length>0&&this.$root&&this.$root.$emit("bv::scrollspy::activate",t,n)}},{key:"clear",value:function(){var t=this;N("".concat(this.$selector,", ").concat(cf.NAV_ITEMS),this.$el).filter((function(t){return W(t,sf)})).forEach((function(e){return t.setActiveState(e,!1)}))}},{key:"setActiveState",value:function(t,e){t&&(e?U(t,sf):Y(t,sf))}}],[{key:"Name",get:function(){return"v-b-scrollspy"}},{key:"Default",get:function(){return of}},{key:"DefaultType",get:function(){return af}}]),t}(),bf="__BV_ScrollSpy__",vf=/^\d+$/,mf=/^(auto|position|offset)$/,gf=function(t,e,n){if(_.j){var r=function(t){var e={};return t.arg&&(e.element="#".concat(t.arg)),Object(object.l)(t.modifiers).forEach((function(t){vf.test(t)?e.offset=parseInt(t,10):mf.test(t)&&(e.method=t)})),Object(x.j)(t.value)?e.element=t.value:Object(x.g)(t.value)?e.offset=Math.round(t.value):Object(object.j)(t.value)&&Object(object.l)(t.value).filter((function(t){return!!pf.DefaultType[t]})).forEach((function(n){e[n]=t.value[n]})),e}(e);t[bf]?t[bf].updateConfig(r,n.context.$root):t[bf]=new pf(t,r,n.context.$root)}},yf={bind:function(t,e,n){gf(t,e,n)},inserted:function(t,e,n){gf(t,e,n)},update:function(t,e,n){e.value!==e.oldValue&&gf(t,e,n)},componentUpdated:function(t,e,n){e.value!==e.oldValue&&gf(t,e,n)},unbind:function(t){!function(t){t[bf]&&(t[bf].dispose(),t[bf]=null,delete t[bf])}(t)}},wf=Object(r.b)({directives:{VBScrollspy:yf}}),Of=Object(r.b)({directives:{VBToggle:Ir}}),kf=Object(r.b)({directives:{VBVisible:Fn}}),Sf=Object(r.b)({plugins:{VBHoverPlugin:ef,VBModalPlugin:nf,VBPopoverPlugin:Rc,VBScrollspyPlugin:wf,VBTogglePlugin:Of,VBTooltipPlugin:Jd,VBVisiblePlugin:kf}}),jf=(n(122),n(102),{install:Object(r.a)({plugins:{componentsPlugin:tf,directivesPlugin:Sf}}),NAME:"BootstrapVue"})},19:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return d}));var r=n(13),o=function(t){var source=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Object(r.a)()||console.warn("[BootstrapVue warn]: ".concat(source?"".concat(source," - "):"").concat(t))},l=function(source){return!r.j&&(o("".concat(source,": Can not be called during SSR.")),!0)},c=function(source){return!r.g&&(o("".concat(source,": Requires Promise support.")),!0)},d=function(source){return!r.d&&(o("".concat(source,": Requires MutationObserver support.")),!0)}},209:function(t,e,n){var content=n(210);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(50).default)("32df6d42",content,!0,{sourceMap:!1})},21:function(t,e,n){"use strict";n(31),n(22);var r=n(16),o=n(5),l=n(4),c=/\[(\d+)]/g;e.a=function(t,path){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!(path=Object(o.d)(path)?path.join("."):path)||!Object(l.j)(t))return e;if(path in t)return t[path];var n=(path=String(path).replace(c,".$1")).split(".").filter(r.a);return 0===n.length?e:n.every((function(e){return Object(l.j)(t)&&e in t&&null!=(t=t[e])}))?t:e}},210:function(t,e,n){(e=n(49)(!1)).push([t.i,"/*!\n * BootstrapVue Custom CSS (https://bootstrap-vue.js.org)\n */.bv-no-focus-ring:focus{outline:none}@media (max-width:575.98px){.bv-d-xs-down-none{display:none!important}}@media (max-width:767.98px){.bv-d-sm-down-none{display:none!important}}@media (max-width:991.98px){.bv-d-md-down-none{display:none!important}}@media (max-width:1199.98px){.bv-d-lg-down-none{display:none!important}}.bv-d-xl-down-none{display:none!important}.form-control.focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.form-control.focus.is-valid{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.form-control.focus.is-invalid{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.b-form-btn-label-control{background-image:none}.b-form-btn-label-control[dir=rtl],[dir=rtl] .b-form-btn-label-control{flex-direction:row-reverse}.b-form-btn-label-control[dir=rtl]>label,[dir=rtl] .b-form-btn-label-control>label{text-align:right}.b-form-btn-label-control>.btn{line-height:1;font-size:inherit;box-shadow:none!important}.b-form-btn-label-control>.btn:disabled{pointer-events:none}.b-form-btn-label-control.is-valid>.btn{color:#28a745}.b-form-btn-label-control.is-invalid>.btn{color:#dc3545}.b-form-btn-label-control>label{outline:0;cursor:pointer;min-height:calc(1.5em + .75rem)}.b-form-btn-label-control>label.form-control-sm{min-height:calc(1.5em + .5rem)}.b-form-btn-label-control>label.form-control-lg{min-height:calc(1.5em + 1rem)}.b-form-btn-label-control[aria-disabled=true],.b-form-btn-label-control[aria-readonly=true]{background-color:#e9ecef;opacity:1}.b-form-btn-label-control[aria-disabled=true]{pointer-events:none}.b-form-btn-label-control[aria-disabled=true]>label{cursor:default}.b-calendar .b-calendar-inner{min-width:250px}.b-calendar output.readonly{background-color:#e9ecef;opacity:1}.b-calendar .form-control[role=application]{overflow:hidden}.b-calendar .b-calendar-grid-body .col[data-date] .btn{width:32px;height:32px;font-size:14px;line-height:1;margin:3px auto;padding:9px 0}.b-calendar .btn.disabled,.b-calendar .btn:disabled,.b-calendar .btn[aria-disabled=true]{cursor:default;pointer-events:none}.card-img-left{border-top-left-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-img-right{border-top-right-radius:calc(.25rem - 1px);border-bottom-right-radius:calc(.25rem - 1px)}.dropdown.dropleft .dropdown-toggle.dropdown-toggle-no-caret:before,.dropdown:not(.dropleft) .dropdown-toggle.dropdown-toggle-no-caret:after{display:none!important}.dropdown .dropdown-menu:focus{outline:none}.b-dropdown-form{display:inline-block;padding:.25rem 1.5rem;width:100%;clear:both;font-weight:400}.b-dropdown-form:focus{outline:1px dotted!important;outline:5px auto -webkit-focus-ring-color!important}.b-dropdown-form.disabled,.b-dropdown-form:disabled{outline:0!important;color:#6c757d;pointer-events:none}.b-dropdown-text{display:inline-block;padding:.25rem 1.5rem;margin-bottom:0;width:100%;clear:both;font-weight:lighter}.custom-checkbox.b-custom-control-lg,.input-group-lg .custom-checkbox{font-size:1.25rem;line-height:1.5;padding-left:1.875rem}.custom-checkbox.b-custom-control-lg .custom-control-label:before,.input-group-lg .custom-checkbox .custom-control-label:before{top:.3125rem;left:-1.875rem;width:1.25rem;height:1.25rem;border-radius:.3rem}.custom-checkbox.b-custom-control-lg .custom-control-label:after,.input-group-lg .custom-checkbox .custom-control-label:after{top:.3125rem;left:-1.875rem;width:1.25rem;height:1.25rem;background-size:50% 50%}.custom-checkbox.b-custom-control-sm,.input-group-sm .custom-checkbox{font-size:.875rem;line-height:1.5;padding-left:1.3125rem}.custom-checkbox.b-custom-control-sm .custom-control-label:before,.input-group-sm .custom-checkbox .custom-control-label:before{top:.21875rem;left:-1.3125rem;width:.875rem;height:.875rem;border-radius:.2rem}.custom-checkbox.b-custom-control-sm .custom-control-label:after,.input-group-sm .custom-checkbox .custom-control-label:after{top:.21875rem;left:-1.3125rem;width:.875rem;height:.875rem;background-size:50% 50%}.custom-switch.b-custom-control-lg,.input-group-lg .custom-switch{padding-left:2.8125rem}.custom-switch.b-custom-control-lg .custom-control-label,.input-group-lg .custom-switch .custom-control-label{font-size:1.25rem;line-height:1.5}.custom-switch.b-custom-control-lg .custom-control-label:before,.input-group-lg .custom-switch .custom-control-label:before{top:.3125rem;height:1.25rem;left:-2.8125rem;width:2.1875rem;border-radius:.625rem}.custom-switch.b-custom-control-lg .custom-control-label:after,.input-group-lg .custom-switch .custom-control-label:after{top:calc(.3125rem + 2px);left:calc(-2.8125rem + 2px);width:calc(1.25rem - 4px);height:calc(1.25rem - 4px);border-radius:.625rem;background-size:50% 50%}.custom-switch.b-custom-control-lg .custom-control-input:checked~.custom-control-label:after,.input-group-lg .custom-switch .custom-control-input:checked~.custom-control-label:after{transform:translateX(.9375rem)}.custom-switch.b-custom-control-sm,.input-group-sm .custom-switch{padding-left:1.96875rem}.custom-switch.b-custom-control-sm .custom-control-label,.input-group-sm .custom-switch .custom-control-label{font-size:.875rem;line-height:1.5}.custom-switch.b-custom-control-sm .custom-control-label:before,.input-group-sm .custom-switch .custom-control-label:before{top:.21875rem;left:-1.96875rem;width:1.53125rem;height:.875rem;border-radius:.4375rem}.custom-switch.b-custom-control-sm .custom-control-label:after,.input-group-sm .custom-switch .custom-control-label:after{top:calc(.21875rem + 2px);left:calc(-1.96875rem + 2px);width:calc(.875rem - 4px);height:calc(.875rem - 4px);border-radius:.4375rem;background-size:50% 50%}.custom-switch.b-custom-control-sm .custom-control-input:checked~.custom-control-label:after,.input-group-sm .custom-switch .custom-control-input:checked~.custom-control-label:after{transform:translateX(.65625rem)}.input-group>.input-group-append:last-child>.btn-group:not(:last-child):not(.dropdown-toggle)>.btn,.input-group>.input-group-append:not(:last-child)>.btn-group>.btn,.input-group>.input-group-prepend>.btn-group>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn-group>.btn,.input-group>.input-group-prepend:first-child>.btn-group:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.btn-group>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.b-custom-control-lg.custom-file,.b-custom-control-lg .custom-file-input,.b-custom-control-lg .custom-file-label,.input-group-lg.custom-file,.input-group-lg .custom-file-input,.input-group-lg .custom-file-label{font-size:1.25rem;height:calc(1.5em + 1rem + 2px)}.b-custom-control-lg .custom-file-label,.b-custom-control-lg .custom-file-label:after,.input-group-lg .custom-file-label,.input-group-lg .custom-file-label:after{padding:.5rem 1rem;line-height:1.5}.b-custom-control-lg .custom-file-label,.input-group-lg .custom-file-label{border-radius:.3rem}.b-custom-control-lg .custom-file-label:after,.input-group-lg .custom-file-label:after{font-size:inherit;height:calc(1.5em + 1rem);border-radius:0 .3rem .3rem 0}.b-custom-control-sm.custom-file,.b-custom-control-sm .custom-file-input,.b-custom-control-sm .custom-file-label,.input-group-sm.custom-file,.input-group-sm .custom-file-input,.input-group-sm .custom-file-label{font-size:.875rem;height:calc(1.5em + .5rem + 2px)}.b-custom-control-sm .custom-file-label,.b-custom-control-sm .custom-file-label:after,.input-group-sm .custom-file-label,.input-group-sm .custom-file-label:after{padding:.25rem .5rem;line-height:1.5}.b-custom-control-sm .custom-file-label,.input-group-sm .custom-file-label{border-radius:.2rem}.b-custom-control-sm .custom-file-label:after,.input-group-sm .custom-file-label:after{font-size:inherit;height:calc(1.5em + .5rem);border-radius:0 .2rem .2rem 0}.form-control.is-invalid,.form-control.is-valid,.was-validated .form-control:invalid,.was-validated .form-control:valid{background-position:right calc(.375em + .1875rem) center}input[type=color].form-control{height:calc(1.5em + .75rem + 2px);padding:.125rem .25rem}.input-group-sm input[type=color].form-control,input[type=color].form-control.form-control-sm{height:calc(1.5em + .5rem + 2px);padding:.125rem .25rem}.input-group-lg input[type=color].form-control,input[type=color].form-control.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.125rem .25rem}input[type=color].form-control:disabled{background-color:#adb5bd;opacity:.65}.input-group>.custom-range{position:relative;flex:1 1 auto;width:1%;margin-bottom:0}.input-group>.custom-file+.custom-range,.input-group>.custom-range+.custom-file,.input-group>.custom-range+.custom-range,.input-group>.custom-range+.custom-select,.input-group>.custom-range+.form-control,.input-group>.custom-range+.form-control-plaintext,.input-group>.custom-select+.custom-range,.input-group>.form-control+.custom-range,.input-group>.form-control-plaintext+.custom-range{margin-left:-1px}.input-group>.custom-range:focus{z-index:3}.input-group>.custom-range:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-range:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-range{padding:0 .75rem;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;height:calc(1.5em + .75rem + 2px);border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.input-group>.custom-range{transition:none}}.input-group>.custom-range:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.input-group>.custom-range:disabled,.input-group>.custom-range[readonly]{background-color:#e9ecef}.input-group-lg>.custom-range{height:calc(1.5em + 1rem + 2px);padding:0 1rem;border-radius:.3rem}.input-group-sm>.custom-range{height:calc(1.5em + .5rem + 2px);padding:0 .5rem;border-radius:.2rem}.input-group .custom-range.is-valid,.was-validated .input-group .custom-range:valid{border-color:#28a745}.input-group .custom-range.is-valid:focus,.was-validated .input-group .custom-range:valid:focus{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.custom-range.is-valid:focus::-webkit-slider-thumb,.was-validated .custom-range:valid:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #9be7ac}.custom-range.is-valid:focus::-moz-range-thumb,.was-validated .custom-range:valid:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #9be7ac}.custom-range.is-valid:focus::-ms-thumb,.was-validated .custom-range:valid:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #9be7ac}.custom-range.is-valid::-webkit-slider-thumb,.was-validated .custom-range:valid::-webkit-slider-thumb{background-color:#28a745;background-image:none}.custom-range.is-valid::-webkit-slider-thumb:active,.was-validated .custom-range:valid::-webkit-slider-thumb:active{background-color:#9be7ac;background-image:none}.custom-range.is-valid::-webkit-slider-runnable-track,.was-validated .custom-range:valid::-webkit-slider-runnable-track{background-color:rgba(40,167,69,.35)}.custom-range.is-valid::-moz-range-thumb,.was-validated .custom-range:valid::-moz-range-thumb{background-color:#28a745;background-image:none}.custom-range.is-valid::-moz-range-thumb:active,.was-validated .custom-range:valid::-moz-range-thumb:active{background-color:#9be7ac;background-image:none}.custom-range.is-valid::-moz-range-track,.was-validated .custom-range:valid::-moz-range-track{background:rgba(40,167,69,.35)}.custom-range.is-valid~.valid-feedback,.custom-range.is-valid~.valid-tooltip,.was-validated .custom-range:valid~.valid-feedback,.was-validated .custom-range:valid~.valid-tooltip{display:block}.custom-range.is-valid::-ms-thumb,.was-validated .custom-range:valid::-ms-thumb{background-color:#28a745;background-image:none}.custom-range.is-valid::-ms-thumb:active,.was-validated .custom-range:valid::-ms-thumb:active{background-color:#9be7ac;background-image:none}.custom-range.is-valid::-ms-track-lower,.custom-range.is-valid::-ms-track-upper,.was-validated .custom-range:valid::-ms-track-lower,.was-validated .custom-range:valid::-ms-track-upper{background:rgba(40,167,69,.35)}.input-group .custom-range.is-invalid,.was-validated .input-group .custom-range:invalid{border-color:#dc3545}.input-group .custom-range.is-invalid:focus,.was-validated .input-group .custom-range:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.custom-range.is-invalid:focus::-webkit-slider-thumb,.was-validated .custom-range:invalid:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #f6cdd1}.custom-range.is-invalid:focus::-moz-range-thumb,.was-validated .custom-range:invalid:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #f6cdd1}.custom-range.is-invalid:focus::-ms-thumb,.was-validated .custom-range:invalid:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #f6cdd1}.custom-range.is-invalid::-webkit-slider-thumb,.was-validated .custom-range:invalid::-webkit-slider-thumb{background-color:#dc3545;background-image:none}.custom-range.is-invalid::-webkit-slider-thumb:active,.was-validated .custom-range:invalid::-webkit-slider-thumb:active{background-color:#f6cdd1;background-image:none}.custom-range.is-invalid::-webkit-slider-runnable-track,.was-validated .custom-range:invalid::-webkit-slider-runnable-track{background-color:rgba(220,53,69,.35)}.custom-range.is-invalid::-moz-range-thumb,.was-validated .custom-range:invalid::-moz-range-thumb{background-color:#dc3545;background-image:none}.custom-range.is-invalid::-moz-range-thumb:active,.was-validated .custom-range:invalid::-moz-range-thumb:active{background-color:#f6cdd1;background-image:none}.custom-range.is-invalid::-moz-range-track,.was-validated .custom-range:invalid::-moz-range-track{background:rgba(220,53,69,.35)}.custom-range.is-invalid~.invalid-feedback,.custom-range.is-invalid~.invalid-tooltip,.was-validated .custom-range:invalid~.invalid-feedback,.was-validated .custom-range:invalid~.invalid-tooltip{display:block}.custom-range.is-invalid::-ms-thumb,.was-validated .custom-range:invalid::-ms-thumb{background-color:#dc3545;background-image:none}.custom-range.is-invalid::-ms-thumb:active,.was-validated .custom-range:invalid::-ms-thumb:active{background-color:#f6cdd1;background-image:none}.custom-range.is-invalid::-ms-track-lower,.custom-range.is-invalid::-ms-track-upper,.was-validated .custom-range:invalid::-ms-track-lower,.was-validated .custom-range:invalid::-ms-track-upper{background:rgba(220,53,69,.35)}.custom-radio.b-custom-control-lg,.input-group-lg .custom-radio{font-size:1.25rem;line-height:1.5;padding-left:1.875rem}.custom-radio.b-custom-control-lg .custom-control-label:before,.input-group-lg .custom-radio .custom-control-label:before{top:.3125rem;left:-1.875rem;width:1.25rem;height:1.25rem;border-radius:50%}.custom-radio.b-custom-control-lg .custom-control-label:after,.input-group-lg .custom-radio .custom-control-label:after{top:.3125rem;left:-1.875rem;width:1.25rem;height:1.25rem;background:no-repeat 50%/50% 50%}.custom-radio.b-custom-control-sm,.input-group-sm .custom-radio{font-size:.875rem;line-height:1.5;padding-left:1.3125rem}.custom-radio.b-custom-control-sm .custom-control-label:before,.input-group-sm .custom-radio .custom-control-label:before{top:.21875rem;left:-1.3125rem;width:.875rem;height:.875rem;border-radius:50%}.custom-radio.b-custom-control-sm .custom-control-label:after,.input-group-sm .custom-radio .custom-control-label:after{top:.21875rem;left:-1.3125rem;width:.875rem;height:.875rem;background:no-repeat 50%/50% 50%}.b-form-spinbutton.form-control{text-align:center;overflow:hidden;background-image:none}.b-form-spinbutton.form-control.flex-column{height:auto;width:auto}.b-form-spinbutton.form-control[dir=rtl]:not(.flex-column),[dir=rtl] .b-form-spinbutton.form-control:not(.flex-column){flex-direction:row-reverse}.b-form-spinbutton.form-control output{font-size:inherit;outline:0;border:0;background-color:transparent}.b-form-spinbutton.form-control output>bdi,.b-form-spinbutton.form-control output>div{display:block;min-width:2.25em;height:1.5em}.b-form-spinbutton.form-control.d-inline-flex:not(.flex-column),.b-form-spinbutton.form-control.d-inline-flex:not(.flex-column) output{width:auto}.b-form-spinbutton.form-control .btn{line-height:1;box-shadow:none!important}.b-form-spinbutton.form-control .btn:disabled{pointer-events:none}.b-form-spinbutton.form-control .btn:hover:not(:disabled)>div{transform:scale(1.25)}.b-form-spinbutton.form-control.disabled,.b-form-spinbutton.form-control.readonly{background-color:#e9ecef}.b-form-spinbutton.form-control.disabled{pointer-events:none}.b-form-tags.focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.b-form-tags.focus.is-valid{border-color:#28a745;box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.b-form-tags.focus.is-invalid{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.b-form-tags.disabled{background-color:#e9ecef}.b-form-tag{font-size:75%;font-weight:400;line-height:1.5}.b-form-tag.disabled{opacity:.75}.b-form-tag>button.b-form-tag-remove{color:inherit;font-size:125%;line-height:1;float:none}.form-control-lg .b-form-tag,.form-control-sm .b-form-tag{line-height:1.5}.modal-backdrop{opacity:.5}.b-pagination-pills .page-item .page-link{border-radius:50rem!important;margin-left:.25rem;line-height:1}.b-pagination-pills .page-item:first-child .page-link{margin-left:0}.popover.b-popover{display:block;opacity:1;outline:0}.popover.b-popover.fade:not(.show){opacity:0}.popover.b-popover.show{opacity:1}.b-popover-primary.popover{background-color:#cce5ff;border-color:#b8daff}.b-popover-primary.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-primary.bs-popover-top>.arrow:before{border-top-color:#b8daff}.b-popover-primary.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-primary.bs-popover-top>.arrow:after{border-top-color:#cce5ff}.b-popover-primary.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-primary.bs-popover-right>.arrow:before{border-right-color:#b8daff}.b-popover-primary.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-primary.bs-popover-right>.arrow:after{border-right-color:#cce5ff}.b-popover-primary.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-primary.bs-popover-bottom>.arrow:before{border-bottom-color:#b8daff}.b-popover-primary.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-primary.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-primary.bs-popover-bottom .popover-header:before,.b-popover-primary.bs-popover-bottom>.arrow:after{border-bottom-color:#bdddff}.b-popover-primary.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-primary.bs-popover-left>.arrow:before{border-left-color:#b8daff}.b-popover-primary.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-primary.bs-popover-left>.arrow:after{border-left-color:#cce5ff}.b-popover-primary .popover-header{color:#212529;background-color:#bdddff;border-bottom-color:#a3d0ff}.b-popover-primary .popover-body{color:#004085}.b-popover-secondary.popover{background-color:#e2e3e5;border-color:#d6d8db}.b-popover-secondary.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-secondary.bs-popover-top>.arrow:before{border-top-color:#d6d8db}.b-popover-secondary.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-secondary.bs-popover-top>.arrow:after{border-top-color:#e2e3e5}.b-popover-secondary.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-secondary.bs-popover-right>.arrow:before{border-right-color:#d6d8db}.b-popover-secondary.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-secondary.bs-popover-right>.arrow:after{border-right-color:#e2e3e5}.b-popover-secondary.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-secondary.bs-popover-bottom>.arrow:before{border-bottom-color:#d6d8db}.b-popover-secondary.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-secondary.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-secondary.bs-popover-bottom .popover-header:before,.b-popover-secondary.bs-popover-bottom>.arrow:after{border-bottom-color:#dadbde}.b-popover-secondary.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-secondary.bs-popover-left>.arrow:before{border-left-color:#d6d8db}.b-popover-secondary.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-secondary.bs-popover-left>.arrow:after{border-left-color:#e2e3e5}.b-popover-secondary .popover-header{color:#212529;background-color:#dadbde;border-bottom-color:#ccced2}.b-popover-secondary .popover-body{color:#383d41}.b-popover-success.popover{background-color:#d4edda;border-color:#c3e6cb}.b-popover-success.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-success.bs-popover-top>.arrow:before{border-top-color:#c3e6cb}.b-popover-success.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-success.bs-popover-top>.arrow:after{border-top-color:#d4edda}.b-popover-success.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-success.bs-popover-right>.arrow:before{border-right-color:#c3e6cb}.b-popover-success.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-success.bs-popover-right>.arrow:after{border-right-color:#d4edda}.b-popover-success.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-success.bs-popover-bottom>.arrow:before{border-bottom-color:#c3e6cb}.b-popover-success.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-success.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-success.bs-popover-bottom .popover-header:before,.b-popover-success.bs-popover-bottom>.arrow:after{border-bottom-color:#c9e8d1}.b-popover-success.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-success.bs-popover-left>.arrow:before{border-left-color:#c3e6cb}.b-popover-success.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-success.bs-popover-left>.arrow:after{border-left-color:#d4edda}.b-popover-success .popover-header{color:#212529;background-color:#c9e8d1;border-bottom-color:#b7e1c1}.b-popover-success .popover-body{color:#155724}.b-popover-info.popover{background-color:#d1ecf1;border-color:#bee5eb}.b-popover-info.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-info.bs-popover-top>.arrow:before{border-top-color:#bee5eb}.b-popover-info.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-info.bs-popover-top>.arrow:after{border-top-color:#d1ecf1}.b-popover-info.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-info.bs-popover-right>.arrow:before{border-right-color:#bee5eb}.b-popover-info.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-info.bs-popover-right>.arrow:after{border-right-color:#d1ecf1}.b-popover-info.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-info.bs-popover-bottom>.arrow:before{border-bottom-color:#bee5eb}.b-popover-info.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-info.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-info.bs-popover-bottom .popover-header:before,.b-popover-info.bs-popover-bottom>.arrow:after{border-bottom-color:#c5e7ed}.b-popover-info.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-info.bs-popover-left>.arrow:before{border-left-color:#bee5eb}.b-popover-info.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-info.bs-popover-left>.arrow:after{border-left-color:#d1ecf1}.b-popover-info .popover-header{color:#212529;background-color:#c5e7ed;border-bottom-color:#b2dfe7}.b-popover-info .popover-body{color:#0c5460}.b-popover-warning.popover{background-color:#fff3cd;border-color:#ffeeba}.b-popover-warning.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-warning.bs-popover-top>.arrow:before{border-top-color:#ffeeba}.b-popover-warning.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-warning.bs-popover-top>.arrow:after{border-top-color:#fff3cd}.b-popover-warning.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-warning.bs-popover-right>.arrow:before{border-right-color:#ffeeba}.b-popover-warning.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-warning.bs-popover-right>.arrow:after{border-right-color:#fff3cd}.b-popover-warning.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-warning.bs-popover-bottom>.arrow:before{border-bottom-color:#ffeeba}.b-popover-warning.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-warning.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-warning.bs-popover-bottom .popover-header:before,.b-popover-warning.bs-popover-bottom>.arrow:after{border-bottom-color:#ffefbe}.b-popover-warning.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-warning.bs-popover-left>.arrow:before{border-left-color:#ffeeba}.b-popover-warning.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-warning.bs-popover-left>.arrow:after{border-left-color:#fff3cd}.b-popover-warning .popover-header{color:#212529;background-color:#ffefbe;border-bottom-color:#ffe9a4}.b-popover-warning .popover-body{color:#856404}.b-popover-danger.popover{background-color:#f8d7da;border-color:#f5c6cb}.b-popover-danger.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-danger.bs-popover-top>.arrow:before{border-top-color:#f5c6cb}.b-popover-danger.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-danger.bs-popover-top>.arrow:after{border-top-color:#f8d7da}.b-popover-danger.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-danger.bs-popover-right>.arrow:before{border-right-color:#f5c6cb}.b-popover-danger.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-danger.bs-popover-right>.arrow:after{border-right-color:#f8d7da}.b-popover-danger.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-danger.bs-popover-bottom>.arrow:before{border-bottom-color:#f5c6cb}.b-popover-danger.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-danger.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-danger.bs-popover-bottom .popover-header:before,.b-popover-danger.bs-popover-bottom>.arrow:after{border-bottom-color:#f6cace}.b-popover-danger.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-danger.bs-popover-left>.arrow:before{border-left-color:#f5c6cb}.b-popover-danger.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-danger.bs-popover-left>.arrow:after{border-left-color:#f8d7da}.b-popover-danger .popover-header{color:#212529;background-color:#f6cace;border-bottom-color:#f2b4ba}.b-popover-danger .popover-body{color:#721c24}.b-popover-light.popover{background-color:#fefefe;border-color:#fdfdfe}.b-popover-light.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-light.bs-popover-top>.arrow:before{border-top-color:#fdfdfe}.b-popover-light.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-light.bs-popover-top>.arrow:after{border-top-color:#fefefe}.b-popover-light.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-light.bs-popover-right>.arrow:before{border-right-color:#fdfdfe}.b-popover-light.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-light.bs-popover-right>.arrow:after{border-right-color:#fefefe}.b-popover-light.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-light.bs-popover-bottom>.arrow:before{border-bottom-color:#fdfdfe}.b-popover-light.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-light.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-light.bs-popover-bottom .popover-header:before,.b-popover-light.bs-popover-bottom>.arrow:after{border-bottom-color:#f6f6f6}.b-popover-light.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-light.bs-popover-left>.arrow:before{border-left-color:#fdfdfe}.b-popover-light.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-light.bs-popover-left>.arrow:after{border-left-color:#fefefe}.b-popover-light .popover-header{color:#212529;background-color:#f6f6f6;border-bottom-color:#eaeaea}.b-popover-light .popover-body{color:#818182}.b-popover-dark.popover{background-color:#d6d8d9;border-color:#c6c8ca}.b-popover-dark.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-dark.bs-popover-top>.arrow:before{border-top-color:#c6c8ca}.b-popover-dark.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-dark.bs-popover-top>.arrow:after{border-top-color:#d6d8d9}.b-popover-dark.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-dark.bs-popover-right>.arrow:before{border-right-color:#c6c8ca}.b-popover-dark.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-dark.bs-popover-right>.arrow:after{border-right-color:#d6d8d9}.b-popover-dark.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-dark.bs-popover-bottom>.arrow:before{border-bottom-color:#c6c8ca}.b-popover-dark.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-dark.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-dark.bs-popover-bottom .popover-header:before,.b-popover-dark.bs-popover-bottom>.arrow:after{border-bottom-color:#ced0d2}.b-popover-dark.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-dark.bs-popover-left>.arrow:before{border-left-color:#c6c8ca}.b-popover-dark.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-dark.bs-popover-left>.arrow:after{border-left-color:#d6d8d9}.b-popover-dark .popover-header{color:#212529;background-color:#ced0d2;border-bottom-color:#c1c4c5}.b-popover-dark .popover-body{color:#1b1e21}.table.b-table.b-table-fixed{table-layout:fixed}.table.b-table.b-table-no-border-collapse{border-collapse:separate;border-spacing:0}.table.b-table[aria-busy=true]{opacity:.55}.table.b-table>tbody>tr.b-table-details>td{border-top:none!important}.table.b-table>caption{caption-side:bottom}.table.b-table.b-table-caption-top>caption{caption-side:top!important}.table.b-table>tbody>.table-active,.table.b-table>tbody>.table-active>td,.table.b-table>tbody>.table-active>th{background-color:rgba(0,0,0,.075)}.table.b-table.table-hover>tbody>tr.table-active:hover td,.table.b-table.table-hover>tbody>tr.table-active:hover th{color:#212529;background-image:linear-gradient(rgba(0,0,0,.075),rgba(0,0,0,.075));background-repeat:no-repeat}.table.b-table>tbody>.bg-active,.table.b-table>tbody>.bg-active>td,.table.b-table>tbody>.bg-active>th{background-color:hsla(0,0%,100%,.075)!important}.table.b-table.table-hover.table-dark>tbody>tr.bg-active:hover td,.table.b-table.table-hover.table-dark>tbody>tr.bg-active:hover th{color:#fff;background-image:linear-gradient(hsla(0,0%,100%,.075),hsla(0,0%,100%,.075));background-repeat:no-repeat}.b-table-sticky-header,.table-responsive,[class*=table-responsive-]{margin-bottom:1rem}.b-table-sticky-header>.table,.table-responsive>.table,[class*=table-responsive-]>.table{margin-bottom:0}.b-table-sticky-header{overflow-y:auto;max-height:300px}@media print{.b-table-sticky-header{overflow-y:visible!important;max-height:none!important}}@supports ((position:-webkit-sticky) or (position:sticky)){.b-table-sticky-header>.table.b-table>thead>tr>th{position:-webkit-sticky;position:sticky;top:0;z-index:2}.b-table-sticky-header>.table.b-table>tbody>tr>.b-table-sticky-column,.b-table-sticky-header>.table.b-table>tfoot>tr>.b-table-sticky-column,.b-table-sticky-header>.table.b-table>thead>tr>.b-table-sticky-column,.table-responsive>.table.b-table>tbody>tr>.b-table-sticky-column,.table-responsive>.table.b-table>tfoot>tr>.b-table-sticky-column,.table-responsive>.table.b-table>thead>tr>.b-table-sticky-column,[class*=table-responsive-]>.table.b-table>tbody>tr>.b-table-sticky-column,[class*=table-responsive-]>.table.b-table>tfoot>tr>.b-table-sticky-column,[class*=table-responsive-]>.table.b-table>thead>tr>.b-table-sticky-column{position:-webkit-sticky;position:sticky;left:0}.b-table-sticky-header>.table.b-table>thead>tr>.b-table-sticky-column,.table-responsive>.table.b-table>thead>tr>.b-table-sticky-column,[class*=table-responsive-]>.table.b-table>thead>tr>.b-table-sticky-column{z-index:5}.b-table-sticky-header>.table.b-table>tbody>tr>.b-table-sticky-column,.b-table-sticky-header>.table.b-table>tfoot>tr>.b-table-sticky-column,.table-responsive>.table.b-table>tbody>tr>.b-table-sticky-column,.table-responsive>.table.b-table>tfoot>tr>.b-table-sticky-column,[class*=table-responsive-]>.table.b-table>tbody>tr>.b-table-sticky-column,[class*=table-responsive-]>.table.b-table>tfoot>tr>.b-table-sticky-column{z-index:2}.table.b-table>tbody>tr>.table-b-table-default,.table.b-table>tfoot>tr>.table-b-table-default,.table.b-table>thead>tr>.table-b-table-default{color:#212529;background-color:#fff}.table.b-table.table-dark>tbody>tr>.bg-b-table-default,.table.b-table.table-dark>tfoot>tr>.bg-b-table-default,.table.b-table.table-dark>thead>tr>.bg-b-table-default{color:#fff;background-color:#343a40}.table.b-table.table-striped>tbody>tr:nth-of-type(odd)>.table-b-table-default{background-image:linear-gradient(rgba(0,0,0,.05),rgba(0,0,0,.05));background-repeat:no-repeat}.table.b-table.table-striped.table-dark>tbody>tr:nth-of-type(odd)>.bg-b-table-default{background-image:linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,.05));background-repeat:no-repeat}.table.b-table.table-hover>tbody>tr:hover>.table-b-table-default{color:#212529;background-image:linear-gradient(rgba(0,0,0,.075),rgba(0,0,0,.075));background-repeat:no-repeat}.table.b-table.table-hover.table-dark>tbody>tr:hover>.bg-b-table-default{color:#fff;background-image:linear-gradient(hsla(0,0%,100%,.075),hsla(0,0%,100%,.075));background-repeat:no-repeat}}.table.b-table>tfoot>tr>[aria-sort],.table.b-table>thead>tr>[aria-sort]{cursor:pointer;background-image:none;background-repeat:no-repeat;background-size:.65em 1em}.table.b-table>tfoot>tr>[aria-sort]:not(.b-table-sort-icon-left),.table.b-table>thead>tr>[aria-sort]:not(.b-table-sort-icon-left){background-position:right .375rem center;padding-right:calc(.75rem + .65em)}.table.b-table>tfoot>tr>[aria-sort].b-table-sort-icon-left,.table.b-table>thead>tr>[aria-sort].b-table-sort-icon-left{background-position:left .375rem center;padding-left:calc(.75rem + .65em)}.table.b-table>tfoot>tr>[aria-sort=none],.table.b-table>thead>tr>[aria-sort=none]{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath opacity='.3' d='M51 1l25 23 24 22H1l25-22zm0 100l25-23 24-22H1l25 22z'/%3E%3C/svg%3E\")}.table.b-table>tfoot>tr>[aria-sort=ascending],.table.b-table>thead>tr>[aria-sort=ascending]{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath d='M51 1l25 23 24 22H1l25-22z'/%3E%3Cpath opacity='.3' d='M51 101l25-23 24-22H1l25 22z'/%3E%3C/svg%3E\")}.table.b-table>tfoot>tr>[aria-sort=descending],.table.b-table>thead>tr>[aria-sort=descending]{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath opacity='.3' d='M51 1l25 23 24 22H1l25-22z'/%3E%3Cpath d='M51 101l25-23 24-22H1l25 22z'/%3E%3C/svg%3E\")}.table.b-table.table-dark>tfoot>tr>[aria-sort=none],.table.b-table.table-dark>thead>tr>[aria-sort=none],.table.b-table>.thead-dark>tr>[aria-sort=none]{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' opacity='.3' d='M51 1l25 23 24 22H1l25-22zm0 100l25-23 24-22H1l25 22z'/%3E%3C/svg%3E\")}.table.b-table.table-dark>tfoot>tr>[aria-sort=ascending],.table.b-table.table-dark>thead>tr>[aria-sort=ascending],.table.b-table>.thead-dark>tr>[aria-sort=ascending]{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M51 1l25 23 24 22H1l25-22z'/%3E%3Cpath fill='%23fff' opacity='.3' d='M51 101l25-23 24-22H1l25 22z'/%3E%3C/svg%3E\")}.table.b-table.table-dark>tfoot>tr>[aria-sort=descending],.table.b-table.table-dark>thead>tr>[aria-sort=descending],.table.b-table>.thead-dark>tr>[aria-sort=descending]{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' opacity='.3' d='M51 1l25 23 24 22H1l25-22z'/%3E%3Cpath fill='%23fff' d='M51 101l25-23 24-22H1l25 22z'/%3E%3C/svg%3E\")}.table.b-table>tfoot>tr>.table-dark[aria-sort=none],.table.b-table>thead>tr>.table-dark[aria-sort=none]{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' opacity='.3' d='M51 1l25 23 24 22H1l25-22zm0 100l25-23 24-22H1l25 22z'/%3E%3C/svg%3E\")}.table.b-table>tfoot>tr>.table-dark[aria-sort=ascending],.table.b-table>thead>tr>.table-dark[aria-sort=ascending]{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M51 1l25 23 24 22H1l25-22z'/%3E%3Cpath fill='%23fff' opacity='.3' d='M51 101l25-23 24-22H1l25 22z'/%3E%3C/svg%3E\")}.table.b-table>tfoot>tr>.table-dark[aria-sort=descending],.table.b-table>thead>tr>.table-dark[aria-sort=descending]{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' opacity='.3' d='M51 1l25 23 24 22H1l25-22z'/%3E%3Cpath fill='%23fff' d='M51 101l25-23 24-22H1l25 22z'/%3E%3C/svg%3E\")}.table.b-table.table-sm>tfoot>tr>[aria-sort]:not(.b-table-sort-icon-left),.table.b-table.table-sm>thead>tr>[aria-sort]:not(.b-table-sort-icon-left){background-position:right .15rem center;padding-right:calc(.3rem + .65em)}.table.b-table.table-sm>tfoot>tr>[aria-sort].b-table-sort-icon-left,.table.b-table.table-sm>thead>tr>[aria-sort].b-table-sort-icon-left{background-position:left .15rem center;padding-left:calc(.3rem + .65em)}.table.b-table.b-table-selectable:not(.b-table-selectable-no-click)>tbody>tr{cursor:pointer}.table.b-table.b-table-selectable:not(.b-table-selectable-no-click).b-table-selecting.b-table-select-range>tbody>tr{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media (max-width:575.98px){.table.b-table.b-table-stacked-sm{display:block;width:100%}.table.b-table.b-table-stacked-sm>caption,.table.b-table.b-table-stacked-sm>tbody,.table.b-table.b-table-stacked-sm>tbody>tr,.table.b-table.b-table-stacked-sm>tbody>tr>td,.table.b-table.b-table-stacked-sm>tbody>tr>th{display:block}.table.b-table.b-table-stacked-sm>tfoot,.table.b-table.b-table-stacked-sm>tfoot>tr.b-table-bottom-row,.table.b-table.b-table-stacked-sm>tfoot>tr.b-table-top-row,.table.b-table.b-table-stacked-sm>thead,.table.b-table.b-table-stacked-sm>thead>tr.b-table-bottom-row,.table.b-table.b-table-stacked-sm>thead>tr.b-table-top-row{display:none}.table.b-table.b-table-stacked-sm>caption{caption-side:top!important}.table.b-table.b-table-stacked-sm>tbody>tr>[data-label]:before{content:attr(data-label);width:40%;float:left;text-align:right;word-wrap:break-word;font-weight:700;font-style:normal;padding:0 .5rem 0 0;margin:0}.table.b-table.b-table-stacked-sm>tbody>tr>[data-label]:after{display:block;clear:both;content:\"\"}.table.b-table.b-table-stacked-sm>tbody>tr>[data-label]>div{display:inline-block;width:60%;padding:0 0 0 .5rem;margin:0}.table.b-table.b-table-stacked-sm>tbody>tr.bottom-row,.table.b-table.b-table-stacked-sm>tbody>tr.top-row{display:none}.table.b-table.b-table-stacked-sm>tbody>tr>:first-child,.table.b-table.b-table-stacked-sm>tbody>tr>[rowspan]+td,.table.b-table.b-table-stacked-sm>tbody>tr>[rowspan]+th{border-top-width:3px}}@media (max-width:767.98px){.table.b-table.b-table-stacked-md{display:block;width:100%}.table.b-table.b-table-stacked-md>caption,.table.b-table.b-table-stacked-md>tbody,.table.b-table.b-table-stacked-md>tbody>tr,.table.b-table.b-table-stacked-md>tbody>tr>td,.table.b-table.b-table-stacked-md>tbody>tr>th{display:block}.table.b-table.b-table-stacked-md>tfoot,.table.b-table.b-table-stacked-md>tfoot>tr.b-table-bottom-row,.table.b-table.b-table-stacked-md>tfoot>tr.b-table-top-row,.table.b-table.b-table-stacked-md>thead,.table.b-table.b-table-stacked-md>thead>tr.b-table-bottom-row,.table.b-table.b-table-stacked-md>thead>tr.b-table-top-row{display:none}.table.b-table.b-table-stacked-md>caption{caption-side:top!important}.table.b-table.b-table-stacked-md>tbody>tr>[data-label]:before{content:attr(data-label);width:40%;float:left;text-align:right;word-wrap:break-word;font-weight:700;font-style:normal;padding:0 .5rem 0 0;margin:0}.table.b-table.b-table-stacked-md>tbody>tr>[data-label]:after{display:block;clear:both;content:\"\"}.table.b-table.b-table-stacked-md>tbody>tr>[data-label]>div{display:inline-block;width:60%;padding:0 0 0 .5rem;margin:0}.table.b-table.b-table-stacked-md>tbody>tr.bottom-row,.table.b-table.b-table-stacked-md>tbody>tr.top-row{display:none}.table.b-table.b-table-stacked-md>tbody>tr>:first-child,.table.b-table.b-table-stacked-md>tbody>tr>[rowspan]+td,.table.b-table.b-table-stacked-md>tbody>tr>[rowspan]+th{border-top-width:3px}}@media (max-width:991.98px){.table.b-table.b-table-stacked-lg{display:block;width:100%}.table.b-table.b-table-stacked-lg>caption,.table.b-table.b-table-stacked-lg>tbody,.table.b-table.b-table-stacked-lg>tbody>tr,.table.b-table.b-table-stacked-lg>tbody>tr>td,.table.b-table.b-table-stacked-lg>tbody>tr>th{display:block}.table.b-table.b-table-stacked-lg>tfoot,.table.b-table.b-table-stacked-lg>tfoot>tr.b-table-bottom-row,.table.b-table.b-table-stacked-lg>tfoot>tr.b-table-top-row,.table.b-table.b-table-stacked-lg>thead,.table.b-table.b-table-stacked-lg>thead>tr.b-table-bottom-row,.table.b-table.b-table-stacked-lg>thead>tr.b-table-top-row{display:none}.table.b-table.b-table-stacked-lg>caption{caption-side:top!important}.table.b-table.b-table-stacked-lg>tbody>tr>[data-label]:before{content:attr(data-label);width:40%;float:left;text-align:right;word-wrap:break-word;font-weight:700;font-style:normal;padding:0 .5rem 0 0;margin:0}.table.b-table.b-table-stacked-lg>tbody>tr>[data-label]:after{display:block;clear:both;content:\"\"}.table.b-table.b-table-stacked-lg>tbody>tr>[data-label]>div{display:inline-block;width:60%;padding:0 0 0 .5rem;margin:0}.table.b-table.b-table-stacked-lg>tbody>tr.bottom-row,.table.b-table.b-table-stacked-lg>tbody>tr.top-row{display:none}.table.b-table.b-table-stacked-lg>tbody>tr>:first-child,.table.b-table.b-table-stacked-lg>tbody>tr>[rowspan]+td,.table.b-table.b-table-stacked-lg>tbody>tr>[rowspan]+th{border-top-width:3px}}@media (max-width:1199.98px){.table.b-table.b-table-stacked-xl{display:block;width:100%}.table.b-table.b-table-stacked-xl>caption,.table.b-table.b-table-stacked-xl>tbody,.table.b-table.b-table-stacked-xl>tbody>tr,.table.b-table.b-table-stacked-xl>tbody>tr>td,.table.b-table.b-table-stacked-xl>tbody>tr>th{display:block}.table.b-table.b-table-stacked-xl>tfoot,.table.b-table.b-table-stacked-xl>tfoot>tr.b-table-bottom-row,.table.b-table.b-table-stacked-xl>tfoot>tr.b-table-top-row,.table.b-table.b-table-stacked-xl>thead,.table.b-table.b-table-stacked-xl>thead>tr.b-table-bottom-row,.table.b-table.b-table-stacked-xl>thead>tr.b-table-top-row{display:none}.table.b-table.b-table-stacked-xl>caption{caption-side:top!important}.table.b-table.b-table-stacked-xl>tbody>tr>[data-label]:before{content:attr(data-label);width:40%;float:left;text-align:right;word-wrap:break-word;font-weight:700;font-style:normal;padding:0 .5rem 0 0;margin:0}.table.b-table.b-table-stacked-xl>tbody>tr>[data-label]:after{display:block;clear:both;content:\"\"}.table.b-table.b-table-stacked-xl>tbody>tr>[data-label]>div{display:inline-block;width:60%;padding:0 0 0 .5rem;margin:0}.table.b-table.b-table-stacked-xl>tbody>tr.bottom-row,.table.b-table.b-table-stacked-xl>tbody>tr.top-row{display:none}.table.b-table.b-table-stacked-xl>tbody>tr>:first-child,.table.b-table.b-table-stacked-xl>tbody>tr>[rowspan]+td,.table.b-table.b-table-stacked-xl>tbody>tr>[rowspan]+th{border-top-width:3px}}.table.b-table.b-table-stacked{display:block;width:100%}.table.b-table.b-table-stacked>caption,.table.b-table.b-table-stacked>tbody,.table.b-table.b-table-stacked>tbody>tr,.table.b-table.b-table-stacked>tbody>tr>td,.table.b-table.b-table-stacked>tbody>tr>th{display:block}.table.b-table.b-table-stacked>tfoot,.table.b-table.b-table-stacked>tfoot>tr.b-table-bottom-row,.table.b-table.b-table-stacked>tfoot>tr.b-table-top-row,.table.b-table.b-table-stacked>thead,.table.b-table.b-table-stacked>thead>tr.b-table-bottom-row,.table.b-table.b-table-stacked>thead>tr.b-table-top-row{display:none}.table.b-table.b-table-stacked>caption{caption-side:top!important}.table.b-table.b-table-stacked>tbody>tr>[data-label]:before{content:attr(data-label);width:40%;float:left;text-align:right;word-wrap:break-word;font-weight:700;font-style:normal;padding:0 .5rem 0 0;margin:0}.table.b-table.b-table-stacked>tbody>tr>[data-label]:after{display:block;clear:both;content:\"\"}.table.b-table.b-table-stacked>tbody>tr>[data-label]>div{display:inline-block;width:60%;padding:0 0 0 .5rem;margin:0}.table.b-table.b-table-stacked>tbody>tr.bottom-row,.table.b-table.b-table-stacked>tbody>tr.top-row{display:none}.table.b-table.b-table-stacked>tbody>tr>:first-child,.table.b-table.b-table-stacked>tbody>tr>[rowspan]+td,.table.b-table.b-table-stacked>tbody>tr>[rowspan]+th{border-top-width:3px}.b-time{min-width:150px}.b-time[aria-disabled=true] output,.b-time[aria-readonly=true] output,.b-time output.disabled{background-color:#e9ecef;opacity:1}.b-time[aria-disabled=true] output{pointer-events:none}[dir=rtl] .b-time>.d-flex:not(.flex-column){flex-direction:row-reverse}.b-toast{display:block;position:relative;max-width:350px;-webkit-backface-visibility:hidden;backface-visibility:hidden;background-clip:padding-box;z-index:1;border-radius:.25rem}.b-toast .toast{background-color:hsla(0,0%,100%,.85)}.b-toast:not(:last-child){margin-bottom:.75rem}.b-toast.b-toast-solid .toast{background-color:#fff}.b-toast .toast{opacity:1}.b-toast .toast.fade:not(.show){opacity:0}.b-toast .toast .toast-body{display:block}.b-toast-primary .toast{background-color:rgba(230,242,255,.85);border-color:rgba(184,218,255,.85);color:#004085}.b-toast-primary .toast .toast-header{color:#004085;background-color:rgba(204,229,255,.85);border-bottom-color:rgba(184,218,255,.85)}.b-toast-primary.b-toast-solid .toast{background-color:#e6f2ff}.b-toast-secondary .toast{background-color:rgba(239,240,241,.85);border-color:rgba(214,216,219,.85);color:#383d41}.b-toast-secondary .toast .toast-header{color:#383d41;background-color:rgba(226,227,229,.85);border-bottom-color:rgba(214,216,219,.85)}.b-toast-secondary.b-toast-solid .toast{background-color:#eff0f1}.b-toast-success .toast{background-color:rgba(230,245,233,.85);border-color:rgba(195,230,203,.85);color:#155724}.b-toast-success .toast .toast-header{color:#155724;background-color:rgba(212,237,218,.85);border-bottom-color:rgba(195,230,203,.85)}.b-toast-success.b-toast-solid .toast{background-color:#e6f5e9}.b-toast-info .toast{background-color:rgba(229,244,247,.85);border-color:rgba(190,229,235,.85);color:#0c5460}.b-toast-info .toast .toast-header{color:#0c5460;background-color:rgba(209,236,241,.85);border-bottom-color:rgba(190,229,235,.85)}.b-toast-info.b-toast-solid .toast{background-color:#e5f4f7}.b-toast-warning .toast{background-color:rgba(255,249,231,.85);border-color:rgba(255,238,186,.85);color:#856404}.b-toast-warning .toast .toast-header{color:#856404;background-color:rgba(255,243,205,.85);border-bottom-color:rgba(255,238,186,.85)}.b-toast-warning.b-toast-solid .toast{background-color:#fff9e7}.b-toast-danger .toast{background-color:rgba(252,237,238,.85);border-color:rgba(245,198,203,.85);color:#721c24}.b-toast-danger .toast .toast-header{color:#721c24;background-color:rgba(248,215,218,.85);border-bottom-color:rgba(245,198,203,.85)}.b-toast-danger.b-toast-solid .toast{background-color:#fcedee}.b-toast-light .toast{background-color:hsla(0,0%,100%,.85);border-color:rgba(253,253,254,.85);color:#818182}.b-toast-light .toast .toast-header{color:#818182;background-color:hsla(0,0%,99.6%,.85);border-bottom-color:rgba(253,253,254,.85)}.b-toast-light.b-toast-solid .toast{background-color:#fff}.b-toast-dark .toast{background-color:rgba(227,229,229,.85);border-color:rgba(198,200,202,.85);color:#1b1e21}.b-toast-dark .toast .toast-header{color:#1b1e21;background-color:rgba(214,216,217,.85);border-bottom-color:rgba(198,200,202,.85)}.b-toast-dark.b-toast-solid .toast{background-color:#e3e5e5}.b-toaster{z-index:1100}.b-toaster .b-toaster-slot{position:relative;display:block}.b-toaster .b-toaster-slot:empty{display:none!important}.b-toaster.b-toaster-bottom-center,.b-toaster.b-toaster-bottom-full,.b-toaster.b-toaster-bottom-left,.b-toaster.b-toaster-bottom-right,.b-toaster.b-toaster-top-center,.b-toaster.b-toaster-top-full,.b-toaster.b-toaster-top-left,.b-toaster.b-toaster-top-right{position:fixed;left:.5rem;right:.5rem;margin:0;padding:0;height:0;overflow:visible}.b-toaster.b-toaster-bottom-center .b-toaster-slot,.b-toaster.b-toaster-bottom-full .b-toaster-slot,.b-toaster.b-toaster-bottom-left .b-toaster-slot,.b-toaster.b-toaster-bottom-right .b-toaster-slot,.b-toaster.b-toaster-top-center .b-toaster-slot,.b-toaster.b-toaster-top-full .b-toaster-slot,.b-toaster.b-toaster-top-left .b-toaster-slot,.b-toaster.b-toaster-top-right .b-toaster-slot{position:absolute;max-width:350px;width:100%;left:0;right:0;padding:0;margin:0}.b-toaster.b-toaster-bottom-full .b-toaster-slot,.b-toaster.b-toaster-bottom-full .b-toaster-slot .b-toast,.b-toaster.b-toaster-bottom-full .b-toaster-slot .toast,.b-toaster.b-toaster-top-full .b-toaster-slot,.b-toaster.b-toaster-top-full .b-toaster-slot .b-toast,.b-toaster.b-toaster-top-full .b-toaster-slot .toast{width:100%;max-width:100%}.b-toaster.b-toaster-top-center,.b-toaster.b-toaster-top-full,.b-toaster.b-toaster-top-left,.b-toaster.b-toaster-top-right{top:0}.b-toaster.b-toaster-top-center .b-toaster-slot,.b-toaster.b-toaster-top-full .b-toaster-slot,.b-toaster.b-toaster-top-left .b-toaster-slot,.b-toaster.b-toaster-top-right .b-toaster-slot{top:.5rem}.b-toaster.b-toaster-bottom-center,.b-toaster.b-toaster-bottom-full,.b-toaster.b-toaster-bottom-left,.b-toaster.b-toaster-bottom-right{bottom:0}.b-toaster.b-toaster-bottom-center .b-toaster-slot,.b-toaster.b-toaster-bottom-full .b-toaster-slot,.b-toaster.b-toaster-bottom-left .b-toaster-slot,.b-toaster.b-toaster-bottom-right .b-toaster-slot{bottom:.5rem}.b-toaster.b-toaster-bottom-center .b-toaster-slot,.b-toaster.b-toaster-bottom-right .b-toaster-slot,.b-toaster.b-toaster-top-center .b-toaster-slot,.b-toaster.b-toaster-top-right .b-toaster-slot{margin-left:auto}.b-toaster.b-toaster-bottom-center .b-toaster-slot,.b-toaster.b-toaster-bottom-left .b-toaster-slot,.b-toaster.b-toaster-top-center .b-toaster-slot,.b-toaster.b-toaster-top-left .b-toaster-slot{margin-right:auto}.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-enter-active,.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-move,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-enter-active,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-move,.b-toaster.b-toaster-top-left .b-toast.b-toaster-enter-active,.b-toaster.b-toaster-top-left .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-top-left .b-toast.b-toaster-move,.b-toaster.b-toaster-top-right .b-toast.b-toaster-enter-active,.b-toaster.b-toaster-top-right .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-top-right .b-toast.b-toaster-move{transition:transform .175s}.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-enter-active .toast.fade,.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-enter-to .toast.fade,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-enter-active .toast.fade,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-enter-to .toast.fade,.b-toaster.b-toaster-top-left .b-toast.b-toaster-enter-active .toast.fade,.b-toaster.b-toaster-top-left .b-toast.b-toaster-enter-to .toast.fade,.b-toaster.b-toaster-top-right .b-toast.b-toaster-enter-active .toast.fade,.b-toaster.b-toaster-top-right .b-toast.b-toaster-enter-to .toast.fade{transition-delay:.175s}.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-top-left .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-top-right .b-toast.b-toaster-leave-active{position:absolute;transition-delay:.175s}.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-leave-active .toast.fade,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-leave-active .toast.fade,.b-toaster.b-toaster-top-left .b-toast.b-toaster-leave-active .toast.fade,.b-toaster.b-toaster-top-right .b-toast.b-toaster-leave-active .toast.fade{transition-delay:0s}.tooltip.b-tooltip{display:block;opacity:.9;outline:0}.tooltip.b-tooltip.fade:not(.show){opacity:0}.tooltip.b-tooltip.show{opacity:.9}.tooltip.b-tooltip.noninteractive{pointer-events:none}.tooltip.b-tooltip .arrow{margin:0 .25rem}.tooltip.b-tooltip.b-tooltip-danger.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-danger.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-dark.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-dark.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-info.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-info.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-light.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-light.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-primary.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-primary.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-secondary.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-secondary.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-success.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-success.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-warning.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-warning.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.bs-tooltip-left .arrow,.tooltip.b-tooltip.bs-tooltip-right .arrow{margin:.25rem 0}.tooltip.b-tooltip-primary.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-primary.bs-tooltip-top .arrow:before{border-top-color:#007bff}.tooltip.b-tooltip-primary.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-primary.bs-tooltip-right .arrow:before{border-right-color:#007bff}.tooltip.b-tooltip-primary.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-primary.bs-tooltip-bottom .arrow:before{border-bottom-color:#007bff}.tooltip.b-tooltip-primary.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-primary.bs-tooltip-left .arrow:before{border-left-color:#007bff}.tooltip.b-tooltip-primary .tooltip-inner{color:#fff;background-color:#007bff}.tooltip.b-tooltip-secondary.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-secondary.bs-tooltip-top .arrow:before{border-top-color:#6c757d}.tooltip.b-tooltip-secondary.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-secondary.bs-tooltip-right .arrow:before{border-right-color:#6c757d}.tooltip.b-tooltip-secondary.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-secondary.bs-tooltip-bottom .arrow:before{border-bottom-color:#6c757d}.tooltip.b-tooltip-secondary.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-secondary.bs-tooltip-left .arrow:before{border-left-color:#6c757d}.tooltip.b-tooltip-secondary .tooltip-inner{color:#fff;background-color:#6c757d}.tooltip.b-tooltip-success.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-success.bs-tooltip-top .arrow:before{border-top-color:#28a745}.tooltip.b-tooltip-success.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-success.bs-tooltip-right .arrow:before{border-right-color:#28a745}.tooltip.b-tooltip-success.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-success.bs-tooltip-bottom .arrow:before{border-bottom-color:#28a745}.tooltip.b-tooltip-success.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-success.bs-tooltip-left .arrow:before{border-left-color:#28a745}.tooltip.b-tooltip-success .tooltip-inner{color:#fff;background-color:#28a745}.tooltip.b-tooltip-info.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-info.bs-tooltip-top .arrow:before{border-top-color:#17a2b8}.tooltip.b-tooltip-info.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-info.bs-tooltip-right .arrow:before{border-right-color:#17a2b8}.tooltip.b-tooltip-info.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-info.bs-tooltip-bottom .arrow:before{border-bottom-color:#17a2b8}.tooltip.b-tooltip-info.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-info.bs-tooltip-left .arrow:before{border-left-color:#17a2b8}.tooltip.b-tooltip-info .tooltip-inner{color:#fff;background-color:#17a2b8}.tooltip.b-tooltip-warning.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-warning.bs-tooltip-top .arrow:before{border-top-color:#ffc107}.tooltip.b-tooltip-warning.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-warning.bs-tooltip-right .arrow:before{border-right-color:#ffc107}.tooltip.b-tooltip-warning.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-warning.bs-tooltip-bottom .arrow:before{border-bottom-color:#ffc107}.tooltip.b-tooltip-warning.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-warning.bs-tooltip-left .arrow:before{border-left-color:#ffc107}.tooltip.b-tooltip-warning .tooltip-inner{color:#212529;background-color:#ffc107}.tooltip.b-tooltip-danger.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-danger.bs-tooltip-top .arrow:before{border-top-color:#dc3545}.tooltip.b-tooltip-danger.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-danger.bs-tooltip-right .arrow:before{border-right-color:#dc3545}.tooltip.b-tooltip-danger.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-danger.bs-tooltip-bottom .arrow:before{border-bottom-color:#dc3545}.tooltip.b-tooltip-danger.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-danger.bs-tooltip-left .arrow:before{border-left-color:#dc3545}.tooltip.b-tooltip-danger .tooltip-inner{color:#fff;background-color:#dc3545}.tooltip.b-tooltip-light.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-light.bs-tooltip-top .arrow:before{border-top-color:#f8f9fa}.tooltip.b-tooltip-light.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-light.bs-tooltip-right .arrow:before{border-right-color:#f8f9fa}.tooltip.b-tooltip-light.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-light.bs-tooltip-bottom .arrow:before{border-bottom-color:#f8f9fa}.tooltip.b-tooltip-light.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-light.bs-tooltip-left .arrow:before{border-left-color:#f8f9fa}.tooltip.b-tooltip-light .tooltip-inner{color:#212529;background-color:#f8f9fa}.tooltip.b-tooltip-dark.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-dark.bs-tooltip-top .arrow:before{border-top-color:#343a40}.tooltip.b-tooltip-dark.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-dark.bs-tooltip-right .arrow:before{border-right-color:#343a40}.tooltip.b-tooltip-dark.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-dark.bs-tooltip-bottom .arrow:before{border-bottom-color:#343a40}.tooltip.b-tooltip-dark.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-dark.bs-tooltip-left .arrow:before{border-left-color:#343a40}.tooltip.b-tooltip-dark .tooltip-inner{color:#fff;background-color:#343a40}.b-icon.bi{display:inline-block;overflow:visible;vertical-align:-.15em}.b-icon.b-icon-animation-spin,.b-icon.b-iconstack .b-icon-animation-spin>g{transform-origin:center;-webkit-animation:b-icon-animation-spin 2s linear infinite normal;animation:b-icon-animation-spin 2s linear infinite normal}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-spin,.b-icon.b-iconstack .b-icon-animation-spin>g{-webkit-animation:none;animation:none}}.b-icon.b-icon-animation-spin-reverse,.b-icon.b-iconstack .b-icon-animation-spin-reverse>g{transform-origin:center;animation:b-icon-animation-spin 2s linear infinite reverse}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-spin-reverse,.b-icon.b-iconstack .b-icon-animation-spin-reverse>g{-webkit-animation:none;animation:none}}.b-icon.b-icon-animation-spin-pulse,.b-icon.b-iconstack .b-icon-animation-spin-pulse>g{transform-origin:center;-webkit-animation:b-icon-animation-spin 1s steps(8) infinite normal;animation:b-icon-animation-spin 1s steps(8) infinite normal}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-spin-pulse,.b-icon.b-iconstack .b-icon-animation-spin-pulse>g{-webkit-animation:none;animation:none}}.b-icon.b-icon-animation-spin-reverse-pulse,.b-icon.b-iconstack .b-icon-animation-spin-reverse-pulse>g{transform-origin:center;animation:b-icon-animation-spin 1s steps(8) infinite reverse}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-spin-reverse-pulse,.b-icon.b-iconstack .b-icon-animation-spin-reverse-pulse>g{-webkit-animation:none;animation:none}}.b-icon.b-icon-animation-cylon,.b-icon.b-iconstack .b-icon-animation-cylon>g{transform-origin:center;-webkit-animation:b-icon-animation-cylon .75s ease-in-out infinite alternate;animation:b-icon-animation-cylon .75s ease-in-out infinite alternate}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-cylon,.b-icon.b-iconstack .b-icon-animation-cylon>g{-webkit-animation:none;animation:none}}.b-icon.b-icon-animation-cylon-vertical,.b-icon.b-iconstack .b-icon-animation-cylon-vertical>g{transform-origin:center;-webkit-animation:b-icon-animation-cylon-vertical .75s ease-in-out infinite alternate;animation:b-icon-animation-cylon-vertical .75s ease-in-out infinite alternate}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-cylon-vertical,.b-icon.b-iconstack .b-icon-animation-cylon-vertical>g{-webkit-animation:none;animation:none}}@-webkit-keyframes b-icon-animation-spin{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes b-icon-animation-spin{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}@-webkit-keyframes b-icon-animation-cylon{0%{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes b-icon-animation-cylon{0%{transform:translateX(-25%)}to{transform:translateX(25%)}}@-webkit-keyframes b-icon-animation-cylon-vertical{0%{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes b-icon-animation-cylon-vertical{0%{transform:translateY(25%)}to{transform:translateY(-25%)}}.btn .b-icon.bi,.dropdown-item .b-icon.bi,.dropdown-toggle .b-icon.bi,.input-group-text .b-icon.bi,.nav-link .b-icon.bi{font-size:125%;vertical-align:text-bottom}",""]),t.exports=e},23:function(t,e,n){"use strict";n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return y})),n.d(e,"a",(function(){return w}));var r=n(26),o=n(64),l=n(42),c=n(65),d=n(127),f=n(13),h=f.i?window:{},v=f.i?h.Element:function(t){function e(){return Object(r.a)(this,e),Object(o.a)(this,Object(l.a)(e).apply(this,arguments))}return Object(c.a)(e,t),e}(Object(d.a)(Object)),m=f.i?h.HTMLElement:function(t){function e(){return Object(r.a)(this,e),Object(o.a)(this,Object(l.a)(e).apply(this,arguments))}return Object(c.a)(e,t),e}(v),y=f.i?h.SVGElement:function(t){function e(){return Object(r.a)(this,e),Object(o.a)(this,Object(l.a)(e).apply(this,arguments))}return Object(c.a)(e,t),e}(v),w=f.i?h.File:function(t){function e(){return Object(r.a)(this,e),Object(o.a)(this,Object(l.a)(e).apply(this,arguments))}return Object(c.a)(e,t),e}(Object(d.a)(Object))},251:function(t,e,n){"use strict";(function(t){var r=n(252),o=n(253),l=n(254);function c(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(t,e){if(c()<e)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=f.prototype:(null===t&&(t=new f(e)),t.length=e),t}function f(t,e,n){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return m(this,t)}return h(this,t,e,n)}function h(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);f.TYPED_ARRAY_SUPPORT?(t=e).__proto__=f.prototype:t=y(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!f.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|O(e,n),o=(t=d(t,r)).write(e,n);o!==r&&(t=t.slice(0,o));return t}(t,e,n):function(t,e){if(f.isBuffer(e)){var n=0|w(e.length);return 0===(t=d(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?d(t,0):y(t,e);if("Buffer"===e.type&&l(e.data))return y(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function v(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function m(t,e){if(v(e),t=d(t,e<0?0:0|w(e)),!f.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function y(t,e){var n=e.length<0?0:0|w(e.length);t=d(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function w(t){if(t>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|t}function O(t,e){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(t).length;default:if(r)return G(t).length;e=(""+e).toLowerCase(),r=!0}}function k(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return z(this,e,n);case"latin1":case"binary":return D(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function S(b,t,e){var i=b[t];b[t]=b[e],b[e]=i}function j(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=f.from(e,r)),f.isBuffer(e))return 0===e.length?-1:_(t,e,n,r,o);if("number"==typeof e)return e&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):_(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,r,o){var i,l=1,c=t.length,d=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;l=2,c/=2,d/=2,n/=2}function f(t,i){return 1===l?t[i]:t.readUInt16BE(i*l)}if(o){var h=-1;for(i=n;i<c;i++)if(f(t,i)===f(e,-1===h?0:i-h)){if(-1===h&&(h=i),i-h+1===d)return h*l}else-1!==h&&(i-=i-h),h=-1}else for(n+d>c&&(n=c-d),i=n;i>=0;i--){for(var v=!0,m=0;m<d;m++)if(f(t,i+m)!==f(e,m)){v=!1;break}if(v)return i}return-1}function x(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var l=e.length;if(l%2!=0)throw new TypeError("Invalid hex string");r>l/2&&(r=l/2);for(var i=0;i<r;++i){var c=parseInt(e.substr(2*i,2),16);if(isNaN(c))return i;t[n+i]=c}return i}function T(t,e,n,r){return Z(G(e,t.length-n),t,n,r)}function B(t,e,n,r){return Z(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,n,r)}function C(t,e,n,r){return B(t,e,n,r)}function P(t,e,n,r){return Z(K(e),t,n,r)}function M(t,e,n,r){return Z(function(t,e){for(var n,r,o,l=[],i=0;i<t.length&&!((e-=2)<0);++i)n=t.charCodeAt(i),r=n>>8,o=n%256,l.push(o),l.push(r);return l}(e,t.length-n),t,n,r)}function E(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,l,c,d,f=t[i],h=null,v=f>239?4:f>223?3:f>191?2:1;if(i+v<=n)switch(v){case 1:f<128&&(h=f);break;case 2:128==(192&(o=t[i+1]))&&(d=(31&f)<<6|63&o)>127&&(h=d);break;case 3:o=t[i+1],l=t[i+2],128==(192&o)&&128==(192&l)&&(d=(15&f)<<12|(63&o)<<6|63&l)>2047&&(d<55296||d>57343)&&(h=d);break;case 4:o=t[i+1],l=t[i+2],c=t[i+3],128==(192&o)&&128==(192&l)&&128==(192&c)&&(d=(15&f)<<18|(63&o)<<12|(63&l)<<6|63&c)>65535&&d<1114112&&(h=d)}null===h?(h=65533,v=1):h>65535&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|1023&h),r.push(h),i+=v}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=4096));return n}(r)}e.Buffer=f,e.SlowBuffer=function(t){+t!=t&&(t=0);return f.alloc(+t)},e.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=c(),f.poolSize=8192,f._augment=function(t){return t.__proto__=f.prototype,t},f.from=function(t,e,n){return h(null,t,e,n)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(t,e,n){return function(t,e,n,r){return v(e),e<=0?d(t,e):void 0!==n?"string"==typeof r?d(t,e).fill(n,r):d(t,e).fill(n):d(t,e)}(null,t,e,n)},f.allocUnsafe=function(t){return m(null,t)},f.allocUnsafeSlow=function(t){return m(null,t)},f.isBuffer=function(b){return!(null==b||!b._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var t=a.length,e=b.length,i=0,n=Math.min(t,e);i<n;++i)if(a[i]!==b[i]){t=a[i],e=b[i];break}return t<e?-1:e<t?1:0},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,e){if(!l(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=f.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var o=t[i];if(!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},f.byteLength=O,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<t;i+=2)S(this,i,i+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<t;i+=4)S(this,i,i+3),S(this,i+1,i+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<t;i+=8)S(this,i,i+7),S(this,i+1,i+6),S(this,i+2,i+5),S(this,i+3,i+4);return this},f.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):k.apply(this,arguments)},f.prototype.equals=function(b){if(!f.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===f.compare(this,b)},f.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},f.prototype.compare=function(t,e,n,r,o){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var l=(o>>>=0)-(r>>>=0),c=(n>>>=0)-(e>>>=0),d=Math.min(l,c),h=this.slice(r,o),v=t.slice(e,n),i=0;i<d;++i)if(h[i]!==v[i]){l=h[i],c=v[i];break}return l<c?-1:c<l?1:0},f.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},f.prototype.indexOf=function(t,e,n){return j(this,t,e,n,!0)},f.prototype.lastIndexOf=function(t,e,n){return j(this,t,e,n,!1)},f.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var l=!1;;)switch(r){case"hex":return x(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return B(this,t,e,n);case"latin1":case"binary":return C(this,t,e,n);case"base64":return P(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function z(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function D(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function L(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=W(t[i]);return o}function I(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function N(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function H(t,e,n,r,o,l){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<l)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function F(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function R(t,e,n,r,o,l){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(t,e,n,r,l){return l||R(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,l){return l||R(t,0,n,8),o.write(t,e,n,r,52,8),n+8}f.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),f.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=f.prototype;else{var o=e-t;n=new f(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+t]}return n},f.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},f.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},f.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},f.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},f.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),o.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),o.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),o.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),o.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||H(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},f.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||H(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},f.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},f.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},f.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},f.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):F(this,t,e,!0),e+4},f.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},f.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);H(this,t,e,n,o-1,-o)}var i=0,l=1,sub=0;for(this[e]=255&t;++i<n&&(l*=256);)t<0&&0===sub&&0!==this[e+i-1]&&(sub=1),this[e+i]=(t/l>>0)-sub&255;return e+n},f.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);H(this,t,e,n,o-1,-o)}var i=n-1,l=1,sub=0;for(this[e+i]=255&t;--i>=0&&(l*=256);)t<0&&0===sub&&0!==this[e+i+1]&&(sub=1),this[e+i]=(t/l>>0)-sub&255;return e+n},f.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},f.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},f.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):F(this,t,e,!0),e+4},f.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},f.prototype.writeFloatLE=function(t,e,n){return $(this,t,e,!0,n)},f.prototype.writeFloatBE=function(t,e,n){return $(this,t,e,!1,n)},f.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},f.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},f.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},f.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var code=t.charCodeAt(0);code<256&&(t=code)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!f.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var o=f.isBuffer(t)?t:G(new f(t,r).toString()),l=o.length;for(i=0;i<n-e;++i)this[i+e]=o[i%l]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){var n;e=e||1/0;for(var r=t.length,o=null,l=[],i=0;i<r;++i){if((n=t.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&l.push(239,191,189);continue}if(i+1===r){(e-=3)>-1&&l.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&l.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&l.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;l.push(n)}else if(n<2048){if((e-=2)<0)break;l.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;l.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;l.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return l}function K(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(Y,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Z(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(45))},252:function(t,e,n){"use strict";e.byteLength=function(t){var e=d(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,i,n=d(t),r=n[0],c=n[1],f=new l(function(t,e,n){return 3*(e+n)/4-n}(0,r,c)),h=0,v=c>0?r-4:r;for(i=0;i<v;i+=4)e=o[t.charCodeAt(i)]<<18|o[t.charCodeAt(i+1)]<<12|o[t.charCodeAt(i+2)]<<6|o[t.charCodeAt(i+3)],f[h++]=e>>16&255,f[h++]=e>>8&255,f[h++]=255&e;2===c&&(e=o[t.charCodeAt(i)]<<2|o[t.charCodeAt(i+1)]>>4,f[h++]=255&e);1===c&&(e=o[t.charCodeAt(i)]<<10|o[t.charCodeAt(i+1)]<<4|o[t.charCodeAt(i+2)]>>2,f[h++]=e>>8&255,f[h++]=255&e);return f},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,l=[],i=0,c=n-o;i<c;i+=16383)l.push(f(t,i,i+16383>c?c:i+16383));1===o?(e=t[n-1],l.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],l.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return l.join("")};for(var r=[],o=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,c=code.length;i<c;++i)r[i]=code[i],o[code.charCodeAt(i)]=i;function d(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function f(t,e,n){for(var o,l,output=[],i=e;i<n;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),output.push(r[(l=o)>>18&63]+r[l>>12&63]+r[l>>6&63]+r[63&l]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},253:function(t,e){e.read=function(t,e,n,r,o){var l,c,d=8*o-r-1,f=(1<<d)-1,h=f>>1,v=-7,i=n?o-1:0,m=n?-1:1,s=t[e+i];for(i+=m,l=s&(1<<-v)-1,s>>=-v,v+=d;v>0;l=256*l+t[e+i],i+=m,v-=8);for(c=l&(1<<-v)-1,l>>=-v,v+=r;v>0;c=256*c+t[e+i],i+=m,v-=8);if(0===l)l=1-h;else{if(l===f)return c?NaN:1/0*(s?-1:1);c+=Math.pow(2,r),l-=h}return(s?-1:1)*c*Math.pow(2,l-r)},e.write=function(t,e,n,r,o,l){var c,d,f,h=8*l-o-1,v=(1<<h)-1,m=v>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=r?0:l-1,y=r?1:-1,s=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(d=isNaN(e)?1:0,c=v):(c=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-c))<1&&(c--,f*=2),(e+=c+m>=1?rt/f:rt*Math.pow(2,1-m))*f>=2&&(c++,f/=2),c+m>=v?(d=0,c=v):c+m>=1?(d=(e*f-1)*Math.pow(2,o),c+=m):(d=e*Math.pow(2,m-1)*Math.pow(2,o),c=0));o>=8;t[n+i]=255&d,i+=y,d/=256,o-=8);for(c=c<<o|d,h+=o;h>0;t[n+i]=255&c,i+=y,c/=256,h-=8);t[n+i-y]|=128*s}},254:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},3:function(t,e,n){"use strict";var r=n(17);e.a=r.default},34:function(t,e,n){(function(e){var n;"undefined"!=typeof self&&self,n=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(object,t){return Object.prototype.hasOwnProperty.call(object,t)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),l=n(19),c=n(45),d=n(46),f=n(47),h=n(48),v=n(49),m=n(12),y=n(32),w=n(33),O=n(31),k=n(1),S={Scope:k.Scope,create:k.create,find:k.find,query:k.query,register:k.register,Container:r.default,Format:o.default,Leaf:l.default,Embed:h.default,Scroll:c.default,Block:f.default,Inline:d.default,Text:v.default,Attributor:{Attribute:m.default,Class:y.default,Style:w.default,Store:O.default}};e.default=S},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return o(e,t),e}(Error);e.ParchmentError=l;var c,d={},f={},h={},v={};function m(t,e){var n;if(void 0===e&&(e=c.ANY),"string"==typeof t)n=v[t]||d[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=v.text;else if("number"==typeof t)t&c.LEVEL&c.BLOCK?n=v.block:t&c.LEVEL&c.INLINE&&(n=v.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=f[r[i]])break;n=n||h[t.tagName]}return null==n?null:e&c.LEVEL&n.scope&&e&c.TYPE&n.scope?n:null}e.DATA_KEY="__blot",function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(c=e.Scope||(e.Scope={})),e.create=function(input,t){var e=m(input);if(null==e)throw new l("Unable to create "+input+" blot");var n=e,r=input instanceof Node||input.nodeType===Node.TEXT_NODE?input:n.create(t);return new n(r,t)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=m,e.register=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length>1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new l("Invalid definition");if("abstract"===r.blotName)throw new l("Cannot register abstract class");if(v[r.blotName||r.attrName]=r,"string"==typeof r.keyName)d[r.keyName]=r;else if(null!=r.className&&(f[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var o=Array.isArray(r.tagName)?r.tagName:[r.tagName];o.forEach((function(t){null!=h[t]&&null!=r.className||(h[t]=r)}))}return r}},function(t,e,n){var r=n(51),o=n(11),l=n(3),c=n(20),d=String.fromCharCode(0),f=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};f.prototype.insert=function(text,t){var e={};return 0===text.length?this:(e.insert=text,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(e.attributes=t),this.push(e))},f.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},f.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},f.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=l(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},f.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},f.prototype.filter=function(t){return this.ops.filter(t)},f.prototype.forEach=function(t){this.ops.forEach(t)},f.prototype.map=function(t){return this.ops.map(t)},f.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},f.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},f.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+c.length(e):e.delete?t-e.delete:t}),0)},f.prototype.length=function(){return this.reduce((function(t,e){return t+c.length(e)}),0)},f.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=c.iterator(this.ops),o=0;o<e&&r.hasNext();){var l;o<t?l=r.next(t-o):(l=r.next(e-o),n.push(l)),o+=c.length(l)}return new f(n)},f.prototype.compose=function(t){var e=c.iterator(this.ops),n=c.iterator(t.ops),r=[],l=n.peek();if(null!=l&&"number"==typeof l.retain&&null==l.attributes){for(var d=l.retain;"insert"===e.peekType()&&e.peekLength()<=d;)d-=e.peekLength(),r.push(e.next());l.retain-d>0&&n.next(l.retain-d)}for(var h=new f(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())h.push(n.next());else if("delete"===e.peekType())h.push(e.next());else{var v=Math.min(e.peekLength(),n.peekLength()),m=e.next(v),y=n.next(v);if("number"==typeof y.retain){var w={};"number"==typeof m.retain?w.retain=v:w.insert=m.insert;var O=c.attributes.compose(m.attributes,y.attributes,"number"==typeof m.retain);if(O&&(w.attributes=O),h.push(w),!n.hasNext()&&o(h.ops[h.ops.length-1],w)){var k=new f(e.rest());return h.concat(k).chop()}}else"number"==typeof y.delete&&"number"==typeof m.retain&&h.push(y)}return h.chop()},f.prototype.concat=function(t){var e=new f(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},f.prototype.diff=function(t,e){if(this.ops===t.ops)return new f;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:d;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),l=new f,h=r(n[0],n[1],e),v=c.iterator(this.ops),m=c.iterator(t.ops);return h.forEach((function(component){for(var t=component[1].length;t>0;){var e=0;switch(component[0]){case r.INSERT:e=Math.min(m.peekLength(),t),l.push(m.next(e));break;case r.DELETE:e=Math.min(t,v.peekLength()),v.next(e),l.delete(e);break;case r.EQUAL:e=Math.min(v.peekLength(),m.peekLength(),t);var n=v.next(e),d=m.next(e);o(n.insert,d.insert)?l.retain(e,c.attributes.diff(n.attributes,d.attributes)):l.push(d).delete(e)}t-=e}})),l.chop()},f.prototype.eachLine=function(t,e){e=e||"\n";for(var n=c.iterator(this.ops),line=new f,i=0;n.hasNext();){if("insert"!==n.peekType())return;var r=n.peek(),o=c.length(r)-n.peekLength(),l="string"==typeof r.insert?r.insert.indexOf(e,o)-o:-1;if(l<0)line.push(n.next());else if(l>0)line.push(n.next(l));else{if(!1===t(line,n.next(1).attributes||{},i))return;i+=1,line=new f}}line.length()>0&&t(line,{},i)},f.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=c.iterator(this.ops),r=c.iterator(t.ops),o=new f;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var l=Math.min(n.peekLength(),r.peekLength()),d=n.next(l),h=r.next(l);if(d.delete)continue;h.delete?o.push(h):o.retain(l,c.attributes.transform(d.attributes,h.attributes,e))}else o.retain(c.length(n.next()));return o.chop()},f.prototype.transformPosition=function(t,e){e=!!e;for(var n=c.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),l=n.peekType();n.next(),"delete"!==l?("insert"===l&&(r<t||!e)&&(t+=o),r+=o):t-=Math.min(o,t-r)}return t},t.exports=f},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},d=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,o=n.call(t,"constructor"),l=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!o&&!l)return!1;for(e in t);return void 0===e||n.call(t,e)},f=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},h=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(l)return l(t,e).value}return t[e]};t.exports=function t(){var e,n,r,o,l,v,m=arguments[0],i=1,y=arguments.length,w=!1;for("boolean"==typeof m&&(w=m,m=arguments[1]||{},i=2),(null==m||"object"!=typeof m&&"function"!=typeof m)&&(m={});i<y;++i)if(null!=(e=arguments[i]))for(n in e)r=h(m,n),m!==(o=h(e,n))&&(w&&o&&(d(o)||(l=c(o)))?(l?(l=!1,v=r&&c(r)?r:[]):v=r&&d(r)?r:{},f(m,{name:n,newValue:t(w,v,o)})):void 0!==o&&f(m,{name:n,newValue:o}));return m}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=m(n(3)),c=m(n(2)),d=m(n(0)),f=m(n(16)),h=m(n(6)),v=m(n(7));function m(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function O(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var k=function(t){function e(){return y(this,e),w(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return O(e,t),r(e,[{key:"attach",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new d.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new c.default).insert(this.value(),(0,l.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=d.default.query(t,d.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var l=d.default.create(S.blotName);this.parent.insertBefore(l,0===t?this:this.next),l.insertAt(0,n.slice(0,-1))}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(d.default.Embed);k.scope=d.default.Scope.BLOCK_BLOT;var S=function(t){function e(t){y(this,e);var n=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return O(e,t),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(d.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),j(e))}),new c.default).insert("\n",j(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,l){n<=0||(d.default.query(r,d.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,l):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,l),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var l=n.split("\n"),text=l.shift();text.length>0&&(t<this.length()-1||null==this.children.tail?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),text):this.children.tail.insertAt(this.children.tail.length(),text),this.cache={});var c=this;l.reduce((function(t,line){return(c=c.split(t,!0)).insertAt(0,line),line.length}),t+text.length)}}},{key:"insertBefore",value:function(t,n){var head=this.children.head;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),head instanceof f.default&&head.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var l=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},l}}]),e}(d.default.Block);function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,l.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:j(t.parent,e))}S.blotName="block",S.tagName="P",S.defaultChild="break",S.allowedChildren=[h.default,d.default.Embed,v.default],e.bubbleFormats=j,e.BlockEmbed=k,e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return e}(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var c=S(n(2)),d=S(n(14)),f=S(n(8)),h=S(n(9)),v=S(n(0)),m=n(15),y=S(m),w=S(n(3)),O=S(n(10)),k=S(n(34));function S(t){return t&&t.__esModule?t:{default:t}}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var x=(0,O.default)("quill"),T=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(_(this,t),this.options=B(e,r),this.container=this.options.container,null==this.container)return x.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var html=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new f.default,this.scroll=v.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new d.default(this.scroll),this.selection=new y.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(t){t===f.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(f.default.events.SCROLL_UPDATE,(function(source,t){var e=n.selection.lastRange,r=e&&0===e.length?e.index:void 0;C.call(n,(function(){return n.editor.update(null,t,r)}),source)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+html+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return l(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),O.default.level(t)}},{key:"find",value:function(t){return t.__quill||v.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&x.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(path,t){var e=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof path){var r=path.attrName||path.blotName;"string"==typeof r?this.register("formats/"+r,path,t):Object.keys(path).forEach((function(n){e.register(n,path[n],t)}))}else null==this.imports[path]||n||x.warn("Overwriting "+path+" with",t),this.imports[path]=t,(path.startsWith("blots/")||path.startsWith("formats/"))&&"abstract"!==t.blotName?v.default.register(t):path.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),l(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;(t=document.createElement("div")).classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,source){var n=this,r=P(t,e,source),l=o(r,4);return t=l[0],e=l[1],source=l[3],C.call(this,(function(){return n.editor.deleteText(t,e)}),source,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,source=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;return C.call(this,(function(){var r=n.getSelection(!0),o=new c.default;if(null==r)return o;if(v.default.query(t,v.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,j({},t,e));else{if(0===r.length)return n.selection.format(t,e),o;o=n.editor.formatText(r.index,r.length,j({},t,e))}return n.setSelection(r,f.default.sources.SILENT),o}),source)}},{key:"formatLine",value:function(t,e,n,r,source){var l,c=this,d=P(t,e,n,r,source),f=o(d,4);return t=f[0],e=f[1],l=f[2],source=f[3],C.call(this,(function(){return c.editor.formatLine(t,e,l)}),source,t,0)}},{key:"formatText",value:function(t,e,n,r,source){var l,c=this,d=P(t,e,n,r,source),f=o(d,4);return t=f[0],e=f[1],l=f[2],source=f[3],C.call(this,(function(){return c.editor.formatText(t,e,l)}),source,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=P(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=P(t,e),r=o(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,embed,n){var r=this,source=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return C.call(this,(function(){return r.editor.insertEmbed(e,embed,n)}),source,e)}},{key:"insertText",value:function(t,text,e,n,source){var r,l=this,c=P(t,0,e,n,source),d=o(c,4);return t=d[0],r=d[2],source=d[3],C.call(this,(function(){return l.editor.insertText(t,text,r)}),source,t,text.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,html,source){this.clipboard.dangerouslyPasteHTML(t,html,source)}},{key:"removeFormat",value:function(t,e,source){var n=this,r=P(t,e,source),l=o(r,4);return t=l[0],e=l[1],source=l[3],C.call(this,(function(){return n.editor.removeFormat(t,e)}),source,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,source=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return C.call(this,(function(){t=new c.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),l=o.ops[o.ops.length-1];return null!=l&&"string"==typeof l.insert&&"\n"===l.insert[l.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1)),r.compose(o)}),source)}},{key:"setSelection",value:function(e,n,source){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var r=P(e,n,source),l=o(r,4);e=l[0],n=l[1],source=l[3],this.selection.setRange(new m.Range(e,n),source),source!==f.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(text){var source=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API,t=(new c.default).insert(text);return this.setContents(t,source)}},{key:"update",value:function(){var source=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,t=this.scroll.update(source);return this.selection.update(source),t}},{key:"updateContents",value:function(t){var e=this,source=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return C.call(this,(function(){return t=new c.default(t),e.editor.applyDelta(t,source)}),source,!0)}}]),t}();function B(t,e){if((e=(0,w.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==T.DEFAULTS.theme){if(e.theme=T.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=k.default;var n=(0,w.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=T.import("modules/"+e);return null==n?x.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,w.default)(!0,{},T.DEFAULTS,{modules:r},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function C(t,source,e,n){if(this.options.strict&&!this.isEnabled()&&source===f.default.sources.USER)return new c.default;var r=null==e?null:this.getSelection(),o=this.editor.delta,l=t();if(null!=r&&(!0===e&&(e=r.index),null==n?r=M(r,l,source):0!==n&&(r=M(r,e,n,source)),this.setSelection(r,f.default.sources.SILENT)),l.length()>0){var d,h,v=[f.default.events.TEXT_CHANGE,l,o,source];(d=this.emitter).emit.apply(d,[f.default.events.EDITOR_CHANGE].concat(v)),source!==f.default.sources.SILENT&&(h=this.emitter).emit.apply(h,v)}return l}function P(t,e,n,o,source){var l={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(source=o,o=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(source=o,o=n,n=e,e=0),"object"===(void 0===n?"undefined":r(n))?(l=n,source=o):"string"==typeof n&&(null!=o?l[n]=o:source=n),[t,e,l,source=source||f.default.sources.API]}function M(t,e,n,source){if(null==t)return null;var r=void 0,l=void 0;if(e instanceof c.default){var d=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,source!==f.default.sources.USER)})),h=o(d,2);r=h[0],l=h[1]}else{var v=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&source===f.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),y=o(v,2);r=y[0],l=y[1]}return new m.Range(r,l-r)}T.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},T.events=f.default.events,T.sources=f.default.sources,T.version="1.3.7",T.imports={delta:c.default,parchment:v.default,"core/module":h.default,"core/theme":k.default},e.expandConfig=B,e.overload=P,e.default=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=d(n(7)),c=d(n(0));function d(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var v=function(t){function e(){return f(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"formatAt",value:function(t,n,r,l){if(e.compare(this.statics.blotName,r)<0&&c.default.query(r,c.default.Scope.BLOT)){var d=this.isolate(t,n);l&&d.wrap(r,l)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,l)}},{key:"optimize",value:function(t){if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t<n?-1:1}}]),e}(c.default.Inline);v.allowedChildren=[v,c.default.Embed,l.default],v.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(0);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default.Text);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=c(n(54));function c(t){return t&&t.__esModule?t:{default:t}}var d=(0,c(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var f=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",d.error),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"emit",value:function(){d.log.apply(d,arguments),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach((function(e){var r=e.node,o=e.handler;(t.target===r||r.contains(t.target))&&o.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(l.default);f.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},f.sources={API:"api",SILENT:"silent",USER:"user"},e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};o.DEFAULTS={},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function l(t){if(r.indexOf(t)<=r.indexOf(o)){for(var e,n=arguments.length,l=Array(n>1?n-1:0),c=1;c<n;c++)l[c-1]=arguments[c];(e=console)[t].apply(e,l)}}function c(t){return r.reduce((function(e,n){return e[n]=l.bind(console,n,t),e}),{})}l.level=c.level=function(t){o=t},e.default=c},function(t,e,n){var r=Array.prototype.slice,o=n(52),l=n(53),c=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:function(a,b,t){var i,e;if(d(a)||d(b))return!1;if(a.prototype!==b.prototype)return!1;if(l(a))return!!l(b)&&(a=r.call(a),b=r.call(b),c(a,b,t));if(f(a)){if(!f(b))return!1;if(a.length!==b.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==b[i])return!1;return!0}try{var n=o(a),h=o(b)}catch(t){return!1}if(n.length!=h.length)return!1;for(n.sort(),h.sort(),i=n.length-1;i>=0;i--)if(n[i]!=h[i])return!1;for(i=n.length-1;i>=0;i--)if(e=n[i],!c(a[e],b[e],t))return!1;return typeof a==typeof b}(t,e,n))};function d(t){return null==t}function f(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return e}(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=m(n(2)),d=m(n(0)),f=m(n(4)),h=m(n(6)),v=m(n(7));function m(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function O(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var k=function(t){function e(){return y(this,e),w(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return O(e,t),e}(h.default);k.blotName="code",k.tagName="CODE";var S=function(t){function e(){return y(this,e),w(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return O(e,t),o(e,[{key:"delta",value:function(){var t=this,text=this.domNode.textContent;return text.endsWith("\n")&&(text=text.slice(0,-1)),text.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new c.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var o=this.descendant(v.default,this.length()-1),text=r(o,1)[0];null!=text&&text.deleteAt(text.length()-1,1),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,o){if(0!==n&&null!=d.default.query(r,d.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var l=this.newlineIndex(t);if(!(l<0||l>=t+n)){var c=this.newlineIndex(t,!0)+1,f=l-c+1,h=this.isolate(c,f),v=h.next;h.format(r,o),v instanceof e&&v.formatAt(0,t-c+n-f,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var o=this.descendant(v.default,t),l=r(o,2),text=l[0],c=l[1];text.insertAt(c,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(d.default.create("text","\n")),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=d.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof d.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=l(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(f.default);S.blotName="code-block",S.tagName="PRE",S.TAB=" ",e.Code=k,e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return e}(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=j(n(2)),d=j(n(20)),f=j(n(0)),h=j(n(13)),v=j(n(24)),m=n(4),y=j(m),w=j(n(16)),O=j(n(21)),k=j(n(11)),S=j(n(3));function j(t){return t&&t.__esModule?t:{default:t}}var _=/^[ -~]*$/,x=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.delta=this.getDelta()}return l(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var l=this.scroll.length();return this.scroll.batchStart(),(t=function(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,O.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,O.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var text=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(text,e.attributes)}return t.push(e)}),new c.default)}(t)).reduce((function(t,c){var h=c.retain||c.delete||c.insert.length||1,v=c.attributes||{};if(null!=c.insert){if("string"==typeof c.insert){var text=c.insert;text.endsWith("\n")&&n&&(n=!1,text=text.slice(0,-1)),t>=l&&!text.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,text);var w=e.scroll.line(t),O=o(w,2),line=O[0],k=O[1],j=(0,S.default)({},(0,m.bubbleFormats)(line));if(line instanceof y.default){var _=line.descendant(f.default.Leaf,k),x=o(_,1)[0];j=(0,S.default)(j,(0,m.bubbleFormats)(x))}v=d.default.attributes.diff(j,v)||{}}else if("object"===r(c.insert)){var T=Object.keys(c.insert)[0];if(null==T)return t;e.scroll.insertAt(t,T,c.insert[T])}l+=h}return Object.keys(v).forEach((function(n){e.scroll.formatAt(t,h,n,v[n])})),t+h}),0),t.reduce((function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new c.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var l=n.scroll.lines(t,Math.max(e,1)),c=e;l.forEach((function(line){var e=line.length();if(line instanceof h.default){var l=t-line.offset(n.scroll),d=line.newlineIndex(l+c)-l+1;line.formatAt(l,d,o,r[o])}else line.format(o,r[o]);c-=e}))}})),this.scroll.optimize(),this.update((new c.default).retain(t).retain(e,(0,O.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(t,e,o,r[o])})),this.update((new c.default).retain(t).retain(e,(0,O.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,line){return t.concat(line.delta())}),new c.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(path){var t=o(path,1)[0];t instanceof y.default?n.push(t):t instanceof f.default.Leaf&&r.push(t)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(f.default.Leaf,t,e));var l=[n,r].map((function(t){if(0===t.length)return{};for(var e=(0,m.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=T((0,m.bubbleFormats)(n),e)}return e}));return S.default.apply(S.default,l)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"==typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,embed,e){return this.scroll.insertAt(t,embed,e),this.update((new c.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},embed,e)))}},{key:"insertText",value:function(t,text){var e=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return text=text.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,text),Object.keys(n).forEach((function(r){e.scroll.formatAt(t,text.length,r,n[r])})),this.update((new c.default).retain(t).insert(text,(0,O.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===y.default.blotName&&!(t.children.length>1)&&t.children.head instanceof w.default}},{key:"removeFormat",value:function(t,e){var text=this.getText(t,e),n=this.scroll.line(t+e),r=o(n,2),line=r[0],l=r[1],d=0,f=new c.default;null!=line&&(d=line instanceof h.default?line.newlineIndex(l)-l+1:line.length()-l,f=line.delta().slice(l,l+d-1).insert("\n"));var v=this.getContents(t,e+d).diff((new c.default).insert(text).concat(f)),m=(new c.default).retain(t).concat(v);return this.applyDelta(m)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(_)&&f.default.find(e[0].target)){var o=f.default.find(e[0].target),l=(0,m.bubbleFormats)(o),d=o.offset(this.scroll),h=e[0].oldValue.replace(v.default.CONTENTS,""),y=(new c.default).insert(h),w=(new c.default).insert(o.value()),O=(new c.default).retain(d).concat(y.diff(w,n));t=O.reduce((function(t,e){return e.insert?t.insert(e.insert,l):t.push(e)}),new c.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,k.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function T(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return e}(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=h(n(0)),c=h(n(21)),d=h(n(11)),f=h(n(8));function h(t){return t&&t.__esModule?t:{default:t}}function v(t){if(Array.isArray(t)){for(var i=0,e=Array(t.length);i<t.length;i++)e[i]=t[i];return e}return Array.from(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var y=(0,h(n(10)).default)("quill:selection"),w=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;m(this,t),this.index=e,this.length=n},O=function(){function t(e,n){var r=this;m(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new w(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,f.default.sources.USER),1)})),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(t,e){t===f.default.events.TEXT_CHANGE&&e.length()>0&&r.update(f.default.sources.SILENT)})),this.emitter.on(f.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(f.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}}))}})),this.emitter.on(f.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,o=n.startNode,l=n.startOffset,c=n.endNode,d=n.endOffset;r.setNativeRange(o,l,c,d)}})),this.update(f.default.sources.SILENT)}return o(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(f.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!l.default.query(t,l.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=l.default.find(n.start.node,!1);if(null==r)return;if(r instanceof l.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var o=void 0,l=this.scroll.leaf(t),c=r(l,2),d=c[0],f=c[1];if(null==d)return null;var h=d.position(f,!0),v=r(h,2);o=v[0],f=v[1];var m=document.createRange();if(e>0){m.setStart(o,f);var y=this.scroll.leaf(t+e),w=r(y,2);if(d=w[0],f=w[1],null==d)return null;var O=d.position(f,!0),k=r(O,2);return o=k[0],f=k[1],m.setEnd(o,f),m.getBoundingClientRect()}var S="left",rect=void 0;return o instanceof Text?(f<o.data.length?(m.setStart(o,f),m.setEnd(o,f+1)):(m.setStart(o,f-1),m.setEnd(o,f),S="right"),rect=m.getBoundingClientRect()):(rect=d.domNode.getBoundingClientRect(),f>0&&(S="right")),{bottom:rect.top+rect.height,height:rect.height,left:rect[S],right:rect[S],top:rect.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return y.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var o=n.map((function(t){var n=r(t,2),o=n[0],c=n[1],d=l.default.find(o,!0),f=d.offset(e.scroll);return 0===c?f:d instanceof l.default.Container?f+d.length():f+d.index(o,c)})),c=Math.min(Math.max.apply(Math,v(o)),this.scroll.length()-1),d=Math.min.apply(Math,[c].concat(v(o)));return new w(d,c-d)}},{key:"normalizeNative",value:function(t){if(!k(this.root,t.startContainer)||!t.collapsed&&!k(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],o=[],l=this.scroll.length();return n.forEach((function(t,i){t=Math.min(l-1,t);var n,c=e.scroll.leaf(t),d=r(c,2),f=d[0],h=d[1],v=f.position(h,0!==i),m=r(v,2);n=m[0],h=m[1],o.push(n,h)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var o=this.scroll.length()-1,l=this.scroll.line(Math.min(e.index,o)),c=r(l,1)[0],d=c;if(e.length>0){var f=this.scroll.line(Math.min(e.index+e.length,o));d=r(f,1)[0]}if(null!=c&&null!=d){var h=t.getBoundingClientRect();n.top<h.top?t.scrollTop-=h.top-n.top:n.bottom>h.bottom&&(t.scrollTop+=n.bottom-h.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(y.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var l=document.getSelection();if(null!=l)if(null!=t){this.hasFocus()||this.root.focus();var c=(this.getNativeRange()||{}).native;if(null==c||o||t!==c.startContainer||e!==c.startOffset||n!==c.endContainer||r!==c.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var d=document.createRange();d.setStart(t,e),d.setEnd(n,r),l.removeAllRanges(),l.addRange(d)}}else l.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],source=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"==typeof e&&(source=e,e=!1),y.info("setRange",t),null!=t){var n=this.rangeToNative(t);this.setNativeRange.apply(this,v(n).concat([e]))}else this.setNativeRange(null);this.update(source)}},{key:"update",value:function(){var source=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,t=this.lastRange,e=this.getRange(),n=r(e,2),o=n[0],l=n[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,d.default)(t,this.lastRange)){var h;!this.composing&&null!=l&&l.native.collapsed&&l.start.node!==this.cursor.textNode&&this.cursor.restore();var v,m=[f.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(t),source];(h=this.emitter).emit.apply(h,[f.default.events.EDITOR_CHANGE].concat(m)),source!==f.default.sources.SILENT&&(v=this.emitter).emit.apply(v,m)}}}]),t}();function k(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=w,e.default=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(0);function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var f=function(t){function e(){return c(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"insertInto",value:function(t,n){0===t.children.length?function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default.Embed);f.blotName="break",f.tagName="BR",e.default=f},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(44),c=n(30),d=n(1),f=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return o(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=h(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof d.ParchmentError)return;throw t}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),o=r[0],l=r[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,l]:o instanceof e?o.descendant(t,l):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],l=r;return this.children.forEachAt(n,r,(function(n,r,c){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,l))),l-=c})),o},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,o){t.formatAt(e,o,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),o=r[0],l=r[1];if(o)o.insertAt(l,e,n);else{var c=null==n?d.create("text",e):d.create(e,n);this.appendChild(c)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new d.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=d.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),o=r[0],l=r[1],c=[[this,t]];return o instanceof e?c.concat(o.path(l,n)):(null!=o&&c.push([o,l]),c)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,o){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],o=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),o.push.apply(o,t.removedNodes))})),o.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=d.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(a,b){return a===b?0:a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=d.find(t.nextSibling));var r=h(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(c.default);function h(t){var e=d.find(t);if(null==e)try{e=d.create(t)}catch(n){e=d.create(d.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=f},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(12),c=n(31),d=n(17),f=n(1),h=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new c.default(n.domNode),n}return o(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=f.query(t);n instanceof l.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var o=t.prototype.wrap.call(this,n,r);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(d.default);e.default=h},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(30),c=n(1),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=c.Scope.INLINE_BLOT,e}(l.default);e.default=d},function(t,e,n){var r=n(11),o=n(3),l={attributes:{compose:function(a,b,t){"object"!=typeof a&&(a={}),"object"!=typeof b&&(b={});var e=o(!0,{},b);for(var n in t||(e=Object.keys(e).reduce((function(t,n){return null!=e[n]&&(t[n]=e[n]),t}),{})),a)void 0!==a[n]&&void 0===b[n]&&(e[n]=a[n]);return Object.keys(e).length>0?e:void 0},diff:function(a,b){"object"!=typeof a&&(a={}),"object"!=typeof b&&(b={});var t=Object.keys(a).concat(Object.keys(b)).reduce((function(t,e){return r(a[e],b[e])||(t[e]=void 0===b[e]?null:b[e]),t}),{});return Object.keys(t).length>0?t:void 0},transform:function(a,b,t){if("object"!=typeof a)return b;if("object"==typeof b){if(!t)return b;var e=Object.keys(b).reduce((function(t,e){return void 0===a[e]&&(t[e]=b[e]),t}),{});return Object.keys(e).length>0?e:void 0}}},iterator:function(t){return new c(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};function c(t){this.ops=t,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=l.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"==typeof e.retain?o.retain=t:"string"==typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},c.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},c.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=l},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,r,o;try{n=Map}catch(t){n=function(){}}try{r=Set}catch(t){r=function(){}}try{o=Promise}catch(t){o=function(){}}function l(c,f,h,v,m){"object"==typeof f&&(h=f.depth,v=f.prototype,m=f.includeNonEnumerable,f=f.circular);var y=[],w=[],O=void 0!==e;return void 0===f&&(f=!0),void 0===h&&(h=1/0),function c(h,k){if(null===h)return null;if(0===k)return h;var S,j;if("object"!=typeof h)return h;if(t(h,n))S=new n;else if(t(h,r))S=new r;else if(t(h,o))S=new o((function(t,e){h.then((function(e){t(c(e,k-1))}),(function(t){e(c(t,k-1))}))}));else if(l.__isArray(h))S=[];else if(l.__isRegExp(h))S=new RegExp(h.source,d(h)),h.lastIndex&&(S.lastIndex=h.lastIndex);else if(l.__isDate(h))S=new Date(h.getTime());else{if(O&&e.isBuffer(h))return S=e.allocUnsafe?e.allocUnsafe(h.length):new e(h.length),h.copy(S),S;t(h,Error)?S=Object.create(h):void 0===v?(j=Object.getPrototypeOf(h),S=Object.create(j)):(S=Object.create(v),j=v)}if(f){var _=y.indexOf(h);if(-1!=_)return w[_];y.push(h),w.push(S)}for(var i in t(h,n)&&h.forEach((function(t,e){var n=c(e,k-1),r=c(t,k-1);S.set(n,r)})),t(h,r)&&h.forEach((function(t){var e=c(t,k-1);S.add(e)})),h){var x;j&&(x=Object.getOwnPropertyDescriptor(j,i)),x&&null==x.set||(S[i]=c(h[i],k-1))}if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(h);for(i=0;i<T.length;i++){var symbol=T[i];(!(C=Object.getOwnPropertyDescriptor(h,symbol))||C.enumerable||m)&&(S[symbol]=c(h[symbol],k-1),C.enumerable||Object.defineProperty(S,symbol,{enumerable:!1}))}}if(m){var B=Object.getOwnPropertyNames(h);for(i=0;i<B.length;i++){var C,P=B[i];(C=Object.getOwnPropertyDescriptor(h,P))&&C.enumerable||(S[P]=c(h[P],k-1),Object.defineProperty(S,P,{enumerable:!1}))}}return S}(c,h)}function c(t){return Object.prototype.toString.call(t)}function d(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return l.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},l.__objToStr=c,l.__isDate=function(t){return"object"==typeof t&&"[object Date]"===c(t)},l.__isArray=function(t){return"object"==typeof t&&"[object Array]"===c(t)},l.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===c(t)},l.__getRegExpFlags=d,l}();"object"==typeof t&&t.exports&&(t.exports=r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return e}(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=w(n(0)),d=w(n(8)),f=n(4),h=w(f),v=w(n(16)),m=w(n(13)),y=w(n(25));function w(t){return t&&t.__esModule?t:{default:t}}function O(t){return t instanceof h.default||t instanceof f.BlockEmbed}var k=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var o=this.line(t),c=r(o,2),d=c[0],h=c[1],y=this.line(t+n),w=r(y,1)[0];if(l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=w&&d!==w&&h>0){if(d instanceof f.BlockEmbed||w instanceof f.BlockEmbed)return void this.optimize();if(d instanceof m.default){var O=d.newlineIndex(d.length(),!0);if(O>-1&&(d=d.split(O+1))===w)return void this.optimize()}else if(w instanceof m.default){var k=w.newlineIndex(0);k>-1&&w.split(k+1)}var S=w.children.head instanceof v.default?null:w.children.head;d.moveChildren(w,S),d.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==c.default.query(n,c.default.Scope.BLOCK)){var o=c.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var embed=c.default.create(n,r);this.appendChild(embed)}else l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===c.default.Scope.INLINE_BLOT){var r=c.default.create(this.statics.defaultChild);r.appendChild(t),t=r}l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(O,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,r){var o=[],l=r;return e.children.forEachAt(n,r,(function(e,n,r){O(e)?o.push(e):e instanceof c.default.Container&&(o=o.concat(t(e,n,l))),l-=r})),o};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(d.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var source=d.default.sources.USER;"string"==typeof t&&(source=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE,source,t),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(d.default.events.SCROLL_UPDATE,source,t)}}}]),e}(c.default.Scroll);k.blotName="scroll",k.className="ql-editor",k.tagName="DIV",k.defaultChild="block",k.allowedChildren=[h.default,f.BlockEmbed,y.default],e.default=k},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return e}(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=k(n(21)),d=k(n(11)),f=k(n(3)),h=k(n(2)),v=k(n(20)),m=k(n(0)),y=k(n(5)),w=k(n(10)),O=k(n(9));function k(t){return t&&t.__esModule?t:{default:t}}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var j=(0,w.default)("quill:keyboard"),_=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",x=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:e.keys.ENTER,shiftKey:null},M),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},B),r.addBinding({key:e.keys.DELETE},{collapsed:!0},C)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},B),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},C)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},P),r.addBinding({key:e.keys.DELETE},{collapsed:!1},P),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},B),r.listen(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),l(e,null,[{key:"match",value:function(t,e){return e=z(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),l(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=z(t);if(null==r||null==r.key)return j.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,f.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var l=n.which||n.keyCode,c=(t.bindings[l]||[]).filter((function(t){return e.match(n,t)}));if(0!==c.length){var f=t.quill.getSelection();if(null!=f&&t.quill.hasFocus()){var h=t.quill.getLine(f.index),v=o(h,2),line=v[0],y=v[1],w=t.quill.getLeaf(f.index),O=o(w,2),k=O[0],S=O[1],j=0===f.length?[k,S]:t.quill.getLeaf(f.index+f.length),_=o(j,2),x=_[0],T=_[1],B=k instanceof m.default.Text?k.value().slice(0,S):"",C=x instanceof m.default.Text?x.value().slice(T):"",P={collapsed:0===f.length,empty:0===f.length&&line.length()<=1,format:t.quill.getFormat(f),offset:y,prefix:B,suffix:C};c.some((function(e){if(null!=e.collapsed&&e.collapsed!==P.collapsed)return!1;if(null!=e.empty&&e.empty!==P.empty)return!1;if(null!=e.offset&&e.offset!==P.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==P.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=P.format[t]:!1===e.format[t]?null==P.format[t]:(0,d.default)(e.format[t],P.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(P.prefix)||null!=e.suffix&&!e.suffix.test(P.suffix)||!0===e.handler.call(t,f,P))}))&&n.preventDefault()}}}}))}}]),e}(O.default);function T(t,e){var n,r=t===x.keys.LEFT?"prefix":"suffix";return S(n={key:t,shiftKey:e,altKey:null},r,/^$/),S(n,"handler",(function(n){var r=n.index;t===x.keys.RIGHT&&(r+=n.length+1);var l=this.quill.getLeaf(r);return!(o(l,1)[0]instanceof m.default.Embed&&(t===x.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index-1,y.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index+n.length+1,y.default.sources.USER),1))})),n}function B(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),line=o(n,1)[0],r={};if(0===e.offset){var l=this.quill.getLine(t.index-1),c=o(l,1)[0];if(null!=c&&c.length()>1){var d=line.formats(),f=this.quill.getFormat(t.index-1,1);r=v.default.attributes.diff(d,f)||{}}}var h=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-h,h,y.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index-h,h,r,y.default.sources.USER),this.quill.focus()}}function C(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},l=0,c=this.quill.getLine(t.index),line=o(c,1)[0];if(e.offset>=line.length()-1){var d=this.quill.getLine(t.index+1),f=o(d,1)[0];if(f){var h=line.formats(),m=this.quill.getFormat(t.index,1);r=v.default.attributes.diff(h,m)||{},l=f.length()}}this.quill.deleteText(t.index,n,y.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+l-1,n,r,y.default.sources.USER)}}function P(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=v.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,y.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,y.default.sources.USER),this.quill.setSelection(t.index,y.default.sources.SILENT),this.quill.focus()}function M(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return m.default.query(n,m.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,y.default.sources.USER),this.quill.setSelection(t.index+1,y.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],y.default.sources.USER))}))}function E(t){return{key:x.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=m.default.query("code-block"),r=e.index,l=e.length,c=this.quill.scroll.descendant(n,r),d=o(c,2),f=d[0],h=d[1];if(null!=f){var v=this.quill.getIndex(f),w=f.newlineIndex(h,!0)+1,O=f.newlineIndex(v+h+l),k=f.domNode.textContent.slice(w,O).split("\n");h=0,k.forEach((function(line,i){t?(f.insertAt(w+h,n.TAB),h+=n.TAB.length,0===i?r+=n.TAB.length:l+=n.TAB.length):line.startsWith(n.TAB)&&(f.deleteAt(w+h,n.TAB.length),h-=n.TAB.length,0===i?r-=n.TAB.length:l-=n.TAB.length),h+=line.length+1})),this.quill.update(y.default.sources.USER),this.quill.setSelection(r,l,y.default.sources.SILENT)}}}}function A(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],y.default.sources.USER)}}}function z(t){if("string"==typeof t||"number"==typeof t)return z({key:t});if("object"===(void 0===t?"undefined":r(t))&&(t=(0,c.default)(t,!1)),"string"==typeof t.key)if(null!=x.keys[t.key.toUpperCase()])t.key=x.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[_]=t.shortKey,delete t.shortKey),t}x.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},x.DEFAULTS={bindings:{bold:A("bold"),italic:A("italic"),underline:A("underline"),indent:{key:x.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",y.default.sources.USER)}},outdent:{key:x.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",y.default.sources.USER)}},"outdent backspace":{key:x.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",y.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,y.default.sources.USER)}},"indent code-block":E(!0),"outdent code-block":E(!1),"remove tab":{key:x.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,y.default.sources.USER)}},tab:{key:x.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new h.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,y.default.sources.SILENT)}},"list empty enter":{key:x.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,y.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,y.default.sources.USER)}},"checklist enter":{key:x.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),line=n[0],r=n[1],l=(0,f.default)({},line.formats(),{list:"checked"}),c=(new h.default).retain(t.index).insert("\n",l).retain(line.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(c,y.default.sources.USER),this.quill.setSelection(t.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:x.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=o(n,2),line=r[0],l=r[1],c=(new h.default).retain(t.index).insert("\n",e.format).retain(line.length()-l-1).retain(1,{header:null});this.quill.updateContents(c,y.default.sources.USER),this.quill.setSelection(t.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),l=o(r,2),line=l[0],c=l[1];if(c>n)return!0;var d=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":d="unchecked";break;case"[x]":d="checked";break;case"-":case"*":d="bullet";break;default:d="ordered"}this.quill.insertText(t.index," ",y.default.sources.USER),this.quill.history.cutoff();var f=(new h.default).retain(t.index-c).delete(n+1).retain(line.length()-2-c).retain(1,{list:d});this.quill.updateContents(f,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,y.default.sources.SILENT)}},"code exit":{key:x.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),line=n[0],r=n[1],l=(new h.default).retain(t.index+line.length()-r-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(l,y.default.sources.USER)}},"embed left":T(x.keys.LEFT,!1),"embed left shift":T(x.keys.LEFT,!0),"embed right":T(x.keys.RIGHT,!1),"embed right shift":T(x.keys.RIGHT,!0)}},e.default=x,e.SHORTKEY=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return e}(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=f(n(0)),d=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}var h=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),l(e,null,[{key:"value",value:function(){}}]),l(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,l=0;null!=r&&r.statics.scope!==c.default.Scope.BLOCK_BLOT;)l+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(l,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),o=void 0,l=void 0,f=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var h=[t,n.start.offset,n.end.offset];o=h[0],l=h[1],f=h[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var text=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof d.default?(o=this.next.domNode,this.next.insertAt(0,text),this.textNode.data=e.CONTENTS):(this.textNode.data=text,this.parent.insertBefore(c.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=l){var v=[l,f].map((function(t){return Math.max(0,Math.min(o.data.length,t-1))})),m=r(v,2);return l=m[0],f=m[1],{startNode:o,startOffset:l,endNode:o,endOffset:f}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(c.default.Embed);h.blotName="cursor",h.className="ql-cursor",h.tagName="span",h.CONTENTS="\ufeff",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=c(n(0)),o=n(4),l=c(o);function c(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var h=function(t){function e(){return d(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default.Container);h.allowedChildren=[l.default,o.BlockEmbed,h],e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(0),c=(r=l)&&r.__esModule?r:{default:r};function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var h=function(t){function e(){return d(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"value",value:function(t){var n=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(component){return("00"+parseInt(component).toString(16)).slice(-2)})).join("")):n}}]),e}(c.default.Attributor.Style),v=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),m=new h("color","color",{scope:c.default.Scope.INLINE});e.ColorAttributor=h,e.ColorClass=v,e.ColorStyle=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(6);function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var h=function(t){function e(){return d(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=l(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return v(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(((r=c)&&r.__esModule?r:{default:r}).default);function v(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=h,e.sanitize=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=d(n(23)),c=d(n(107));function d(t){return t&&t.__esModule?t:{default:t}}var f=0;function h(element,t){element.setAttribute(t,!("true"===element.getAttribute(t)))}var v=function(){function t(select){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.select=select,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){e.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case l.default.keys.ENTER:e.togglePicker();break;case l.default.keys.ESCAPE:e.escape(),t.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),h(this.label,"aria-expanded"),h(this.options,"aria-hidden")}},{key:"buildItem",value:function(option){var t=this,e=document.createElement("span");return e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item"),option.hasAttribute("value")&&e.setAttribute("data-value",option.getAttribute("value")),option.textContent&&e.setAttribute("data-label",option.textContent),e.addEventListener("click",(function(){t.selectItem(e,!0)})),e.addEventListener("keydown",(function(n){switch(n.keyCode){case l.default.keys.ENTER:t.selectItem(e,!0),n.preventDefault();break;case l.default.keys.ESCAPE:t.escape(),n.preventDefault()}})),e}},{key:"buildLabel",value:function(){var label=document.createElement("span");return label.classList.add("ql-picker-label"),label.innerHTML=c.default,label.tabIndex="0",label.setAttribute("role","button"),label.setAttribute("aria-expanded","false"),this.container.appendChild(label),label}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+f,f+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(option){var n=t.buildItem(option);e.appendChild(n),!0===option.selected&&t.selectItem(n)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var option=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];option=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var e=null!=option&&option!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}}]),t}();e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=j(n(0)),o=j(n(5)),l=n(4),c=j(l),d=j(n(16)),f=j(n(25)),h=j(n(24)),v=j(n(35)),m=j(n(6)),y=j(n(22)),w=j(n(7)),O=j(n(55)),k=j(n(42)),S=j(n(23));function j(t){return t&&t.__esModule?t:{default:t}}o.default.register({"blots/block":c.default,"blots/block/embed":l.BlockEmbed,"blots/break":d.default,"blots/container":f.default,"blots/cursor":h.default,"blots/embed":v.default,"blots/inline":m.default,"blots/scroll":y.default,"blots/text":w.default,"modules/clipboard":O.default,"modules/history":k.default,"modules/keyboard":S.default}),r.default.register(c.default,d.default,h.default,m.default,y.default,w.default),e.default=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,o){var l=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)l.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var c=r.create(this.statics.scope);l.wrap(c),c.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),l=this.split(t);this.parent.insertBefore(o,l)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),o=n(32),l=n(33),c=n(1),d=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),d=l.default.keys(this.domNode);e.concat(n).concat(d).forEach((function(e){var n=c.query(e,c.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=d},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});function l(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){l(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(l(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=c},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});function l(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[l(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[l(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[l(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();o.DEFAULTS={modules:{}},o.themes={default:o},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=c(n(0)),l=c(n(7));function c(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode("\ufeff"),n.rightGuard=document.createTextNode("\ufeff"),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,text=t.data.split("\ufeff").join("");if(t===this.leftGuard)if(this.prev instanceof l.default){var r=this.prev.length();this.prev.insertAt(r,text),e={startNode:this.prev.domNode,startOffset:r+text.length}}else n=document.createTextNode(text),this.parent.insertBefore(o.default.create(n),this),e={startNode:n,startOffset:text.length};else t===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,text),e={startNode:this.next.domNode,startOffset:text.length}):(n=document.createTextNode(text),this.parent.insertBefore(o.default.create(n),this.next),e={startNode:n,startOffset:text.length}));return t.data="\ufeff",e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}}))}}]),e}(o.default.Embed);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r,o=n(0),l=(r=o)&&r.__esModule?r:{default:r},c={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},d=new l.default.Attributor.Attribute("align","align",c),f=new l.default.Attributor.Class("align","ql-align",c),h=new l.default.Attributor.Style("align","text-align",c);e.AlignAttribute=d,e.AlignClass=f,e.AlignStyle=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r,o=n(0),l=(r=o)&&r.__esModule?r:{default:r},c=n(26),d=new l.default.Attributor.Class("background","ql-bg",{scope:l.default.Scope.INLINE}),f=new c.ColorAttributor("background","background-color",{scope:l.default.Scope.INLINE});e.BackgroundClass=d,e.BackgroundStyle=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r,o=n(0),l=(r=o)&&r.__esModule?r:{default:r},c={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},d=new l.default.Attributor.Attribute("direction","dir",c),f=new l.default.Attributor.Class("direction","ql-direction",c),h=new l.default.Attributor.Style("direction","direction",c);e.DirectionAttribute=d,e.DirectionClass=f,e.DirectionStyle=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(0),c=(r=l)&&r.__esModule?r:{default:r};function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var h={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new c.default.Attributor.Class("font","ql-font",h),m=new(function(t){function e(){return d(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"value",value:function(t){return function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(c.default.Attributor.Style))("font","font-family",h);e.FontStyle=m,e.FontClass=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r,o=n(0),l=(r=o)&&r.__esModule?r:{default:r},c=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),d=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=c,e.SizeStyle=d},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=c(n(0)),l=c(n(5));function c(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(l.default.events.EDITOR_CHANGE,(function(t,e,n,source){t!==l.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&source!==l.default.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"change",value:function(source,t){if(0!==this.stack[source].length){var e=this.stack[source].pop();this.stack[t].push(e),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(e[source],l.default.sources.USER),this.ignoreChange=!1;var n=f(e[source]);this.quill.setSelection(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(c(n(9)).default);function f(t){var e=t.reduce((function(t,e){return t+=e.delete||0}),0),n=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=o.default.query(t,o.default.Scope.BLOCK)})))}(t)&&(n-=1),n}d.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=d,e.getLastChangeIndex=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=w(n(3)),l=w(n(2)),c=w(n(8)),d=w(n(23)),f=w(n(34)),h=w(n(59)),v=w(n(60)),m=w(n(28)),y=w(n(61));function w(t){return t&&t.__esModule?t:{default:t}}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function S(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var j=[!1,"center","right","justify"],_=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],x=[!1,"serif","monospace"],T=["1","2","3",!1],B=["small",!1,"large","huge"],C=function(t){function e(t,n){O(this,e);var r=k(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return t.emitter.listenDOM("click",document.body,(function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))})),r}return S(e,t),r(e,[{key:"addModule",value:function(t){var n=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(button){(button.getAttribute("class")||"").split(/\s+/).forEach((function(t){if(t.startsWith("ql-")&&(t=t.slice("ql-".length),null!=e[t]))if("direction"===t)button.innerHTML=e[t][""]+e[t].rtl;else if("string"==typeof e[t])button.innerHTML=e[t];else{var n=button.value||"";null!=n&&e[t][n]&&(button.innerHTML=e[t][n])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(select){if(select.classList.contains("ql-align"))return null==select.querySelector("option")&&M(select,j),new v.default(select,e.align);if(select.classList.contains("ql-background")||select.classList.contains("ql-color")){var t=select.classList.contains("ql-background")?"background":"color";return null==select.querySelector("option")&&M(select,_,"background"===t?"#ffffff":"#000000"),new h.default(select,e[t])}return null==select.querySelector("option")&&(select.classList.contains("ql-font")?M(select,x):select.classList.contains("ql-header")?M(select,T):select.classList.contains("ql-size")&&M(select,B)),new m.default(select)})),this.quill.on(c.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(t){t.update()}))}))}}]),e}(f.default);C.DEFAULTS=(0,o.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new l.default).retain(r.index).delete(r.length).insert({image:n.target.result}),c.default.sources.USER),t.quill.setSelection(r.index+1,c.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var P=function(t){function e(t,n){O(this,e);var r=k(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return S(e,t),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){d.default.match(e,"enter")?(t.save(),e.preventDefault()):d.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t,e,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,c.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":e=(t=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),n=e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var l=o.index+o.length;this.quill.insertEmbed(l,this.root.getAttribute("data-mode"),n,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(l+1," ",c.default.sources.USER),this.quill.setSelection(l+2,c.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(y.default);function M(select,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var option=document.createElement("option");t===e?option.setAttribute("selected","selected"):option.setAttribute("value",t),select.appendChild(option)}))}e.BaseTooltip=P,e.default=C},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(t<o||e&&t===o&&(null==n.next||0!==n.next.length()))return[n,t];t-=o}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,o=this.find(t),l=o[0],c=t-o[1],d=this.iterator(l);(r=d())&&c<t+e;){var f=r.length();t>c?n(r,t-c,Math.min(e,c+f-t)):n(r,0,Math.min(f,t+e-c)),c+=f}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(17),c=n(1),d={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},f=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,d),n.attach(),n}return o(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)e.push(o.pop());for(var mark=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[c.DATA_KEY].mutations&&(t.domNode[c.DATA_KEY].mutations=[]),e&&mark(t.parent))},d=function(t){null!=t.domNode[c.DATA_KEY]&&null!=t.domNode[c.DATA_KEY].mutations&&(t instanceof l.default&&t.children.forEach(d),t.optimize(n))},f=e,i=0;f.length>0;i+=1){if(i>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach((function(t){var e=c.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(mark(c.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=c.find(t,!1);mark(e,!1),e instanceof l.default&&e.children.forEach((function(t){mark(t,!1)}))}))):"attributes"===t.type&&mark(e.prev)),mark(e))})),this.children.forEach(d),o=(f=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)e.push(o.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=c.find(t.target,!0);return null==e?null:null==e.domNode[c.DATA_KEY].mutations?(e.domNode[c.DATA_KEY].mutations=[t],e):(e.domNode[c.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[c.DATA_KEY]&&t.update(t.domNode[c.DATA_KEY].mutations||[],n)})),null!=this.domNode[c.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[c.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=c.Scope.BLOCK_BLOT,e.tagName="DIV",e}(l.default);e.default=f},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(18),c=n(1),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof l.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){null!=this.formats()[r]||c.query(r,c.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},e.blotName="inline",e.scope=c.Scope.INLINE_BLOT,e.tagName="SPAN",e}(l.default);e.default=d},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(18),c=n(1),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){var r=c.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=c.query(n,c.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=c.query(r,c.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=c.query(n,c.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),l=c.create(n,r);o.parent.insertBefore(l,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=c.Scope.BLOCK_BLOT,e.tagName="P",e}(l.default);e.default=d},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=l},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},function(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var l=n(19),c=n(1),d=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return o(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var text=t.data;return text.normalize&&(text=text.normalize()),text},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=c.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=c.Scope.INLINE_BLOT,e}(l.default);e.default=d},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(e=n[i],t.call(o,e,i,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){function n(t,e,c){if(t==e)return t?[[0,t]]:[];(c<0||t.length<c)&&(c=null);var f=o(t,e),h=t.substring(0,f);f=l(t=t.substring(f),e=e.substring(f));var v=t.substring(t.length-f),m=function(t,e){var c;if(!t)return[[1,e]];if(!e)return[[-1,t]];var d=t.length>e.length?t:e,f=t.length>e.length?e:t,i=d.indexOf(f);if(-1!=i)return c=[[1,d.substring(0,i)],[0,f],[1,d.substring(i+f.length)]],t.length>e.length&&(c[0][0]=c[2][0]=-1),c;if(1==f.length)return[[-1,t],[1,e]];var h=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function c(t,e,i){for(var n,r,c,d,f=t.substring(i,i+Math.floor(t.length/4)),h=-1,v="";-1!=(h=e.indexOf(f,h+1));){var m=o(t.substring(i),e.substring(h)),y=l(t.substring(0,i),e.substring(0,h));v.length<y+m&&(v=e.substring(h-y,h)+e.substring(h,h+m),n=t.substring(0,i-y),r=t.substring(i+m),c=e.substring(0,h-y),d=e.substring(h+m))}return 2*v.length>=t.length?[n,r,c,d,v]:null}var d,f,h,v,m,y=c(n,r,Math.ceil(n.length/4)),w=c(n,r,Math.ceil(n.length/2));if(!y&&!w)return null;d=w?y&&y[4].length>w[4].length?y:w:y,t.length>e.length?(f=d[0],h=d[1],v=d[2],m=d[3]):(v=d[0],m=d[1],f=d[2],h=d[3]);var O=d[4];return[f,h,v,m,O]}(t,e);if(h){var v=h[0],m=h[1],y=h[2],w=h[3],O=h[4],k=n(v,y),S=n(m,w);return k.concat([[0,O]],S)}return function(t,e){for(var n=t.length,o=e.length,l=Math.ceil((n+o)/2),c=l,d=2*l,f=new Array(d),h=new Array(d),v=0;v<d;v++)f[v]=-1,h[v]=-1;f[c+1]=0,h[c+1]=0;for(var m=n-o,y=m%2!=0,w=0,O=0,k=0,S=0,j=0;j<l;j++){for(var _=-j+w;_<=j-O;_+=2){for(var x=c+_,T=(E=_==-j||_!=j&&f[x-1]<f[x+1]?f[x+1]:f[x-1]+1)-_;E<n&&T<o&&t.charAt(E)==e.charAt(T);)E++,T++;if(f[x]=E,E>n)O+=2;else if(T>o)w+=2;else if(y&&(P=c+m-_)>=0&&P<d&&-1!=h[P]){var B=n-h[P];if(E>=B)return r(t,e,E,T)}}for(var C=-j+k;C<=j-S;C+=2){for(var P=c+C,M=(B=C==-j||C!=j&&h[P-1]<h[P+1]?h[P+1]:h[P-1]+1)-C;B<n&&M<o&&t.charAt(n-B-1)==e.charAt(o-M-1);)B++,M++;if(h[P]=B,B>n)S+=2;else if(M>o)k+=2;else if(!y&&(x=c+m-C)>=0&&x<d&&-1!=f[x]){var E=f[x];if(T=c+E-x,E>=(B=n-B))return r(t,e,E,T)}}}return[[-1,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-f),e=e.substring(0,e.length-f));return h&&m.unshift([0,h]),v&&m.push([0,v]),function t(e){e.push([0,""]);for(var n,r=0,c=0,d=0,f="",h="";r<e.length;)switch(e[r][0]){case 1:d++,h+=e[r][1],r++;break;case-1:c++,f+=e[r][1],r++;break;case 0:c+d>1?(0!==c&&0!==d&&(0!==(n=o(h,f))&&(r-c-d>0&&0==e[r-c-d-1][0]?e[r-c-d-1][1]+=h.substring(0,n):(e.splice(0,0,[0,h.substring(0,n)]),r++),h=h.substring(n),f=f.substring(n)),0!==(n=l(h,f))&&(e[r][1]=h.substring(h.length-n)+e[r][1],h=h.substring(0,h.length-n),f=f.substring(0,f.length-n))),0===c?e.splice(r-d,c+d,[1,h]):0===d?e.splice(r-c,c+d,[-1,f]):e.splice(r-c-d,c+d,[-1,f],[1,h]),r=r-c-d+(c?1:0)+(d?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,d=0,c=0,f="",h=""}""===e[e.length-1][1]&&e.pop();var v=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),v=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),v=!0)),r++;v&&t(e)}(m),null!=c&&(m=function(t,e){var n=function(t,e){if(0===e)return[0,t];for(var n=0,i=0;i<t.length;i++){var r=t[i];if(-1===r[0]||0===r[0]){var o=n+r[1].length;if(e===o)return[i+1,t];if(e<o){t=t.slice();var l=e-n,c=[r[0],r[1].slice(0,l)],d=[r[0],r[1].slice(l)];return t.splice(i,1,c,d),[i+1,t]}n=o}}throw new Error("cursor_pos is out of bounds!")}(t,e),r=n[1],o=n[0],l=r[o],c=r[o+1];if(null==l)return t;if(0!==l[0])return t;if(null!=c&&l[1]+c[1]===c[1]+l[1])return r.splice(o,2,c,l),d(r,o,2);if(null!=c&&0===c[1].indexOf(l[1])){r.splice(o,2,[c[0],l[1]],[0,l[1]]);var f=c[1].slice(l[1].length);return f.length>0&&r.splice(o+2,0,[c[0],f]),d(r,o,3)}return t}(m,c)),m=function(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},i=2;i<t.length;i+=1)0===t[i-2][0]&&(r=t[i-2][1]).charCodeAt(r.length-1)>=55296&&r.charCodeAt(r.length-1)<=56319&&-1===t[i-1][0]&&n(t[i-1][1])&&1===t[i][0]&&n(t[i][1])&&(e=!0,t[i-1][1]=t[i-2][1].slice(-1)+t[i-1][1],t[i][1]=t[i-2][1].slice(-1)+t[i][1],t[i-2][1]=t[i-2][1].slice(0,-1));var r;if(!e)return t;var o=[];for(i=0;i<t.length;i+=1)t[i][1].length>0&&o.push(t[i]);return o}(m)}function r(t,e,r,o){var l=t.substring(0,r),c=e.substring(0,o),d=t.substring(r),f=e.substring(o),h=n(l,c),v=n(d,f);return h.concat(v)}function o(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,l=0;n<o;)t.substring(l,o)==e.substring(l,o)?l=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function l(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,l=0;n<o;)t.substring(t.length-o,t.length-l)==e.substring(e.length-o,e.length-l)?l=n=o:r=o,o=Math.floor((r-n)/2+n);return o}var c=n;function d(t,e,n){for(var i=e+n-1;i>=0&&i>=e-1;i--)if(i+1<t.length){var r=t[i],o=t[i+1];r[0]===o[1]&&t.splice(i,2,[r[0],r[1]+o[1]])}return t}c.INSERT=1,c.DELETE=-1,c.EQUAL=0,t.exports=c},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(object){return"[object Arguments]"==Object.prototype.toString.call(object)}function o(object){return object&&"object"==typeof object&&"number"==typeof object.length&&Object.prototype.hasOwnProperty.call(object,"callee")&&!Object.prototype.propertyIsEnumerable.call(object,"callee")||!1}(e=t.exports=n?r:o).supported=r,e.unsupported=o},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function l(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,e,o=[];if(0===this._eventsCount)return o;for(e in t=this._events)n.call(t,e)&&o.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t,e){var n=r?r+t:t,o=this._events[n];if(e)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,l=o.length,c=new Array(l);i<l;i++)c[i]=o[i].fn;return c},c.prototype.emit=function(t,e,n,o,l,c){var d=r?r+t:t;if(!this._events[d])return!1;var f,i,h=this._events[d],v=arguments.length;if(h.fn){switch(h.once&&this.removeListener(t,h.fn,void 0,!0),v){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,e),!0;case 3:return h.fn.call(h.context,e,n),!0;case 4:return h.fn.call(h.context,e,n,o),!0;case 5:return h.fn.call(h.context,e,n,o,l),!0;case 6:return h.fn.call(h.context,e,n,o,l,c),!0}for(i=1,f=new Array(v-1);i<v;i++)f[i-1]=arguments[i];h.fn.apply(h.context,f)}else{var m,y=h.length;for(i=0;i<y;i++)switch(h[i].once&&this.removeListener(t,h[i].fn,void 0,!0),v){case 1:h[i].fn.call(h[i].context);break;case 2:h[i].fn.call(h[i].context,e);break;case 3:h[i].fn.call(h[i].context,e,n);break;case 4:h[i].fn.call(h[i].context,e,n,o);break;default:if(!f)for(m=1,f=new Array(v-1);m<v;m++)f[m-1]=arguments[m];h[i].fn.apply(h[i].context,f)}}return!0},c.prototype.on=function(t,e,n){var o=new l(e,n||this),c=r?r+t:t;return this._events[c]?this._events[c].fn?this._events[c]=[this._events[c],o]:this._events[c].push(o):(this._events[c]=o,this._eventsCount++),this},c.prototype.once=function(t,e,n){var o=new l(e,n||this,!0),c=r?r+t:t;return this._events[c]?this._events[c].fn?this._events[c]=[this._events[c],o]:this._events[c].push(o):(this._events[c]=o,this._eventsCount++),this},c.prototype.removeListener=function(t,e,n,l){var c=r?r+t:t;if(!this._events[c])return this;if(!e)return 0==--this._eventsCount?this._events=new o:delete this._events[c],this;var d=this._events[c];if(d.fn)d.fn!==e||l&&!d.once||n&&d.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[c]);else{for(var i=0,f=[],h=d.length;i<h;i++)(d[i].fn!==e||l&&!d[i].once||n&&d[i].context!==n)&&f.push(d[i]);f.length?this._events[c]=1===f.length?f[0]:f:0==--this._eventsCount?this._events=new o:delete this._events[c]}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new o:delete this._events[e])):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=r,c.EventEmitter=c,void 0!==t&&(t.exports=c)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return e}(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=x(n(3)),d=x(n(2)),f=x(n(0)),h=x(n(5)),v=x(n(10)),m=x(n(9)),y=n(36),w=n(37),O=x(n(13)),k=n(26),S=n(38),j=n(39),_=n(40);function x(t){return t&&t.__esModule?t:{default:t}}function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var B=(0,v.default)("quill:clipboard"),C="__ql-matcher",P=[[Node.TEXT_NODE,$],[Node.TEXT_NODE,F],["br",function(t,e){return L(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,F],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,function(t,e){var n={},style=t.style||{};return style.fontStyle&&"italic"===D(t).fontStyle&&(n.italic=!0),style.fontWeight&&(D(t).fontWeight.startsWith("bold")||parseInt(D(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=z(e,n)),parseFloat(style.textIndent||0)>0&&(e=(new d.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=f.default.query(t);if(null==n||"list-item"!==n.blotName||!L(e,"\n"))return e;for(var r=-1,o=t.parentNode;!o.classList.contains("ql-clipboard");)"list"===(f.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new d.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",N.bind(N,"bold")],["i",N.bind(N,"italic")],["style",function(){return new d.default}]],M=[y.AlignAttribute,S.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),E=[y.AlignStyle,w.BackgroundStyle,k.ColorStyle,S.DirectionStyle,j.FontStyle,_.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),A=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],P.concat(r.options.matchers).forEach((function(t){var e=o(t,2),l=e[0],c=e[1];(n.matchVisual||c!==R)&&r.addMatcher(l,c)})),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),l(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(html){if("string"==typeof html)return this.container.innerHTML=html.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[O.default.blotName]){var text=this.container.innerText;return this.container.innerHTML="",(new d.default).insert(text,T({},O.default.blotName,t[O.default.blotName]))}var e=this.prepareMatching(),n=o(e,2),r=n[0],l=n[1],c=function t(e,n,r){return e.nodeType===e.TEXT_NODE?r.reduce((function(t,n){return n(e,t)}),new d.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(o,l){var c=t(l,n,r);return l.nodeType===e.ELEMENT_NODE&&(c=n.reduce((function(t,e){return e(l,t)}),c),c=(l[C]||[]).reduce((function(t,e){return e(l,t)}),c)),o.concat(c)}),new d.default):new d.default}(this.container,r,l);return L(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new d.default).retain(c.length()-1).delete(1))),B.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(t,html){var source=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),html),this.quill.setSelection(0,h.default.sources.SILENT);else{var e=this.convert(html);this.quill.updateContents((new d.default).retain(t).concat(e),source),this.quill.setSelection(t+e.length(),h.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new d.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(h.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,h.default.sources.USER),e.quill.setSelection(r.length()-n.length,h.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var l=o(r,2),c=l[0],d=l[1];switch(c){case Node.TEXT_NODE:n.push(d);break;case Node.ELEMENT_NODE:e.push(d);break;default:[].forEach.call(t.container.querySelectorAll(c),(function(t){t[C]=t[C]||[],t[C].push(d)}))}})),[e,n]}}]),e}(m.default);function z(t,e,n){return"object"===(void 0===e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return z(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,c.default)({},T({},e,n),r.attributes))}),new d.default)}function D(t){return t.nodeType!==Node.ELEMENT_NODE?{}:t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function L(t,text){for(var e="",i=t.ops.length-1;i>=0&&e.length<text.length;--i){var n=t.ops[i];if("string"!=typeof n.insert)break;e=n.insert+e}return e.slice(-1*text.length)===text}function I(t){if(0===t.childNodes.length)return!1;var style=D(t);return["block","list-item"].indexOf(style.display)>-1}function N(t,e,n){return z(n,t,!0)}function H(t,e){var n=f.default.Attributor.Attribute.keys(t),r=f.default.Attributor.Class.keys(t),o=f.default.Attributor.Style.keys(t),l={};return n.concat(r).concat(o).forEach((function(e){var n=f.default.query(e,f.default.Scope.ATTRIBUTE);null!=n&&(l[n.attrName]=n.value(t),l[n.attrName])||(null==(n=M[e])||n.attrName!==e&&n.keyName!==e||(l[n.attrName]=n.value(t)||void 0),null==(n=E[e])||n.attrName!==e&&n.keyName!==e||(n=E[e],l[n.attrName]=n.value(t)||void 0))})),Object.keys(l).length>0&&(e=z(e,l)),e}function V(t,e){var n=f.default.query(t);if(null==n)return e;if(n.prototype instanceof f.default.Embed){var embed={},r=n.value(t);null!=r&&(embed[n.blotName]=r,e=(new d.default).insert(embed,n.formats(t)))}else"function"==typeof n.formats&&(e=z(e,n.blotName,n.formats(t)));return e}function F(t,e){return L(e,"\n")||(I(t)||e.length()>0&&t.nextSibling&&I(t.nextSibling))&&e.insert("\n"),e}function R(t,e){if(I(t)&&null!=t.nextElementSibling&&!L(e,"\n\n")){var n=t.offsetHeight+parseFloat(D(t).marginTop)+parseFloat(D(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function $(t,e){var text=t.data;if("O:P"===t.parentNode.tagName)return e.insert(text.trim());if(0===text.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!D(t.parentNode).whiteSpace.startsWith("pre")){var n=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};text=(text=text.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==t.previousSibling&&I(t.parentNode)||null!=t.previousSibling&&I(t.previousSibling))&&(text=text.replace(/^\s+/,n.bind(n,!1))),(null==t.nextSibling&&I(t.parentNode)||null!=t.nextSibling&&I(t.nextSibling))&&(text=text.replace(/\s+$/,n.bind(n,!1)))}return e.insert(text)}A.DEFAULTS={matchers:[],matchVisual:!0},e.default=A,e.matchAttributor=H,e.matchBlot=V,e.matchNewline=F,e.matchSpacing=R,e.matchText=$},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(6);function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var h=function(t){function e(){return d(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"optimize",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(((r=c)&&r.__esModule?r:{default:r}).default);h.blotName="bold",h.tagName=["STRONG","B"],e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return e}(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=v(n(2)),c=v(n(0)),d=v(n(5)),f=v(n(10)),h=v(n(9));function v(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var y=(0,f.default)("quill:toolbar"),w=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o,l=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(l.options.container)){var c=document.createElement("div");k(c,l.options.container),t.container.parentNode.insertBefore(c,t.container),l.container=c}else"string"==typeof l.options.container?l.container=document.querySelector(l.options.container):l.container=l.options.container;return l.container instanceof HTMLElement?(l.container.classList.add("ql-toolbar"),l.controls=[],l.handlers={},Object.keys(l.options.handlers).forEach((function(t){l.addHandler(t,l.options.handlers[t])})),[].forEach.call(l.container.querySelectorAll("button, select"),(function(input){l.attach(input)})),l.quill.on(d.default.events.EDITOR_CHANGE,(function(t,e){t===d.default.events.SELECTION_CHANGE&&l.update(e)})),l.quill.on(d.default.events.SCROLL_OPTIMIZE,(function(){var t=l.quill.selection.getRange(),e=r(t,1)[0];l.update(e)})),l):(o=y.error("Container required for toolbar",l.options),m(l,o))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(input){var t=this,e=[].find.call(input.classList,(function(t){return 0===t.indexOf("ql-")}));if(e){if(e=e.slice("ql-".length),"BUTTON"===input.tagName&&input.setAttribute("type","button"),null==this.handlers[e]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[e])return void y.warn("ignoring attaching to disabled format",e,input);if(null==c.default.query(e))return void y.warn("ignoring attaching to nonexistent format",e,input)}var n="SELECT"===input.tagName?"change":"click";input.addEventListener(n,(function(n){var o=void 0;if("SELECT"===input.tagName){if(input.selectedIndex<0)return;var f=input.options[input.selectedIndex];o=!f.hasAttribute("selected")&&(f.value||!1)}else o=!input.classList.contains("ql-active")&&(input.value||!input.hasAttribute("value")),n.preventDefault();t.quill.focus();var h=t.quill.selection.getRange(),v=r(h,1)[0];if(null!=t.handlers[e])t.handlers[e].call(t,o);else if(c.default.query(e).prototype instanceof c.default.Embed){if(!(o=prompt("Enter "+e)))return;t.quill.updateContents((new l.default).retain(v.index).delete(v.length).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,o)),d.default.sources.USER)}else t.quill.format(e,o,d.default.sources.USER);t.update(v)})),this.controls.push([e,input])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var o=r(n,2),l=o[0],input=o[1];if("SELECT"===input.tagName){var option=void 0;if(null==t)option=null;else if(null==e[l])option=input.querySelector("option[selected]");else if(!Array.isArray(e[l])){var c=e[l];"string"==typeof c&&(c=c.replace(/\"/g,'\\"')),option=input.querySelector('option[value="'+c+'"]')}null==option?(input.value="",input.selectedIndex=-1):option.selected=!0}else if(null==t)input.classList.remove("ql-active");else if(input.hasAttribute("value")){var d=e[l]===input.getAttribute("value")||null!=e[l]&&e[l].toString()===input.getAttribute("value")||null==e[l]&&!input.getAttribute("value");input.classList.toggle("ql-active",d)}else input.classList.toggle("ql-active",null!=e[l])}))}}]),e}(h.default);function O(t,e,n){var input=document.createElement("button");input.setAttribute("type","button"),input.classList.add("ql-"+e),null!=n&&(input.value=n),t.appendChild(input)}function k(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"==typeof t)O(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?function(t,e,n){var input=document.createElement("select");input.classList.add("ql-"+e),n.forEach((function(t){var option=document.createElement("option");!1!==t?option.setAttribute("value",t):option.setAttribute("selected","selected"),input.appendChild(option)})),t.appendChild(input)}(n,e,r):O(n,e,r)}})),t.appendChild(n)}))}w.DEFAULTS={},w.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=c.default.query(e,c.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,d.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",d.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,d.default.sources.USER),this.quill.format("direction",t,d.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var o="+1"===t?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,d.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,d.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,d.default.sources.USER):this.quill.format("list","unchecked",d.default.sources.USER):this.quill.format("list",t,d.default.sources.USER)}}},e.default=w,e.addControls=k},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(28),d=function(t){function e(select,label){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,select));return t.label.innerHTML=label,t.container.classList.add("ql-color-picker"),[].slice.call(t.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"buildItem",value:function(option){var t=l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,option);return t.style.backgroundColor=option.getAttribute("value")||"",t}},{key:"selectItem",value:function(t,n){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),o=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),e}(((r=c)&&r.__esModule?r:{default:r}).default);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(28),c=function(t){function e(select,t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,select));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=t[e.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"selectItem",value:function(t,n){(function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),l=0;if(o.right>r.right&&(l=r.right-o.right,this.root.style.left=e+l+"px"),o.left<r.left&&(l=r.left-o.left,this.root.style.left=e+l+"px"),o.bottom>r.bottom){var c=o.bottom-o.top,d=t.bottom-t.top+c;this.root.style.top=n-d+"px",this.root.classList.add("ql-flip")}return l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return e}(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=w(n(3)),d=w(n(8)),f=n(43),h=w(f),v=w(n(27)),m=n(15),y=w(n(41));function w(t){return t&&t.__esModule?t:{default:t}}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function S(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var j=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],_=function(t){function e(t,n){O(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=j);var r=k(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return S(e,t),l(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),y.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),y.default),this.tooltip=new x(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers.link.call(t,!n.format.link)}))}}]),e}(h.default);_.DEFAULTS=(0,c.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var x=function(t){function e(t,n){O(this,e);var r=k(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return S(e,t),l(e,[{key:"listen",value:function(){var t=this;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,d.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(d.default.events.SELECTION_CHANGE,(function(e,n,source){if(null!=e){if(0===e.length&&source===d.default.sources.USER){var o=t.quill.scroll.descendant(v.default,e.index),l=r(o,2),link=l[0],c=l[1];if(null!=link){t.linkRange=new m.Range(e.index-c,link.length());var f=v.default.formats(link.domNode);return t.preview.textContent=f,t.preview.setAttribute("href",f),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(f.BaseTooltip);x.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=R(n(29)),o=n(36),l=n(38),c=n(64),d=R(n(65)),f=R(n(66)),h=n(67),v=R(h),m=n(37),y=n(26),w=n(39),O=n(40),k=R(n(56)),S=R(n(68)),j=R(n(27)),_=R(n(69)),x=R(n(70)),T=R(n(71)),B=R(n(72)),C=R(n(73)),P=n(13),M=R(P),E=R(n(74)),A=R(n(75)),z=R(n(57)),D=R(n(41)),L=R(n(28)),I=R(n(59)),N=R(n(60)),H=R(n(61)),V=R(n(108)),F=R(n(62));function R(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":m.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":w.FontClass,"attributors/class/size":O.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":m.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":w.FontStyle,"attributors/style/size":O.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":c.IndentClass,"formats/background":m.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":w.FontClass,"formats/size":O.SizeClass,"formats/blockquote":d.default,"formats/code-block":M.default,"formats/header":f.default,"formats/list":v.default,"formats/bold":k.default,"formats/code":P.Code,"formats/italic":S.default,"formats/link":j.default,"formats/script":_.default,"formats/strike":x.default,"formats/underline":T.default,"formats/image":B.default,"formats/video":C.default,"formats/list/item":h.ListItem,"modules/formula":E.default,"modules/syntax":A.default,"modules/toolbar":z.default,"themes/bubble":V.default,"themes/snow":F.default,"ui/icons":D.default,"ui/picker":L.default,"ui/icon-picker":N.default,"ui/color-picker":I.default,"ui/tooltip":H.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(0),d=(r=c)&&r.__esModule?r:{default:r};function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var v=new(function(t){function e(){return f(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(d.default.Attributor.Class))("indent","ql-indent",{scope:d.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(4);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default);d.blotName="blockquote",d.tagName="blockquote",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(4);function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var f=function(t){function e(){return c(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);f.blotName="header",f.tagName=["H1","H2","H3","H4","H5","H6"],e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},l=f(n(0)),c=f(n(4)),d=f(n(25));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=function(t){function e(){return h(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return m(e,t),r(e,[{key:"format",value:function(t,n){t!==w.blotName||n?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(l.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:o(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(c.default);y.blotName="list-item",y.tagName="LI";var w=function(t){function e(t){h(this,e);var n=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),o=l.default.find(e.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return m(e,t),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof y)o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),l=this.split(r);l.parent.insertBefore(t,l)}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=l.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(d.default);w.blotName="list",w.scope=l.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[y],e.ListItem=y,e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(56);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default);d.blotName="italic",d.tagName=["EM","I"],e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(6);function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var f=function(t){function e(){return c(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0}(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(((r=l)&&r.__esModule?r:{default:r}).default);f.blotName="script",f.tagName=["SUB","SUP"],e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(6);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default);d.blotName="strike",d.tagName="S",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(6);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=o)&&r.__esModule?r:{default:r}).default);d.blotName="underline",d.tagName="U",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(0),d=(r=c)&&r.__esModule?r:{default:r},f=n(27);function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var m=["alt","height","width"],y=function(t){function e(){return h(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,n){m.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=l(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return m.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,f.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(d.default.Embed);y.blotName="image",y.tagName="IMG",e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},c=n(4),d=n(27),f=(r=d)&&r.__esModule?r:{default:r};function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var m=["height","width"],y=function(t){function e(){return h(this,e),v(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,n){m.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=l(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return m.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return f.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(c.BlockEmbed);y.blotName="video",y.className="ql-video",y.tagName="IFRAME",e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=d(n(35)),l=d(n(5)),c=d(n(9));function d(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return f(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return v(e,t),r(e,null,[{key:"create",value:function(t){var n=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0}(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(o.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var y=function(t){function e(){f(this,e);var t=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return v(e,t),r(e,null,[{key:"register",value:function(){l.default.register(m,!0)}}]),e}(c.default);e.FormulaBlot=m,e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=d(n(0)),l=d(n(5)),c=d(n(9));function d(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return f(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return v(e,t),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var text=this.domNode.textContent;this.cachedText!==text&&((text.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(text),this.domNode.normalize(),this.attach()),this.cachedText=text)}}]),e}(d(n(13)).default);m.className="ql-syntax";var y=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),w=function(t){function e(t,n){f(this,e);var r=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return v(e,t),r(e,null,[{key:"register",value:function(){l.default.register(y,!0),l.default.register(m,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(m).forEach((function(code){code.highlight(t.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=e&&this.quill.setSelection(e,l.default.sources.SILENT)}}}]),e}(c.default);w.DEFAULTS={highlight:null==window.hljs?null:function(text){return window.hljs.highlightAuto(text).value},interval:1e3},e.CodeBlock=m,e.CodeToken=y,e.default=w},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(object,e,n){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,e);if(void 0===desc){var r=Object.getPrototypeOf(object);return null===r?void 0:t(r,e,n)}if("value"in desc)return desc.value;var o=desc.get;return void 0!==o?o.call(n):void 0},o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=m(n(3)),c=m(n(8)),d=n(43),f=m(d),h=n(15),v=m(n(41));function m(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function O(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var k=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],S=function(t){function e(t,n){y(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=k);var r=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return O(e,t),o(e,[{key:"extendToolbar",value:function(t){this.tooltip=new j(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),v.default)}}]),e}(f.default);S.DEFAULTS=(0,l.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var j=function(t){function e(t,n){y(this,e);var r=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(c.default.events.EDITOR_CHANGE,(function(t,e,n,source){if(t===c.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&source===c.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var l=o[o.length-1],d=r.quill.getIndex(l),f=Math.min(l.length()-1,e.index+e.length-d),v=r.quill.getBounds(new h.Range(d,f));r.position(v)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return O(e,t),o(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),e}(d.BaseTooltip);j.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=j,e.default=S},function(t,e,n){t.exports=n(63)}]).default},t.exports=n()}).call(this,n(251).Buffer)},4:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return h})),n.d(e,"e",(function(){return v})),n.d(e,"f",(function(){return m})),n.d(e,"g",(function(){return y})),n.d(e,"h",(function(){return w})),n.d(e,"l",(function(){return O})),n.d(e,"i",(function(){return k})),n.d(e,"o",(function(){return S})),n.d(e,"j",(function(){return j})),n.d(e,"k",(function(){return _})),n.d(e,"b",(function(){return x})),n.d(e,"m",(function(){return T})),n.d(e,"n",(function(){return B})),n.d(e,"d",(function(){return C}));n(14);var r=n(2),o=n(41),l=(n(56),n(57),n(11),n(9),n(12),n(223),n(224),n(10),n(225),n(5));function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function d(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var f=function(){return Object.assign.apply(Object,arguments)},h=function(t,e){return Object.create(t,e)},v=function(t,e){return Object.defineProperties(t,e)},m=function(t,e,n){return Object.defineProperty(t,e,n)},y=function(t){return Object.freeze(t)},w=function(t){return Object.getOwnPropertyNames(t)},O=function(t){return Object.keys(t)},k=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},S=function(t){return Object.prototype.toString.call(t)},j=function(t){return null!==t&&"object"===Object(o.a)(t)},_=function(t){return"[object Object]"===Object.prototype.toString.call(t)},x=function(t){return d({},t)},T=function(t,e){return O(t).filter((function(t){return-1===e.indexOf(t)})).reduce((function(e,n){return d({},e,Object(r.a)({},n,t[n]))}),{})},B=function(){return{enumerable:!0,configurable:!1,writable:!1}},C=function t(e){return O(e).forEach((function(n){var r=e[n];e[n]=r&&(_(r)||Object(l.d)(r))?t(r):r})),y(e)}},44:function(t,e,n){"use strict";n(14),n(10),n(11),n(9),n(12);var r=n(2),o=n(25),l=n(5),c=n(4);function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function f(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}e.a=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Object(l.d)(e)?e.reduce((function(e,n){return[].concat(Object(o.a)(e),[t(n,n)])}),[]):Object(c.k)(e)?Object(c.l)(e).reduce((function(n,o){return f({},n,Object(r.a)({},o,t(e[o],e[o])))}),{}):n}},49:function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var content=function(t,e){var content=t[1]||"",n=t[3];if(!n)return content;if(e&&"function"==typeof btoa){var r=(l=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(data," */")),o=n.sources.map((function(source){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(source," */")}));return[content].concat(o).concat([r]).join("\n")}var l,c,data;return[content].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(o[l]=!0)}for(var c=0;c<t.length;c++){var d=[].concat(t[c]);r&&o[d[0]]||(n&&(d[2]?d[2]="".concat(n," and ").concat(d[2]):d[2]=n),e.push(d))}},e}},5:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return c}));n(71),n(226);var r=function(){return Array.from.apply(Array,arguments)},o=function(t){return Array.isArray(t)},l=function(t,e){return-1!==t.indexOf(e)},c=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Array.prototype.concat.apply([],e)}},50:function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],l=o[0],c={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[l]?r[l].parts.push(c):n.push(r[l]={id:l,parts:[c]})}return n}n.r(e),n.d(e,"default",(function(){return y}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l={},head=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,d=0,f=!1,h=function(){},v=null,m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function y(t,e,n,o){f=n,v=o||{};var c=r(t,e);return w(c),function(e){for(var n=[],i=0;i<c.length;i++){var o=c[i];(d=l[o.id]).refs--,n.push(d)}e?w(c=r(t,e)):c=[];for(i=0;i<n.length;i++){var d;if(0===(d=n[i]).refs){for(var f=0;f<d.parts.length;f++)d.parts[f]();delete l[d.id]}}}}function w(t){for(var i=0;i<t.length;i++){var e=t[i],n=l[e.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](e.parts[r]);for(;r<e.parts.length;r++)n.parts.push(k(e.parts[r]));n.parts.length>e.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(r=0;r<e.parts.length;r++)o.push(k(e.parts[r]));l[e.id]={id:e.id,refs:1,parts:o}}}}function O(){var t=document.createElement("style");return t.type="text/css",head.appendChild(t),t}function k(t){var e,n,r=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(r){if(f)return h;r.parentNode.removeChild(r)}if(m){var o=d++;r=c||(c=O()),e=_.bind(null,r,o,!1),n=_.bind(null,r,o,!0)}else r=O(),e=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var S,j=(S=[],function(t,e){return S[t]=e,S.filter(Boolean).join("\n")});function _(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=j(e,o);else{var l=document.createTextNode(o),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(l,c[e]):t.appendChild(l)}}function x(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),v.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},58:function(t,e,n){"use strict";n.d(e,"b",(function(){return v})),n.d(e,"a",(function(){return y}));n(14),n(10),n(11),n(9),n(12);var r=n(2),o=(n(20),n(3)),l=n(7),c=n(16),d=n(1),f=n(15);function h(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var v={variant:{type:String,default:null},fontScale:{type:[Number,String],default:1},scale:{type:[Number,String],default:1},rotate:{type:[Number,String],default:0},flipH:{type:Boolean,default:!1},flipV:{type:Boolean,default:!1},shiftH:{type:[Number,String],default:0},shiftV:{type:[Number,String],default:0},animation:{type:String,default:null}},m={width:"1em",height:"1em",viewBox:"0 0 20 20",focusable:"false",role:"img",alt:"icon"},y=o.a.extend({name:"BVIconBase",functional:!0,props:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({content:{type:String},stacked:{type:Boolean,default:!1}},v),render:function(t,e){var n,data=e.data,o=e.props,h=e.children,v=Math.max(Object(f.b)(o.fontScale)||1,0)||1,y=Math.max(Object(f.b)(o.scale)||1,0)||1,w=Object(f.b)(o.rotate)||0,O=Object(f.b)(o.shiftH)||0,k=Object(f.b)(o.shiftV)||0,S=o.flipH,j=o.flipV,_=o.animation,x=S||j||1!==y,T=x||w,B=O||k,C=[T?"translate(10 10)":null,x?"scale(".concat((S?-1:1)*y," ").concat((j?-1:1)*y,")"):null,w?"rotate(".concat(w,")"):null,T?"translate(-10 -10)":null].filter(c.a),P=o.stacked,M=!Object(d.l)(o.content),E=t("g",{attrs:{transform:C.join(" ")||null},domProps:M?{innerHTML:o.content||""}:{}},h);return B&&(E=t("g",{attrs:{transform:"translate(".concat(20*O/16," ").concat(-20*k/16,")")}},[E])),P&&(E=t("g",{},[E])),t("svg",Object(l.a)({staticClass:"b-icon bi",class:(n={},Object(r.a)(n,"text-".concat(o.variant),!!o.variant),Object(r.a)(n,"b-icon-animation-".concat(_),!!_),n),attrs:m,style:P?{}:{fontSize:1===v?null:"".concat(100*v,"%")}},data,P?{attrs:{width:null,height:null,role:null,alt:null}}:{},{attrs:{xmlns:P?null:"http://www.w3.org/2000/svg",fill:"currentColor"}}),[E])}})},59:function(t,e,n){"use strict";var r=n(4);e.a=Object(r.d)({breakpoints:["xs","sm","md","lg","xl"],formControls:{size:null},BAlert:{dismissLabel:"Close",variant:"info"},BBadge:{variant:"secondary"},BButton:{size:null,variant:"secondary"},BButtonClose:{content:"×",textVariant:null,ariaLabel:"Close"},BCalendar:{labelPrevYear:"Previous year",labelPrevMonth:"Previous month",labelCurrentMonth:"Current month",labelNextMonth:"Next month",labelNextYear:"Next year",labelToday:"Today",labelSelected:"Selected date",labelNoDateSelected:"No date selected",labelCalendar:"Calendar",labelNav:"Calendar navigation",labelHelp:"Use cursor keys to navigate calendar dates"},BCardSubTitle:{subTitleTextVariant:"muted"},BCarousel:{labelPrev:"Previous Slide",labelNext:"Next Slide",labelGotoSlide:"Goto Slide",labelIndicators:"Select a slide to display"},BDropdown:{toggleText:"Toggle Dropdown",size:null,variant:"secondary",splitVariant:null},BFormDatepicker:{labelPrevYear:null,labelPrevMonth:null,labelCurrentMonth:null,labelNextMonth:null,labelNextYear:null,labelToday:null,labelSelected:null,labelNoDateSelected:null,labelCalendar:null,labelNav:null,labelHelp:null,labelTodayButton:"Select today",labelResetButton:"Reset",labelCloseButton:"Close"},BFormFile:{browseText:"Browse",placeholder:"No file chosen",dropPlaceholder:"Drop files here"},BFormTag:{removeLabel:"Remove tag",variant:"secondary"},BFormTags:{addButtonText:"Add",addButtonVariant:"outline-secondary",duplicateTagText:"Duplicate tag(s)",invalidTagText:"Invalid tag(s)",placeholder:"Add tag...",tagRemoveLabel:"Remove tag",tagRemovedLabel:"Tag removed",tagVariant:"secondary"},BFormText:{textVariant:"muted"},BFormTimepicker:{labelNoTimeSelected:null,labelSelected:null,labelHours:null,labelMinutes:null,labelSeconds:null,labelAmpm:null,labelAm:null,labelPm:null,labelDecrement:null,labelIncrement:null,labelNowButton:"Select now",labelResetButton:"Reset",labelCloseButton:"Close"},BFormSpinbutton:{labelDecrement:"Decrement",labelIncrement:"Increment"},BImg:{blankColor:"transparent"},BImgLazy:{blankColor:"transparent"},BInputGroup:{size:null},BJumbotron:{bgVariant:null,borderVariant:null,textVariant:null},BListGroupItem:{variant:null},BModal:{titleTag:"h5",size:"md",headerBgVariant:null,headerBorderVariant:null,headerTextVariant:null,headerCloseVariant:null,bodyBgVariant:null,bodyTextVariant:null,footerBgVariant:null,footerBorderVariant:null,footerTextVariant:null,cancelTitle:"Cancel",cancelVariant:"secondary",okTitle:"OK",okVariant:"primary",headerCloseContent:"×",headerCloseLabel:"Close"},BNavbar:{variant:null},BNavbarToggle:{label:"Toggle navigation"},BPagination:{size:null},BPaginationNav:{size:null},BPopover:{boundary:"scrollParent",boundaryPadding:5,customClass:null,delay:50,variant:null},BProgress:{variant:null},BProgressBar:{variant:null},BSpinner:{variant:null},BTable:{selectedVariant:"active",headVariant:null,footVariant:null},BTime:{labelNoTimeSelected:"No time selected",labelSelected:"Selected time",labelHours:"Hours",labelMinutes:"Minutes",labelSeconds:"Seconds",labelAmpm:"AM/PM",labelAm:"AM",labelPm:"PM",labelIncrement:null,labelDecrement:null},BToast:{toaster:"b-toaster-top-right",autoHideDelay:5e3,variant:null,toastClass:null,headerClass:null,bodyClass:null},BToaster:{ariaLive:null,ariaAtomic:null,role:null},BTooltip:{boundary:"scrollParent",boundaryPadding:5,customClass:null,delay:50,variant:null}})},6:function(t,e,n){"use strict";n.d(e,"a",(function(){return P})),n.d(e,"b",(function(){return E})),n.d(e,"c",(function(){return A}));n(14),n(10),n(11),n(9),n(12),n(22);var r=n(2),o=n(3),l=n(26),c=n(33),d=n(44),f=n(21),object=n(4),h=n(5),v=n(1),m=n(19),y=n(59),w="BvConfig",O="$bvConfig",k=function(){function t(){Object(l.a)(this,t),this.$_config={},this.$_cachedBreakpoints=null}return Object(c.a)(t,[{key:"getDefaults",value:function(){return this.defaults}},{key:"setConfig",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(object.k)(e)){var n=Object(object.h)(e);n.forEach((function(n){if(Object(object.i)(y.a,n)){var r=e[n];if("breakpoints"===n){var o=e.breakpoints;!Object(h.d)(o)||o.length<2||o.some((function(b){return!Object(v.j)(b)||0===b.length}))?Object(m.a)('"breakpoints" must be an array of at least 2 breakpoint names',w):t.$_config.breakpoints=Object(d.a)(o)}else if(Object(object.k)(r)){Object(object.h)(r).forEach((function(e){Object(object.i)(y.a[n],e)?(t.$_config[n]=t.$_config[n]||{},Object(v.k)(r[e])||(t.$_config[n][e]=Object(d.a)(r[e]))):Object(m.a)('Unknown config property "'.concat(n,".").concat(e,'"'),w)}))}}else Object(m.a)('Unknown config property "'.concat(n,'"'),w)}))}}},{key:"resetConfig",value:function(){this.$_config={}}},{key:"getConfig",value:function(){return Object(d.a)(this.$_config)}},{key:"getConfigValue",value:function(t){return Object(d.a)(Object(f.a)(this.$_config,t,Object(f.a)(y.a,t)))}},{key:"defaults",get:function(){return y.a}}],[{key:"Defaults",get:function(){return y.a}}]),t}(),S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.a;e.prototype[O]=o.a.prototype[O]=e.prototype[O]||o.a.prototype[O]||new k,e.prototype[O].setConfig(t)},j=n(13);function _(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function x(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?_(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):_(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var T,B,C=(T=!1,B=["Multiple instances of Vue detected!","You may need to set up an alias for Vue in your bundler config.","See: https://bootstrap-vue.js.org/docs#using-module-bundlers"].join("\n"),function(t){T||o.a===t||j.k||Object(m.a)(B),T=!0}),P=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.components,n=t.directives,r=t.plugins,o=function t(o){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.installed||(t.installed=!0,C(o),S(l,o),L(o,e),N(o,n),z(o,r))};return o.installed=!1,o},M=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.components,n=t.directives,r=t.plugins,o=function t(o){t.installed||(t.installed=!0,C(o),L(o,e),N(o,n),z(o,r))};return o.installed=!1,o},E=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return x({},e,{install:P(t)})},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return x({},e,{install:M(t)})},z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)n&&e[n]&&t.use(e[n])},D=function(t,e,n){t&&e&&n&&t.component(e,n)},L=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var component in e)D(t,component,e[component])},I=function(t,e,n){t&&e&&n&&t.directive(e.replace(/^VB/,"B"),n)},N=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)I(t,n,e[n])}},63:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));n(14),n(10),n(11),n(9),n(12);var r=n(2),o=n(3),l=n(7),c=n(58);function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function f(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var h=o.a.extend({name:"BIconstack",functional:!0,props:f({},c.b),render:function(t,e){var data=e.data,n=e.props,r=e.children;return t(c.a,Object(l.a)(data,{staticClass:"b-iconstack",props:f({},n,{stacked:!1})}),r)}})},68:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=(r=n(17))&&"object"==typeof r&&"default"in r?r.default:r;function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t){return function(t){if(Array.isArray(t)){for(var i=0,e=new Array(t.length);i<t.length;i++)e[i]=t[i];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var d="undefined"!=typeof window;function f(t,e){return e.reduce((function(e,n){return t.hasOwnProperty(n)&&(e[n]=t[n]),e}),{})}var h={},v={},m={},y=new(o.extend({data:function(){return{transports:h,targets:v,sources:m,trackInstances:d}},methods:{open:function(t){if(d){var e=t.to,n=t.from,r=t.passengers,c=t.order,f=void 0===c?1/0:c;if(e&&n&&r){var h,v={to:e,from:n,passengers:(h=r,Array.isArray(h)||"object"===l(h)?Object.freeze(h):h),order:f};-1===Object.keys(this.transports).indexOf(e)&&o.set(this.transports,e,[]);var m,y=this.$_getTransportIndex(v),w=this.transports[e].slice(0);-1===y?w.push(v):w[y]=v,this.transports[e]=(m=function(a,b){return a.order-b.order},w.map((function(t,e){return[e,t]})).sort((function(a,b){return m(a[1],b[1])||a[0]-b[0]})).map((function(t){return t[1]})))}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.to,r=t.from;if(n&&(r||!1!==e)&&this.transports[n])if(e)this.transports[n]=[];else{var o=this.$_getTransportIndex(t);if(o>=0){var l=this.transports[n].slice(0);l.splice(o,1),this.transports[n]=l}}},registerTarget:function(t,e,n){d&&(this.trackInstances&&!n&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(source,t,e){d&&(this.trackInstances&&!e&&this.sources[source]&&console.warn("[portal-vue]: source ".concat(source," already exists")),this.$set(this.sources,source,Object.freeze([t])))},unregisterSource:function(source){this.$delete(this.sources,source)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,n=t.from;for(var i in this.transports[e])if(this.transports[e][i].from===n)return+i;return-1}}}))(h),w=1,O=o.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(w++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick((function(){y.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){y.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};y.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"==typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:c(t),order:this.order};y.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(n,[this.normalizeOwnChildren(e)]):this.slim?t():t(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),k=o.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:y.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick((function(){y.registerTarget(t.name,t)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){y.unregisterTarget(e),y.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick((function(){t.firstRender=!1}))},beforeDestroy:function(){y.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce((function(t,n){var r=n.passengers[0],o="function"==typeof r?r(e):n.passengers;return t.concat(o)}),[])}(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return e?n[0]:this.slim&&!r?t():t(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),S=0,j=["disabled","name","order","slim","slotProps","tag","to"],_=["multiple","transition"],x=o.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(S++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!=typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(y.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=y.targets[e.name];else{var n=e.append;if(n){var r="string"==typeof n?n:"DIV",o=document.createElement(r);t.appendChild(o),t=o}var l=f(this.$props,_);l.slim=this.targetSlim,l.tag=this.targetTag,l.slotProps=this.targetSlotProps,l.name=this.to,this.portalTarget=new k({el:t,parent:this.$parent||this,propsData:l})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=f(this.$props,j);return t(O,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var content=this.$scopedSlots.manual({to:this.to});return Array.isArray(content)&&(content=content[0]),content||t()}});var T={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",O),t.component(e.portalTargetName||"PortalTarget",k),t.component(e.MountingPortalName||"MountingPortal",x)}};e.default=T,e.Portal=O,e.PortalTarget=k,e.MountingPortal=x,e.Wormhole=y},69:function(t,e,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,l=r(),c=l.default;void 0===c&&(c=[]);var d=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||d)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||d):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=r},7:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=function(){return(r=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)},o=/-(\w)/g,l=/:(.*)/,c=/;(?![^(]*\))/g;function d(t,e){return e?e.toUpperCase():""}function s(t){for(var s,a={},e=0,n=t.split(c);e<n.length;e++){var r=n[e].split(l),i=r[0],f=r[1];(i=i.trim())&&("string"==typeof f&&(f=f.trim()),a[(s=i,s.replace(o,d))]=f)}return a}function a(){for(var t,e,a={},n=arguments.length;n--;)for(var o=0,l=Object.keys(arguments[n]);o<l.length;o++)switch(t=l[o]){case"class":case"style":case"directives":if(Array.isArray(a[t])||(a[t]=[]),"style"===t){var i=void 0;i=Array.isArray(arguments[n].style)?arguments[n].style:[arguments[n].style];for(var c=0;c<i.length;c++){var d=i[c];"string"==typeof d&&(i[c]=s(d))}arguments[n].style=i}a[t]=a[t].concat(arguments[n][t]);break;case"staticClass":if(!arguments[n][t])break;void 0===a[t]&&(a[t]=""),a[t]&&(a[t]+=" "),a[t]+=arguments[n][t].trim();break;case"on":case"nativeOn":a[t]||(a[t]={});for(var p=0,f=Object.keys(arguments[n][t]||{});p<f.length;p++)e=f[p],a[t][e]?a[t][e]=[].concat(a[t][e],arguments[n][t][e]):a[t][e]=arguments[n][t][e];break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":a[t]||(a[t]={}),a[t]=r({},arguments[n][t],a[t]);break;case"slot":case"key":case"ref":case"tag":case"show":case"keepAlive":default:a[t]||(a[t]=arguments[n][t])}return a}},8:function(t,e,n){"use strict";n.d(e,"b",(function(){return v})),n.d(e,"e",(function(){return m})),n.d(e,"d",(function(){return y})),n.d(e,"i",(function(){return w})),n.d(e,"a",(function(){return O})),n.d(e,"f",(function(){return k})),n.d(e,"h",(function(){return S})),n.d(e,"g",(function(){return j})),n.d(e,"c",(function(){return _}));n(56),n(57),n(9),n(22);var r=n(1),o=n(5),l=n(4),c=/^\s+/,d=/[-/\\^$*+?.()|[\]{}]/g,f=/-(\w)/g,h=/\B([A-Z])/g,v=function(t){return t.replace(h,"-$1").toLowerCase()},m=function(t){return(t=v(t).replace(f,(function(t,e){return e?e.toUpperCase():""}))).charAt(0).toUpperCase()+t.slice(1)},y=function(t){return(t=Object(r.j)(t)?t.trim():String(t)).charAt(0).toLowerCase()+t.slice(1)},w=function(t){return(t=Object(r.j)(t)?t.trim():String(t)).charAt(0).toUpperCase()+t.slice(1)},O=function(t){return t.replace(d,"\\$&")},k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Object(r.l)(t)?"":Object(o.d)(t)||Object(l.k)(t)&&t.toString===Object.prototype.toString?JSON.stringify(t,null,e):String(t)},S=function(t){return k(t).replace(c,"")},j=function(t){return k(t).trim()},_=function(t){return k(t).toLowerCase()}},80:function(t,e,n){"use strict";(function(t){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],i=0;i<t.length;i+=1)if(n&&navigator.userAgent.indexOf(t[i])>=0)return 1;return 0}();var o=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),r))}};function l(t){return t&&"[object Function]"==={}.toString.call(t)}function c(element,t){if(1!==element.nodeType)return[];var e=element.ownerDocument.defaultView.getComputedStyle(element,null);return t?e[t]:e}function d(element){return"HTML"===element.nodeName?element:element.parentNode||element.host}function f(element){if(!element)return document.body;switch(element.nodeName){case"HTML":case"BODY":return element.ownerDocument.body;case"#document":return element.body}var t=c(element),e=t.overflow,n=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(e+r+n)?element:f(d(element))}function h(t){return t&&t.referenceNode?t.referenceNode:t}var v=n&&!(!window.MSInputMethodContext||!document.documentMode),m=n&&/MSIE 10/.test(navigator.userAgent);function y(t){return 11===t?v:10===t?m:v||m}function w(element){if(!element)return document.documentElement;for(var t=y(10)?document.body:null,e=element.offsetParent||null;e===t&&element.nextElementSibling;)e=(element=element.nextElementSibling).offsetParent;var n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(e.nodeName)&&"static"===c(e,"position")?w(e):e:element?element.ownerDocument.documentElement:document.documentElement}function O(t){return null!==t.parentNode?O(t.parentNode):t}function k(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,o=n?e:t,l=document.createRange();l.setStart(r,0),l.setEnd(o,0);var element,c,d=l.commonAncestorContainer;if(t!==d&&e!==d||r.contains(o))return"BODY"===(c=(element=d).nodeName)||"HTML"!==c&&w(element.firstElementChild)!==element?w(d):d;var f=O(t);return f.host?k(f.host,e):k(t,O(e).host)}function S(element){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",e="top"===t?"scrollTop":"scrollLeft",n=element.nodeName;if("BODY"===n||"HTML"===n){var html=element.ownerDocument.documentElement,r=element.ownerDocument.scrollingElement||html;return r[e]}return element[e]}function j(rect,element){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e=S(element,"top"),n=S(element,"left"),r=t?-1:1;return rect.top+=e*r,rect.bottom+=e*r,rect.left+=n*r,rect.right+=n*r,rect}function _(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function x(t,body,html,e){return Math.max(body["offset"+t],body["scroll"+t],html["client"+t],html["offset"+t],html["scroll"+t],y(10)?parseInt(html["offset"+t])+parseInt(e["margin"+("Height"===t?"Top":"Left")])+parseInt(e["margin"+("Height"===t?"Bottom":"Right")]):0)}function T(t){var body=t.body,html=t.documentElement,e=y(10)&&getComputedStyle(html);return{height:x("Height",body,html,e),width:x("Width",body,html,e)}}var B=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},C=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),P=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},M=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var e in source)Object.prototype.hasOwnProperty.call(source,e)&&(t[e]=source[e])}return t};function E(t){return M({},t,{right:t.left+t.width,bottom:t.top+t.height})}function A(element){var rect={};try{if(y(10)){rect=element.getBoundingClientRect();var t=S(element,"top"),e=S(element,"left");rect.top+=t,rect.left+=e,rect.bottom+=t,rect.right+=e}else rect=element.getBoundingClientRect()}catch(t){}var n={left:rect.left,top:rect.top,width:rect.right-rect.left,height:rect.bottom-rect.top},r="HTML"===element.nodeName?T(element.ownerDocument):{},o=r.width||element.clientWidth||n.width,l=r.height||element.clientHeight||n.height,d=element.offsetWidth-o,f=element.offsetHeight-l;if(d||f){var h=c(element);d-=_(h,"x"),f-=_(h,"y"),n.width-=d,n.height-=f}return E(n)}function z(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=y(10),o="HTML"===e.nodeName,l=A(t),d=A(e),h=f(t),v=c(e),m=parseFloat(v.borderTopWidth),w=parseFloat(v.borderLeftWidth);n&&o&&(d.top=Math.max(d.top,0),d.left=Math.max(d.left,0));var O=E({top:l.top-d.top-m,left:l.left-d.left-w,width:l.width,height:l.height});if(O.marginTop=0,O.marginLeft=0,!r&&o){var k=parseFloat(v.marginTop),S=parseFloat(v.marginLeft);O.top-=m-k,O.bottom-=m-k,O.left-=w-S,O.right-=w-S,O.marginTop=k,O.marginLeft=S}return(r&&!n?e.contains(h):e===h&&"BODY"!==h.nodeName)&&(O=j(O,e)),O}function D(element){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],html=element.ownerDocument.documentElement,e=z(element,html),n=Math.max(html.clientWidth,window.innerWidth||0),r=Math.max(html.clientHeight,window.innerHeight||0),o=t?0:S(html),l=t?0:S(html,"left"),c={top:o-e.top+e.marginTop,left:l-e.left+e.marginLeft,width:n,height:r};return E(c)}function L(element){var t=element.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===c(element,"position"))return!0;var e=d(element);return!!e&&L(e)}function I(element){if(!element||!element.parentElement||y())return document.documentElement;for(var t=element.parentElement;t&&"none"===c(t,"transform");)t=t.parentElement;return t||document.documentElement}function N(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l={top:0,left:0},c=o?I(t):k(t,h(e));if("viewport"===r)l=D(c,o);else{var v=void 0;"scrollParent"===r?"BODY"===(v=f(d(e))).nodeName&&(v=t.ownerDocument.documentElement):v="window"===r?t.ownerDocument.documentElement:r;var m=z(v,c,o);if("HTML"!==v.nodeName||L(c))l=m;else{var y=T(t.ownerDocument),w=y.height,O=y.width;l.top+=m.top-m.marginTop,l.bottom=w+m.top,l.left+=m.left-m.marginLeft,l.right=O+m.left}}var S="number"==typeof(n=n||0);return l.left+=S?n:n.left||0,l.top+=S?n:n.top||0,l.right-=S?n:n.right||0,l.bottom-=S?n:n.bottom||0,l}function H(t){return t.width*t.height}function V(t,e,n,r,o){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var c=N(n,r,l,o),d={top:{width:c.width,height:e.top-c.top},right:{width:c.right-e.right,height:c.height},bottom:{width:c.width,height:c.bottom-e.bottom},left:{width:e.left-c.left,height:c.height}},f=Object.keys(d).map((function(t){return M({key:t},d[t],{area:H(d[t])})})).sort((function(a,b){return b.area-a.area})),h=f.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),v=h.length>0?h[0].key:f[0].key,m=t.split("-")[1];return v+(m?"-"+m:"")}function F(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?I(e):k(e,h(n));return z(n,o,r)}function R(element){var t=element.ownerDocument.defaultView.getComputedStyle(element),e=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),n=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:element.offsetWidth+n,height:element.offsetHeight+e}}function $(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function U(t,e,n){n=n.split("-")[0];var r=R(t),o={width:r.width,height:r.height},l=-1!==["right","left"].indexOf(n),c=l?"top":"left",d=l?"left":"top",f=l?"height":"width",h=l?"width":"height";return o[c]=e[c]+e[f]/2-r[f]/2,o[d]=n===d?e[d]-r[h]:e[$(d)],o}function Y(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function W(t,data,e){return(void 0===e?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=Y(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",e))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var e=t.function||t.fn;t.enabled&&l(e)&&(data.offsets.popper=E(data.offsets.popper),data.offsets.reference=E(data.offsets.reference),data=e(data,t))})),data}function G(){if(!this.state.isDestroyed){var data={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};data.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),data.placement=V(this.options.placement,data.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),data.originalPlacement=data.placement,data.positionFixed=this.options.positionFixed,data.offsets.popper=U(this.popper,data.offsets.reference,data.placement),data.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",data=W(this.modifiers,data),this.state.isCreated?this.options.onUpdate(data):(this.state.isCreated=!0,this.options.onCreate(data))}}function K(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function Z(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==document.body.style[o])return o}return null}function X(){return this.state.isDestroyed=!0,K(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Z("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function J(element){var t=element.ownerDocument;return t?t.defaultView:window}function Q(t,e,n,r){n.updateBound=r,J(t).addEventListener("resize",n.updateBound,{passive:!0});var o=f(t);return function t(e,n,r,o){var l="BODY"===e.nodeName,c=l?e.ownerDocument.defaultView:e;c.addEventListener(n,r,{passive:!0}),l||t(f(c.parentNode),n,r,o),o.push(c)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function tt(){this.state.eventsEnabled||(this.state=Q(this.reference,this.options,this.state,this.scheduleUpdate))}function et(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,J(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function nt(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function ot(element,t){Object.keys(t).forEach((function(e){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&nt(t[e])&&(n="px"),element.style[e]=t[e]+n}))}var it=n&&/Firefox/i.test(navigator.userAgent);function at(t,e,n){var r=Y(t,(function(t){return t.name===e})),o=!!r&&t.some((function(t){return t.name===n&&t.enabled&&t.order<r.order}));if(!o){var l="`"+e+"`",c="`"+n+"`";console.warn(c+" modifier is required by "+l+" modifier in order to work, be sure to include it before "+l+"!")}return o}var lt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],st=lt.slice(3);function ct(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=st.indexOf(t),r=st.slice(n+1).concat(st.slice(0,n));return e?r.reverse():r}var ut="flip",ft="clockwise",ht="counterclockwise";function pt(t,e,n,r){var o=[0,0],l=-1!==["right","left"].indexOf(r),c=t.split(/(\+|\-)/).map((function(t){return t.trim()})),d=c.indexOf(Y(c,(function(t){return-1!==t.search(/,|\s/)})));c[d]&&-1===c[d].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var f=/\s*,\s*|\s+/,h=-1!==d?[c.slice(0,d).concat([c[d].split(f)[0]]),[c[d].split(f)[1]].concat(c.slice(d+1))]:[c];return(h=h.map((function(t,r){var o=(1===r?!l:l)?"height":"width",c=!1;return t.reduce((function(a,b){return""===a[a.length-1]&&-1!==["+","-"].indexOf(b)?(a[a.length-1]=b,c=!0,a):c?(a[a.length-1]+=b,c=!1,a):a.concat(b)}),[]).map((function(t){return function(t,e,n,r){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),l=+o[1],c=o[2];if(!l)return t;if(0===c.indexOf("%")){var element=void 0;switch(c){case"%p":element=n;break;case"%":case"%r":default:element=r}return E(element)[e]/100*l}if("vh"===c||"vw"===c){return("vh"===c?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*l}return l}(t,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,r){nt(n)&&(o[e]+=n*("-"===t[r-1]?-1:1))}))})),o}var bt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(data){var t=data.placement,e=t.split("-")[0],n=t.split("-")[1];if(n){var r=data.offsets,o=r.reference,l=r.popper,c=-1!==["bottom","top"].indexOf(e),d=c?"left":"top",f=c?"width":"height",h={start:P({},d,o[d]),end:P({},d,o[d]+o[f]-l[f])};data.offsets.popper=M({},l,h[n])}return data}},offset:{order:200,enabled:!0,fn:function(data,t){var e=t.offset,n=data.placement,r=data.offsets,o=r.popper,l=r.reference,c=n.split("-")[0],d=void 0;return d=nt(+e)?[+e,0]:pt(e,o,l,c),"left"===c?(o.top+=d[0],o.left-=d[1]):"right"===c?(o.top+=d[0],o.left+=d[1]):"top"===c?(o.left+=d[0],o.top-=d[1]):"bottom"===c&&(o.left+=d[0],o.top+=d[1]),data.popper=o,data},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(data,t){var e=t.boundariesElement||w(data.instance.popper);data.instance.reference===e&&(e=w(e));var n=Z("transform"),r=data.instance.popper.style,o=r.top,l=r.left,c=r[n];r.top="",r.left="",r[n]="";var d=N(data.instance.popper,data.instance.reference,t.padding,e,data.positionFixed);r.top=o,r.left=l,r[n]=c,t.boundaries=d;var f=t.priority,h=data.offsets.popper,v={primary:function(e){var n=h[e];return h[e]<d[e]&&!t.escapeWithReference&&(n=Math.max(h[e],d[e])),P({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=h[n];return h[e]>d[e]&&!t.escapeWithReference&&(r=Math.min(h[n],d[e]-("right"===e?h.width:h.height))),P({},n,r)}};return f.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";h=M({},h,v[e](t))})),data.offsets.popper=h,data},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(data){var t=data.offsets,e=t.popper,n=t.reference,r=data.placement.split("-")[0],o=Math.floor,l=-1!==["top","bottom"].indexOf(r),c=l?"right":"bottom",d=l?"left":"top",f=l?"width":"height";return e[c]<o(n[d])&&(data.offsets.popper[d]=o(n[d])-e[f]),e[d]>o(n[c])&&(data.offsets.popper[d]=o(n[c])),data}},arrow:{order:500,enabled:!0,fn:function(data,t){var e;if(!at(data.instance.modifiers,"arrow","keepTogether"))return data;var n=t.element;if("string"==typeof n){if(!(n=data.instance.popper.querySelector(n)))return data}else if(!data.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),data;var r=data.placement.split("-")[0],o=data.offsets,l=o.popper,d=o.reference,f=-1!==["left","right"].indexOf(r),h=f?"height":"width",v=f?"Top":"Left",m=v.toLowerCase(),y=f?"left":"top",w=f?"bottom":"right",O=R(n)[h];d[w]-O<l[m]&&(data.offsets.popper[m]-=l[m]-(d[w]-O)),d[m]+O>l[w]&&(data.offsets.popper[m]+=d[m]+O-l[w]),data.offsets.popper=E(data.offsets.popper);var k=d[m]+d[h]/2-O/2,S=c(data.instance.popper),j=parseFloat(S["margin"+v]),_=parseFloat(S["border"+v+"Width"]),x=k-data.offsets.popper[m]-j-_;return x=Math.max(Math.min(l[h]-O,x),0),data.arrowElement=n,data.offsets.arrow=(P(e={},m,Math.round(x)),P(e,y,""),e),data},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(data,t){if(K(data.instance.modifiers,"inner"))return data;if(data.flipped&&data.placement===data.originalPlacement)return data;var e=N(data.instance.popper,data.instance.reference,t.padding,t.boundariesElement,data.positionFixed),n=data.placement.split("-")[0],r=$(n),o=data.placement.split("-")[1]||"",l=[];switch(t.behavior){case ut:l=[n,r];break;case ft:l=ct(n);break;case ht:l=ct(n,!0);break;default:l=t.behavior}return l.forEach((function(c,d){if(n!==c||l.length===d+1)return data;n=data.placement.split("-")[0],r=$(n);var f=data.offsets.popper,h=data.offsets.reference,v=Math.floor,m="left"===n&&v(f.right)>v(h.left)||"right"===n&&v(f.left)<v(h.right)||"top"===n&&v(f.bottom)>v(h.top)||"bottom"===n&&v(f.top)<v(h.bottom),y=v(f.left)<v(e.left),w=v(f.right)>v(e.right),O=v(f.top)<v(e.top),k=v(f.bottom)>v(e.bottom),S="left"===n&&y||"right"===n&&w||"top"===n&&O||"bottom"===n&&k,j=-1!==["top","bottom"].indexOf(n),_=!!t.flipVariations&&(j&&"start"===o&&y||j&&"end"===o&&w||!j&&"start"===o&&O||!j&&"end"===o&&k),x=!!t.flipVariationsByContent&&(j&&"start"===o&&w||j&&"end"===o&&y||!j&&"start"===o&&k||!j&&"end"===o&&O),T=_||x;(m||S||T)&&(data.flipped=!0,(m||S)&&(n=l[d+1]),T&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),data.placement=n+(o?"-"+o:""),data.offsets.popper=M({},data.offsets.popper,U(data.instance.popper,data.offsets.reference,data.placement)),data=W(data.instance.modifiers,data,"flip"))})),data},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(data){var t=data.placement,e=t.split("-")[0],n=data.offsets,r=n.popper,o=n.reference,l=-1!==["left","right"].indexOf(e),c=-1===["top","left"].indexOf(e);return r[l?"left":"top"]=o[e]-(c?r[l?"width":"height"]:0),data.placement=$(t),data.offsets.popper=E(r),data}},hide:{order:800,enabled:!0,fn:function(data){if(!at(data.instance.modifiers,"hide","preventOverflow"))return data;var t=data.offsets.reference,e=Y(data.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(t.bottom<e.top||t.left>e.right||t.top>e.bottom||t.right<e.left){if(!0===data.hide)return data;data.hide=!0,data.attributes["x-out-of-boundaries"]=""}else{if(!1===data.hide)return data;data.hide=!1,data.attributes["x-out-of-boundaries"]=!1}return data}},computeStyle:{order:850,enabled:!0,fn:function(data,t){var e=t.x,n=t.y,r=data.offsets.popper,o=Y(data.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var l=void 0!==o?o:t.gpuAcceleration,c=w(data.instance.popper),d=A(c),f={position:r.position},h=function(data,t){var e=data.offsets,n=e.popper,r=e.reference,o=Math.round,l=Math.floor,c=function(t){return t},d=o(r.width),f=o(n.width),h=-1!==["left","right"].indexOf(data.placement),v=-1!==data.placement.indexOf("-"),m=t?h||v||d%2==f%2?o:l:c,y=t?o:c;return{left:m(d%2==1&&f%2==1&&!v&&t?n.left-1:n.left),top:y(n.top),bottom:y(n.bottom),right:m(n.right)}}(data,window.devicePixelRatio<2||!it),v="bottom"===e?"top":"bottom",m="right"===n?"left":"right",y=Z("transform"),O=void 0,k=void 0;if(k="bottom"===v?"HTML"===c.nodeName?-c.clientHeight+h.bottom:-d.height+h.bottom:h.top,O="right"===m?"HTML"===c.nodeName?-c.clientWidth+h.right:-d.width+h.right:h.left,l&&y)f[y]="translate3d("+O+"px, "+k+"px, 0)",f[v]=0,f[m]=0,f.willChange="transform";else{var S="bottom"===v?-1:1,j="right"===m?-1:1;f[v]=k*S,f[m]=O*j,f.willChange=v+", "+m}var _={"x-placement":data.placement};return data.attributes=M({},_,data.attributes),data.styles=M({},f,data.styles),data.arrowStyles=M({},data.offsets.arrow,data.arrowStyles),data},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(data){var element,t;return ot(data.instance.popper,data.styles),element=data.instance.popper,t=data.attributes,Object.keys(t).forEach((function(e){!1!==t[e]?element.setAttribute(e,t[e]):element.removeAttribute(e)})),data.arrowElement&&Object.keys(data.arrowStyles).length&&ot(data.arrowElement,data.arrowStyles),data},onLoad:function(t,e,n,r,o){var l=F(o,e,t,n.positionFixed),c=V(n.placement,l,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",c),ot(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},vt=function(){function t(e,n){var r=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};B(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=M({},t.Defaults,c),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(M({},t.Defaults.modifiers,c.modifiers)).forEach((function(e){r.options.modifiers[e]=M({},t.Defaults.modifiers[e]||{},c.modifiers?c.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return M({name:t},r.options.modifiers[t])})).sort((function(a,b){return a.order-b.order})),this.modifiers.forEach((function(t){t.enabled&&l(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var d=this.options.eventsEnabled;d&&this.enableEventListeners(),this.state.eventsEnabled=d}return C(t,[{key:"update",value:function(){return G.call(this)}},{key:"destroy",value:function(){return X.call(this)}},{key:"enableEventListeners",value:function(){return tt.call(this)}},{key:"disableEventListeners",value:function(){return et.call(this)}}]),t}();vt.Utils=("undefined"!=typeof window?window:t).PopperUtils,vt.placements=lt,vt.Defaults=bt,e.a=vt}).call(this,n(45))}}]);
|
import shlex
import subprocess
import time
from helpers.AsynchronousFileReaderHelper import AsynchronousFileReader
from multiprocessing import Queue
class CommandExecutionHelper:
def __init__(self, state=None):
self.state = state
def consume(self, command):
'''
Consume standard output and standard error of a
subprocess asynchronously without risk on deadlocking.
'''
args = shlex.split(command)
# Launch the command as subprocess.
process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# Launch the asynchronous readers of the process' stdout and stderr.
stdout_queue = Queue()
stdout_reader = AsynchronousFileReader(process.stdout, stdout_queue)
stdout_reader.start()
stderr_queue = Queue()
stderr_reader = AsynchronousFileReader(process.stderr, stderr_queue)
stderr_reader.start()
events = []
# Check the queues if we received some output (until there is nothing more to get).
while not stdout_reader.eof() or not stderr_reader.eof():
# Show what we received from standard output.
while not stdout_queue.empty():
line = stdout_queue.get()
if line.find('aaaa'):
print(line)
# return line
# output = output_management(line)
# if output is not None:
# events.append(output_management(line))
# print 'Received line on standard output: ' + repr(line)
# json_line = json.loads(line)
# for key in json_line:
# if key == "event":
# events.append(json_line)
# Show what we received from standard error.
while not stderr_queue.empty():
line = stderr_queue.get()
print('Received line on standard error: ' + repr(line))
# Sleep a bit before asking the readers again.
time.sleep(.1)
# Let's be tidy and join the threads we've started.
stdout_reader.join()
stderr_reader.join()
# Close subprocess' file descriptors.
process.stdout.close()
process.stderr.close()
return events
def execute(self, command):
task = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
data = task.stdout.read()
# assert task.wait() == 0
return data
|
from wot.directory.db import get_db
from wot.directory.services import DirectoryService
from flask import Blueprint, jsonify, request
from requests import HTTPError
bp = Blueprint('directory', __name__)
@bp.route('/things/', methods=['GET'])
def get_things():
""" returns all things known to the system """
return jsonify(DirectoryService(get_db()).get_things())
@bp.route('/things/<thing_id>', methods=['GET'])
def get_thing(thing_id):
thing = None
try:
thing = DirectoryService(get_db()).get_thing(thing_id)
except IndexError as e:
return (jsonify({'status': 'error', 'message': str(e)}), 404, None)
return jsonify(thing)
@bp.route('/sources/', methods=['POST'])
def new_sources():
"""
Creates new sources. This takes the uri where descriptions can be found
"""
failed = list()
for source in request.get_json():
try:
DirectoryService(get_db()).new_source(source)
except HTTPError:
failed.append(source)
if len(failed) > 0:
return (jsonify({
'status': 'warning',
'message': 'not all created ({})'.format(','.join(failed)),
}), 201, None)
return (jsonify({'status': 'success'}), 201, None)
@bp.route('/sources/<source_id>', methods=['DELETE'])
def delete_source(source_id):
DirectoryService(get_db()).delete_source(source_id)
return (jsonify({'status': 'deleted'}), 204, None)
@bp.route('/sources/', methods=['GET'])
def get_sources():
"""
Lists all sources and their URIs
"""
return jsonify(DirectoryService(get_db()).get_sources())
@bp.route('/sources/sync', methods=['POST'])
def sync():
"""
Force sync of all sources
"""
updated = DirectoryService(get_db()).sync()
return jsonify({
'status': 'success',
'message': '{} updated'.format(updated),
})
|
// Libraries
const record = require('node-record-lpcm16')
const request = require('request')
// Configuration
const config = require('../../config/config')
exports.parseResult = function (err, resp, body) {
console.error("Broadcasting is not supported for this API")
console.log(body)
}
const startRecording = () => {
record.start().pipe(request.post({
'url' : 'https://api.wit.ai/speech?client=chromium&lang=en-us&output=json',
'headers' : {
'Accept' : 'application/vnd.wit.20160202+json',
'Authorization' : 'Bearer ' + config.witToken,
'Content-Type' : 'audio/wav'
}
}, exports.parseResult))
}
const stopRecording = () => {
record.stop()
}
module.exports.start = startRecording
module.exports.stop = stopRecording
|
/**
* Private ModalManager helper
* Handles controlling modal stacking zIndexes and body adjustments/classes
*/
import Vue from '../../../utils/vue';
import { getAttr, hasAttr, removeAttr, setAttr, addClass, removeClass, getBCR, getCS, selectAll, requestAF } from '../../../utils/dom';
import { isBrowser } from '../../../utils/env';
import { isNull } from '../../../utils/inspect'; // --- Constants ---
// Default modal backdrop z-index
var DEFAULT_ZINDEX = 1040; // Selectors for padding/margin adjustments
var Selector = {
FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
STICKY_CONTENT: '.sticky-top',
NAVBAR_TOGGLER: '.navbar-toggler'
}; // @vue/component
var ModalManager =
/*#__PURE__*/
Vue.extend({
data: function data() {
return {
modals: [],
baseZIndex: null,
scrollbarWidth: null,
isBodyOverflowing: false
};
},
computed: {
modalCount: function modalCount() {
return this.modals.length;
},
modalsAreOpen: function modalsAreOpen() {
return this.modalCount > 0;
}
},
watch: {
modalCount: function modalCount(newCount, oldCount) {
if (isBrowser) {
this.getScrollbarWidth();
if (newCount > 0 && oldCount === 0) {
// Transitioning to modal(s) open
this.checkScrollbar();
this.setScrollbar();
addClass(document.body, 'modal-open');
} else if (newCount === 0 && oldCount > 0) {
// Transitioning to modal(s) closed
this.resetScrollbar();
removeClass(document.body, 'modal-open');
}
setAttr(document.body, 'data-modal-open-count', String(newCount));
}
},
modals: function modals(newVal, oldVal) {
var _this = this;
this.checkScrollbar();
requestAF(function () {
_this.updateModals(newVal || []);
});
}
},
methods: {
// Public methods
registerModal: function registerModal(modal) {
var _this2 = this;
// Register the modal if not already registered
if (modal && this.modals.indexOf(modal) === -1) {
// Add modal to modals array
this.modals.push(modal);
modal.$once('hook:beforeDestroy', function () {
_this2.unregisterModal(modal);
});
}
},
unregisterModal: function unregisterModal(modal) {
var index = this.modals.indexOf(modal);
if (index > -1) {
// Remove modal from modals array
this.modals.splice(index, 1); // Reset the modal's data
if (!(modal._isBeingDestroyed || modal._isDestroyed)) {
this.resetModal(modal);
}
}
},
getBaseZIndex: function getBaseZIndex() {
if (isNull(this.baseZIndex) && isBrowser) {
// Create a temporary `div.modal-backdrop` to get computed z-index
var div = document.createElement('div');
div.className = 'modal-backdrop d-none';
div.style.display = 'none';
document.body.appendChild(div);
this.baseZIndex = parseInt(getCS(div).zIndex || DEFAULT_ZINDEX, 10);
document.body.removeChild(div);
}
return this.baseZIndex || DEFAULT_ZINDEX;
},
getScrollbarWidth: function getScrollbarWidth() {
if (isNull(this.scrollbarWidth) && isBrowser) {
// Create a temporary `div.measure-scrollbar` to get computed z-index
var div = document.createElement('div');
div.className = 'modal-scrollbar-measure';
document.body.appendChild(div);
this.scrollbarWidth = getBCR(div).width - div.clientWidth;
document.body.removeChild(div);
}
return this.scrollbarWidth || 0;
},
// Private methods
updateModals: function updateModals(modals) {
var _this3 = this;
var baseZIndex = this.getBaseZIndex();
var scrollbarWidth = this.getScrollbarWidth();
modals.forEach(function (modal, index) {
// We update data values on each modal
modal.zIndex = baseZIndex + index;
modal.scrollbarWidth = scrollbarWidth;
modal.isTop = index === _this3.modals.length - 1;
modal.isBodyOverflowing = _this3.isBodyOverflowing;
});
},
resetModal: function resetModal(modal) {
if (modal) {
modal.zIndex = this.getBaseZIndex();
modal.isTop = true;
modal.isBodyOverflowing = false;
}
},
checkScrollbar: function checkScrollbar() {
// Determine if the body element is overflowing
var _getBCR = getBCR(document.body),
left = _getBCR.left,
right = _getBCR.right;
this.isBodyOverflowing = left + right < window.innerWidth;
},
setScrollbar: function setScrollbar() {
var body = document.body; // Storage place to cache changes to margins and padding
// Note: This assumes the following element types are not added to the
// document after the modal has opened.
body._paddingChangedForModal = body._paddingChangedForModal || [];
body._marginChangedForModal = body._marginChangedForModal || [];
if (this.isBodyOverflowing) {
var scrollbarWidth = this.scrollbarWidth; // Adjust fixed content padding
/* istanbul ignore next: difficult to test in JSDOM */
selectAll(Selector.FIXED_CONTENT).forEach(function (el) {
var actualPadding = el.style.paddingRight;
var calculatedPadding = getCS(el).paddingRight || 0;
setAttr(el, 'data-padding-right', actualPadding);
el.style.paddingRight = "".concat(parseFloat(calculatedPadding) + scrollbarWidth, "px");
body._paddingChangedForModal.push(el);
}); // Adjust sticky content margin
/* istanbul ignore next: difficult to test in JSDOM */
selectAll(Selector.STICKY_CONTENT).forEach(function (el)
/* istanbul ignore next */
{
var actualMargin = el.style.marginRight;
var calculatedMargin = getCS(el).marginRight || 0;
setAttr(el, 'data-margin-right', actualMargin);
el.style.marginRight = "".concat(parseFloat(calculatedMargin) - scrollbarWidth, "px");
body._marginChangedForModal.push(el);
}); // Adjust <b-navbar-toggler> margin
/* istanbul ignore next: difficult to test in JSDOM */
selectAll(Selector.NAVBAR_TOGGLER).forEach(function (el)
/* istanbul ignore next */
{
var actualMargin = el.style.marginRight;
var calculatedMargin = getCS(el).marginRight || 0;
setAttr(el, 'data-margin-right', actualMargin);
el.style.marginRight = "".concat(parseFloat(calculatedMargin) + scrollbarWidth, "px");
body._marginChangedForModal.push(el);
}); // Adjust body padding
var actualPadding = body.style.paddingRight;
var calculatedPadding = getCS(body).paddingRight;
setAttr(body, 'data-padding-right', actualPadding);
body.style.paddingRight = "".concat(parseFloat(calculatedPadding) + scrollbarWidth, "px");
}
},
resetScrollbar: function resetScrollbar() {
var body = document.body;
if (body._paddingChangedForModal) {
// Restore fixed content padding
body._paddingChangedForModal.forEach(function (el) {
/* istanbul ignore next: difficult to test in JSDOM */
if (hasAttr(el, 'data-padding-right')) {
el.style.paddingRight = getAttr(el, 'data-padding-right') || '';
removeAttr(el, 'data-padding-right');
}
});
}
if (body._marginChangedForModal) {
// Restore sticky content and navbar-toggler margin
body._marginChangedForModal.forEach(function (el) {
/* istanbul ignore next: difficult to test in JSDOM */
if (hasAttr(el, 'data-margin-right')) {
el.style.marginRight = getAttr(el, 'data-margin-right') || '';
removeAttr(el, 'data-margin-right');
}
});
}
body._paddingChangedForModal = null;
body._marginChangedForModal = null; // Restore body padding
if (hasAttr(body, 'data-padding-right')) {
body.style.paddingRight = getAttr(body, 'data-padding-right') || '';
removeAttr(body, 'data-padding-right');
}
}
}
}); // Create and export our modal manager instance
export var modalManager = new ModalManager();
|
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitarray
import __builtin__
import show_zoning_enabled_configuration
class brocade_zone(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module brocade-zone - based on the path /brocade_zone_rpc. Each member element of
the container is represented as a class variable - with a specific
YANG type.
"""
__slots__ = ('_pybind_generated_by', '_path_helper', '_yang_name', '_rest_name', '_extmethods', '__show_zoning_enabled_configuration',)
_yang_name = 'brocade-zone'
_rest_name = ''
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
path_helper_ = kwargs.pop("path_helper", None)
if path_helper_ is False:
self._path_helper = False
elif path_helper_ is not None and isinstance(path_helper_, xpathhelper.YANGPathHelper):
self._path_helper = path_helper_
elif hasattr(self, "_parent"):
path_helper_ = getattr(self._parent, "_path_helper", False)
self._path_helper = path_helper_
else:
self._path_helper = False
extmethods = kwargs.pop("extmethods", None)
if extmethods is False:
self._extmethods = False
elif extmethods is not None and isinstance(extmethods, dict):
self._extmethods = extmethods
elif hasattr(self, "_parent"):
extmethods = getattr(self._parent, "_extmethods", None)
self._extmethods = extmethods
else:
self._extmethods = False
self.__show_zoning_enabled_configuration = YANGDynClass(base=show_zoning_enabled_configuration.show_zoning_enabled_configuration, is_leaf=True, yang_name="show-zoning-enabled-configuration", rest_name="show-zoning-enabled-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, extensions={u'tailf-common': {u'info': u'Display the Zoning Enabled-Configuration', u'hidden': u'rpccmd', u'actionpoint': u'show_zoning_configuration_db'}}, namespace='urn:brocade.com:mgmt:brocade-zone', defining_module='brocade-zone', yang_type='rpc', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return [u'brocade_zone_rpc']
def _rest_path(self):
if hasattr(self, "_parent"):
if self._rest_name:
return self._parent._rest_path()+[self._rest_name]
else:
return self._parent._rest_path()
else:
return []
def _get_show_zoning_enabled_configuration(self):
"""
Getter method for show_zoning_enabled_configuration, mapped from YANG variable /brocade_zone_rpc/show_zoning_enabled_configuration (rpc)
YANG Description: This will display the Zoning Enabled-Configuration
database.
"""
return self.__show_zoning_enabled_configuration
def _set_show_zoning_enabled_configuration(self, v, load=False):
"""
Setter method for show_zoning_enabled_configuration, mapped from YANG variable /brocade_zone_rpc/show_zoning_enabled_configuration (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_zoning_enabled_configuration is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_show_zoning_enabled_configuration() directly.
YANG Description: This will display the Zoning Enabled-Configuration
database.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=show_zoning_enabled_configuration.show_zoning_enabled_configuration, is_leaf=True, yang_name="show-zoning-enabled-configuration", rest_name="show-zoning-enabled-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, extensions={u'tailf-common': {u'info': u'Display the Zoning Enabled-Configuration', u'hidden': u'rpccmd', u'actionpoint': u'show_zoning_configuration_db'}}, namespace='urn:brocade.com:mgmt:brocade-zone', defining_module='brocade-zone', yang_type='rpc', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """show_zoning_enabled_configuration must be of a type compatible with rpc""",
'defined-type': "rpc",
'generated-type': """YANGDynClass(base=show_zoning_enabled_configuration.show_zoning_enabled_configuration, is_leaf=True, yang_name="show-zoning-enabled-configuration", rest_name="show-zoning-enabled-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, extensions={u'tailf-common': {u'info': u'Display the Zoning Enabled-Configuration', u'hidden': u'rpccmd', u'actionpoint': u'show_zoning_configuration_db'}}, namespace='urn:brocade.com:mgmt:brocade-zone', defining_module='brocade-zone', yang_type='rpc', is_config=True)""",
})
self.__show_zoning_enabled_configuration = t
if hasattr(self, '_set'):
self._set()
def _unset_show_zoning_enabled_configuration(self):
self.__show_zoning_enabled_configuration = YANGDynClass(base=show_zoning_enabled_configuration.show_zoning_enabled_configuration, is_leaf=True, yang_name="show-zoning-enabled-configuration", rest_name="show-zoning-enabled-configuration", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, extensions={u'tailf-common': {u'info': u'Display the Zoning Enabled-Configuration', u'hidden': u'rpccmd', u'actionpoint': u'show_zoning_configuration_db'}}, namespace='urn:brocade.com:mgmt:brocade-zone', defining_module='brocade-zone', yang_type='rpc', is_config=True)
show_zoning_enabled_configuration = __builtin__.property(_get_show_zoning_enabled_configuration, _set_show_zoning_enabled_configuration)
_pyangbind_elements = {'show_zoning_enabled_configuration': show_zoning_enabled_configuration, }
|
import { Component } from 'react'
import { MDXProvider } from '@mdx-js/tag'
import { withRouter } from 'next/router'
import Link from 'next/link'
import * as bodyLocker from '~/new-components/utils/body-locker'
import changeHash from '~/new-components/utils/change-hash'
import components from '~/new-components/mdx-components'
import Content from '~/new-components/layout/content'
import Context from '~/new-components/docs-page/context'
import DocsBuilder from '~/new-components/docs-builder'
import DocsIndex from '~/new-components/docs-index'
import Head from '~/new-components/layout/head'
import Header from '~/new-components/header'
import Main from '~/new-components/layout/main'
import Page from '~/new-components/layout/page'
import scrollToElement from '~/new-components/utils/scroll-to-element'
import Select from '~/components/select'
import Sidebar from '~/new-components/layout/sidebar'
import ToggleGroup, { ToggleItem } from '~/new-components/toggle-group'
import withPermalink from '~/new-components/docs-page/docs/with-permalink'
import Entry from './entry'
import Section from './section'
import SubEntry from './sub-entry'
import getFragmentById from './get-fragment-by-id'
import getSlugsForId from './get-slugs-for-id'
import getHref from './get-href'
import toc from '~/lib/data/docs.js'
class DocPage extends Component {
state = {
activeId: null,
navigationActive: false,
version: this.props.router.asPath.split(/(v[0-9])/)[1]
}
componentDidUpdate(prevProps, prevState) {
if (this.state.activeId !== prevState.activeId) {
changeHash(getFragmentById(this.state.activeId))
}
}
getActiveItem = () => {
return getSlugsForId(this.state.activeId)
}
handleVersionChange = event => {
const href = `/docs/${event.target.value}`
this.props.router.push(href)
this.handleIndexClick()
}
handleIndexClick = () => {
if (this.state.navigationActive) {
bodyLocker.unlock()
this.setState({
navigationActive: false
})
}
}
handleSidebarRef = node => {
this.sidebarNode = node
}
handleEntryActive = entryNode => {
scrollToElement(this.sidebarNode, entryNode)
}
handleSectionActive = sectionNode => {
if (!getSlugsForId(this.state.activeId).entry) {
scrollToElement(this.sidebarNode, sectionNode)
}
}
handleIntersect = activeId => {
if (this.state.activeId !== activeId) {
this.setState({ activeId })
}
}
handleToggleNavigation = () => {
this.setState(({ navigationActive }) => {
if (navigationActive) {
bodyLocker.unlock()
} else {
bodyLocker.lock()
}
return {
navigationActive: !navigationActive
}
})
}
render() {
const { children, currentTeamSlug, router, user } = this.props
const { navigationActive, version } = this.state
return (
<MDXProvider
components={{
...components,
h1: withPermalink(components.h1),
h2: withPermalink(components.h2),
h3: withPermalink(components.h3),
h4: withPermalink(components.h4),
docsSubentry: SubEntry,
docsSection: Section,
docsEntry: Entry
}}
>
<Page>
<Head
description="A comprehensive guide to using the Now API and gaining control over the Now platform"
title={`Now API Documentation`}
titlePrefix=""
titleSuffix=" - ZEIT"
/>
<Header
currentTeamSlug={currentTeamSlug}
onToggleNavigation={this.handleToggleNavigation}
user={user}
/>
<DocsBuilder docs={children}>
{({ structure }) => (
<Main>
<Sidebar
active={navigationActive}
innerRef={this.handleSidebarRef}
>
<div className="toggle-group-wrapper">
<ToggleGroup>
<ToggleItem active={router.pathname.startsWith('/docs/v')}>
<Link prefetch href="/docs">
<a onClick={this.handleIndexClick}>Docs</a>
</Link>
</ToggleItem>
<ToggleItem active={router.pathname.startsWith('/docs/api')}>
<Link prefetch href="/docs/api">
<a onClick={this.handleIndexClick}>API Reference</a>
</Link>
</ToggleItem>
<ToggleItem active={router.pathname.startsWith('/examples')}>
<Link prefetch href="/examples">
<a onClick={this.handleIndexClick}>Examples</a>
</Link>
</ToggleItem>
</ToggleGroup>
</div>
<h5 className="platform-select-title">
Now Platform Version
</h5>
<Select
width="100%"
defaultValue={version}
onChange={this.handleVersionChange}
>
<option value="v1">v1</option>
<option value="v2">v2 (Latest)</option>
</Select>
<DocsIndex
activeItem={this.getActiveItem(structure)}
getHref={getHref}
onEntryActive={this.handleEntryActive}
onSectionActive={this.handleSectionActive}
onClickLink={this.handleIndexClick}
structure={toc}
/>
</Sidebar>
<Content>
<Context.Provider
value={{
onIntersect: this.handleIntersect
}}
>
{children}
</Context.Provider>
</Content>
</Main>
)}
</DocsBuilder>
<style jsx>{`
ul {
list-style: none;
margin: 0;
padding: 0;
}
.category-wrapper {
padding: 40px 0;
}
.category-wrapper:not(:last-child) {
border-bottom: 1px solid #eaeaea;
}
.platform-select-title {
font-size: 14px;
font-weight: bold;
margin-bottom: 16px;
margin-top: 0;
}
.toggle-group-wrapper {
display: none;
}
@media screen and (max-width: 950px) {
.toggle-group-wrapper {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 40px;
}
}
`}</style>
</Page>
</MDXProvider>
)
}
}
export default withRouter(DocPage)
|