Merge remote-tracking branch 'origin/master'

This commit is contained in:
Lan committed 2025-02-17 20:51:35 +08:00
commit 94c9c30f98
125 files changed
+1045 -7710

No files matched your search

-2
View File
@@ -1,2 +0,0 @@
custom: ["https://afdian.com/a/filecodebox"]
+17 -14
View File
@@ -18,16 +18,15 @@ def create_token(data: dict, expires_in: int = 3600 * 24) -> str:
:param data: 数据负载 :param data: 数据负载
:param expires_in: 过期时间(秒) :param expires_in: 过期时间(秒)
""" """
header = base64.b64encode(json.dumps({"alg": "HS256", "typ": "JWT"}).encode()).decode() header = base64.b64encode(
payload = base64.b64encode(json.dumps({ json.dumps({"alg": "HS256", "typ": "JWT"}).encode()
**data, ).decode()
"exp": int(time.time()) + expires_in payload = base64.b64encode(
}).encode()).decode() json.dumps({**data, "exp": int(time.time()) + expires_in}).encode()
).decode()
signature = hmac.new( signature = hmac.new(
settings.admin_token.encode(), settings.admin_token.encode(), f"{header}.{payload}".encode(), "sha256"
f"{header}.{payload}".encode(),
'sha256'
).digest() ).digest()
signature = base64.b64encode(signature).decode() signature = base64.b64encode(signature).decode()
@@ -41,13 +40,13 @@ def verify_token(token: str) -> dict:
:return: 解码后的数据 :return: 解码后的数据
""" """
try: try:
header_b64, payload_b64, signature_b64 = token.split('.') header_b64, payload_b64, signature_b64 = token.split(".")
# 验证签名 # 验证签名
expected_signature = hmac.new( expected_signature = hmac.new(
settings.admin_token.encode(), settings.admin_token.encode(),
f"{header_b64}.{payload_b64}".encode(), f"{header_b64}.{payload_b64}".encode(),
'sha256' "sha256",
).digest() ).digest()
expected_signature_b64 = base64.b64encode(expected_signature).decode() expected_signature_b64 = base64.b64encode(expected_signature).decode()
@@ -66,7 +65,9 @@ def verify_token(token: str) -> dict:
raise ValueError(f"token验证失败: {str(e)}") raise ValueError(f"token验证失败: {str(e)}")
async def admin_required(authorization: str = Header(default=None), request: Request = None): async def admin_required(
authorization: str = Header(default=None), request: Request = None
):
""" """
验证管理员权限 验证管理员权限
""" """
@@ -81,12 +82,14 @@ async def admin_required(authorization: str = Header(default=None), request: Req
except ValueError as e: except ValueError as e:
is_admin = False is_admin = False
if request.url.path.startswith('/share/'): if request.url.path.startswith("/share/"):
if not settings.openUpload and not is_admin: if not settings.openUpload and not is_admin:
raise HTTPException(status_code=403, detail='本站未开启游客上传,如需上传请先登录后台') raise HTTPException(
status_code=403, detail="本站未开启游客上传,如需上传请先登录后台"
)
else: else:
if not is_admin: if not is_admin:
raise HTTPException(status_code=401, detail='未授权或授权校验失败') raise HTTPException(status_code=401, detail="未授权或授权校验失败")
return is_admin return is_admin
except ValueError as e: except ValueError as e:
raise HTTPException(status_code=401, detail=str(e)) raise HTTPException(status_code=401, detail=str(e))
+1 -1
View File
@@ -7,7 +7,7 @@ class IDData(BaseModel):
class ShareItem(BaseModel): class ShareItem(BaseModel):
expire_value: int expire_value: int
expire_style: str = 'day' expire_style: str = "day"
filename: str filename: str
+39 -22
View File
@@ -19,16 +19,18 @@ class FileService:
await self.file_storage.delete_file(file_code) await self.file_storage.delete_file(file_code)
await file_code.delete() await file_code.delete()
async def list_files(self, page: int, size: int, keyword: str = ''): async def list_files(self, page: int, size: int, keyword: str = ""):
offset = (page - 1) * size offset = (page - 1) * size
files = await FileCodes.filter(prefix__icontains=keyword).limit(size).offset(offset) files = (
await FileCodes.filter(prefix__icontains=keyword).limit(size).offset(offset)
)
total = await FileCodes.filter(prefix__icontains=keyword).count() total = await FileCodes.filter(prefix__icontains=keyword).count()
return files, total return files, total
async def download_file(self, file_id: int): async def download_file(self, file_id: int):
file_code = await FileCodes.filter(id=file_id).first() file_code = await FileCodes.filter(id=file_id).first()
if not file_code: if not file_code:
raise HTTPException(status_code=404, detail='文件不存在') raise HTTPException(status_code=404, detail="文件不存在")
if file_code.text: if file_code.text:
return APIResponse(detail=file_code.text) return APIResponse(detail=file_code.text)
else: else:
@@ -37,10 +39,12 @@ class FileService:
async def share_local_file(self, item): async def share_local_file(self, item):
local_file = LocalFileClass(item.filename) local_file = LocalFileClass(item.filename)
if not await local_file.exists(): if not await local_file.exists():
raise HTTPException(status_code=404, detail='文件不存在') raise HTTPException(status_code=404, detail="文件不存在")
text = await local_file.read() text = await local_file.read()
expired_at, expired_count, used_count, code = await get_expire_info(item.expire_value, item.expire_style) expired_at, expired_count, used_count, code = await get_expire_info(
item.expire_value, item.expire_style
)
path, suffix, prefix, uuid_file_name, save_path = await get_file_path_name(item) path, suffix, prefix, uuid_file_name, save_path = await get_file_path_name(item)
await self.file_storage.save_file(text, save_path) await self.file_storage.save_file(text, save_path)
@@ -58,8 +62,8 @@ class FileService:
) )
return { return {
'code': code, "code": code,
'name': local_file.file, "name": local_file.file,
} }
@@ -68,21 +72,32 @@ class ConfigService:
return settings.items() return settings.items()
async def update_config(self, data: dict): async def update_config(self, data: dict):
admin_token = data.get('admin_token') admin_token = data.get("admin_token")
if admin_token is None or admin_token == '': if admin_token is None or admin_token == "":
raise HTTPException(status_code=400, detail='管理员密码不能为空') raise HTTPException(status_code=400, detail="管理员密码不能为空")
for key, value in data.items(): for key, value in data.items():
if key not in settings.default_config: if key not in settings.default_config:
continue continue
if key in ['errorCount', 'errorMinute', 'max_save_seconds', 'onedrive_proxy', 'openUpload', 'port', 's3_proxy', 'uploadCount', 'uploadMinute', 'uploadSize']: if key in [
"errorCount",
"errorMinute",
"max_save_seconds",
"onedrive_proxy",
"openUpload",
"port",
"s3_proxy",
"uploadCount",
"uploadMinute",
"uploadSize",
]:
data[key] = int(value) data[key] = int(value)
elif key in ['opacity']: elif key in ["opacity"]:
data[key] = float(value) data[key] = float(value)
else: else:
data[key] = value data[key] = value
await KeyValue.filter(key='settings').update(value=data) await KeyValue.filter(key="settings").update(value=data)
for k, v in data.items(): for k, v in data.items():
settings.__setattr__(k, v) settings.__setattr__(k, v)
@@ -90,9 +105,9 @@ class ConfigService:
class LocalFileService: class LocalFileService:
async def list_files(self): async def list_files(self):
files = [] files = []
if not os.path.exists(data_root / 'local'): if not os.path.exists(data_root / "local"):
os.makedirs(data_root / 'local') os.makedirs(data_root / "local")
for file in os.listdir(data_root / 'local'): for file in os.listdir(data_root / "local"):
files.append(LocalFileClass(file)) files.append(LocalFileClass(file))
return files return files
@@ -100,22 +115,24 @@ class LocalFileService:
file = LocalFileClass(filename) file = LocalFileClass(filename)
if await file.exists(): if await file.exists():
await file.delete() await file.delete()
return '删除成功' return "删除成功"
raise HTTPException(status_code=404, detail='文件不存在') raise HTTPException(status_code=404, detail="文件不存在")
class LocalFileClass: class LocalFileClass:
def __init__(self, file): def __init__(self, file):
self.file = file self.file = file
self.path = data_root / 'local' / file self.path = data_root / "local" / file
self.ctime = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(os.path.getctime(self.path))) self.ctime = time.strftime(
"%Y-%m-%d %H:%M:%S", time.localtime(os.path.getctime(self.path))
)
self.size = os.path.getsize(self.path) self.size = os.path.getsize(self.path)
async def read(self): async def read(self):
return open(self.path, 'rb') return open(self.path, "rb")
async def write(self, data): async def write(self, data):
with open(self.path, 'w') as f: with open(self.path, "w") as f:
f.write(data) f.write(data)
async def delete(self): async def delete(self):
+49 -46
View File
@@ -6,17 +6,22 @@ import datetime
from fastapi import APIRouter, Depends, HTTPException from fastapi import APIRouter, Depends, HTTPException
from apps.admin.services import FileService, ConfigService, LocalFileService from apps.admin.services import FileService, ConfigService, LocalFileService
from apps.admin.dependencies import admin_required, get_file_service, get_config_service, get_local_file_service from apps.admin.dependencies import (
admin_required,
get_file_service,
get_config_service,
get_local_file_service,
)
from apps.admin.schemas import IDData, ShareItem, DeleteItem, LoginData from apps.admin.schemas import IDData, ShareItem, DeleteItem, LoginData
from core.response import APIResponse from core.response import APIResponse
from apps.base.models import FileCodes, KeyValue from apps.base.models import FileCodes, KeyValue
from apps.admin.dependencies import create_token from apps.admin.dependencies import create_token
from core.settings import settings from core.settings import settings
admin_api = APIRouter(prefix='/admin', tags=['管理']) admin_api = APIRouter(prefix="/admin", tags=["管理"])
@admin_api.post('/login') @admin_api.post("/login")
async def login(data: LoginData): async def login(data: LoginData):
# 验证管理员密码 # 验证管理员密码
if data.password != settings.admin_token: if data.password != settings.admin_token:
@@ -24,17 +29,14 @@ async def login(data: LoginData):
# 生成包含管理员身份的token # 生成包含管理员身份的token
token = create_token({"is_admin": True}) token = create_token({"is_admin": True})
return APIResponse(detail={ return APIResponse(detail={"token": token, "token_type": "Bearer"})
"token": token,
"token_type": "Bearer"
})
@admin_api.get('/dashboard') @admin_api.get("/dashboard")
async def dashboard(admin: bool = Depends(admin_required)): async def dashboard(admin: bool = Depends(admin_required)):
all_codes = await FileCodes.all() all_codes = await FileCodes.all()
all_size = str(sum([code.size for code in all_codes])) all_size = str(sum([code.size for code in all_codes]))
sys_start = await KeyValue.filter(key='sys_start').first() sys_start = await KeyValue.filter(key="sys_start").first()
# 获取当前日期时间 # 获取当前日期时间
now = datetime.datetime.now() now = datetime.datetime.now()
today_start = now.replace(hour=0, minute=0, second=0, microsecond=0) today_start = now.replace(hour=0, minute=0, second=0, microsecond=0)
@@ -42,104 +44,105 @@ async def dashboard(admin: bool = Depends(admin_required)):
yesterday_end = today_start - datetime.timedelta(microseconds=1) yesterday_end = today_start - datetime.timedelta(microseconds=1)
# 统计昨天一整天的记录数(从昨天0点到23:59:59) # 统计昨天一整天的记录数(从昨天0点到23:59:59)
yesterday_codes = FileCodes.filter( yesterday_codes = FileCodes.filter(
created_at__gte=yesterday_start, created_at__gte=yesterday_start, created_at__lte=yesterday_end
created_at__lte=yesterday_end
) )
# 统计今天到现在的记录数(从今天0点到现在) # 统计今天到现在的记录数(从今天0点到现在)
today_codes = FileCodes.filter( today_codes = FileCodes.filter(created_at__gte=today_start)
created_at__gte=today_start return APIResponse(
detail={
"totalFiles": len(all_codes),
"storageUsed": all_size,
"sysUptime": sys_start.value,
"yesterdayCount": await yesterday_codes.count(),
"yesterdaySize": str(sum([code.size for code in await yesterday_codes])),
"todayCount": await today_codes.count(),
"todaySize": str(sum([code.size for code in await today_codes])),
}
) )
return APIResponse(detail={
'totalFiles': len(all_codes),
'storageUsed': all_size,
'sysUptime': sys_start.value,
'yesterdayCount': await yesterday_codes.count(),
'yesterdaySize': str(sum([code.size for code in await yesterday_codes])),
'todayCount': await today_codes.count(),
'todaySize': str(sum([code.size for code in await today_codes])),
})
@admin_api.delete('/file/delete') @admin_api.delete("/file/delete")
async def file_delete( async def file_delete(
data: IDData, data: IDData,
file_service: FileService = Depends(get_file_service), file_service: FileService = Depends(get_file_service),
admin: bool = Depends(admin_required) admin: bool = Depends(admin_required),
): ):
await file_service.delete_file(data.id) await file_service.delete_file(data.id)
return APIResponse() return APIResponse()
@admin_api.get('/file/list') @admin_api.get("/file/list")
async def file_list( async def file_list(
page: int = 1, page: int = 1,
size: int = 10, size: int = 10,
keyword: str = '', keyword: str = "",
file_service: FileService = Depends(get_file_service), file_service: FileService = Depends(get_file_service),
admin: bool = Depends(admin_required) admin: bool = Depends(admin_required),
): ):
files, total = await file_service.list_files(page, size, keyword) files, total = await file_service.list_files(page, size, keyword)
return APIResponse(detail={ return APIResponse(
'page': page, detail={
'size': size, "page": page,
'data': files, "size": size,
'total': total, "data": files,
}) "total": total,
}
)
@admin_api.get('/config/get') @admin_api.get("/config/get")
async def get_config( async def get_config(
config_service: ConfigService = Depends(get_config_service), config_service: ConfigService = Depends(get_config_service),
admin: bool = Depends(admin_required) admin: bool = Depends(admin_required),
): ):
return APIResponse(detail=config_service.get_config()) return APIResponse(detail=config_service.get_config())
@admin_api.patch('/config/update') @admin_api.patch("/config/update")
async def update_config( async def update_config(
data: dict, data: dict,
config_service: ConfigService = Depends(get_config_service), config_service: ConfigService = Depends(get_config_service),
admin: bool = Depends(admin_required) admin: bool = Depends(admin_required),
): ):
data.pop('themesChoices') data.pop("themesChoices")
await config_service.update_config(data) await config_service.update_config(data)
return APIResponse() return APIResponse()
@admin_api.get('/file/download') @admin_api.get("/file/download")
async def file_download( async def file_download(
id: int, id: int,
file_service: FileService = Depends(get_file_service), file_service: FileService = Depends(get_file_service),
admin: bool = Depends(admin_required) admin: bool = Depends(admin_required),
): ):
file_content = await file_service.download_file(id) file_content = await file_service.download_file(id)
return file_content return file_content
@admin_api.get('/local/lists') @admin_api.get("/local/lists")
async def get_local_lists( async def get_local_lists(
local_file_service: LocalFileService = Depends(get_local_file_service), local_file_service: LocalFileService = Depends(get_local_file_service),
admin: bool = Depends(admin_required) admin: bool = Depends(admin_required),
): ):
files = await local_file_service.list_files() files = await local_file_service.list_files()
return APIResponse(detail=files) return APIResponse(detail=files)
@admin_api.delete('/local/delete') @admin_api.delete("/local/delete")
async def delete_local_file( async def delete_local_file(
item: DeleteItem, item: DeleteItem,
local_file_service: LocalFileService = Depends(get_local_file_service), local_file_service: LocalFileService = Depends(get_local_file_service),
admin: bool = Depends(admin_required) admin: bool = Depends(admin_required),
): ):
result = await local_file_service.delete_file(item.filename) result = await local_file_service.delete_file(item.filename)
return APIResponse(detail=result) return APIResponse(detail=result)
@admin_api.post('/local/share') @admin_api.post("/local/share")
async def share_local_file( async def share_local_file(
item: ShareItem, item: ShareItem,
file_service: FileService = Depends(get_file_service), file_service: FileService = Depends(get_file_service),
admin: bool = Depends(admin_required) admin: bool = Depends(admin_required),
): ):
share_info = await file_service.share_local_file(item) share_info = await file_service.share_local_file(item)
return APIResponse(detail=share_info) return APIResponse(detail=share_info)
+16 -8
View File
@@ -12,26 +12,34 @@ class IPRateLimit:
def check_ip(self, ip: str) -> bool: def check_ip(self, ip: str) -> bool:
if ip in self.ips: if ip in self.ips:
ip_info = self.ips[ip] ip_info = self.ips[ip]
if ip_info['count'] >= self.count: if ip_info["count"] >= self.count:
if ip_info['time'] + timedelta(minutes=self.minutes) > datetime.now(): if ip_info["time"] + timedelta(minutes=self.minutes) > datetime.now():
return False return False
self.ips.pop(ip) self.ips.pop(ip)
return True return True
def add_ip(self, ip: str) -> int: def add_ip(self, ip: str) -> int:
ip_info = self.ips.get(ip, {'count': 0, 'time': datetime.now()}) ip_info = self.ips.get(ip, {"count": 0, "time": datetime.now()})
ip_info['count'] += 1 ip_info["count"] += 1
ip_info['time'] = datetime.now() ip_info["time"] = datetime.now()
self.ips[ip] = ip_info self.ips[ip] = ip_info
return ip_info['count'] return ip_info["count"]
async def remove_expired_ip(self) -> None: async def remove_expired_ip(self) -> None:
now = datetime.now() now = datetime.now()
expiration = timedelta(minutes=self.minutes) expiration = timedelta(minutes=self.minutes)
self.ips = {ip: info for ip, info in self.ips.items() if info['time'] + expiration >= now} self.ips = {
ip: info
for ip, info in self.ips.items()
if info["time"] + expiration >= now
}
def __call__(self, request: Request) -> str: def __call__(self, request: Request) -> str:
ip = request.headers.get('X-Real-IP') or request.headers.get('X-Forwarded-For') or request.client.host ip = (
request.headers.get("X-Real-IP")
or request.headers.get("X-Forwarded-For")
or request.client.host
)
if not self.check_ip(ip): if not self.check_ip(ip):
raise HTTPException(status_code=423, detail="请求次数过多,请稍后再试") raise HTTPException(status_code=423, detail="请求次数过多,请稍后再试")
return ip return ip
+52
View File
@@ -0,0 +1,52 @@
from tortoise import connections
async def create_file_codes_table():
conn = connections.get("default")
await conn.execute_script(
"""
CREATE TABLE IF NOT EXISTS filecodes
(
id INTEGER not null
primary key autoincrement,
code VARCHAR(255) not null
unique,
prefix VARCHAR(255) default '' not null,
suffix VARCHAR(255) default '' not null,
uuid_file_name VARCHAR(255),
file_path VARCHAR(255),
size INT default 0 not null,
text TEXT,
expired_at TIMESTAMP,
expired_count INT default 0 not null,
used_count INT default 0 not null,
created_at TIMESTAMP default CURRENT_TIMESTAMP not null
);
CREATE INDEX IF NOT EXISTS idx_filecodes_code_1c7ee7
on filecodes (code);
"""
)
async def create_key_value_table():
conn = connections.get("default")
await conn.execute_script(
"""
CREATE TABLE IF NOT EXISTS keyvalue
(
id INTEGER not null
primary key autoincrement,
key VARCHAR(255) not null
unique,
value JSON,
created_at TIMESTAMP default CURRENT_TIMESTAMP not null
);
CREATE INDEX IF NOT EXISTS idx_keyvalue_key_eab890
on keyvalue (key);
"""
)
async def migrate():
await create_file_codes_table()
await create_key_value_table()
+96 -15
View File
@@ -14,17 +14,68 @@ from core.utils import get_now
class FileCodes(Model): class FileCodes(Model):
id: Optional[int] = fields.IntField(pk=True) id: Optional[int] = fields.IntField(pk=True)
code: Optional[int] = fields.CharField(description='分享码', max_length=255, index=True, unique=True) code: Optional[int] = fields.CharField(
prefix: Optional[str] = fields.CharField(max_length=255, description='前缀', default='') description="分享码", max_length=255, index=True, unique=True
suffix: Optional[str] = fields.CharField(max_length=255, description='后缀', default='') )
uuid_file_name: Optional[str] = fields.CharField(max_length=255, description='uuid文件名', null=True) prefix: Optional[str] = fields.CharField(
file_path: Optional[str] = fields.CharField(max_length=255, description='文件路径', null=True) max_length=255, description="前缀", default=""
size: Optional[int] = fields.IntField(description='文件大小', default=0) )
text: Optional[str] = fields.TextField(description='文本内容', null=True) suffix: Optional[str] = fields.CharField(
expired_at: Optional[datetime] = fields.DatetimeField(null=True, description='过期时间') max_length=255, description="后缀", default=""
expired_count: Optional[int] = fields.IntField(description='可用次数', default=0) )
used_count: Optional[int] = fields.IntField(description='已用次数', default=0) uuid_file_name: Optional[str] = fields.CharField(
created_at: Optional[datetime] = fields.DatetimeField(auto_now_add=True, description='创建时间') max_length=255, description="uuid文件名", null=True
)
file_path: Optional[str] = fields.CharField(
max_length=255, description="文件路径", null=True
)
size: Optional[int] = fields.IntField(description="文件大小", default=0)
text: Optional[str] = fields.TextField(description="文本内容", null=True)
expired_at: Optional[datetime] = fields.DatetimeField(
null=True, description="过期时间"
)
expired_count: Optional[int] = fields.IntField(description="可用次数", default=0)
used_count: Optional[int] = fields.IntField(description="已用次数", default=0)
created_at: Optional[datetime] = fields.DatetimeField(
auto_now_add=True, description="创建时间"
)
#
# file_hash = fields.CharField(
# max_length=128, # SHA-256需要64字符,这里预留扩展空间
# description="文件哈希值",
# unique=True,
# null=True # 允许旧数据为空
# )
# hash_algorithm = fields.CharField(
# max_length=20,
# description="哈希算法类型",
# null=True,
# default="sha256"
# )
# # 新增分片字段
# chunk_size = fields.IntField(
# description="分片大小(字节)",
# default=0
# )
# total_chunks = fields.IntField(
# description="总分片数",
# default=0
# )
# uploaded_chunks = fields.IntField(
# description="已上传分片数",
# default=0
# )
# upload_status = fields.CharField(
# max_length=20,
# description="上传状态",
# default="pending", # pending/in_progress/completed
# choices=["pending", "in_progress", "completed"]
# )
# is_chunked = fields.BooleanField(
# description="是否分片上传",
# default=False
# )
async def is_expired(self): async def is_expired(self):
# 按时间 # 按时间
@@ -40,11 +91,41 @@ class FileCodes(Model):
return f"{self.file_path}/{self.uuid_file_name}" return f"{self.file_path}/{self.uuid_file_name}"
#
# class FileChunks(Model):
# id = fields.IntField(pk=True)
# file_code = fields.ForeignKeyField(
# "models.FileCodes",
# related_name="chunks",
# on_delete=fields.CASCADE
# )
# chunk_number = fields.IntField(description="分片序号")
# chunk_hash = fields.CharField(
# max_length=128,
# description="分片哈希校验值"
# )
# chunk_path = fields.CharField(
# max_length=255,
# description="分片存储路径"
# )
# created_at = fields.DatetimeField(
# auto_now_add=True,
# description="上传时间"
# )
#
# class Meta:
# unique_together = [("file_code", "chunk_number")]
class KeyValue(Model): class KeyValue(Model):
id: Optional[int] = fields.IntField(pk=True) id: Optional[int] = fields.IntField(pk=True)
key: Optional[str] = fields.CharField(max_length=255, description='键', index=True, unique=True) key: Optional[str] = fields.CharField(
value: Optional[str] = fields.JSONField(description='值', null=True) max_length=255, description="键", index=True, unique=True
created_at: Optional[datetime] = fields.DatetimeField(auto_now_add=True, description='创建时间') )
value: Optional[str] = fields.JSONField(description="值", null=True)
created_at: Optional[datetime] = fields.DatetimeField(
auto_now_add=True, description="创建时间"
)
file_codes_pydantic = pydantic_model_creator(FileCodes, name='FileCodes') file_codes_pydantic = pydantic_model_creator(FileCodes, name="FileCodes")
+27 -17
View File
@@ -14,7 +14,7 @@ from core.utils import get_random_num, get_random_string, max_save_times_desc
async def get_file_path_name(file: UploadFile) -> Tuple[str, str, str, str, str]: async def get_file_path_name(file: UploadFile) -> Tuple[str, str, str, str, str]:
"""获取文件路径和文件名""" """获取文件路径和文件名"""
today = datetime.datetime.now() today = datetime.datetime.now()
storage_path = settings.storage_path.strip('/') # 移除开头和结尾的斜杠 storage_path = settings.storage_path.strip("/") # 移除开头和结尾的斜杠
file_uuid = uuid.uuid4().hex file_uuid = uuid.uuid4().hex
# 使用 UUID 作为子目录名 # 使用 UUID 作为子目录名
@@ -29,32 +29,42 @@ async def get_file_path_name(file: UploadFile) -> Tuple[str, str, str, str, str]
return path, suffix, prefix, file.filename, save_path return path, suffix, prefix, file.filename, save_path
async def get_expire_info(expire_value: int, expire_style: str) -> Tuple[Optional[datetime.datetime], int, int, str]: async def get_expire_info(
expire_value: int, expire_style: str
) -> Tuple[Optional[datetime.datetime], int, int, str]:
"""获取过期信息""" """获取过期信息"""
expired_count, used_count = -1, 0 expired_count, used_count = -1, 0
now = datetime.datetime.now() now = datetime.datetime.now()
code = None code = None
max_timedelta = datetime.timedelta(seconds=settings.max_save_seconds) if settings.max_save_seconds > 0 else datetime.timedelta(days=7) max_timedelta = (
detail = await max_save_times_desc(settings.max_save_seconds) if settings.max_save_seconds > 0 else '7天' datetime.timedelta(seconds=settings.max_save_seconds)
detail = f'限制最长时间为 {detail[0]},可换用其他方式' if settings.max_save_seconds > 0
else datetime.timedelta(days=7)
)
detail = (
await max_save_times_desc(settings.max_save_seconds)
if settings.max_save_seconds > 0
else "7天"
)
detail = f"限制最长时间为 {detail[0]},可换用其他方式"
expire_styles = { expire_styles = {
'day': lambda: now + datetime.timedelta(days=expire_value), "day": lambda: now + datetime.timedelta(days=expire_value),
'hour': lambda: now + datetime.timedelta(hours=expire_value), "hour": lambda: now + datetime.timedelta(hours=expire_value),
'minute': lambda: now + datetime.timedelta(minutes=expire_value), "minute": lambda: now + datetime.timedelta(minutes=expire_value),
'count': lambda: (now + datetime.timedelta(days=1), expire_value), "count": lambda: (now + datetime.timedelta(days=1), expire_value),
'forever': lambda: (None, None), # 修改这里 "forever": lambda: (None, None), # 修改这里
} }
if expire_style in expire_styles: if expire_style in expire_styles:
result = expire_styles[expire_style]() result = expire_styles[expire_style]()
if isinstance(result, tuple): if isinstance(result, tuple):
expired_at, extra = result expired_at, extra = result
if expire_style == 'count': if expire_style == "count":
expired_count = extra expired_count = extra
elif expire_style == 'forever': elif expire_style == "forever":
code = await get_random_code(style='string') # 移动到这里 code = await get_random_code(style="string") # 移动到这里
else: else:
expired_at = result expired_at = result
if expired_at and expired_at - now > max_timedelta: if expired_at and expired_at - now > max_timedelta:
@@ -68,15 +78,15 @@ async def get_expire_info(expire_value: int, expire_style: str) -> Tuple[Optiona
return expired_at, expired_count, used_count, code return expired_at, expired_count, used_count, code
async def get_random_code(style='num') -> str: async def get_random_code(style="num") -> str:
"""获取随机字符串""" """获取随机字符串"""
while True: while True:
code = await get_random_num() if style == 'num' else await get_random_string() code = await get_random_num() if style == "num" else await get_random_string()
if not await FileCodes.filter(code=code).exists(): if not await FileCodes.filter(code=code).exists():
return code return code
ip_limit = { ip_limit = {
'error': IPRateLimit(count=settings.uploadCount, minutes=settings.errorMinute), "error": IPRateLimit(count=settings.uploadCount, minutes=settings.errorMinute),
'upload': IPRateLimit(count=settings.errorCount, minutes=settings.errorMinute) "upload": IPRateLimit(count=settings.errorCount, minutes=settings.errorMinute),
} }
+48 -36
View File
@@ -8,32 +8,36 @@ from core.settings import settings
from core.storage import storages, FileStorageInterface from core.storage import storages, FileStorageInterface
from core.utils import get_select_token from core.utils import get_select_token
share_api = APIRouter(prefix='/share', tags=['分享']) share_api = APIRouter(prefix="/share", tags=["分享"])
async def validate_file_size(file: UploadFile, max_size: int): async def validate_file_size(file: UploadFile, max_size: int):
if file.size > max_size: if file.size > max_size:
max_size_mb = max_size / (1024 * 1024) max_size_mb = max_size / (1024 * 1024)
raise HTTPException(status_code=403, detail=f'大小超过限制,最大为{max_size_mb:.2f} MB') raise HTTPException(
status_code=403, detail=f"大小超过限制,最大为{max_size_mb:.2f} MB"
)
async def create_file_code(code, **kwargs): async def create_file_code(code, **kwargs):
return await FileCodes.create(code=code, **kwargs) return await FileCodes.create(code=code, **kwargs)
@share_api.post('/text/', dependencies=[Depends(admin_required)]) @share_api.post("/text/", dependencies=[Depends(admin_required)])
async def share_text( async def share_text(
text: str = Form(...), text: str = Form(...),
expire_value: int = Form(default=1, gt=0), expire_value: int = Form(default=1, gt=0),
expire_style: str = Form(default='day'), expire_style: str = Form(default="day"),
ip: str = Depends(ip_limit['upload']) ip: str = Depends(ip_limit["upload"]),
): ):
text_size = len(text.encode('utf-8')) text_size = len(text.encode("utf-8"))
max_txt_size = 222 * 1024 max_txt_size = 222 * 1024
if text_size > max_txt_size: if text_size > max_txt_size:
raise HTTPException(status_code=403, detail='内容过多,建议采用文件形式') raise HTTPException(status_code=403, detail="内容过多,建议采用文件形式")
expired_at, expired_count, used_count, code = await get_expire_info(expire_value, expire_style) expired_at, expired_count, used_count, code = await get_expire_info(
expire_value, expire_style
)
await create_file_code( await create_file_code(
code=code, code=code,
text=text, text=text,
@@ -41,25 +45,27 @@ async def share_text(
expired_count=expired_count, expired_count=expired_count,
used_count=used_count, used_count=used_count,
size=len(text), size=len(text),
prefix='Text' prefix="Text",
) )
ip_limit['upload'].add_ip(ip) ip_limit["upload"].add_ip(ip)
return APIResponse(detail={'code': code}) return APIResponse(detail={"code": code})
@share_api.post('/file/', dependencies=[Depends(admin_required)]) @share_api.post("/file/", dependencies=[Depends(admin_required)])
async def share_file( async def share_file(
expire_value: int = Form(default=1, gt=0), expire_value: int = Form(default=1, gt=0),
expire_style: str = Form(default='day'), expire_style: str = Form(default="day"),
file: UploadFile = File(...), file: UploadFile = File(...),
ip: str = Depends(ip_limit['upload']) ip: str = Depends(ip_limit["upload"]),
): ):
await validate_file_size(file, settings.uploadSize) await validate_file_size(file, settings.uploadSize)
if expire_style not in settings.expireStyle: if expire_style not in settings.expireStyle:
raise HTTPException(status_code=400, detail='过期时间类型错误') raise HTTPException(status_code=400, detail="过期时间类型错误")
expired_at, expired_count, used_count, code = await get_expire_info(expire_value, expire_style) expired_at, expired_count, used_count, code = await get_expire_info(
expire_value, expire_style
)
path, suffix, prefix, uuid_file_name, save_path = await get_file_path_name(file) path, suffix, prefix, uuid_file_name, save_path = await get_file_path_name(file)
file_storage: FileStorageInterface = storages[settings.file_storage]() file_storage: FileStorageInterface = storages[settings.file_storage]()
@@ -76,16 +82,16 @@ async def share_file(
expired_count=expired_count, expired_count=expired_count,
used_count=used_count, used_count=used_count,
) )
ip_limit['upload'].add_ip(ip) ip_limit["upload"].add_ip(ip)
return APIResponse(detail={'code': code, 'name': file.filename}) return APIResponse(detail={"code": code, "name": file.filename})
async def get_code_file_by_code(code, check=True): async def get_code_file_by_code(code, check=True):
file_code = await FileCodes.filter(code=code).first() file_code = await FileCodes.filter(code=code).first()
if not file_code: if not file_code:
return False, '文件不存在' return False, "文件不存在"
if await file_code.is_expired() and check: if await file_code.is_expired() and check:
return False, '文件已过期' return False, "文件已过期"
return True, file_code return True, file_code
@@ -96,44 +102,50 @@ async def update_file_usage(file_code):
await file_code.save() await file_code.save()
@share_api.get('/select/') @share_api.get("/select/")
async def get_code_file(code: str, ip: str = Depends(ip_limit['error'])): async def get_code_file(code: str, ip: str = Depends(ip_limit["error"])):
file_storage: FileStorageInterface = storages[settings.file_storage]() file_storage: FileStorageInterface = storages[settings.file_storage]()
has, file_code = await get_code_file_by_code(code) has, file_code = await get_code_file_by_code(code)
if not has: if not has:
ip_limit['error'].add_ip(ip) ip_limit["error"].add_ip(ip)
return APIResponse(code=404, detail=file_code) return APIResponse(code=404, detail=file_code)
await update_file_usage(file_code) await update_file_usage(file_code)
return await file_storage.get_file_response(file_code) return await file_storage.get_file_response(file_code)
@share_api.post('/select/') @share_api.post("/select/")
async def select_file(data: SelectFileModel, ip: str = Depends(ip_limit['error'])): async def select_file(data: SelectFileModel, ip: str = Depends(ip_limit["error"])):
file_storage: FileStorageInterface = storages[settings.file_storage]() file_storage: FileStorageInterface = storages[settings.file_storage]()
has, file_code = await get_code_file_by_code(data.code) has, file_code = await get_code_file_by_code(data.code)
if not has: if not has:
ip_limit['error'].add_ip(ip) ip_limit["error"].add_ip(ip)
return APIResponse(code=404, detail=file_code) return APIResponse(code=404, detail=file_code)
await update_file_usage(file_code) await update_file_usage(file_code)
return APIResponse(detail={ return APIResponse(
'code': file_code.code, detail={
'name': file_code.prefix + file_code.suffix, "code": file_code.code,
'size': file_code.size, "name": file_code.prefix + file_code.suffix,
'text': file_code.text if file_code.text is not None else await file_storage.get_file_url(file_code), "size": file_code.size,
}) "text": (
file_code.text
if file_code.text is not None
else await file_storage.get_file_url(file_code)
),
}
)
@share_api.get('/download') @share_api.get("/download")
async def download_file(key: str, code: str, ip: str = Depends(ip_limit['error'])): async def download_file(key: str, code: str, ip: str = Depends(ip_limit["error"])):
file_storage: FileStorageInterface = storages[settings.file_storage]() file_storage: FileStorageInterface = storages[settings.file_storage]()
if await get_select_token(code) != key: if await get_select_token(code) != key:
ip_limit['error'].add_ip(ip) ip_limit["error"].add_ip(ip)
has, file_code = await get_code_file_by_code(code, False) has, file_code = await get_code_file_by_code(code, False)
if not has: if not has:
return APIResponse(code=404, detail='文件不存在') return APIResponse(code=404, detail="文件不存在")
return ( return (
APIResponse(detail=file_code.text) APIResponse(detail=file_code.text)
+80
View File
@@ -0,0 +1,80 @@
import glob
import importlib
import os
from tortoise import Tortoise
from core.settings import data_root
async def init_db():
try:
# 使用正确的Tortoise初始化配置格式
db_config = {
"db_url": f"sqlite://{data_root}/filecodebox.db",
"modules": {"models": ["apps.base.models"]},
"use_tz": False,
"timezone": "Asia/Shanghai"
}
await Tortoise.init(**db_config)
# 创建migrations表
await Tortoise.get_connection("default").execute_script("""
CREATE TABLE IF NOT EXISTS migrates (
id INTEGER PRIMARY KEY AUTOINCREMENT,
migration_file VARCHAR(255) NOT NULL UNIQUE,
executed_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)
""")
# 执行迁移
await execute_migrations()
except Exception as e:
print(f"数据库初始化失败: {str(e)}")
raise
async def execute_migrations():
"""执行数据库迁移"""
try:
# 收集迁移文件
migration_files = []
for root, dirs, files in os.walk("apps"):
if "migrations" in dirs:
migration_path = os.path.join(root, "migrations")
migration_files.extend(glob.glob(os.path.join(migration_path, "migrations_*.py")))
# 按文件名排序
migration_files.sort()
for migration_file in migration_files:
file_name = os.path.basename(migration_file)
# 检查是否已执行
executed = await Tortoise.get_connection("default").execute_query(
"SELECT id FROM migrates WHERE migration_file = ?", [file_name]
)
if not executed[1]:
print(f"执行迁移: {file_name}")
# 导入并执行migration
module_path = migration_file.replace("/", ".").replace("\\", ".").replace(".py", "")
try:
migration_module = importlib.import_module(module_path)
if hasattr(migration_module, "migrate"):
await migration_module.migrate()
# 记录执行
await Tortoise.get_connection("default").execute_query(
"INSERT INTO migrates (migration_file) VALUES (?)",
[file_name]
)
print(f"迁移完成: {file_name}")
except Exception as e:
print(f"迁移 {file_name} 执行失败: {str(e)}")
raise
except Exception as e:
print(f"迁移过程发生错误: {str(e)}")
raise
+2 -2
View File
@@ -6,10 +6,10 @@ from typing import Generic, TypeVar
from pydantic.v1.generics import GenericModel from pydantic.v1.generics import GenericModel
T = TypeVar('T') T = TypeVar("T")
class APIResponse(GenericModel, Generic[T]): class APIResponse(GenericModel, Generic[T]):
code: int = 200 code: int = 200
message: str = 'ok' message: str = "ok"
detail: T detail: T
+59 -57
View File
@@ -5,70 +5,70 @@
from pathlib import Path from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent BASE_DIR = Path(__file__).resolve().parent.parent
data_root = BASE_DIR / 'data' data_root = BASE_DIR / "data"
if not data_root.exists(): if not data_root.exists():
data_root.mkdir(parents=True, exist_ok=True) data_root.mkdir(parents=True, exist_ok=True)
DEFAULT_CONFIG = { DEFAULT_CONFIG = {
'file_storage': 'local', "file_storage": "local",
'storage_path': '', "storage_path": "",
'name': '文件快递柜 - FileCodeBox', "name": "文件快递柜 - FileCodeBox",
'description': '开箱即用的文件快传系统', "description": "开箱即用的文件快传系统",
'notify_title': '系统通知', "notify_title": "系统通知",
'notify_content': '欢迎使用 FileCodeBox,本程序开源于 <a href="https://github.com/vastsa/FileCodeBox" target="_blank">Github</a> ,欢迎Star和Fork。', "notify_content": '欢迎使用 FileCodeBox,本程序开源于 <a href="https://github.com/vastsa/FileCodeBox" target="_blank">Github</a> ,欢迎Star和Fork。',
'page_explain': '请勿上传或分享违法内容。根据《中华人民共和国网络安全法》、《中华人民共和国刑法》、《中华人民共和国治安管理处罚法》等相关规定。 传播或存储违法、违规内容,会受到相关处罚,严重者将承担刑事责任。本站坚决配合相关部门,确保网络内容的安全,和谐,打造绿色网络环境。', "page_explain": "请勿上传或分享违法内容。根据《中华人民共和国网络安全法》、《中华人民共和国刑法》、《中华人民共和国治安管理处罚法》等相关规定。 传播或存储违法、违规内容,会受到相关处罚,严重者将承担刑事责任。本站坚决配合相关部门,确保网络内容的安全,和谐,打造绿色网络环境。",
'keywords': 'FileCodeBox, 文件快递柜, 口令传送箱, 匿名口令分享文本, 文件', "keywords": "FileCodeBox, 文件快递柜, 口令传送箱, 匿名口令分享文本, 文件",
's3_access_key_id': '', "s3_access_key_id": "",
's3_secret_access_key': '', "s3_secret_access_key": "",
's3_bucket_name': '', "s3_bucket_name": "",
's3_endpoint_url': '', "s3_endpoint_url": "",
's3_region_name': 'auto', "s3_region_name": "auto",
's3_signature_version': 's3v2', "s3_signature_version": "s3v2",
's3_hostname': '', "s3_hostname": "",
's3_proxy': 0, "s3_proxy": 0,
'max_save_seconds': 0, "max_save_seconds": 0,
'aws_session_token': '', "aws_session_token": "",
'onedrive_domain': '', "onedrive_domain": "",
'onedrive_client_id': '', "onedrive_client_id": "",
'onedrive_username': '', "onedrive_username": "",
'onedrive_password': '', "onedrive_password": "",
'onedrive_root_path': 'filebox_storage', "onedrive_root_path": "filebox_storage",
'onedrive_proxy': 0, "onedrive_proxy": 0,
'webdav_hostname': '', "webdav_hostname": "",
'webdav_root_path': 'filebox_storage', "webdav_root_path": "filebox_storage",
'webdav_proxy': 0, "webdav_proxy": 0,
'admin_token': 'FileCodeBox2023', "admin_token": "FileCodeBox2023",
'openUpload': 1, "openUpload": 1,
'uploadSize': 1024 * 1024 * 10, "uploadSize": 1024 * 1024 * 10,
'expireStyle': ['day', 'hour', 'minute', 'forever', 'count'], "expireStyle": ["day", "hour", "minute", "forever", "count"],
'uploadMinute': 1, "uploadMinute": 1,
'webdav_url': '', "webdav_url": "",
'webdav_password': '', "webdav_password": "",
'webdav_username': '', "webdav_username": "",
'opacity': 0.9, "opacity": 0.9,
'background': '', "background": "",
'uploadCount': 10, "uploadCount": 10,
'themesChoices': [ "themesChoices": [
{ {
'name': '2023', "name": "2023",
'key': 'themes/2023', "key": "themes/2023",
'author': 'Lan', "author": "Lan",
'version': '1.0', "version": "1.0",
}, },
{ {
'name': '2024', "name": "2024",
'key': 'themes/2024', "key": "themes/2024",
'author': 'Lan', "author": "Lan",
'version': '1.0', "version": "1.0",
} },
], ],
'themesSelect': 'themes/2024', "themesSelect": "themes/2024",
'errorMinute': 1, "errorMinute": 1,
'errorCount': 1, "errorCount": 1,
'port': 12345, "port": 12345,
'showAdminAddr': 0, "showAdminAddr": 0,
'robotsText': 'User-agent: *\nDisallow: /', "robotsText": "User-agent: *\nDisallow: /",
} }
@@ -82,10 +82,12 @@ class Settings:
return self.user_config[attr] return self.user_config[attr]
if attr in self.default_config: if attr in self.default_config:
return self.default_config[attr] return self.default_config[attr]
raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{attr}'") raise AttributeError(
f"'{self.__class__.__name__}' object has no attribute '{attr}'"
)
def __setattr__(self, key, value): def __setattr__(self, key, value):
if key in ['default_config', 'user_config']: if key in ["default_config", "user_config"]:
super().__setattr__(key, value) super().__setattr__(key, value)
else: else:
self.user_config[key] = value self.user_config[key] = value
+8 -1
View File
@@ -92,7 +92,14 @@ class SystemFileStorage(FileStorageInterface):
file_path = self.root_path / await file_code.get_file_path() file_path = self.root_path / await file_code.get_file_path()
if not file_path.exists(): if not file_path.exists():
return APIResponse(code=404, detail="文件已过期删除") return APIResponse(code=404, detail="文件已过期删除")
return FileResponse(file_path, filename=file_code.prefix + file_code.suffix) filename = f"{file_code.prefix}{file_code.suffix}"
encoded_filename = quote(filename, safe='')
content_disposition = f"attachment; filename*=UTF-8''{encoded_filename}"
return FileResponse(
file_path,
headers={"Content-Disposition": content_disposition},
filename=filename # 保留原始文件名以备某些场景使用
)
class S3FileStorage(FileStorageInterface): class S3FileStorage(FileStorageInterface):
+6 -4
View File
@@ -19,13 +19,15 @@ async def delete_expire_files():
while True: while True:
try: try:
# 遍历 share目录下的所有文件夹,删除空的文件夹,并判断父目录是否为空,如果为空也删除 # 遍历 share目录下的所有文件夹,删除空的文件夹,并判断父目录是否为空,如果为空也删除
if settings.file_storage == 'local': if settings.file_storage == "local":
for root, dirs, files in os.walk(f"{data_root}/share/data"): for root, dirs, files in os.walk(f"{data_root}/share/data"):
if not dirs and not files: if not dirs and not files:
os.rmdir(root) os.rmdir(root)
await ip_limit['error'].remove_expired_ip() await ip_limit["error"].remove_expired_ip()
await ip_limit['upload'].remove_expired_ip() await ip_limit["upload"].remove_expired_ip()
expire_data = await FileCodes.filter(Q(expired_at__lt=await get_now()) | Q(expired_count=0)).all() expire_data = await FileCodes.filter(
Q(expired_at__lt=await get_now()) | Q(expired_count=0)
).all()
for exp in expire_data: for exp in expire_data:
await file_storage.delete_file(exp) await file_storage.delete_file(exp)
await exp.delete() await exp.delete()
+22 -21
View File
@@ -9,6 +9,7 @@ import string
import time import time
from core.settings import settings from core.settings import settings
async def get_random_num(): async def get_random_num():
""" """
获取随机数 获取随机数
@@ -25,7 +26,7 @@ async def get_random_string():
获取随机字符串 获取随机字符串
:return: :return:
""" """
return ''.join(random.choice(r_s) for _ in range(5)) return "".join(random.choice(r_s) for _ in range(5))
async def get_now(): async def get_now():
@@ -33,9 +34,7 @@ async def get_now():
获取当前时间 获取当前时间
:return: :return:
""" """
return datetime.datetime.now( return datetime.datetime.now(datetime.timezone(datetime.timedelta(hours=8)))
datetime.timezone(datetime.timedelta(hours=8))
)
async def get_select_token(code: str): async def get_select_token(code: str):
@@ -45,7 +44,9 @@ async def get_select_token(code: str):
:return: :return:
""" """
token = settings.admin_token token = settings.admin_token
return hashlib.sha256(f"{code}{int(time.time() / 1000)}000{token}".encode()).hexdigest() return hashlib.sha256(
f"{code}{int(time.time() / 1000)}000{token}".encode()
).hexdigest()
async def get_file_url(code: str): async def get_file_url(code: str):
@@ -54,7 +55,7 @@ async def get_file_url(code: str):
:param code: :param code:
:return: :return:
""" """
return f'/share/download?key={await get_select_token(code)}&code={code}' return f"/share/download?key={await get_select_token(code)}&code={code}"
async def max_save_times_desc(max_save_seconds: int): async def max_save_times_desc(max_save_seconds: int):
@@ -66,28 +67,28 @@ async def max_save_times_desc(max_save_seconds: int):
def gen_desc_zh(value: int, desc: str): def gen_desc_zh(value: int, desc: str):
if value > 0: if value > 0:
return f'{value}{desc}' return f"{value}{desc}"
else: else:
return '' return ""
def gen_desc_en(value: int, desc: str): def gen_desc_en(value: int, desc: str):
if value > 0: if value > 0:
ret = f'{value} {desc}' ret = f"{value} {desc}"
if value > 1: if value > 1:
ret += 's' ret += "s"
ret += ' ' ret += " "
return ret return ret
else: else:
return '' return ""
max_timedelta = datetime.timedelta(seconds=max_save_seconds) max_timedelta = datetime.timedelta(seconds=max_save_seconds)
desc_zh, desc_en = '最长保存时间:', 'Max save time: ' desc_zh, desc_en = "最长保存时间:", "Max save time: "
desc_zh += gen_desc_zh(max_timedelta.days, '天') desc_zh += gen_desc_zh(max_timedelta.days, "天")
desc_en += gen_desc_en(max_timedelta.days, 'day') desc_en += gen_desc_en(max_timedelta.days, "day")
desc_zh += gen_desc_zh(max_timedelta.seconds // 3600, '小时') desc_zh += gen_desc_zh(max_timedelta.seconds // 3600, "小时")
desc_en += gen_desc_en(max_timedelta.seconds // 3600, 'hour') desc_en += gen_desc_en(max_timedelta.seconds // 3600, "hour")
desc_zh += gen_desc_zh(max_timedelta.seconds % 3600 // 60, '分钟') desc_zh += gen_desc_zh(max_timedelta.seconds % 3600 // 60, "分钟")
desc_en += gen_desc_en(max_timedelta.seconds % 3600 // 60, 'minute') desc_en += gen_desc_en(max_timedelta.seconds % 3600 // 60, "minute")
desc_zh += gen_desc_zh(max_timedelta.seconds % 60, '秒') desc_zh += gen_desc_zh(max_timedelta.seconds % 60, "秒")
desc_en += gen_desc_en(max_timedelta.seconds % 60, 'second') desc_en += gen_desc_en(max_timedelta.seconds % 60, "second")
return desc_zh, desc_en return desc_zh, desc_en
-15
View File
@@ -1,15 +0,0 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
}
}
-27
View File
@@ -1,27 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
.vite/
node_modules
.DS_Store
dist-ssr
coverage
*.local
.git
/cypress/videos/
/cypress/screenshots/
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
-8
View File
@@ -1,8 +0,0 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
-9
View File
@@ -1,9 +0,0 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
export {}
declare global {
}
-46
View File
@@ -1,46 +0,0 @@
/* eslint-disable */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export {}
/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
CardTools: typeof import('./src/components/CardTools.vue')['default']
ElButton: typeof import('element-plus/es')['ElButton']
ElCard: typeof import('element-plus/es')['ElCard']
ElCol: typeof import('element-plus/es')['ElCol']
ElContainer: typeof import('element-plus/es')['ElContainer']
ElDialog: typeof import('element-plus/es')['ElDialog']
ElDrawer: typeof import('element-plus/es')['ElDrawer']
ElEmpty: typeof import('element-plus/es')['ElEmpty']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElInput: typeof import('element-plus/es')['ElInput']
ElMain: typeof import('element-plus/es')['ElMain']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElProgress: typeof import('element-plus/es')['ElProgress']
ElRadio: typeof import('element-plus/es')['ElRadio']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTag: typeof import('element-plus/es')['ElTag']
ElUpload: typeof import('element-plus/es')['ElUpload']
FileBox: typeof import('./src/components/FileBox.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
UploadFile: typeof import('./src/components/UploadFile.vue')['default']
UploadText: typeof import('./src/components/UploadText.vue')['default']
}
export interface ComponentCustomProperties {
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
}
}
-1
View File
@@ -1 +0,0 @@
/// <reference types="vite/client" />
-16
View File
@@ -1,16 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/assets/logo_small.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta name="description" content="{{description}}">
<meta name="keywords" content="{{keywords}}" />
<meta name="generator" content="FileCodeBox2.1" />
<title>{{title}}</title>
</head>
<body style="background: url('{{background}}') no-repeat center center fixed;background-size: cover;">
<div id="app" style="opacity: {{opacity}}"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
-49
View File
@@ -1,49 +0,0 @@
{
"name": "fcb-fronted",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "vite",
"build": "run-p type-check build-only",
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write src/"
},
"dependencies": {
"@traptitech/markdown-it-katex": "^3.6.0",
"@types/markdown-it": "^14.1.2",
"@types/markdown-it-link-attributes": "^3.0.5",
"axios": "^1.7.2",
"element-plus": "^2.7.8",
"github-markdown-css": "^5.6.1",
"highlight.js": "^11.10.0",
"markdown-it": "^14.1.0",
"markdown-it-link-attributes": "^4.0.1",
"pinia": "^2.2.0",
"qrcode.vue": "^3.4.1",
"sass": "^1.77.8",
"unplugin-auto-import": "^0.18.2",
"unplugin-vue-components": "^0.27.3",
"vue": "^3.4.34",
"vue-i18n": "^9.13.1",
"vue-router": "^4.4.0"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.10.4",
"@tsconfig/node18": "^18.2.4",
"@types/node": "^22.0.0",
"@vitejs/plugin-vue": "^5.1.1",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/tsconfig": "^0.5.1",
"eslint": "^9.11.1",
"eslint-plugin-vue": "^9.28.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"typescript": "~5.5.4",
"vite": "^5.3.5",
"vue-tsc": "^2.0.29"
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

-33
View File
@@ -1,33 +0,0 @@
<script setup lang="ts">
import { onMounted } from "vue";
import { request } from "@/utils/request";
import { ElNotification } from 'element-plus'
onMounted(() => {
request({
url:'/',
method:'post'
}).then((res:any)=>{
if (res.code === 200) {
localStorage.setItem('config', JSON.stringify(res.detail));
if (res.detail.notify_title && res.detail.notify_content && localStorage.getItem('notify') !== res.detail.notify_title + res.detail.notify_content) {
localStorage.setItem('notify', res.detail.notify_title + res.detail.notify_content);
ElNotification({
title: res.detail.notify_title,
dangerouslyUseHTMLString: true,
message: res.detail.notify_content,
type: 'success'
});
}
}
})
});
</script>
<template>
<div>
<RouterView />
</div>
</template>
<style scoped></style>
-86
View File
@@ -1,86 +0,0 @@
/* color palette from <https://github.com/vuejs/theme> */
:root {
--vt-c-white: #ffffff;
--vt-c-white-soft: #f5f5f5;
--vt-c-white-mute: #f2f2f2;
--vt-c-black: #181818;
--vt-c-black-soft: #212121;
--vt-c-black-mute: #282828;
--vt-c-indigo: #2c3e50;
--vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
--vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
--vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
--vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
--vt-c-text-light-1: var(--vt-c-indigo);
--vt-c-text-light-2: rgba(60, 60, 60, 0.66);
--vt-c-text-dark-1: var(--vt-c-white);
--vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
}
/* semantic color variables for this project */
:root {
--color-background: var(--vt-c-white);
--color-background-soft: var(--vt-c-white-soft);
--color-background-mute: var(--vt-c-white-mute);
--color-border: var(--vt-c-divider-light-2);
--color-border-hover: var(--vt-c-divider-light-1);
--color-heading: var(--vt-c-text-light-1);
--color-text: var(--vt-c-text-light-1);
--section-gap: 160px;
}
@media (prefers-color-scheme: dark) {
:root {
--color-background: var(--vt-c-black);
--color-background-soft: var(--vt-c-black-soft);
--color-background-mute: var(--vt-c-black-mute);
--color-border: var(--vt-c-divider-dark-2);
--color-border-hover: var(--vt-c-divider-dark-1);
--color-heading: var(--vt-c-text-dark-1);
--color-text: var(--vt-c-text-dark-2);
}
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
}
html{
background: var(--vt-c-white-soft);
}
html.dark{
background: var(--vt-c-black-soft);
}
body {
color: var(--color-text);
display: flex;
justify-content: center;
align-items: center;
line-height: 1.6;
font-family: Inter,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Roboto,
Oxygen,
Ubuntu,
Cantarell,
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
sans-serif;
font-size: 15px;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
File diff suppressed because it is too large. Load diff
-206
View File
@@ -1,206 +0,0 @@
html.dark {
pre code.hljs {
display: block;
overflow-x: auto;
padding: 1em
}
code.hljs {
padding: 3px 5px
}
.hljs {
color: #abb2bf;
background: #282c34
}
.hljs-keyword,
.hljs-operator,
.hljs-pattern-match {
color: #f92672
}
.hljs-function,
.hljs-pattern-match .hljs-constructor {
color: #61aeee
}
.hljs-function .hljs-params {
color: #a6e22e
}
.hljs-function .hljs-params .hljs-typing {
color: #fd971f
}
.hljs-module-access .hljs-module {
color: #7e57c2
}
.hljs-constructor {
color: #e2b93d
}
.hljs-constructor .hljs-string {
color: #9ccc65
}
.hljs-comment,
.hljs-quote {
color: #b18eb1;
font-style: italic
}
.hljs-doctag,
.hljs-formula {
color: #c678dd
}
.hljs-deletion,
.hljs-name,
.hljs-section,
.hljs-selector-tag,
.hljs-subst {
color: #e06c75
}
.hljs-literal {
color: #56b6c2
}
.hljs-addition,
.hljs-attribute,
.hljs-meta .hljs-string,
.hljs-regexp,
.hljs-string {
color: #98c379
}
.hljs-built_in,
.hljs-class .hljs-title,
.hljs-title.class_ {
color: #e6c07b
}
.hljs-attr,
.hljs-number,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-pseudo,
.hljs-template-variable,
.hljs-type,
.hljs-variable {
color: #d19a66
}
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-symbol,
.hljs-title {
color: #61aeee
}
.hljs-emphasis {
font-style: italic
}
.hljs-strong {
font-weight: 700
}
.hljs-link {
text-decoration: underline
}
}
html {
pre code.hljs {
display: block;
overflow-x: auto;
padding: 1em
}
code.hljs {
padding: 3px 5px;
&::-webkit-scrollbar {
height: 4px;
}
}
.hljs {
color: #383a42;
background: #fafafa
}
.hljs-comment,
.hljs-quote {
color: #a0a1a7;
font-style: italic
}
.hljs-doctag,
.hljs-formula,
.hljs-keyword {
color: #a626a4
}
.hljs-deletion,
.hljs-name,
.hljs-section,
.hljs-selector-tag,
.hljs-subst {
color: #e45649
}
.hljs-literal {
color: #0184bb
}
.hljs-addition,
.hljs-attribute,
.hljs-meta .hljs-string,
.hljs-regexp,
.hljs-string {
color: #50a14f
}
.hljs-attr,
.hljs-number,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-pseudo,
.hljs-template-variable,
.hljs-type,
.hljs-variable {
color: #986801
}
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-symbol,
.hljs-title {
color: #4078f2
}
.hljs-built_in,
.hljs-class .hljs-title,
.hljs-title.class_ {
color: #c18401
}
.hljs-emphasis {
font-style: italic
}
.hljs-strong {
font-weight: 700
}
.hljs-link {
text-decoration: underline
}
}
-100
View File
@@ -1,100 +0,0 @@
@import 'katex/dist/katex.min.css';
@import '@/assets/code/highlight.scss';
@import '@/assets/code/github-markdown.scss';
@import '@/assets/code/markdown-add.scss';
.markdown-body {
box-sizing: border-box;
background:none ;
*{
font-size: 0.9rem;
}
}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
}
.chat-container {
display: flex;
flex-direction: column;
margin: auto;
max-width: 1080px;
padding: 0 5px;
height: 100%;
}
.chat-messages {
flex-grow: 1;
overflow-y: auto;
border-radius: 10px 10px 0 0;
padding: 8px;
}
.chat-message {
display: flex;
flex-direction: column;
margin-bottom: 30px;
}
.chat-message-bubble {
padding: 8px;
align-self: flex-start;
color: #2f4f4f;
border-radius: 8px 8px 8px 0;
background: linear-gradient(to right, #c9d6ff, #e2e2e2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
box-shadow: 0 16px 20px 0 rgba(174, 167, 223, .06);
max-width: 80%;
}
.chat-toolbar-icon{
margin-left: 5px;
cursor: pointer;
}
.chat-message-meta {
display: flex;
position: relative;
margin-top: 4px;
}
.n-input-wrapper {
padding-right: 0;
}
.chat-message-nickname-and-time {
color: #999;
font-size: 12px;
}
.is-me {
justify-content: flex-end;
}
.n-input .n-input__suffix, .n-input .n-input__prefix {
display: block;
}
.n-input .n-input-wrapper {
padding-right: 0;
}
.n-input .n-input__suffix .n-button {
border-radius: 8px !important;
width: 80px;
height: 30px;
position: absolute; right: 10px; bottom: 10px;
box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.3);
background-image: linear-gradient(-56deg, #0773ff 5%, #797eff);
--n-border: none !important;
}
.chat-message.is-me .chat-message-bubble {
background: linear-gradient(to right, #56ccf2, #2f80ed); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
border-radius: 8px 8px 0 !important;
box-shadow: 0 16px 20px 0 rgba(174, 167, 223, .06);
align-self: flex-end;
}
@@ -1,75 +0,0 @@
.markdown-body {
background-color: transparent;
font-size: 14px;
p {
white-space: pre-wrap;
}
ol {
list-style-type: decimal;
}
ul {
list-style-type: disc;
}
pre code,
pre tt {
line-height: 1.65;
}
// .highlight pre,
// pre {
// background-color: #fff;
// }
code.hljs {
padding: 0;
}
.code-block {
&-wrapper {
position: relative;
padding-top: 24px;
}
&-header {
position: absolute;
top: 5px;
right: 0;
width: 100%;
padding: 0 1rem;
display: flex;
justify-content: flex-end;
align-items: center;
color: #b3b3b3;
&__copy {
cursor: pointer;
margin-left: 0.5rem;
user-select: none;
&:hover {
color: #65a665;
}
}
}
}
}
html.dark {
.message-reply {
.whitespace-pre-wrap {
white-space: pre-wrap;
color: var(--n-text-color);
}
}
.highlight pre,
pre {
background-color: #282c34;
}
}
-54
View File
@@ -1,54 +0,0 @@
@import './base.css';
#app {
display: flex;
flex-direction: column;
justify-content: center;
min-height: 100vh;
}
.card {
max-width: 400px;
min-width: 398px;
height: 100%;
background-color: #F8FBFE;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
border-radius: 20px !important;
position: relative;
}
.tools {
display: flex;
z-index: 999;
align-items: center;
}
.box {
display: inline-block;
align-items: center;
width: 1.5rem;
height: 1.5rem;
user-select: none;
cursor: pointer;
padding: 1px;
border-radius: 50%;
}
.circle {
padding: 0 4px;
}
.red {
padding: 3px;
background-color: #ff605c;
}
.yellow {
padding: 3px;
background-color: #ffbd44;
}
.green {
background-color: #00ca4e;
padding: 3px;
}
-39
View File
@@ -1,39 +0,0 @@
<script setup lang="ts">
import { useDark, useToggle } from '@vueuse/core'
import { useRoute, useRouter } from "vue-router";
const router = useRouter()
const route = useRoute()
const isDark = useDark()
const toggleDark = useToggle(isDark)
import { Moon, Sunny, Upload, Back, TakeawayBox } from "@element-plus/icons-vue";
import FileBox from "@/components/FileBox.vue";
import { useFileBoxStore } from "@/stores/fileBox";
const fileBoxStore = useFileBoxStore();
</script>
<template>
<div class="tools">
<div class="circle">
<el-icon size="17" color="#212121" class="red box" @click="router.push({'name':route.name=='home'?'send':'home'})">
<Back v-if="route.name=='send'"></Back>
<Upload v-else></Upload>
</el-icon>
</div>
<div class="circle">
<el-icon size="17" color="#212121" class="yellow box" @click="toggleDark(!isDark)">
<Moon v-if="isDark"></Moon>
<Sunny v-else></Sunny>
</el-icon>
</div>
<div class="circle">
<el-icon size="17" color="#212121" class="green box" @click="fileBoxStore.showFileBox=true">
<TakeawayBox></TakeawayBox>
</el-icon>
</div>
<file-box></file-box>
</div>
</template>
<style scoped lang="scss">
</style>
-151
View File
@@ -1,151 +0,0 @@
<script setup lang="ts">
import { useFileDataStore } from "@/stores/fileData";
import { useFileBoxStore } from "@/stores/fileBox";
import hljs from 'highlight.js';
import mila from 'markdown-it-link-attributes';
import markdownIt from 'markdown-it';
import markdownItKatex from '@traptitech/markdown-it-katex';
import '@/assets/code/main.scss'
const fileStore = useFileDataStore();
const fileBoxStore = useFileBoxStore();
import QrcodeVue from "qrcode.vue";
import { useRoute } from "vue-router";
import { ref } from "vue";
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
import { ElMessage } from "element-plus";
const openUrl = (url: string) => {
if (url.startsWith('/')) {
url = window.location.origin + url;
}
window.open(url);
};
const route = useRoute();
const copyText = (text: any, style = 0) => {
ElMessage.success(t('fileBox.copySuccess'));
if (style === 1) {
text = window.location.origin + '/#/?code=' + text;
}
const temp: any = document.createElement('textarea');
temp.value = text;
document.body.appendChild(temp);
temp.select();
if (document.execCommand('copy')) {
document.execCommand('copy');
}
document.body.removeChild(temp);
};
const nowText = ref('');
const showTextDetail = (text: any) => {
showTextDetailVisible.value = true;
nowText.value = text;
};
const showTextDetailVisible = ref(false);
const md = new markdownIt({
html: false,
linkify: true,
highlight(code: any, language: any) {
const validLang = Boolean(language && hljs.getLanguage(language));
return `<pre class="code-block-wrapper"><code class="hljs code-block-body ${validLang}">${hljs.highlight(code, { language: language ?? '' }).value}</code></pre>`;
}
});
md.use(mila, { attrs: { target: '_blank', rel: 'noopener' } });
md.use(markdownItKatex, { blockClass: 'katexmath-block rounded-md p-[10px]', errorColor: ' #cc0000' });
function renderMarkdown(message: string) {
return md.render(message);
}
function getQrCodeUrl(code: string) {
// 否是接收的文件,如果是则返回下载直链,否则拼接分享链接
if (code) {
return code.toString().startsWith('/share/download') ? window.location.origin + code : window.location.origin + '/#/?code=' + code;
}
else {
return '';
}
}
</script>
<template>
<el-drawer :append-to-body="true" v-model="fileBoxStore.showFileBox" direction="btt" style="max-width: 1080px;margin: auto;"
size="400">
<template #header>
<h4 v-if="route.name=='home'">{{t('fileBox.receiveFileBox')}}</h4>
<h4 v-else>{{t('fileBox.sendFileBox')}}</h4>
</template>
<template #default>
<div v-if="route.name=='home'" style="display: flex;flex-wrap: wrap;justify-content: center">
<el-dialog
append-to-body
align-center
:title="t('fileBox.textDetail')"
width="70%"
style="height: 70%;overflow-y: scroll"
v-model="showTextDetailVisible"
>
<div style="max-width: 100%;overflow-y: scroll" v-html="renderMarkdown(nowText)"></div>
<template #footer>
<el-button type="success" @click="copyText(nowText);showTextDetailVisible = false">{{t('fileBox.copy')}}</el-button>
<el-button type="primary" @click="showTextDetailVisible = false">{{ t('fileBox.close') }}</el-button>
</template>
</el-dialog>
<el-card v-for="(value,index) in fileStore.receiveData" :key="index" style="margin: 0.5rem">
<template #header>
<div style="display: flex;justify-content: space-between">
<h4 style="width: 6rem;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ value.name }}</h4>
<el-button size="small" type="danger" @click="fileStore.deleteReceiveData(index)">{{ t('fileBox.delete') }}</el-button>
</div>
</template>
<div style="width: 200px;">
<div style="display: flex;justify-content: space-between">
<!-- 下载二维码白色边框 -->
<div v-if="value.name!=='Text'"
style="padding: 5px; background-color: white; border: 2px solid white; box-sizing: border-box; height: 114px;">
<qrcode-vue :value="getQrCodeUrl(value.text)" :size="100"></qrcode-vue>
</div>
<div v-else style="width: 100px;height: 100px;flex-wrap: wrap;overflow-y:scroll ">{{value.text}}</div>
<div style="display: flex;flex-direction: column;justify-content: space-around">
<el-tag size="large" style="cursor: pointer" @click="copyText(value.code)">{{ value.code }}</el-tag>
<el-tag v-if="value.name!=='Text'" size="large" type="success" style="cursor: pointer" @click="openUrl(value.text);">
{{ t('fileBox.download') }}
</el-tag>
<el-tag v-else size="large" type="success" style="cursor: pointer" @click="showTextDetail(value.text);">{{ t('fileBox.detail') }}</el-tag>
</div>
</div>
</div>
</el-card>
</div>
<div v-else style="display: flex;flex-wrap: wrap;justify-content: center">
<el-card v-for="(value,index) in fileStore.shareData" :key="index" style="margin: 0.5rem">
<template #header>
<div style="display: flex;justify-content: space-between">
<h4 style="width: 6rem;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ value.name }}</h4>
<el-button size="small" type="danger" @click="fileStore.deleteShareData(index)">{{ t('fileBox.delete') }}</el-button>
</div>
</template>
<div style="width: 200px;">
<el-progress v-if="value.status!='success' && value.status!='fail'" striped :percentage="value.percentage" :text-inside="true"
:stroke-width="20"></el-progress>
<div v-else style="display: flex;justify-content: space-between">
<!-- 分享二维码白色边框 -->
<div style="padding: 5px; background-color: white; border: 2px solid white; box-sizing: border-box; height: 114px;">
<qrcode-vue :value="getQrCodeUrl(value.code)" :size="100"></qrcode-vue>
</div>
<div style="display: flex;flex-direction: column;justify-content: space-around">
<el-tag size="large" style="cursor: pointer" @click="copyText(value.code)">{{ value.code }}</el-tag>
<el-tag size="large" type="success" style="cursor: pointer" @click="copyText(value.code,1);">{{ t('fileBox.copyLink') }}
</el-tag>
</div>
</div>
</div>
</el-card>
</div>
</template>
</el-drawer>
</template>
-183
View File
@@ -1,183 +0,0 @@
<script setup lang="ts">
import { UploadFilled } from '@element-plus/icons-vue'
import { ref, onMounted, onUnmounted } from 'vue'
import { request } from "@/utils/request";
import { useFileDataStore } from "@/stores/fileData";
import { useFileBoxStore } from "@/stores/fileBox";
import { useI18n } from 'vue-i18n'
import { useConfigStore } from "@/stores/config";
import { ElMessage } from "element-plus";
const { config } = useConfigStore();
const { t } = useI18n()
const fileBoxStore = useFileBoxStore();
const fileStore = useFileDataStore();
const props = defineProps({
shareData: {
type: Object,
default: () => {
return {
expire_value: 1,
expire_style: 'day',
}
}
}
})
const fileList: any = ref([])
const uploadBox: any = ref(null)
const handleOnChangeFileList = (file: any) => {
fileStore.addShareData({
'name': file.name,
'text': '',
'status': file.status,
'percentage': 0,
'size': file.size,
'type': file.raw.type,
'uid': file.uid,
});
};
const handleHttpRequest = (options: any) => {
fileBoxStore.showFileBox = true;
const formData = new FormData();
if (config.openUpload === 0 && localStorage.getItem('adminPassword') === null) {
fileStore.shareData.forEach((file: any) => {
if (file.uid === options.file.uid) {
ElMessage.error(t('msg.uploadClose'));
file.status = 'fail';
file.code = t('msg.fileUploadFail');
fileStore.save();
}
});
return;
}
if (options.file.size > config.uploadSize) {
fileStore.shareData.forEach((file: any) => {
if (file.uid === options.file.uid) {
ElMessage.error(t('msg.fileOverSize'));
file.status = 'fail';
file.code = t('msg.fileOverSize');
fileStore.save();
}
});
return;
}
formData.append('file', options.file);
formData.append('expire_value', props.shareData.expireValue);
formData.append('expire_style', props.shareData.expireStyle);
request(
{
url: "share/file/",
method: "post",
data: formData,
onUploadProgress: (event: any) => {
const percentage = Math.round((event.loaded * 100) / event.total) || 0;
fileStore.shareData.forEach((file: any) => {
if (file.uid === options.file.uid) {
file.percentage = percentage;
fileStore.save();
}
});
}
}
).then((res: any) => {
const data = res.detail;
fileStore.shareData.forEach((file: any) => {
if (file.uid === options.file.uid) {
file.status = 'success';
file.text = data.text;
file.code = data.code;
ElMessage.success(t('msg.fileUploadSuccess'));
fileStore.save();
}
});
}).catch(() => {
fileStore.shareData.forEach((file: any) => {
if (file.uid === options.file.uid) {
file.status = 'fail';
file.code = t('msg.fileUploadFail');
ElMessage.error(t('msg.fileUploadFail'));
fileStore.save();
}
});
});
};
function pasteLister(event: any) {
const items = event.clipboardData && event.clipboardData.items;
if (items && items.length) {
for (let i = 0; i < items.length; i++) {
if (items[i].kind === 'string') {
if (items[i].type.match(/^text\/plain/)) {
items[i].getAsString(function(str:any) {
console.log(str);
});
}
} else {
const file: any = items[i].getAsFile();
if (file) {
const uid = Date.now();
file.uid = uid;
fileStore.addShareData({
'name': file.name,
'text': '',
'status': 'ready',
'percentage': 0,
'size': file.size,
'type': file.type,
'uid': uid,
});
handleHttpRequest({
file: file,
})
}
}
}
}
}
onUnmounted(()=>{
// 清除剪切板事件
document.removeEventListener('paste', pasteLister);
})
onMounted(()=>{
document.addEventListener('paste', pasteLister);
})
</script>
<template>
<div>
<el-upload
class="upload-demo"
drag
multiple
:show-file-list="false"
ref="uploadBox"
v-model:file-list="fileList"
:on-change="handleOnChangeFileList"
:http-request="handleHttpRequest"
>
<el-icon class="el-icon--upload">
<upload-filled/>
</el-icon>
<div class="el-upload__text">
{{t('send.prompt1')}}<em>{{t('send.clickUpload')}}</em>
</div>
<div class="el-upload__text" style="font-size: 10px;">{{t('send.prompt2')}}</div>
<template #tip>
<div class="el-upload__tip">
</div>
</template>
</el-upload>
</div>
</template>
<style lang="scss">
.el-upload {
border-radius: 20px;
}
.el-upload-dragger {
box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.2);
border-radius: 20px;
}
</style>
-75
View File
@@ -1,75 +0,0 @@
<script setup lang="ts">
import { ref } from 'vue'
import { request } from "@/utils/request";
const shareText = ref('')
import { useFileDataStore } from "@/stores/fileData";
import { useFileBoxStore } from "@/stores/fileBox";
import { ElMessage } from "element-plus";
import { useI18n } from 'vue-i18n'
import { useConfigStore } from "@/stores/config";
const { t } = useI18n()
const {config} = useConfigStore();
const fileBoxStore = useFileBoxStore();
const fileStore = useFileDataStore();
const props = defineProps({
shareData: {
type: Object,
default: () => {
return {
expire_value: 1,
expire_style: 'day',
}
}
}
})
const handleSubmitShareText = ()=>{
if (shareText.value === '') {
ElMessage.warning(t('send.prompt3'));
} else if(config.openUpload === 0 && localStorage.getItem('adminPassword') === null){
ElMessage.error(t('msg.uploadClose'));
} else {
const formData = new FormData();
formData.append('text', shareText.value);
formData.append('expire_value', props.shareData.expireValue);
formData.append('expire_style', props.shareData.expireStyle);
request({
'url': 'share/text/',
'method': 'post',
'data': formData,
}).then((res: any) => {
const data = res.detail;
fileBoxStore.showFileBox = true;
fileStore.addShareData({
'name': t('send.textShare'),
'text': data.text,
'code': data.code,
'status': 'success',
'percentage': 100,
'size': shareText.value.length,
'type': 'text',
'uid': Date.now(),
})
});
}
}
</script>
<template>
<div style="position: relative">
<el-input
:placeholder="t('send.prompt3')"
v-model="shareText"
type="textarea"
:rows="9"
:input-style="{'border-radius':'20px','border':'1px dashed var(--el-border-color)','box-shadow':'none'}"
>
</el-input>
<el-button @click="handleSubmitShareText" style="position: absolute;right: 0;bottom: 0;border-radius: 20px 0 20px 0;margin: 1px;background: rgba(255,255,255,0.2)" size="large">{{t('send.share')}}</el-button>
</div>
</template>
<style scoped lang="scss">
</style>
-140
View File
@@ -1,140 +0,0 @@
export default {
send: {
disclaimers: 'Terms and Conditions',
prompt1: 'Drag and drop text or files here, or ',
prompt2: 'Days <7 or limited number of times (deleted after 24h)',
prompt3: 'Please enter the text you want to send, supports MarkDown format',
share: 'Share',
textShare: 'Text Share',
clickUpload: 'Click to Upload',
pleaseInputExpireValue: 'Please enter the validity period',
expireStyle: 'Expiration Method',
expireData: {
day: 'Days',
hour: 'Hours',
forever: 'Permanent',
minute: 'Minutes',
count: 'Times'
},
expireValue: {
day: 'Days',
hour: 'Hours',
minute: 'Minutes',
count: 'Times'
},
fileType: {
file: 'File',
text: 'Text'
}
},
fileBox: {
copySuccess: 'Copy Successful',
inputNotEmpty: 'Please enter a five-digit retrieval code',
sendFileBox: 'Outgoing Box',
ok: 'OK',
receiveFileBox: 'Incoming Box',
textDetail: 'Text Details',
copy: 'Copy',
close: 'Close',
delete: 'Delete',
download: 'Click to Download',
detail: 'View Details',
copyLink: 'Copy Link',
},
admin: {
about: {
source1: 'This project is open-source on Github: ',
source2: 'FileCodeBox'
},
settings: {
name: 'Website Name',
description: 'Website Description',
uploadlimit: 'Upload Limit',
explain: 'Interface Instructions',
errorlimit: 'Error Limit',
keywords: 'Keywords',
themeSelect: 'Theme Selection',
notify_title: 'Notification Title',
notify_content: 'Notification Content',
background: 'Background Image',
max_save_seconds: 'Maximum Save Time',
maxSaveSecondsNote: 'Maximum save time, unit: (seconds), default is 0 which means 7 days',
admin_token: 'Admin Password',
uploadSize: 'File Size',
expireStyle: 'Expiration Method',
uploadSizeNote: 'Maximum file size, unit: (Bytes), 1mb = 1 * 1024 * 1024',
showAdmin: {
open: 'Open',
close: 'Close',
note: 'Is the backend entrance displayed at the bottom of the page?',
},
openUpload: {
title: 'Enable Upload',
open: 'Enable Guest Upload',
close: 'Disable Guest Upload',
note: 'After disabling, you need to log in to the backend to upload',
},
file_storage: {
title: 'Storage Engine',
local: 'Local Storage',
s3: 'S3 Storage',
note: 'After updating, you need to restart FileCodeBox',
},
mei: 'Every',
minute: 'Minutes',
upload: 'Upload',
files: 'Files',
allow: 'Allow',
errors: 'Errors',
save: 'Save',
saveSuccess: 'Save Successful',
},
fileView: {
code: 'Retrieval Code',
prefix: 'File Prefix',
suffix: 'File Suffix',
text: 'Text',
used_count: 'Times Used',
expired_count: 'Available Times',
size: 'File Size',
expired_at: 'Expiration Time',
file_path: 'File Path',
action: 'Action',
delete: 'Delete',
delete_success: 'Delete Successful',
forever: 'Permanent',
unlimited_count: 'Unlimited Times',
download: 'Download',
download_fail: 'File save failed, please try again later~',
},
menu: {
fileManage: 'File Management',
systemSetting: 'System Settings',
about: 'About Us',
color: 'Color Mode',
send: 'Send',
local:'Local File',
receive: 'Receive',
signout: 'Sign Out',
},
login: {
managePassword: 'Admin Password',
passwordNotEmpty: 'Password cannot be empty',
login: 'Login',
loginSuccess: 'Login Successful',
loginError: 'Login Failed',
},
local: {
Name: '文件',
Expire: '过期',
Cancel: '取消',
Confirm: '确定',
}
},
msg: {
fileOverSize: 'File Too Large',
fileUploadFail: 'Upload Failed',
fileUploadSuccess: 'Upload Successful',
uploadClose: 'Guest upload is closed on this site',
}
};
-140
View File
@@ -1,140 +0,0 @@
export default {
send: {
disclaimers: 'Términos y condiciones',
prompt1: 'Arrastre, pegue el texto, archivos aquí, o ',
prompt2: 'Días<7 o límite de veces (elimina después de 24h)',
prompt3: 'Ingrese el texto que desea enviar, admite formato MarkDown',
share: 'Compartir',
textShare: 'Compartir texto',
clickUpload: 'Hacer clic para subir',
pleaseInputExpireValue: 'Ingrese el período de validez',
expireStyle: 'Método de caducidad',
expireData: {
day: 'Días',
hour: 'Horas',
forever: 'Para siempre',
minute: 'Minutos',
count: 'Veces'
},
expireValue: {
day: 'Días',
hour: 'Horas',
minute: 'Minutos',
count: 'Veces'
},
fileType: {
file: 'Archivo',
text: 'Texto'
}
},
fileBox: {
copySuccess: 'Copiado exitosamente',
inputNotEmpty: 'Ingrese un código de recogida de cinco dígitos',
sendFileBox: 'Buzón de envíos',
ok: 'Aceptar',
receiveFileBox: 'Buzón de recepción',
textDetail: 'Detalles del texto',
copy: 'Copiar',
close: 'Cerrar',
delete: 'Eliminar',
download: 'Hacer clic para descargar',
detail: 'Ver detalles',
copyLink: 'Copiar enlace',
},
admin: {
about: {
source1: 'Proyecto de código abierto en Github:',
source2: 'FileCodeBox'
},
settings: {
name: 'Nombre del sitio web',
description: 'Descripción del sitio web',
uploadlimit: 'Límite de subida',
explain: 'Descripción de la interfaz',
errorlimit: 'Límite de errores',
keywords: 'Palabras clave',
themeSelect: 'Selección de tema',
notify_title: 'Título de notificación',
notify_content: 'Contenido de notificación',
background: 'Imagen de fondo',
max_save_seconds: 'Tiempo máximo de almacenamiento',
maxSaveSecondsNote: 'Tiempo máximo de almacenamiento, en segundos. El valor predeterminado es 0, que equivale a 7 días',
admin_token: 'Contraseña de administración',
uploadSize: 'Tamaño de archivo',
expireStyle: 'Método de caducidad',
uploadSizeNote: 'Tamaño máximo de archivo, en bytes. 1mb=1 * 1024 * 1024',
openUpload: {
title: 'Habilitar subida',
open: 'Habilitar subida para visitantes',
close: 'Deshabilitar subida para visitantes',
note: 'Después de deshabilitar, es necesario iniciar sesión en el backend para poder subir archivos',
},
showAdmin: {
open: 'abierto',
close: 'cierre',
note: 'si mostrar la entrada de fondo en la parte inferior de la página',
},
file_storage: {
title: 'Motor de almacenamiento',
local: 'Almacenamiento local',
s3: 'Almacenamiento S3',
note: 'Es necesario reiniciar FileCodeBox después de actualizar',
},
mei: 'Cada',
minute: 'Minuto',
upload: 'Subir',
files: 'Archivos',
allow: 'Permitir',
errors: 'Errores',
save: 'Guardar',
saveSuccess: 'Guardado exitosamente',
},
fileView: {
code: 'Código de recogida',
prefix: 'Prefijo de archivo',
suffix: 'Sufijo de archivo',
text: 'Texto',
used_count: 'Número de veces utilizado',
expired_count: 'Número de veces disponible',
size: 'Tamaño de archivo',
expired_at: 'Fecha de caducidad',
file_path: 'Ruta del archivo',
action: 'Acción',
delete: 'Eliminar',
delete_success: 'Eliminado exitosamente',
forever: 'Válido para siempre',
unlimited_count: 'Número de veces ilimitado',
download: 'Descargar',
download_fail: 'Error al guardar el archivo, intente nuevamente más tarde~',
},
menu: {
fileManage: 'Gestión de archivos',
systemSetting: 'Configuración del sistema',
about: 'Sobre nosotros',
color: 'Modo de color',
send: 'Enviar',
local:'Archivo Local',
receive: 'Recibir',
signout: 'Cerrar sesión',
},
login: {
managePassword: 'Contraseña de administración',
passwordNotEmpty: 'La contraseña no puede estar vacía',
login: 'Iniciar sesión',
loginSuccess: 'Inicio de sesión exitoso',
loginError: 'Error de inicio de sesión',
},
local: {
Name: '文件',
Expire: '过期',
Cancel: '取消',
Confirm: '确定',
}
},
msg: {
fileOverSize: 'Archivo demasiado grande',
fileUploadFail: 'Error al subir',
fileUploadSuccess: 'Subida exitosa',
uploadClose: 'El sitio ha deshabilitado la subida para visitantes',
}
};
-18
View File
@@ -1,18 +0,0 @@
import { createI18n } from 'vue-i18n' //引入vue-i18n组件
import messages from './index'
let language = (
navigator.language || 'zh_cn'
).toLowerCase().replace(/-/, '_');
if (['zh','zh_cn','en','es','zh_tw'].indexOf(language) === -1) {
language = 'zh_cn'
}
const lang = (localStorage.getItem('language') || language);
const i18n = createI18n({
silentTranslationWarn: true,
globalInjection: true,
legacy: false,
locale: lang,
messages,
});
export default i18n
-13
View File
@@ -1,13 +0,0 @@
import zh_cn from './zh_cn';
import zh from './zh';
import es from './es';
import en from './en';
import zh_tw from './zh_tw'
export default {
zh_cn,
en,
zh_tw,
zh,
es
}
-140
View File
@@ -1,140 +0,0 @@
export default {
send: {
disclaimers:'使用须知',
prompt1: '将文字、文件拖、粘贴到此处,或 ',
prompt2: '天数<7或限制次数(24h后删除)',
prompt3: '请输入您要寄出的文本,支持MarkDown格式',
share: '分享',
textShare: '文本分享',
clickUpload: '点击上传',
pleaseInputExpireValue: '请输入有效期',
expireStyle: '过期方式',
expireData: {
day: '天数',
hour: '小时',
forever: '永久',
minute: '分钟',
count: '次数'
},
expireValue: {
day: '天',
hour: '时',
minute: '分',
count: '次'
},
fileType: {
file: '文件',
text: '文本'
}
},
fileBox: {
copySuccess: '复制成功',
inputNotEmpty: '请输入五位取件码',
sendFileBox: '寄件箱',
ok:'确定',
receiveFileBox: '收件箱',
textDetail: '文本详情',
copy: '复 制',
close: '关 闭',
delete: '删 除',
download: '点 击 下 载',
detail: '查 看 详 情',
copyLink: '复制链接',
},
admin: {
about: {
source1: '本项目开源于Github:',
source2: 'FileCodeBox'
},
settings: {
name: '网站名称',
description: '网站描述',
uploadlimit: '上传限制',
explain:'界面说明',
errorlimit: '错误限制',
keywords: '关键词',
themeSelect: '主题选择',
notify_title: '通知标题',
notify_content: '通知内容',
background: '背景图片',
max_save_seconds: '最长保存',
maxSaveSecondsNote: '最长保存时间,单位:(秒),默认为0则为7天',
admin_token: '管理密码',
uploadSize: '文件大小',
expireStyle: '过期方式',
uploadSizeNote: '最大文件大小,单位:(Bytes),1mb=1 * 1024 * 1024',
openUpload: {
title: '开启上传',
open: '开启游客上传',
close: '关闭游客上传',
note: '关闭之后需要登录后台方可上传',
},
showAdmin:{
open: '开启',
close: '关闭',
note: '是否在页面底部显示后台入口',
},
file_storage: {
title: '存储引擎',
local: '本地存储',
s3: 'S3存储',
note: '更新后需要重启FileCodeBox',
},
mei: '每',
minute: '分钟',
upload: '上传',
files: '个文件',
allow: '允许',
errors: '次错误',
save: '保存',
saveSuccess: '保存成功',
},
fileView: {
code: '取件码',
prefix: '文件前缀',
suffix: '文件后缀',
text: '文本',
used_count: '已使用次数',
expired_count: '可用次数',
size: '文件大小',
expired_at: '过期时间',
file_path: '文件路径',
action: '操作',
delete: '删除',
delete_success: '删除成功',
forever: '永久有效',
unlimited_count: '不限次数',
download: '下载',
download_fail: '文件保存失败,请稍后再试~',
},
menu: {
fileManage: '文件管理',
systemSetting: '系统设置',
about: '关于我们',
color: '颜色模式',
local:'本地文件',
send: '寄件',
receive: '收件',
signout: '退出登录',
},
login: {
managePassword: '管理密码',
passwordNotEmpty: '密码不能为空',
login: '登 录',
loginSuccess: '登录成功',
loginError: '登录失败',
},
local: {
Name: '文件',
Expire: '过期',
Cancel: '取消',
Confirm: '确定',
}
},
msg:{
fileOverSize: '文件过大',
fileUploadFail: '上传失败',
fileUploadSuccess: '上传成功',
uploadClose: '本站已关闭游客上传',
}
};
-142
View File
@@ -1,142 +0,0 @@
export default {
send: {
disclaimers:'使用须知',
prompt1: '将文字、文件拖、粘贴到此处,或 ',
prompt2: '天数<7或限制次数(24h后删除)',
prompt3: '请输入您要寄出的文本,支持MarkDown格式',
share: '分享',
textShare: '文本分享',
clickUpload: '点击上传',
pleaseInputExpireValue: '请输入有效期',
expireStyle: '过期方式',
expireData: {
day: '天数',
hour: '小时',
forever: '永久',
minute: '分钟',
count: '次数'
},
expireValue: {
day: '天',
hour: '时',
minute: '分',
count: '次'
},
fileType: {
file: '文件',
text: '文本'
}
},
fileBox: {
copySuccess: '复制成功',
inputNotEmpty: '请输入五位取件码',
sendFileBox: '寄件箱',
ok:'确定',
receiveFileBox: '收件箱',
textDetail: '文本详情',
copy: '复 制',
close: '关 闭',
delete: '删 除',
download: '点 击 下 载',
detail: '查 看 详 情',
copyLink: '复制链接',
},
admin: {
about: {
source1: '本项目开源于Github:',
source2: 'FileCodeBox'
},
settings: {
name: '网站名称',
description: '网站描述',
uploadlimit: '上传限制',
explain:'界面说明',
errorlimit: '错误限制',
keywords: '关键词',
themeSelect: '主题选择',
notify_title: '通知标题',
notify_content: '通知内容',
background: '背景图片',
max_save_seconds: '最长保存',
maxSaveSecondsNote: '最长保存时间,单位:(秒),默认为0则为7天',
admin_token: '管理密码',
uploadSize: '文件大小',
expireStyle: '过期方式',
showAdminAddr: '显示后台',
showAdmin:{
open: '开启',
close: '关闭',
note: '是否在页面底部显示后台入口',
},
robotsText: 'robots.txt',
uploadSizeNote: '最大文件大小,单位:(Bytes),1mb=1 * 1024 * 1024',
openUpload: {
title: '开启上传',
open: '开启游客上传',
close: '关闭游客上传',
note: '关闭之后需要登录后台方可上传',
},
file_storage: {
title: '存储引擎',
local: '本地存储',
s3: 'S3存储',
note: '更新后需要重启FileCodeBox',
},
mei: '每',
minute: '分钟',
upload: '上传',
files: '个文件',
allow: '允许',
errors: '次错误',
save: '保存',
saveSuccess: '保存成功',
},
fileView: {
code: '取件码',
prefix: '文件前缀',
suffix: '文件后缀',
text: '文本',
used_count: '已使用次数',
expired_count: '可用次数',
size: '文件大小',
expired_at: '过期时间',
file_path: '文件路径',
action: '操作',
delete: '删除',
delete_success: '删除成功',
forever: '永久有效',
unlimited_count: '不限次数',
download: '下载',
download_fail: '文件保存失败,请稍后再试~',
},
menu: {
fileManage: '文件管理',
systemSetting: '系统设置',
about: '关于我们',
local:'本地文件',
color: '颜色模式',
send: '寄件',
receive: '收件',
signout: '退出登录',
},
login: {
managePassword: '管理密码',
passwordNotEmpty: '密码不能为空',
login: '登 录',
loginSuccess: '登录成功',
loginError: '登录失败',
},
local: {
Name: '文件',
Expire: '过期',
Cancel: '取消',
Confirm: '确定',
}
},
msg:{
fileOverSize: '文件过大',
fileUploadFail: '上传失败',
fileUploadSuccess: '上传成功',
uploadClose: '本站已关闭游客上传',
}
};
-139
View File
@@ -1,139 +0,0 @@
export default {
send: {
disclaimers:'使用須知',
prompt1: '將文字、文件拖、貼到此處,或 ',
prompt2: '天數<7或限制次數(24h後刪除)',
prompt3: '請輸入您要寄出的文本,支持MarkDown格式',
share: '分享',
textShare: '文本分享',
clickUpload: '點擊上傳',
pleaseInputExpireValue: '請輸入有效期',
expireStyle: '過期方式',
expireData: {
day: '天數',
hour: '小時',
forever: '永久',
minute: '分鐘',
count: '次數'
},
expireValue: {
day: '天',
hour: '時',
minute: '分',
count: '次'
},
fileType: {
file: '文件',
text: '文本'
}
},
fileBox: {
copySuccess: '複製成功',
inputNotEmpty: '請輸入五位取件碼',
sendFileBox: '寄件箱',
ok:'確定',
receiveFileBox: '收件箱',
textDetail: '文本詳情',
copy: '複 製',
close: '關 閉',
delete: '刪 除',
download: '點 擊 下 載',
detail: '查 看 詳 情',
copyLink: '複製連結',
},
admin: {
about: {
source1: '本項目開源於Github:',
source2: 'FileCodeBox'
},
settings: {
name: '網站名稱',
description: '網站描述',
uploadlimit: '上傳限制',
explain: '界面說明',
errorlimit: '錯誤限制',
keywords: '關鍵詞',
themeSelect: 'Theme選擇',
notify_title: '通知標題',
notify_content: '通知內容',
background: '背景圖片',
max_save_seconds: '最長保存',
maxSaveSecondsNote: '最長保存時間,單位:(秒),默認為0則為7天',
admin_token: '管理密碼',
uploadSize: '文件大小',
expireStyle: '過期方式',
uploadSizeNote: '最大文件大小,單位:(Bytes),1mb=1 * 1024 * 1024',
showAdmin: {
open: '開啟',
close: '關閉',
note: '是否在頁面底部顯示後臺入口',
},
openUpload: {
title: '開啟上傳',
open: '開啟遊客上傳',
close: '關閉遊客上傳',
note: '關閉之後需要登錄後臺方可上傳',
},
file_storage: {
title: '存儲引擎',
local: '本地存儲',
s3: 'S3存儲',
note: '更新後需要重啟FileCodeBox',
},
mei: '每',
minute: '分鐘',
upload: '上傳',
files: '個文件',
allow: '允許',
errors: '次錯誤',
save: '保存',
saveSuccess: '保存成功',
},
fileView: {
code: '取件碼',
prefix: '文件前綴',
suffix: '文件後綴',
text: '文本',
used_count: '已使用次數',
expired_count: '可用次數',
size: '文件大小',
expired_at: '過期時間',
file_path: '文件路徑',
action: '操作',
delete: '刪除',
delete_success: '刪除成功',
forever: '永久有效',
unlimited_count: '不限次數',
download: '下載',
download_fail: '文件保存失敗,請稍後再試~',
},
menu: {
fileManage: '文件管理',
systemSetting: '系統設置',
about: '關於我們',
color: '顏色模式',
send: '寄件',
local:'本地文件',
receive: '收件',
signout: '退出登錄',
},
login: {
managePassword: '管理密碼',
passwordNotEmpty: '密碼不能為空',
login: '登 錄',
loginSuccess: '登錄成功',
loginError: '登錄失敗',
},local: {
Name: '文件',
Expire: '過期',
Cancel: '取消',
Confirm: '確定',
},
},
msg:{
fileOverSize: '文件過大',
fileUploadFail: '上傳失敗',
fileUploadSuccess: '上傳成功',
uploadClose: '本站已關閉遊客上傳',
}
};
-15
View File
@@ -1,15 +0,0 @@
import './assets/main.css'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import i18n from "./locals/i18n";
const app = createApp(App)
app.use(createPinia())
app.use(i18n)
app.use(router)
app.mount('#app')
-46
View File
@@ -1,46 +0,0 @@
import { createRouter, createWebHashHistory } from 'vue-router';
const router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: () => import('@/views/Share/HomeView.vue'),
},
{
path: '/send',
name: 'send',
component: () => import('@/views/Share/SendView.vue'),
},
{
path: '/admin',
name: 'admin',
component: () => import('@/views/Admin/AdminView.vue'),
children:[
{
path: '',
name: 'file',
component: () => import('@/views/Admin/FileView.vue'),
},
{
path: 'setting',
name: 'setting',
component: () => import('@/views/Admin/SettingView.vue'),
},
{
path: 'local',
name: 'local',
component: () => import('@/views/Admin/LocalView.vue'),
},
{
path: 'about',
name: 'about',
component: () => import('@/views/Admin/AboutView.vue'),
},
]
}
],
});
export default router;
-13
View File
@@ -1,13 +0,0 @@
import { defineStore } from 'pinia';
import {ref} from "vue";
export const useAdminData = defineStore('adminData', () => {
const adminPassword = ref(localStorage.getItem('adminPassword') || '');
const isAdmin = ref(!!localStorage.getItem('adminPassword'));
function updateAdminPwd(pwd: string) {
adminPassword.value = pwd;
isAdmin.value = true;
localStorage.setItem('adminPassword', pwd);
}
return { adminPassword,updateAdminPwd,isAdmin };
});
-7
View File
@@ -1,7 +0,0 @@
import { defineStore } from 'pinia';
import {ref} from "vue";
export const useConfigStore = defineStore('config', () => {
const config:any = ref(JSON.parse(localStorage.getItem('config') || '{}') || {}); // 配置
return { config };
});
-7
View File
@@ -1,7 +0,0 @@
import { defineStore } from 'pinia';
import {ref} from "vue";
export const useFileBoxStore = defineStore('fileBox', () => {
const showFileBox = ref(false);
return { showFileBox };
});
-31
View File
@@ -1,31 +0,0 @@
import { defineStore } from 'pinia';
import {reactive} from "vue";
export const useFileDataStore = defineStore('fileData', () => {
const receiveData = reactive(JSON.parse(localStorage.getItem('receiveData')||'[]') || []); // 接收的数据
const shareData = reactive(JSON.parse(localStorage.getItem('shareData')||'[]') || []); // 接收的数据
function save() {
localStorage.setItem('receiveData', JSON.stringify(receiveData));
localStorage.setItem('shareData', JSON.stringify(shareData));
}
function addReceiveData(data:any) {
receiveData.unshift(data);
save();
}
function addShareData(data:any) {
shareData.unshift(data);
save();
}
function deleteReceiveData(index: number) {
receiveData.splice(index, 1);
save();
}
function deleteShareData(index: number) {
shareData.splice(index, 1);
save();
}
return { receiveData, shareData, save, addShareData, addReceiveData, deleteReceiveData, deleteShareData };
});
-32
View File
@@ -1,32 +0,0 @@
// @ts-ignore
import axios from "axios";
import { ElMessage } from "element-plus";
const instance = axios.create({
baseURL: import.meta.env.DEV ? "http://localhost:12345" : "/",
timeout: 6000000,
});
instance.interceptors.request.use(
(config: any) => {
config.headers= {
'Authorization': 'Bearer '+ localStorage.getItem('adminPassword') || '',
}
return config;
});
instance.interceptors.response.use(
(response:any) => {
if (response.status === 200 && response.config.url === '/admin/file/download') {
return response;
}
if (response.data.code === 200) {
return response.data;
} else {
ElMessage.error(response.data.detail);
return Promise.reject(response.data);
}
}, (error:any) => {
localStorage.clear()
ElMessage.error(error.response.data.detail);
return Promise.reject(error);
});
export const request = instance;
-10
View File
@@ -1,10 +0,0 @@
export function formatTimestamp(timestamp: string): string {
const date = new Date(timestamp);
const year = date.getFullYear();
const month = (date.getMonth() + 1).toString().padStart(2, '0');
const day = date.getDate().toString().padStart(2, '0');
const hours = date.getHours().toString().padStart(2, '0');
const minutes = date.getMinutes().toString().padStart(2, '0');
const seconds = date.getSeconds().toString().padStart(2, '0');
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
}
-15
View File
@@ -1,15 +0,0 @@
<template>
<main style="text-align: center">
<span>{{ t('admin.about.source1') }}
<em>
<a style="color: #333" href="https://github.com/vastsa/FileCodeBox">{{ t('admin.about.source2') }}</a>
</em>
</span>
</main>
</template>
<script lang="ts" setup>
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
</script>
-92
View File
@@ -1,92 +0,0 @@
<template>
<el-container v-if="adminData.isAdmin" style="height: 100vh;width: 100vw;position: relative;user-select: none">
<el-header>
<el-menu mode="horizontal" router :default-active="route.path">
<el-menu-item v-for="menu in menus" :index="menu.path" :key="menu.path">{{menu.name}}</el-menu-item>
<el-menu-item style="float: right" @click="toggleDark(!isDark)">{{ t('admin.menu.color') }}</el-menu-item>
<el-menu-item style="float: right" @click="logout()">{{ t('admin.menu.signout') }}</el-menu-item>
</el-menu>
</el-header>
<el-main>
<router-view/>
</el-main>
</el-container>
<el-form size="large" v-else>
<el-form-item :label="t('admin.login.managePassword')">
<el-input
v-model="adminData.adminPassword"
:placeholder="t('admin.login.passwordNotEmpty')"
type="password"
>
<template #append>
<el-button @click="refreshLoginStatus">{{ t('admin.login.login') }}</el-button>
</template>
</el-input>
</el-form-item>
</el-form>
</template>
<script setup lang="ts">
import { useDark, useToggle } from '@vueuse/core';
import { ref } from "vue";
const isDark = useDark()
const toggleDark = useToggle(isDark)
import { useRoute } from 'vue-router';
import { useAdminData } from "@/stores/adminData";
import { request } from "@/utils/request";
import { ElMessage } from "element-plus";
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
const adminData = useAdminData();
const route = useRoute();
const menus = ref([
{
name: t('admin.menu.fileManage'),
path: '/admin',
},
{
name: t('admin.menu.systemSetting'),
path: '/admin/setting',
},
{
name: t('admin.menu.local'),
path: '/admin/local',
},
{
name: t('admin.menu.about'),
path: '/admin/about',
},
{
name: t('admin.menu.send'),
path: '/#/send',
},
{
name: t('admin.menu.receive'),
path: '/#/',
},
]);
const refreshLoginStatus = () => {
request({
url: '/admin/login',
method: 'post',
data: {
password: adminData.adminPassword,
},
}).then((res: any) => {
if (res.code === 200) {
adminData.updateAdminPwd(res.detail.token);
ElMessage.success(t('admin.login.loginSuccess'));
} else {
localStorage.clear();
ElMessage.error(t('admin.login.loginError'));
}
});
};
const logout = () => {
localStorage.clear();
};
</script>
<style lang="scss" scoped>
</style>
-147
View File
@@ -1,147 +0,0 @@
<template>
<main>
<el-table size="large" stripe :data="tableData" style="width: 100%">
<el-table-column prop="code" :label="t('admin.fileView.code')" />
<el-table-column prop="prefix" :label="t('admin.fileView.prefix')" />
<el-table-column prop="suffix" :label="t('admin.fileView.suffix')" />
<el-table-column prop="text" :label="t('admin.fileView.text')">
<template #default="scope">
<span style="width: 6rem;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{ scope.row.text }}</span>
</template>
</el-table-column>
<el-table-column prop="used_count" :label="t('admin.fileView.used_count')" />
<el-table-column prop="expired_count" :label="t('admin.fileView.expired_count')">
<template #default="scope">
<span>{{ scope.row.expired_count > -1 ? scope.row.expired_count : t('admin.fileView.unlimited_count') }}</span>
</template>
</el-table-column>
<el-table-column prop="size" :label="t('admin.fileView.size')">
<template #default="scope">
<span>{{ Math.round(scope.row.size/1024/1024*100)/100 }}MB</span>
</template>
</el-table-column>
<el-table-column prop="expired_at" :label="t('admin.fileView.expired_at')">
<template #default="scope">
<span>{{ scope.row.expired_at ? formatTimestamp(scope.row.expired_at) : t('admin.fileView.forever') }}</span>
</template>
</el-table-column>
<el-table-column prop="file_path" :label="t('admin.fileView.file_path')" />
<el-table-column>
<template #header>
{{ t('admin.fileView.action')}}
</template>
<template #default="scope">
<el-button type="danger" size="small" @click="deleteFile(scope.row.id)">{{ t('admin.fileView.delete') }}</el-button>
<el-button type="success" size="small" @click="downloadFile(scope.row.id)" v-if="scope.row.file_path">{{ t('admin.fileView.download') }}</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination @size-change="updatePageSize" @current-change="updateCurrentPage" background layout="prev, pager, next" :page-size="params.size" :page-count="Math.round(params.total/params.size)" :total="params.total" />
</main>
</template>
<script lang="ts" setup>
import { request } from "@/utils/request";
import { formatTimestamp } from "@/utils/timestamp-format"
import { ref } from "vue";
import { ElMessage } from "element-plus";
const tableData = ref([]);
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
const params = ref({
page: 1,
size: 10,
total: 0,
});
const updateCurrentPage = (currentPage: number) => {
params.value.page = currentPage;
refreshData();
};
const deleteFile = (id: number) => {
request({
url: '/admin/file/delete',
method: 'delete',
data: {
id,
},
}).then(() => {
ElMessage.success(t('admin.fileView.delete_success'));
refreshData();
});
};
const downloadFile = (id: number) => {
request({
url: '/admin/file/download',
method: 'get',
params: {
id,
},
responseType: 'blob'
}).then((response: any) => {
const contentDisposition = response.headers['content-disposition'];
let filename = 'file';
// 使用正则表达式来提取文件名
const filenameMatch = contentDisposition.match(/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/);
if (filenameMatch != null && filenameMatch[1]) {
// 去除文件名周围的引号
filename = filenameMatch[1].replace(/['"]/g, '');
}
// @ts-ignore
if (window.showSaveFilePicker)
saveFileByWebApi(response.data, filename).catch(() => {
// ElMessage.error('文件保存函数不支持您的浏览器');
saveFileByElementA(response.data, filename).catch(() => {
ElMessage.error(t('admin.fileView.download_fail'));
})
})
else
saveFileByElementA(response.data, filename).catch(() => {
ElMessage.error(t('admin.fileView.download_fail'));
})
});
};
async function saveFileByElementA(fileBlob: Blob, filename: string) {
const downloadUrl = window.URL.createObjectURL(fileBlob);
const link = document.createElement('a');
link.href = downloadUrl;
link.download = filename; // 设置下载文件名
document.body.appendChild(link);
link.click();
// 清理并释放URL对象
window.URL.revokeObjectURL(downloadUrl);
document.body.removeChild(link);
}
async function saveFileByWebApi(fileBlob: Blob, filename: string) {
// 创建一个新句柄。
// @ts-ignore
const newHandle = await window.showSaveFilePicker({
suggestedName: filename,
});
// 创建一个 FileSystemWritableFileStream 用于写入。
const writableStream = await newHandle.createWritable();
// 写入我们的文件。
await writableStream.write(fileBlob);
// 关闭文件并将内容写入磁盘。
await writableStream.close();
}
const updatePageSize=(pageSize: number) => {
params.value.size = pageSize;
refreshData();
};
const refreshData=() => {
request({
url: '/admin/file/list',
method: 'get',
params: params.value,
}).then((res:any) => {
tableData.value = res.detail.data;
params.value.total = res.detail.total;
});
}
refreshData();
</script>
-155
View File
@@ -1,155 +0,0 @@
<template>
<div class="file-list">
<el-empty style="width: 90vw;" v-if="localFiles.length===0" description="请在/opt/filecodebox/local目录上传您需要分享的文件" />
<el-card v-for="file in localFiles" :key="file.name" class="file-card" shadow="hover">
<div class="file-info">
<div class="file-name">{{ file.file }}</div>
<div class="file-date">{{ file.ctime }}</div>
<div style="width: 100%;text-align: right">
<el-button type="primary" style="margin-top: 1rem" @click="shareLocalFile(file)" plain>分享</el-button>
<el-button type="danger" style="margin-top: 1rem" @click="deleteLocalFile(file)" plain>删除</el-button>
</div>
</div>
</el-card>
<el-dialog v-model="dialogFormVisible" width="500">
<el-form :model="form">
<el-form-item :label="t('admin.local.Name')" >
<el-input v-model="form.name" readonly autocomplete="off" />
</el-form-item>
<el-form-item :label="t('admin.local.Expire')" >
<el-input
v-model="form.expireValue"
style="width: 200px"
:placeholder="t('send.pleaseInputExpireValue')"
>
<template #prepend>
<el-select v-model="form.expireStyle" :placeholder="t('send.expireStyle')" style="width: 75px">
<el-option v-for="item in config.expireStyle" :key="item" :label="t(`send.expireData.${item}`)" :value="item" />
</el-select>
</template>
<template #append>
<span v-if="form.expireStyle==='day'">{{t('send.expireValue.day')}}</span>
<span v-else-if="form.expireStyle==='hour'">{{t('send.expireValue.hour')}}</span>
<span v-else-if="form.expireStyle==='minute'">{{t('send.expireValue.minute')}}</span>
<span v-else-if="form.expireStyle==='forever'">👌</span>
<span v-else-if="form.expireStyle==='count'">{{t('send.expireValue.count')}}</span>
</template>
</el-input>
</el-form-item>
</el-form>
<template #footer>
<div class="dialog-footer">
<el-button @click="dialogFormVisible = false">{{ t('admin.local.Cancel') }}</el-button>
<el-button type="primary" @click="toShareFile()">
{{ t('admin.local.Confirm') }}
</el-button>
</div>
</template>
</el-dialog>
</div>
</template>
<script setup lang="ts">
import {ref, reactive} from 'vue';
import {request} from "@/utils/request";
import {ElMessage} from "element-plus";
import {useConfigStore} from "@/stores/config";
import {useI18n} from "vue-i18n";
const { t } = useI18n()
const { config } = useConfigStore();
const localFiles:any = ref([]);
const loadLocalFiles = ()=>{
request({
url: '/admin/local/lists',
method: 'get',
}).then((data:any) => {
localFiles.value = data.detail;
});
}
const dialogFormVisible = ref(false);
const form = reactive({
name: '1',
expireStyle: 'day',
expireValue: 1,
})
loadLocalFiles()
const deleteLocalFile = (file: any) => {
request({
url: '/admin/local/delete',
method: 'delete',
data: {
filename: file.file
}
}).then((data:any) => {
ElMessage.success(data.detail);
loadLocalFiles()
});
};
const shareLocalFile = (file:any) => {
form.name = file.file;
dialogFormVisible.value = true;
};
const toShareFile=()=>{
request({
url: '/admin/local/share',
method: 'post',
data: {
filename: form.name,
expire_style: form.expireStyle,
expire_value: form.expireValue
}
}).then((data:any) => {
dialogFormVisible.value = false;
ElMessage.success(
{
showClose: true,
message: 'Code:' + data.detail.code,
duration: 0
}
);
loadLocalFiles()
});
}
</script>
<style scoped>
.file-list {
display: grid;
width: 100%;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 16px;
padding: 16px;
}
.file-card {
align-items: center;
justify-content: space-between;
border-radius: 10px;
transition: all 0.3s ease;
}
.file-card:hover {
box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.25);
}
.file-info {
flex: 1;
}
.file-name {
font-size: 14px;
font-weight: bold;
white-space: nowrap;
}
.file-date {
font-size: 12px;
color: #a0a0b2;
}
</style>
-219
View File
@@ -1,219 +0,0 @@
<template>
<el-form>
<el-form-item size="large" :label="t('admin.settings.name')">
<el-input v-model="config.name" />
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.description')">
<el-input v-model="config.description" />
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.keywords')" style="letter-spacing: 0.3rem">
<el-input v-model="config.keywords" />
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.themeSelect')" >
<el-select
v-model="config.themesSelect"
style="width: 100%"
>
<el-option v-for="item in config.themesChoices" :label="item.name" :value="item.key" />
</el-select>
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.notify_title')">
<el-input v-model="config.notify_title" />
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.notify_content')">
<el-input v-model="config.notify_content" />
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.background')">
<span style="display: flex;height: 38px;width: 45%">
<el-input v-model="config.background" placeholder="url" />
</span>
<span style="display: flex;height: 38px;margin-left: 20px">
Opacity: <el-input type="number" v-model="config.opacity" />
</span>
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.showAdminAddr')">
<el-select v-model="config.showAdminAddr" style="width: 80%">
<el-option :label="t('admin.settings.showAdmin.open')" :value="1" />
<el-option :label="t('admin.settings.showAdmin.close')" :value="0" />
</el-select>
<small style="margin-left: 0.4rem">{{ t('admin.settings.showAdmin.note') }}</small>
</el-form-item>
<el-form-item size="large" label="robots.Text">
<el-input type="textarea" v-model="config.robotsText" placeholder="explain" />
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.explain')">
<el-input type="textarea" v-model="config.page_explain" placeholder="explain" />
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.admin_token')">
<el-input type="password" v-model="config.admin_token" />
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.uploadSize')">
<el-input type="number" v-model="config.uploadSize" />
<template #append></template>
<small>Bytes:{{ t('admin.settings.uploadSizeNote') }}</small>
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.max_save_seconds')">
<el-input type="number" v-model="config.max_save_seconds" />
<small>Seconds:{{t('admin.settings.maxSaveSecondsNote')}}</small>
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.expireStyle')" >
<el-select
v-model="config.expireStyle"
multiple
style="width: 100%"
>
<el-option :label="t('send.expireData.day')" value="day" />
<el-option :label="t('send.expireData.hour')" value="hour" />
<el-option :label="t('send.expireData.minute')" value="minute" />
<el-option :label="t('send.expireData.forever')" value="forever" />
<el-option :label="t('send.expireData.count')" value="count" />
</el-select>
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.openUpload.title')">
<el-select v-model="config.openUpload" style="width: 80%">
<el-option :label="t('admin.settings.openUpload.open')" :value="1" />
<el-option :label="t('admin.settings.openUpload.close')" :value="0" />
</el-select>
<small style="margin-left: 0.4rem">{{ t('admin.settings.openUpload.note') }}</small>
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.file_storage.title')">
<el-select v-model="config.file_storage" style="width: 80%">
<el-option :label="t('admin.settings.file_storage.local')" value="local" />
<el-option :label="t('admin.settings.file_storage.s3')" value="s3" />
</el-select>
<small style="margin-left: 0.4rem">{{ t('admin.settings.file_storage.note') }}</small>
</el-form-item>
<div v-if="config.file_storage==='s3'">
<el-form-item size="large" label="S3 AccessKeyId">
<el-input v-model="config.s3_access_key_id" />
</el-form-item>
<el-form-item size="large" label="S3 SecretAccessKey">
<el-input v-model="config.s3_secret_access_key" />
</el-form-item>
<el-form-item size="large" label="S3 BucketName">
<el-input v-model="config.s3_bucket_name" />
</el-form-item>
<el-form-item size="large" label="S3 EndpointUrl">
<el-input v-model="config.s3_endpoint_url" />
</el-form-item>
<el-form-item size="large" label="S3 hostname">
<el-input v-model="config.s3_hostname" />
</el-form-item>
<el-form-item size="large" label="S3 region name">
<el-input v-model="config.s3_region_name" />
</el-form-item>
<el-form-item size="large" label="S3 Signature Version">
<el-input v-model="config.s3_signature_version" />
</el-form-item>
<el-form-item size="large" label="Aws Session Token">
<el-input v-model="config.aws_session_token" />
</el-form-item>
</div>
<el-form-item size="large" :label="t('admin.settings.uploadlimit')">
<span style="display: flex;height: 38px">
<span style="margin-right: 0.4rem">{{ t('admin.settings.mei') }}</span>
<el-input type="number" v-model="config.uploadMinute" />
<span style="width: 200px;margin-left: 0.4rem">{{ t('admin.settings.minute') }}</span>
</span>
<span style="display: flex;height: 38px">
<span style="width:3rem;margin-right: 0.4rem">{{ t('admin.settings.upload') }}</span>
<el-input type="number" v-model="config.uploadCount" />
<span style="width: 200px;margin-left: 0.4rem">{{ t('admin.settings.files') }}</span>
</span>
</el-form-item>
<el-form-item size="large" :label="t('admin.settings.errorlimit')">
<span style="display: flex;height: 38px">
<span style="margin-right: 0.4rem">{{ t('admin.settings.mei') }}</span>
<el-input type="number" v-model="config.errorMinute" />
<span style="width: 200px;margin-left: 0.4rem">{{ t('admin.settings.minute') }}</span>
</span>
<span style="display: flex;height: 38px">
<span style="width:3rem;margin-right: 0.4rem">{{ t('admin.settings.allow') }}</span>
<el-input type="number" v-model="config.errorCount" />
<span style="width: 200px;margin-left: 0.4rem">{{ t('admin.settings.errors') }}</span>
</span>
</el-form-item>
<el-form-item>
<el-button @click="submitSave" type="primary" style="margin: auto">{{ t('admin.settings.save') }}</el-button>
</el-form-item>
</el-form>
</template>
<script lang="ts" setup>
import {ref} from "vue";
import { request } from "@/utils/request";
import { ElMessage } from "element-plus";
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
const config:any = ref({
name: '',
description: '',
file_storage: '',
expireStyle: [],
themesChoices: [],
themesSelect: '',
admin_token: '',
robotsText:'',
keywords: '',
notify_title: '',
notify_content: '',
openUpload: 1,
uploadSize: 1,
uploadMinute: 1,
max_save_seconds: 0,
opacity: 0.9,
s3_access_key_id: '',
background: '',
showAdminAddr: 0,
page_explain: '',
s3_secret_access_key: '',
aws_session_token: '',
s3_signature_version: '',
s3_region_name: '',
s3_bucket_name: '',
s3_endpoint_url: '',
s3_hostname: '',
uploadCount: 1,
errorMinute: 1,
errorCount: 1,
});
const refreshData = ()=>{
request({
url: '/admin/config/get',
method: 'get'
}).then((res: any) => {
config.value = res.detail;
});
}
refreshData();
const submitSave = () => {
request({
url: '/admin/config/update',
method: 'patch',
data: config.value
}).then((res: any) => {
if (res.code == 200) {
ElMessage.success(t('admin.settings.saveSuccess'));
} else {
ElMessage.error(res.message);
}
});
};
</script>
<style lang="scss">
.left-menu {
margin-bottom: 1rem;
cursor: pointer;
text-align: center;
font-weight: bold;
font-size: 1rem;
letter-spacing: 0.4rem;
}
small,.el-form-item__content{
color: #909399;
margin-left: 0.4rem;
}
</style>
-126
View File
@@ -1,126 +0,0 @@
<script setup lang="ts">
import { Upload, TakeawayBox } from '@element-plus/icons-vue';
import { onMounted, reactive, ref, watch } from 'vue'
import { useRoute, useRouter } from "vue-router";
import CardTools from "@/components/CardTools.vue";
import { useFileBoxStore } from "@/stores/fileBox";
import { useFileDataStore } from "@/stores/fileData";
import { ElMessageBox } from 'element-plus'
import { request } from "@/utils/request";
const fileBoxStore = useFileBoxStore();
const fileStore = useFileDataStore();
const router = useRouter()
const route = useRoute()
const code = ref('')
const input_status = reactive({
'readonly': false,
'loading': false,
})
import { useI18n } from 'vue-i18n'
import { useConfigStore } from "@/stores/config";
const { config } = useConfigStore()
const noDialog = ()=>{
ElMessageBox.alert(config.explain, t('send.disclaimers'), {
confirmButtonText: t('fileBox.ok'),
});
}
const { t } = useI18n()
onMounted(() => {
const query_code = route.query.code as string;
if (query_code) {
code.value = query_code
}
})
watch(code, (newVal) => {
if (newVal.length === 5) {
input_status.readonly = true;
input_status.loading = true;
request({
'url': '/share/select/',
'method': 'POST',
'data': {
'code': newVal
}
}).then((res: any) => {
fileBoxStore.showFileBox = true;
let flag = true;
fileStore.receiveData.forEach((file: any) => {
if (file.code === res.detail.code) {
flag = false;
return;
}
});
if (flag) {
fileStore.addReceiveData(res.detail);
}
}).finally(() => {
input_status.readonly = false;
input_status.loading = false;
code.value = '';
});
}
});
const listenInput = (num: number) => {
if (code.value.length < 5) {
code.value += num
}
};
const name = atob('RmlsZUNvZGVCb3ggVjIuMQ==');
const url = atob('aHR0cHM6Ly9naXRodWIuY29tL3Zhc3RzYS9GaWxlQ29kZUJveA==');
</script>
<template>
<main>
<el-card class="card" style="padding-bottom: 1rem">
<CardTools/>
<el-row style="text-align: center">
<el-col :span="24">
<el-input :readonly="input_status.readonly" v-loading="input_status.loading" v-model="code" class="code-input" round autofocus clearable maxlength="5" :placeholder="t('fileBox.inputNotEmpty')"/>
</el-col>
<el-col :span=8 v-for="i in 9" :key="i">
<el-button class="key-button" round @click="listenInput(i)">{{ i }}</el-button>
</el-col>
<el-col :span=8>
<el-button @click="router.push({'name':'send'})" class="key-button" :icon="Upload" round>
</el-button>
</el-col>
<el-col :span=8>
<el-button class="key-button" round @click="listenInput(0)">0</el-button>
</el-col>
<el-col :span=8>
<el-button class="key-button" round :icon="TakeawayBox" @click="fileBoxStore.showFileBox=true">
</el-button>
</el-col>
</el-row>
</el-card>
<div style="text-align: center; margin-top: 1rem;color: #606266">
<a style="text-decoration: none;color: #606266" target="_blank" :href="url">
{{ name }}
</a>
<a @click="noDialog" style="text-decoration: none;color: #606266;margin-left: 1rem" href="javascript:void(0)">{{t('send.disclaimers')}}</a>
<a v-if="config.show_admin_address" style="color: #606266;margin-left: 1rem;text-decoration: none" href="#/admin">Admin</a>
</div>
</main>
</template>
<style lang='scss'>
.key-button{
width: 6rem;
height: 6rem;
margin: 0.2rem;
font-size: 2rem;
font-weight: bold;
text-align: center;
}
.code-input {
height: 100px;
font-size: 30px;
font-weight: bold;
margin: 1rem 0;
.el-input__wrapper{
border-radius: 20px !important;
}
}
</style>
-59
View File
@@ -1,59 +0,0 @@
<script setup lang="ts">
import { ref } from 'vue'
import CardTools from "@/components/CardTools.vue";
import UploadFile from "@/components/UploadFile.vue";
import UploadText from "@/components/UploadText.vue";
import { useI18n } from 'vue-i18n'
import { useConfigStore } from "@/stores/config";
const { config } = useConfigStore();
const { t } = useI18n()
const shareData = ref({
expireValue: 1,
expireStyle: config.expireStyle.length > 0 ? config.expireStyle[0] : 'day',
targetType: 'file',
})
</script>
<template>
<main>
<el-card class="card" style="position: relative" :body-style="{ padding: '0' }">
<card-tools style="padding: 1rem"/>
<div style="display: flex;margin: 1rem">
<div>
<el-input
v-model="shareData.expireValue"
style="width: 200px"
:placeholder="t('send.pleaseInputExpireValue')"
>
<template #prepend>
<el-select v-model="shareData.expireStyle" :placeholder="t('send.expireStyle')" style="width: 75px">
<el-option v-for="item in config.expireStyle" :key="item" :label="t(`send.expireData.${item}`)" :value="item" />
</el-select>
</template>
<template #append>
<span v-if="shareData.expireStyle=='day'">{{t('send.expireValue.day')}}</span>
<span v-else-if="shareData.expireStyle=='hour'">{{t('send.expireValue.hour')}}</span>
<span v-else-if="shareData.expireStyle=='minute'">{{t('send.expireValue.minute')}}</span>
<span v-else-if="shareData.expireStyle=='forever'">👌</span>
<span v-else-if="shareData.expireStyle=='count'">{{t('send.expireValue.count')}}</span>
</template>
</el-input>
</div>
<el-radio-group v-model="shareData.targetType" style="margin-left: 1rem;">
<el-radio label="file">
{{t('send.fileType.file')}}
</el-radio>
<el-radio label="text">
{{t('send.fileType.text')}}
</el-radio>
</el-radio-group>
</div>
<div style="margin: 1rem">
<upload-file :shareData="shareData" v-if="shareData.targetType=='file'"/>
<upload-text :shareData="shareData" v-else-if="shareData.targetType=='text'"/>
</div>
</el-card>
</main>
</template>
-12
View File
@@ -1,12 +0,0 @@
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"composite": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
-11
View File
@@ -1,11 +0,0 @@
{
"files": [],
"references": [
{
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.app.json"
}
]
}
-16
View File
@@ -1,16 +0,0 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"include": [
"vite.config.*",
"vitest.config.*",
"cypress.config.*",
"nightwatch.conf.*",
"playwright.config.*"
],
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"types": ["node"]
}
}
-24
View File
@@ -1,24 +0,0 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
export default defineConfig({
plugins: [
vue(),
AutoImport({
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
}),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
})
File diff suppressed because it is too large. Load diff
+57 -47
View File
@@ -16,6 +16,7 @@ from apps.base.models import KeyValue
from apps.base.utils import ip_limit from apps.base.utils import ip_limit
from apps.base.views import share_api from apps.base.views import share_api
from apps.admin.views import admin_api from apps.admin.views import admin_api
from core.database import init_db
from core.response import APIResponse from core.response import APIResponse
from core.settings import data_root, settings, BASE_DIR, DEFAULT_CONFIG from core.settings import data_root, settings, BASE_DIR, DEFAULT_CONFIG
from core.tasks import delete_expire_files from core.tasks import delete_expire_files
@@ -24,16 +25,6 @@ from contextlib import asynccontextmanager
from tortoise import Tortoise from tortoise import Tortoise
async def init_db():
await Tortoise.init(
db_url=f'sqlite://{data_root}/filecodebox.db',
modules={'models': ['apps.base.models']},
use_tz=False,
timezone="Asia/Shanghai"
)
await Tortoise.generate_schemas()
@asynccontextmanager @asynccontextmanager
async def lifespan(app: FastAPI): async def lifespan(app: FastAPI):
# 初始化数据库 # 初始化数据库
@@ -41,7 +32,11 @@ async def lifespan(app: FastAPI):
# 加载配置 # 加载配置
await load_config() await load_config()
app.mount('/assets', StaticFiles(directory=f'./{settings.themesSelect}/assets'), name="assets") app.mount(
"/assets",
StaticFiles(directory=f"./{settings.themesSelect}/assets"),
name="assets",
)
# 启动后台任务 # 启动后台任务
task = asyncio.create_task(delete_expire_files()) task = asyncio.create_task(delete_expire_files())
@@ -56,14 +51,18 @@ async def lifespan(app: FastAPI):
async def load_config(): async def load_config():
user_config, _ = await KeyValue.get_or_create(key='settings', defaults={'value': DEFAULT_CONFIG}) user_config, _ = await KeyValue.get_or_create(
await KeyValue.update_or_create(key='sys_start', defaults={'value': int(time.time() * 1000)}) key="settings", defaults={"value": DEFAULT_CONFIG}
)
await KeyValue.update_or_create(
key="sys_start", defaults={"value": int(time.time() * 1000)}
)
settings.user_config = user_config.value settings.user_config = user_config.value
# 更新 ip_limit 配置 # 更新 ip_limit 配置
ip_limit['error'].minutes = settings.errorMinute ip_limit["error"].minutes = settings.errorMinute
ip_limit['error'].count = settings.errorCount ip_limit["error"].count = settings.errorCount
ip_limit['upload'].minutes = settings.uploadMinute ip_limit["upload"].minutes = settings.uploadMinute
ip_limit['upload'].count = settings.uploadCount ip_limit["upload"].count = settings.uploadCount
app = FastAPI(lifespan=lifespan) app = FastAPI(lifespan=lifespan)
@@ -80,11 +79,11 @@ app.add_middleware(
register_tortoise( register_tortoise(
app, app,
config={ config={
'connections': {'default': f'sqlite://{data_root}/filecodebox.db'}, "connections": {"default": f"sqlite://{data_root}/filecodebox.db"},
'apps': { "apps": {
'models': { "models": {
'models': ['apps.base.models'], "models": ["apps.base.models"],
'default_connection': 'default', "default_connection": "default",
}, },
}, },
}, },
@@ -96,39 +95,50 @@ app.include_router(share_api)
app.include_router(admin_api) app.include_router(admin_api)
@app.get('/') @app.exception_handler(404)
async def index(): @app.get("/")
async def index(request=None, exc=None):
return HTMLResponse( return HTMLResponse(
content=open(BASE_DIR / f'{settings.themesSelect}/index.html', 'r', encoding='utf-8').read() content=open(
.replace('{{title}}', str(settings.name)) BASE_DIR / f"{settings.themesSelect}/index.html", "r", encoding="utf-8"
.replace('{{description}}', str(settings.description)) )
.replace('{{keywords}}', str(settings.keywords)) .read()
.replace('{{opacity}}', str(settings.opacity)) .replace("{{title}}", str(settings.name))
.replace('{{background}}', str(settings.background)) .replace("{{description}}", str(settings.description))
, media_type='text/html', headers={'Cache-Control': 'no-cache'}) .replace("{{keywords}}", str(settings.keywords))
.replace("{{opacity}}", str(settings.opacity))
.replace('"/assets/', '"assets/')
.replace("{{background}}", str(settings.background)),
media_type="text/html",
headers={"Cache-Control": "no-cache"},
)
@app.get('/robots.txt') @app.get("/robots.txt")
async def robots(): async def robots():
return HTMLResponse(content=settings.robotsText, media_type='text/plain') return HTMLResponse(content=settings.robotsText, media_type="text/plain")
@app.post('/') @app.post("/")
async def get_config(): async def get_config():
return APIResponse(detail={ return APIResponse(
'name': settings.name, detail={
'description': settings.description, "name": settings.name,
'explain': settings.page_explain, "description": settings.description,
'uploadSize': settings.uploadSize, "explain": settings.page_explain,
'expireStyle': settings.expireStyle, "uploadSize": settings.uploadSize,
'openUpload': settings.openUpload, "expireStyle": settings.expireStyle,
'notify_title': settings.notify_title, "openUpload": settings.openUpload,
'notify_content': settings.notify_content, "notify_title": settings.notify_title,
'show_admin_address': settings.showAdminAddr, "notify_content": settings.notify_content,
}) "show_admin_address": settings.showAdminAddr,
}
)
if __name__ == '__main__': if __name__ == "__main__":
import uvicorn import uvicorn
uvicorn.run(app='main:app', host="0.0.0.0", port=settings.port, reload=False, workers=1) uvicorn.run(
app="main:app", host="0.0.0.0", port=settings.port, reload=False, workers=1
)
+54
View File
@@ -0,0 +1,54 @@
import { request } from '@/utils/request'; // 假设这是你的请求函数
import { ElMessage } from 'element-plus'; // Element Plus 的消息组件
import { t } from '@/locales'; // 国际化函数
import { saveFileByWebApi, saveFileByElementA } from '@/utils/file'; // 文件保存工具函数
const downloadFile = (id: number) => {
request({
url: '/admin/file/download',
method: 'get',
params: {
id,
},
responseType: 'blob'
}).then((response: any) => {
const contentDisposition = response.headers?.['content-disposition'] || '';
let filename = 'file';
try {
// 先尝试获取 filename* 参数
const filenameStarMatch = contentDisposition.match(/filename\*=UTF-8''([^;]*)/);
if (filenameStarMatch) {
filename = decodeURIComponent(filenameStarMatch[1]);
} else {
// 如果没有 filename*,则尝试获取普通 filename
const filenameMatch = contentDisposition.match(/filename="([^"]*)"/) || contentDisposition.match(/filename=([^;]*)/);
if (filenameMatch) {
filename = filenameMatch[1];
}
}
} catch (error) {
console.warn('解析文件名失败:', error);
// 如果解析失败,使用默认文件名
filename = `download_${id}`;
}
// @ts-ignore
if (window.showSaveFilePicker) {
saveFileByWebApi(response.data, filename).catch(() => {
saveFileByElementA(response.data, filename).catch(() => {
ElMessage.error(t('admin.fileView.download_fail'));
});
});
} else {
saveFileByElementA(response.data, filename).catch(() => {
ElMessage.error(t('admin.fileView.download_fail'));
});
}
}).catch(error => {
console.error('下载文件失败:', error);
ElMessage.error(t('admin.fileView.download_fail'));
});
};
export default downloadFile;
+6 -2
View File
@@ -22,6 +22,7 @@
## 🚀 更新计划 ## 🚀 更新计划
- [ ] 切片上传,同文件秒传,断点续传 - [ ] 切片上传,同文件秒传,断点续传
- [x] 适配子目录
- [x] 用户登录重构 - [x] 用户登录重构
- [x] webdav存储 - [x] webdav存储
- [x] 存储支持自定义路径 - [x] 存储支持自定义路径
@@ -36,9 +37,12 @@ FileCodeBox 是一个基于 FastAPI + Vue3 开发的轻量级文件分享工具
<div align="center"> <div align="center">
<h3> <h3>
<a href="https://github.com/vastsa/FileCodeBoxFronted" target="_blank"> <a href="https://github.com/vastsa/FileCodeBoxFronted" target="_blank">
<img src="https://img.shields.io/badge/Frontend-FileCodeBoxFronted-blue?style=for-the-badge&logo=github" alt="前端仓库"> <img src="https://img.shields.io/badge/Frontend-FileCodeBoxFronted2024-blue?style=for-the-badge&logo=github" alt="前端仓库2024">
</a> </a>
&nbsp;&nbsp;&nbsp; <a href="https://github.com/vastsa/FileCodeBoxFronted2023" target="_blank">
<img src="https://img.shields.io/badge/Frontend-FileCodeBoxFronted2023-blue?style=for-the-badge&logo=github" alt="前端仓库2023">
</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://share.lanol.cn" target="_blank"> <a href="https://share.lanol.cn" target="_blank">
<img src="https://img.shields.io/badge/Demo-share.lanol.cn-green?style=for-the-badge&logo=internet-explorer" alt="演示站点"> <img src="https://img.shields.io/badge/Demo-share.lanol.cn-green?style=for-the-badge&logo=internet-explorer" alt="演示站点">
</a> </a>
+6 -3
View File
@@ -28,11 +28,14 @@ FileCodeBox is a lightweight file sharing tool developed with FastAPI + Vue3. It
<div align="center"> <div align="center">
<h3> <h3>
<a href="https://github.com/vastsa/FileCodeBoxFronted" target="_blank"> <a href="https://github.com/vastsa/FileCodeBoxFronted" target="_blank">
<img src="https://img.shields.io/badge/Frontend-FileCodeBoxFronted-blue?style=for-the-badge&logo=github" alt="Frontend Repository"> <img src="https://img.shields.io/badge/Frontend-FileCodeBoxFronted2024-blue?style=for-the-badge&logo=github" alt="前端仓库2024">
</a> </a>
&nbsp;&nbsp;&nbsp; <a href="https://github.com/vastsa/FileCodeBoxFronted2023" target="_blank">
<img src="https://img.shields.io/badge/Frontend-FileCodeBoxFronted2023-blue?style=for-the-badge&logo=github" alt="前端仓库2023">
</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://share.lanol.cn" target="_blank"> <a href="https://share.lanol.cn" target="_blank">
<img src="https://img.shields.io/badge/Demo-share.lanol.cn-green?style=for-the-badge&logo=internet-explorer" alt="Demo Site"> <img src="https://img.shields.io/badge/Demo-share.lanol.cn-green?style=for-the-badge&logo=internet-explorer" alt="演示站点">
</a> </a>
</h3> </h3>
</div> </div>
+4 -45
View File
@@ -1,49 +1,8 @@
aioboto3==11.2.0 aioboto3==11.2.0
aiobotocore==2.5.0 aiohttp==3.10.11
aiohttp==3.9.2
aioitertools==0.11.0
aiosignal==1.3.1
aiosqlite==0.17.0
annotated-types==0.5.0
anyio==3.7.1
async-timeout==4.0.3
atlastk==0.13.2
attrs==23.1.0
boto3==1.26.76
botocore==1.29.76 botocore==1.29.76
certifi==2024.8.30
cffi==1.17.1
charset-normalizer==3.2.0
click==8.1.6
cryptography==43.0.1
exceptiongroup==1.1.2
fastapi==0.115.0 fastapi==0.115.0
frozenlist==1.4.0 pydantic==2.4.0
greenlet==2.0.2
h11==0.14.0
idna==3.7
iso8601==1.1.0
jmespath==1.0.1
msal==1.31.0
multidict==6.0.4
Office365-REST-Python-Client==2.5.2
pycparser==2.22
pydantic==2.1.1
pydantic_core==2.4.0
PyJWT==2.9.0
pypika-tortoise==0.1.6
python-dateutil==2.8.2
python-multipart==0.0.7
pytz==2023.3
requests==2.32.3
s3transfer==0.6.1
six==1.16.0
sniffio==1.3.0
SQLAlchemy==2.0.19
starlette==0.38.6
tortoise-orm==0.20.0
typing_extensions==4.8.0
urllib3==1.26.20
uvicorn==0.23.2 uvicorn==0.23.2
wrapt==1.15.0 tortoise-orm==0.20.0
yarl==1.9.2 python-multipart==0.0.20
-1
View File
@@ -1 +0,0 @@
import{d as s,a8 as n,Y as c,W as e,a1 as r,$ as a,g as o,o as i}from"./index-CVeK0dPI.js";const l={style:{"text-align":"center"}},u={style:{color:"#333"},href:"https://github.com/vastsa/FileCodeBox"},f=s({__name:"AboutView",setup(_){const{t}=n();return(m,d)=>(i(),c("main",l,[e("span",null,[r(a(o(t)("admin.about.source1"))+" ",1),e("em",null,[e("a",u,a(o(t)("admin.about.source2")),1)])])]))}});export{f as default};
+1
View File
@@ -0,0 +1 @@
import{a as s,a8 as n,P as c,N as e,U as r,R as a,j as o,o as i}from"./index-5orz1M6_.js";const l={style:{"text-align":"center"}},u={style:{color:"#333"},href:"https://github.com/vastsa/FileCodeBox"},f=s({__name:"AboutView",setup(_){const{t}=n();return(m,p)=>(i(),c("main",l,[e("span",null,[r(a(o(t)("admin.about.source1"))+" ",1),e("em",null,[e("a",u,a(o(t)("admin.about.source2")),1)])])]))}});export{f as default};
-1
View File
@@ -1 +0,0 @@
import{T as Ue,t as ce,E as Ye,b as Ze}from"./el-button-CIFg-IwZ.js";import{E as Je,a as Ke}from"./el-form-item-_5R7KEC5.js";/* empty css */import"./el-tooltip-l0sNRNKZ.js";import{E as Pe,C as Xe}from"./el-popper-CwdMC8HJ.js";import{d as y,u as $,o as S,e as J,w,r as k,aC as Oe,aR as Qe,g as h,T as Ne,_ as V,j as ye,aG as et,a as f,Y as A,f as L,h as Ie,ak as q,E as B,J as ie,F as ve,aS as tt,b as Ce,aT as ne,l as de,t as x,aU as nt,aV as at,v as Ee,R as ue,p as _e,S as Se,U as Be,A as I,H as K,M as Ae,B as ze,D as ot,ab as pe,aW as we,aX as $e,k as me,m as st,aY as lt,aZ as it,a_ as ut,s as rt,am as ke,n as ct,aA as dt,V as He,W as Me,a1 as ae,$ as oe,aK as mt,aM as pt,aN as ft,a8 as vt,aa as ht,C as D,ac as gt,af as bt,aF as Te}from"./index-CVeK0dPI.js";import{t as re}from"./aria-nkjrUMQ-.js";import{f as _t}from"./vnode-D5ByjH_G.js";import"./_baseClone-DRpC8OZL.js";const Mt=y({name:"ElCollapseTransition"}),yt=y({...Mt,setup(e){const a=$("collapse-transition"),n=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},o={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height&&(t.dataset.elExistsHeight=t.style.height),t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){requestAnimationFrame(()=>{t.dataset.oldOverflow=t.style.overflow,t.dataset.elExistsHeight?t.style.maxHeight=t.dataset.elExistsHeight:t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"})},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){n(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){n(t)},leaveCancelled(t){n(t)}};return(t,v)=>(S(),J(Ne,Oe({name:h(a).b()},Qe(o)),{default:w(()=>[k(t.$slots,"default")]),_:3},16,["name"]))}});var It=V(yt,[["__file","collapse-transition.vue"]]);const Ct=ye(It),Et=y({name:"ElContainer"}),St=y({...Et,props:{direction:{type:String}},setup(e){const a=e,n=et(),o=$("container"),t=f(()=>a.direction==="vertical"?!0:a.direction==="horizontal"?!1:n&&n.default?n.default().some(d=>{const g=d.type.name;return g==="ElHeader"||g==="ElFooter"}):!1);return(v,d)=>(S(),A("section",{class:L([h(o).b(),h(o).is("vertical",h(t))])},[k(v.$slots,"default")],2))}});var wt=V(St,[["__file","container.vue"]]);const xt=y({name:"ElAside"}),$t=y({...xt,props:{width:{type:String,default:null}},setup(e){const a=e,n=$("aside"),o=f(()=>a.width?n.cssVarBlock({width:a.width}):{});return(t,v)=>(S(),A("aside",{class:L(h(n).b()),style:Ie(h(o))},[k(t.$slots,"default")],6))}});var De=V($t,[["__file","aside.vue"]]);const kt=y({name:"ElFooter"}),Tt=y({...kt,props:{height:{type:String,default:null}},setup(e){const a=e,n=$("footer"),o=f(()=>a.height?n.cssVarBlock({height:a.height}):{});return(t,v)=>(S(),A("footer",{class:L(h(n).b()),style:Ie(h(o))},[k(t.$slots,"default")],6))}});var Le=V(Tt,[["__file","footer.vue"]]);const Pt=y({name:"ElHeader"}),Ot=y({...Pt,props:{height:{type:String,default:null}},setup(e){const a=e,n=$("header"),o=f(()=>a.height?n.cssVarBlock({height:a.height}):{});return(t,v)=>(S(),A("header",{class:L(h(n).b()),style:Ie(h(o))},[k(t.$slots,"default")],6))}});var Ve=V(Ot,[["__file","header.vue"]]);const Nt=y({name:"ElMain"}),Bt=y({...Nt,setup(e){const a=$("main");return(n,o)=>(S(),A("main",{class:L(h(a).b())},[k(n.$slots,"default")],2))}});var Fe=V(Bt,[["__file","main.vue"]]);const At=ye(wt,{Aside:De,Footer:Le,Header:Ve,Main:Fe});q(De);q(Le);const zt=q(Ve),Ht=q(Fe);let Dt=class{constructor(a,n){this.parent=a,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(a){a===this.subMenuItems.length?a=0:a<0&&(a=this.subMenuItems.length-1),this.subMenuItems[a].focus(),this.subIndex=a}addListeners(){const a=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",o=>{let t=!1;switch(o.code){case B.down:{this.gotoSubIndex(this.subIndex+1),t=!0;break}case B.up:{this.gotoSubIndex(this.subIndex-1),t=!0;break}case B.tab:{re(a,"mouseleave");break}case B.enter:case B.space:{t=!0,o.currentTarget.click();break}}return t&&(o.preventDefault(),o.stopPropagation()),!1})})}},Lt=class{constructor(a,n){this.domNode=a,this.submenu=null,this.submenu=null,this.init(n)}init(a){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${a}-menu`);n&&(this.submenu=new Dt(this,n)),this.addListeneLine truncated
+1
View File
@@ -0,0 +1 @@
import{k as ie,T as Ke,t as ce,E as Qe,b as Xe}from"./el-input-D_xPEeA2.js";import{E as Ye,a as Ze}from"./el-form-item-CzDqJHnU.js";import"./el-tooltip-l0sNRNKZ.js";import{E as Pe,C as Je}from"./el-popper-DxfKqvb2.js";import{u as et,a as tt}from"./index-CX7K5KgQ.js";import{_ as V,a as y,u as $,g as X,o as S,w,r as k,aC as Oe,aP as nt,j as h,T as Ne,l as ye,aG as at,c as f,P as A,h as D,n as Ie,ak as q,L as P,I as ue,aQ as ot,D as ve,b as Ce,i as de,s as x,aR as st,aS as lt,t as Ee,$ as re,p as _e,aT as Se,a0 as we,a1 as Be,z as I,W as Ae,G as Y,A as ze,C as ut,ab as pe,aU as $e,aV as ne,al as He,f as it,aW as rt,am as ke,d as me,aX as ct,m as dt,F as mt,aY as pt,M as Le,N as Me,aA as ft,U as ae,R as oe,aK as vt,a8 as ht,B as L,a9 as gt,ac as bt,af as _t,aF as Te}from"./index-5orz1M6_.js";import{f as Mt}from"./vnode-DkiIqzI4.js";import"./_baseClone-IT_4yc7W.js";const yt=y({name:"ElCollapseTransition"}),It=y({...yt,setup(e){const a=$("collapse-transition"),n=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},o={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height&&(t.dataset.elExistsHeight=t.style.height),t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){requestAnimationFrame(()=>{t.dataset.oldOverflow=t.style.overflow,t.dataset.elExistsHeight?t.style.maxHeight=t.dataset.elExistsHeight:t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"})},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){n(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){n(t)},leaveCancelled(t){n(t)}};return(t,v)=>(S(),X(Ne,Oe({name:h(a).b()},nt(o)),{default:w(()=>[k(t.$slots,"default")]),_:3},16,["name"]))}});var Ct=V(It,[["__file","collapse-transition.vue"]]);const Et=ye(Ct),St=y({name:"ElContainer"}),wt=y({...St,props:{direction:{type:String}},setup(e){const a=e,n=at(),o=$("container"),t=f(()=>a.direction==="vertical"?!0:a.direction==="horizontal"?!1:n&&n.default?n.default().some(d=>{const g=d.type.name;return g==="ElHeader"||g==="ElFooter"}):!1);return(v,d)=>(S(),A("section",{class:D([h(o).b(),h(o).is("vertical",h(t))])},[k(v.$slots,"default")],2))}});var xt=V(wt,[["__file","container.vue"]]);const $t=y({name:"ElAside"}),kt=y({...$t,props:{width:{type:String,default:null}},setup(e){const a=e,n=$("aside"),o=f(()=>a.width?n.cssVarBlock({width:a.width}):{});return(t,v)=>(S(),A("aside",{class:D(h(n).b()),style:Ie(h(o))},[k(t.$slots,"default")],6))}});var De=V(kt,[["__file","aside.vue"]]);const Tt=y({name:"ElFooter"}),Pt=y({...Tt,props:{height:{type:String,default:null}},setup(e){const a=e,n=$("footer"),o=f(()=>a.height?n.cssVarBlock({height:a.height}):{});return(t,v)=>(S(),A("footer",{class:D(h(n).b()),style:Ie(h(o))},[k(t.$slots,"default")],6))}});var Ve=V(Pt,[["__file","footer.vue"]]);const Ot=y({name:"ElHeader"}),Nt=y({...Ot,props:{height:{type:String,default:null}},setup(e){const a=e,n=$("header"),o=f(()=>a.height?n.cssVarBlock({height:a.height}):{});return(t,v)=>(S(),A("header",{class:D(h(n).b()),style:Ie(h(o))},[k(t.$slots,"default")],6))}});var Fe=V(Nt,[["__file","header.vue"]]);const Bt=y({name:"ElMain"}),At=y({...Bt,setup(e){const a=$("main");return(n,o)=>(S(),A("main",{class:D(h(a).b())},[k(n.$slots,"default")],2))}});var Re=V(At,[["__file","main.vue"]]);const zt=ye(xt,{Aside:De,Footer:Ve,Header:Fe,Main:Re});q(De);q(Ve);const Ht=q(Fe),Lt=q(Re);let Dt=class{constructor(a,n){this.parent=a,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(a){a===this.subMenuItems.length?a=0:a<0&&(a=this.subMenuItems.length-1),this.subMenuItems[a].focus(),this.subIndex=a}addListeners(){const a=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",o=>{let t=!1;switch(o.code){case P.down:{this.gotoSubIndex(this.subIndex+1),t=!0;break}case P.up:{this.gotoSubIndex(this.subIndex-1),t=!0;break}case P.tab:{ie(a,"mouseleave");break}case P.enter:case P.numpadEnter:case P.space:{t=!0,o.currentTarget.click();break}}return t&&(o.preventDefault(),o.stopPropagation()),!1})})}},Vt=class{constructor(a,n){this.domNode=a,this.submenu=null,this.submenu=null,this.init(n)}init(a){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${a}-menu`);n&&(this.submenu=new Dt(this,n)),this.addListeners()Line truncated
@@ -1 +0,0 @@
.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color,var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary,20px);background-color:var(--el-drawer-bg-color);box-shadow:var(--el-box-shadow-dark);box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:absolute;transition:all var(--el-transition-duration)}.el-drawer .btt,.el-drawer .ltr,.el-drawer .rtl,.el-drawer .ttb{transform:translate(0)}.el-drawer__sr-focus:focus{outline:none!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{flex:1;font-size:16px;line-height:inherit;margin:0}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{background-color:transparent;border:none;color:inherit;cursor:pointer;display:inline-flex;font-size:var(--el-font-size-extra-large);outline:none}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;overflow:auto;padding:var(--el-drawer-padding-primary)}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{bottom:0;height:100%;top:0}.el-drawer.btt,.el-drawer.ttb{left:0;right:0;width:100%}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{background-color:transparent!important}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-progress{align-items:center;display:flex;line-height:1;position:relative}.el-progress__text{color:var(--el-text-color-regular);font-size:14px;line-height:1;margin-left:5px;min-width:50px}.el-progress__text i{display:block;vertical-align:middle}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{left:0;margin:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);width:100%}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{display:inline-block;vertical-align:middle}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{display:block;margin-right:0;padding-right:0}.el-progress--text-inside .el-progress-bar{margin-right:0;padding-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{box-sizing:border-box;flex-grow:1}.el-progress-bar__outer{background-color:var(--el-border-color-lighter);border-radius:100px;height:6px;overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{background-color:var(--el-color-primary);border-radius:100px;height:100%;left:0;line-height:1;position:absolute;text-align:right;top:0;transition:width .6s ease;white-space:nowrap}.el-progress-bar__inner:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{animation:indeterminate 3s infinite;transform:translateZ(0)}.el-progress-bar__inner--striped{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0,transparent 50%,rgba(0,0,0,.1) 0,rgba(0,0,0,.1) 75%,transparent 0,transparent);background-size:1.25em 1.25em}.el-progress-bar__inner--striped.el-progress-bar__inner--striped-flow{animation:striped-flow 3s linear infinite}.el-progress-bar__innerText{color:#fff;display:inline-block;font-size:12px;margin:0 5px;vertical-align:middle}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes striped-flow{0%{background-position:-100%}to{background-position:100%}}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf) format("truLine truncated
@@ -0,0 +1 @@
.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color,var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary,20px);background-color:var(--el-drawer-bg-color);box-shadow:var(--el-box-shadow-dark);box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:absolute;transition:all var(--el-transition-duration)}.el-drawer .btt,.el-drawer .ltr,.el-drawer .rtl,.el-drawer .ttb{transform:translate(0)}.el-drawer__sr-focus:focus{outline:none!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{flex:1;font-size:16px;line-height:inherit;margin:0}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{background-color:transparent;border:none;color:inherit;cursor:pointer;display:inline-flex;font-size:var(--el-font-size-extra-large);outline:none}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;overflow:auto;padding:var(--el-drawer-padding-primary)}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{bottom:0;height:100%;top:0}.el-drawer.btt,.el-drawer.ttb{left:0;right:0;width:100%}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{background-color:transparent!important}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-progress{align-items:center;display:flex;line-height:1;position:relative}.el-progress__text{color:var(--el-text-color-regular);font-size:14px;line-height:1;margin-left:5px;min-width:50px}.el-progress__text i{display:block;vertical-align:middle}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{left:0;margin:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);width:100%}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{display:inline-block;vertical-align:middle}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{display:block;margin-right:0;padding-right:0}.el-progress--text-inside .el-progress-bar{margin-right:0;padding-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{box-sizing:border-box;flex-grow:1}.el-progress-bar__outer{background-color:var(--el-border-color-lighter);border-radius:100px;height:6px;overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{background-color:var(--el-color-primary);border-radius:100px;height:100%;left:0;line-height:1;position:absolute;text-align:right;top:0;transition:width .6s ease;white-space:nowrap}.el-progress-bar__inner:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{animation:indeterminate 3s infinite;transform:translateZ(0)}.el-progress-bar__inner--striped{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0,transparent 50%,rgba(0,0,0,.1) 0,rgba(0,0,0,.1) 75%,transparent 0,transparent);background-size:1.25em 1.25em}.el-progress-bar__inner--striped.el-progress-bar__inner--striped-flow{animation:striped-flow 3s linear infinite}.el-progress-bar__innerText{color:#fff;display:inline-block;font-size:12px;margin:0 5px;vertical-align:middle}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes striped-flow{0%{background-position:-100%}to{background-position:100%}}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf) format("truLine truncated
@@ -0,0 +1,297 @@
import{e as lg,a as cg,j as ug,b as dg}from"./el-input-D_xPEeA2.js";import{u as _g,a as mg}from"./index-CX7K5KgQ.js";import{b as bm,_ as hm,a as gn,aG as pg,c as St,s as pn,u as Tm,ao as gg,aH as Eg,g as Dt,o as Ne,w as ze,B as ot,T as fg,j as X,A as Sg,N as it,aC as bg,O as hg,P as rt,Q as Tn,h as bt,r as Yn,R as pt,W as Ol,as as Cm,C as Tg,l as Rm,d as ka,aI as Cg,aq as Rg,aJ as Ng,ar as yg,a2 as Og,G as _u,n as Bn,k as Ag,aK as Nm,t as mu,z as Ft,aL as ym,a0 as vg,ab as Cl,a8 as Ig,a9 as Om,U as mn,ac as pu,aF as Dg,aa as xg,aM as Mg,ad as wg,aN as Lg,aO as kg,ae as Pg}from"./index-5orz1M6_.js";import{e as Fg,f as Bg,g as Ug,E as Gg,h as Yg,d as qg}from"./config-C0oXmCul.js";import{E as zg}from"./el-tag-DsWzxe9q.js";var Hg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Al(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const Vg=bm({...Bg,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),Wg=Fg,$g=gn({name:"ElDrawer",inheritAttrs:!1}),Kg=gn({...$g,props:Vg,emits:Wg,setup(t,{expose:e}){const a=t,o=pg();lg({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},St(()=>!!o.title));const c=pn(),s=pn(),d=Tm("drawer"),{t:u}=gg(),{afterEnter:_,afterLeave:p,beforeLeave:S,visible:h,rendered:y,titleId:O,bodyId:N,zIndex:w,onModalClick:L,onOpenAutoFocus:D,onCloseAutoFocus:U,onFocusoutPrevented:x,onCloseRequested:G,handleClose:F}=Ug(a,c),z=St(()=>a.direction==="rtl"||a.direction==="ltr"),$=St(()=>Eg(a.size));return e({handleClose:F,afterEnter:_,afterLeave:p}),(V,ee)=>(Ne(),Dt(X(ug),{to:V.appendTo,disabled:V.appendTo!=="body"?!1:!V.appendToBody},{default:ze(()=>[ot(fg,{name:X(d).b("fade"),onAfterEnter:X(_),onAfterLeave:X(p),onBeforeLeave:X(S),persisted:""},{default:ze(()=>[Sg(ot(X(Gg),{mask:V.modal,"overlay-class":V.modalClass,"z-index":X(w),onClick:X(L)},{default:ze(()=>[ot(X(cg),{loop:"",trapped:X(h),"focus-trap-el":c.value,"focus-start-el":s.value,onFocusAfterTrapped:X(D),onFocusAfterReleased:X(U),onFocusoutPrevented:X(x),onReleaseRequested:X(G)},{default:ze(()=>[it("div",bg({ref_key:"drawerRef",ref:c,"aria-modal":"true","aria-label":V.title||void 0,"aria-labelledby":V.title?void 0:X(O),"aria-describedby":X(N)},V.$attrs,{class:[X(d).b(),V.direction,X(h)&&"open"],style:X(z)?"width: "+X($):"height: "+X($),role:"dialog",onClick:hg(()=>{},["stop"])}),[it("span",{ref_key:"focusStartRef",ref:s,class:bt(X(d).e("sr-focus")),tabindex:"-1"},null,2),V.withHeader?(Ne(),rt("header",{key:0,class:bt([X(d).e("header"),V.headerClass])},[V.$slots.title?Yn(V.$slots,"title",{key:1},()=>[Tn(" DEPRECATED SLOT ")]):Yn(V.$slots,"header",{key:0,close:X(F),titleId:X(O),titleClass:X(d).e("title")},()=>[V.$slots.title?Tn("v-if",!0):(Ne(),rt("span",{key:0,id:X(O),role:"heading","aria-level":V.headerAriaLevel,class:bt(X(d).e("title"))},pt(V.title),11,["id","aria-level"]))]),V.showClose?(Ne(),rt("button",{key:2,"aria-label":X(u)("el.drawer.close"),class:bt(X(d).e("close-btn")),type:"button",onClick:X(F)},[ot(X(Ol),{class:bt(X(d).e("close"))},{default:ze(()=>[ot(X(Cm))]),_:1},8,["class"])],10,["aria-label","onClick"])):Tn("v-if",!0)],2)):Tn("v-if",!0),X(y)?(Ne(),rt("div",{key:1,id:X(N),class:bt([X(d).e("body"),V.bodyClass])},[Yn(V.$slots,"default")],10,["id"])):Tn("v-if",!0),V.$slots.footer?(Ne(),rt("div",{key:2,class:bt([X(d).e("footer"),V.footerClass])},[Yn(V.$slots,"footer")],2)):Tn("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Tg,X(h)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var Qg=hm(Kg,[["__file","drawer.vue"]]);const Xg=Rm(Qg),Zg=bm({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:t=>t>=0&&t<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:ka(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ka([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:ka(Function),default:t=>`${t}%`}}),Jg=gn({name:"ElProgress"}),jg=gn({...Jg,props:Zg,setup(t){const e=t,a={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=Tm("progress"),c=St(()=>{const x={width:`${e.percentage}%`,animationDuration:`${e.duration}s`},G=U(e.percentage);return G.includes("gradient"Line truncated
M 50 50
m 0 ${G?"":"-"}${x}
a ${x} ${x} 0 1 1 0 ${G?"-":""}${x*2}
a ${x} ${x} 0 1 1 0 ${G?"":"-"}${x*2}
`}),_=St(()=>2*Math.PI*d.value),p=St(()=>e.type==="dashboard"?.75:1),S=St(()=>`${-1*_.value*(1-p.value)/2}px`),h=St(()=>({strokeDasharray:`${_.value*p.value}px, ${_.value}px`,strokeDashoffset:S.value})),y=St(()=>({strokeDasharray:`${_.value*p.value*(e.percentage/100)}px, ${_.value}px`,strokeDashoffset:S.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),O=St(()=>{let x;return e.color?x=U(e.percentage):x=a[e.status]||a.default,x}),N=St(()=>e.status==="warning"?Cg:e.type==="line"?e.status==="success"?Rg:Ng:e.status==="success"?yg:Cm),w=St(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),L=St(()=>e.format(e.percentage));function D(x){const G=100/x.length;return x.map((z,$)=>_u(z)?{color:z,percentage:($+1)*G}:z).sort((z,$)=>z.percentage-$.percentage)}const U=x=>{var G;const{color:F}=e;if(Og(F))return F(x);if(_u(F))return F;{const z=D(F);for(const $ of z)if($.percentage>x)return $.color;return(G=z[z.length-1])==null?void 0:G.color}};return(x,G)=>(Ne(),rt("div",{class:bt([X(o).b(),X(o).m(x.type),X(o).is(x.status),{[X(o).m("without-text")]:!x.showText,[X(o).m("text-inside")]:x.textInside}]),role:"progressbar","aria-valuenow":x.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[x.type==="line"?(Ne(),rt("div",{key:0,class:bt(X(o).b("bar"))},[it("div",{class:bt(X(o).be("bar","outer")),style:Bn({height:`${x.strokeWidth}px`})},[it("div",{class:bt([X(o).be("bar","inner"),{[X(o).bem("bar","inner","indeterminate")]:x.indeterminate},{[X(o).bem("bar","inner","striped")]:x.striped},{[X(o).bem("bar","inner","striped-flow")]:x.stripedFlow}]),style:Bn(X(c))},[(x.showText||x.$slots.default)&&x.textInside?(Ne(),rt("div",{key:0,class:bt(X(o).be("bar","innerText"))},[Yn(x.$slots,"default",{percentage:x.percentage},()=>[it("span",null,pt(X(L)),1)])],2)):Tn("v-if",!0)],6)],6)],2)):(Ne(),rt("div",{key:1,class:bt(X(o).b("circle")),style:Bn({height:`${x.width}px`,width:`${x.width}px`})},[(Ne(),rt("svg",{viewBox:"0 0 100 100"},[it("path",{class:bt(X(o).be("circle","track")),d:X(u),stroke:`var(${X(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":x.strokeLinecap,"stroke-width":X(s),fill:"none",style:Bn(X(h))},null,14,["d","stroke","stroke-linecap","stroke-width"]),it("path",{class:bt(X(o).be("circle","path")),d:X(u),stroke:X(O),fill:"none",opacity:x.percentage?1:0,"stroke-linecap":x.strokeLinecap,"stroke-width":X(s),style:Bn(X(y))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(x.showText||x.$slots.default)&&!x.textInside?(Ne(),rt("div",{key:2,class:bt(X(o).e("text")),style:Bn({fontSize:`${X(w)}px`})},[Yn(x.$slots,"default",{percentage:x.percentage},()=>[x.status?(Ne(),Dt(X(Ol),{key:1},{default:ze(()=>[(Ne(),Dt(Ag(X(N))))]),_:1})):(Ne(),rt("span",{key:0},pt(X(L)),1))])],6)):Tn("v-if",!0)],10,["aria-valuenow"]))}});var eE=hm(jg,[["__file","progress.vue"]]);const tE=Rm(eE),nE=Nm("fileData",()=>{const t=mu(JSON.parse(localStorage.getItem("receiveData")||"[]")||[]),e=mu(JSON.parse(localStorage.getItem("shareData")||"[]")||[]);function a(){localStorage.setItem("receiveData",JSON.stringify(t)),localStorage.setItem("shareData",JSON.stringify(e))}function o(u){t.unshift(u),a()}function c(u){e.unshift(u),a()}function s(u){t.splice(u,1),a()}function d(u){e.splice(u,1),a()}return{receiveData:t,shareData:e,save:a,addShareData:c,addReceiveData:o,deleteReceiveData:s,deleteShareData:d}}),Am=Nm("fileBox",()=>({showFileBox:pn(!1)}));function vm(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const a=t[e],o=typeof a;(o==="object"||o==="function")&&!Object.isFrozen(a)&&vm(a)}),t}class gu{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Im(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Nn(t,...e){const a=Object.create(null);for(const o in t)a[o]=t[o];return e.forEach(function(o){for(const c in o)a[c]=o[c]}),a}const rE="</span>",Eu=t=>!!t.scope,aE=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const a=t.split(".");return[`${e}${a.shift()}`,...a.map((o,c)=>`${o}${"_".repeat(c+1)}`)].join(" ")}return`${e}${t}`};class iE{constructor(e,a){this.buffer="",this.classPrefix=a.classPrefix,e.walk(this)}addText(e){this.buffer+=Im(e)}openNode(e){if(!Eu(e))return;const a=aE(e.scope,{prefix:this.classPrefix});this.span(a)}closeNode(e){Eu(e)&&(this.buffer+=rE)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const fu=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class vl{constructor(){this.rootNode=fu(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){tLine truncated
https://github.com/highlightjs/highlight.js/issues/2277`),Ae=W,he=te),ue===void 0&&(ue=!0);const re={code:he,language:Ae};be("before:highlight",re);const Xe=re.result?re.result:h(re.language,re.code,ue);return Xe.code=re.code,be("after:highlight",Xe),Xe}function h(W,te,ue,he){const Ae=Object.create(null);function re(j,se){return j.keywords[se]}function Xe(){if(!de.keywords){Ve.addText(ye);return}let j=0;de.keywordPatternRe.lastIndex=0;let se=de.keywordPatternRe.exec(ye),Ee="";for(;se;){Ee+=ye.substring(j,se.index);const Se=ht.case_insensitive?se[0].toLowerCase():se[0],Ze=re(de,Se);if(Ze){const[Et,An]=Ze;if(Ve.addText(Ee),Ee="",Ae[Se]=(Ae[Se]||0)+1,Ae[Se]<=KE&&(ln+=An),Et.startsWith("_"))Ee+=se[0];else{const vn=ht.classNameAliases[Et]||Et;Me(se[0],vn)}}else Ee+=se[0];j=de.keywordPatternRe.lastIndex,se=de.keywordPatternRe.exec(ye)}Ee+=ye.substring(j),Ve.addText(Ee)}function st(){if(ye==="")return;let j=null;if(typeof de.subLanguage=="string"){if(!e[de.subLanguage]){Ve.addText(ye);return}j=h(de.subLanguage,ye,!0,gt[de.subLanguage]),gt[de.subLanguage]=j._top}else j=O(ye,de.subLanguage.length?de.subLanguage:null);de.relevance>0&&(ln+=j.relevance),Ve.__addSublanguage(j._emitter,j.language)}function ve(){de.subLanguage!=null?st():Xe(),ye=""}function Me(j,se){j!==""&&(Ve.startScope(se),Ve.addText(j),Ve.endScope())}function Fe(j,se){let Ee=1;const Se=se.length-1;for(;Ee<=Se;){if(!j._emit[Ee]){Ee++;continue}const Ze=ht.classNameAliases[j[Ee]]||j[Ee],Et=se[Ee];Ze?Me(Et,Ze):(ye=Et,Xe(),ye=""),Ee++}}function we(j,se){return j.scope&&typeof j.scope=="string"&&Ve.openNode(ht.classNameAliases[j.scope]||j.scope),j.beginScope&&(j.beginScope._wrap?(Me(ye,ht.classNameAliases[j.beginScope._wrap]||j.beginScope._wrap),ye=""):j.beginScope._multi&&(Fe(j.beginScope,se),ye="")),de=Object.create(j,{parent:{value:de}}),de}function Ie(j,se,Ee){let Se=uE(j.endRe,Ee);if(Se){if(j["on:end"]){const Ze=new gu(j);j["on:end"](se,Ze),Ze.isMatchIgnored&&(Se=!1)}if(Se){for(;j.endsParent&&j.parent;)j=j.parent;return j}}if(j.endsWithParent)return Ie(j.parent,se,Ee)}function Be(j){return de.matcher.regexIndex===0?(ye+=j[0],1):(Ut=!0,0)}function je(j){const se=j[0],Ee=j.rule,Se=new gu(Ee),Ze=[Ee.__beforeBegin,Ee["on:begin"]];for(const Et of Ze)if(Et&&(Et(j,Se),Se.isMatchIgnored))return Be(se);return Ee.skip?ye+=se:(Ee.excludeBegin&&(ye+=se),ve(),!Ee.returnBegin&&!Ee.excludeBegin&&(ye=se)),we(Ee,j),Ee.returnBegin?0:se.length}function et(j){const se=j[0],Ee=te.substring(j.index),Se=Ie(de,j,Ee);if(!Se)return Tu;const Ze=de;de.endScope&&de.endScope._wrap?(ve(),Me(se,de.endScope._wrap)):de.endScope&&de.endScope._multi?(ve(),Fe(de.endScope,j)):Ze.skip?ye+=se:(Ze.returnEnd||Ze.excludeEnd||(ye+=se),ve(),Ze.excludeEnd&&(ye=se));do de.scope&&Ve.closeNode(),!de.skip&&!de.subLanguage&&(ln+=de.relevance),de=de.parent;while(de!==Se.parent);return Se.starts&&we(Se.starts,j),Ze.returnEnd?0:se.length}function ut(){const j=[];for(let se=de;se!==ht;se=se.parent)se.scope&&j.unshift(se.scope);j.forEach(se=>Ve.openNode(se))}let mt={};function En(j,se){const Ee=se&&se[0];if(ye+=j,Ee==null)return ve(),0;if(mt.type==="begin"&&se.type==="end"&&mt.index===se.index&&Ee===""){if(ye+=te.slice(se.index,se.index+1),!c){const Se=new Error(`0 width match regex (${W})`);throw Se.languageName=W,Se.badRule=mt.rule,Se}return 1}if(mt=se,se.type==="begin")return je(se);if(se.type==="illegal"&&!ue){const Se=new Error('Illegal lexeme "'+Ee+'" for mode "'+(de.scope||"<unnamed>")+'"');throw Se.mode=de,Se}else if(se.type==="end"){const Se=et(se);if(Se!==Tu)return Se}if(se.type==="illegal"&&Ee==="")return ye+=`
`,1;if(Ht>1e5&&Ht>se.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ye+=Ee,Ee.length}const ht=V(W);if(!ht)throw Mn(s.replace("{}",W)),new Error('Unknown language: "'+W+'"');const on=HE(ht);let sn="",de=he||on;const gt={},Ve=new u.__emitter(u);ut();let ye="",ln=0,Rt=0,Ht=0,Ut=!1;try{if(ht.__emitTokens)ht.__emitTokens(te,Ve);else{for(de.matcher.considerAll();;){Ht++,Ut?Ut=!1:de.matcher.considerAll(),de.matcher.lastIndex=Rt;const j=de.matcher.exec(te);if(!j)break;const se=te.substring(Rt,j.index),Ee=En(se,j);Rt=j.index+Ee}En(te.substring(Rt))}return Ve.finalize(),sn=Ve.toHTML(),{language:W,value:sn,relevance:ln,illegal:!1,_emitter:Ve,_top:de}}catch(j){if(j.message&&j.message.includes("Illegal"))return{language:W,value:Pa(te),illegal:!0,relevance:0,_illegalBy:{message:j.message,index:Rt,context:te.slice(Rt-100,Rt+100),mode:j.mode,resultSoFar:sn},_emitter:Ve};if(c)return{language:W,value:Pa(te),illegal:!1,relevance:0,errorRaised:j,_emitter:Ve,_top:de};throw j}}function y(W){const te={value:Pa(W),illegal:!1,relevance:0,_top:d,_emitter:new u.__emitter(u)};return te._emitter.addText(W),te}function O(W,te){te=te||u.languages||Object.keys(e);const ue=y(W),he=te.filter(V).filter(ce).map(ve=>h(ve,W,!1));he.unshift(ue);const Ae=he.sort((ve,Me)=>{if(ve.relevance!==Me.relevance)return Me.relevance-ve.relevance;if(ve.language&&Me.language){if(V(ve.language).supersetOf===Me.language)return 1;if(V(Me.language).supersetOf===ve.language)return-1}return 0}),[re,Xe]=Ae,st=re;return st.secondBest=Xe,st}function N(W,te,ue){const he=te&&a[te]||ue;W.classList.add("hljs"),W.classList.add(`language-${he}`)}function w(W){let te=null;const ue=p(W);if(_(ue))return;if(be("before:highlightElement",{el:W,language:ue}),W.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",W);return}if(W.children.length>0&&(u.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(W)),u.throwUnescapedHTML))throw new $E("One of your code blocks includes unescaped HTML.",W.innerHTML);te=W;const he=te.textContent,Ae=ue?S(he,{language:ue,ignoreIllegals:!0}):O(he);W.innerHTML=Ae.value,W.dataset.highlighted="yes",N(W,ue,Ae.language),W.result={language:Ae.language,re:Ae.relevance,relevance:Ae.relevance},Ae.secondBest&&(W.secondBest={language:Ae.secondBest.language,relevance:Ae.secondBest.relevance}),be("after:highlightElement",{el:W,result:Ae,text:he})}function L(W){u=hu(u,W)}const D=()=>{G(),Un("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function U(){G(),Un("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let x=!1;function G(){function W(){G()}if(document.readyState==="loading"){x||window.addEventListener("DOMContentLoaded",W,!1),x=!0;return}document.querySelectorAll(u.cssSelector).forEach(w)}function F(W,te){let ue=null;try{ue=te(t)}catch(he){if(Mn("Language definition for '{}' could not be registered.".replace("{}",W)),c)Mn(he);else throw he;ue=d}ue.name||(ue.name=W),e[W]=ue,ue.rawDefinition=te.bind(null,t),ue.aliases&&ee(ue.aliases,{languageName:W})}function z(W){delete e[W];for(const te of Object.keys(a))a[te]===W&&delete a[te]}function $(){return Object.keys(e)}function V(W){return W=(W||"").toLowerCase(),e[W]||e[a[W]]}function ee(W,{languageName:te}){typeof W=="string"&&(W=[W]),W.forEach(ue=>{a[ue.toLowerCase()]=te})}function ce(W){const te=V(W);return te&&!te.disableAutodetect}function ne(W){W["before:highlightBlock"]&&!W["before:highlightElement"]&&(W["before:highlightElement"]=te=>{W["before:highlightBlock"](Object.assign({block:te.el},te))}),W["after:highlightBlock"]&&!W["after:highlightElement"]&&(W["after:highlightElement"]=te=>{W["after:highlightBlock"](Object.assign({block:te.el},te))})}function me(W){ne(W),o.push(W)}function pe(W){const te=o.indexOf(W);te!==-1&&o.splice(te,1)}function be(W,te){const ue=W;o.forEach(function(he){he[ue]&&he[ue](te)})}function fe(W){return Un("10.7.0","highlightBlock will be removed entirely in v12.0"),Un("10.7.0","Please use highlightElement now."),w(W)}Object.assign(t,{highlight:S,highlightAuto:O,highlightAll:G,highlightElement:w,highlightBlock:fe,configure:L,initHighlighting:D,initHighlightingOnLoad:U,registerLanguage:F,unregisterLanguage:z,listLanguages:$,getLanguage:V,registerAliases:ee,autoDetection:ce,inherit:hu,addPlugin:me,removePlugin:pe}),t.debugMode=function(){c=!1},t.safeMode=function(){c=!0},t.versionString=WE,t.regex={concat:Ln,lookahead:Dm,either:Il,optional:lE,anyNumberOfTimes:sE};for(const W in wr)typeof wr[W]=="object"&&vm(wr[W]);return Object.assign(t,wr),t},Hn=Um({});Hn.newInstance=()=>Um({});var QE=Hn;Hn.HighlightJS=Hn;Hn.default=Hn;var Fa,Cu;function XE(){if(Cu)return Fa;Cu=1;function t(e){const a="[A-Za-zА-Яа-яёЁ_][A-Za-Line truncated
`},N]}}return Co=c,Co}var Ro,s_;function PS(){if(s_)return Ro;s_=1;function t(e){const a="[a-zA-Z_][\\w.]*",o="<\\?(lasso(script)?|=)",c="\\]|\\?>",s={$pattern:a+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},d=e.COMMENT("<!--","-->",{relevance:0}),u={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[d]}},_={className:"meta",begin:"\\[/noprocess|"+o},p={className:"symbol",begin:"'"+a+"'"},S=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+a},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:a,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+a,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[p]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:a+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:s,contains:[{className:"meta",begin:c,relevance:0,starts:{end:"\\[|"+o,returnEnd:!0,relevance:0,contains:[d]}},u,_,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:s,contains:[{className:"meta",begin:c,relevance:0,starts:{end:"\\[noprocess\\]|"+o,returnEnd:!0,contains:[d]}},u,_].concat(S)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(S)}}return Ro=t,Ro}var No,l_;function FS(){if(l_)return No;l_=1;function t(e){const o=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(ne=>ne+"(?![a-zA-Z@:_])")),c=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(ne=>ne+"(?![a-zA-Z:_])").join("|")),s=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],d=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],u={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:o},{endsParent:!0,begin:c},{endsParent:!0,variants:d},{endsParent:!0,relevance:0,variants:s}]},_={className:"params",relevance:0,begin:/#+\d?/},p={variants:d},S={className:"built_in",relevance:0,begin:/[$&^_]/},h={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},y=e.COMMENT("%","$",{relevance:0}),O=[u,_,p,S,h,y],N={begin:/\{/,end:/\}/,relevance:0,contains:["self",...O]},w=e.inheLine truncated
]`,w={scope:"string",variants:[h,S,y,O]},L={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},D=["false","null","true"],U=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],x=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],F={keyword:U,literal:(fe=>{const W=[];return fe.forEach(te=>{W.push(te),te.toLowerCase()===te?W.push(te.toUpperCase()):W.push(te.toLowerCase())}),W})(D),built_in:x},z=fe=>fe.map(W=>W.replace(/\|\d+$/,"")),$={variants:[{match:[/new/,a.concat(N,"+"),a.concat("(?!",z(x).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},V=a.concat(c,"\\b(?!\\()"),ee={variants:[{match:[a.concat(/::/,a.lookahead(/(?!class\b)/)),V],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,a.concat(/::/,a.lookahead(/(?!class\b)/)),V],scope:{1:"title.class",3:"variable.constant"}},{match:[s,a.concat("::",a.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ce={scope:"attr",match:a.concat(c,a.lookahead(":"),a.lookahead(/(?!::)/))},ne={relevance:0,begin:/\(/,end:/\)/,keywords:F,contains:[ce,u,ee,e.C_BLOCK_COMMENT_MODE,w,L,$]},me={relevance:0,match:[/\b/,a.concat("(?!fn\\b|function\\b|",z(U).join("\\b|"),"|",z(x).join("\\b|"),"\\b)"),c,a.concat(N,"*"),a.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[ne]};ne.contains.push(me);const pe=[ce,ee,e.C_BLOCK_COMMENT_MODE,w,L,$],be={begin:a.concat(/#\[\s*\\?/,a.either(s,d)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:D,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:D,keyword:["new","array"]},contains:["self",...pe]},...pe,{scope:"meta",variants:[{match:s},{match:d}]}]};return{case_insensitive:!1,keywords:F,contains:[be,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},_,{scope:"variable.language",match:/\$this\b/},u,me,ee,{match:[/const/,/\s/,c],scope:{1:"keyword",3:"variable.constant"}},$,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:F,contains:["self",be,u,ee,e.C_BLOCK_COMMENT_MODE,w,L]}]},{scope:"class",variants:[{beginKeywords:"enum",illegLine truncated
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return Ps=t,Ps}var Fs,T0;function Xb(){if(T0)return Fs;T0=1;function t(e){const a="[a-z][a-zA-Z0-9_]*",o={className:"string",begin:"\\$.{1}"},c={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:a+":",relevance:0},e.C_NUMBER_MODE,c,o,{begin:"\\|[ ]*"+a+"([ ]+"+a+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+a}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,o,e.C_NUMBER_MODE,c]}]}}return Fs=t,Fs}var Bs,C0;function Zb(){if(C0)return Bs;C0=1;function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return Bs=t,Bs}var Us,R0;function Jb(){if(R0)return Us;R0=1;function t(e){const a={className:"variable",begin:/\b_+[a-zA-Z]\w*/},o={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},c={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},s=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],d=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],u=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSitesLine truncated
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return qs=t,qs}var zs,A0;function nh(){if(A0)return zs;A0=1;function t(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return zs=t,zs}var Hs,v0;function rh(){if(v0)return Hs;v0=1;const t=p=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:p.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:p.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],a=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],o=[...e,...a],c=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-wLine truncated
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return Vs=t,Vs}var Ws,D0;function ih(){if(D0)return Ws;D0=1;function t(V){return V?typeof V=="string"?V:V.source:null}function e(V){return a("(?=",V,")")}function a(...V){return V.map(ce=>t(ce)).join("")}function o(V){const ee=V[V.length-1];return typeof ee=="object"&&ee.constructor===Object?(V.splice(V.length-1,1),ee):{}}function c(...V){return"("+(o(V).capture?"":"?:")+V.map(ne=>t(ne)).join("|")+")"}const s=V=>a(/\b/,V,/\w$/.test(V)?/\b/:/\B/),d=["Protocol","Type"].map(s),u=["init","self"].map(s),_=["Any","Self"],p=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],S=["false","nil","true"],h=["assignment","associativity","higherThan","left","lowerThan","none","right"],y=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],O=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],N=c(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),w=c(N,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),L=a(N,w,"*"),D=c(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),U=c(D,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),x=a(D,U,"*"),G=a(/[A-Z]/,U,"*"),F=["attached","autoclosure",a(/convention\(/,c("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",a(/objc\(/,x,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],z=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function $(V){const ee={match:/\s+/,relevance:0},ce=V.COMMENT("/\\*","\\*/",{contains:["self"]}),ne=[V.C_LINE_COMMENT_MODE,ce],me={match:[/\./,c(...d,...u)],className:{2:"keyword"}},pe={match:a(/\./,c(...p)),relevance:0},be=p.filter(ke=>typeof ke=="string").concat(["_|0"]),fe=p.filter(ke=>typeof ke!="string").concat(_).map(s),W={variants:[{className:"keyword",match:c(...fe,...u)}]},te={$pattern:c(/\b\w+/,/#\w+/),keyword:be.concat(y),literal:S},ue=[me,pe,W],he={match:a(/\./,c(...O)),relevance:0},Ae={className:"built_in",match:a(/\b/,c(...O),/(?=\()/)},re=[he,Ae],Xe={match:/->/,relevance:0},st={className:"operatLine truncated
`," "],Bh=["{","}","|","\\","^","`"].concat(Fh),Uh=["'"].concat(Bh),tm=["%","/","?",";","#"].concat(Uh),nm=["/","?","#"],Gh=255,rm=/^[+a-z0-9A-Z_-]{0,63}$/,Yh=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,am={javascript:!0,"javascript:":!0},im={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function wl(t,e){if(t&&t instanceof Br)return t;const a=new Br;return a.parse(t,e),a}Br.prototype.parse=function(t,e){let a,o,c,s=t;if(s=s.trim(),!e&&t.split("#").length===1){const p=Ph.exec(s);if(p)return this.pathname=p[1],p[2]&&(this.search=p[2]),this}let d=Lh.exec(s);if(d&&(d=d[0],a=d.toLowerCase(),this.protocol=d,s=s.substr(d.length)),(e||d||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(c=s.substr(0,2)==="//",c&&!(d&&am[d])&&(s=s.substr(2),this.slashes=!0)),!am[d]&&(c||d&&!im[d])){let p=-1;for(let N=0;N<nm.length;N++)o=s.indexOf(nm[N]),o!==-1&&(p===-1||o<p)&&(p=o);let S,h;p===-1?h=s.lastIndexOf("@"):h=s.lastIndexOf("@",p),h!==-1&&(S=s.slice(0,h),s=s.slice(h+1),this.auth=S),p=-1;for(let N=0;N<tm.length;N++)o=s.indexOf(tm[N]),o!==-1&&(p===-1||o<p)&&(p=o);p===-1&&(p=s.length),s[p-1]===":"&&p--;const y=s.slice(0,p);s=s.slice(p),this.parseHost(y),this.hostname=this.hostname||"";const O=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!O){const N=this.hostname.split(/\./);for(let w=0,L=N.length;w<L;w++){const D=N[w];if(D&&!D.match(rm)){let U="";for(let x=0,G=D.length;x<G;x++)D.charCodeAt(x)>127?U+="x":U+=D[x];if(!U.match(rm)){const x=N.slice(0,w),G=N.slice(w+1),F=D.match(Yh);F&&(x.push(F[1]),G.unshift(F[2])),G.length&&(s=G.join(".")+s),this.hostname=x.join(".");break}}}}this.hostname.length>Gh&&(this.hostname=""),O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const u=s.indexOf("#");u!==-1&&(this.hash=s.substr(u),s=s.slice(0,u));const _=s.indexOf("?");return _!==-1&&(this.search=s.substr(_),s=s.slice(0,_)),s&&(this.pathname=s),im[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Br.prototype.parseHost=function(t){let e=kh.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};const qh=Object.freeze(Object.defineProperty({__proto__:null,decode:Vn,encode:_r,format:Ml,parse:wl},Symbol.toStringTag,{value:"Module"})),Ym=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qm=/[\0-\x1F\x7F-\x9F]/,zh=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Ll=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,zm=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFALine truncated
`};rn.fence=function(t,e,a,o,c){const s=t[e],d=s.info?Wn(s.info).trim():"";let u="",_="";if(d){const S=d.split(/(\s+)/g);u=S[0],_=S.slice(2).join("")}let p;if(a.highlight?p=a.highlight(s.content,u,_)||On(s.content):p=On(s.content),p.indexOf("<pre")===0)return p+`
`;if(d){const S=s.attrIndex("class"),h=s.attrs?s.attrs.slice():[];S<0?h.push(["class",a.langPrefix+u]):(h[S]=h[S].slice(),h[S][1]+=" "+a.langPrefix+u);const y={attrs:h};return`<pre><code${c.renderAttrs(y)}>${p}</code></pre>
`}return`<pre><code${c.renderAttrs(s)}>${p}</code></pre>
`};rn.image=function(t,e,a,o,c){const s=t[e];return s.attrs[s.attrIndex("alt")][1]=c.renderInlineAsText(s.children,a,o),c.renderToken(t,e,a)};rn.hardbreak=function(t,e,a){return a.xhtmlOut?`<br />
`:`<br>
`};rn.softbreak=function(t,e,a){return a.breaks?a.xhtmlOut?`<br />
`:`<br>
`:`
`};rn.text=function(t,e){return On(t[e].content)};rn.html_block=function(t,e){return t[e].content};rn.html_inline=function(t,e){return t[e].content};function $n(){this.rules=qr({},rn)}$n.prototype.renderAttrs=function(e){let a,o,c;if(!e.attrs)return"";for(c="",a=0,o=e.attrs.length;a<o;a++)c+=" "+On(e.attrs[a][0])+'="'+On(e.attrs[a][1])+'"';return c};$n.prototype.renderToken=function(e,a,o){const c=e[a];let s="";if(c.hidden)return"";c.block&&c.nesting!==-1&&a&&e[a-1].hidden&&(s+=`
`),s+=(c.nesting===-1?"</":"<")+c.tag,s+=this.renderAttrs(c),c.nesting===0&&o.xhtmlOut&&(s+=" /");let d=!1;if(c.block&&(d=!0,c.nesting===1&&a+1<e.length)){const u=e[a+1];(u.type==="inline"||u.hidden||u.nesting===-1&&u.tag===c.tag)&&(d=!1)}return s+=d?`>
`:">",s};$n.prototype.renderInline=function(t,e,a){let o="";const c=this.rules;for(let s=0,d=t.length;s<d;s++){const u=t[s].type;typeof c[u]<"u"?o+=c[u](t,s,e,a,this):o+=this.renderToken(t,s,e)}return o};$n.prototype.renderInlineAsText=function(t,e,a){let o="";for(let c=0,s=t.length;c<s;c++)switch(t[c].type){case"text":o+=t[c].content;break;case"image":o+=this.renderInlineAsText(t[c].children,e,a);break;case"html_inline":case"html_block":o+=t[c].content;break;case"softbreak":case"hardbreak":o+=`
`;break}return o};$n.prototype.render=function(t,e,a){let o="";const c=this.rules;for(let s=0,d=t.length;s<d;s++){const u=t[s].type;u==="inline"?o+=this.renderInline(t[s].children,e,a):typeof c[u]<"u"?o+=c[u](t,s,e,a,this):o+=this.renderToken(t,s,e,a)}return o};function Ot(){this.__rules__=[],this.__cache__=null}Ot.prototype.__find__=function(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Ot.prototype.__compile__=function(){const t=this,e=[""];t.__rules__.forEach(function(a){a.enabled&&a.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(a){t.__cache__[a]=[],t.__rules__.forEach(function(o){o.enabled&&(a&&o.alt.indexOf(a)<0||t.__cache__[a].push(o.fn))})})};Ot.prototype.at=function(t,e,a){const o=this.__find__(t),c=a||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=c.alt||[],this.__cache__=null};Ot.prototype.before=function(t,e,a,o){const c=this.__find__(t),s=o||{};if(c===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(c,0,{name:e,enabled:!0,fn:a,alt:s.alt||[]}),this.__cache__=null};Ot.prototype.after=function(t,e,a,o){const c=this.__find__(t),s=o||{};if(c===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(c+1,0,{name:e,enabled:!0,fn:a,alt:s.alt||[]}),this.__cache__=null};Ot.prototype.push=function(t,e,a){const o=a||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};Ot.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);const a=[];return t.forEach(function(o){const c=this.__find__(o);if(c<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[c].enabled=!0,a.push(o)},this),this.__cache__=null,a};Ot.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(a){a.enabled=!1}),this.enable(t,e)};Ot.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);const a=[];return t.forEach(function(o){const c=this.__find__(o);if(c<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[c].enabled=!1,a.push(o)},this),this.__cache__=null,a};Ot.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function zt(t,e,a){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=a,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}zt.prototype.attrIndex=function(e){if(!this.attrs)return-1;const a=this.attrs;for(let o=0,c=a.length;o<c;o++)if(a[o][0]===e)return o;return-1};zt.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};zt.prototype.attrSet=function(e,a){const o=this.attrIndex(e),c=[e,a];o<0?this.attrPush(c):this.attrs[o]=c};zt.prototype.attrGet=function(e){const a=this.attrIndex(e);let o=null;return a>=0&&(o=this.attrs[a][1]),o};zt.prototype.attrJoin=function(e,a){const o=this.attrIndex(e);o<0?this.attrPush([e,a]):this.attrs[o][1]=this.attrs[o][1]+" "+a};function Qm(t,e,a){this.src=t,this.env=a,this.tokens=[],this.inlineMode=!1,this.md=e}Qm.prototype.Token=zt;const R1=/\r\n?|\n/g,N1=/\0/g;function y1(t){let e;e=t.src.replace(R1,`
`),e=e.replace(N1,"�"),t.src=e}function O1(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function A1(t){const e=t.tokens;for(let a=0,o=e.length;a<o;a++){const c=e[a];c.type==="inline"&&t.md.inline.parse(c.content,t.md,t.env,c.children)}}function v1(t){return/^<a[>\s]/i.test(t)}function I1(t){return/^<\/a\s*>/i.test(t)}function D1(t){const e=t.tokens;if(t.md.options.linkify)for(let a=0,o=e.length;a<o;a++){if(e[a].type!=="inline"||!t.md.linkify.pretest(e[a].content))continue;let c=e[a].children,s=0;for(let d=c.length-1;d>=0;d--){const u=c[d];if(u.type==="link_close"){for(d--;c[d].level!==u.level&&c[d].type!=="link_open";)d--;continue}if(u.type==="html_inline"&&(v1(u.content)&&s>0&&s--,I1(u.content)&&s++),!(s>0)&&u.type==="text"&&t.md.linkify.test(u.content)){const _=u.content;let p=t.md.linkify.match(_);const S=[];let h=u.level,y=0;p.length>0&&p[0].index===0&&d>0&&c[d-1].type==="text_special"&&(p=p.slice(1));for(let O=0;O<p.length;O++){const N=p[O].url,w=t.md.normalizeLink(N);if(!t.md.validateLink(w))continue;let L=p[O].text;p[O].schema?p[O].schema==="mailto:"&&!/^mailto:/i.test(L)?L=t.md.normalizeLinkText("mailto:"+L).replace(/^mailto:/,""):L=t.md.normalizeLinkText(L):L=t.md.normalizeLinkText("http://"+L).replace(/^http:\/\//,"");const D=p[O].index;if(D>y){const F=new t.Token("text","",0);F.content=_.slice(y,D),F.level=h,S.push(F)}const U=new t.Token("link_open","a",1);U.attrs=[["href",w]],U.level=h++,U.markup="linkify",U.info="auto",S.push(U);const x=new t.Token("text","",0);x.content=L,x.level=h,S.push(x);const G=new t.Token("link_close","a",-1);G.level=--h,G.markup="linkify",G.info="auto",S.push(G),y=p[O].lastIndex}if(y<_.length){const O=new t.Token("text","",0);O.content=_.slice(y),O.level=h,S.push(O)}e[a].children=c=$m(c,d,S)}}}}const Xm=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,x1=/\((c|tm|r)\)/i,M1=/\((c|tm|r)\)/ig,w1={c:"©",r:"®",tm:"™"};function L1(t,e){return w1[e.toLowerCase()]}function k1(t){let e=0;for(let a=t.length-1;a>=0;a--){const o=t[a];o.type==="text"&&!e&&(o.content=o.content.replace(M1,L1)),o.type==="link_open"&&o.info==="auto"&&e--,o.type==="link_close"&&o.info==="auto"&&e++}}function P1(t){let e=0;for(let a=t.length-1;a>=0;a--){const o=t[a];o.type==="text"&&!e&&Xm.test(o.content)&&(o.content=o.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),o.type==="link_open"&&o.info==="auto"&&e--,o.type==="link_close"&&o.info==="auto"&&e++}}function F1(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(x1.test(t.tokens[e].content)&&k1(t.tokens[e].children),Xm.test(t.tokens[e].content)&&P1(t.tokens[e].children))}const B1=/['"]/,om=/['"]/g,sm="’";function Lr(t,e,a){return t.slice(0,e)+a+t.slice(e+1)}function U1(t,e){let a;const o=[];for(let c=0;c<t.length;c++){const s=t[c],d=t[c].level;for(a=o.length-1;a>=0&&!(o[a].level<=d);a--);if(o.length=a+1,s.type!=="text")continue;let u=s.content,_=0,p=u.length;e:for(;_<p;){om.lastIndex=_;const S=om.exec(u);if(!S)break;let h=!0,y=!0;_=S.index+1;const O=S[0]==="'";let N=32;if(S.index-1>=0)N=u.charCodeAt(S.index-1);else for(a=c-1;a>=0&&!(t[a].type==="softbreak"||t[a].type==="hardbreak");a--)if(t[a].content){N=t[a].content.charCodeAt(t[a].content.length-1);break}let w=32;if(_<p)w=u.charCodeAt(_);else for(a=c+1;a<t.length&&!(t[a].type==="softbreak"||t[a].type==="hardbreak");a++)if(t[a].content){w=t[a].content.charCodeAt(0);break}const L=ur(N)||cr(String.fromCharCode(N)),D=ur(w)||cr(String.fromCharCode(w)),U=lr(N),x=lr(w);if(x?h=!1:D&&(U||L||(h=!1)),U?y=!1:L&&(x||D||(y=!1)),w===34&&S[0]==='"'&&N>=48&&N<=57&&(y=h=!1),h&&y&&(h=L,y=D),!h&&!y){O&&(s.content=Lr(s.content,S.index,sm));continue}if(y)for(a=o.length-1;a>=0;a--){let G=o[a];if(o[a].level<d)break;if(G.single===O&&o[a].level===d){G=o[a];let F,z;O?(F=e.md.options.quotes[2],z=e.md.options.quotes[3]):(F=e.md.options.quotes[0],z=e.md.options.quotes[1]),s.content=Lr(s.content,S.index,z),t[G.token].content=Lr(t[G.token].content,G.pos,F),_+=z.length-1,G.token===c&&(_+=F.length-1),u=s.content,p=u.length,o.length=a;continue e}}h?o.push({token:c,pos:S.index,single:O,level:d}):y&&O&&(s.content=Lr(s.content,S.index,sm))}}}function G1(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)t.tokens[e].type!=="inline"||!B1.test(t.tokens[e].content)||U1(t.tokens[e].children,t)}function Y1(t){let e,a;const o=t.tokens,c=o.length;for(let s=0;s<c;s++){if(o[s].type!=="inline")continue;const d=o[s].children,u=d.length;for(e=0;e<u;e++)d[e].type==="text_special"&&(d[e].type="text");for(e=a=0;e<u;e++)d[e].type==="text"&&e+1<u&&d[e+1].type==="text"?d[e+1].content=d[e].content+d[e+1].content:(e!==a&&(d[a]=d[e]),a++);e!==a&&(d.length=a)}}const gl=[["normalize",Line truncated
`,s.map=[e,t.line],!0}function V1(t,e,a,o){let c=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||c+3>s)return!1;const d=t.src.charCodeAt(c);if(d!==126&&d!==96)return!1;let u=c;c=t.skipChars(c,d);let _=c-u;if(_<3)return!1;const p=t.src.slice(u,c),S=t.src.slice(c,s);if(d===96&&S.indexOf(String.fromCharCode(d))>=0)return!1;if(o)return!0;let h=e,y=!1;for(;h++,!(h>=a||(c=u=t.bMarks[h]+t.tShift[h],s=t.eMarks[h],c<s&&t.sCount[h]<t.blkIndent));)if(t.src.charCodeAt(c)===d&&!(t.sCount[h]-t.blkIndent>=4)&&(c=t.skipChars(c,d),!(c-u<_)&&(c=t.skipSpaces(c),!(c<s)))){y=!0;break}_=t.sCount[e],t.line=h+(y?1:0);const O=t.push("fence","code",0);return O.info=S,O.content=t.getLines(e+1,h,_,!0),O.markup=p,O.map=[e,t.line],!0}function W1(t,e,a,o){let c=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];const d=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(c)!==62)return!1;if(o)return!0;const u=[],_=[],p=[],S=[],h=t.md.block.ruler.getRules("blockquote"),y=t.parentType;t.parentType="blockquote";let O=!1,N;for(N=e;N<a;N++){const x=t.sCount[N]<t.blkIndent;if(c=t.bMarks[N]+t.tShift[N],s=t.eMarks[N],c>=s)break;if(t.src.charCodeAt(c++)===62&&!x){let F=t.sCount[N]+1,z,$;t.src.charCodeAt(c)===32?(c++,F++,$=!1,z=!0):t.src.charCodeAt(c)===9?(z=!0,(t.bsCount[N]+F)%4===3?(c++,F++,$=!1):$=!0):z=!1;let V=F;for(u.push(t.bMarks[N]),t.bMarks[N]=c;c<s;){const ee=t.src.charCodeAt(c);if(He(ee))ee===9?V+=4-(V+t.bsCount[N]+($?1:0))%4:V++;else break;c++}O=c>=s,_.push(t.bsCount[N]),t.bsCount[N]=t.sCount[N]+1+(z?1:0),p.push(t.sCount[N]),t.sCount[N]=V-F,S.push(t.tShift[N]),t.tShift[N]=c-t.bMarks[N];continue}if(O)break;let G=!1;for(let F=0,z=h.length;F<z;F++)if(h[F](t,N,a,!0)){G=!0;break}if(G){t.lineMax=N,t.blkIndent!==0&&(u.push(t.bMarks[N]),_.push(t.bsCount[N]),S.push(t.tShift[N]),p.push(t.sCount[N]),t.sCount[N]-=t.blkIndent);break}u.push(t.bMarks[N]),_.push(t.bsCount[N]),S.push(t.tShift[N]),p.push(t.sCount[N]),t.sCount[N]=-1}const w=t.blkIndent;t.blkIndent=0;const L=t.push("blockquote_open","blockquote",1);L.markup=">";const D=[e,0];L.map=D,t.md.block.tokenize(t,e,N);const U=t.push("blockquote_close","blockquote",-1);U.markup=">",t.lineMax=d,t.parentType=y,D[1]=t.line;for(let x=0;x<S.length;x++)t.bMarks[x+e]=u[x],t.tShift[x+e]=S[x],t.sCount[x+e]=p[x],t.bsCount[x+e]=_[x];return t.blkIndent=w,!0}function $1(t,e,a,o){const c=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let s=t.bMarks[e]+t.tShift[e];const d=t.src.charCodeAt(s++);if(d!==42&&d!==45&&d!==95)return!1;let u=1;for(;s<c;){const p=t.src.charCodeAt(s++);if(p!==d&&!He(p))return!1;p===d&&u++}if(u<3)return!1;if(o)return!0;t.line=e+1;const _=t.push("hr","hr",0);return _.map=[e,t.line],_.markup=Array(u+1).join(String.fromCharCode(d)),!0}function cm(t,e){const a=t.eMarks[e];let o=t.bMarks[e]+t.tShift[e];const c=t.src.charCodeAt(o++);if(c!==42&&c!==45&&c!==43)return-1;if(o<a){const s=t.src.charCodeAt(o);if(!He(s))return-1}return o}function um(t,e){const a=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];let c=a;if(c+1>=o)return-1;let s=t.src.charCodeAt(c++);if(s<48||s>57)return-1;for(;;){if(c>=o)return-1;if(s=t.src.charCodeAt(c++),s>=48&&s<=57){if(c-a>=10)return-1;continue}if(s===41||s===46)break;return-1}return c<o&&(s=t.src.charCodeAt(c),!He(s))?-1:c}function K1(t,e){const a=t.level+2;for(let o=e+2,c=t.tokens.length-2;o<c;o++)t.tokens[o].level===a&&t.tokens[o].type==="paragraph_open"&&(t.tokens[o+2].hidden=!0,t.tokens[o].hidden=!0,o+=2)}function Q1(t,e,a,o){let c,s,d,u,_=e,p=!0;if(t.sCount[_]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[_]-t.listIndent>=4&&t.sCount[_]<t.blkIndent)return!1;let S=!1;o&&t.parentType==="paragraph"&&t.sCount[_]>=t.blkIndent&&(S=!0);let h,y,O;if((O=um(t,_))>=0){if(h=!0,d=t.bMarks[_]+t.tShift[_],y=Number(t.src.slice(d,O-1)),S&&y!==1)return!1}else if((O=cm(t,_))>=0)h=!1;else return!1;if(S&&t.skipSpaces(O)>=t.eMarks[_])return!1;if(o)return!0;const N=t.src.charCodeAt(O-1),w=t.tokens.length;h?(u=t.push("ordered_list_open","ol",1),y!==1&&(u.attrs=[["start",y]])):u=t.push("bullet_list_open","ul",1);const L=[_,0];u.map=L,u.markup=String.fromCharCode(N);let D=!1;const U=t.md.block.ruler.getRules("list"),x=t.parentType;for(t.parentType="list";_<a;){s=O,c=t.eMarks[_];const G=t.sCount[_]+O-(t.bMarks[_]+t.tShift[_]);let F=G;for(;s<c;){const fe=t.src.charCodeAt(s);if(fe===9)F+=4-(F+t.bsCount[_])%4;else if(fe===32)F++;else break;s++}const z=s;let $;z>=c?$=1:$=F-G,$>4&&($=1);const V=G+$;u=t.push("list_item_open","li",1),u.markup=String.fromCharCode(N);const ee=[_,0];u.map=ee,h&&(u.info=t.src.slice(d,O-1));const ce=t.tight,ne=t.tShift[_],me=t.sCount[_],pe=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=V,t.tight=!0,t.tShift[_]=z-t.bMarks[_],t.sCount[_]=F,z>=c&&t.isEmpty(_+1)?t.line=Math.min(t.line+2,a):t.md.block.tokenize(t,_,a,!0),(!t.tight||D)&&(p=!1),D=t.line-_>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=pe,t.tShift[_]=ne,t.sCount[_]=me,t.tight=ce,u=t.push("list_item_close","li",-1),u.markup=String.fromCharCode(N),_=t.line,ee[1]=_,_>=a||t.sCount[_]<t.blkInLine truncated
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+r/2.075+" -"+r+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+r)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+r)+" "+n+"h400000v"+(40+r)+"h-400000z"},Ie=function(r,n){return"M263,"+(601+r+n)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+r/2.084+" -"+r+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+r)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+r)+" "+n+"h400000v"+(40+r)+"h-400000z"},Be=function(r,n){return"M983 "+(10+r+n)+`
l`+r/3.13+" -"+r+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+r)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+r)+" "+n+"h400000v"+(40+r)+"h-400000z"},je=function(r,n){return"M424,"+(2398+r+n)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+r/4.223+" -"+r+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+r)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+r)+" "+n+`
h400000v`+(40+r)+"h-400000z"},et=function(r,n){return"M473,"+(2713+r+n)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+r/5.298+" -"+r+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+r)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+r)+" "+n+"h400000v"+(40+r)+"H1017.7z"},ut=function(r){const n=r/2;return"M400000 "+r+" H0 L"+n+" 0 l65 45 L145 "+(r-80)+" H400000z"},mt=function(r,n,i){const l=i-54-n-r;return"M702 "+(r+n)+"H400000"+(40+r)+`
H742v`+l+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+n+"H400000v"+(40+r)+"H742z"},En=function(r,n,i){n=1e3*n;let l="";switch(r){case"sqrtMain":l=we(n,Fe);break;case"sqrtSize1":l=Ie(n,Fe);break;case"sqrtSize2":l=Be(n,Fe);break;case"sqrtSize3":l=je(n,Fe);break;case"sqrtSize4":l=et(n,Fe);break;case"sqrtTall":l=mt(n,Fe,i)}return l},ht=function(r,n){switch(r){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},on={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},sn=function(r,n){switch(r){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class de{constructor(n){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=n,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(n){return D.contains(this.classes,n)}toNode(){const n=document.createDocumentFragment();for(let i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n}toMarkup(){let n="";for(let i=0;i<this.children.length;i++)n+=this.children[i].toMarkup();return n}toText(){const n=i=>i.toText();return this.children.map(n).join("")}}var gt={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222Line truncated
`+oe+" children.");for(let Ce=0;Ce<oe;Ce++){const Oe=new cn(B[Ce]),Le=new Wt([Oe],{width:"400em",height:J(Q),viewBox:"0 0 "+b+" "+H,preserveAspectRatio:Re[Ce]+" slice"}),qe=q.makeSvgSpan([le[Ce]],[Le],n);if(oe===1)return{span:qe,minWidth:Y,height:Q};qe.style.height=J(Q),A.push(qe)}return{span:q.makeSpan(["stretchy"],A,n),minWidth:Y,height:Q}}}const{span:l,minWidth:m,height:E}=i();return l.height=E,l.style.height=J(E),m>0&&(l.style.minWidth=J(m)),l}};function Te(r,n){if(!r||r.type!==n)throw new Error("Expected node of type "+n+", but got "+(r?"node of type "+r.type:String(r)));return r}function ua(r){const n=Nr(r);if(!n)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return n}function Nr(r){return r&&(r.type==="atom"||$l.hasOwnProperty(r.type))?r:null}const da=(r,n)=>{let i,l,m;r&&r.type==="supsub"?(l=Te(r.base,"accent"),i=l.base,r.base=i,m=Vl(De(r,n)),r.base=l):(l=Te(r,"accent"),i=l.base);const E=De(i,n.havingCrampedStyle()),b=l.isShifty&&D.isCharacterBox(i);let C=0;if(b){const H=D.getBaseElem(i),Q=De(H,n.havingCrampedStyle());C=Wr(Q).skew}const A=l.label==="\\c";let M=A?E.height+E.depth:Math.min(E.height,n.fontMetrics().xHeight),B;if(l.isStretchy)B=dn.svgSpan(l,n),B=q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:E},{type:"elem",elem:B,wrapperClasses:["svg-align"],wrapperStyle:C>0?{width:"calc(100% - "+J(2*C)+")",marginLeft:J(2*C)}:void 0}]},n);else{let H,Q;l.label==="\\vec"?(H=q.staticSvg("vec",n),Q=q.svgData.vec[1]):(H=q.makeOrd({mode:l.mode,text:l.label},n,"textord"),H=Wr(H),H.italic=0,Q=H.width,A&&(M+=H.depth)),B=q.makeSpan(["accent-body"],[H]);const oe=l.label==="\\textcircled";oe&&(B.classes.push("accent-full"),M=E.height);let le=C;oe||(le-=Q/2),B.style.left=J(le),l.label==="\\textcircled"&&(B.style.top=".2em"),B=q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:E},{type:"kern",size:-M},{type:"elem",elem:B}]},n)}const Y=q.makeSpan(["mord","accent"],[B],n);return m?(m.children[0]=Y,m.height=Math.max(Y.height,m.height),m.classes[0]="mord",m):Y},cc=(r,n)=>{const i=r.isStretchy?dn.mathMLnode(r.label):new Z.MathNode("mo",[wt(r.label,r.mode)]),l=new Z.MathNode("mover",[Ue(r.base,n),i]);return l.setAttribute("accent","true"),l},Np=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));ae({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(r,n)=>{const i=tr(n[0]),l=!Np.test(r.funcName),m=!l||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:l,isShifty:m,base:i}},htmlBuilder:da,mathmlBuilder:cc}),ae({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,n)=>{const i=n[0];let l=r.parser.mode;return l==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),l="text"),{type:"accent",mode:l,label:r.funcName,isStretchy:!1,isShifty:!0,base:i}},htmlBuilder:da,mathmlBuilder:cc}),ae({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,n)=>{let{parser:i,funcName:l}=r;const m=n[0];return{type:"accentUnder",mode:i.mode,label:l,base:m}},htmlBuilder:(r,n)=>{const i=De(r.base,n),l=dn.svgSpan(r,n),m=r.label==="\\utilde"?.12:0,E=q.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:l,wrapperClasses:["svg-align"]},{type:"kern",size:m},{type:"elem",elem:i}]},n);return q.makeSpan(["mord","accentunder"],[E],n)},mathmlBuilder:(r,n)=>{const i=dn.mathMLnode(r.label),l=new Z.MathNode("munder",[Ue(r.base,n),i]);return l.setAttribute("accentunder","true"),l}});const yr=r=>{const n=new Z.MathNode("mpadded",r?[r]:[]);return n.setAttribute("width","+0.6em"),n.setAttribute("lspace","0.3em"),n};ae({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(r,n,i){let{parser:l,funcName:m}=r;return{type:"xArrow",mode:l.mode,label:m,body:n[0],bLine truncated
]`,$p="\\\\[a-zA-Z@]+",Kp="\\\\[^\uD800-\uDFFF]",Qp="("+$p+")"+jc+"*",Xp=`\\\\(
|[ \r ]+
?)[ \r ]*`,Ia="[̀-ͯ]",Zp=new RegExp(Ia+"+$"),Jp="("+jc+"+)|"+(Xp+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Ia+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ia+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Qp)+("|"+Kp+")");class eu{constructor(n,i){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=n,this.settings=i,this.tokenRegex=new RegExp(Jp,"g"),this.catcodes={"%":14,"~":13}}setCatcode(n,i){this.catcodes[n]=i}lex(){const n=this.input,i=this.tokenRegex.lastIndex;if(i===n.length)return new Lt("EOF",new It(this,i,i));const l=this.tokenRegex.exec(n);if(l===null||l.index!==i)throw new s("Unexpected character: '"+n[i]+"'",new Lt(n[i],new It(this,i,i+1)));const m=l[6]||l[3]||(l[2]?"\\ ":" ");if(this.catcodes[m]===14){const E=n.indexOf(`
`,this.tokenRegex.lastIndex);return E===-1?(this.tokenRegex.lastIndex=n.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=E+1,this.lex()}return new Lt(m,new It(this,i,this.tokenRegex.lastIndex))}}class jp{constructor(n,i){n===void 0&&(n={}),i===void 0&&(i={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=i,this.builtins=n,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new s("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const n=this.undefStack.pop();for(const i in n)n.hasOwnProperty(i)&&(n[i]==null?delete this.current[i]:this.current[i]=n[i])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(n){return this.current.hasOwnProperty(n)||this.builtins.hasOwnProperty(n)}get(n){return this.current.hasOwnProperty(n)?this.current[n]:this.builtins[n]}set(n,i,l){if(l===void 0&&(l=!1),l){for(let m=0;m<this.undefStack.length;m++)delete this.undefStack[m][n];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][n]=i)}else{const m=this.undefStack[this.undefStack.length-1];m&&!m.hasOwnProperty(n)&&(m[n]=this.current[n])}i==null?delete this.current[n]:this.current[n]=i}}var eg=Ic;R("\\noexpand",function(r){const n=r.popToken();return r.isExpandable(n.text)&&(n.noexpand=!0,n.treatAsRelax=!0),{tokens:[n],numArgs:0}}),R("\\expandafter",function(r){const n=r.popToken();return r.expandOnce(!0),{tokens:[n],numArgs:0}}),R("\\@firstoftwo",function(r){return{tokens:r.consumeArgs(2)[0],numArgs:0}}),R("\\@secondoftwo",function(r){return{tokens:r.consumeArgs(2)[1],numArgs:0}}),R("\\@ifnextchar",function(r){const n=r.consumeArgs(3);r.consumeSpaces();const i=r.future();return n[0].length===1&&n[0][0].text===i.text?{tokens:n[1],numArgs:0}:{tokens:n[2],numArgs:0}}),R("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),R("\\TextOrMath",function(r){const n=r.consumeArgs(2);return r.mode==="text"?{tokens:n[0],numArgs:0}:{tokens:n[1],numArgs:0}});const tu={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};R("\\char",function(r){let n=r.popToken(),i,l="";if(n.text==="'")i=8,n=r.popToken();else if(n.text==='"')i=16,n=r.popToken();else if(n.text==="`")if(n=r.popToken(),n.text[0]==="\\")l=n.text.charCodeAt(1);else{if(n.text==="EOF")throw new s("\\char` missing argument");l=n.text.charCodeAt(0)}else i=10;if(i){if(l=tu[n.text],l==null||l>=i)throw new s("Invalid base-"+i+" digit "+n.text);let m;for(;(m=tu[r.future().text])!=null&&m<i;)l*=i,l+=m,r.popToken()}return"\\@char{"+l+"}"});const Da=(r,n,i,l)=>{let m=r.consumeArg().tokens;if(m.length!==1)throw new s("\\newcommand's first argument must be a macro name");const E=m[0].text,b=r.isDefined(E);if(b&&!n)throw new s("\\newcommand{"+E+"} attempting to redefine "+(E+"; use \\renewcommand"));if(!b&&!i)throw new s("\\renewcommand{"+E+"} when command "+E+" does not yet exist; use \\newcommand");let C=0;if(m=r.consumeArg().tokens,m.length===1&&m[0].text==="["){let A="",M=r.expandNextToken();for(;M.text!=="]"&&M.text!=="EOF";)A+=M.text,M=r.expandNextToken();if(!A.match(/^\s*[0-9]+\s*$/))throw new s("Invalid number of arguments: "+A);C=parseInt(A),m=r.consumeArg().tokens}return b&&l||r.macros.set(E,{tokens:m,numArgs:C}),""};R("\\newcommand",r=>Da(r,!1,!0,!1)),R("\\renewcommand",r=>Da(r,!0,!1,!1)),R("\\providecommand",r=>Da(r,!0,!0,!0)),R("\\message",r=>{const n=r.consumeArgs(1)[0];return console.log(n.reverse().map(i=>i.text).join("")),""}),R("\\errmessage",r=>{const n=r.consumeArgs(1)[0];return console.error(n.reverse().map(i=>i.text).join("")),""}),R("\\show",r=>{const n=r.popToken(),i=n.text;return console.log(n,r.macros.get(i),hn[i],Ke.math[i],Ke.text[i]),""}),R("\\bgroup","{"),R("\\egroup","}"),R("~","\\nobreakspace"),R("\\lq","`"),R("\\rq","'"),R("\\aa","\\r a"),R("\\AA","\\r A"),R("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),R("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),R("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),R("ℬ","\\mathscr{B}"),R("ℰ","\\mathscr{E}"),R("ℱ","\\mathscr{F}"),R("ℋ","\\mathscr{H}"),R("ℐ","\\mathscr{I}"),R("ℒ","\\mathscr{L}"),R("ℳ","\\mathscr{M}"),R("ℛ","\\mathscr{R}"),R("ℭ","\\mathfrak{C}"),R("ℌ","\\mathfrak{H}"),R("ℨ","\\mathfrak{Z}"),R("\\Bbbk","\\Bbb{k}"),R("·","\\cdotp"),R("\\llap","\\mathllap{\\textrm{#1}}"),R("\\rlap","\\mathrlap{\\textrm{#1}}"),R("\\clap","\\mathclap{\\textrm{#1}}"),R("\\mathstrut","\\vphantom{(}"),R("\\underbar","\\underline{\\text{#1}}"),R("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),R("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),R("\\ne","\\neq"),R("≠","\\neq"),R("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),R("∉"Line truncated
please report what input caused this bug`);return E=E.slice(1,-1),{type:"verb",mode:"text",body:E,star:b}}su.hasOwnProperty(i[0])&&!Ke[this.mode][i[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+i[0]+'" used in math mode',n),i=su[i[0]]+i.slice(1));const l=Zp.exec(i);l&&(i=i.substring(0,l.index),i==="i"?i="ı":i==="j"&&(i="ȷ"));let m;if(Ke[this.mode][i]){this.settings.strict&&this.mode==="math"&&Sr.indexOf(i)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+i[0]+'" used in math mode',n);const E=Ke[this.mode][i].group,b=It.range(n);let C;if(Wl.hasOwnProperty(E)){const A=E;C={type:"atom",mode:this.mode,family:A,loc:b,text:i}}else C={type:E,mode:this.mode,loc:b,text:i};m=C}else if(i.charCodeAt(0)>=128)this.settings.strict&&(Me(i.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+i[0]+'" used in math mode',n):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+i[0]+'"'+(" ("+i.charCodeAt(0)+")"),n)),m={type:"textord",mode:"text",loc:It.range(n),text:i};else return null;if(this.consume(),l)for(let E=0;E<l[0].length;E++){const b=l[0][E];if(!Ma[b])throw new s("Unknown accent ' "+b+"'",n);const C=Ma[b][this.mode]||Ma[b].text;if(!C)throw new s("Accent "+b+" unsupported in "+this.mode+" mode",n);m={type:"accent",mode:this.mode,loc:It.range(n),label:C,isStretchy:!1,isShifty:!0,base:m}}return m}}xr.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var wa=function(r,n){if(!(typeof r=="string"||r instanceof String))throw new TypeError("KaTeX can only parse string typed expression");const i=new xr(r,n);delete i.gullet.macros.current["\\df@tag"];let l=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new s("\\tag works only in display equations");l=[{type:"tag",mode:"text",body:l,tag:i.subparse([new Lt("\\df@tag")])}]}return l};let lu=function(r,n,i){n.textContent="";const l=La(r,i).toNode();n.appendChild(l)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),lu=function(){throw new s("KaTeX doesn't work in quirks mode.")});const ng=function(r,n){return La(r,n).toMarkup()},rg=function(r,n){const i=new G(n);return wa(r,i)},cu=function(r,n,i){if(i.throwOnError||!(r instanceof s))throw r;const l=q.makeSpan(["katex-error"],[new At(n)]);return l.setAttribute("title",r.toString()),l.setAttribute("style","color:"+i.errorColor),l},La=function(r,n){const i=new G(n);try{const l=wa(r,i);return Sp(l,r,i)}catch(l){return cu(l,r,i)}};var ag={version:"0.16.21",render:lu,renderToString:ng,ParseError:s,SETTINGS_SCHEMA:U,__parse:rg,__renderToDomTree:La,__renderToHTMLTree:function(r,n){const i=new G(n);try{const l=wa(r,i);return bp(l,r,i)}catch(l){return cu(l,r,i)}},__setFontMetrics:ln,__defineSymbol:g,__defineFunction:ae,__defineMacro:R,__domTree:{Span:Yt,Anchor:Vt,SymbolNode:At,SvgNode:Wt,PathNode:cn,LineNode:fr}},ig=ag;return o=o.default,o}()})})(cp);var bC=cp.exports,Tl=bC;function fm(t,e){var a,o,c=t.posMax,s=!0,d=!0;return a=e>0?t.src.charCodeAt(e-1):-1,o=e+1<=c?t.src.charCodeAt(e+1):-1,(a===32||a===9||o>=48&&o<=57)&&(d=!1),(o===32||o===9)&&(s=!1),{can_open:s,can_close:d}}function hC(t,e){var a,o,c,s,d;if(t.src[t.pos]!=="$")return!1;if(s=fm(t,t.pos),!s.can_open)return e||(t.pending+="$"),t.pos+=1,!0;for(a=t.pos+1,o=a;(o=t.src.indexOf("$",o))!==-1;){for(d=o-1;t.src[d]==="\\";)d-=1;if((o-d)%2==1)break;o+=1}return o===-1?(e||(t.pending+="$"),t.pos=a,!0):o-a===0?(e||(t.pending+="$$"),t.pos=a+1,!0):(s=fm(t,o),s.can_close?(e||(c=t.push("math_inline","math",0),c.markup="$",c.content=t.src.slice(a,o)),t.pos=o+1,!0):(e||(t.pending+="$"),t.pos=a,!0))}function TC(t,e,a,o){var c,s,d,u,_=!1,p,S=t.bMarks[e]+t.tShift[e],h=t.eMarks[e];if(S+2>h||t.src.slice(S,S+2)!=="$$")return!1;if(S+=2,c=t.src.slice(S,h),o)return!0;for(c.trim().slice(-2)==="$$"&&(c=c.trim().slice(0,-2),_=!0),d=e;!_&&(d++,!(d>=a||(S=t.bMarks[d]+t.tShift[d],h=t.eMarks[d],S<h&&t.tShift[d]<t.blkIndent)));)t.src.slice(S,h).trim().slice(-2)==="$$"&&(u=t.src.slice(0,h).lastIndexOf("$$"),s=t.src.slice(S,u),_=!0);return t.line=d+1,p=t.push("math_block","math",0),p.block=!0,p.content=(c&&c.trim()?c+`
`:"")+t.getLines(e+1,d,t.tShift[e],!0)+(s&&s.trim()?s:""),p.map=[e,t.line],p.markup="$$",!0}function Pr(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}var CC=function(e,a){a=a||{},a.katex&&(Tl=a.katex),a.blockClass||(a.blockClass="");var o=function(u){a.displayMode=!1;try{return Tl.renderToString(u,a)}catch(_){return a.throwOnError&&console.log(_),`<span class='katex-error' title='${Pr(_.toString())}'>${Pr(u)}</span>`}},c=function(u,_){return o(u[_].content)},s=function(u){a.displayMode=!0;try{return`<p class="katex-block ${a.blockClass}">`+Tl.renderToString(u,a)+"</p>"}catch(_){return a.throwOnError&&console.log(_),`<p class='katex-block katex-error ${a.blockClass}' title='${Pr(_.toString())}'>${Pr(u)}</p>`}},d=function(u,_){return s(u[_].content)+`
`};e.inline.ruler.after("escape","math_inline",hC),e.block.ruler.after("blockquote","math_block",TC,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=c,e.renderer.rules.math_block=d};const RC=Al(CC);/*!
* qrcode.vue v3.6.0
* A Vue.js component to generate QRCode. Both support Vue 2 and Vue 3
* © 2017-PRESENT @scopewu(https://github.com/scopewu)
* MIT License.
*/var nn=function(){return nn=Object.assign||function(e){for(var a,o=1,c=arguments.length;o<c;o++){a=arguments[o];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},nn.apply(this,arguments)};var wn;(function(t){var e=function(){function d(u,_,p,S){if(this.version=u,this.errorCorrectionLevel=_,this.modules=[],this.isFunction=[],u<d.MIN_VERSION||u>d.MAX_VERSION)throw new RangeError("Version value out of range");if(S<-1||S>7)throw new RangeError("Mask value out of range");this.size=u*4+17;for(var h=[],y=0;y<this.size;y++)h.push(!1);for(var y=0;y<this.size;y++)this.modules.push(h.slice()),this.isFunction.push(h.slice());this.drawFunctionPatterns();var O=this.addEccAndInterleave(p);if(this.drawCodewords(O),S==-1)for(var N=1e9,y=0;y<8;y++){this.applyMask(y),this.drawFormatBits(y);var w=this.getPenaltyScore();w<N&&(S=y,N=w),this.applyMask(y)}c(0<=S&&S<=7),this.mask=S,this.applyMask(S),this.drawFormatBits(S),this.isFunction=[]}return d.encodeText=function(u,_){var p=t.QrSegment.makeSegments(u);return d.encodeSegments(p,_)},d.encodeBinary=function(u,_){var p=t.QrSegment.makeBytes(u);return d.encodeSegments([p],_)},d.encodeSegments=function(u,_,p,S,h,y){if(p===void 0&&(p=1),S===void 0&&(S=40),h===void 0&&(h=-1),y===void 0&&(y=!0),!(d.MIN_VERSION<=p&&p<=S&&S<=d.MAX_VERSION)||h<-1||h>7)throw new RangeError("Invalid value");var O,N;for(O=p;;O++){var w=d.getNumDataCodewords(O,_)*8,L=s.getTotalBits(u,O);if(L<=w){N=L;break}if(O>=S)throw new RangeError("Data too long")}for(var D=0,U=[d.Ecc.MEDIUM,d.Ecc.QUARTILE,d.Ecc.HIGH];D<U.length;D++){var x=U[D];y&&N<=d.getNumDataCodewords(O,x)*8&&(_=x)}for(var G=[],F=0,z=u;F<z.length;F++){var $=z[F];a($.mode.modeBits,4,G),a($.numChars,$.mode.numCharCountBits(O),G);for(var V=0,ee=$.getData();V<ee.length;V++){var ce=ee[V];G.push(ce)}}c(G.length==N);var ne=d.getNumDataCodewords(O,_)*8;c(G.length<=ne),a(0,Math.min(4,ne-G.length),G),a(0,(8-G.length%8)%8,G),c(G.length%8==0);for(var me=236;G.length<ne;me^=253)a(me,8,G);for(var pe=[];pe.length*8<G.length;)pe.push(0);return G.forEach(function(be,fe){return pe[fe>>>3]|=be<<7-(fe&7)}),new d(O,_,pe,h)},d.prototype.getModule=function(u,_){return 0<=u&&u<this.size&&0<=_&&_<this.size&&this.modules[_][u]},d.prototype.getModules=function(){return this.modules},d.prototype.drawFunctionPatterns=function(){for(var u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var _=this.getAlignmentPatternPositions(),p=_.length,u=0;u<p;u++)for(var S=0;S<p;S++)u==0&&S==0||u==0&&S==p-1||u==p-1&&S==0||this.drawAlignmentPattern(_[u],_[S]);this.drawFormatBits(0),this.drawVersion()},d.prototype.drawFormatBits=function(u){for(var _=this.errorCorrectionLevel.formatBits<<3|u,p=_,S=0;S<10;S++)p=p<<1^(p>>>9)*1335;var h=(_<<10|p)^21522;c(h>>>15==0);for(var S=0;S<=5;S++)this.setFunctionModule(8,S,o(h,S));this.setFunctionModule(8,7,o(h,6)),this.setFunctionModule(8,8,o(h,7)),this.setFunctionModule(7,8,o(h,8));for(var S=9;S<15;S++)this.setFunctionModule(14-S,8,o(h,S));for(var S=0;S<8;S++)this.setFunctionModule(this.size-1-S,8,o(h,S));for(var S=8;S<15;S++)this.setFunctionModule(8,this.size-15+S,o(h,S));this.setFunctionModule(8,this.size-8,!0)},d.prototype.drawVersion=function(){if(!(this.version<7)){for(var u=this.version,_=0;_<12;_++)u=u<<1^(u>>>11)*7973;var p=this.version<<12|u;c(p>>>18==0);for(var _=0;_<18;_++){var S=o(p,_),h=this.size-11+_%3,y=Math.floor(_/3);this.setFunctionModule(h,y,S),this.setFunctionModule(y,h,S)}}},d.prototype.drawFinderPattern=function(u,_){for(var p=-4;p<=4;p++)for(var S=-4;S<=4;S++){var h=Math.max(Math.abs(S),Math.abs(p)),y=u+S,O=_+p;0<=y&&y<this.size&&0<=O&&O<this.size&&this.setFunctionModule(y,O,h!=2&&h!=4)}},d.prototype.drawAlignmentPattern=function(u,_){for(var p=-2;p<=2;p++)for(var S=-2;S<=2;S++)this.setFunctionModule(u+S,_+p,Math.max(Math.abs(S),Math.abs(p))!=1)},d.prototype.setFunctionModule=function(u,_,p){this.modules[_][u]=p,this.isFunction[_][u]=!0},d.prototype.addEccAndInterleave=function(u){var _=this.version,p=this.errorCorrectionLevel;if(u.length!=d.getNumDataCodewords(_,p))throw new RangeError("Invalid argument");for(var S=d.NUM_ERROR_CORRECTION_BLOCKS[p.ordinal][_],h=d.ECC_CODEWORDS_PER_BLOCK[p.ordinal][_],y=Math.floor(d.getNumRawDataModules(_)/8),O=S-y%S,N=Math.floor(y/S),w=[],L=d.reedSolomonComputeDivisor(h),D=0,U=0;D<S;D++){var x=u.slice(U,U+N-h+(D<O?0:1));U+=x.length;var G=d.reedSolomonComputeRemainder(x,L);D<O&&x.push(0),w.push(x.concat(G))}for(var F=[],z=function($){w.forEach(function(V,ee){($!=N-h||ee>=O)&&F.push(V[$])})},D=0;D<w[0].length;D++)z(D);return c(F.length==y),F},d.prototype.drawCodewords=function(u){if(u.length!=Math.floor(d.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var _=0,p=this.size-1;p>=1;p-=2){p==6&&(p=5);for(var S=0;S<this.size;S++)for(var h=0;h<2;h++){var y=p-h,O=(p+1&2)==0,N=O?this.size-1-S:S;!thiLine truncated
@@ -1,296 +0,0 @@
import{e as sg,a as lg,j as cg,E as ug}from"./el-button-CIFg-IwZ.js";import{b as gm,d as dn,aG as dg,a as Et,t as Cn,u as Em,ao as _g,aH as mg,o as Oe,e as Dt,w as ze,C as st,T as pg,g as X,B as gg,W as ot,aC as Eg,X as fg,f as ft,Y as at,r as Un,$ as pt,Z as fn,M as Tl,as as fm,D as Sg,_ as Sm,j as bm,k as xa,aI as bg,aq as hg,aJ as Tg,ar as Cg,a6 as Rg,H as su,h as Pn,i as Ng,aK as hm,v as lu,A as ar,aL as Tm,S as yg,a8 as Og,aa as Cm,a1 as un,ab as cu,ac as uu,aF as Ag,a9 as vg,aM as Ig,aN as Dg,aO as xg,ad as Mg,aP as wg,aQ as Lg,ae as kg}from"./index-CVeK0dPI.js";import{e as Pg,f as Fg,g as Bg,E as Ug,h as Gg,d as Yg}from"./config-BobZadUT.js";import{E as qg}from"./el-tag-CbTkcEh6.js";var zg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const Hg=gm({...Pg,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),Vg=Fg,Wg=dn({name:"ElDrawer",inheritAttrs:!1}),$g=dn({...Wg,props:Hg,emits:Vg,setup(t,{expose:e}){const a=t,o=dg();sg({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},Et(()=>!!o.title));const c=Cn(),s=Cn(),d=Em("drawer"),{t:u}=_g(),{afterEnter:_,afterLeave:g,beforeLeave:S,visible:h,rendered:O,titleId:y,bodyId:N,zIndex:M,onModalClick:P,onOpenAutoFocus:D,onCloseAutoFocus:Y,onFocusoutPrevented:w,onCloseRequested:U,handleClose:B}=Bg(a,c),H=Et(()=>a.direction==="rtl"||a.direction==="ltr"),Q=Et(()=>mg(a.size));return e({handleClose:B,afterEnter:_,afterLeave:g}),(V,re)=>(Oe(),Dt(X(cg),{to:V.appendTo,disabled:V.appendTo!=="body"?!1:!V.appendToBody},{default:ze(()=>[st(pg,{name:X(d).b("fade"),onAfterEnter:X(_),onAfterLeave:X(g),onBeforeLeave:X(S),persisted:""},{default:ze(()=>[gg(st(X(Ug),{mask:V.modal,"overlay-class":V.modalClass,"z-index":X(M),onClick:X(P)},{default:ze(()=>[st(X(lg),{loop:"",trapped:X(h),"focus-trap-el":c.value,"focus-start-el":s.value,onFocusAfterTrapped:X(D),onFocusAfterReleased:X(Y),onFocusoutPrevented:X(w),onReleaseRequested:X(U)},{default:ze(()=>[ot("div",Eg({ref_key:"drawerRef",ref:c,"aria-modal":"true","aria-label":V.title||void 0,"aria-labelledby":V.title?void 0:X(y),"aria-describedby":X(N)},V.$attrs,{class:[X(d).b(),V.direction,X(h)&&"open"],style:X(H)?"width: "+X(Q):"height: "+X(Q),role:"dialog",onClick:fg(()=>{},["stop"])}),[ot("span",{ref_key:"focusStartRef",ref:s,class:ft(X(d).e("sr-focus")),tabindex:"-1"},null,2),V.withHeader?(Oe(),at("header",{key:0,class:ft(X(d).e("header"))},[V.$slots.title?Un(V.$slots,"title",{key:1},()=>[fn(" DEPRECATED SLOT ")]):Un(V.$slots,"header",{key:0,close:X(B),titleId:X(y),titleClass:X(d).e("title")},()=>[V.$slots.title?fn("v-if",!0):(Oe(),at("span",{key:0,id:X(y),role:"heading","aria-level":V.headerAriaLevel,class:ft(X(d).e("title"))},pt(V.title),11,["id","aria-level"]))]),V.showClose?(Oe(),at("button",{key:2,"aria-label":X(u)("el.drawer.close"),class:ft(X(d).e("close-btn")),type:"button",onClick:X(B)},[st(X(Tl),{class:ft(X(d).e("close"))},{default:ze(()=>[st(X(fm))]),_:1},8,["class"])],10,["aria-label","onClick"])):fn("v-if",!0)],2)):fn("v-if",!0),X(O)?(Oe(),at("div",{key:1,id:X(N),class:ft(X(d).e("body"))},[Un(V.$slots,"default")],10,["id"])):fn("v-if",!0),V.$slots.footer?(Oe(),at("div",{key:2,class:ft(X(d).e("footer"))},[Un(V.$slots,"footer")],2)):fn("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Sg,X(h)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var Kg=Sm($g,[["__file","drawer.vue"]]);const Qg=bm(Kg),Xg=gm({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:t=>t>=0&&t<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:xa(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:xa([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:xa(Function),default:t=>`${t}%`}}),Zg=dn({name:"ElProgress"}),Jg=dn({...Zg,props:Xg,setup(t){const e=t,a={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=Em("progress"),c=Et(()=>{const w={width:`${e.percentage}%`,animationDuration:`${e.duration}s`},U=Y(e.percentage);return U.includes("gradient")?w.background=U:w.backgroundColor=U,w}),s=Et(()=>(e.strokeWidth/e.width*100Line truncated
M 50 50
m 0 ${U?"":"-"}${w}
a ${w} ${w} 0 1 1 0 ${U?"-":""}${w*2}
a ${w} ${w} 0 1 1 0 ${U?"":"-"}${w*2}
`}),_=Et(()=>2*Math.PI*d.value),g=Et(()=>e.type==="dashboard"?.75:1),S=Et(()=>`${-1*_.value*(1-g.value)/2}px`),h=Et(()=>({strokeDasharray:`${_.value*g.value}px, ${_.value}px`,strokeDashoffset:S.value})),O=Et(()=>({strokeDasharray:`${_.value*g.value*(e.percentage/100)}px, ${_.value}px`,strokeDashoffset:S.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),y=Et(()=>{let w;return e.color?w=Y(e.percentage):w=a[e.status]||a.default,w}),N=Et(()=>e.status==="warning"?bg:e.type==="line"?e.status==="success"?hg:Tg:e.status==="success"?Cg:fm),M=Et(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),P=Et(()=>e.format(e.percentage));function D(w){const U=100/w.length;return w.map((H,Q)=>su(H)?{color:H,percentage:(Q+1)*U}:H).sort((H,Q)=>H.percentage-Q.percentage)}const Y=w=>{var U;const{color:B}=e;if(Rg(B))return B(w);if(su(B))return B;{const H=D(B);for(const Q of H)if(Q.percentage>w)return Q.color;return(U=H[H.length-1])==null?void 0:U.color}};return(w,U)=>(Oe(),at("div",{class:ft([X(o).b(),X(o).m(w.type),X(o).is(w.status),{[X(o).m("without-text")]:!w.showText,[X(o).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(Oe(),at("div",{key:0,class:ft(X(o).b("bar"))},[ot("div",{class:ft(X(o).be("bar","outer")),style:Pn({height:`${w.strokeWidth}px`})},[ot("div",{class:ft([X(o).be("bar","inner"),{[X(o).bem("bar","inner","indeterminate")]:w.indeterminate},{[X(o).bem("bar","inner","striped")]:w.striped},{[X(o).bem("bar","inner","striped-flow")]:w.stripedFlow}]),style:Pn(X(c))},[(w.showText||w.$slots.default)&&w.textInside?(Oe(),at("div",{key:0,class:ft(X(o).be("bar","innerText"))},[Un(w.$slots,"default",{percentage:w.percentage},()=>[ot("span",null,pt(X(P)),1)])],2)):fn("v-if",!0)],6)],6)],2)):(Oe(),at("div",{key:1,class:ft(X(o).b("circle")),style:Pn({height:`${w.width}px`,width:`${w.width}px`})},[(Oe(),at("svg",{viewBox:"0 0 100 100"},[ot("path",{class:ft(X(o).be("circle","track")),d:X(u),stroke:`var(${X(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":w.strokeLinecap,"stroke-width":X(s),fill:"none",style:Pn(X(h))},null,14,["d","stroke","stroke-linecap","stroke-width"]),ot("path",{class:ft(X(o).be("circle","path")),d:X(u),stroke:X(y),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":X(s),style:Pn(X(O))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(Oe(),at("div",{key:2,class:ft(X(o).e("text")),style:Pn({fontSize:`${X(M)}px`})},[Un(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(Oe(),Dt(X(Tl),{key:1},{default:ze(()=>[(Oe(),Dt(Ng(X(N))))]),_:1})):(Oe(),at("span",{key:0},pt(X(P)),1))])],6)):fn("v-if",!0)],10,["aria-valuenow"]))}});var jg=Sm(Jg,[["__file","progress.vue"]]);const eE=bm(jg),tE=hm("fileData",()=>{const t=lu(JSON.parse(localStorage.getItem("receiveData")||"[]")||[]),e=lu(JSON.parse(localStorage.getItem("shareData")||"[]")||[]);function a(){localStorage.setItem("receiveData",JSON.stringify(t)),localStorage.setItem("shareData",JSON.stringify(e))}function o(u){t.unshift(u),a()}function c(u){e.unshift(u),a()}function s(u){t.splice(u,1),a()}function d(u){e.splice(u,1),a()}return{receiveData:t,shareData:e,save:a,addShareData:c,addReceiveData:o,deleteReceiveData:s,deleteShareData:d}}),Rm=hm("fileBox",()=>({showFileBox:Cn(!1)}));function Nm(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const a=t[e],o=typeof a;(o==="object"||o==="function")&&!Object.isFrozen(a)&&Nm(a)}),t}class du{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ym(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function hn(t,...e){const a=Object.create(null);for(const o in t)a[o]=t[o];return e.forEach(function(o){for(const c in o)a[c]=o[c]}),a}const nE="</span>",_u=t=>!!t.scope,rE=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const a=t.split(".");return[`${e}${a.shift()}`,...a.map((o,c)=>`${o}${"_".repeat(c+1)}`)].join(" ")}return`${e}${t}`};class aE{constructor(e,a){this.buffer="",this.classPrefix=a.classPrefix,e.walk(this)}addText(e){this.buffer+=ym(e)}openNode(e){if(!_u(e))return;const a=rE(e.scope,{prefix:this.classPrefix});this.span(a)}closeNode(e){_u(e)&&(this.buffer+=nE)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const mu=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class Rl{constructor(){this.rootNode=mu(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){tLine truncated
https://github.com/highlightjs/highlight.js/issues/2277`),j=W,he=ae),_e===void 0&&(_e=!0);const Ge={code:he,language:j};pe("before:highlight",Ge);const Ze=Ge.result?Ge.result:h(Ge.language,Ge.code,_e);return Ze.code=Ge.code,pe("after:highlight",Ze),Ze}function h(W,ae,_e,he){const j=Object.create(null);function Ge(ee,se){return ee.keywords[se]}function Ze(){if(!ce.keywords){Ve.addText(we);return}let ee=0;ce.keywordPatternRe.lastIndex=0;let se=ce.keywordPatternRe.exec(we),ue="";for(;se;){ue+=we.substring(ee,se.index);const Ce=dt.case_insensitive?se[0].toLowerCase():se[0],Je=Ge(ce,Ce);if(Je){const[St,On]=Je;if(Ve.addText(ue),ue="",j[Ce]=(j[Ce]||0)+1,j[Ce]<=$E&&(Yt+=On),St.startsWith("_"))ue+=se[0];else{const Fe=dt.classNameAliases[St]||St;Ne(se[0],Fe)}}else ue+=se[0];ee=ce.keywordPatternRe.lastIndex,se=ce.keywordPatternRe.exec(we)}ue+=we.substring(ee),Ve.addText(ue)}function Ke(){if(we==="")return;let ee=null;if(typeof ce.subLanguage=="string"){if(!e[ce.subLanguage]){Ve.addText(we);return}ee=h(ce.subLanguage,we,!0,Wt[ce.subLanguage]),Wt[ce.subLanguage]=ee._top}else ee=y(we,ce.subLanguage.length?ce.subLanguage:null);ce.relevance>0&&(Yt+=ee.relevance),Ve.__addSublanguage(ee._emitter,ee.language)}function Re(){ce.subLanguage!=null?Ke():Ze(),we=""}function Ne(ee,se){ee!==""&&(Ve.startScope(se),Ve.addText(ee),Ve.endScope())}function xe(ee,se){let ue=1;const Ce=se.length-1;for(;ue<=Ce;){if(!ee._emit[ue]){ue++;continue}const Je=dt.classNameAliases[ee[ue]]||ee[ue],St=se[ue];Je?Ne(St,Je):(we=St,Ze(),we=""),ue++}}function ve(ee,se){return ee.scope&&typeof ee.scope=="string"&&Ve.openNode(dt.classNameAliases[ee.scope]||ee.scope),ee.beginScope&&(ee.beginScope._wrap?(Ne(we,dt.classNameAliases[ee.beginScope._wrap]||ee.beginScope._wrap),we=""):ee.beginScope._multi&&(xe(ee.beginScope,se),we="")),ce=Object.create(ee,{parent:{value:ce}}),ce}function Pe(ee,se,ue){let Ce=cE(ee.endRe,ue);if(Ce){if(ee["on:end"]){const Je=new du(ee);ee["on:end"](se,Je),Je.isMatchIgnored&&(Ce=!1)}if(Ce){for(;ee.endsParent&&ee.parent;)ee=ee.parent;return ee}}if(ee.endsWithParent)return Pe(ee.parent,se,ue)}function et(ee){return ce.matcher.regexIndex===0?(we+=ee[0],1):(Rt=!0,0)}function tt(ee){const se=ee[0],ue=ee.rule,Ce=new du(ue),Je=[ue.__beforeBegin,ue["on:begin"]];for(const St of Je)if(St&&(St(ee,Ce),Ce.isMatchIgnored))return et(se);return ue.skip?we+=se:(ue.excludeBegin&&(we+=se),Re(),!ue.returnBegin&&!ue.excludeBegin&&(we=se)),ve(ue,ee),ue.returnBegin?0:se.length}function ut(ee){const se=ee[0],ue=ae.substring(ee.index),Ce=Pe(ce,ee,ue);if(!Ce)return fu;const Je=ce;ce.endScope&&ce.endScope._wrap?(Re(),Ne(se,ce.endScope._wrap)):ce.endScope&&ce.endScope._multi?(Re(),xe(ce.endScope,ee)):Je.skip?we+=se:(Je.returnEnd||Je.excludeEnd||(we+=se),Re(),Je.excludeEnd&&(we=se));do ce.scope&&Ve.closeNode(),!ce.skip&&!ce.subLanguage&&(Yt+=ce.relevance),ce=ce.parent;while(ce!==Ce.parent);return Ce.starts&&ve(Ce.starts,ee),Je.returnEnd?0:se.length}function Tt(){const ee=[];for(let se=ce;se!==dt;se=se.parent)se.scope&&ee.unshift(se.scope);ee.forEach(se=>Ve.openNode(se))}let Vt={};function Nn(ee,se){const ue=se&&se[0];if(we+=ee,ue==null)return Re(),0;if(Vt.type==="begin"&&se.type==="end"&&Vt.index===se.index&&ue===""){if(we+=ae.slice(se.index,se.index+1),!c){const Ce=new Error(`0 width match regex (${W})`);throw Ce.languageName=W,Ce.badRule=Vt.rule,Ce}return 1}if(Vt=se,se.type==="begin")return tt(se);if(se.type==="illegal"&&!_e){const Ce=new Error('Illegal lexeme "'+ue+'" for mode "'+(ce.scope||"<unnamed>")+'"');throw Ce.mode=ce,Ce}else if(se.type==="end"){const Ce=ut(se);if(Ce!==fu)return Ce}if(se.type==="illegal"&&ue==="")return 1;if(qt>1e5&&qt>se.index*3)throw new Error("potential infinite loop, way more iterations than matches");return we+=ue,ue.length}const dt=re(W);if(!dt)throw In(s.replace("{}",W)),new Error('Unknown language: "'+W+'"');const yn=zE(dt);let At="",ce=he||yn;const Wt={},Ve=new u.__emitter(u);Tt();let we="",Yt=0,Ct=0,qt=0,Rt=!1;try{if(dt.__emitTokens)dt.__emitTokens(ae,Ve);else{for(ce.matcher.considerAll();;){qt++,Rt?Rt=!1:ce.matcher.considerAll(),ce.matcher.lastIndex=Ct;const ee=ce.matcher.exec(ae);if(!ee)break;const se=ae.substring(Ct,ee.index),ue=Nn(se,ee);Ct=ee.index+ue}Nn(ae.substring(Ct))}return Ve.finalize(),At=Ve.toHTML(),{language:W,value:At,relevance:Yt,illegal:!1,_emitter:Ve,_top:ce}}catch(ee){if(ee.message&&ee.message.includes("Illegal"))return{language:W,value:Ma(ae),illegal:!0,relevance:0,_illegalBy:{message:ee.message,index:Ct,context:ae.slice(Ct-100,Ct+100),mode:ee.mode,resultSoFar:At},_emitter:Ve};if(c)return{language:W,value:Ma(ae),illegal:!1,relevance:0,errorRaised:ee,_emitter:Ve,_top:ce};throw ee}}function O(W){const ae={value:Ma(W),illegal:!1,relevance:0,_top:d,_emitter:new u.__emitter(u)};return ae._emitter.addText(W),ae}function y(W,ae){ae=ae||u.languages||Object.keys(e);const _e=O(W),he=ae.filter(re).filter(te).map(Re=>h(Re,W,!1));he.unshift(_e);const j=he.sort((Re,Ne)=>{if(Re.relevance!==Ne.relevance)return Ne.relevance-RLine truncated
`},N]}}return So=c,So}var bo,r_;function kS(){if(r_)return bo;r_=1;function t(e){const a="[a-zA-Z_][\\w.]*",o="<\\?(lasso(script)?|=)",c="\\]|\\?>",s={$pattern:a+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},d=e.COMMENT("<!--","-->",{relevance:0}),u={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[d]}},_={className:"meta",begin:"\\[/noprocess|"+o},g={className:"symbol",begin:"'"+a+"'"},S=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+a},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:a,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+a,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[g]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:a+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:s,contains:[{className:"meta",begin:c,relevance:0,starts:{end:"\\[|"+o,returnEnd:!0,relevance:0,contains:[d]}},u,_,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:s,contains:[{className:"meta",begin:c,relevance:0,starts:{end:"\\[noprocess\\]|"+o,returnEnd:!0,contains:[d]}},u,_].concat(S)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(S)}}return bo=t,bo}var ho,a_;function PS(){if(a_)return ho;a_=1;function t(e){const o=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(te=>te+"(?![a-zA-Z@:_])")),c=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(te=>te+"(?![a-zA-Z:_])").join("|")),s=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],d=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],u={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:o},{endsParent:!0,begin:c},{endsParent:!0,variants:d},{endsParent:!0,relevance:0,variants:s}]},_={className:"params",relevance:0,begin:/#+\d?/},g={variants:d},S={className:"built_in",relevance:0,begin:/[$&^_]/},h={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},O=e.COMMENT("%","$",{relevance:0}),y=[u,_,g,S,h,O],N={begin:/\{/,end:/\}/,relevance:0,contains:["self",...y]},M=e.inheLine truncated
]`,N={scope:"string",variants:[S,g,h,O]},M={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},P=["false","null","true"],D=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],Y=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],U={keyword:D,literal:(fe=>{const pe=[];return fe.forEach(Be=>{pe.push(Be),Be.toLowerCase()===Be?pe.push(Be.toUpperCase()):pe.push(Be.toLowerCase())}),pe})(P),built_in:Y},B=fe=>fe.map(pe=>pe.replace(/\|\d+$/,"")),H={variants:[{match:[/new/,a.concat(y,"+"),a.concat("(?!",B(Y).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},Q=a.concat(c,"\\b(?!\\()"),V={variants:[{match:[a.concat(/::/,a.lookahead(/(?!class\b)/)),Q],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,a.concat(/::/,a.lookahead(/(?!class\b)/)),Q],scope:{1:"title.class",3:"variable.constant"}},{match:[s,a.concat("::",a.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},re={scope:"attr",match:a.concat(c,a.lookahead(":"),a.lookahead(/(?!::)/))},ge={relevance:0,begin:/\(/,end:/\)/,keywords:U,contains:[re,d,V,e.C_BLOCK_COMMENT_MODE,N,M,H]},te={relevance:0,match:[/\b/,a.concat("(?!fn\\b|function\\b|",B(D).join("\\b|"),"|",B(Y).join("\\b|"),"\\b)"),c,a.concat(y,"*"),a.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[ge]};ge.contains.push(te);const be=[re,V,e.C_BLOCK_COMMENT_MODE,N,M,H],Ee={begin:a.concat(/#\[\s*/,s),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:P,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:P,keyword:["new","array"]},contains:["self",...be]},...be,{scope:"meta",match:s}]};return{case_insensitive:!1,keywords:U,contains:[Ee,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},u,{scope:"variable.language",match:/\$this\b/},d,te,V,{match:[/const/,/\s/,c],scope:{1:"keyword",3:"variable.constant"}},H,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:U,contains:["self",d,V,e.C_BLOCK_COMMENT_MODE,N,M]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interLine truncated
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return Ms=t,Ms}var ws,f0;function Qb(){if(f0)return ws;f0=1;function t(e){const a="[a-z][a-zA-Z0-9_]*",o={className:"string",begin:"\\$.{1}"},c={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:a+":",relevance:0},e.C_NUMBER_MODE,c,o,{begin:"\\|[ ]*"+a+"([ ]+"+a+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+a}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,o,e.C_NUMBER_MODE,c]}]}}return ws=t,ws}var Ls,S0;function Xb(){if(S0)return Ls;S0=1;function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return Ls=t,Ls}var ks,b0;function Zb(){if(b0)return ks;b0=1;function t(e){const a={className:"variable",begin:/\b_+[a-zA-Z]\w*/},o={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},c={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},s=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],d=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],u=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSitesLine truncated
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return Bs=t,Bs}var Us,R0;function th(){if(R0)return Us;R0=1;function t(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return Us=t,Us}var Gs,N0;function nh(){if(N0)return Gs;N0=1;const t=g=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:g.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[g.APOS_STRING_MODE,g.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:g.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],a=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],o=[...e,...a],c=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-wLine truncated
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return Ys=t,Ys}var qs,O0;function ah(){if(O0)return qs;O0=1;function t(V){return V?typeof V=="string"?V:V.source:null}function e(V){return a("(?=",V,")")}function a(...V){return V.map(ge=>t(ge)).join("")}function o(V){const re=V[V.length-1];return typeof re=="object"&&re.constructor===Object?(V.splice(V.length-1,1),re):{}}function c(...V){return"("+(o(V).capture?"":"?:")+V.map(te=>t(te)).join("|")+")"}const s=V=>a(/\b/,V,/\w$/.test(V)?/\b/:/\B/),d=["Protocol","Type"].map(s),u=["init","self"].map(s),_=["Any","Self"],g=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],S=["false","nil","true"],h=["assignment","associativity","higherThan","left","lowerThan","none","right"],O=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],y=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],N=c(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),M=c(N,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),P=a(N,M,"*"),D=c(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Y=c(D,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=a(D,Y,"*"),U=a(/[A-Z]/,Y,"*"),B=["attached","autoclosure",a(/convention\(/,c("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",a(/objc\(/,w,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],H=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Q(V){const re={match:/\s+/,relevance:0},ge=V.COMMENT("/\\*","\\*/",{contains:["self"]}),te=[V.C_LINE_COMMENT_MODE,ge],be={match:[/\./,c(...d,...u)],className:{2:"keyword"}},Ee={match:a(/\./,c(...g)),relevance:0},fe=g.filter(Le=>typeof Le=="string").concat(["_|0"]),pe=g.filter(Le=>typeof Le!="string").concat(_).map(s),Be={variants:[{className:"keyword",match:c(...pe,...u)}]},W={$pattern:c(/\b\w+/,/#\w+/),keyword:fe.concat(O),literal:S},ae=[be,Ee,Be],_e={match:a(/\./,c(...y)),relevance:0},he={className:"built_in",match:a(/\b/,c(...y),/(?=\()/)},j=[_e,he],Ge={match:/->/,relevance:0},Ze={className:"operatLine truncated
`," "],Fh=["{","}","|","\\","^","`"].concat(Ph),Bh=["'"].concat(Fh),Z0=["%","/","?",";","#"].concat(Bh),J0=["/","?","#"],Uh=255,j0=/^[+a-z0-9A-Z_-]{0,63}$/,Gh=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,em={javascript:!0,"javascript:":!0},tm={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function vl(t,e){if(t&&t instanceof Lr)return t;const a=new Lr;return a.parse(t,e),a}Lr.prototype.parse=function(t,e){let a,o,c,s=t;if(s=s.trim(),!e&&t.split("#").length===1){const g=kh.exec(s);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}let d=wh.exec(s);if(d&&(d=d[0],a=d.toLowerCase(),this.protocol=d,s=s.substr(d.length)),(e||d||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(c=s.substr(0,2)==="//",c&&!(d&&em[d])&&(s=s.substr(2),this.slashes=!0)),!em[d]&&(c||d&&!tm[d])){let g=-1;for(let N=0;N<J0.length;N++)o=s.indexOf(J0[N]),o!==-1&&(g===-1||o<g)&&(g=o);let S,h;g===-1?h=s.lastIndexOf("@"):h=s.lastIndexOf("@",g),h!==-1&&(S=s.slice(0,h),s=s.slice(h+1),this.auth=S),g=-1;for(let N=0;N<Z0.length;N++)o=s.indexOf(Z0[N]),o!==-1&&(g===-1||o<g)&&(g=o);g===-1&&(g=s.length),s[g-1]===":"&&g--;const O=s.slice(0,g);s=s.slice(g),this.parseHost(O),this.hostname=this.hostname||"";const y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){const N=this.hostname.split(/\./);for(let M=0,P=N.length;M<P;M++){const D=N[M];if(D&&!D.match(j0)){let Y="";for(let w=0,U=D.length;w<U;w++)D.charCodeAt(w)>127?Y+="x":Y+=D[w];if(!Y.match(j0)){const w=N.slice(0,M),U=N.slice(M+1),B=D.match(Gh);B&&(w.push(B[1]),U.unshift(B[2])),U.length&&(s=U.join(".")+s),this.hostname=w.join(".");break}}}}this.hostname.length>Uh&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const u=s.indexOf("#");u!==-1&&(this.hash=s.substr(u),s=s.slice(0,u));const _=s.indexOf("?");return _!==-1&&(this.search=s.substr(_),s=s.slice(0,_)),s&&(this.pathname=s),tm[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Lr.prototype.parseHost=function(t){let e=Lh.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};const Yh=Object.freeze(Object.defineProperty({__proto__:null,decode:zn,encode:dr,format:Al,parse:vl},Symbol.toStringTag,{value:"Module"})),Fm=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Bm=/[\0-\x1F\x7F-\x9F]/,qh=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Il=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Um=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFALine truncated
`};rn.fence=function(t,e,a,o,c){const s=t[e],d=s.info?Hn(s.info).trim():"";let u="",_="";if(d){const S=d.split(/(\s+)/g);u=S[0],_=S.slice(2).join("")}let g;if(a.highlight?g=a.highlight(s.content,u,_)||Rn(s.content):g=Rn(s.content),g.indexOf("<pre")===0)return g+`
`;if(d){const S=s.attrIndex("class"),h=s.attrs?s.attrs.slice():[];S<0?h.push(["class",a.langPrefix+u]):(h[S]=h[S].slice(),h[S][1]+=" "+a.langPrefix+u);const O={attrs:h};return`<pre><code${c.renderAttrs(O)}>${g}</code></pre>
`}return`<pre><code${c.renderAttrs(s)}>${g}</code></pre>
`};rn.image=function(t,e,a,o,c){const s=t[e];return s.attrs[s.attrIndex("alt")][1]=c.renderInlineAsText(s.children,a,o),c.renderToken(t,e,a)};rn.hardbreak=function(t,e,a){return a.xhtmlOut?`<br />
`:`<br>
`};rn.softbreak=function(t,e,a){return a.breaks?a.xhtmlOut?`<br />
`:`<br>
`:`
`};rn.text=function(t,e){return Rn(t[e].content)};rn.html_block=function(t,e){return t[e].content};rn.html_inline=function(t,e){return t[e].content};function Vn(){this.rules=Ur({},rn)}Vn.prototype.renderAttrs=function(e){let a,o,c;if(!e.attrs)return"";for(c="",a=0,o=e.attrs.length;a<o;a++)c+=" "+Rn(e.attrs[a][0])+'="'+Rn(e.attrs[a][1])+'"';return c};Vn.prototype.renderToken=function(e,a,o){const c=e[a];let s="";if(c.hidden)return"";c.block&&c.nesting!==-1&&a&&e[a-1].hidden&&(s+=`
`),s+=(c.nesting===-1?"</":"<")+c.tag,s+=this.renderAttrs(c),c.nesting===0&&o.xhtmlOut&&(s+=" /");let d=!1;if(c.block&&(d=!0,c.nesting===1&&a+1<e.length)){const u=e[a+1];(u.type==="inline"||u.hidden||u.nesting===-1&&u.tag===c.tag)&&(d=!1)}return s+=d?`>
`:">",s};Vn.prototype.renderInline=function(t,e,a){let o="";const c=this.rules;for(let s=0,d=t.length;s<d;s++){const u=t[s].type;typeof c[u]<"u"?o+=c[u](t,s,e,a,this):o+=this.renderToken(t,s,e)}return o};Vn.prototype.renderInlineAsText=function(t,e,a){let o="";for(let c=0,s=t.length;c<s;c++)switch(t[c].type){case"text":o+=t[c].content;break;case"image":o+=this.renderInlineAsText(t[c].children,e,a);break;case"html_inline":case"html_block":o+=t[c].content;break;case"softbreak":case"hardbreak":o+=`
`;break}return o};Vn.prototype.render=function(t,e,a){let o="";const c=this.rules;for(let s=0,d=t.length;s<d;s++){const u=t[s].type;u==="inline"?o+=this.renderInline(t[s].children,e,a):typeof c[u]<"u"?o+=c[u](t,s,e,a,this):o+=this.renderToken(t,s,e,a)}return o};function Ot(){this.__rules__=[],this.__cache__=null}Ot.prototype.__find__=function(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Ot.prototype.__compile__=function(){const t=this,e=[""];t.__rules__.forEach(function(a){a.enabled&&a.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(a){t.__cache__[a]=[],t.__rules__.forEach(function(o){o.enabled&&(a&&o.alt.indexOf(a)<0||t.__cache__[a].push(o.fn))})})};Ot.prototype.at=function(t,e,a){const o=this.__find__(t),c=a||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=c.alt||[],this.__cache__=null};Ot.prototype.before=function(t,e,a,o){const c=this.__find__(t),s=o||{};if(c===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(c,0,{name:e,enabled:!0,fn:a,alt:s.alt||[]}),this.__cache__=null};Ot.prototype.after=function(t,e,a,o){const c=this.__find__(t),s=o||{};if(c===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(c+1,0,{name:e,enabled:!0,fn:a,alt:s.alt||[]}),this.__cache__=null};Ot.prototype.push=function(t,e,a){const o=a||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};Ot.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);const a=[];return t.forEach(function(o){const c=this.__find__(o);if(c<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[c].enabled=!0,a.push(o)},this),this.__cache__=null,a};Ot.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(a){a.enabled=!1}),this.enable(t,e)};Ot.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);const a=[];return t.forEach(function(o){const c=this.__find__(o);if(c<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[c].enabled=!1,a.push(o)},this),this.__cache__=null,a};Ot.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function Ht(t,e,a){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=a,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Ht.prototype.attrIndex=function(e){if(!this.attrs)return-1;const a=this.attrs;for(let o=0,c=a.length;o<c;o++)if(a[o][0]===e)return o;return-1};Ht.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Ht.prototype.attrSet=function(e,a){const o=this.attrIndex(e),c=[e,a];o<0?this.attrPush(c):this.attrs[o]=c};Ht.prototype.attrGet=function(e){const a=this.attrIndex(e);let o=null;return a>=0&&(o=this.attrs[a][1]),o};Ht.prototype.attrJoin=function(e,a){const o=this.attrIndex(e);o<0?this.attrPush([e,a]):this.attrs[o][1]=this.attrs[o][1]+" "+a};function Vm(t,e,a){this.src=t,this.env=a,this.tokens=[],this.inlineMode=!1,this.md=e}Vm.prototype.Token=Ht;const C1=/\r\n?|\n/g,R1=/\0/g;function N1(t){let e;e=t.src.replace(C1,`
`),e=e.replace(R1,"�"),t.src=e}function y1(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function O1(t){const e=t.tokens;for(let a=0,o=e.length;a<o;a++){const c=e[a];c.type==="inline"&&t.md.inline.parse(c.content,t.md,t.env,c.children)}}function A1(t){return/^<a[>\s]/i.test(t)}function v1(t){return/^<\/a\s*>/i.test(t)}function I1(t){const e=t.tokens;if(t.md.options.linkify)for(let a=0,o=e.length;a<o;a++){if(e[a].type!=="inline"||!t.md.linkify.pretest(e[a].content))continue;let c=e[a].children,s=0;for(let d=c.length-1;d>=0;d--){const u=c[d];if(u.type==="link_close"){for(d--;c[d].level!==u.level&&c[d].type!=="link_open";)d--;continue}if(u.type==="html_inline"&&(A1(u.content)&&s>0&&s--,v1(u.content)&&s++),!(s>0)&&u.type==="text"&&t.md.linkify.test(u.content)){const _=u.content;let g=t.md.linkify.match(_);const S=[];let h=u.level,O=0;g.length>0&&g[0].index===0&&d>0&&c[d-1].type==="text_special"&&(g=g.slice(1));for(let y=0;y<g.length;y++){const N=g[y].url,M=t.md.normalizeLink(N);if(!t.md.validateLink(M))continue;let P=g[y].text;g[y].schema?g[y].schema==="mailto:"&&!/^mailto:/i.test(P)?P=t.md.normalizeLinkText("mailto:"+P).replace(/^mailto:/,""):P=t.md.normalizeLinkText(P):P=t.md.normalizeLinkText("http://"+P).replace(/^http:\/\//,"");const D=g[y].index;if(D>O){const B=new t.Token("text","",0);B.content=_.slice(O,D),B.level=h,S.push(B)}const Y=new t.Token("link_open","a",1);Y.attrs=[["href",M]],Y.level=h++,Y.markup="linkify",Y.info="auto",S.push(Y);const w=new t.Token("text","",0);w.content=P,w.level=h,S.push(w);const U=new t.Token("link_close","a",-1);U.level=--h,U.markup="linkify",U.info="auto",S.push(U),O=g[y].lastIndex}if(O<_.length){const y=new t.Token("text","",0);y.content=_.slice(O),y.level=h,S.push(y)}e[a].children=c=zm(c,d,S)}}}}const Wm=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,D1=/\((c|tm|r)\)/i,x1=/\((c|tm|r)\)/ig,M1={c:"©",r:"®",tm:"™"};function w1(t,e){return M1[e.toLowerCase()]}function L1(t){let e=0;for(let a=t.length-1;a>=0;a--){const o=t[a];o.type==="text"&&!e&&(o.content=o.content.replace(x1,w1)),o.type==="link_open"&&o.info==="auto"&&e--,o.type==="link_close"&&o.info==="auto"&&e++}}function k1(t){let e=0;for(let a=t.length-1;a>=0;a--){const o=t[a];o.type==="text"&&!e&&Wm.test(o.content)&&(o.content=o.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),o.type==="link_open"&&o.info==="auto"&&e--,o.type==="link_close"&&o.info==="auto"&&e++}}function P1(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(D1.test(t.tokens[e].content)&&L1(t.tokens[e].children),Wm.test(t.tokens[e].content)&&k1(t.tokens[e].children))}const F1=/['"]/,nm=/['"]/g,rm="’";function Dr(t,e,a){return t.slice(0,e)+a+t.slice(e+1)}function B1(t,e){let a;const o=[];for(let c=0;c<t.length;c++){const s=t[c],d=t[c].level;for(a=o.length-1;a>=0&&!(o[a].level<=d);a--);if(o.length=a+1,s.type!=="text")continue;let u=s.content,_=0,g=u.length;e:for(;_<g;){nm.lastIndex=_;const S=nm.exec(u);if(!S)break;let h=!0,O=!0;_=S.index+1;const y=S[0]==="'";let N=32;if(S.index-1>=0)N=u.charCodeAt(S.index-1);else for(a=c-1;a>=0&&!(t[a].type==="softbreak"||t[a].type==="hardbreak");a--)if(t[a].content){N=t[a].content.charCodeAt(t[a].content.length-1);break}let M=32;if(_<g)M=u.charCodeAt(_);else for(a=c+1;a<t.length&&!(t[a].type==="softbreak"||t[a].type==="hardbreak");a++)if(t[a].content){M=t[a].content.charCodeAt(0);break}const P=cr(N)||lr(String.fromCharCode(N)),D=cr(M)||lr(String.fromCharCode(M)),Y=sr(N),w=sr(M);if(w?h=!1:D&&(Y||P||(h=!1)),Y?O=!1:P&&(w||D||(O=!1)),M===34&&S[0]==='"'&&N>=48&&N<=57&&(O=h=!1),h&&O&&(h=P,O=D),!h&&!O){y&&(s.content=Dr(s.content,S.index,rm));continue}if(O)for(a=o.length-1;a>=0;a--){let U=o[a];if(o[a].level<d)break;if(U.single===y&&o[a].level===d){U=o[a];let B,H;y?(B=e.md.options.quotes[2],H=e.md.options.quotes[3]):(B=e.md.options.quotes[0],H=e.md.options.quotes[1]),s.content=Dr(s.content,S.index,H),t[U.token].content=Dr(t[U.token].content,U.pos,B),_+=H.length-1,U.token===c&&(_+=B.length-1),u=s.content,g=u.length,o.length=a;continue e}}h?o.push({token:c,pos:S.index,single:y,level:d}):O&&y&&(s.content=Dr(s.content,S.index,rm))}}}function U1(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)t.tokens[e].type!=="inline"||!F1.test(t.tokens[e].content)||B1(t.tokens[e].children,t)}function G1(t){let e,a;const o=t.tokens,c=o.length;for(let s=0;s<c;s++){if(o[s].type!=="inline")continue;const d=o[s].children,u=d.length;for(e=0;e<u;e++)d[e].type==="text_special"&&(d[e].type="text");for(e=a=0;e<u;e++)d[e].type==="text"&&e+1<u&&d[e+1].type==="text"?d[e+1].content=d[e].content+d[e+1].content:(e!==a&&(d[a]=d[e]),a++);e!==a&&(d.length=a)}}const dl=[["normalize",Line truncated
`,s.map=[e,t.line],!0}function H1(t,e,a,o){let c=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||c+3>s)return!1;const d=t.src.charCodeAt(c);if(d!==126&&d!==96)return!1;let u=c;c=t.skipChars(c,d);let _=c-u;if(_<3)return!1;const g=t.src.slice(u,c),S=t.src.slice(c,s);if(d===96&&S.indexOf(String.fromCharCode(d))>=0)return!1;if(o)return!0;let h=e,O=!1;for(;h++,!(h>=a||(c=u=t.bMarks[h]+t.tShift[h],s=t.eMarks[h],c<s&&t.sCount[h]<t.blkIndent));)if(t.src.charCodeAt(c)===d&&!(t.sCount[h]-t.blkIndent>=4)&&(c=t.skipChars(c,d),!(c-u<_)&&(c=t.skipSpaces(c),!(c<s)))){O=!0;break}_=t.sCount[e],t.line=h+(O?1:0);const y=t.push("fence","code",0);return y.info=S,y.content=t.getLines(e+1,h,_,!0),y.markup=g,y.map=[e,t.line],!0}function V1(t,e,a,o){let c=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];const d=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(c)!==62)return!1;if(o)return!0;const u=[],_=[],g=[],S=[],h=t.md.block.ruler.getRules("blockquote"),O=t.parentType;t.parentType="blockquote";let y=!1,N;for(N=e;N<a;N++){const w=t.sCount[N]<t.blkIndent;if(c=t.bMarks[N]+t.tShift[N],s=t.eMarks[N],c>=s)break;if(t.src.charCodeAt(c++)===62&&!w){let B=t.sCount[N]+1,H,Q;t.src.charCodeAt(c)===32?(c++,B++,Q=!1,H=!0):t.src.charCodeAt(c)===9?(H=!0,(t.bsCount[N]+B)%4===3?(c++,B++,Q=!1):Q=!0):H=!1;let V=B;for(u.push(t.bMarks[N]),t.bMarks[N]=c;c<s;){const re=t.src.charCodeAt(c);if(He(re))re===9?V+=4-(V+t.bsCount[N]+(Q?1:0))%4:V++;else break;c++}y=c>=s,_.push(t.bsCount[N]),t.bsCount[N]=t.sCount[N]+1+(H?1:0),g.push(t.sCount[N]),t.sCount[N]=V-B,S.push(t.tShift[N]),t.tShift[N]=c-t.bMarks[N];continue}if(y)break;let U=!1;for(let B=0,H=h.length;B<H;B++)if(h[B](t,N,a,!0)){U=!0;break}if(U){t.lineMax=N,t.blkIndent!==0&&(u.push(t.bMarks[N]),_.push(t.bsCount[N]),S.push(t.tShift[N]),g.push(t.sCount[N]),t.sCount[N]-=t.blkIndent);break}u.push(t.bMarks[N]),_.push(t.bsCount[N]),S.push(t.tShift[N]),g.push(t.sCount[N]),t.sCount[N]=-1}const M=t.blkIndent;t.blkIndent=0;const P=t.push("blockquote_open","blockquote",1);P.markup=">";const D=[e,0];P.map=D,t.md.block.tokenize(t,e,N);const Y=t.push("blockquote_close","blockquote",-1);Y.markup=">",t.lineMax=d,t.parentType=O,D[1]=t.line;for(let w=0;w<S.length;w++)t.bMarks[w+e]=u[w],t.tShift[w+e]=S[w],t.sCount[w+e]=g[w],t.bsCount[w+e]=_[w];return t.blkIndent=M,!0}function W1(t,e,a,o){const c=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let s=t.bMarks[e]+t.tShift[e];const d=t.src.charCodeAt(s++);if(d!==42&&d!==45&&d!==95)return!1;let u=1;for(;s<c;){const g=t.src.charCodeAt(s++);if(g!==d&&!He(g))return!1;g===d&&u++}if(u<3)return!1;if(o)return!0;t.line=e+1;const _=t.push("hr","hr",0);return _.map=[e,t.line],_.markup=Array(u+1).join(String.fromCharCode(d)),!0}function im(t,e){const a=t.eMarks[e];let o=t.bMarks[e]+t.tShift[e];const c=t.src.charCodeAt(o++);if(c!==42&&c!==45&&c!==43)return-1;if(o<a){const s=t.src.charCodeAt(o);if(!He(s))return-1}return o}function om(t,e){const a=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];let c=a;if(c+1>=o)return-1;let s=t.src.charCodeAt(c++);if(s<48||s>57)return-1;for(;;){if(c>=o)return-1;if(s=t.src.charCodeAt(c++),s>=48&&s<=57){if(c-a>=10)return-1;continue}if(s===41||s===46)break;return-1}return c<o&&(s=t.src.charCodeAt(c),!He(s))?-1:c}function $1(t,e){const a=t.level+2;for(let o=e+2,c=t.tokens.length-2;o<c;o++)t.tokens[o].level===a&&t.tokens[o].type==="paragraph_open"&&(t.tokens[o+2].hidden=!0,t.tokens[o].hidden=!0,o+=2)}function K1(t,e,a,o){let c,s,d,u,_=e,g=!0;if(t.sCount[_]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[_]-t.listIndent>=4&&t.sCount[_]<t.blkIndent)return!1;let S=!1;o&&t.parentType==="paragraph"&&t.sCount[_]>=t.blkIndent&&(S=!0);let h,O,y;if((y=om(t,_))>=0){if(h=!0,d=t.bMarks[_]+t.tShift[_],O=Number(t.src.slice(d,y-1)),S&&O!==1)return!1}else if((y=im(t,_))>=0)h=!1;else return!1;if(S&&t.skipSpaces(y)>=t.eMarks[_])return!1;if(o)return!0;const N=t.src.charCodeAt(y-1),M=t.tokens.length;h?(u=t.push("ordered_list_open","ol",1),O!==1&&(u.attrs=[["start",O]])):u=t.push("bullet_list_open","ul",1);const P=[_,0];u.map=P,u.markup=String.fromCharCode(N);let D=!1;const Y=t.md.block.ruler.getRules("list"),w=t.parentType;for(t.parentType="list";_<a;){s=y,c=t.eMarks[_];const U=t.sCount[_]+y-(t.bMarks[_]+t.tShift[_]);let B=U;for(;s<c;){const pe=t.src.charCodeAt(s);if(pe===9)B+=4-(B+t.bsCount[_])%4;else if(pe===32)B++;else break;s++}const H=s;let Q;H>=c?Q=1:Q=B-U,Q>4&&(Q=1);const V=U+Q;u=t.push("list_item_open","li",1),u.markup=String.fromCharCode(N);const re=[_,0];u.map=re,h&&(u.info=t.src.slice(d,y-1));const ge=t.tight,te=t.tShift[_],be=t.sCount[_],Ee=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=V,t.tight=!0,t.tShift[_]=H-t.bMarks[_],t.sCount[_]=B,H>=c&&t.isEmpty(_+1)?t.line=Math.min(t.line+2,a):t.md.block.tokenize(t,_,a,!0),(!t.tight||D)&&(g=!1),D=t.line-_>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=Ee,t.tShift[_]=te,t.sCount[_]=be,t.tight=ge,u=t.push("list_item_close","li",-1),u.markup=String.fromCharCode(N),_=t.line,re[1]=_,_>=a||t.sCount[_]<t.blkInLine truncated
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+r/2.075+" -"+r+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+r)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+r)+" "+n+"h400000v"+(40+r)+"h-400000z"},ve=function(r,n){return"M263,"+(601+r+n)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+r/2.084+" -"+r+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+r)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+r)+" "+n+"h400000v"+(40+r)+"h-400000z"},Pe=function(r,n){return"M983 "+(10+r+n)+`
l`+r/3.13+" -"+r+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+r)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+r)+" "+n+"h400000v"+(40+r)+"h-400000z"},et=function(r,n){return"M424,"+(2398+r+n)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+r/4.223+" -"+r+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+r)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+r)+" "+n+`
h400000v`+(40+r)+"h-400000z"},tt=function(r,n){return"M473,"+(2713+r+n)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+r/5.298+" -"+r+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+r)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+r)+" "+n+"h400000v"+(40+r)+"H1017.7z"},ut=function(r){const n=r/2;return"M400000 "+r+" H0 L"+n+" 0 l65 45 L145 "+(r-80)+" H400000z"},Tt=function(r,n,i){const l=i-54-n-r;return"M702 "+(r+n)+"H400000"+(40+r)+`
H742v`+l+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+n+"H400000v"+(40+r)+"H742z"},Vt=function(r,n,i){n=1e3*n;let l="";switch(r){case"sqrtMain":l=xe(n,Ne);break;case"sqrtSize1":l=ve(n,Ne);break;case"sqrtSize2":l=Pe(n,Ne);break;case"sqrtSize3":l=et(n,Ne);break;case"sqrtSize4":l=tt(n,Ne);break;case"sqrtTall":l=Tt(n,Ne,i)}return l},Nn=function(r,n){switch(r){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},dt={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},yn=function(r,n){switch(r){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class At{constructor(n){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=n,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(n){return D.contains(this.classes,n)}toNode(){const n=document.createDocumentFragment();for(let i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n}toMarkup(){let n="";for(let i=0;i<this.children.length;i++)n+=this.children[i].toMarkup();return n}toText(){const n=i=>i.toText();return this.children.map(n).join("")}}var ce={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222Line truncated
`+oe+" children.");for(let Te=0;Te<oe;Te++){const Ae=new on(F[Te]),Me=new $t([Ae],{width:"400em",height:J($),viewBox:"0 0 "+b+" "+z,preserveAspectRatio:ye[Te]+" slice"}),qe=q.makeSvgSpan([le[Te]],[Me],n);if(oe===1)return{span:qe,minWidth:G,height:$};qe.style.height=J($),A.push(qe)}return{span:q.makeSpan(["stretchy"],A,n),minWidth:G,height:$}}}const{span:l,minWidth:m,height:f}=i();return l.height=f,l.style.height=J(f),m>0&&(l.style.minWidth=J(m)),l}};function Se(r,n){if(!r||r.type!==n)throw new Error("Expected node of type "+n+", but got "+(r?"node of type "+r.type:String(r)));return r}function oa(r){const n=hr(r);if(!n)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return n}function hr(r){return r&&(r.type==="atom"||Yl.hasOwnProperty(r.type))?r:null}const sa=(r,n)=>{let i,l,m;r&&r.type==="supsub"?(l=Se(r.base,"accent"),i=l.base,r.base=i,m=Ul(Ie(r,n)),r.base=l):(l=Se(r,"accent"),i=l.base);const f=Ie(i,n.havingCrampedStyle()),b=l.isShifty&&D.isCharacterBox(i);let C=0;if(b){const z=D.getBaseElem(i),$=Ie(z,n.havingCrampedStyle());C=zr($).skew}const A=l.label==="\\c";let x=A?f.height+f.depth:Math.min(f.height,n.fontMetrics().xHeight),F;if(l.isStretchy)F=ln.svgSpan(l,n),F=q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"elem",elem:F,wrapperClasses:["svg-align"],wrapperStyle:C>0?{width:"calc(100% - "+J(2*C)+")",marginLeft:J(2*C)}:void 0}]},n);else{let z,$;l.label==="\\vec"?(z=q.staticSvg("vec",n),$=q.svgData.vec[1]):(z=q.makeOrd({mode:l.mode,text:l.label},n,"textord"),z=zr(z),z.italic=0,$=z.width,A&&(x+=z.depth)),F=q.makeSpan(["accent-body"],[z]);const oe=l.label==="\\textcircled";oe&&(F.classes.push("accent-full"),x=f.height);let le=C;oe||(le-=$/2),F.style.left=J(le),l.label==="\\textcircled"&&(F.style.top=".2em"),F=q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:-x},{type:"elem",elem:F}]},n)}const G=q.makeSpan(["mord","accent"],[F],n);return m?(m.children[0]=G,m.height=Math.max(G.height,m.height),m.classes[0]="mord",m):G},ac=(r,n)=>{const i=r.isStretchy?ln.mathMLnode(r.label):new Z.MathNode("mo",[Pt(r.label,r.mode)]),l=new Z.MathNode("mover",[Ue(r.base,n),i]);return l.setAttribute("accent","true"),l},Rp=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));ne({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(r,n)=>{const i=vn(n[0]),l=!Rp.test(r.funcName),m=!l||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:l,isShifty:m,base:i}},htmlBuilder:sa,mathmlBuilder:ac}),ne({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,n)=>{const i=n[0];let l=r.parser.mode;return l==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),l="text"),{type:"accent",mode:l,label:r.funcName,isStretchy:!1,isShifty:!0,base:i}},htmlBuilder:sa,mathmlBuilder:ac}),ne({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,n)=>{let{parser:i,funcName:l}=r;const m=n[0];return{type:"accentUnder",mode:i.mode,label:l,base:m}},htmlBuilder:(r,n)=>{const i=Ie(r.base,n),l=ln.svgSpan(r,n),m=r.label==="\\utilde"?.12:0,f=q.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:l,wrapperClasses:["svg-align"]},{type:"kern",size:m},{type:"elem",elem:i}]},n);return q.makeSpan(["mord","accentunder"],[f],n)},mathmlBuilder:(r,n)=>{const i=ln.mathMLnode(r.label),l=new Z.MathNode("munder",[Ue(r.base,n),i]);return l.setAttribute("accentunder","true"),l}});const Tr=r=>{const n=new Z.MathNode("mpadded",r?[r]:[]);return n.setAttribute("width","+0.6em"),n.setAttribute("lspace","0.3em"),n};ne({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(r,n,i){let{parser:l,funcName:m}=r;return{type:"xArrow",mode:l.mode,label:m,body:n[0],bLine truncated
]`,Wp="\\\\[a-zA-Z@]+",$p="\\\\[^\uD800-\uDFFF]",Kp="("+Wp+")"+Kc+"*",Qp=`\\\\(
|[ \r ]+
?)[ \r ]*`,ya="[̀-ͯ]",Xp=new RegExp(ya+"+$"),Zp="("+Kc+"+)|"+(Qp+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(ya+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ya+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Kp)+("|"+$p+")");class Qc{constructor(n,i){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=n,this.settings=i,this.tokenRegex=new RegExp(Zp,"g"),this.catcodes={"%":14,"~":13}}setCatcode(n,i){this.catcodes[n]=i}lex(){const n=this.input,i=this.tokenRegex.lastIndex;if(i===n.length)return new Ft("EOF",new It(this,i,i));const l=this.tokenRegex.exec(n);if(l===null||l.index!==i)throw new s("Unexpected character: '"+n[i]+"'",new Ft(n[i],new It(this,i,i+1)));const m=l[6]||l[3]||(l[2]?"\\ ":" ");if(this.catcodes[m]===14){const f=n.indexOf(`
`,this.tokenRegex.lastIndex);return f===-1?(this.tokenRegex.lastIndex=n.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=f+1,this.lex()}return new Ft(m,new It(this,i,this.tokenRegex.lastIndex))}}class Jp{constructor(n,i){n===void 0&&(n={}),i===void 0&&(i={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=i,this.builtins=n,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new s("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const n=this.undefStack.pop();for(const i in n)n.hasOwnProperty(i)&&(n[i]==null?delete this.current[i]:this.current[i]=n[i])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(n){return this.current.hasOwnProperty(n)||this.builtins.hasOwnProperty(n)}get(n){return this.current.hasOwnProperty(n)?this.current[n]:this.builtins[n]}set(n,i,l){if(l===void 0&&(l=!1),l){for(let m=0;m<this.undefStack.length;m++)delete this.undefStack[m][n];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][n]=i)}else{const m=this.undefStack[this.undefStack.length-1];m&&!m.hasOwnProperty(n)&&(m[n]=this.current[n])}i==null?delete this.current[n]:this.current[n]=i}}var jp=Nc;R("\\noexpand",function(r){const n=r.popToken();return r.isExpandable(n.text)&&(n.noexpand=!0,n.treatAsRelax=!0),{tokens:[n],numArgs:0}}),R("\\expandafter",function(r){const n=r.popToken();return r.expandOnce(!0),{tokens:[n],numArgs:0}}),R("\\@firstoftwo",function(r){return{tokens:r.consumeArgs(2)[0],numArgs:0}}),R("\\@secondoftwo",function(r){return{tokens:r.consumeArgs(2)[1],numArgs:0}}),R("\\@ifnextchar",function(r){const n=r.consumeArgs(3);r.consumeSpaces();const i=r.future();return n[0].length===1&&n[0][0].text===i.text?{tokens:n[1],numArgs:0}:{tokens:n[2],numArgs:0}}),R("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),R("\\TextOrMath",function(r){const n=r.consumeArgs(2);return r.mode==="text"?{tokens:n[0],numArgs:0}:{tokens:n[1],numArgs:0}});const Xc={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};R("\\char",function(r){let n=r.popToken(),i,l="";if(n.text==="'")i=8,n=r.popToken();else if(n.text==='"')i=16,n=r.popToken();else if(n.text==="`")if(n=r.popToken(),n.text[0]==="\\")l=n.text.charCodeAt(1);else{if(n.text==="EOF")throw new s("\\char` missing argument");l=n.text.charCodeAt(0)}else i=10;if(i){if(l=Xc[n.text],l==null||l>=i)throw new s("Invalid base-"+i+" digit "+n.text);let m;for(;(m=Xc[r.future().text])!=null&&m<i;)l*=i,l+=m,r.popToken()}return"\\@char{"+l+"}"});const Oa=(r,n,i)=>{let l=r.consumeArg().tokens;if(l.length!==1)throw new s("\\newcommand's first argument must be a macro name");const m=l[0].text,f=r.isDefined(m);if(f&&!n)throw new s("\\newcommand{"+m+"} attempting to redefine "+(m+"; use \\renewcommand"));if(!f&&!i)throw new s("\\renewcommand{"+m+"} when command "+m+" does not yet exist; use \\newcommand");let b=0;if(l=r.consumeArg().tokens,l.length===1&&l[0].text==="["){let C="",A=r.expandNextToken();for(;A.text!=="]"&&A.text!=="EOF";)C+=A.text,A=r.expandNextToken();if(!C.match(/^\s*[0-9]+\s*$/))throw new s("Invalid number of arguments: "+C);b=parseInt(C),l=r.consumeArg().tokens}return r.macros.set(m,{tokens:l,numArgs:b}),""};R("\\newcommand",r=>Oa(r,!1,!0)),R("\\renewcommand",r=>Oa(r,!0,!1)),R("\\providecommand",r=>Oa(r,!0,!0)),R("\\message",r=>{const n=r.consumeArgs(1)[0];return console.log(n.reverse().map(i=>i.text).join("")),""}),R("\\errmessage",r=>{const n=r.consumeArgs(1)[0];return console.error(n.reverse().map(i=>i.text).join("")),""}),R("\\show",r=>{const n=r.popToken(),i=n.text;return console.log(n,r.macros.get(i),En[i],Qe.math[i],Qe.text[i]),""}),R("\\bgroup","{"),R("\\egroup","}"),R("~","\\nobreakspace"),R("\\lq","`"),R("\\rq","'"),R("\\aa","\\r a"),R("\\AA","\\r A"),R("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),R("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),R("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),R("ℬ","\\mathscr{B}"),R("ℰ","\\mathscr{E}"),R("ℱ","\\mathscr{F}"),R("ℋ","\\mathscr{H}"),R("ℐ","\\mathscr{I}"),R("ℒ","\\mathscr{L}"),R("ℳ","\\mathscr{M}"),R("ℛ","\\mathscr{R}"),R("ℭ","\\mathfrak{C}"),R("ℌ","\\mathfrak{H}"),R("ℨ","\\mathfrak{Z}"),R("\\Bbbk","\\Bbb{k}"),R("·","\\cdotp"),R("\\llap","\\mathllap{\\textrm{#1}}"),R("\\rlap","\\mathrlap{\\textrm{#1}}"),R("\\clap","\\mathclap{\\textrm{#1}}"),R("\\mathstrut","\\vphantom{(}"),R("\\underbar","\\underline{\\text{#1}}"),R("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),R("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),R("\\ne","\\neq"),R("≠","\\neq"),R("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),R("∉","\\notin"),R("Line truncated
please report what input caused this bug`);return f=f.slice(1,-1),{type:"verb",mode:"text",body:f,star:b}}nu.hasOwnProperty(i[0])&&!Qe[this.mode][i[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+i[0]+'" used in math mode',n),i=nu[i[0]]+i.slice(1));const l=Xp.exec(i);l&&(i=i.substring(0,l.index),i==="i"?i="ı":i==="j"&&(i="ȷ"));let m;if(Qe[this.mode][i]){this.settings.strict&&this.mode==="math"&&gr.indexOf(i)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+i[0]+'" used in math mode',n);const f=Qe[this.mode][i].group,b=It.range(n);let C;if(Gl.hasOwnProperty(f)){const A=f;C={type:"atom",mode:this.mode,family:A,loc:b,text:i}}else C={type:f,mode:this.mode,loc:b,text:i};m=C}else if(i.charCodeAt(0)>=128)this.settings.strict&&(Re(i.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+i[0]+'" used in math mode',n):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+i[0]+'"'+(" ("+i.charCodeAt(0)+")"),n)),m={type:"textord",mode:"text",loc:It.range(n),text:i};else return null;if(this.consume(),l)for(let f=0;f<l[0].length;f++){const b=l[0][f];if(!va[b])throw new s("Unknown accent ' "+b+"'",n);const C=va[b][this.mode]||va[b].text;if(!C)throw new s("Accent "+b+" unsupported in "+this.mode+" mode",n);m={type:"accent",mode:this.mode,loc:It.range(n),label:C,isStretchy:!1,isShifty:!0,base:m}}return m}}Ar.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Ia=function(r,n){if(!(typeof r=="string"||r instanceof String))throw new TypeError("KaTeX can only parse string typed expression");const i=new Ar(r,n);delete i.gullet.macros.current["\\df@tag"];let l=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new s("\\tag works only in display equations");l=[{type:"tag",mode:"text",body:l,tag:i.subparse([new Ft("\\df@tag")])}]}return l};let ru=function(r,n,i){n.textContent="";const l=Da(r,i).toNode();n.appendChild(l)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),ru=function(){throw new s("KaTeX doesn't work in quirks mode.")});const tg=function(r,n){return Da(r,n).toMarkup()},ng=function(r,n){const i=new U(n);return Ia(r,i)},au=function(r,n,i){if(i.throwOnError||!(r instanceof s))throw r;const l=q.makeSpan(["katex-error"],[new vt(n)]);return l.setAttribute("title",r.toString()),l.setAttribute("style","color:"+i.errorColor),l},Da=function(r,n){const i=new U(n);try{const l=Ia(r,i);return fp(l,r,i)}catch(l){return au(l,r,i)}};var rg={version:"0.16.11",render:ru,renderToString:tg,ParseError:s,SETTINGS_SCHEMA:Y,__parse:ng,__renderToDomTree:Da,__renderToHTMLTree:function(r,n){const i=new U(n);try{const l=Ia(r,i);return Sp(l,r,i)}catch(l){return au(l,r,i)}},__setFontMetrics:we,__defineSymbol:p,__defineFunction:ne,__defineMacro:R,__domTree:{Span:Mt,Anchor:Mn,SymbolNode:vt,SvgNode:$t,PathNode:on,LineNode:pr}},ag=rg;return o=o.default,o}()})})(lp);var EC=lp.exports,fl=EC;function mm(t,e){var a,o,c=t.posMax,s=!0,d=!0;return a=e>0?t.src.charCodeAt(e-1):-1,o=e+1<=c?t.src.charCodeAt(e+1):-1,(a===32||a===9||o>=48&&o<=57)&&(d=!1),(o===32||o===9)&&(s=!1),{can_open:s,can_close:d}}function fC(t,e){var a,o,c,s,d;if(t.src[t.pos]!=="$")return!1;if(s=mm(t,t.pos),!s.can_open)return e||(t.pending+="$"),t.pos+=1,!0;for(a=t.pos+1,o=a;(o=t.src.indexOf("$",o))!==-1;){for(d=o-1;t.src[d]==="\\";)d-=1;if((o-d)%2==1)break;o+=1}return o===-1?(e||(t.pending+="$"),t.pos=a,!0):o-a===0?(e||(t.pending+="$$"),t.pos=a+1,!0):(s=mm(t,o),s.can_close?(e||(c=t.push("math_inline","math",0),c.markup="$",c.content=t.src.slice(a,o)),t.pos=o+1,!0):(e||(t.pending+="$"),t.pos=a,!0))}function SC(t,e,a,o){var c,s,d,u,_=!1,g,S=t.bMarks[e]+t.tShift[e],h=t.eMarks[e];if(S+2>h||t.src.slice(S,S+2)!=="$$")return!1;if(S+=2,c=t.src.slice(S,h),o)return!0;for(c.trim().slice(-2)==="$$"&&(c=c.trim().slice(0,-2),_=!0),d=e;!_&&(d++,!(d>=a||(S=t.bMarks[d]+t.tShift[d],h=t.eMarks[d],S<h&&t.tShift[d]<t.blkIndent)));)t.src.slice(S,h).trim().slice(-2)==="$$"&&(u=t.src.slice(0,h).lastIndexOf("$$"),s=t.src.slice(S,u),_=!0);return t.line=d+1,g=t.push("math_block","math",0),g.block=!0,g.content=(c&&c.trim()?c+`
`:"")+t.getLines(e+1,d,t.tShift[e],!0)+(s&&s.trim()?s:""),g.map=[e,t.line],g.markup="$$",!0}function Mr(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}var bC=function(e,a){a=a||{},a.katex&&(fl=a.katex),a.blockClass||(a.blockClass="");var o=function(u){a.displayMode=!1;try{return fl.renderToString(u,a)}catch(_){return a.throwOnError&&console.log(_),`<span class='katex-error' title='${Mr(_.toString())}'>${Mr(u)}</span>`}},c=function(u,_){return o(u[_].content)},s=function(u){a.displayMode=!0;try{return`<p class="katex-block ${a.blockClass}">`+fl.renderToString(u,a)+"</p>"}catch(_){return a.throwOnError&&console.log(_),`<p class='katex-block katex-error ${a.blockClass}' title='${Mr(_.toString())}'>${Mr(u)}</p>`}},d=function(u,_){return s(u[_].content)+`
`};e.inline.ruler.after("escape","math_inline",fC),e.block.ruler.after("blockquote","math_block",SC,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=c,e.renderer.rules.math_block=d};const hC=Cl(bC);/*!
* qrcode.vue v3.4.1
* A Vue.js component to generate QRCode.
* © 2017-2023 @scopewu(https://github.com/scopewu)
* MIT License.
*/var Fr=function(){return Fr=Object.assign||function(e){for(var a,o=1,c=arguments.length;o<c;o++){a=arguments[o];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Fr.apply(this,arguments)};var Dn;(function(t){var e=function(){function d(u,_,g,S){if(this.version=u,this.errorCorrectionLevel=_,this.modules=[],this.isFunction=[],u<d.MIN_VERSION||u>d.MAX_VERSION)throw new RangeError("Version value out of range");if(S<-1||S>7)throw new RangeError("Mask value out of range");this.size=u*4+17;for(var h=[],O=0;O<this.size;O++)h.push(!1);for(var O=0;O<this.size;O++)this.modules.push(h.slice()),this.isFunction.push(h.slice());this.drawFunctionPatterns();var y=this.addEccAndInterleave(g);if(this.drawCodewords(y),S==-1)for(var N=1e9,O=0;O<8;O++){this.applyMask(O),this.drawFormatBits(O);var M=this.getPenaltyScore();M<N&&(S=O,N=M),this.applyMask(O)}c(0<=S&&S<=7),this.mask=S,this.applyMask(S),this.drawFormatBits(S),this.isFunction=[]}return d.encodeText=function(u,_){var g=t.QrSegment.makeSegments(u);return d.encodeSegments(g,_)},d.encodeBinary=function(u,_){var g=t.QrSegment.makeBytes(u);return d.encodeSegments([g],_)},d.encodeSegments=function(u,_,g,S,h,O){if(g===void 0&&(g=1),S===void 0&&(S=40),h===void 0&&(h=-1),O===void 0&&(O=!0),!(d.MIN_VERSION<=g&&g<=S&&S<=d.MAX_VERSION)||h<-1||h>7)throw new RangeError("Invalid value");var y,N;for(y=g;;y++){var M=d.getNumDataCodewords(y,_)*8,P=s.getTotalBits(u,y);if(P<=M){N=P;break}if(y>=S)throw new RangeError("Data too long")}for(var D=0,Y=[d.Ecc.MEDIUM,d.Ecc.QUARTILE,d.Ecc.HIGH];D<Y.length;D++){var w=Y[D];O&&N<=d.getNumDataCodewords(y,w)*8&&(_=w)}for(var U=[],B=0,H=u;B<H.length;B++){var Q=H[B];a(Q.mode.modeBits,4,U),a(Q.numChars,Q.mode.numCharCountBits(y),U);for(var V=0,re=Q.getData();V<re.length;V++){var ge=re[V];U.push(ge)}}c(U.length==N);var te=d.getNumDataCodewords(y,_)*8;c(U.length<=te),a(0,Math.min(4,te-U.length),U),a(0,(8-U.length%8)%8,U),c(U.length%8==0);for(var be=236;U.length<te;be^=253)a(be,8,U);for(var Ee=[];Ee.length*8<U.length;)Ee.push(0);return U.forEach(function(fe,pe){return Ee[pe>>>3]|=fe<<7-(pe&7)}),new d(y,_,Ee,h)},d.prototype.getModule=function(u,_){return 0<=u&&u<this.size&&0<=_&&_<this.size&&this.modules[_][u]},d.prototype.getModules=function(){return this.modules},d.prototype.drawFunctionPatterns=function(){for(var u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var _=this.getAlignmentPatternPositions(),g=_.length,u=0;u<g;u++)for(var S=0;S<g;S++)u==0&&S==0||u==0&&S==g-1||u==g-1&&S==0||this.drawAlignmentPattern(_[u],_[S]);this.drawFormatBits(0),this.drawVersion()},d.prototype.drawFormatBits=function(u){for(var _=this.errorCorrectionLevel.formatBits<<3|u,g=_,S=0;S<10;S++)g=g<<1^(g>>>9)*1335;var h=(_<<10|g)^21522;c(h>>>15==0);for(var S=0;S<=5;S++)this.setFunctionModule(8,S,o(h,S));this.setFunctionModule(8,7,o(h,6)),this.setFunctionModule(8,8,o(h,7)),this.setFunctionModule(7,8,o(h,8));for(var S=9;S<15;S++)this.setFunctionModule(14-S,8,o(h,S));for(var S=0;S<8;S++)this.setFunctionModule(this.size-1-S,8,o(h,S));for(var S=8;S<15;S++)this.setFunctionModule(8,this.size-15+S,o(h,S));this.setFunctionModule(8,this.size-8,!0)},d.prototype.drawVersion=function(){if(!(this.version<7)){for(var u=this.version,_=0;_<12;_++)u=u<<1^(u>>>11)*7973;var g=this.version<<12|u;c(g>>>18==0);for(var _=0;_<18;_++){var S=o(g,_),h=this.size-11+_%3,O=Math.floor(_/3);this.setFunctionModule(h,O,S),this.setFunctionModule(O,h,S)}}},d.prototype.drawFinderPattern=function(u,_){for(var g=-4;g<=4;g++)for(var S=-4;S<=4;S++){var h=Math.max(Math.abs(S),Math.abs(g)),O=u+S,y=_+g;0<=O&&O<this.size&&0<=y&&y<this.size&&this.setFunctionModule(O,y,h!=2&&h!=4)}},d.prototype.drawAlignmentPattern=function(u,_){for(var g=-2;g<=2;g++)for(var S=-2;S<=2;S++)this.setFunctionModule(u+S,_+g,Math.max(Math.abs(S),Math.abs(g))!=1)},d.prototype.setFunctionModule=function(u,_,g){this.modules[_][u]=g,this.isFunction[_][u]=!0},d.prototype.addEccAndInterleave=function(u){var _=this.version,g=this.errorCorrectionLevel;if(u.length!=d.getNumDataCodewords(_,g))throw new RangeError("Invalid argument");for(var S=d.NUM_ERROR_CORRECTION_BLOCKS[g.ordinal][_],h=d.ECC_CODEWORDS_PER_BLOCK[g.ordinal][_],O=Math.floor(d.getNumRawDataModules(_)/8),y=S-O%S,N=Math.floor(O/S),M=[],P=d.reedSolomonComputeDivisor(h),D=0,Y=0;D<S;D++){var w=u.slice(Y,Y+N-h+(D<y?0:1));Y+=w.length;var U=d.reedSolomonComputeRemainder(w,P);D<y&&w.push(0),M.push(w.concat(U))}for(var B=[],H=function(Q){M.forEach(function(V,re){(Q!=N-h||re>=y)&&B.push(V[Q])})},D=0;D<M[0].length;D++)H(D);return c(B.length==O),B},d.prototype.drawCodewords=function(u){if(u.length!=Math.floor(d.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var _=0,g=this.size-1;g>=1;g-=2){g==6&&(g=5);for(var S=0;S<this.size;S++)for(var h=0;h<2;h++){var O=g-h,y=(g+1&2)==0,N=y?this.size-1-S:S;!thiLine truncated
-1
View File
@@ -1 +0,0 @@
.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-button-width-large:40px;--el-pagination-button-height-large:40px;--el-pagination-item-gap:16px;align-items:center;color:var(--el-pagination-text-color);display:flex;font-size:var(--el-pagination-font-size);font-weight:400;white-space:nowrap}.el-pagination .el-input__inner{-moz-appearance:textfield;text-align:center}.el-pagination .el-select{width:128px}.el-pagination button{align-items:center;background:var(--el-pagination-bg-color);border:none;border-radius:var(--el-pagination-border-radius);box-sizing:border-box;color:var(--el-pagination-button-color);cursor:pointer;display:flex;font-size:var(--el-pagination-font-size);height:var(--el-pagination-button-height);justify-content:center;line-height:var(--el-pagination-button-height);min-width:var(--el-pagination-button-width);padding:0 4px;text-align:center}.el-pagination button *{pointer-events:none}.el-pagination button:focus{outline:none}.el-pagination button.is-active,.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button.is-active{cursor:default;font-weight:700}.el-pagination button.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pagination button.is-disabled,.el-pagination button:disabled{background-color:var(--el-pagination-button-disabled-bg-color);color:var(--el-pagination-button-disabled-color);cursor:not-allowed}.el-pagination button:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{color:var(--el-text-color-regular);font-weight:400;margin-left:var(--el-pagination-item-gap)}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{align-items:center;color:var(--el-text-color-regular);display:flex;font-weight:400;margin-left:var(--el-pagination-item-gap)}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{box-sizing:border-box;text-align:center}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{align-items:center;display:flex;flex:1;justify-content:flex-end}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{background-color:var(--el-pagination-button-bg-color);margin:0 4px}.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.is-disabled,.el-pagination.is-background .el-pager li:disabled{background-color:var(--el-disabled-bg-color);color:var(--el-text-color-placeholder)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active{background-color:var(--el-fill-color-dark);color:var(--el-text-color-secondary)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li{font-size:var(--el-pagination-font-size-small);height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small button,.el-pagination--small spanLine truncated
-14
View File
@@ -1,14 +0,0 @@
import{s as Sn,o as xn,k as En,l as tl,m as kn,f as bl,U as pt,d as Nn,g as Ht,i as Bt,c as St,h as yl,e as tt,p as Ln,b as Pn,t as Rn,E as Fn}from"./el-button-CIFg-IwZ.js";import"./el-tag-CbTkcEh6.js";import{b as Mn,i as Vt,E as On,a as zn,d as st,c as Cl}from"./el-select-DUuFevCN.js";import{i as vt,g as Tn,k as $n,c as An,a as wl,b as Wn,d as _n,e as Hn,f as Bn,h as Vn,j as In,S as Kn,E as Sl,C as Dn}from"./el-popper-CwdMC8HJ.js";import"./el-tooltip-l0sNRNKZ.js";import{a$ as It,b0 as jn,b1 as xl,b2 as El,b3 as Un,b4 as qn,b5 as xt,b6 as Gn,b7 as Yn,G as Be,ag as gt,H as Et,q as we,ah as rt,l as pe,a as R,a5 as Ge,R as se,n as Oe,aW as re,t as N,al as _e,ai as kt,s as Nt,b8 as ll,d as U,aG as kl,u as ee,o as O,e as oe,w as Q,W as Z,f as $,g as S,B as Me,Y as V,K as Ye,X as it,b9 as ut,r as Pe,ab as Ve,a1 as We,$ as X,Z as he,i as mt,_ as Ee,h as Te,b as ze,k as Kt,p as Dt,y as Nl,j as jt,ak as Ut,aT as ct,ao as Re,M as Qe,m as Ll,c as Pl,C as j,ac as dt,aZ as He,ba as Xn,bb as nl,bc as Jn,a0 as Qn,bd as Zn,aV as qt,be as ea,A,a4 as Xe,a3 as al,bf as ol,aU as ta,bg as la,V as Se,bh as Rl,bi as Fl,S as Ze,aL as na,aD as Gt,J as ft,a7 as aa,aS as Ue,F as Je,bj as sl,a_ as rl,D as il,bk as oa,P as sa,bl as ra,U as ia,a8 as ua,af as bt,aF as yt}from"./index-CVeK0dPI.js";function ca(e,t){return Sn(xn(e,t,En),e+"")}function da(e,t,l){if(!It(l))return!1;var n=typeof t;return(n=="number"?vt(l)&&jn(t,l.length):n=="string"&&t in l)?xl(l[t],e):!1}function fa(e){return ca(function(t,l){var n=-1,o=l.length,r=o>1?l[o-1]:void 0,u=o>2?l[2]:void 0;for(r=e.length>3&&typeof r=="function"?(o--,r):void 0,u&&da(l[0],l[1],u)&&(r=o<3?void 0:r,o=1),t=Object(t);++n<o;){var a=l[n];a&&e(t,a,n,r)}return t})}var ha="[object Object]",pa=Function.prototype,va=Object.prototype,Ml=pa.toString,ga=va.hasOwnProperty,ma=Ml.call(Object);function ba(e){if(!El(e)||Un(e)!=ha)return!1;var t=Tn(e);if(t===null)return!0;var l=ga.call(t,"constructor")&&t.constructor;return typeof l=="function"&&l instanceof l&&Ml.call(l)==ma}function ya(e){return function(t,l,n){for(var o=-1,r=Object(t),u=n(t),a=u.length;a--;){var s=u[++o];if(l(r[s],s,r)===!1)break}return t}}var Ol=ya();function Ca(e,t){return e&&Ol(e,t,$n)}function wa(e,t){return function(l,n){if(l==null)return l;if(!vt(l))return e(l,n);for(var o=l.length,r=-1,u=Object(l);++r<o&&n(u[r],r,u)!==!1;);return l}}var Sa=wa(Ca);function Lt(e,t,l){(l!==void 0&&!xl(e[t],l)||l===void 0&&!(t in e))&&qn(e,t,l)}function xa(e){return El(e)&&vt(e)}function Pt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Ea(e){return An(e,wl(e))}function ka(e,t,l,n,o,r,u){var a=Pt(e,l),s=Pt(t,l),i=u.get(s);if(i){Lt(e,l,i);return}var c=r?r(a,s,l+"",e,t,u):void 0,f=c===void 0;if(f){var g=xt(s),b=!g&&Wn(s),h=!g&&!b&&_n(s);c=s,g||b||h?xt(a)?c=a:xa(a)?c=Hn(a):b?(f=!1,c=Bn(s,!0)):h?(f=!1,c=Vn(s,!0)):c=[]:ba(s)||tl(s)?(c=a,tl(a)?c=Ea(a):(!It(a)||Gn(a))&&(c=In(s))):f=!1}f&&(u.set(s,c),o(c,s,n,r,u),u.delete(s)),Lt(e,l,c)}function zl(e,t,l,n,o){e!==t&&Ol(t,function(r,u){if(o||(o=new Kn),It(r))ka(e,t,u,l,zl,n,o);else{var a=n?n(Pt(e,u),r,u+"",e,t,o):void 0;a===void 0&&(a=r),Lt(e,u,a)}},wl)}function Na(e,t){var l=-1,n=vt(e)?Array(e.length):[];return Sa(e,function(o,r,u){n[++l]=t(o,r,u)}),n}function La(e,t){var l=xt(e)?Yn:Na;return l(e,Mn(t))}function Pa(e,t){return kn(La(e,t))}var Ra=fa(function(e,t,l){zl(e,t,l)});const Fa=e=>Be?window.requestAnimationFrame(e):setTimeout(e,16);var ul=!1,$e,Rt,Ft,lt,nt,Tl,at,Mt,Ot,zt,$l,Tt,$t,Al,Wl;function ve(){if(!ul){ul=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),l=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Tt=/\b(iPhone|iP[ao]d)/.exec(e),$t=/\b(iP[ao]d)/.exec(e),zt=/Android/i.exec(e),Al=/FBAN\/\w+;/i.exec(e),Wl=/Mobile/i.exec(e),$l=!!/Win64/.exec(e),t){$e=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,$e&&document&&document.documentMode&&($e=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);Tl=n?parseFloat(n[1])+4:$e,Rt=t[2]?parseFloat(t[2]):NaN,Ft=t[3]?parseFloat(t[3]):NaN,lt=t[4]?parseFloat(t[4]):NaN,lt?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),nt=t&&t[1]?parseFloat(t[1]):NaN):nt=NaN}else $e=Rt=Ft=nt=lt=NaN;if(l){if(l[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);at=o?parseFloat(o[1].replace("_",".")):!0}else at=!1;Mt=!!l[2],Ot=!!l[3]}else at=Mt=Ot=!1}}var At={ie:function(){return ve()||$e},ieCompatibilityMode:function(){return ve()||Tl>$e},ie64:function(){return At.ie()&&$l},firefox:function(){return ve()||Rt},opera:function(){return ve()||Ft},webkit:function(){return ve()||lt},safari:function(){return At.webkit()},chrome:function(){return ve()||nt},windows:function(){return ve()||Mt},osx:function(){return ve()||at},linux:function(){return ve()||Ot},iphone:function(){return ve()||Tt},mobile:function(){return ve()||Tt||$t||zt||Wl},nativeApp:function(){return ve()||Al},android:functioLine truncated
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const Aa=function(e,t){if(e&&e.addEventListener){const l=function(n){const o=$a(n);t&&Reflect.apply(t,this,[n,o])};e.addEventListener("wheel",l,{passive:!0})}},Wa={beforeMount(e,t){Aa(e,t.value)}},Vl={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:gt,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...bl(["ariaControls"])},Il={[pt]:e=>Et(e)||we(e)||rt(e),change:e=>Et(e)||we(e)||rt(e)},De=Symbol("checkboxGroupContextKey"),_a=({model:e,isChecked:t})=>{const l=pe(De,void 0),n=R(()=>{var r,u;const a=(r=l==null?void 0:l.max)==null?void 0:r.value,s=(u=l==null?void 0:l.min)==null?void 0:u.value;return!Ge(a)&&e.value.length>=a&&!t.value||!Ge(s)&&e.value.length<=s&&t.value});return{isDisabled:Nn(R(()=>(l==null?void 0:l.disabled.value)||n.value)),isLimitDisabled:n}},Ha=(e,{model:t,isLimitExceeded:l,hasOwnLabel:n,isDisabled:o,isLabeledByFormItem:r})=>{const u=pe(De,void 0),{formItem:a}=Ht(),{emit:s}=re();function i(h){var v,w,y,C;return[!0,e.trueValue,e.trueLabel].includes(h)?(w=(v=e.trueValue)!=null?v:e.trueLabel)!=null?w:!0:(C=(y=e.falseValue)!=null?y:e.falseLabel)!=null?C:!1}function c(h,v){s("change",i(h),v)}function f(h){if(l.value)return;const v=h.target;s("change",i(v.checked),h)}async function g(h){l.value||!n.value&&!o.value&&r.value&&(h.composedPath().some(y=>y.tagName==="LABEL")||(t.value=i([!1,e.falseValue,e.falseLabel].includes(t.value)),await Oe(),c(t.value,h)))}const b=R(()=>(u==null?void 0:u.validateEvent)||e.validateEvent);return se(()=>e.modelValue,()=>{b.value&&(a==null||a.validate("change").catch(h=>Bt()))}),{handleChange:f,onClickRoot:g}},Ba=e=>{const t=N(!1),{emit:l}=re(),n=pe(De,void 0),o=R(()=>Ge(n)===!1),r=N(!1),u=R({get(){var a,s;return o.value?(a=n==null?void 0:n.modelValue)==null?void 0:a.value:(s=e.modelValue)!=null?s:t.value},set(a){var s,i;o.value&&_e(a)?(r.value=((s=n==null?void 0:n.max)==null?void 0:s.value)!==void 0&&a.length>(n==null?void 0:n.max.value)&&a.length>u.value.length,r.value===!1&&((i=n==null?void 0:n.changeEvent)==null||i.call(n,a))):(l(pt,a),t.value=a)}});return{model:u,isGroup:o,isLimitExceeded:r}},Va=(e,t,{model:l})=>{const n=pe(De,void 0),o=N(!1),r=R(()=>kt(e.value)?e.label:e.value),u=R(()=>{const c=l.value;return rt(c)?c:_e(c)?Nt(r.value)?c.map(ll).some(f=>Vt(f,r.value)):c.map(ll).includes(r.value):c!=null?c===e.trueValue||c===e.trueLabel:!!c}),a=St(R(()=>{var c;return(c=n==null?void 0:n.size)==null?void 0:c.value}),{prop:!0}),s=St(R(()=>{var c;return(c=n==null?void 0:n.size)==null?void 0:c.value})),i=R(()=>!!t.default||!kt(r.value));return{checkboxButtonSize:a,isChecked:u,isFocused:o,checkboxSize:s,hasOwnLabel:i,actualValue:r}},Kl=(e,t)=>{const{formItem:l}=Ht(),{model:n,isGroup:o,isLimitExceeded:r}=Ba(e),{isFocused:u,isChecked:a,checkboxButtonSize:s,checkboxSize:i,hasOwnLabel:c,actualValue:f}=Va(e,t,{model:n}),{isDisabled:g}=_a({model:n,isChecked:a}),{inputId:b,isLabeledByFormItem:h}=yl(e,{formItemContext:l,disableIdGeneration:c,disableIdManagement:o}),{handleChange:v,onClickRoot:w}=Ha(e,{model:n,isLimitExceeded:r,hasOwnLabel:c,isDisabled:g,isLabeledByFormItem:h});return(()=>{function C(){var x,d;_e(n.value)&&!n.value.includes(f.value)?n.value.push(f.value):n.value=(d=(x=e.trueValue)!=null?x:e.trueLabel)!=null?d:!0}e.checked&&C()})(),tt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},R(()=>o.value&&kt(e.value))),tt({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},R(()=>!!e.trueLabel)),tt({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},R(()=>!!e.falseLabel)),{inputId:b,isLabeledByFormItem:h,isChecked:a,isDisabled:g,isFocused:u,checkboxButtonSize:s,checkboxSize:i,hasOwnLabel:c,model:n,actualValue:f,handleChange:v,onClickRoot:w}},Ia=U({name:"ElCheckbox"}),Ka=U({...Ia,props:Vl,emits:Il,setup(e){const t=e,l=kl(),{inputId:n,isLabeledByFormItem:o,isChecked:r,isDisabled:u,isFocused:a,checkboxSize:s,hasOwnLabel:i,model:c,actualValue:f,handleChange:g,onClickRoot:b}=Kl(t,l),h=ee("checkbox"),v=R(()=>[h.b(),h.m(s.value),h.is("disabled",u.value),h.is("bordered",t.border),h.is("checked",r.value)]),w=R(()=>[h.e("input"),h.is("disabled",u.value),h.is("checked",r.value),h.is("indeterminate",t.indeterminate),h.is("focus",a.value)]);return(y,C)=>(O(),oe(mt(!S(i)&&S(o)?"span":"label"),{class:$(S(v)),"aria-controls":y.indeterminate?y.Line truncated
+14
View File
@@ -0,0 +1,14 @@
import{s as Nn,l as Ln,m as Pn,n as ll,p as Rn,f as yl,U as bt,d as Fn,g as At,i as Vt,c as Nt,h as Cl,e as st,q as Tn,E as zn,t as Mn,b as On}from"./el-input-D_xPEeA2.js";import"./el-tag-DsWzxe9q.js";import{b as _n,i as wl,a as $n,E as Wn,d as dt,c as Sl}from"./el-select-lHlEhHIn.js";import{i as yt,g as Bn,k as Hn,c as An,a as xl,b as Vn,d as In,e as Kn,f as Dn,h as jn,j as Un,S as qn,E as El,C as Gn}from"./el-popper-DxfKqvb2.js";import"./el-tooltip-l0sNRNKZ.js";import{b3 as It,b4 as Yn,b5 as kl,b6 as Nl,b7 as Xn,b8 as Qn,b9 as Lt,ba as Jn,bb as Zn,E as Ie,G as we,e as ce,ag as Fe,ah as Ct,i as he,c as R,a7 as Le,aT as de,$ as ie,F as _e,s as N,al as oe,ai as Be,f as Xe,bc as nl,_ as Pe,a as j,aG as Ll,u as se,g as re,o as z,w as ee,N as te,P as V,Q as ge,h as W,j as C,A as Oe,O as ft,J as Qe,bd as ht,r as Te,ab as Ke,U as He,R as J,k as wt,n as Ae,b as $e,d as Kt,p as Dt,x as Pl,l as jt,ak as Ut,aV as pt,ao as Me,W as et,q as Rl,m as Fl,B as U,ac as vt,aW as Ve,be as ea,bf as al,bg as ta,S as la,bh as na,z as B,aS as qt,bi as aa,a5 as Je,a2 as Ne,a4 as ol,bj as Tl,a3 as oa,bk as sl,M as ke,bl as zl,bm as sa,aR as ra,bn as Ml,a0 as tt,aL as ia,aD as Gt,aQ as qe,D as Ze,a6 as ua,I as gt,t as ca,bo as rl,aY as il,C as ul,a1 as Ol,Y as da,bp as fa,a8 as ha,af as St,aF as xt}from"./index-5orz1M6_.js";function pa(e,t){return Nn(Ln(e,t,Pn),e+"")}function va(e,t,l){if(!It(l))return!1;var n=typeof t;return(n=="number"?yt(l)&&Yn(t,l.length):n=="string"&&t in l)?kl(l[t],e):!1}function ga(e){return pa(function(t,l){var n=-1,o=l.length,s=o>1?l[o-1]:void 0,i=o>2?l[2]:void 0;for(s=e.length>3&&typeof s=="function"?(o--,s):void 0,i&&va(l[0],l[1],i)&&(s=o<3?void 0:s,o=1),t=Object(t);++n<o;){var a=l[n];a&&e(t,a,n,s)}return t})}var ma="[object Object]",ba=Function.prototype,ya=Object.prototype,_l=ba.toString,Ca=ya.hasOwnProperty,wa=_l.call(Object);function Sa(e){if(!Nl(e)||Xn(e)!=ma)return!1;var t=Bn(e);if(t===null)return!0;var l=Ca.call(t,"constructor")&&t.constructor;return typeof l=="function"&&l instanceof l&&_l.call(l)==wa}function xa(e){return function(t,l,n){for(var o=-1,s=Object(t),i=n(t),a=i.length;a--;){var r=i[++o];if(l(s[r],r,s)===!1)break}return t}}var $l=xa();function Ea(e,t){return e&&$l(e,t,Hn)}function ka(e,t){return function(l,n){if(l==null)return l;if(!yt(l))return e(l,n);for(var o=l.length,s=-1,i=Object(l);++s<o&&n(i[s],s,i)!==!1;);return l}}var Na=ka(Ea);function Pt(e,t,l){(l!==void 0&&!kl(e[t],l)||l===void 0&&!(t in e))&&Qn(e,t,l)}function La(e){return Nl(e)&&yt(e)}function Rt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Pa(e){return An(e,xl(e))}function Ra(e,t,l,n,o,s,i){var a=Rt(e,l),r=Rt(t,l),u=i.get(r);if(u){Pt(e,l,u);return}var d=s?s(a,r,l+"",e,t,i):void 0,f=d===void 0;if(f){var v=Lt(r),y=!v&&Vn(r),h=!v&&!y&&In(r);d=r,v||y||h?Lt(a)?d=a:La(a)?d=Kn(a):y?(f=!1,d=Dn(r,!0)):h?(f=!1,d=jn(r,!0)):d=[]:Sa(r)||ll(r)?(d=a,ll(a)?d=Pa(a):(!It(a)||Jn(a))&&(d=Un(r))):f=!1}f&&(i.set(r,d),o(d,r,n,s,i),i.delete(r)),Pt(e,l,d)}function Wl(e,t,l,n,o){e!==t&&$l(t,function(s,i){if(o||(o=new qn),It(s))Ra(e,t,i,l,Wl,n,o);else{var a=n?n(Rt(e,i),s,i+"",e,t,o):void 0;a===void 0&&(a=s),Pt(e,i,a)}},xl)}function Fa(e,t){var l=-1,n=yt(e)?Array(e.length):[];return Na(e,function(o,s,i){n[++l]=t(o,s,i)}),n}function Ta(e,t){var l=Lt(e)?Zn:Fa;return l(e,_n(t))}function za(e,t){return Rn(Ta(e,t))}function lt(e){return e===null}var Bl=ga(function(e,t,l){Wl(e,t,l)});const Ma=e=>Ie?window.requestAnimationFrame(e):setTimeout(e,16),Hl={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Ct,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...yl(["ariaControls"])},Al={[bt]:e=>we(e)||ce(e)||Fe(e),change:e=>we(e)||ce(e)||Fe(e)},Ue=Symbol("checkboxGroupContextKey"),Oa=({model:e,isChecked:t})=>{const l=he(Ue,void 0),n=R(()=>{var s,i;const a=(s=l==null?void 0:l.max)==null?void 0:s.value,r=(i=l==null?void 0:l.min)==null?void 0:i.value;return!Le(a)&&e.value.length>=a&&!t.value||!Le(r)&&e.value.length<=r&&t.value});return{isDisabled:Fn(R(()=>(l==null?void 0:l.disabled.value)||n.value)),isLimitDisabled:n}},_a=(e,{model:t,isLimitExceeded:l,hasOwnLabel:n,isDisabled:o,isLabeledByFormItem:s})=>{const i=he(Ue,void 0),{formItem:a}=At(),{emit:r}=de();function u(h){var b,w,S,P;return[!0,e.trueValue,e.trueLabel].includes(h)?(w=(b=e.trueValue)!=null?b:e.trueLabel)!=null?w:!0:(P=(S=e.falseValue)!=null?S:e.falseLabel)!=null?P:!1}function d(h,b){r("change",u(h),b)}function f(h){if(l.value)return;const b=h.target;r("change",u(b.checked),h)}async functionLine truncated
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const gs=function(e,t){if(e&&e.addEventListener){const l=function(n){const o=vs(n);t&&Reflect.apply(t,this,[n,o])};e.addEventListener("wheel",l,{passive:!0})}},ms={beforeMount(e,t){gs(e,t.value)}};let bs=1;const ys=j({name:"ElTable",directives:{Mousewheel:ms},components:{TableHeader:qo,TableBody:ts,TableFooter:as,ElScrollbar:Sl,hColgroup:Zl},props:is,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=Me(),l=se("table"),n=de();Dt(Re,n);const o=Wo(n,e);n.store=o;const s=new Ho({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=s;const i=R(()=>(o.states.data.value||[]).length===0),{setCurrentRow:a,getSelectionRows:r,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:v,toggleRowExpansion:y,clearSort:h,sort:b,updateKeyChildren:w}=os(o),{isHidden:S,renderExpanded:P,setDragVisible:E,isGroup:c,handleMouseLeave:p,handleHeaderFooterMousewheel:g,tableSize:m,emptyBlockStyle:x,handleFixedMousewheel:L,resizeProxyVisible:M,bodyWidth:$,resizeState:O,doLayout:I,tableBodyStyles:Y,tableLayout:K,scrollbarViewStyle:q,scrollbarStyle:X}=ss(e,s,o,n),{scrollBarRef:T,scrollTo:k,setScrollLeft:_,setScrollTop:Z}=us(),le=dt(I,50),ne=`${l.namespace.value}-table_${bs++}`;n.tableId=ne,n.state={isGroup:c,resizeState:O,doLayout:I,debouncedUpdateLayout:le};const pe=R(()=>{var ue;return(ue=e.sumText)!=null?ue:t("el.table.sumText")}),me=R(()=>{var ue;return(ue=e.emptyText)!=null?ue:t("el.table.emptyText")}),Ee=R(()=>Jl(o.states.originColumns.value)[0]);return rs(n),Ol(()=>{le.cancel()}),{ns:l,layout:s,store:o,columns:Ee,handleHeaderFooterMousewheel:g,handleMouseLeave:p,tableId:ne,tableSize:m,isHidden:S,isEmpty:i,renderExpanded:P,resizeProxyVisible:M,resizeState:O,isGroup:c,bodyWidth:$,tableBodyStyles:Y,emptyBlockStyle:x,debouncedUpdateLayout:le,handleFixedMousewheel:L,setCurrentRow:a,getSelectionRows:r,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:v,toggleRowExpansion:y,clearSort:h,doLayout:I,sort:b,updateKeyChildren:w,t,setDragVisible:E,context:n,computedSumText:pe,computedEmptyText:me,tableLayout:K,scrollbarViewStyle:q,scrollbarStyle:X,scrollBarRef:T,scrollTo:k,setScrollLeft:_,setScrollTop:Z,allowDragLastColumn:e.allowDragLastColumn}}});function Cs(e,t,l,n,o,s){const i=ke("hColgroup"),a=ke("table-header"),r=ke("table-body"),u=ke("table-footer"),d=ke("el-scrollbar"),f=zl("mousewheel");return z(),V("div",{ref:"tableWrapper",class:W([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Ae(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[te("div",{class:W(e.ns.e("inner-wrapper"))},[te("div",{ref:"hiddenColumns",class:"hidden-columns"},[Te(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Oe((z(),V("div",{key:0,ref:"headerWrapper",class:W(e.ns.e("header-wrapper"))},[te("table",{ref:"tableHeader",class:W(e.ns.e("header")),style:Ae(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[U(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),U(a,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):ge("v-if",!0),te("div",{ref:"bodyWrapper",class:W(e.ns.e("body-wrapper"))},[U(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,onScroll:v=>e.$emit("scroll",v)},{default:ee(()=>[te("table",{ref:"tableBody",class:W(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ae({width:e.bodyWidth,tableLayout:e.tableLayout})},[U(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(z(),re(a,{key:0,ref:"tableHeaderRef",class:W(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort"Line truncated
+1
View File
@@ -0,0 +1 @@
.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-button-width-large:40px;--el-pagination-button-height-large:40px;--el-pagination-item-gap:16px;align-items:center;color:var(--el-pagination-text-color);display:flex;font-size:var(--el-pagination-font-size);font-weight:400;white-space:nowrap}.el-pagination .el-input__inner{-moz-appearance:textfield;text-align:center}.el-pagination .el-select{width:128px}.el-pagination button{align-items:center;background:var(--el-pagination-bg-color);border:none;border-radius:var(--el-pagination-border-radius);box-sizing:border-box;color:var(--el-pagination-button-color);cursor:pointer;display:flex;font-size:var(--el-pagination-font-size);height:var(--el-pagination-button-height);justify-content:center;line-height:var(--el-pagination-button-height);min-width:var(--el-pagination-button-width);padding:0 4px;text-align:center}.el-pagination button *{pointer-events:none}.el-pagination button:focus{outline:none}.el-pagination button.is-active,.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button.is-active{cursor:default;font-weight:700}.el-pagination button.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pagination button.is-disabled,.el-pagination button:disabled{background-color:var(--el-pagination-button-disabled-bg-color);color:var(--el-pagination-button-disabled-color);cursor:not-allowed}.el-pagination button:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{color:var(--el-text-color-regular);font-weight:400;margin-left:var(--el-pagination-item-gap)}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{align-items:center;color:var(--el-text-color-regular);display:flex;font-weight:400;margin-left:var(--el-pagination-item-gap)}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{box-sizing:border-box;text-align:center}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{align-items:center;display:flex;flex:1;justify-content:flex-end}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{background-color:var(--el-pagination-button-bg-color);margin:0 4px}.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.is-disabled,.el-pagination.is-background .el-pager li:disabled{background-color:var(--el-disabled-bg-color);color:var(--el-text-color-placeholder)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active{background-color:var(--el-fill-color-dark);color:var(--el-text-color-secondary)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li{font-size:var(--el-pagination-font-size-small);height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small button,.el-pagination--small spanLine truncated
-1
View File
@@ -1 +0,0 @@
import{E as Ae,a as We,b as Re,u as ye}from"./el-button-CIFg-IwZ.js";import{E as Xe,u as Ye,a as xe,b as Je,c as Qe,d as en}from"./config-BobZadUT.js";/* empty css */import{c as nn,n as _,E as tn,b as Ve,d as N,u as _e,a as k,p as on,o as h,e as I,w as m,r as ce,f as v,g as E,h as oe,i as j,_ as de,j as Oe,k as H,m as U,l as sn,q as he,s as ae,t as L,v as fe,x as an,y as Ne,z as Pe,A as q,B as G,C as f,D as ne,T as ze,F as se,G as je,H as le,I as Z,J as Ce,K as ln,L as rn,M as un,N as cn,O as we,P as Ee,Q as ke,R as ie,S as De,U as dn,V as z,W as $,X as J,Y as D,Z as V,$ as R,a0 as Q,a1 as W,a2 as Fe,a3 as Ke,a4 as Be,a5 as fn,a6 as $e,a7 as Se,a8 as mn,a9 as pn,aa as vn,ab as gn,ac as bn,ad as yn,ae as hn,af as Cn}from"./index-CVeK0dPI.js";import{u as wn,a as En,_ as kn}from"./CardTools.vue_vue_type_script_setup_true_lang-ltPxer0O.js";import{o as Ie}from"./aria-nkjrUMQ-.js";import"./vnode-D5ByjH_G.js";import"./el-tag-CbTkcEh6.js";const Bn=e=>["",...nn].includes(e),ue="_trap-focus-children",O=[],Le=e=>{if(O.length===0)return;const n=O[O.length-1][ue];if(n.length>0&&e.code===tn.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const t=e.shiftKey,s=e.target===n[0],r=e.target===n[n.length-1];s&&t&&(e.preventDefault(),n[n.length-1].focus()),r&&!t&&(e.preventDefault(),n[0].focus())}},$n={beforeMount(e){e[ue]=Ie(e),O.push(e),O.length<=1&&document.addEventListener("keydown",Le)},updated(e){_(()=>{e[ue]=Ie(e)})},unmounted(){O.shift(),O.length===0&&document.removeEventListener("keydown",Le)}},He=Symbol("rowContextKey"),Sn=["start","center","end","space-around","space-between","space-evenly"],In=["top","middle","bottom"],Ln=Ve({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Sn,default:"start"},align:{type:String,values:In}}),Tn=N({name:"ElRow"}),Mn=N({...Tn,props:Ln,setup(e){const n=e,t=_e("row"),s=k(()=>n.gutter);on(He,{gutter:s});const r=k(()=>{const l={};return n.gutter&&(l.marginRight=l.marginLeft=`-${n.gutter/2}px`),l}),a=k(()=>[t.b(),t.is(`justify-${n.justify}`,n.justify!=="start"),t.is(`align-${n.align}`,!!n.align)]);return(l,c)=>(h(),I(j(l.tag),{class:v(E(a)),style:oe(E(r))},{default:m(()=>[ce(l.$slots,"default")]),_:3},8,["class","style"]))}});var An=de(Mn,[["__file","row.vue"]]);const Rn=Oe(An),Vn=Ve({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:H([Number,Object]),default:()=>U({})},sm:{type:H([Number,Object]),default:()=>U({})},md:{type:H([Number,Object]),default:()=>U({})},lg:{type:H([Number,Object]),default:()=>U({})},xl:{type:H([Number,Object]),default:()=>U({})}}),_n=N({name:"ElCol"}),On=N({..._n,props:Vn,setup(e){const n=e,{gutter:t}=sn(He,{gutter:k(()=>0)}),s=_e("col"),r=k(()=>{const l={};return t.value&&(l.paddingLeft=l.paddingRight=`${t.value/2}px`),l}),a=k(()=>{const l=[];return["span","offset","pull","push"].forEach(o=>{const g=n[o];he(g)&&(o==="span"?l.push(s.b(`${n[o]}`)):g>0&&l.push(s.b(`${o}-${n[o]}`)))}),["xs","sm","md","lg","xl"].forEach(o=>{he(n[o])?l.push(s.b(`${o}-${n[o]}`)):ae(n[o])&&Object.entries(n[o]).forEach(([g,b])=>{l.push(g!=="span"?s.b(`${o}-${g}-${b}`):s.b(`${o}-${b}`))})}),t.value&&l.push(s.is("guttered")),[s.b(),l]});return(l,c)=>(h(),I(j(l.tag),{class:v(E(a)),style:oe(E(r))},{default:m(()=>[ce(l.$slots,"default")]),_:3},8,["class","style"]))}});var Nn=de(On,[["__file","col.vue"]]);const Pn=Oe(Nn);function zn(e){let n;const t=L(!1),s=fe({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(i){s.text=i}function a(){const i=s.parent,d=b.ns;if(!i.vLoadingAddClassList){let u=i.getAttribute("loading-number");u=Number.parseInt(u)-1,u?i.setAttribute("loading-number",u.toString()):(se(i,d.bm("parent","relative")),i.removeAttribute("loading-number")),se(i,d.bm("parent","hidden"))}l(),g.unmount()}function l(){var i,d;(d=(i=b.$el)==null?void 0:i.parentNode)==null||d.removeChild(b.$el)}function c(){var i;e.beforeClose&&!e.beforeClose()||(t.value=!0,clearTimeout(n),n=setTimeout(y,400),s.visible=!1,(i=e.closed)==null||i.call(e))}function y(){if(!t.value)return;const i=s.parent;t.value=!1,i.vLoadingAddClassList=void 0,a()}const o=N({name:"ElLoading",setup(i,{expose:d}){const{ns:u,zIndex:C}=Pe("loading");return d({ns:u,zIndex:C}),()=>{const w=s.spinner||s.svg,B=q("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"0 0 50 50",...w?{innerHTML:w}:{}},[q("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),T=s.text?q("p",{class:u.b("text")},[s.text]):void 0;return q(ze,{name:u.b("fade"),onAfterLeave:y},{default:m(()=>[G(f("div",{style:{backgroundColor:s.background||""},class:[u.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[q("div",{class:u.b("spinner")},[B,T])]),[[ne,s.visible]])])})}}}),g=an(o),b=g.mount(document.createElement("div"));return{...Ne(s),setText:r,removeElLoadingChild:l,close:c,handleAfterLeave:y,vm:b,get $el(){return b.$elLine truncated
+1
View File
@@ -0,0 +1 @@
import{o as he,E as Ae,a as We,b as Re,u as Ce}from"./el-input-D_xPEeA2.js";import{E as Xe,u as Ye,a as xe,b as Je,c as Qe,d as en}from"./config-C0oXmCul.js";import{b as Ve,m as H,d as U,_ as de,a as P,i as nn,c as k,u as _e,e as we,f as le,g as T,o as h,w as v,r as fe,n as se,h as p,j as E,k as j,l as Oe,p as tn,q as on,s as M,t as me,v as sn,x as Ne,y as Pe,z as q,A as G,B as m,C as te,T as ze,D as ae,E as je,F as O,G as Y,H as Z,I as Ee,J as an,K as ln,L as rn,M as z,N as $,O as Q,P as D,Q as _,R as V,S as ee,U as W,V as un,W as cn,X as ke,Y as Be,Z as $e,$ as ie,a0 as De,a1 as dn,a2 as ue,a3 as Fe,a4 as Ke,a5 as Se,a6 as Ie,a7 as fn,a8 as mn,a9 as vn,aa as pn,ab as gn,ac as bn,ad as yn,ae as hn,af as Cn}from"./index-5orz1M6_.js";import{u as wn,a as En,_ as kn}from"./CardTools.vue_vue_type_script_setup_true_lang-CMcmqUZX.js";import"./vnode-DkiIqzI4.js";import"./el-tag-DsWzxe9q.js";import"./index-CX7K5KgQ.js";const Bn=Ve({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:U([Number,Object]),default:()=>H({})},sm:{type:U([Number,Object]),default:()=>H({})},md:{type:U([Number,Object]),default:()=>H({})},lg:{type:U([Number,Object]),default:()=>H({})},xl:{type:U([Number,Object]),default:()=>H({})}}),He=Symbol("rowContextKey"),$n=P({name:"ElCol"}),Sn=P({...$n,props:Bn,setup(e){const n=e,{gutter:t}=nn(He,{gutter:k(()=>0)}),s=_e("col"),r=k(()=>{const l={};return t.value&&(l.paddingLeft=l.paddingRight=`${t.value/2}px`),l}),a=k(()=>{const l=[];return["span","offset","pull","push"].forEach(o=>{const g=n[o];we(g)&&(o==="span"?l.push(s.b(`${n[o]}`)):g>0&&l.push(s.b(`${o}-${n[o]}`)))}),["xs","sm","md","lg","xl"].forEach(o=>{we(n[o])?l.push(s.b(`${o}-${n[o]}`)):le(n[o])&&Object.entries(n[o]).forEach(([g,b])=>{l.push(g!=="span"?s.b(`${o}-${g}-${b}`):s.b(`${o}-${b}`))})}),t.value&&l.push(s.is("guttered")),[s.b(),l]});return(l,c)=>(h(),T(j(l.tag),{class:p(E(a)),style:se(E(r))},{default:v(()=>[fe(l.$slots,"default")]),_:3},8,["class","style"]))}});var In=de(Sn,[["__file","col.vue"]]);const Ln=Oe(In),Tn=["start","center","end","space-around","space-between","space-evenly"],Mn=["top","middle","bottom"],An=Ve({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Tn,default:"start"},align:{type:String,values:Mn}}),Rn=P({name:"ElRow"}),Vn=P({...Rn,props:An,setup(e){const n=e,t=_e("row"),s=k(()=>n.gutter);tn(He,{gutter:s});const r=k(()=>{const l={};return n.gutter&&(l.marginRight=l.marginLeft=`-${n.gutter/2}px`),l}),a=k(()=>[t.b(),t.is(`justify-${n.justify}`,n.justify!=="start"),t.is(`align-${n.align}`,!!n.align)]);return(l,c)=>(h(),T(j(l.tag),{class:p(E(a)),style:se(E(r))},{default:v(()=>[fe(l.$slots,"default")]),_:3},8,["class","style"]))}});var _n=de(Vn,[["__file","row.vue"]]);const On=Oe(_n),Nn=e=>["",...on].includes(e);function Pn(e){let n;const t=M(!1),s=me({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(i){s.text=i}function a(){const i=s.parent,f=b.ns;if(!i.vLoadingAddClassList){let u=i.getAttribute("loading-number");u=Number.parseInt(u)-1,u?i.setAttribute("loading-number",u.toString()):(ae(i,f.bm("parent","relative")),i.removeAttribute("loading-number")),ae(i,f.bm("parent","hidden"))}l(),g.unmount()}function l(){var i,f;(f=(i=b.$el)==null?void 0:i.parentNode)==null||f.removeChild(b.$el)}function c(){var i;e.beforeClose&&!e.beforeClose()||(t.value=!0,clearTimeout(n),n=setTimeout(y,400),s.visible=!1,(i=e.closed)==null||i.call(e))}function y(){if(!t.value)return;const i=s.parent;t.value=!1,i.vLoadingAddClassList=void 0,a()}const o=P({name:"ElLoading",setup(i,{expose:f}){const{ns:u,zIndex:C}=Pe("loading");return f({ns:u,zIndex:C}),()=>{const w=s.spinner||s.svg,B=q("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"0 0 50 50",...w?{innerHTML:w}:{}},[q("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),A=s.text?q("p",{class:u.b("text")},[s.text]):void 0;return q(ze,{name:u.b("fade"),onAfterLeave:y},{default:v(()=>[G(m("div",{style:{backgroundColor:s.background||""},class:[u.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[q("div",{class:u.b("spinner")},[B,A])]),[[te,s.visible]])])})}}}),g=sn(o),b=g.mount(document.createElement("div"));return{...Ne(s),setText:r,removeElLoadingChild:l,close:c,handleAfterLeave:y,vm:b,get $el(){return b.$el}}}let ne;const zn=function(e={}){if(!je)return;const n=jn(e);if(n.fullscreen&&ne)return ne;const t=Pn({...n,closed:()=>{var r;(r=n.closed)==null||r.call(n),n.fullscreen&&(ne=void 0)}});Dn(n,n.parent,t),Le(n,n.parent,t),n.parent.vLoadingAddClassList=()=>Le(n,n.parent,t);let s=n.parent.getAttribute("loading-number");return s?s=`${Number.parseInt(s)+1}`:s="1",n.parent.setAttribute("loading-number",s),n.parent.appendChild(t.$el),O(()=>t.visible.value=n.visible),n.fullscreen&&(ne=t),t},jn=e=>{var n,t,s,r;let a;return Y(e.target)?a=(n=document.querySelector(e.target))!=null?n:document.body:a=e.target||docLine truncated
-1
View File
@@ -1 +0,0 @@
import{u as j,E as q,b as H}from"./el-button-CIFg-IwZ.js";import{c as W,h as Y,d as A}from"./config-BobZadUT.js";import{a as J,E as K}from"./el-form-item-_5R7KEC5.js";import"./el-tag-CbTkcEh6.js";import{E as Q,a as X}from"./el-select-DUuFevCN.js";import"./el-popper-CwdMC8HJ.js";/* empty css */import{d as g,u as R,o as s,Y as c,W as l,g as e,_ as G,b as ee,ao as le,a as B,aH as te,r as x,C as d,f as h,h as ae,$ as m,Z as C,j as oe,a8 as se,t as N,v as ne,e as V,ab as b,ac as F,w as i,af as $,a1 as k,aF as I}from"./index-CVeK0dPI.js";import"./vnode-D5ByjH_G.js";import"./_baseClone-DRpC8OZL.js";const re=g({name:"ImgEmpty"}),ie=g({...re,setup(_){const t=R("empty"),n=j();return(p,u)=>(s(),c("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[l("defs",null,[l("linearGradient",{id:`linearGradient-1-${e(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[l("stop",{"stop-color":`var(${e(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),l("stop",{"stop-color":`var(${e(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),l("linearGradient",{id:`linearGradient-2-${e(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[l("stop",{"stop-color":`var(${e(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),l("stop",{"stop-color":`var(${e(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),l("rect",{id:`path-3-${e(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),l("g",{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[l("g",{id:"B-type",transform:"translate(-1268.000000, -535.000000)"},[l("g",{id:"Group-2",transform:"translate(1268.000000, 535.000000)"},[l("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${e(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),l("polygon",{id:"Rectangle-Copy-14",fill:`var(${e(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),l("g",{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[l("polygon",{id:"Rectangle-Copy-10",fill:`var(${e(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),l("polygon",{id:"Rectangle-Copy-11",fill:`var(${e(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),l("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${e(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),l("polygon",{id:"Rectangle-Copy-13",fill:`var(${e(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),l("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),l("g",{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},[l("use",{id:"Mask",fill:`var(${e(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e(n)}`},null,8,["fill","xlink:href"]),l("polygon",{id:"Rectangle-Copy",fill:`var(${e(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${e(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),l("polygon",{id:"Rectangle-Copy-18",fill:`var(${e(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var ce=G(ie,[["__file","img-empty.vue"]]);const de=ee({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),pe=g({name:"ElEmpty"}),me=g({...pe,props:de,setup(_){const t=_,{t:n}=le(),p=R("empty"),u=B(()=>t.description||n("el.table.emptyText")),y=B(()=>({width:te(t.imageSize)}));return(a,w)=>(s(),c("div",{class:h(e(p).b())},[l("div",{class:h(e(p).e("image")),style:ae(e(y))},[a.image?(s(),c("img",{key:0,src:a.image,ondragstart:"return false"},null,8,["src"])):x(a.$slots,"image",{key:1},()=>[d(ce)])],6),l("div",{class:h(e(p).e("description"))},[a.$slots.description?x(a.$slots,"description",{key:0}):(s(),c("p",{key:1},m(e(u)),1))],2),a.$slots.default?(s(),c("div",{key:0,class:h(e(p).e(Line truncated
+1
View File
@@ -0,0 +1 @@
import{u as q,E as H,b as Q}from"./el-input-D_xPEeA2.js";import{c as Z,h as A,d as J}from"./config-C0oXmCul.js";import{E as K,a as W}from"./el-form-item-CzDqJHnU.js";import"./el-tag-DsWzxe9q.js";import{E as X,a as Y}from"./el-select-lHlEhHIn.js";import"./el-popper-DxfKqvb2.js";import{_ as R,a as g,u as G,P as c,o as n,N as l,j as e,b as ee,ao as le,c as B,aH as te,Q as C,r as x,B as d,n as ae,h,R as m,l as oe,a8 as se,s as N,t as ne,g as V,ab as b,ac as F,w as i,af as $,U as k,aF as I}from"./index-5orz1M6_.js";import"./vnode-DkiIqzI4.js";import"./_baseClone-IT_4yc7W.js";const re=g({name:"ImgEmpty"}),ie=g({...re,setup(_){const t=G("empty"),r=q();return(p,u)=>(n(),c("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[l("defs",null,[l("linearGradient",{id:`linearGradient-1-${e(r)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[l("stop",{"stop-color":`var(${e(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),l("stop",{"stop-color":`var(${e(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),l("linearGradient",{id:`linearGradient-2-${e(r)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[l("stop",{"stop-color":`var(${e(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),l("stop",{"stop-color":`var(${e(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),l("rect",{id:`path-3-${e(r)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),l("g",{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[l("g",{id:"B-type",transform:"translate(-1268.000000, -535.000000)"},[l("g",{id:"Group-2",transform:"translate(1268.000000, 535.000000)"},[l("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${e(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),l("polygon",{id:"Rectangle-Copy-14",fill:`var(${e(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),l("g",{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[l("polygon",{id:"Rectangle-Copy-10",fill:`var(${e(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),l("polygon",{id:"Rectangle-Copy-11",fill:`var(${e(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),l("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${e(r)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),l("polygon",{id:"Rectangle-Copy-13",fill:`var(${e(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),l("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e(r)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),l("g",{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},[l("use",{id:"Mask",fill:`var(${e(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e(r)}`},null,8,["fill","xlink:href"]),l("polygon",{id:"Rectangle-Copy",fill:`var(${e(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${e(r)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),l("polygon",{id:"Rectangle-Copy-18",fill:`var(${e(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var ce=R(ie,[["__file","img-empty.vue"]]);const de=ee({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),pe=g({name:"ElEmpty"}),me=g({...pe,props:de,setup(_){const t=_,{t:r}=le(),p=G("empty"),u=B(()=>t.description||r("el.table.emptyText")),y=B(()=>({width:te(t.imageSize)}));return(a,w)=>(n(),c("div",{class:h(e(p).b())},[l("div",{class:h(e(p).e("image")),style:ae(e(y))},[a.image?(n(),c("img",{key:0,src:a.image,ondragstart:"return false"},null,8,["src"])):x(a.$slots,"image",{key:1},()=>[d(ce)])],6),l("div",{class:h(e(p).e("description"))},[a.$slots.description?x(a.$slots,"description",{key:0}):(n(),c("p",{key:1},m(e(u)),1))],2),a.$slots.default?(n(),c("div",{key:0,class:h(e(p).e("bottom"))},[x(a.$slots,"default")],2)Line truncated
+1
View File
@@ -0,0 +1 @@
import{C as Ze,U as ae,c as et,d as M,e as tt,f as at,u as st,g as ot,h as lt,i as be,t as se,E as _e,b as nt}from"./el-input-D_xPEeA2.js";import{c as oe,d as rt}from"./config-C0oXmCul.js";import"./el-tag-DsWzxe9q.js";import{i as it,E as ut,a as dt}from"./el-select-lHlEhHIn.js";import"./el-popper-DxfKqvb2.js";import{E as ct,u as Se,a as Ee,_ as pt}from"./CardTools.vue_vue_type_script_setup_true_lang-CMcmqUZX.js";import{G as ne,e as re,ag as ie,b as z,ah as ke,s as O,i as $e,c as P,ai as ue,_ as A,a as w,u as I,P as $,o as y,N as R,A as Ce,aj as Re,j as e,O as V,h as _,J as we,r as F,F as Fe,U as q,R as D,n as Ue,a0 as De,p as xe,t as ft,x as mt,$ as Y,ak as Pe,l as Be,al as Le,am as Ve,d as S,an as U,m as Z,ao as vt,g as B,w as E,ab as Te,ac as Oe,S as ze,Q as C,B as k,W as N,ap as yt,aq as gt,ar as ht,as as bt,at as _t,au as St,av as Et,aw as ee,ax as de,ay as kt,a2 as $t,az as Ct,a1 as Rt,aA as wt,aB as ce,aC as pe,a8 as le,aD as Ft,aE as Ut,aF as G,af as Ie}from"./index-5orz1M6_.js";import{b as Dt}from"./_baseClone-IT_4yc7W.js";import"./vnode-DkiIqzI4.js";import"./index-CX7K5KgQ.js";var xt=1,Pt=4;function fe(o){return Dt(o,xt|Pt)}const Ne=z({modelValue:{type:[String,Number,Boolean],default:void 0},size:ke,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Bt=z({...Ne,border:Boolean}),Ae={[ae]:o=>ne(o)||re(o)||ie(o),[Ze]:o=>ne(o)||re(o)||ie(o)},je=Symbol("radioGroupKey"),Ge=(o,u)=>{const t=O(),l=$e(je,void 0),n=P(()=>!!l),d=P(()=>ue(o.value)?o.label:o.value),p=P({get(){return n.value?l.modelValue:o.modelValue},set(r){n.value?l.changeEvent(r):u&&u(ae,r),t.value.checked=o.modelValue===d.value}}),b=et(P(()=>l==null?void 0:l.size)),c=M(P(()=>l==null?void 0:l.disabled)),v=O(!1),g=P(()=>c.value||n.value&&p.value!==d.value?-1:0);return tt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},P(()=>n.value&&ue(o.value))),{radioRef:t,isGroup:n,radioGroup:l,focus:v,size:b,disabled:c,tabIndex:g,modelValue:p,actualValue:d}},Lt=w({name:"ElRadio"}),Vt=w({...Lt,props:Bt,emits:Ae,setup(o,{emit:u}){const t=o,l=I("radio"),{radioRef:n,radioGroup:d,focus:p,size:b,disabled:c,modelValue:v,actualValue:g}=Ge(t,u);function r(){Fe(()=>u("change",v.value))}return(f,s)=>{var i;return y(),$("label",{class:_([e(l).b(),e(l).is("disabled",e(c)),e(l).is("focus",e(p)),e(l).is("bordered",f.border),e(l).is("checked",e(v)===e(g)),e(l).m(e(b))])},[R("span",{class:_([e(l).e("input"),e(l).is("disabled",e(c)),e(l).is("checked",e(v)===e(g))])},[Ce(R("input",{ref_key:"radioRef",ref:n,"onUpdate:modelValue":a=>we(v)?v.value=a:null,class:_(e(l).e("original")),value:e(g),name:f.name||((i=e(d))==null?void 0:i.name),disabled:e(c),checked:e(v)===e(g),type:"radio",onFocus:a=>p.value=!0,onBlur:a=>p.value=!1,onChange:r,onClick:V(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[Re,e(v)]]),R("span",{class:_(e(l).e("inner"))},null,2)],2),R("span",{class:_(e(l).e("label")),onKeydown:V(()=>{},["stop"])},[F(f.$slots,"default",{},()=>[q(D(f.label),1)])],42,["onKeydown"])],2)}}});var Tt=A(Vt,[["__file","radio.vue"]]);const Ot=z({...Ne}),zt=w({name:"ElRadioButton"}),It=w({...zt,props:Ot,setup(o){const u=o,t=I("radio"),{radioRef:l,focus:n,size:d,disabled:p,modelValue:b,radioGroup:c,actualValue:v}=Ge(u),g=P(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(r,f)=>{var s;return y(),$("label",{class:_([e(t).b("button"),e(t).is("active",e(b)===e(v)),e(t).is("disabled",e(p)),e(t).is("focus",e(n)),e(t).bm("button",e(d))])},[Ce(R("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":i=>we(b)?b.value=i:null,class:_(e(t).be("button","original-radio")),value:e(v),type:"radio",name:r.name||((s=e(c))==null?void 0:s.name),disabled:e(p),onFocus:i=>n.value=!0,onBlur:i=>n.value=!1,onClick:V(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[Re,e(b)]]),R("span",{class:_(e(t).be("button","inner")),style:Ue(e(b)===e(v)?e(g):{}),onKeydown:V(()=>{},["stop"])},[F(r.$slots,"default",{},()=>[q(D(r.label),1)])],46,["onKeydown"])],2)}}});var qe=A(It,[["__file","radio-button.vue"]]);const Nt=z({id:{type:String,default:void 0},size:ke,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...at(["ariaLabel"])}),At=Ae,jt=w({name:"ElRadioGroup"}),Gt=w({...jt,props:Nt,emits:At,setup(o,{emit:u}){const t=o,l=I("radio"),n=st(),d=O(),{formItem:p}=ot(),{inputId:b,isLabeledByFormItem:c}=lt(t,{formItemContext:p}),v=r=>{u(ae,r),Fe(()=>u("change",r))};De(()=>{const r=d.value.querySelectorAll("[type=rLine truncated
-1
View File
@@ -1 +0,0 @@
import{U as ae,C as Qe,c as et,d as M,e as tt,f as at,u as st,g as ot,h as lt,i as be,t as se,b as _e,E as nt}from"./el-button-CIFg-IwZ.js";import{c as oe,d as rt}from"./config-BobZadUT.js";/* empty css */import"./el-tag-CbTkcEh6.js";import{i as it,E as ut,a as dt}from"./el-select-DUuFevCN.js";import"./el-popper-CwdMC8HJ.js";import{E as ct,u as Se,a as Ee,_ as pt}from"./CardTools.vue_vue_type_script_setup_true_lang-ltPxer0O.js";import{b as z,ag as ke,H as ne,q as re,ah as ie,t as O,l as $e,a as B,ai as ue,d as w,u as I,o as y,Y as $,W as R,B as Ce,aj as Re,g as e,K as we,f as _,X as V,r as F,a1 as G,$ as D,_ as A,n as Fe,h as Ue,S as De,p as xe,v as ft,y as mt,R as Z,j as Be,ak as Le,al as Pe,am as Ve,k as S,m as Q,an as U,ao as vt,e as L,w as E,ab as Te,ac as Oe,a0 as ze,Z as C,C as k,M as N,ap as yt,aq as gt,ar as ht,as as bt,at as _t,au as St,av as Et,aw as ee,ax as de,ay as kt,a6 as $t,az as Ct,U as Rt,aA as wt,aB as ce,aC as pe,a8 as le,aD as Ft,aE as Ut,aF as q,af as Ie}from"./index-CVeK0dPI.js";import{b as Dt}from"./_baseClone-DRpC8OZL.js";import"./vnode-D5ByjH_G.js";var xt=1,Bt=4;function fe(o){return Dt(o,xt|Bt)}const Ne=z({modelValue:{type:[String,Number,Boolean],default:void 0},size:ke,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Lt=z({...Ne,border:Boolean}),Ae={[ae]:o=>ne(o)||re(o)||ie(o),[Qe]:o=>ne(o)||re(o)||ie(o)},je=Symbol("radioGroupKey"),qe=(o,u)=>{const t=O(),l=$e(je,void 0),n=B(()=>!!l),d=B(()=>ue(o.value)?o.label:o.value),p=B({get(){return n.value?l.modelValue:o.modelValue},set(r){n.value?l.changeEvent(r):u&&u(ae,r),t.value.checked=o.modelValue===d.value}}),b=et(B(()=>l==null?void 0:l.size)),c=M(B(()=>l==null?void 0:l.disabled)),v=O(!1),g=B(()=>c.value||n.value&&p.value!==d.value?-1:0);return tt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},B(()=>n.value&&ue(o.value))),{radioRef:t,isGroup:n,radioGroup:l,focus:v,size:b,disabled:c,tabIndex:g,modelValue:p,actualValue:d}},Pt=w({name:"ElRadio"}),Vt=w({...Pt,props:Lt,emits:Ae,setup(o,{emit:u}){const t=o,l=I("radio"),{radioRef:n,radioGroup:d,focus:p,size:b,disabled:c,modelValue:v,actualValue:g}=qe(t,u);function r(){Fe(()=>u("change",v.value))}return(f,s)=>{var i;return y(),$("label",{class:_([e(l).b(),e(l).is("disabled",e(c)),e(l).is("focus",e(p)),e(l).is("bordered",f.border),e(l).is("checked",e(v)===e(g)),e(l).m(e(b))])},[R("span",{class:_([e(l).e("input"),e(l).is("disabled",e(c)),e(l).is("checked",e(v)===e(g))])},[Ce(R("input",{ref_key:"radioRef",ref:n,"onUpdate:modelValue":a=>we(v)?v.value=a:null,class:_(e(l).e("original")),value:e(g),name:f.name||((i=e(d))==null?void 0:i.name),disabled:e(c),checked:e(v)===e(g),type:"radio",onFocus:a=>p.value=!0,onBlur:a=>p.value=!1,onChange:r,onClick:V(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[Re,e(v)]]),R("span",{class:_(e(l).e("inner"))},null,2)],2),R("span",{class:_(e(l).e("label")),onKeydown:V(()=>{},["stop"])},[F(f.$slots,"default",{},()=>[G(D(f.label),1)])],42,["onKeydown"])],2)}}});var Tt=A(Vt,[["__file","radio.vue"]]);const Ot=z({...Ne}),zt=w({name:"ElRadioButton"}),It=w({...zt,props:Ot,setup(o){const u=o,t=I("radio"),{radioRef:l,focus:n,size:d,disabled:p,modelValue:b,radioGroup:c,actualValue:v}=qe(u),g=B(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(r,f)=>{var s;return y(),$("label",{class:_([e(t).b("button"),e(t).is("active",e(b)===e(v)),e(t).is("disabled",e(p)),e(t).is("focus",e(n)),e(t).bm("button",e(d))])},[Ce(R("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":i=>we(b)?b.value=i:null,class:_(e(t).be("button","original-radio")),value:e(v),type:"radio",name:r.name||((s=e(c))==null?void 0:s.name),disabled:e(p),onFocus:i=>n.value=!0,onBlur:i=>n.value=!1,onClick:V(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[Re,e(b)]]),R("span",{class:_(e(t).be("button","inner")),style:Ue(e(b)===e(v)?e(g):{}),onKeydown:V(()=>{},["stop"])},[F(r.$slots,"default",{},()=>[G(D(r.label),1)])],46,["onKeydown"])],2)}}});var Ge=A(It,[["__file","radio-button.vue"]]);const Nt=z({id:{type:String,default:void 0},size:ke,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...at(["ariaLabel"])}),At=Ae,jt=w({name:"ElRadioGroup"}),qt=w({...jt,props:Nt,emits:At,setup(o,{emit:u}){const t=o,l=I("radio"),n=st(),d=O(),{formItem:p}=ot(),{inputId:b,isLabeledByFormItem:c}=lt(t,{formItemContext:p}),v=r=>{u(ae,r),Fe(()=>u("change",r))};De(()=>{const r=d.value.querySelectorAll("[tyLine truncated
@@ -0,0 +1 @@
import{E as w,b as z}from"./el-input-D_xPEeA2.js";import{E as S,a as h}from"./el-form-item-CzDqJHnU.js";import"./el-tag-DsWzxe9q.js";import{E as A,a as C}from"./el-select-lHlEhHIn.js";import"./el-popper-DxfKqvb2.js";import{a as E,a8 as B,s as D,g as V,w as o,af as b,B as e,P as v,Q as N,j as s,ac as M,ab as T,N as i,U as f,R as m,aF as y,o as _}from"./index-5orz1M6_.js";import"./_baseClone-IT_4yc7W.js";const F={style:{display:"flex",height:"38px",width:"45%"}},I={style:{display:"flex",height:"38px","margin-left":"20px"}},K={style:{"margin-left":"0.4rem"}},O={style:{"margin-left":"0.4rem"}},j={style:{"margin-left":"0.4rem"}},q={key:0},L={style:{display:"flex",height:"38px"}},P={style:{"margin-right":"0.4rem"}},Q={style:{width:"200px","margin-left":"0.4rem"}},R={style:{display:"flex",height:"38px"}},G={style:{width:"3rem","margin-right":"0.4rem"}},H={style:{width:"200px","margin-left":"0.4rem"}},J={style:{display:"flex",height:"38px"}},W={style:{"margin-right":"0.4rem"}},X={style:{width:"200px","margin-left":"0.4rem"}},Y={style:{display:"flex",height:"38px"}},Z={style:{width:"3rem","margin-right":"0.4rem"}},$={style:{width:"200px","margin-left":"0.4rem"}},ue=E({__name:"SettingView",setup(c){const{t:n}=B(),l=D({name:"",description:"",file_storage:"",expireStyle:[],themesChoices:[],themesSelect:"",admin_token:"",robotsText:"",keywords:"",notify_title:"",notify_content:"",openUpload:1,uploadSize:1,uploadMinute:1,max_save_seconds:0,opacity:.9,s3_access_key_id:"",background:"",showAdminAddr:0,page_explain:"",s3_secret_access_key:"",aws_session_token:"",s3_signature_version:"",s3_region_name:"",s3_bucket_name:"",s3_endpoint_url:"",s3_hostname:"",uploadCount:1,errorMinute:1,errorCount:1});(()=>{b({url:"/admin/config/get",method:"get"}).then(p=>{l.value=p.detail})})();const x=()=>{b({url:"/admin/config/update",method:"patch",data:l.value}).then(p=>{p.code==200?y.success(n("admin.settings.saveSuccess")):y.error(p.message)})};return(p,a)=>{const u=w,d=h,r=C,g=A,U=z,k=S;return _(),V(k,null,{default:o(()=>[e(d,{size:"large",label:s(n)("admin.settings.name")},{default:o(()=>[e(u,{modelValue:l.value.name,"onUpdate:modelValue":a[0]||(a[0]=t=>l.value.name=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.description")},{default:o(()=>[e(u,{modelValue:l.value.description,"onUpdate:modelValue":a[1]||(a[1]=t=>l.value.description=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.keywords"),style:{"letter-spacing":"0.3rem"}},{default:o(()=>[e(u,{modelValue:l.value.keywords,"onUpdate:modelValue":a[2]||(a[2]=t=>l.value.keywords=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.themeSelect")},{default:o(()=>[e(g,{modelValue:l.value.themesSelect,"onUpdate:modelValue":a[3]||(a[3]=t=>l.value.themesSelect=t),style:{width:"100%"}},{default:o(()=>[(_(!0),v(T,null,M(l.value.themesChoices,t=>(_(),V(r,{label:t.name,value:t.key},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.notify_title")},{default:o(()=>[e(u,{modelValue:l.value.notify_title,"onUpdate:modelValue":a[4]||(a[4]=t=>l.value.notify_title=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.notify_content")},{default:o(()=>[e(u,{modelValue:l.value.notify_content,"onUpdate:modelValue":a[5]||(a[5]=t=>l.value.notify_content=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.background")},{default:o(()=>[i("span",F,[e(u,{modelValue:l.value.background,"onUpdate:modelValue":a[6]||(a[6]=t=>l.value.background=t),placeholder:"url"},null,8,["modelValue"])]),i("span",I,[a[29]||(a[29]=f(" Opacity: ")),e(u,{type:"number",modelValue:l.value.opacity,"onUpdate:modelValue":a[7]||(a[7]=t=>l.value.opacity=t)},null,8,["modelValue"])])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.showAdminAddr")},{default:o(()=>[e(g,{modelValue:l.value.showAdminAddr,"onUpdate:modelValue":a[8]||(a[8]=t=>l.value.showAdminAddr=t),style:{width:"80%"}},{default:o(()=>[e(r,{label:s(n)("admin.settings.showAdmin.open"),value:1},null,8,["label"]),e(r,{label:s(n)("admin.settings.showAdmin.close"),value:0},null,8,["label"])]),_:1},8,["modelValue"]),i("small",K,m(s(n)("admin.settings.showAdmin.note")),1)]),_:1},8,["label"]),e(d,{size:"large",label:"robots.Text"},{default:o(()=>[e(u,{type:"textarea",modelValue:l.value.robotsText,"onUpdate:modelValue":a[9]||(a[9]=t=>l.value.robotsText=t),placeholder:"explain"},null,8,["modelValue"])]),_:1}),e(d,{size:"large",label:s(n)("admin.settings.explain")},{default:o(()=>[e(u,{type:"textarea",modelValue:l.value.page_explain,"onUpdate:modelValue":a[10]||(a[10]=t=>l.value.page_explain=t),placeholder:"explain"},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.admin_token")},{default:o(()=>[e(u,{type:"password",modelValue:l.value.admin_token,"onUpdate:modelValuLine truncated
@@ -1 +0,0 @@
import{b as w,E as z}from"./el-button-CIFg-IwZ.js";import{E as S,a as h}from"./el-form-item-_5R7KEC5.js";import"./el-tag-CbTkcEh6.js";import{E as A,a as C}from"./el-select-DUuFevCN.js";import"./el-popper-CwdMC8HJ.js";/* empty css */import{d as E,a8 as D,t as c,e as V,w as o,af as b,o as _,C as e,g as s,Y as v,ac as B,ab as M,W as i,a1 as f,$ as m,Z as N,aF as y}from"./index-CVeK0dPI.js";import"./_baseClone-DRpC8OZL.js";const T={style:{display:"flex",height:"38px",width:"45%"}},F={style:{display:"flex",height:"38px","margin-left":"20px"}},I={style:{"margin-left":"0.4rem"}},K={style:{"margin-left":"0.4rem"}},O={style:{"margin-left":"0.4rem"}},q={key:0},L={style:{display:"flex",height:"38px"}},W={style:{"margin-right":"0.4rem"}},Y={style:{width:"200px","margin-left":"0.4rem"}},Z={style:{display:"flex",height:"38px"}},$={style:{width:"3rem","margin-right":"0.4rem"}},j={style:{width:"200px","margin-left":"0.4rem"}},G={style:{display:"flex",height:"38px"}},H={style:{"margin-right":"0.4rem"}},J={style:{width:"200px","margin-left":"0.4rem"}},P={style:{display:"flex",height:"38px"}},Q={style:{width:"3rem","margin-right":"0.4rem"}},R={style:{width:"200px","margin-left":"0.4rem"}},ie=E({__name:"SettingView",setup(X){const{t:n}=D(),l=c({name:"",description:"",file_storage:"",expireStyle:[],themesChoices:[],themesSelect:"",admin_token:"",robotsText:"",keywords:"",notify_title:"",notify_content:"",openUpload:1,uploadSize:1,uploadMinute:1,max_save_seconds:0,opacity:.9,s3_access_key_id:"",background:"",showAdminAddr:0,page_explain:"",s3_secret_access_key:"",aws_session_token:"",s3_signature_version:"",s3_region_name:"",s3_bucket_name:"",s3_endpoint_url:"",s3_hostname:"",uploadCount:1,errorMinute:1,errorCount:1});(()=>{b({url:"/admin/config/get",method:"get"}).then(p=>{l.value=p.detail})})();const x=()=>{b({url:"/admin/config/update",method:"patch",data:l.value}).then(p=>{p.code==200?y.success(n("admin.settings.saveSuccess")):y.error(p.message)})};return(p,t)=>{const u=w,d=h,r=A,g=C,U=z,k=S;return _(),V(k,null,{default:o(()=>[e(d,{size:"large",label:s(n)("admin.settings.name")},{default:o(()=>[e(u,{modelValue:l.value.name,"onUpdate:modelValue":t[0]||(t[0]=a=>l.value.name=a)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.description")},{default:o(()=>[e(u,{modelValue:l.value.description,"onUpdate:modelValue":t[1]||(t[1]=a=>l.value.description=a)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.keywords"),style:{"letter-spacing":"0.3rem"}},{default:o(()=>[e(u,{modelValue:l.value.keywords,"onUpdate:modelValue":t[2]||(t[2]=a=>l.value.keywords=a)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.themeSelect")},{default:o(()=>[e(g,{modelValue:l.value.themesSelect,"onUpdate:modelValue":t[3]||(t[3]=a=>l.value.themesSelect=a),style:{width:"100%"}},{default:o(()=>[(_(!0),v(M,null,B(l.value.themesChoices,a=>(_(),V(r,{label:a.name,value:a.key},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.notify_title")},{default:o(()=>[e(u,{modelValue:l.value.notify_title,"onUpdate:modelValue":t[4]||(t[4]=a=>l.value.notify_title=a)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.notify_content")},{default:o(()=>[e(u,{modelValue:l.value.notify_content,"onUpdate:modelValue":t[5]||(t[5]=a=>l.value.notify_content=a)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.background")},{default:o(()=>[i("span",T,[e(u,{modelValue:l.value.background,"onUpdate:modelValue":t[6]||(t[6]=a=>l.value.background=a),placeholder:"url"},null,8,["modelValue"])]),i("span",F,[f(" Opacity: "),e(u,{type:"number",modelValue:l.value.opacity,"onUpdate:modelValue":t[7]||(t[7]=a=>l.value.opacity=a)},null,8,["modelValue"])])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.showAdminAddr")},{default:o(()=>[e(g,{modelValue:l.value.showAdminAddr,"onUpdate:modelValue":t[8]||(t[8]=a=>l.value.showAdminAddr=a),style:{width:"80%"}},{default:o(()=>[e(r,{label:s(n)("admin.settings.showAdmin.open"),value:1},null,8,["label"]),e(r,{label:s(n)("admin.settings.showAdmin.close"),value:0},null,8,["label"])]),_:1},8,["modelValue"]),i("small",I,m(s(n)("admin.settings.showAdmin.note")),1)]),_:1},8,["label"]),e(d,{size:"large",label:"robots.Text"},{default:o(()=>[e(u,{type:"textarea",modelValue:l.value.robotsText,"onUpdate:modelValue":t[9]||(t[9]=a=>l.value.robotsText=a),placeholder:"explain"},null,8,["modelValue"])]),_:1}),e(d,{size:"large",label:s(n)("admin.settings.explain")},{default:o(()=>[e(u,{type:"textarea",modelValue:l.value.page_explain,"onUpdate:modelValue":t[10]||(t[10]=a=>l.value.page_explain=a),placeholder:"explain"},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:s(n)("admin.settings.admin_token")},{default:o(()=>[e(u,{type:"password",modelValue:l.value.admin_token,"Line truncated
@@ -1 +0,0 @@
import{c as y,k as F,a as l,m as C,s as _,g as v,n as N,o as E,h as K,p as j,q as u,r as B,e as R,b as q,f as W,j as Y,S as H,t as J}from"./el-popper-CwdMC8HJ.js";import{bs as S,b2 as x,a$ as Q,b5 as V,bt as X}from"./index-CVeK0dPI.js";import{v as Z}from"./el-button-CIFg-IwZ.js";function z(e,r){for(var n=-1,s=e==null?0:e.length;++n<s&&r(e[n],n,e)!==!1;);return e}function k(e,r){return e&&y(r,F(r),e)}function ee(e,r){return e&&y(r,l(r),e)}function re(e,r){return y(e,C(e),r)}var te=Object.getOwnPropertySymbols,L=te?function(e){for(var r=[];e;)Z(r,C(e)),e=v(e);return r}:_;function ne(e,r){return y(e,L(e),r)}function ae(e){return N(e,l,L)}var oe=Object.prototype,se=oe.hasOwnProperty;function ce(e){var r=e.length,n=new e.constructor(r);return r&&typeof e[0]=="string"&&se.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ie(e,r){var n=r?E(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var be=/\w*$/;function fe(e){var r=new e.constructor(e.source,be.exec(e));return r.lastIndex=e.lastIndex,r}var O=S?S.prototype:void 0,w=O?O.valueOf:void 0;function ge(e){return w?Object(w.call(e)):{}}var ue="[object Boolean]",ye="[object Date]",Te="[object Map]",le="[object Number]",je="[object RegExp]",pe="[object Set]",Ae="[object String]",me="[object Symbol]",de="[object ArrayBuffer]",$e="[object DataView]",Se="[object Float32Array]",Oe="[object Float64Array]",we="[object Int8Array]",Ie="[object Int16Array]",he="[object Int32Array]",Fe="[object Uint8Array]",Ce="[object Uint8ClampedArray]",Ee="[object Uint16Array]",Be="[object Uint32Array]";function xe(e,r,n){var s=e.constructor;switch(r){case de:return E(e);case ue:case ye:return new s(+e);case $e:return ie(e,n);case Se:case Oe:case we:case Ie:case he:case Fe:case Ce:case Ee:case Be:return K(e,n);case Te:return new s;case le:case Ae:return new s(e);case je:return fe(e);case pe:return new s;case me:return ge(e)}}var Le="[object Map]";function Me(e){return x(e)&&j(e)==Le}var I=u&&u.isMap,Ue=I?B(I):Me,Pe="[object Set]";function De(e){return x(e)&&j(e)==Pe}var h=u&&u.isSet,Ge=h?B(h):De,_e=1,ve=2,Ne=4,M="[object Arguments]",Ke="[object Array]",Re="[object Boolean]",qe="[object Date]",We="[object Error]",U="[object Function]",Ye="[object GeneratorFunction]",He="[object Map]",Je="[object Number]",P="[object Object]",Qe="[object RegExp]",Ve="[object Set]",Xe="[object String]",Ze="[object Symbol]",ze="[object WeakMap]",ke="[object ArrayBuffer]",er="[object DataView]",rr="[object Float32Array]",tr="[object Float64Array]",nr="[object Int8Array]",ar="[object Int16Array]",or="[object Int32Array]",sr="[object Uint8Array]",cr="[object Uint8ClampedArray]",ir="[object Uint16Array]",br="[object Uint32Array]",t={};t[M]=t[Ke]=t[ke]=t[er]=t[Re]=t[qe]=t[rr]=t[tr]=t[nr]=t[ar]=t[or]=t[He]=t[Je]=t[P]=t[Qe]=t[Ve]=t[Xe]=t[Ze]=t[sr]=t[cr]=t[ir]=t[br]=!0;t[We]=t[U]=t[ze]=!1;function T(e,r,n,s,p,c){var a,f=r&_e,g=r&ve,D=r&Ne;if(a!==void 0)return a;if(!Q(e))return e;var A=V(e);if(A){if(a=ce(e),!f)return R(e,a)}else{var b=j(e),m=b==U||b==Ye;if(q(e))return W(e,f);if(b==P||b==M||m&&!p){if(a=g||m?{}:Y(e),!f)return g?ne(e,ee(a,e)):re(e,k(a,e))}else{if(!t[b])return p?e:{};a=xe(e,b,f)}}c||(c=new H);var d=c.get(e);if(d)return d;c.set(e,a),Ge(e)?e.forEach(function(o){a.add(T(o,r,n,o,e,c))}):Ue(e)&&e.forEach(function(o,i){a.set(i,T(o,r,n,i,e,c))});var G=D?g?ae:J:g?l:F,$=A?void 0:G(e);return z($||e,function(o,i){$&&(i=o,o=e[i]),X(a,i,T(o,r,n,i,e,c))}),a}export{T as b};
@@ -0,0 +1 @@
import{c as y,k as F,a as l,m as C,s as _,g as v,n as N,o as E,h as K,p as j,q as x,r as u,e as R,b as q,f as W,j as Y,S as H,t as J}from"./el-popper-DxfKqvb2.js";import{bv as $,b6 as B,b3 as Q,b9 as V,bw as X}from"./index-5orz1M6_.js";import{x as Z}from"./el-input-D_xPEeA2.js";function z(e,r){for(var n=-1,s=e==null?0:e.length;++n<s&&r(e[n],n,e)!==!1;);return e}function k(e,r){return e&&y(r,F(r),e)}function ee(e,r){return e&&y(r,l(r),e)}function re(e,r){return y(e,C(e),r)}var te=Object.getOwnPropertySymbols,L=te?function(e){for(var r=[];e;)Z(r,C(e)),e=v(e);return r}:_;function ne(e,r){return y(e,L(e),r)}function ae(e){return N(e,l,L)}var oe=Object.prototype,se=oe.hasOwnProperty;function ce(e){var r=e.length,n=new e.constructor(r);return r&&typeof e[0]=="string"&&se.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ie(e,r){var n=r?E(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var be=/\w*$/;function fe(e){var r=new e.constructor(e.source,be.exec(e));return r.lastIndex=e.lastIndex,r}var w=$?$.prototype:void 0,O=w?w.valueOf:void 0;function ge(e){return O?Object(O.call(e)):{}}var ue="[object Boolean]",ye="[object Date]",Te="[object Map]",le="[object Number]",je="[object RegExp]",pe="[object Set]",Ae="[object String]",me="[object Symbol]",de="[object ArrayBuffer]",Se="[object DataView]",$e="[object Float32Array]",we="[object Float64Array]",Oe="[object Int8Array]",Ie="[object Int16Array]",he="[object Int32Array]",Fe="[object Uint8Array]",Ce="[object Uint8ClampedArray]",Ee="[object Uint16Array]",xe="[object Uint32Array]";function Be(e,r,n){var s=e.constructor;switch(r){case de:return E(e);case ue:case ye:return new s(+e);case Se:return ie(e,n);case $e:case we:case Oe:case Ie:case he:case Fe:case Ce:case Ee:case xe:return K(e,n);case Te:return new s;case le:case Ae:return new s(e);case je:return fe(e);case pe:return new s;case me:return ge(e)}}var Le="[object Map]";function Me(e){return B(e)&&j(e)==Le}var I=u&&u.isMap,Ue=I?x(I):Me,Pe="[object Set]";function De(e){return B(e)&&j(e)==Pe}var h=u&&u.isSet,Ge=h?x(h):De,_e=1,ve=2,Ne=4,M="[object Arguments]",Ke="[object Array]",Re="[object Boolean]",qe="[object Date]",We="[object Error]",U="[object Function]",Ye="[object GeneratorFunction]",He="[object Map]",Je="[object Number]",P="[object Object]",Qe="[object RegExp]",Ve="[object Set]",Xe="[object String]",Ze="[object Symbol]",ze="[object WeakMap]",ke="[object ArrayBuffer]",er="[object DataView]",rr="[object Float32Array]",tr="[object Float64Array]",nr="[object Int8Array]",ar="[object Int16Array]",or="[object Int32Array]",sr="[object Uint8Array]",cr="[object Uint8ClampedArray]",ir="[object Uint16Array]",br="[object Uint32Array]",t={};t[M]=t[Ke]=t[ke]=t[er]=t[Re]=t[qe]=t[rr]=t[tr]=t[nr]=t[ar]=t[or]=t[He]=t[Je]=t[P]=t[Qe]=t[Ve]=t[Xe]=t[Ze]=t[sr]=t[cr]=t[ir]=t[br]=!0;t[We]=t[U]=t[ze]=!1;function T(e,r,n,s,p,c){var a,f=r&_e,g=r&ve,D=r&Ne;if(a!==void 0)return a;if(!Q(e))return e;var A=V(e);if(A){if(a=ce(e),!f)return R(e,a)}else{var b=j(e),m=b==U||b==Ye;if(q(e))return W(e,f);if(b==P||b==M||m&&!p){if(a=g||m?{}:Y(e),!f)return g?ne(e,ee(a,e)):re(e,k(a,e))}else{if(!t[b])return p?e:{};a=Be(e,b,f)}}c||(c=new H);var d=c.get(e);if(d)return d;c.set(e,a),Ge(e)?e.forEach(function(o){a.add(T(o,r,n,o,e,c))}):Ue(e)&&e.forEach(function(o,i){a.set(i,T(o,r,n,i,e,c))});var G=D?g?ae:J:g?l:F,S=A?void 0:G(e);return z(S||e,function(o,i){S&&(i=o,o=e[i]),X(a,i,T(o,r,n,i,e,c))}),a}export{T as b};
-1
View File
@@ -1 +0,0 @@
const i='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',o=t=>getComputedStyle(t).position==="fixed"?!1:t.offsetParent!==null,u=t=>Array.from(t.querySelectorAll(i)).filter(e=>d(e)&&o(e)),d=t=>{if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return!(t.type==="hidden"||t.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},a=function(t,e,...r){let n;e.includes("mouse")||e.includes("click")?n="MouseEvents":e.includes("key")?n="KeyboardEvent":n="HTMLEvents";const s=document.createEvent(n);return s.initEvent(e,...r),t.dispatchEvent(s),t};export{u as o,a as t};
-1
View File
@@ -1 +0,0 @@
import{a6 as me,S as le,aZ as ye,U as pe,aH as Z,K as ge,u as W,a as T,G as re,aS as oe,R as G,I as he,J as be,bm as Ce,F as we,an as _,b as K,k as U,d as F,o as w,Y,f as g,g as o,r as h,a1 as te,$ as J,Z as V,W as j,h as x,_ as ee,j as ie,C as H,A as Ee,aT as Se,ao as ke,l as se,w as S,e as Q,i as Te,M as Me,bn as Be,ah as Ie,bo as $e,t as k,bp as De,bq as Le,n as Pe,aW as Ae,aX as ae,aG as Fe,p as Oe,T as Ne,B as ze,aC as Ye,aB as Re,D as Xe,aK as je}from"./index-CVeK0dPI.js";import{P as q}from"./vnode-D5ByjH_G.js";import{t as He,F as Ue,U as ue,u as ne,n as Ve,e as We,a as Ke,j as _e}from"./el-button-CIFg-IwZ.js";import{g as qe}from"./el-tag-CbTkcEh6.js";const Ze=(...e)=>s=>{e.forEach(t=>{me(t)?t(s):t.value=s})},Ge=(e,s,t,c)=>{let n={offsetX:0,offsetY:0};const i=u=>{const y=u.clientX,C=u.clientY,{offsetX:b,offsetY:v}=n,m=e.value.getBoundingClientRect(),E=m.left,d=m.top,O=m.width,M=m.height,R=document.documentElement.clientWidth,X=document.documentElement.clientHeight,N=-E+b,B=-d+v,I=R-E-O+b,$=X-d-M+v,D=a=>{let P=b+a.clientX-y,z=v+a.clientY-C;c!=null&&c.value||(P=Math.min(Math.max(P,N),I),z=Math.min(Math.max(z,B),$)),n={offsetX:P,offsetY:z},e.value&&(e.value.style.transform=`translate(${Z(P)}, ${Z(z)})`)},L=()=>{document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",L)};document.addEventListener("mousemove",D),document.addEventListener("mouseup",L)},r=()=>{s.value&&e.value&&s.value.addEventListener("mousedown",i)},f=()=>{s.value&&e.value&&s.value.removeEventListener("mousedown",i)},l=()=>{n={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return le(()=>{ye(()=>{t.value?r():f()})}),pe(()=>{f()}),{resetPosition:l}},Je=(e,s={})=>{ge(e)||He("[useLockscreen]","You need to pass a ref param to this function");const t=s.ns||W("popup"),c=T(()=>t.bm("parent","hidden"));if(!re||oe(document.body,c.value))return;let n=0,i=!1,r="0";const f=()=>{setTimeout(()=>{we(document==null?void 0:document.body,c.value),i&&document&&(document.body.style.width=r)},200)};G(e,l=>{if(!l){f();return}i=!oe(document.body,c.value),i&&(r=document.body.style.width),n=qe(t.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,y=he(document.body,"overflowY");n>0&&(u||y==="scroll")&&i&&(document.body.style.width=`calc(100% - ${n}px)`),be(document.body,c.value)}),Ce(()=>f())},de=e=>{if(!e)return{onClick:_,onMousedown:_,onMouseup:_};let s=!1,t=!1;return{onClick:r=>{s&&t&&e(r),s=t=!1},onMousedown:r=>{s=r.target===r.currentTarget},onMouseup:r=>{t=r.target===r.currentTarget}}},Qe=K({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:U([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),xe=F({name:"ElCard"}),eo=F({...xe,props:Qe,setup(e){const s=W("card");return(t,c)=>(w(),Y("div",{class:g([o(s).b(),o(s).is(`${t.shadow}-shadow`)])},[t.$slots.header||t.header?(w(),Y("div",{key:0,class:g(o(s).e("header"))},[h(t.$slots,"header",{},()=>[te(J(t.header),1)])],2)):V("v-if",!0),j("div",{class:g([o(s).e("body"),t.bodyClass]),style:x(t.bodyStyle)},[h(t.$slots,"default")],6),t.$slots.footer||t.footer?(w(),Y("div",{key:1,class:g(o(s).e("footer"))},[h(t.$slots,"footer",{},()=>[te(J(t.footer),1)])],2)):V("v-if",!0)],2))}});var oo=ee(eo,[["__file","card.vue"]]);const Eo=ie(oo),to=K({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:U([String,Array,Object])},zIndex:{type:U([String,Number])}}),so={click:e=>e instanceof MouseEvent},ao="overlay";var no=F({name:"ElOverlay",props:to,emits:so,setup(e,{slots:s,emit:t}){const c=W(ao),n=l=>{t("click",l)},{onClick:i,onMousedown:r,onMouseup:f}=de(e.customMaskEvent?void 0:n);return()=>e.mask?H("div",{class:[c.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:r,onMouseup:f},[h(s,"default")],q.STYLE|q.CLASS|q.PROPS,["onClick","onMouseup","onMousedown"]):Ee("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[h(s,"default")])}});const lo=no,ce=Symbol("dialogInjectionKey"),fe=K({center:Boolean,alignCenter:Boolean,closeIcon:{type:Se},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),ro={close:()=>!0},io=F({name:"ElDialogContent"}),uo=F({...io,props:fe,emits:ro,setup(e,{expose:s}){const t=e,{t:c}=ke(),{Close:n}=Be,{dialogRef:i,headerRef:r,bodyId:f,ns:l,style:u}=se(ce),{focusTrapRef:y}=se(Ue),C=T(()=>[l.b(),l.is("fullscreen",t.fullscreen),l.is("draggable",t.draggable),l.is("align-center",t.alignCenter),{[l.m("center")]:t.center}]),b=Ze(y,i),v=T(()=>t.draggable),m=T(()=>t.overflow),{resetPosition:E}=Ge(i,r,v,m);return s({resetPosition:E}),(d,O)=>(w(),Y("div",{ref:o(b),class:g(o(C)),style:x(o(u)),tabindex:"-1"},[j("header",{ref_key:"headerRef",ref:r,class:g([o(l).e("header"),{"show-close":d.showClose}])},[h(d.$slots,"header",{},()=>[j("span",{roleLine truncated
+1
View File
@@ -0,0 +1 @@
import{b as X,d as j,a as F,u as K,P as Y,o as w,Q as W,N as U,h as g,j as o,r as b,U as oe,R as G,n as x,_ as ee,l as ne,an as q,B as V,z as me,aV as ye,a0 as re,aW as pe,a1 as ge,aH as Q,a2 as be,ao as he,i as se,c as T,w as S,g as Z,k as Ce,bq as we,W as Ee,ag as Se,J as ke,E as ie,aQ as te,$ as _,b2 as Te,I as Me,H as Be,D as Ie,aT as $e,br as De,s as k,bs as Le,bt as Pe,aU as ae,F as Ae,aG as Fe,T as Oe,A as Ne,aC as ze,aB as Ye,C as He,p as Re,aK as Ue}from"./index-5orz1M6_.js";import{P as J}from"./vnode-DkiIqzI4.js";import{F as Ve,U as de,t as je,u as le,r as We,e as Xe,a as Ke,j as qe}from"./el-input-D_xPEeA2.js";import{g as Je}from"./el-tag-DsWzxe9q.js";const Ge=X({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:j([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),Qe=F({name:"ElCard"}),Ze=F({...Qe,props:Ge,setup(e){const t=K("card");return(s,c)=>(w(),Y("div",{class:g([o(t).b(),o(t).is(`${s.shadow}-shadow`)])},[s.$slots.header||s.header?(w(),Y("div",{key:0,class:g(o(t).e("header"))},[b(s.$slots,"header",{},()=>[oe(G(s.header),1)])],2)):W("v-if",!0),U("div",{class:g([o(t).e("body"),s.bodyClass]),style:x(s.bodyStyle)},[b(s.$slots,"default")],6),s.$slots.footer||s.footer?(w(),Y("div",{key:1,class:g(o(t).e("footer"))},[b(s.$slots,"footer",{},()=>[oe(G(s.footer),1)])],2)):W("v-if",!0)],2))}});var _e=ee(Ze,[["__file","card.vue"]]);const Eo=ne(_e),ue=e=>{if(!e)return{onClick:q,onMousedown:q,onMouseup:q};let t=!1,s=!1;return{onClick:r=>{t&&s&&e(r),t=s=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{s=r.target===r.currentTarget}}},xe=X({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:j([String,Array,Object])},zIndex:{type:j([String,Number])}}),eo={click:e=>e instanceof MouseEvent},oo="overlay";var so=F({name:"ElOverlay",props:xe,emits:eo,setup(e,{slots:t,emit:s}){const c=K(oo),l=n=>{s("click",n)},{onClick:d,onMousedown:r,onMouseup:f}=ue(e.customMaskEvent?void 0:l);return()=>e.mask?V("div",{class:[c.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:d,onMousedown:r,onMouseup:f},[b(t,"default")],J.STYLE|J.CLASS|J.PROPS,["onClick","onMouseup","onMousedown"]):me("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[b(t,"default")])}});const to=so,ce=Symbol("dialogInjectionKey"),fe=X({center:Boolean,alignCenter:Boolean,closeIcon:{type:ye},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),ao={close:()=>!0},lo=(e,t,s,c)=>{let l={offsetX:0,offsetY:0};const d=u=>{const y=u.clientX,C=u.clientY,{offsetX:h,offsetY:v}=l,m=e.value.getBoundingClientRect(),E=m.left,i=m.top,O=m.width,M=m.height,H=document.documentElement.clientWidth,R=document.documentElement.clientHeight,N=-E+h,B=-i+v,I=H-E-O+h,$=R-i-M+v,D=a=>{let P=h+a.clientX-y,z=v+a.clientY-C;c!=null&&c.value||(P=Math.min(Math.max(P,N),I),z=Math.min(Math.max(z,B),$)),l={offsetX:P,offsetY:z},e.value&&(e.value.style.transform=`translate(${Q(P)}, ${Q(z)})`)},L=()=>{document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",L)};document.addEventListener("mousemove",D),document.addEventListener("mouseup",L)},r=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",d)},f=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",d)},n=()=>{l={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return re(()=>{pe(()=>{s.value?r():f()})}),ge(()=>{f()}),{resetPosition:n}},no=(...e)=>t=>{e.forEach(s=>{be(s)?s(t):s.value=t})},ro=F({name:"ElDialogContent"}),io=F({...ro,props:fe,emits:ao,setup(e,{expose:t}){const s=e,{t:c}=he(),{Close:l}=we,{dialogRef:d,headerRef:r,bodyId:f,ns:n,style:u}=se(ce),{focusTrapRef:y}=se(Ve),C=T(()=>[n.b(),n.is("fullscreen",s.fullscreen),n.is("draggable",s.draggable),n.is("align-center",s.alignCenter),{[n.m("center")]:s.center}]),h=no(y,d),v=T(()=>s.draggable),m=T(()=>s.overflow),{resetPosition:E}=lo(d,r,v,m);return t({resetPosition:E}),(i,O)=>(w(),Y("div",{ref:o(h),class:g(o(C)),style:x(o(u)),tabindex:"-1"},[U("header",{ref_key:"headerRef",ref:r,class:g([o(n).e("header"),i.headerClass,{"show-close":i.showClose}])},[b(i.$slots,"header",{},()=>[U("span",{role:"heading","aria-level":i.ariaLevel,class:g(o(n).e("title"))},G(i.title),11,["aria-level"])]),i.showClose?(w(),Y("button",{key:0,"aria-label":o(c)("el.dialog.close"),class:g(o(n).e("headerbtn")),type:"button",onClick:M=>i.$emit("close")},[V(o(Ee),{class:g(o(n).e("close"))},{default:S(()=>[(w(),Z(Ce(i.closeIcon||o(l))))]),_:1},8,["class"])],10,["aria-label","onClick"])):W("v-if",!0)],2),U("div",{id:o(f),class:g([o(n).e("body"),i.bodyClass])},[b(i.$slots,"default")],10,["id"]),i.$slots.footer?(w(),Y("footer",{key:0,class:g([o(n).e("footer"),i.footerClass])},[b(i.$slots,"footer")],2)):W("v-if"Line truncated
@@ -1 +1 @@
.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank);background-color:var(--el-card-bg-color);border:1px solid var(--el-card-border-color);border-radius:var(--el-card-border-radius);color:var(--el-text-color-primary);overflow:hidden;transition:var(--el-transition-duration)}.el-card.is-always-shadow,.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box;padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding)}.el-card__body{padding:var(--el-card-padding)}.el-card__footer{border-top:1px solid var(--el-card-border-color);box-sizing:border-box;padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding)}.el-overlay{background-color:var(--el-overlay-color-lighter);bottom:0;height:100%;left:0;overflow:auto;position:fixed;right:0;top:0;z-index:2000}.el-overlay .el-overlay-root{height:0}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{background:var(--el-popup-modal-bg-color);height:100%;left:0;opacity:var(--el-popup-modal-opacity);position:fixed;top:0;width:100%}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:16px;--el-dialog-border-radius:var(--el-border-radius-base);background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;margin:var(--el-dialog-margin-top,15vh) auto 50px;overflow-wrap:break-word;padding:var(--el-dialog-padding-primary);position:relative;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:none!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;height:100%;margin-bottom:0;overflow:auto}.el-dialog__wrapper{bottom:0;left:0;margin:0;overflow:auto;position:fixed;right:0;top:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dialog__header{padding-bottom:var(--el-dialog-padding-primary)}.el-dialog__header.show-close{padding-right:calc(var(--el-dialog-padding-primary) + var(--el-message-close-size, 16px))}.el-dialog__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:48px;outline:none;padding:0;position:absolute;right:0;top:0;width:48px}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{color:var(--el-text-color-primary);font-size:var(--el-dialog-title-font-size);line-height:var(--el-dialog-font-line-height)}.el-dialog__body{color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{box-sizing:border-box;padding-top:var(--el-dialog-padding-primary);text-align:right}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:0}.dialog-fade-enter-active{animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{animation:dialog-fade-out var(--el-transition-duration)}@keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}} .el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank);background-color:var(--el-card-bg-color);border:1px solid var(--el-card-border-color);border-radius:var(--el-card-border-radius);color:var(--el-text-color-primary);overflow:hidden;transition:var(--el-transition-duration)}.el-card.is-always-shadow,.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box;padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding)}.el-card__body{padding:var(--el-card-padding)}.el-card__footer{border-top:1px solid var(--el-card-border-color);box-sizing:border-box;padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding)}.el-overlay{background-color:var(--el-overlay-color-lighter);bottom:0;height:100%;left:0;overflow:auto;position:fixed;right:0;top:0;z-index:2000}.el-overlay .el-overlay-root{height:0}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{background:var(--el-popup-modal-bg-color);height:100%;left:0;opacity:var(--el-popup-modal-opacity);position:fixed;top:0;width:100%}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:16px;--el-dialog-border-radius:var(--el-border-radius-base);background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;margin:var(--el-dialog-margin-top,15vh) auto 50px;overflow-wrap:break-word;padding:var(--el-dialog-padding-primary);position:relative;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:none!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;border-radius:0;height:100%;margin-bottom:0;overflow:auto}.el-dialog__wrapper{bottom:0;left:0;margin:0;overflow:auto;position:fixed;right:0;top:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dialog__header{padding-bottom:var(--el-dialog-padding-primary)}.el-dialog__header.show-close{padding-right:calc(var(--el-dialog-padding-primary) + var(--el-message-close-size, 16px))}.el-dialog__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:48px;outline:none;padding:0;position:absolute;right:0;top:0;width:48px}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{color:var(--el-text-color-primary);font-size:var(--el-dialog-title-font-size);line-height:var(--el-dialog-font-line-height)}.el-dialog__body{color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{box-sizing:border-box;padding-top:var(--el-dialog-padding-primary);text-align:right}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:0}.dialog-fade-enter-active{animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{animation:dialog-fade-out var(--el-transition-duration)}@keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}
-9
View File
@@ -1,9 +0,0 @@
import{G as ke,bY as it,b2 as Pt,b3 as rn,bs as ut,b5 as _t,bZ as At,bx as sn,b0 as un,by as ln,b_ as cn,a as p,bP as fn,aW as Ce,R as $,g as u,bR as dn,l as X,S as fe,U as Ue,E as Mt,aw as Se,t as F,bj as Re,a6 as lt,n as O,b as Fe,be as pn,aA as Te,aD as vn,q as ct,ag as Rt,k as le,aT as Ie,m as hn,H as Ee,d as j,b$ as gn,aG as Nt,u as ce,bC as bn,c0 as mn,c1 as yn,am as Bt,a_ as Sn,o as g,Y as _,Z as w,ab as we,f as k,r as B,W as te,e as I,w as D,i as q,M as W,aC as xe,C as En,aJ as wn,X as xn,an as kn,$ as ve,h as Tn,_ as de,s as ft,j as De,p as Ht,c2 as In,bp as Cn,bT as Fn,P as Pn,v as _n,ak as An}from"./index-CVeK0dPI.js";const Mn=()=>ke&&/firefox/i.test(window.navigator.userAgent);function Rn(e){return e}function Nn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Bn=800,Hn=16,On=Date.now;function $n(e){var t=0,n=0;return function(){var a=On(),o=Hn-(a-n);if(n=a,o>0){if(++t>=Bn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ln(e){return function(){return e}}var zn=it?function(e,t){return it(e,"toString",{configurable:!0,enumerable:!1,value:Ln(t),writable:!0})}:Rn,Vn=$n(zn),dt=Math.max;function Un(e,t,n){return t=dt(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,r=dt(a.length-t,0),s=Array(r);++o<r;)s[o]=a[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=a[o];return i[t]=n(s),Nn(e,this,i)}}var Dn=9007199254740991;function Kn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Dn}var jn="[object Arguments]";function pt(e){return Pt(e)&&rn(e)==jn}var Ot=Object.prototype,Gn=Ot.hasOwnProperty,Wn=Ot.propertyIsEnumerable,$t=pt(function(){return arguments}())?pt:function(e){return Pt(e)&&Gn.call(e,"callee")&&!Wn.call(e,"callee")};function qn(e,t){for(var n=-1,a=t.length,o=e.length;++n<a;)e[o+n]=t[n];return e}var vt=ut?ut.isConcatSpreadable:void 0;function Yn(e){return _t(e)||$t(e)||!!(vt&&e&&e[vt])}function Xn(e,t,n,a,o){var r=-1,s=e.length;for(n||(n=Yn),o||(o=[]);++r<s;){var i=e[r];n(i)?qn(o,i):o[o.length]=i}return o}function Zn(e){var t=e==null?0:e.length;return t?Xn(e):[]}function Jn(e){return Vn(Un(e,void 0,Zn),e+"")}function Qn(e,t){return e!=null&&t in Object(e)}function ea(e,t,n){t=At(t,e);for(var a=-1,o=t.length,r=!1;++a<o;){var s=sn(t[a]);if(!(r=e!=null&&n(e,s)))break;e=e[s]}return r||++a!=o?r:(o=e==null?0:e.length,!!o&&Kn(o)&&un(s,o)&&(_t(e)||$t(e)))}function ta(e,t){return e!=null&&ea(e,t,Qn)}function bo(e){return e===void 0}function na(e,t,n){for(var a=-1,o=t.length,r={};++a<o;){var s=t[a],i=ln(e,s);n(i,s)&&cn(r,At(s,e),i)}return r}function aa(e,t){return na(e,t,function(n,a){return ta(e,a)})}var oa=Jn(function(e,t){return e==null?{}:aa(e,t)});class ra extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function mo(e,t){throw new ra(`[${e}] ${t}`)}function yo(e,t){}const Le="update:modelValue",So="change",sa=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),ia=["class","style"],ua=/^on[A-Z]/,la=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=p(()=>((n==null?void 0:n.value)||[]).concat(ia)),o=Ce();return o?p(()=>{var r;return fn(Object.entries((r=o.proxy)==null?void 0:r.$attrs).filter(([s])=>!a.value.includes(s)&&!(t&&ua.test(s))))}):p(()=>({}))},ca=({from:e,replacement:t,scope:n,version:a,ref:o,type:r="API"},s)=>{$(()=>u(s),i=>{},{immediate:!0})},Lt=e=>{const t=Ce();return p(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})},ht={prefix:Math.floor(Math.random()*1e4),current:0},fa=Symbol("elIdInjection"),da=()=>Ce()?X(fa,ht):ht,pa=e=>{const t=da(),n=dn();return p(()=>u(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let ne=[];const gt=e=>{const t=e;t.key===Mt.esc&&ne.forEach(n=>n(t))},va=e=>{fe(()=>{ne.length===0&&document.addEventListener("keydown",gt),ke&&ne.push(e)}),Ue(()=>{ne=ne.filter(t=>t!==e),ne.length===0&&ke&&document.removeEventListener("keydown",gt)})};function ha(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:r,value:s}=e.value;if(o==null||r==null)return;const i=s.slice(0,Math.max(0,o)),d=s.slice(Math.max(0,r));t={selectionStart:o,selectionEnd:r,value:s,beforeTxt:i,afterTxt:d}}function a(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:r,afterTxt:s,selectionStart:i}=t;if(r==null||s==null||i==null)return;let d=o.length;if(o.endsWith(s))d=o.length-s.length;else if(o.startsWith(r))d=r.length;else{const v=r[i-1],b=o.indexOf(v,i-1);b!==-1&&(d=b+1)}e.value.setSelectionRange(d,d)}return[n,a]}function ga(e,{beforeFocus:t,afterFocus:n,beforeBlur:a,afterBlur:o}={}){const r=Ce(),{emit:s}=r,i=Se(),d=F(!1),v=m=>{lt(t)&&t(m)||d.value||(d.value=!0,s("focus",m),n==null||n())},b=m=>{var C;lt(a)&&a(m)||m.relatedTarget&&((C=i.value)!=null&&C.contains(m.relatedTarget))||(d.value=!1,s("blur",m),o==null||o())},h=()=>{var m,C;(m=i.value)!=null&&m.contains(document.activeElement)&&i.value!==document.activeElement||(C=e.value)==null||C.focusLine truncated
height:0 !important;
visibility:hidden !important;
${Mn()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,wa=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function xa(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:wa.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:a,borderSize:o,boxSizing:n}}function bt(e,t=1,n){var a;R||(R=document.createElement("textarea"),document.body.appendChild(R));const{paddingSize:o,borderSize:r,boxSizing:s,contextStyle:i}=xa(e);R.setAttribute("style",`${i};${Ea}`),R.value=e.value||e.placeholder||"";let d=R.scrollHeight;const v={};s==="border-box"?d=d+r:s==="content-box"&&(d=d-o),R.value="";const b=R.scrollHeight-o;if(ct(t)){let h=b*t;s==="border-box"&&(h=h+o+r),d=Math.max(h,d),v.minHeight=`${h}px`}if(ct(n)){let h=b*n;s==="border-box"&&(h=h+o+r),d=Math.min(h,d)}return v.height=`${d}px`,(a=R.parentNode)==null||a.removeChild(R),R=void 0,v}const ka=Fe({id:{type:String,default:void 0},size:Rt,disabled:Boolean,modelValue:{type:le([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:le([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:Ie},prefixIcon:{type:Ie},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:le([Object,Array,String]),default:()=>hn({})},autofocus:Boolean,rows:{type:Number,default:2},...ya(["ariaLabel"])}),Ta={[Le]:e=>Ee(e),input:e=>Ee(e),change:e=>Ee(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Ia=j({name:"ElInput",inheritAttrs:!1}),Ca=j({...Ia,props:ka,emits:Ta,setup(e,{expose:t,emit:n}){const a=e,o=gn(),r=Nt(),s=p(()=>{const l={};return a.containerRole==="combobox"&&(l["aria-haspopup"]=o["aria-haspopup"],l["aria-owns"]=o["aria-owns"],l["aria-expanded"]=o["aria-expanded"]),l}),i=p(()=>[a.type==="textarea"?S.b():f.b(),f.m(C.value),f.is("disabled",c.value),f.is("exceed",Yt.value),{[f.b("group")]:r.prepend||r.append,[f.m("prefix")]:r.prefix||a.prefixIcon,[f.m("suffix")]:r.suffix||a.suffixIcon||a.clearable||a.showPassword,[f.bm("suffix","password-clear")]:pe.value&&_e.value,[f.b("hidden")]:a.type==="hidden"},o.class]),d=p(()=>[f.e("wrapper"),f.is("focus",L.value)]),v=la({excludeKeys:p(()=>Object.keys(s.value))}),{form:b,formItem:h}=Ut(),{inputId:m}=Sa(a,{formItemContext:h}),C=Vt(),c=je(),f=ce("input"),S=ce("textarea"),x=Se(),E=Se(),Z=F(!1),G=F(!1),ae=F(),J=Se(a.inputStyle),A=p(()=>x.value||E.value),{wrapperRef:oe,isFocused:L,handleFocus:re,handleBlur:qe}=ga(A,{beforeFocus(){return c.value},afterBlur(){var l;a.validateEvent&&((l=h==null?void 0:h.validate)==null||l.call(h,"blur").catch(y=>void 0))}}),M=p(()=>{var l;return(l=b==null?void 0:b.statusIcon)!=null?l:!1}),se=p(()=>(h==null?void 0:h.validateState)||""),Ye=p(()=>se.value&&bn[se.value]),Wt=p(()=>G.value?mn:yn),qt=p(()=>[o.style]),Xe=p(()=>[a.inputStyle,J.value,{resize:a.resize}]),z=p(()=>Bt(a.modelValue)?"":String(a.modelValue)),pe=p(()=>a.clearable&&!c.value&&!a.readonly&&!!z.value&&(L.value||Z.value)),_e=p(()=>a.showPassword&&!c.value&&!a.readonly&&!!z.value&&(!!z.value||L.value)),Q=p(()=>a.showWordLimit&&!!a.maxlength&&(a.type==="text"||a.type==="textarea")&&!c.value&&!a.readonly&&!a.showPassword),Ae=p(()=>z.value.length),Yt=p(()=>!!Q.value&&Ae.value>Number(a.maxlength)),Xt=p(()=>!!r.suffix||!!a.suffixIcon||pe.value||a.showPassword||Q.value||!!se.value&&M.value),[Zt,Jt]=ha(x);Sn(E,l=>{if(Qt(),!Q.value||a.resize!=="both")return;const y=l[0],{width:ee}=y.contentRect;ae.value={right:`calc(100% - ${ee+15+6}px)`}});const ie=()=>{const{type:l,autosize:y}=a;if(!(!ke||l!=="textarea"||!E.value))if(y){const ee=ft(y)?y.minRows:void 0,rt=ft(y)?y.maxRows:void 0,st=bt(E.value,ee,rt);J.value={overflowY:"hidden",...st},O(()=>{E.value.offsetHeight,J.value=st})}else J.value={minHeight:bt(E.value).minHeight}},Qt=(l=>{let y=!1;return()=>{var ee;if(y||!a.autosize)return;((ee=E.value)==null?void 0:ee.offsetParent)===null||(l(),y=!0)}})(ie),ue=()=>{const l=A.value,y=a.formatter?a.formatter(z.value):z.value;!l||l.value===y||(l.value=y)},Me=Line truncated
Loaded 100 of 125 files, more files were not shown because too many files have changed in this diff. Show more